Merge branch 'master' of http://117.50.13.128:8889/wrm1995/codepedia2
This commit is contained in:
commit
6c31e64452
|
@ -122,7 +122,7 @@ DATABASES = {
|
|||
'ENGINE': 'django.db.backends.mysql',
|
||||
'NAME': 'codepedia',
|
||||
'USER': 'root',
|
||||
'PASSWORD': 'root',
|
||||
'PASSWORD': 'codepedia123',
|
||||
'HOST': '127.0.0.1'
|
||||
}
|
||||
}
|
||||
|
|
|
@ -68,7 +68,13 @@ class GetJstreeIdView(View):
|
|||
except:
|
||||
return HttpResponse(json.dumps({"status": "fail", "msg":"没有获取到改节点对应的id"}), content_type='application/json')
|
||||
|
||||
|
||||
def get_current_commitid_by_fileid(file_id):
|
||||
try:
|
||||
project_name = File.objects.get(id=file_id).project.name
|
||||
return git.get_current_commitid_by_projectname(project_name)
|
||||
except:
|
||||
# 打BUG日志
|
||||
return None
|
||||
|
||||
class ShowAnnotationView(View):
|
||||
|
||||
|
@ -76,17 +82,11 @@ class ShowAnnotationView(View):
|
|||
策略:例如只显示只显示自己的Annotation
|
||||
分为多个策略吧
|
||||
"""
|
||||
def get_current_commitid_by_fileid(self,file_id):
|
||||
try:
|
||||
project_name = File.objects.get(id=file_id).project.name
|
||||
return git.get_current_commitid_by_projectname(project_name)
|
||||
except:
|
||||
# 打BUG日志
|
||||
return None
|
||||
|
||||
# 策略1:获取所有用户的Annotation
|
||||
def get_all_annotations(self,file_id,line_num):
|
||||
# 获取到当前commit_id对应的注释
|
||||
commit_id = self.get_current_commitid_by_fileid(file_id)
|
||||
commit_id = get_current_commitid_by_fileid(file_id)
|
||||
# print(commit_id)
|
||||
annotations = Annotation.objects.filter(file_id=file_id, linenum=line_num,is_latest=1,commit_id=commit_id)
|
||||
# print(annotations)
|
||||
|
@ -95,7 +95,7 @@ class ShowAnnotationView(View):
|
|||
|
||||
# 策略2:只获取用户自己的Annotation
|
||||
def get_user_annotation(self,file_id,line_num,user_id):
|
||||
commit_id = self.get_current_commitid_by_fileid(file_id)
|
||||
commit_id = get_current_commitid_by_fileid(file_id)
|
||||
annotations = Annotation.objects.filter(file_id=file_id, linenum=line_num,user_id=user_id,is_latest=1,commit_id=commit_id)
|
||||
return annotations
|
||||
|
||||
|
@ -109,7 +109,7 @@ class ShowAnnotationView(View):
|
|||
# user_ids = []
|
||||
# 然后调用
|
||||
# print(users)
|
||||
commit_id = self.get_current_commitid_by_fileid(file_id)
|
||||
commit_id = get_current_commitid_by_fileid(file_id)
|
||||
# print(Annotation.objects.filter(file_id=file_id, linenum=line_num,is_latest=1,commit_id=commit_id))
|
||||
if len(users)==0:
|
||||
annotations = Annotation.objects.filter(file_id=file_id, linenum=line_num,user_id=user_id,is_latest=1,commit_id=commit_id)
|
||||
|
@ -143,7 +143,7 @@ class ShowAnnotationView(View):
|
|||
elif strategy.choice == 2:
|
||||
annotations = self.get_group_annotation(file_id, line_num, request.user.pk)
|
||||
# The CodePedia Sample Annotation
|
||||
commit_id = self.get_current_commitid_by_fileid(file_id)
|
||||
commit_id = get_current_commitid_by_fileid(file_id)
|
||||
sample_annotation = Annotation.objects.filter(file_id=file_id, linenum=line_num,user_id=67,is_latest=1,commit_id=commit_id)
|
||||
annotations = annotations | sample_annotation
|
||||
|
||||
|
@ -1000,7 +1000,8 @@ class Get_CodeReading_Content_View(View):
|
|||
def get_self_annos_by_fileid(user_id,file_id):
|
||||
self_anno_map = {}
|
||||
try:
|
||||
annos = Annotation.objects.filter(file_id=file_id,user_id=user_id)
|
||||
commit_id = get_current_commitid_by_fileid(file_id)
|
||||
annos = Annotation.objects.filter(file_id=file_id,user_id=user_id,is_latest=1,commit_id=commit_id)
|
||||
for anno in annos:
|
||||
self_anno_map[str(anno.linenum)] = get_currentfile_comment_anno(anno.file,anno.content)
|
||||
return self_anno_map
|
||||
|
@ -1027,7 +1028,8 @@ def get_code(request,project_id,path):
|
|||
|
||||
fileid = file.pk
|
||||
|
||||
annos = Annotation.objects.filter(file=file).values('linenum').annotate(nums=Count('linenum'))
|
||||
commit_id = get_current_commitid_by_fileid(fileid)
|
||||
annos = Annotation.objects.filter(file=file,is_latest=1,commit_id=commit_id).values('linenum').annotate(nums=Count('linenum'))
|
||||
annos_count = {}
|
||||
for i in annos:
|
||||
annos_count[str(i['linenum'])] = i['nums']
|
||||
|
|
|
@ -15,7 +15,7 @@ Including another URLconf
|
|||
"""
|
||||
|
||||
from django.urls import path
|
||||
from .views import NewProjectView, ProjectListView, ProjectInfoView, ProjectSourceView, ScannerProjectView,RemoveProjectView
|
||||
from .views import NewProjectView, ProjectListView, ProjectInfoView, ProjectSourceView, ScannerProjectView,RemoveProjectView,GetProjectJstreeView
|
||||
|
||||
app_name = "projects"
|
||||
urlpatterns = [
|
||||
|
@ -23,6 +23,7 @@ urlpatterns = [
|
|||
path('new/', NewProjectView.as_view(), name='new_project'),
|
||||
path('remove', RemoveProjectView.as_view(), name='remove_project'),
|
||||
path('scanner_project', ScannerProjectView.as_view(), name="scanner_project"),
|
||||
path('get_project_jstree/',GetProjectJstreeView.as_view(),name="get_project_jstree/"),
|
||||
# path('<slug:name>/', ProjectInfoView.as_view(), name='info'),
|
||||
# path('<slug:name>/xref<path:path>', ProjectSourceView.as_view(), name='source')
|
||||
path('<str:name><path:path>', ProjectSourceView.as_view(), name='source')
|
||||
|
|
|
@ -211,9 +211,16 @@ class ProjectSourceView(View):
|
|||
name = name.split("?")[0]
|
||||
path = path.split("?")[0]
|
||||
project = Project.objects.filter(name=name).first()
|
||||
project_tree = projectTreeObj.get_project_tree_by_projectid(project.id)
|
||||
# project_tree = projectTreeObj.get_project_tree_by_projectid(project.id)
|
||||
return render(request, 'projects/source.html', locals())
|
||||
|
||||
class GetProjectJstreeView(View):
|
||||
def post(self, request):
|
||||
name = request.POST.get("project_name","")
|
||||
project = Project.objects.filter(name=name).first()
|
||||
project_tree = projectTreeObj.get_project_tree_by_projectid(project.id)
|
||||
return HttpResponse(json.dumps({"status": "success","jstree_content":project_tree}), content_type='application/json')
|
||||
|
||||
|
||||
#文件列表页
|
||||
class FileListlView(View):
|
||||
|
|
|
@ -1525,13 +1525,13 @@ pre.prettyprint {
|
|||
|
||||
.deg270{
|
||||
transform: rotate(270deg) !important;
|
||||
font-size: 10px;
|
||||
font-size: 15px;
|
||||
color: #8F8986;
|
||||
margin-left: 0rem;
|
||||
}
|
||||
.deg90{
|
||||
transform: rotate(90deg) !important;
|
||||
font-size: 10px;
|
||||
font-size: 15px;
|
||||
color: #8F8986;
|
||||
margin-left: 0rem;
|
||||
}
|
||||
|
|
|
@ -0,0 +1,54 @@
|
|||
.spinner {
|
||||
margin-left: 50px;
|
||||
margin-top: 200px;
|
||||
width: 50px;
|
||||
height: 60px;
|
||||
text-align: center;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.spinner > div {
|
||||
background-color: azure;
|
||||
height: 100%;
|
||||
width: 9px;
|
||||
margin-left: 1px;
|
||||
display: inline-block;
|
||||
|
||||
-webkit-animation: stretchdelay 1.2s infinite ease-in-out;
|
||||
animation: stretchdelay 1.2s infinite ease-in-out;
|
||||
}
|
||||
|
||||
.spinner .rect2 {
|
||||
-webkit-animation-delay: -1.1s;
|
||||
animation-delay: -1.1s;
|
||||
}
|
||||
|
||||
.spinner .rect3 {
|
||||
-webkit-animation-delay: -1.0s;
|
||||
animation-delay: -1.0s;
|
||||
}
|
||||
|
||||
.spinner .rect4 {
|
||||
-webkit-animation-delay: -0.9s;
|
||||
animation-delay: -0.9s;
|
||||
}
|
||||
|
||||
.spinner .rect5 {
|
||||
-webkit-animation-delay: -0.8s;
|
||||
animation-delay: -0.8s;
|
||||
}
|
||||
|
||||
@-webkit-keyframes stretchdelay {
|
||||
0%, 40%, 100% { -webkit-transform: scaleY(0.4) }
|
||||
20% { -webkit-transform: scaleY(1.0) }
|
||||
}
|
||||
|
||||
@keyframes stretchdelay {
|
||||
0%, 40%, 100% {
|
||||
transform: scaleY(0.4);
|
||||
-webkit-transform: scaleY(0.4);
|
||||
} 20% {
|
||||
transform: scaleY(1.0);
|
||||
-webkit-transform: scaleY(1.0);
|
||||
}
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
|
||||
|
||||
|
||||
function WebPageGuide(options) {
|
||||
var WPGnextvalType = getlocalStorage("WPGnextval ");
|
||||
|
@ -65,13 +65,13 @@ function WebPageGuide(options) {
|
|||
var img3;
|
||||
for(var i=0;i<content.length;i++){
|
||||
if(i===0){
|
||||
img1="<div class='Codelabeimg'><a href="+content[0].codepath+" target=\"_self\">"+1+"."+content[0].code+"</a></div>"
|
||||
img1="<div class='Codelabeimg'><a href="+content[0].codepath+" target=\"_blank\">"+1+"."+content[0].code+"</a></div>"
|
||||
}
|
||||
if(i===1){
|
||||
img2="<div class='Codelabeimg'><a href="+content[1].codepath+" target=\"_self\">"+2+"."+content[1].code+"</a></div>"
|
||||
img2="<div class='Codelabeimg'><a href="+content[1].codepath+" target=\"blank\">"+2+"."+content[1].code+"</a></div>"
|
||||
}
|
||||
if(i===2){
|
||||
img3="<div class='Codelabeimg'><a href="+content[2].codepath+" target=\"_self\">"+3+"."+content[2].code+"</a></div>"
|
||||
img3="<div class='Codelabeimg'><a href="+content[2].codepath+" target=\"blank\">"+3+"."+content[2].code+"</a></div>"
|
||||
}
|
||||
}
|
||||
img="<div>"+img1+img2+img3+"</div>";
|
||||
|
|
|
@ -0,0 +1,506 @@
|
|||
// Copyright (c) 2013 Pieroxy <pieroxy@pieroxy.net>
|
||||
// This work is free. You can redistribute it and/or modify it
|
||||
// under the terms of the WTFPL, Version 2
|
||||
// For more information see LICENSE.txt or http://www.wtfpl.net/
|
||||
//
|
||||
// For more information, the home page:
|
||||
// http://pieroxy.net/blog/pages/lz-string/testing.html
|
||||
//
|
||||
// LZ-based compression algorithm, version 1.4.4
|
||||
var LZString = (function() {
|
||||
|
||||
// private property
|
||||
var f = String.fromCharCode;
|
||||
var keyStrBase64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
||||
var keyStrUriSafe = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$";
|
||||
var baseReverseDic = {};
|
||||
|
||||
function getBaseValue(alphabet, character) {
|
||||
if (!baseReverseDic[alphabet]) {
|
||||
baseReverseDic[alphabet] = {};
|
||||
for (var i=0 ; i<alphabet.length ; i++) {
|
||||
baseReverseDic[alphabet][alphabet.charAt(i)] = i;
|
||||
}
|
||||
}
|
||||
return baseReverseDic[alphabet][character];
|
||||
}
|
||||
|
||||
var LZString = {
|
||||
compressToBase64 : function (input) {
|
||||
if (input == null) return "";
|
||||
var res = LZString._compress(input, 6, function(a){return keyStrBase64.charAt(a);});
|
||||
switch (res.length % 4) { // To produce valid Base64
|
||||
default: // When could this happen ?
|
||||
case 0 : return res;
|
||||
case 1 : return res+"===";
|
||||
case 2 : return res+"==";
|
||||
case 3 : return res+"=";
|
||||
}
|
||||
},
|
||||
|
||||
decompressFromBase64 : function (input) {
|
||||
if (input == null) return "";
|
||||
if (input == "") return null;
|
||||
return LZString._decompress(input.length, 32, function(index) { return getBaseValue(keyStrBase64, input.charAt(index)); });
|
||||
},
|
||||
|
||||
compressToUTF16 : function (input) {
|
||||
if (input == null) return "";
|
||||
return LZString._compress(input, 15, function(a){return f(a+32);}) + " ";
|
||||
},
|
||||
|
||||
decompressFromUTF16: function (compressed) {
|
||||
if (compressed == null) return "";
|
||||
if (compressed == "") return null;
|
||||
return LZString._decompress(compressed.length, 16384, function(index) { return compressed.charCodeAt(index) - 32; });
|
||||
},
|
||||
|
||||
//compress into uint8array (UCS-2 big endian format)
|
||||
compressToUint8Array: function (uncompressed) {
|
||||
var compressed = LZString.compress(uncompressed);
|
||||
var buf=new Uint8Array(compressed.length*2); // 2 bytes per character
|
||||
|
||||
for (var i=0, TotalLen=compressed.length; i<TotalLen; i++) {
|
||||
var current_value = compressed.charCodeAt(i);
|
||||
buf[i*2] = current_value >>> 8;
|
||||
buf[i*2+1] = current_value % 256;
|
||||
}
|
||||
return buf;
|
||||
},
|
||||
|
||||
//decompress from uint8array (UCS-2 big endian format)
|
||||
decompressFromUint8Array:function (compressed) {
|
||||
if (compressed===null || compressed===undefined){
|
||||
return LZString.decompress(compressed);
|
||||
} else {
|
||||
var buf=new Array(compressed.length/2); // 2 bytes per character
|
||||
for (var i=0, TotalLen=buf.length; i<TotalLen; i++) {
|
||||
buf[i]=compressed[i*2]*256+compressed[i*2+1];
|
||||
}
|
||||
|
||||
var result = [];
|
||||
buf.forEach(function (c) {
|
||||
result.push(f(c));
|
||||
});
|
||||
return LZString.decompress(result.join(''));
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
|
||||
//compress into a string that is already URI encoded
|
||||
compressToEncodedURIComponent: function (input) {
|
||||
if (input == null) return "";
|
||||
return LZString._compress(input, 6, function(a){return keyStrUriSafe.charAt(a);});
|
||||
},
|
||||
|
||||
//decompress from an output of compressToEncodedURIComponent
|
||||
decompressFromEncodedURIComponent:function (input) {
|
||||
if (input == null) return "";
|
||||
if (input == "") return null;
|
||||
input = input.replace(/ /g, "+");
|
||||
return LZString._decompress(input.length, 32, function(index) { return getBaseValue(keyStrUriSafe, input.charAt(index)); });
|
||||
},
|
||||
|
||||
compress: function (uncompressed) {
|
||||
return LZString._compress(uncompressed, 16, function(a){return f(a);});
|
||||
},
|
||||
_compress: function (uncompressed, bitsPerChar, getCharFromInt) {
|
||||
if (uncompressed == null) return "";
|
||||
var i, value,
|
||||
context_dictionary= {},
|
||||
context_dictionaryToCreate= {},
|
||||
context_c="",
|
||||
context_wc="",
|
||||
context_w="",
|
||||
context_enlargeIn= 2, // Compensate for the first entry which should not count
|
||||
context_dictSize= 3,
|
||||
context_numBits= 2,
|
||||
context_data=[],
|
||||
context_data_val=0,
|
||||
context_data_position=0,
|
||||
ii;
|
||||
|
||||
for (ii = 0; ii < uncompressed.length; ii += 1) {
|
||||
context_c = uncompressed.charAt(ii);
|
||||
if (!Object.prototype.hasOwnProperty.call(context_dictionary,context_c)) {
|
||||
context_dictionary[context_c] = context_dictSize++;
|
||||
context_dictionaryToCreate[context_c] = true;
|
||||
}
|
||||
|
||||
context_wc = context_w + context_c;
|
||||
if (Object.prototype.hasOwnProperty.call(context_dictionary,context_wc)) {
|
||||
context_w = context_wc;
|
||||
} else {
|
||||
if (Object.prototype.hasOwnProperty.call(context_dictionaryToCreate,context_w)) {
|
||||
if (context_w.charCodeAt(0)<256) {
|
||||
for (i=0 ; i<context_numBits ; i++) {
|
||||
context_data_val = (context_data_val << 1);
|
||||
if (context_data_position == bitsPerChar-1) {
|
||||
context_data_position = 0;
|
||||
context_data.push(getCharFromInt(context_data_val));
|
||||
context_data_val = 0;
|
||||
} else {
|
||||
context_data_position++;
|
||||
}
|
||||
}
|
||||
value = context_w.charCodeAt(0);
|
||||
for (i=0 ; i<8 ; i++) {
|
||||
context_data_val = (context_data_val << 1) | (value&1);
|
||||
if (context_data_position == bitsPerChar-1) {
|
||||
context_data_position = 0;
|
||||
context_data.push(getCharFromInt(context_data_val));
|
||||
context_data_val = 0;
|
||||
} else {
|
||||
context_data_position++;
|
||||
}
|
||||
value = value >> 1;
|
||||
}
|
||||
} else {
|
||||
value = 1;
|
||||
for (i=0 ; i<context_numBits ; i++) {
|
||||
context_data_val = (context_data_val << 1) | value;
|
||||
if (context_data_position ==bitsPerChar-1) {
|
||||
context_data_position = 0;
|
||||
context_data.push(getCharFromInt(context_data_val));
|
||||
context_data_val = 0;
|
||||
} else {
|
||||
context_data_position++;
|
||||
}
|
||||
value = 0;
|
||||
}
|
||||
value = context_w.charCodeAt(0);
|
||||
for (i=0 ; i<16 ; i++) {
|
||||
context_data_val = (context_data_val << 1) | (value&1);
|
||||
if (context_data_position == bitsPerChar-1) {
|
||||
context_data_position = 0;
|
||||
context_data.push(getCharFromInt(context_data_val));
|
||||
context_data_val = 0;
|
||||
} else {
|
||||
context_data_position++;
|
||||
}
|
||||
value = value >> 1;
|
||||
}
|
||||
}
|
||||
context_enlargeIn--;
|
||||
if (context_enlargeIn == 0) {
|
||||
context_enlargeIn = Math.pow(2, context_numBits);
|
||||
context_numBits++;
|
||||
}
|
||||
delete context_dictionaryToCreate[context_w];
|
||||
} else {
|
||||
value = context_dictionary[context_w];
|
||||
for (i=0 ; i<context_numBits ; i++) {
|
||||
context_data_val = (context_data_val << 1) | (value&1);
|
||||
if (context_data_position == bitsPerChar-1) {
|
||||
context_data_position = 0;
|
||||
context_data.push(getCharFromInt(context_data_val));
|
||||
context_data_val = 0;
|
||||
} else {
|
||||
context_data_position++;
|
||||
}
|
||||
value = value >> 1;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
context_enlargeIn--;
|
||||
if (context_enlargeIn == 0) {
|
||||
context_enlargeIn = Math.pow(2, context_numBits);
|
||||
context_numBits++;
|
||||
}
|
||||
// Add wc to the dictionary.
|
||||
context_dictionary[context_wc] = context_dictSize++;
|
||||
context_w = String(context_c);
|
||||
}
|
||||
}
|
||||
|
||||
// Output the code for w.
|
||||
if (context_w !== "") {
|
||||
if (Object.prototype.hasOwnProperty.call(context_dictionaryToCreate,context_w)) {
|
||||
if (context_w.charCodeAt(0)<256) {
|
||||
for (i=0 ; i<context_numBits ; i++) {
|
||||
context_data_val = (context_data_val << 1);
|
||||
if (context_data_position == bitsPerChar-1) {
|
||||
context_data_position = 0;
|
||||
context_data.push(getCharFromInt(context_data_val));
|
||||
context_data_val = 0;
|
||||
} else {
|
||||
context_data_position++;
|
||||
}
|
||||
}
|
||||
value = context_w.charCodeAt(0);
|
||||
for (i=0 ; i<8 ; i++) {
|
||||
context_data_val = (context_data_val << 1) | (value&1);
|
||||
if (context_data_position == bitsPerChar-1) {
|
||||
context_data_position = 0;
|
||||
context_data.push(getCharFromInt(context_data_val));
|
||||
context_data_val = 0;
|
||||
} else {
|
||||
context_data_position++;
|
||||
}
|
||||
value = value >> 1;
|
||||
}
|
||||
} else {
|
||||
value = 1;
|
||||
for (i=0 ; i<context_numBits ; i++) {
|
||||
context_data_val = (context_data_val << 1) | value;
|
||||
if (context_data_position == bitsPerChar-1) {
|
||||
context_data_position = 0;
|
||||
context_data.push(getCharFromInt(context_data_val));
|
||||
context_data_val = 0;
|
||||
} else {
|
||||
context_data_position++;
|
||||
}
|
||||
value = 0;
|
||||
}
|
||||
value = context_w.charCodeAt(0);
|
||||
for (i=0 ; i<16 ; i++) {
|
||||
context_data_val = (context_data_val << 1) | (value&1);
|
||||
if (context_data_position == bitsPerChar-1) {
|
||||
context_data_position = 0;
|
||||
context_data.push(getCharFromInt(context_data_val));
|
||||
context_data_val = 0;
|
||||
} else {
|
||||
context_data_position++;
|
||||
}
|
||||
value = value >> 1;
|
||||
}
|
||||
}
|
||||
context_enlargeIn--;
|
||||
if (context_enlargeIn == 0) {
|
||||
context_enlargeIn = Math.pow(2, context_numBits);
|
||||
context_numBits++;
|
||||
}
|
||||
delete context_dictionaryToCreate[context_w];
|
||||
} else {
|
||||
value = context_dictionary[context_w];
|
||||
for (i=0 ; i<context_numBits ; i++) {
|
||||
context_data_val = (context_data_val << 1) | (value&1);
|
||||
if (context_data_position == bitsPerChar-1) {
|
||||
context_data_position = 0;
|
||||
context_data.push(getCharFromInt(context_data_val));
|
||||
context_data_val = 0;
|
||||
} else {
|
||||
context_data_position++;
|
||||
}
|
||||
value = value >> 1;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
context_enlargeIn--;
|
||||
if (context_enlargeIn == 0) {
|
||||
context_enlargeIn = Math.pow(2, context_numBits);
|
||||
context_numBits++;
|
||||
}
|
||||
}
|
||||
|
||||
// Mark the end of the stream
|
||||
value = 2;
|
||||
for (i=0 ; i<context_numBits ; i++) {
|
||||
context_data_val = (context_data_val << 1) | (value&1);
|
||||
if (context_data_position == bitsPerChar-1) {
|
||||
context_data_position = 0;
|
||||
context_data.push(getCharFromInt(context_data_val));
|
||||
context_data_val = 0;
|
||||
} else {
|
||||
context_data_position++;
|
||||
}
|
||||
value = value >> 1;
|
||||
}
|
||||
|
||||
// Flush the last char
|
||||
while (true) {
|
||||
context_data_val = (context_data_val << 1);
|
||||
if (context_data_position == bitsPerChar-1) {
|
||||
context_data.push(getCharFromInt(context_data_val));
|
||||
break;
|
||||
}
|
||||
else context_data_position++;
|
||||
}
|
||||
return context_data.join('');
|
||||
},
|
||||
|
||||
decompress: function (compressed) {
|
||||
if (compressed == null) return "";
|
||||
if (compressed == "") return null;
|
||||
return LZString._decompress(compressed.length, 32768, function(index) { return compressed.charCodeAt(index); });
|
||||
},
|
||||
|
||||
_decompress: function (length, resetValue, getNextValue) {
|
||||
var dictionary = [],
|
||||
next,
|
||||
enlargeIn = 4,
|
||||
dictSize = 4,
|
||||
numBits = 3,
|
||||
entry = "",
|
||||
result = [],
|
||||
i,
|
||||
w,
|
||||
bits, resb, maxpower, power,
|
||||
c,
|
||||
data = {val:getNextValue(0), position:resetValue, index:1};
|
||||
|
||||
for (i = 0; i < 3; i += 1) {
|
||||
dictionary[i] = i;
|
||||
}
|
||||
|
||||
bits = 0;
|
||||
maxpower = Math.pow(2,2);
|
||||
power=1;
|
||||
while (power!=maxpower) {
|
||||
resb = data.val & data.position;
|
||||
data.position >>= 1;
|
||||
if (data.position == 0) {
|
||||
data.position = resetValue;
|
||||
data.val = getNextValue(data.index++);
|
||||
}
|
||||
bits |= (resb>0 ? 1 : 0) * power;
|
||||
power <<= 1;
|
||||
}
|
||||
|
||||
switch (next = bits) {
|
||||
case 0:
|
||||
bits = 0;
|
||||
maxpower = Math.pow(2,8);
|
||||
power=1;
|
||||
while (power!=maxpower) {
|
||||
resb = data.val & data.position;
|
||||
data.position >>= 1;
|
||||
if (data.position == 0) {
|
||||
data.position = resetValue;
|
||||
data.val = getNextValue(data.index++);
|
||||
}
|
||||
bits |= (resb>0 ? 1 : 0) * power;
|
||||
power <<= 1;
|
||||
}
|
||||
c = f(bits);
|
||||
break;
|
||||
case 1:
|
||||
bits = 0;
|
||||
maxpower = Math.pow(2,16);
|
||||
power=1;
|
||||
while (power!=maxpower) {
|
||||
resb = data.val & data.position;
|
||||
data.position >>= 1;
|
||||
if (data.position == 0) {
|
||||
data.position = resetValue;
|
||||
data.val = getNextValue(data.index++);
|
||||
}
|
||||
bits |= (resb>0 ? 1 : 0) * power;
|
||||
power <<= 1;
|
||||
}
|
||||
c = f(bits);
|
||||
break;
|
||||
case 2:
|
||||
return "";
|
||||
}
|
||||
dictionary[3] = c;
|
||||
w = c;
|
||||
result.push(c);
|
||||
while (true) {
|
||||
if (data.index > length) {
|
||||
return "";
|
||||
}
|
||||
|
||||
bits = 0;
|
||||
maxpower = Math.pow(2,numBits);
|
||||
power=1;
|
||||
while (power!=maxpower) {
|
||||
resb = data.val & data.position;
|
||||
data.position >>= 1;
|
||||
if (data.position == 0) {
|
||||
data.position = resetValue;
|
||||
data.val = getNextValue(data.index++);
|
||||
}
|
||||
bits |= (resb>0 ? 1 : 0) * power;
|
||||
power <<= 1;
|
||||
}
|
||||
|
||||
switch (c = bits) {
|
||||
case 0:
|
||||
bits = 0;
|
||||
maxpower = Math.pow(2,8);
|
||||
power=1;
|
||||
while (power!=maxpower) {
|
||||
resb = data.val & data.position;
|
||||
data.position >>= 1;
|
||||
if (data.position == 0) {
|
||||
data.position = resetValue;
|
||||
data.val = getNextValue(data.index++);
|
||||
}
|
||||
bits |= (resb>0 ? 1 : 0) * power;
|
||||
power <<= 1;
|
||||
}
|
||||
|
||||
dictionary[dictSize++] = f(bits);
|
||||
c = dictSize-1;
|
||||
enlargeIn--;
|
||||
break;
|
||||
case 1:
|
||||
bits = 0;
|
||||
maxpower = Math.pow(2,16);
|
||||
power=1;
|
||||
while (power!=maxpower) {
|
||||
resb = data.val & data.position;
|
||||
data.position >>= 1;
|
||||
if (data.position == 0) {
|
||||
data.position = resetValue;
|
||||
data.val = getNextValue(data.index++);
|
||||
}
|
||||
bits |= (resb>0 ? 1 : 0) * power;
|
||||
power <<= 1;
|
||||
}
|
||||
dictionary[dictSize++] = f(bits);
|
||||
c = dictSize-1;
|
||||
enlargeIn--;
|
||||
break;
|
||||
case 2:
|
||||
return result.join('');
|
||||
}
|
||||
|
||||
if (enlargeIn == 0) {
|
||||
enlargeIn = Math.pow(2, numBits);
|
||||
numBits++;
|
||||
}
|
||||
|
||||
if (dictionary[c]) {
|
||||
entry = dictionary[c];
|
||||
} else {
|
||||
if (c === dictSize) {
|
||||
entry = w + w.charAt(0);
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
result.push(entry);
|
||||
|
||||
// Add w+entry[0] to the dictionary.
|
||||
dictionary[dictSize++] = w + entry.charAt(0);
|
||||
enlargeIn--;
|
||||
|
||||
w = entry;
|
||||
|
||||
if (enlargeIn == 0) {
|
||||
enlargeIn = Math.pow(2, numBits);
|
||||
numBits++;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
};
|
||||
return LZString;
|
||||
})();
|
||||
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
define(function () { return LZString; });
|
||||
} else if( typeof module !== 'undefined' && module != null ) {
|
||||
module.exports = LZString
|
||||
} else if( typeof angular !== 'undefined' && angular != null ) {
|
||||
angular.module('LZString', [])
|
||||
.factory('LZString', function () {
|
||||
return LZString;
|
||||
});
|
||||
}
|
|
@ -1101,18 +1101,15 @@ function add_tab(project_id,path,filename) {
|
|||
|
||||
// var tree_node = $("#jstree").jstree("get_selected");
|
||||
var path_before = path
|
||||
//需要将path处理一下,因为css样式中/以及.是不行的
|
||||
// tmp_index = path.indexOf("#");
|
||||
// if(tmp_index != -1){
|
||||
// path = path.substring(0,tmp_index)
|
||||
// }
|
||||
|
||||
var returnValue = get_path_link_and_archor(path)
|
||||
var path_after = returnValue[0]
|
||||
// 正常应该得到的path为normal path
|
||||
var normal_path = returnValue[0]
|
||||
var archor = returnValue[1]
|
||||
|
||||
path = path_predeal(path_after)
|
||||
path = path_predeal(normal_path)
|
||||
if (tabSet.has(path)) {
|
||||
open_tab(path_after,archor)
|
||||
open_tab(normal_path,archor)
|
||||
} else {
|
||||
var tab_tag = document.getElementsByClassName("tab_head")[0];
|
||||
//添加tab
|
||||
|
@ -1135,7 +1132,7 @@ function add_tab(project_id,path,filename) {
|
|||
tag_a1.textContent = filename
|
||||
tag_a1.onclick = (function () {
|
||||
return function () {
|
||||
open_tab(path_after,null);
|
||||
open_tab(normal_path,null);
|
||||
}
|
||||
})();
|
||||
|
||||
|
@ -1144,7 +1141,7 @@ function add_tab(project_id,path,filename) {
|
|||
tag_a2.textContent = '×'
|
||||
tag_a2.onclick = (function () {
|
||||
return function () {
|
||||
close_tab(path_after);
|
||||
close_tab(normal_path);
|
||||
}
|
||||
})();
|
||||
|
||||
|
@ -1166,7 +1163,7 @@ function add_tab(project_id,path,filename) {
|
|||
cache: false,
|
||||
type: "POST",
|
||||
url: '/operations/right/',
|
||||
data: { 'project_id': project_id, 'path': path_after},
|
||||
data: { 'project_id': project_id, 'path': normal_path},
|
||||
dataType: 'json',
|
||||
async: true,
|
||||
beforeSend: function (xhr, settings) {
|
||||
|
@ -1191,7 +1188,7 @@ function add_tab(project_id,path,filename) {
|
|||
cache: false,
|
||||
type: "POST",
|
||||
url: '/operations/get_codereading_content/',
|
||||
data: { 'project_id': project_id, 'path': path_after },
|
||||
data: { 'project_id': project_id, 'path': normal_path },
|
||||
dataType: 'json',
|
||||
async: true,
|
||||
beforeSend: function (xhr, settings) {
|
||||
|
@ -1205,7 +1202,7 @@ function add_tab(project_id,path,filename) {
|
|||
if(data.is_dir=="0"){
|
||||
var content = generate_codereading_content(data.lines,data.self_annos,data.fileid,data.annos_count,data.issues_count,data.questions_count,data.issues,data.language)
|
||||
div_codereading.innerHTML = content;
|
||||
open_tab(path_after,archor);
|
||||
open_tab(normal_path,archor);
|
||||
|
||||
hljs.configure({useBR: false});
|
||||
// hljs.highlightBlock(div_codereading)
|
||||
|
@ -1218,7 +1215,7 @@ function add_tab(project_id,path,filename) {
|
|||
}else{
|
||||
var content = data.html_str
|
||||
div_codereading.innerHTML = content;
|
||||
open_tab(path_after,archor);
|
||||
open_tab(normal_path,archor);
|
||||
}
|
||||
|
||||
// 如果包含#
|
||||
|
@ -1239,7 +1236,7 @@ function add_tab(project_id,path,filename) {
|
|||
}
|
||||
});
|
||||
|
||||
open_tab(path_after,archor);
|
||||
open_tab(normal_path,archor);
|
||||
|
||||
// 现在Hotest Question 模块先不用了
|
||||
// // 填充hotest_question
|
||||
|
@ -1247,7 +1244,7 @@ function add_tab(project_id,path,filename) {
|
|||
// cache: false,
|
||||
// type: "POST",
|
||||
// url: '/operations/get_hotest_issues/',
|
||||
// data: { 'project_id': project_id, 'path': path_after,"question_num":5 },
|
||||
// data: { 'project_id': project_id, 'path': normal_path,"question_num":5 },
|
||||
// dataType: 'json',
|
||||
// async: true,
|
||||
// beforeSend: function (xhr, settings) {
|
||||
|
@ -1263,6 +1260,14 @@ function add_tab(project_id,path,filename) {
|
|||
// }
|
||||
// });
|
||||
|
||||
highlight_jstree_node(project_id,normal_path);
|
||||
|
||||
tabSet.add(path);
|
||||
}
|
||||
}
|
||||
|
||||
function highlight_jstree_node(project_id,path_after){
|
||||
path = path_predeal(path_after)
|
||||
$.ajax({
|
||||
cache: false,
|
||||
type: "POST",
|
||||
|
@ -1279,10 +1284,7 @@ function add_tab(project_id,path,filename) {
|
|||
tree_nodes[path]=tree_node
|
||||
$('#jstree').jstree("deselect_all", true);
|
||||
$('#jstree').jstree("select_node", tree_nodes[path]);
|
||||
setTimeout(function timer() {
|
||||
var offsettop=$("#"+tree_nodes[path]).position().top;
|
||||
$("#filelist-content").scrollTop(offsettop);
|
||||
},500)
|
||||
// location.href="#"+tree_node
|
||||
}
|
||||
},error:function(jqXHR, textStatus, errorThrown){
|
||||
if(jqXHR.readyState===0&&jqXHR.status===0){
|
||||
|
@ -1290,9 +1292,6 @@ function add_tab(project_id,path,filename) {
|
|||
}
|
||||
}
|
||||
});
|
||||
|
||||
tabSet.add(path);
|
||||
}
|
||||
}
|
||||
// 这里也可以更改为item,传入this
|
||||
function close_tab(path) {
|
||||
|
@ -1952,11 +1951,10 @@ function deal_votetag_color(vote_tag,msg,vote_value){
|
|||
}
|
||||
}
|
||||
}
|
||||
$(function(){
|
||||
url = window.location.href;
|
||||
$('#jstree').jstree();
|
||||
$("#jstree").jstree("open_node", $("#j1_1"));
|
||||
$("#jstree").css("visibility","visible");
|
||||
|
||||
|
||||
function get_addtab_paras(){
|
||||
var url = window.location.href;
|
||||
$.ajax({
|
||||
cache: false,
|
||||
type: "POST",
|
||||
|
@ -1970,30 +1968,13 @@ $(function(){
|
|||
success: function (data) {
|
||||
if (data.status === 'success') {
|
||||
// 展开当前标签对应的节点
|
||||
$('#jstree').jstree("deselect_all", true);
|
||||
$('#jstree').jstree("select_node", "j1_1355554");
|
||||
// 第一个标签页对应的id,保存在first_tabs_jstree_id中
|
||||
|
||||
// var first_tabs_jstree_id = data.first_tabs_jstree_id
|
||||
|
||||
//需要将path处理一下,因为css样式中/以及.是不行的
|
||||
// var returnValue = get_path_link_and_archor(path)
|
||||
// var path_input = returnValue[0]
|
||||
// var archor = returnValue[1]
|
||||
|
||||
// path_after = path_predeal(path_input)
|
||||
// 加入tree_nodes中
|
||||
// tree_nodes[path_after] = first_tabs_jstree_id
|
||||
|
||||
project_id=data.project_id
|
||||
path = data.path
|
||||
filename = data.filename
|
||||
|
||||
|
||||
url_deal(get_path_link_and_archor(path)[0],null)
|
||||
add_tab(data.project_id, data.path, data.filename)
|
||||
// 特殊处理,因为add_tab的逻辑会影响tree_nodes(),所以进行了处理
|
||||
// tree_nodes[path_after] = first_tabs_jstree_id
|
||||
// 加载页面后再加载jstree
|
||||
load_jstree(data.project_id,data.path)
|
||||
}
|
||||
},error:function(jqXHR, textStatus, errorThrown){
|
||||
if(jqXHR.readyState===0&&jqXHR.status===0){
|
||||
|
@ -2001,6 +1982,61 @@ $(function(){
|
|||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function load_jstree(project_id,path){
|
||||
|
||||
// display_loading();
|
||||
var url = window.location.href;
|
||||
var projectName= $("#projectName").text();
|
||||
// 先从本地缓存中取,如果没有再向服务器请求
|
||||
var compressed_content = getlocalStorage("jstree-"+projectName)
|
||||
if(compressed_content !=null){
|
||||
jstree_content = LZString.decompress(compressed_content)
|
||||
init_jstree(project_id,path,jstree_content)
|
||||
}else{
|
||||
$.ajax({
|
||||
cache: false,
|
||||
type: "POST",
|
||||
url: '/projects/get_project_jstree/',
|
||||
data: { 'project_name': projectName },
|
||||
dataType: 'json',
|
||||
async: true,
|
||||
beforeSend: function (xhr, settings) {
|
||||
xhr.setRequestHeader("X-CSRFToken", csrftoken);
|
||||
},
|
||||
success: function (data) {
|
||||
if (data.status === 'success') {
|
||||
try{
|
||||
compressed_content = LZString.compress(data.jstree_content)
|
||||
setlocalStorage("jstree-"+projectName,compressed_content)
|
||||
}catch(error){
|
||||
console.log(error)
|
||||
}finally{
|
||||
init_jstree(project_id,path,data.jstree_content)
|
||||
}
|
||||
}
|
||||
},error:function(jqXHR, textStatus, errorThrown){
|
||||
if(jqXHR.readyState===0&&jqXHR.status===0){
|
||||
alert('网络故障,提交失败!请联网后重新提交');
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function init_jstree(project_id,path,content){
|
||||
$("#filelist-content").html(content)
|
||||
$(".spinner").after(content);
|
||||
$('#jstree').jstree();
|
||||
$(".spinner").remove();
|
||||
$("#jstree").jstree("open_node", $("#j1_1"));
|
||||
$("#jstree").css("visibility","visible");
|
||||
highlight_jstree_node(project_id,path)
|
||||
}
|
||||
|
||||
$(function(){
|
||||
get_addtab_paras()
|
||||
})
|
||||
|
||||
// window.onload=function(){
|
||||
|
|
|
@ -6,17 +6,18 @@
|
|||
{% if linenum == 0 %}
|
||||
{% if isdir == 0 %}
|
||||
<p class="ques-title">
|
||||
该代码文件共有{{ annotation_length }}个注释,您可见{{ annos|length }}个注释
|
||||
{% comment %} 您可见{{ annos|length }}个注释 {% endcomment %}
|
||||
该代码文件共有{{ annotation_length }}个注释,比赛结束后全部可见
|
||||
</p>
|
||||
{% endif %}
|
||||
{% if isdir == 1 %}
|
||||
<p class="ques-title">
|
||||
该代码模块共有{{ annotation_length }}个注释,您可见{{ annos |length}}个注释
|
||||
该代码模块共有{{ annotation_length }}个注释,比赛结束后全部可见
|
||||
</p>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<p class="ques-title">
|
||||
该行共有{{annotation_length}}个注释,您可见{{ annos |length}}个注释
|
||||
该行或该代码块共有{{annotation_length}}个注释,比赛结束后全部可见
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
<ul class="nav navbar-nav navbar-right" style="margin-right: 0px!important;">
|
||||
<li style="margin-right:20px" class="pr downList-panel fr">
|
||||
<img width="38" height="38" style='margin-top: 5px;float:left' src="/static/image/users/default.png" />
|
||||
{% if request.user.nick_name == "" %}
|
||||
<span>{{request.user.username}}</span>
|
||||
{% else %}
|
||||
<span>{{request.user.nick_name}}</span>
|
||||
{% endif %}
|
||||
<i class="fa fa-caret-down color-grey-c fl mt22 ml5"></i>
|
||||
<ul class="downList">
|
||||
<li><a href="{% url 'users:userinfo' %}">进入个人中心</a></li>
|
||||
|
|
|
@ -14,16 +14,21 @@
|
|||
<div class="fl comments-right" >
|
||||
<div class="question-comment">
|
||||
<p>
|
||||
{% if request.user.nick_name == "" %}
|
||||
<span class="comments-name">{{answer.user.username}}</span>
|
||||
{% else %}
|
||||
<span class="comments-name">{{answer.user.nick_name}}</span>
|
||||
{% endif %}
|
||||
|
||||
<span class="font-12 color-grey-c">10分钟前</span>
|
||||
</p>
|
||||
<div class="comments-content">{{answer.content}}</div>
|
||||
<div class="otherComments">
|
||||
<!-- <div class="otherComments">
|
||||
<p>
|
||||
<span class="comments-name">小小</span>
|
||||
</p>
|
||||
<div class="comments-content">向你学习</div>
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
</script>
|
||||
<script type="application/javascript" src="{% static 'js/jquery-1.8.3-ui-1.9.2-ujs-2.0.3.js' %}"></script>
|
||||
<script type="application/javascript" src="{% static 'js/prettify.js' %}"></script>
|
||||
<script type="application/javascript" src="{% static 'js/source.js' %}"></script>
|
||||
<script type="application/javascript" src="{% static 'js/WebPageGuide.js' %}"></script>
|
||||
<script type="application/javascript" src="{% static 'js/jquery-ui.min.js' %}"></script>
|
||||
<script type="application/javascript" src="{% static 'js/layer.js' %}"></script>
|
||||
|
@ -25,6 +24,7 @@
|
|||
|
||||
<link rel="stylesheet" type="text/css" href="{% static 'css/prettify.css' %}">
|
||||
<link rel="stylesheet" type="text/css" href="{% static 'css/code_show.css' %}">
|
||||
<link rel="stylesheet" type="text/css" href="{% static 'css/load.css' %}">
|
||||
|
||||
<!-- jstree -->
|
||||
{# <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jstree/3.2.1/themes/default/style.min.css" />#}
|
||||
|
@ -40,6 +40,9 @@
|
|||
<title>CodePedia-{{ project.name }}</title>
|
||||
<link href="https://cdn.bootcss.com/jqueryui/1.12.1/jquery-ui.css" rel="stylesheet">
|
||||
<script src="https://cdn.bootcss.com/jqueryui/1.12.1/jquery-ui.min.js"></script>
|
||||
|
||||
<!-- 要求与codepeida的保持一致 -->
|
||||
<script type="application/javascript" src="{% static 'js/lz-string.js' %}"></script>
|
||||
</head>
|
||||
|
||||
<body id="codepanel">
|
||||
|
@ -180,6 +183,7 @@
|
|||
<span id="first_tabs_jstree_id">{{ first_tabs_jstree_id }}</span>
|
||||
|
||||
</body>
|
||||
|
||||
<script>
|
||||
var tempnum=0;
|
||||
|
||||
|
@ -247,5 +251,18 @@
|
|||
steplist.startGuide();
|
||||
}
|
||||
</script>
|
||||
|
||||
<script>
|
||||
function display_loading(){
|
||||
$("#filelist-content").html('<div class="spinner"><div class="rect1"></div><div class="rect2"></div><div class="rect3"></div><div class="rect4"></div><div class="rect5"></div></div>')
|
||||
}
|
||||
|
||||
$(function(){
|
||||
display_loading()
|
||||
});
|
||||
</script>
|
||||
|
||||
<script type="application/javascript" src="{% static 'js/source.js' %}"></script>
|
||||
|
||||
</html>
|
||||
|
||||
|
|
212
uwsgi.log
212
uwsgi.log
|
@ -23981,3 +23981,215 @@ worker 6 buried after 1 seconds
|
|||
goodbye to uWSGI.
|
||||
VACUUM: pidfile removed.
|
||||
VACUUM WARNING: unix socket /projects/codepedia/codepedia2/my_sock.sock changed inode. Skip removal
|
||||
*** Starting uWSGI 2.0.17 (64bit) on [Thu Sep 27 18:05:30 2018] ***
|
||||
compiled with version: 4.7.4 on 01 July 2018 07:56:49
|
||||
os: Linux-4.4.0-112-generic #135-Ubuntu SMP Fri Jan 19 11:48:36 UTC 2018
|
||||
nodename: 10-23-6-29
|
||||
machine: x86_64
|
||||
clock source: unix
|
||||
detected number of CPU cores: 4
|
||||
current working directory: /projects/codepedia-test/codepedia2
|
||||
writing pidfile to uwsgi.pid
|
||||
detected binary path: /root/[A/envs/codepedia2/bin/uwsgi
|
||||
!!! no internal routing support, rebuild with pcre support !!!
|
||||
uWSGI running as root, you can use --uid/--gid/--chroot options
|
||||
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
|
||||
chdir() to /projects/codepedia/codepedia2/
|
||||
your processes number limit is 64113
|
||||
your memory page size is 4096 bytes
|
||||
detected max file descriptor number: 1000000
|
||||
lock engine: pthread robust mutexes
|
||||
thunder lock: disabled (you can enable it with --thunder-lock)
|
||||
uwsgi socket 0 bound to UNIX address /projects/codepedia/codepedia2/my_sock.sock fd 3
|
||||
uWSGI running as root, you can use --uid/--gid/--chroot options
|
||||
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
|
||||
Python version: 3.6.5 |Anaconda, Inc.| (default, Apr 29 2018, 16:14:56) [GCC 7.2.0]
|
||||
Python main interpreter initialized at 0x1c9a0d0
|
||||
uWSGI running as root, you can use --uid/--gid/--chroot options
|
||||
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
|
||||
python threads support enabled
|
||||
your server socket listen backlog is limited to 100 connections
|
||||
your mercy for graceful operations on workers is 60 seconds
|
||||
mapped 583408 bytes (569 KB) for 12 cores
|
||||
*** Operational MODE: preforking+threaded ***
|
||||
WSGI app 0 (mountpoint='') ready in 1 seconds on interpreter 0x1c9a0d0 pid: 12524 (default app)
|
||||
uWSGI running as root, you can use --uid/--gid/--chroot options
|
||||
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
|
||||
*** uWSGI is running in multiple interpreter mode ***
|
||||
spawned uWSGI master process (pid: 12524)
|
||||
spawned uWSGI worker 1 (pid: 12526, cores: 2)
|
||||
spawned uWSGI worker 2 (pid: 12527, cores: 2)
|
||||
spawned uWSGI worker 3 (pid: 12529, cores: 2)
|
||||
spawned uWSGI worker 4 (pid: 12531, cores: 2)
|
||||
spawned uWSGI worker 5 (pid: 12533, cores: 2)
|
||||
spawned uWSGI worker 6 (pid: 12535, cores: 2)
|
||||
init
|
||||
[pid: 12527|app: 0|req: 1/1] 106.19.175.116 () {42 vars in 818 bytes} [Thu Sep 27 18:05:40 2018] GET / => generated 12910 bytes in 535 msecs (HTTP/1.1 200) 4 headers in 125 bytes (1 switches on core 0)
|
||||
init
|
||||
init
|
||||
init
|
||||
[pid: 12533|app: 0|req: 2/2] 110.53.183.79 () {50 vars in 1119 bytes} [Thu Sep 27 18:05:44 2018] POST /operations/show_navigation/ => generated 139 bytes in 412 msecs (HTTP/1.1 200) 3 headers in 101 bytes (1 switches on core 0)
|
||||
False
|
||||
[pid: 12535|app: 0|req: 1/3] 110.53.183.79 () {50 vars in 1118 bytes} [Thu Sep 27 18:05:44 2018] POST /operations/get_codereading_content/ => generated 62272 bytes in 509 msecs (HTTP/1.1 200) 4 headers in 117 bytes (1 switches on core 1)
|
||||
1196 2 0
|
||||
[pid: 12526|app: 0|req: 1/4] 110.53.183.79 () {50 vars in 1082 bytes} [Thu Sep 27 18:05:44 2018] POST /operations/right/ => generated 8294 bytes in 565 msecs (HTTP/1.1 200) 3 headers in 102 bytes (2 switches on core 0)
|
||||
[pid: 12533|app: 0|req: 2/5] 110.53.183.79 () {50 vars in 1115 bytes} [Thu Sep 27 18:05:44 2018] POST /operations/get_jstree_id/ => generated 46 bytes in 600 msecs (HTTP/1.1 200) 3 headers in 100 bytes (1 switches on core 1)
|
||||
init
|
||||
[pid: 12529|app: 0|req: 1/6] 106.19.175.116 () {44 vars in 897 bytes} [Thu Sep 27 18:05:45 2018] GET /projects/pytorch/ => generated 11857 bytes in 386 msecs (HTTP/1.1 200) 4 headers in 125 bytes (1 switches on core 0)
|
||||
[pid: 12527|app: 0|req: 2/7] 106.19.175.116 () {52 vars in 1113 bytes} [Thu Sep 27 18:05:46 2018] POST /operations/get_addtab_paras/ => generated 106 bytes in 69 msecs (HTTP/1.1 200) 3 headers in 101 bytes (1 switches on core 1)
|
||||
[pid: 12527|app: 0|req: 3/8] 106.19.175.116 () {52 vars in 1113 bytes} [Thu Sep 27 18:05:46 2018] POST /projects/get_project_jstree/ => generated 934011 bytes in 18 msecs (HTTP/1.1 200) 3 headers in 104 bytes (1 switches on core 0)
|
||||
[pid: 12535|app: 0|req: 2/9] 106.19.175.116 () {52 vars in 1111 bytes} [Thu Sep 27 18:05:46 2018] POST /operations/show_navigation/ => generated 35 bytes in 37 msecs (HTTP/1.1 200) 3 headers in 100 bytes (1 switches on core 0)
|
||||
True
|
||||
[pid: 12529|app: 0|req: 2/10] 106.19.175.116 () {52 vars in 1091 bytes} [Thu Sep 27 18:05:46 2018] POST /operations/right/ => generated 8039 bytes in 111 msecs (HTTP/1.1 200) 3 headers in 102 bytes (1 switches on core 1)
|
||||
[pid: 12526|app: 0|req: 2/11] 106.19.175.116 () {52 vars in 1107 bytes} [Thu Sep 27 18:05:46 2018] POST /operations/get_jstree_id/ => generated 42 bytes in 118 msecs (HTTP/1.1 200) 3 headers in 100 bytes (1 switches on core 1)
|
||||
init
|
||||
[pid: 12531|app: 0|req: 1/12] 106.19.175.116 () {52 vars in 1127 bytes} [Thu Sep 27 18:05:46 2018] POST /operations/get_codereading_content/ => generated 4709 bytes in 453 msecs (HTTP/1.1 200) 3 headers in 102 bytes (1 switches on core 0)
|
||||
[pid: 12531|app: 0|req: 2/13] 106.19.175.116 () {52 vars in 1107 bytes} [Thu Sep 27 18:05:52 2018] POST /operations/get_jstree_id/ => generated 42 bytes in 106 msecs (HTTP/1.1 200) 3 headers in 100 bytes (2 switches on core 1)
|
||||
[pid: 12535|app: 0|req: 3/14] 106.19.175.116 () {42 vars in 836 bytes} [Thu Sep 27 18:06:01 2018] GET /projects/ => generated 12910 bytes in 172 msecs (HTTP/1.1 200) 4 headers in 125 bytes (2 switches on core 1)
|
||||
[pid: 12529|app: 0|req: 3/15] 106.19.175.116 () {44 vars in 920 bytes} [Thu Sep 27 18:06:03 2018] GET /projects/OpenStack-nova/ => generated 11885 bytes in 37 msecs (HTTP/1.1 200) 4 headers in 125 bytes (2 switches on core 0)
|
||||
[pid: 12527|app: 0|req: 4/16] 106.19.175.116 () {52 vars in 1120 bytes} [Thu Sep 27 18:06:03 2018] POST /operations/get_addtab_paras/ => generated 113 bytes in 99 msecs (HTTP/1.1 200) 3 headers in 101 bytes (2 switches on core 0)
|
||||
True
|
||||
[pid: 12527|app: 0|req: 6/17] 106.19.175.116 () {52 vars in 1118 bytes} [Thu Sep 27 18:06:04 2018] POST /operations/show_navigation/ => generated 35 bytes in 57 msecs (HTTP/1.1 200) 3 headers in 100 bytes (1 switches on core 0)
|
||||
[pid: 12527|app: 0|req: 6/18] 106.19.175.116 () {52 vars in 1098 bytes} [Thu Sep 27 18:06:04 2018] POST /operations/right/ => generated 8054 bytes in 72 msecs (HTTP/1.1 200) 3 headers in 102 bytes (1 switches on core 1)
|
||||
[pid: 12529|app: 0|req: 4/19] 106.19.175.116 () {52 vars in 1134 bytes} [Thu Sep 27 18:06:04 2018] POST /operations/get_codereading_content/ => generated 4554 bytes in 80 msecs (HTTP/1.1 200) 3 headers in 102 bytes (1 switches on core 1)
|
||||
[pid: 12527|app: 0|req: 7/20] 106.19.175.116 () {52 vars in 1114 bytes} [Thu Sep 27 18:06:04 2018] POST /operations/get_jstree_id/ => generated 42 bytes in 51 msecs (HTTP/1.1 200) 3 headers in 100 bytes (1 switches on core 0)
|
||||
Not Found: /favicon.ico
|
||||
[pid: 12529|app: 0|req: 5/21] 167.99.89.110 () {38 vars in 617 bytes} [Thu Sep 27 18:06:05 2018] GET /favicon.ico => generated 3098 bytes in 7 msecs (HTTP/1.1 404) 3 headers in 102 bytes (1 switches on core 0)
|
||||
[pid: 12527|app: 0|req: 8/22] 106.19.175.116 () {52 vars in 1114 bytes} [Thu Sep 27 18:06:06 2018] POST /operations/get_jstree_id/ => generated 42 bytes in 1 msecs (HTTP/1.1 200) 3 headers in 100 bytes (1 switches on core 1)
|
||||
[pid: 12529|app: 0|req: 6/23] 106.19.175.116 () {42 vars in 836 bytes} [Thu Sep 27 18:06:09 2018] GET /projects/ => generated 12910 bytes in 46 msecs (HTTP/1.1 200) 4 headers in 125 bytes (1 switches on core 1)
|
||||
[pid: 12531|app: 0|req: 3/24] 106.19.175.116 () {44 vars in 912 bytes} [Thu Sep 27 18:06:12 2018] GET /projects/tensorflow/ => generated 11869 bytes in 87 msecs (HTTP/1.1 200) 4 headers in 125 bytes (1 switches on core 0)
|
||||
[pid: 12529|app: 0|req: 7/25] 106.19.175.116 () {52 vars in 1116 bytes} [Thu Sep 27 18:06:13 2018] POST /operations/get_addtab_paras/ => generated 108 bytes in 210 msecs (HTTP/1.1 200) 3 headers in 101 bytes (1 switches on core 0)
|
||||
[pid: 12533|app: 0|req: 4/26] 106.19.175.116 () {52 vars in 1114 bytes} [Thu Sep 27 18:06:13 2018] POST /operations/show_navigation/ => generated 35 bytes in 44 msecs (HTTP/1.1 200) 3 headers in 100 bytes (1 switches on core 1)
|
||||
True
|
||||
[pid: 12535|app: 0|req: 5/27] 106.19.175.116 () {52 vars in 1094 bytes} [Thu Sep 27 18:06:13 2018] POST /operations/right/ => generated 8040 bytes in 145 msecs (HTTP/1.1 200) 3 headers in 102 bytes (1 switches on core 0)
|
||||
[pid: 12533|app: 0|req: 4/28] 106.19.175.116 () {52 vars in 1110 bytes} [Thu Sep 27 18:06:13 2018] POST /operations/get_jstree_id/ => generated 42 bytes in 187 msecs (HTTP/1.1 200) 3 headers in 100 bytes (1 switches on core 0)
|
||||
[pid: 12526|app: 0|req: 3/29] 106.19.175.116 () {52 vars in 1116 bytes} [Thu Sep 27 18:06:13 2018] POST /projects/get_project_jstree/ => generated 2857793 bytes in 215 msecs (HTTP/1.1 200) 3 headers in 105 bytes (14 switches on core 1)
|
||||
[pid: 12535|app: 0|req: 5/30] 106.19.175.116 () {52 vars in 1130 bytes} [Thu Sep 27 18:06:13 2018] POST /operations/get_codereading_content/ => generated 4589 bytes in 498 msecs (HTTP/1.1 200) 3 headers in 102 bytes (1 switches on core 1)
|
||||
[pid: 12533|app: 0|req: 5/31] 106.19.175.116 () {52 vars in 1110 bytes} [Thu Sep 27 18:06:32 2018] POST /operations/get_jstree_id/ => generated 42 bytes in 25 msecs (HTTP/1.1 200) 3 headers in 100 bytes (1 switches on core 1)
|
||||
[pid: 12529|app: 0|req: 8/32] 203.208.60.56 () {38 vars in 805 bytes} [Thu Sep 27 18:06:40 2018] GET /projects/OpenStack-nova/nova/conf/osapi_v21.py => generated 11885 bytes in 75 msecs (HTTP/1.1 200) 4 headers in 125 bytes (1 switches on core 1)
|
||||
Not Found: /robots.txt
|
||||
[pid: 12531|app: 0|req: 4/33] 216.244.66.203 () {34 vars in 518 bytes} [Thu Sep 27 18:09:09 2018] GET /robots.txt => generated 3101 bytes in 60 msecs (HTTP/1.1 404) 3 headers in 102 bytes (1 switches on core 1)
|
||||
[pid: 12529|app: 0|req: 9/34] 203.208.60.127 () {38 vars in 1048 bytes} [Thu Sep 27 18:09:35 2018] GET /projects/hadoop/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/main/java/org/apache/hadoop/mapreduce/v2/app/speculate/Speculator.java => generated 11853 bytes in 86 msecs (HTTP/1.1 200) 4 headers in 125 bytes (1 switches on core 0)
|
||||
[pid: 12529|app: 0|req: 10/35] 110.53.183.79 () {50 vars in 1117 bytes} [Thu Sep 27 18:11:52 2018] POST /operations/show_annotation/ => generated 381 bytes in 173 msecs (HTTP/1.1 200) 4 headers in 115 bytes (2 switches on core 1)
|
||||
[pid: 12529|app: 0|req: 11/36] 110.53.183.79 () {50 vars in 1117 bytes} [Thu Sep 27 18:11:55 2018] POST /operations/show_annotation/ => generated 381 bytes in 86 msecs (HTTP/1.1 200) 4 headers in 115 bytes (1 switches on core 0)
|
||||
[pid: 12533|app: 0|req: 6/37] 110.53.183.79 () {50 vars in 1117 bytes} [Thu Sep 27 18:12:04 2018] POST /operations/show_annotation/ => generated 381 bytes in 127 msecs (HTTP/1.1 200) 4 headers in 115 bytes (1 switches on core 1)
|
||||
[pid: 12533|app: 0|req: 7/38] 110.53.183.79 () {50 vars in 1107 bytes} [Thu Sep 27 18:13:37 2018] POST /operations/get_jstree_id/ => generated 46 bytes in 46 msecs (HTTP/1.1 200) 3 headers in 100 bytes (1 switches on core 0)
|
||||
True
|
||||
[pid: 12529|app: 0|req: 12/39] 110.53.183.79 () {50 vars in 1111 bytes} [Thu Sep 27 18:13:37 2018] POST /operations/show_navigation/ => generated 35 bytes in 143 msecs (HTTP/1.1 200) 3 headers in 100 bytes (1 switches on core 1)
|
||||
[pid: 12535|app: 0|req: 7/40] 110.53.183.79 () {50 vars in 1098 bytes} [Thu Sep 27 18:13:37 2018] POST /operations/right/ => generated 8288 bytes in 241 msecs (HTTP/1.1 200) 3 headers in 102 bytes (2 switches on core 0)
|
||||
[pid: 12535|app: 0|req: 7/41] 110.53.183.79 () {50 vars in 1134 bytes} [Thu Sep 27 18:13:37 2018] POST /operations/get_codereading_content/ => generated 2576 bytes in 240 msecs (HTTP/1.1 200) 3 headers in 102 bytes (1 switches on core 1)
|
||||
[pid: 12533|app: 0|req: 8/42] 110.53.183.79 () {50 vars in 1117 bytes} [Thu Sep 27 18:13:46 2018] POST /operations/show_navigation/ => generated 35 bytes in 59 msecs (HTTP/1.1 200) 3 headers in 100 bytes (2 switches on core 1)
|
||||
[pid: 12529|app: 0|req: 13/43] 110.53.183.79 () {50 vars in 1109 bytes} [Thu Sep 27 18:13:50 2018] POST /operations/show_navigation/ => generated 285 bytes in 65 msecs (HTTP/1.1 200) 3 headers in 101 bytes (1 switches on core 0)
|
||||
False
|
||||
94 2 0
|
||||
[pid: 12527|app: 0|req: 10/44] 110.53.183.79 () {50 vars in 1097 bytes} [Thu Sep 27 18:13:50 2018] POST /operations/right/ => generated 8274 bytes in 170 msecs (HTTP/1.1 200) 3 headers in 102 bytes (2 switches on core 0)
|
||||
[pid: 12527|app: 0|req: 10/45] 110.53.183.79 () {50 vars in 1133 bytes} [Thu Sep 27 18:13:50 2018] POST /operations/get_codereading_content/ => generated 3452 bytes in 168 msecs (HTTP/1.1 200) 4 headers in 116 bytes (1 switches on core 1)
|
||||
[pid: 12535|app: 0|req: 8/46] 110.53.183.79 () {50 vars in 1105 bytes} [Thu Sep 27 18:13:50 2018] POST /operations/get_jstree_id/ => generated 46 bytes in 296 msecs (HTTP/1.1 200) 3 headers in 100 bytes (1 switches on core 0)
|
||||
[pid: 12535|app: 0|req: 10/47] 110.53.183.79 () {50 vars in 1116 bytes} [Thu Sep 27 18:13:53 2018] POST /operations/get_jstree_id/ => generated 46 bytes in 3 msecs (HTTP/1.1 200) 3 headers in 100 bytes (1 switches on core 0)
|
||||
False
|
||||
[pid: 12535|app: 0|req: 10/48] 110.53.183.79 () {50 vars in 1120 bytes} [Thu Sep 27 18:13:53 2018] POST /operations/show_navigation/ => generated 299 bytes in 48 msecs (HTTP/1.1 200) 3 headers in 101 bytes (1 switches on core 1)
|
||||
95 21 0
|
||||
[pid: 12529|app: 0|req: 15/49] 110.53.183.79 () {50 vars in 1089 bytes} [Thu Sep 27 18:13:53 2018] POST /operations/right/ => generated 8297 bytes in 106 msecs (HTTP/1.1 200) 3 headers in 102 bytes (1 switches on core 1)
|
||||
[pid: 12529|app: 0|req: 15/50] 110.53.183.79 () {50 vars in 1125 bytes} [Thu Sep 27 18:13:53 2018] POST /operations/get_codereading_content/ => generated 3681 bytes in 134 msecs (HTTP/1.1 200) 4 headers in 116 bytes (1 switches on core 0)
|
||||
[pid: 12535|app: 0|req: 11/51] 203.208.60.21 () {38 vars in 945 bytes} [Thu Sep 27 18:14:04 2018] GET /projects/hadoop/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/main/java/org => generated 11853 bytes in 44 msecs (HTTP/1.1 200) 4 headers in 125 bytes (2 switches on core 0)
|
||||
[pid: 12529|app: 0|req: 16/52] 203.208.60.9 () {38 vars in 998 bytes} [Thu Sep 27 18:15:17 2018] GET /projects/hadoop/hadoop-hdfs-project/hadoop-hdfs-rbf/src/test/java/org/apache/hadoop/fs/contract/router/web/TestRouterWebHDFSContractConcat.java => generated 11853 bytes in 79 msecs (HTTP/1.1 200) 4 headers in 125 bytes (1 switches on core 1)
|
||||
[pid: 12535|app: 0|req: 12/53] 203.208.60.9 () {38 vars in 828 bytes} [Thu Sep 27 18:18:39 2018] GET /projects/tensorflow/tensorflow/python/eager/memory_test.py => generated 11869 bytes in 82 msecs (HTTP/1.1 200) 4 headers in 125 bytes (1 switches on core 1)
|
||||
[pid: 12535|app: 0|req: 13/54] 203.208.60.18 () {38 vars in 813 bytes} [Thu Sep 27 18:21:03 2018] GET /projects/hadoop/hadoop-tools/hadoop-kafka/src/main => generated 11853 bytes in 81 msecs (HTTP/1.1 200) 4 headers in 125 bytes (2 switches on core 0)
|
||||
[pid: 12533|app: 0|req: 9/55] 203.208.60.84 () {38 vars in 845 bytes} [Thu Sep 27 18:24:31 2018] GET /projects/tensorflow/tensorflow/contrib/lite/java/demo/build.gradle => generated 11869 bytes in 154 msecs (HTTP/1.1 200) 4 headers in 125 bytes (2 switches on core 0)
|
||||
[pid: 12526|app: 0|req: 4/56] 111.43.134.97 () {50 vars in 986 bytes} [Thu Sep 27 18:24:32 2018] POST /operations/show_method_info/ => generated 427 bytes in 54 msecs (HTTP/1.1 200) 3 headers in 101 bytes (1 switches on core 1)
|
||||
[pid: 12535|app: 0|req: 14/57] 106.19.175.116 () {42 vars in 745 bytes} [Thu Sep 27 18:25:11 2018] GET / => generated 14709 bytes in 55 msecs (HTTP/1.1 200) 4 headers in 125 bytes (1 switches on core 1)
|
||||
[pid: 12535|app: 0|req: 15/58] 223.73.111.220 () {40 vars in 791 bytes} [Thu Sep 27 18:26:40 2018] GET /projects/OpenStack-nova/nova/compute?eid=40788 => generated 14887 bytes in 707 msecs (HTTP/1.1 200) 5 headers in 256 bytes (1 switches on core 0)
|
||||
[pid: 12535|app: 0|req: 16/59] 223.73.111.220 () {52 vars in 1069 bytes} [Thu Sep 27 18:26:45 2018] POST /operations/get_addtab_paras/ => generated 122 bytes in 94 msecs (HTTP/1.1 200) 3 headers in 101 bytes (1 switches on core 1)
|
||||
True
|
||||
[pid: 12535|app: 0|req: 17/60] 223.73.111.220 () {52 vars in 1037 bytes} [Thu Sep 27 18:26:46 2018] POST /operations/right/ => generated 8048 bytes in 67 msecs (HTTP/1.1 200) 3 headers in 102 bytes (1 switches on core 0)
|
||||
[pid: 12533|app: 0|req: 10/61] 223.73.111.220 () {52 vars in 1073 bytes} [Thu Sep 27 18:26:48 2018] POST /operations/get_codereading_content/ => generated 3923 bytes in 86 msecs (HTTP/1.1 200) 3 headers in 102 bytes (2 switches on core 0)
|
||||
[pid: 12535|app: 0|req: 18/62] 223.73.111.220 () {52 vars in 1057 bytes} [Thu Sep 27 18:26:48 2018] POST /operations/show_navigation/ => generated 35 bytes in 46 msecs (HTTP/1.1 200) 3 headers in 100 bytes (2 switches on core 1)
|
||||
[pid: 12529|app: 0|req: 17/63] 223.73.111.220 () {52 vars in 1053 bytes} [Thu Sep 27 18:26:48 2018] POST /operations/get_jstree_id/ => generated 45 bytes in 78 msecs (HTTP/1.1 200) 3 headers in 100 bytes (1 switches on core 0)
|
||||
[pid: 12533|app: 0|req: 11/64] 203.208.60.107 () {38 vars in 1126 bytes} [Thu Sep 27 18:26:49 2018] GET /projects/hadoop/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common/src/main/java/org/apache/hadoop/mapreduce/v2/api/protocolrecords/impl/pb/GetDelegationTokenResponsePBImpl.java => generated 11853 bytes in 17 msecs (HTTP/1.1 200) 4 headers in 125 bytes (1 switches on core 1)
|
||||
[pid: 12529|app: 0|req: 18/65] 223.73.111.220 () {52 vars in 1059 bytes} [Thu Sep 27 18:26:49 2018] POST /projects/get_project_jstree/ => generated 992355 bytes in 74 msecs (HTTP/1.1 200) 3 headers in 104 bytes (5 switches on core 1)
|
||||
[pid: 12527|app: 0|req: 11/66] 223.73.111.220 () {52 vars in 1057 bytes} [Thu Sep 27 18:26:49 2018] POST /operations/show_navigation/ => generated 35 bytes in 36 msecs (HTTP/1.1 200) 3 headers in 100 bytes (1 switches on core 1)
|
||||
Not Found: /favicon.ico
|
||||
[pid: 12533|app: 0|req: 12/67] 223.73.111.220 () {42 vars in 773 bytes} [Thu Sep 27 18:26:50 2018] GET /favicon.ico => generated 3098 bytes in 16 msecs (HTTP/1.1 404) 3 headers in 102 bytes (2 switches on core 0)
|
||||
[pid: 12527|app: 0|req: 12/68] 223.73.111.220 () {52 vars in 1053 bytes} [Thu Sep 27 18:26:55 2018] POST /operations/get_jstree_id/ => generated 45 bytes in 7 msecs (HTTP/1.1 200) 3 headers in 100 bytes (1 switches on core 0)
|
||||
[pid: 12531|app: 0|req: 5/69] 223.73.111.220 () {42 vars in 866 bytes} [Thu Sep 27 18:28:14 2018] GET /projects/tensorflow/tensorflow/core/framework?eid=40788 => generated 14871 bytes in 2146 msecs (HTTP/1.1 200) 5 headers in 256 bytes (2 switches on core 0)
|
||||
[pid: 12527|app: 0|req: 13/70] 223.73.111.220 () {52 vars in 1080 bytes} [Thu Sep 27 18:28:17 2018] POST /operations/get_addtab_paras/ => generated 137 bytes in 223 msecs (HTTP/1.1 200) 3 headers in 101 bytes (1 switches on core 0)
|
||||
True
|
||||
[pid: 12526|app: 0|req: 6/71] 223.73.111.220 () {52 vars in 1068 bytes} [Thu Sep 27 18:28:17 2018] POST /projects/get_project_jstree/ => generated 2857793 bytes in 59 msecs (HTTP/1.1 200) 3 headers in 105 bytes (8 switches on core 0)
|
||||
[pid: 12526|app: 0|req: 6/72] 223.73.111.220 () {52 vars in 1066 bytes} [Thu Sep 27 18:28:17 2018] POST /operations/show_navigation/ => generated 35 bytes in 84 msecs (HTTP/1.1 200) 3 headers in 100 bytes (1 switches on core 1)
|
||||
[pid: 12535|app: 0|req: 20/73] 223.73.111.220 () {52 vars in 1046 bytes} [Thu Sep 27 18:28:17 2018] POST /operations/right/ => generated 8077 bytes in 142 msecs (HTTP/1.1 200) 3 headers in 102 bytes (1 switches on core 0)
|
||||
[pid: 12535|app: 0|req: 20/74] 223.73.111.220 () {52 vars in 1062 bytes} [Thu Sep 27 18:28:17 2018] POST /operations/get_jstree_id/ => generated 46 bytes in 181 msecs (HTTP/1.1 200) 3 headers in 100 bytes (1 switches on core 1)
|
||||
[pid: 12531|app: 0|req: 6/75] 223.73.111.220 () {52 vars in 1082 bytes} [Thu Sep 27 18:28:17 2018] POST /operations/get_codereading_content/ => generated 4683 bytes in 488 msecs (HTTP/1.1 200) 3 headers in 102 bytes (1 switches on core 1)
|
||||
[pid: 12533|app: 0|req: 13/76] 223.73.111.220 () {52 vars in 1062 bytes} [Thu Sep 27 18:28:34 2018] POST /operations/get_jstree_id/ => generated 46 bytes in 19 msecs (HTTP/1.1 200) 3 headers in 100 bytes (1 switches on core 1)
|
||||
[pid: 12526|app: 0|req: 7/77] 223.73.111.220 () {52 vars in 1067 bytes} [Thu Sep 27 18:28:56 2018] POST /operations/show_navigation/ => generated 238 bytes in 128 msecs (HTTP/1.1 200) 3 headers in 101 bytes (1 switches on core 0)
|
||||
False
|
||||
165 0 0
|
||||
[pid: 12527|app: 0|req: 15/78] 223.73.111.220 () {52 vars in 1046 bytes} [Thu Sep 27 18:28:56 2018] POST /operations/right/ => generated 8063 bytes in 200 msecs (HTTP/1.1 200) 3 headers in 102 bytes (1 switches on core 1)
|
||||
[pid: 12527|app: 0|req: 15/79] 223.73.111.220 () {52 vars in 1082 bytes} [Thu Sep 27 18:28:56 2018] POST /operations/get_codereading_content/ => generated 7907 bytes in 216 msecs (HTTP/1.1 200) 4 headers in 116 bytes (1 switches on core 0)
|
||||
[pid: 12529|app: 0|req: 19/80] 223.73.111.220 () {52 vars in 1063 bytes} [Thu Sep 27 18:28:56 2018] POST /operations/get_jstree_id/ => generated 46 bytes in 263 msecs (HTTP/1.1 200) 3 headers in 100 bytes (1 switches on core 0)
|
||||
[pid: 12531|app: 0|req: 7/81] 223.73.111.220 () {52 vars in 1066 bytes} [Thu Sep 27 18:29:33 2018] POST /operations/show_navigation/ => generated 35 bytes in 102 msecs (HTTP/1.1 200) 3 headers in 100 bytes (1 switches on core 0)
|
||||
False
|
||||
[pid: 12535|app: 0|req: 22/82] 111.43.134.97 () {50 vars in 983 bytes} [Thu Sep 27 18:29:39 2018] POST /operations/get_jstree_id/ => generated 46 bytes in 23 msecs (HTTP/1.1 200) 3 headers in 100 bytes (1 switches on core 0)
|
||||
[pid: 12529|app: 0|req: 21/83] 111.43.134.97 () {50 vars in 987 bytes} [Thu Sep 27 18:29:39 2018] POST /operations/show_navigation/ => generated 35 bytes in 65 msecs (HTTP/1.1 200) 3 headers in 100 bytes (1 switches on core 0)
|
||||
38 0 0
|
||||
[pid: 12529|app: 0|req: 21/84] 111.43.134.97 () {50 vars in 948 bytes} [Thu Sep 27 18:29:39 2018] POST /operations/right/ => generated 8097 bytes in 177 msecs (HTTP/1.1 200) 3 headers in 102 bytes (1 switches on core 1)
|
||||
[pid: 12535|app: 0|req: 22/85] 111.43.134.97 () {50 vars in 984 bytes} [Thu Sep 27 18:29:39 2018] POST /operations/get_codereading_content/ => generated 1853 bytes in 136 msecs (HTTP/1.1 200) 4 headers in 116 bytes (1 switches on core 1)
|
||||
[pid: 12531|app: 0|req: 8/86] 203.208.60.45 () {38 vars in 935 bytes} [Thu Sep 27 18:29:40 2018] GET /projects/tensorflow/tensorflow/tools/api/golden/v1/tensorflow.estimator.-d-n-n-linear-combined-classifier.pbtxt => generated 11869 bytes in 23 msecs (HTTP/1.1 200) 4 headers in 125 bytes (1 switches on core 1)
|
||||
[pid: 12535|app: 0|req: 23/87] 111.43.134.97 () {50 vars in 982 bytes} [Thu Sep 27 18:30:38 2018] POST /operations/show_navigation/ => generated 35 bytes in 65 msecs (HTTP/1.1 200) 3 headers in 100 bytes (1 switches on core 0)
|
||||
[pid: 12531|app: 0|req: 9/88] 180.160.29.98 () {38 vars in 720 bytes} [Thu Sep 27 18:32:16 2018] GET /projects/tensorflow/tensorflow/core/framework?eid=40710 => generated 14871 bytes in 667 msecs (HTTP/1.1 200) 5 headers in 256 bytes (1 switches on core 0)
|
||||
Not Found: /favicon.ico
|
||||
[pid: 12535|app: 0|req: 24/89] 180.160.29.98 () {38 vars in 572 bytes} [Thu Sep 27 18:32:21 2018] GET /favicon.ico => generated 3098 bytes in 19 msecs (HTTP/1.1 404) 3 headers in 102 bytes (1 switches on core 1)
|
||||
[pid: 12533|app: 0|req: 14/90] 180.160.29.98 () {54 vars in 1093 bytes} [Thu Sep 27 18:32:21 2018] POST /operations/get_addtab_paras/ => generated 137 bytes in 163 msecs (HTTP/1.1 200) 3 headers in 101 bytes (1 switches on core 1)
|
||||
Not Found: /favicon.ico
|
||||
[pid: 12535|app: 0|req: 25/91] 180.160.29.98 () {38 vars in 572 bytes} [Thu Sep 27 18:32:22 2018] GET /favicon.ico => generated 3098 bytes in 5 msecs (HTTP/1.1 404) 3 headers in 102 bytes (1 switches on core 0)
|
||||
[pid: 12533|app: 0|req: 15/92] 180.160.29.98 () {54 vars in 1079 bytes} [Thu Sep 27 18:32:22 2018] POST /operations/show_navigation/ => generated 35 bytes in 54 msecs (HTTP/1.1 200) 3 headers in 100 bytes (1 switches on core 0)
|
||||
True
|
||||
[pid: 12529|app: 0|req: 23/93] 180.160.29.98 () {54 vars in 1059 bytes} [Thu Sep 27 18:32:22 2018] POST /operations/right/ => generated 8077 bytes in 118 msecs (HTTP/1.1 200) 3 headers in 102 bytes (1 switches on core 1)
|
||||
[pid: 12529|app: 0|req: 23/94] 180.160.29.98 () {54 vars in 1095 bytes} [Thu Sep 27 18:32:22 2018] POST /operations/get_codereading_content/ => generated 4683 bytes in 463 msecs (HTTP/1.1 200) 3 headers in 102 bytes (1 switches on core 0)
|
||||
[pid: 12526|app: 0|req: 8/95] 180.160.29.98 () {54 vars in 1081 bytes} [Thu Sep 27 18:32:23 2018] POST /projects/get_project_jstree/ => generated 2857793 bytes in 44 msecs (HTTP/1.1 200) 3 headers in 105 bytes (1 switches on core 1)
|
||||
[pid: 12527|app: 0|req: 16/96] 180.160.29.98 () {54 vars in 1075 bytes} [Thu Sep 27 18:32:23 2018] POST /operations/get_jstree_id/ => generated 46 bytes in 156 msecs (HTTP/1.1 200) 3 headers in 100 bytes (1 switches on core 1)
|
||||
Not Found: /favicon.ico
|
||||
[pid: 12529|app: 0|req: 24/97] 180.160.29.98 () {38 vars in 572 bytes} [Thu Sep 27 18:32:24 2018] GET /favicon.ico => generated 3098 bytes in 5 msecs (HTTP/1.1 404) 3 headers in 102 bytes (1 switches on core 1)
|
||||
Not Found: /favicon.ico
|
||||
[pid: 12533|app: 0|req: 16/98] 180.160.29.98 () {38 vars in 572 bytes} [Thu Sep 27 18:32:27 2018] GET /favicon.ico => generated 3098 bytes in 7 msecs (HTTP/1.1 404) 3 headers in 102 bytes (1 switches on core 1)
|
||||
Not Found: /favicon.ico
|
||||
[pid: 12529|app: 0|req: 25/99] 180.160.29.98 () {38 vars in 572 bytes} [Thu Sep 27 18:32:28 2018] GET /favicon.ico => generated 3098 bytes in 6 msecs (HTTP/1.1 404) 3 headers in 102 bytes (1 switches on core 0)
|
||||
Not Found: /favicon.ico
|
||||
[pid: 12531|app: 0|req: 10/100] 180.160.29.98 () {38 vars in 572 bytes} [Thu Sep 27 18:32:29 2018] GET /favicon.ico => generated 3098 bytes in 10 msecs (HTTP/1.1 404) 3 headers in 102 bytes (2 switches on core 1)
|
||||
Not Found: /favicon.ico
|
||||
[pid: 12533|app: 0|req: 17/101] 180.160.29.98 () {38 vars in 572 bytes} [Thu Sep 27 18:32:33 2018] GET /favicon.ico => generated 3098 bytes in 6 msecs (HTTP/1.1 404) 3 headers in 102 bytes (2 switches on core 0)
|
||||
Not Found: /favicon.ico
|
||||
[pid: 12526|app: 0|req: 9/102] 180.160.29.98 () {38 vars in 572 bytes} [Thu Sep 27 18:32:34 2018] GET /favicon.ico => generated 3098 bytes in 8 msecs (HTTP/1.1 404) 3 headers in 102 bytes (2 switches on core 0)
|
||||
Not Found: /favicon.ico
|
||||
[pid: 12526|app: 0|req: 10/103] 180.160.29.98 () {38 vars in 572 bytes} [Thu Sep 27 18:32:37 2018] GET /favicon.ico => generated 3098 bytes in 8 msecs (HTTP/1.1 404) 3 headers in 102 bytes (1 switches on core 1)
|
||||
[pid: 12535|app: 0|req: 26/104] 180.160.29.98 () {54 vars in 1075 bytes} [Thu Sep 27 18:32:45 2018] POST /operations/get_jstree_id/ => generated 46 bytes in 8 msecs (HTTP/1.1 200) 3 headers in 100 bytes (1 switches on core 1)
|
||||
[pid: 12529|app: 0|req: 26/105] 180.160.29.98 () {42 vars in 874 bytes} [Thu Sep 27 18:32:46 2018] GET /projects/tensorflow/tensorflow/core/framework/tensor_slice.cc => generated 14871 bytes in 40 msecs (HTTP/1.1 200) 4 headers in 125 bytes (1 switches on core 1)
|
||||
Not Found: /favicon.ico
|
||||
[pid: 12535|app: 0|req: 27/106] 180.160.29.98 () {38 vars in 572 bytes} [Thu Sep 27 18:32:46 2018] GET /favicon.ico => generated 3098 bytes in 11 msecs (HTTP/1.1 404) 3 headers in 102 bytes (1 switches on core 0)
|
||||
[pid: 12529|app: 0|req: 27/107] 180.160.29.98 () {54 vars in 1099 bytes} [Thu Sep 27 18:32:46 2018] POST /operations/get_addtab_paras/ => generated 160 bytes in 5 msecs (HTTP/1.1 200) 3 headers in 101 bytes (1 switches on core 0)
|
||||
Not Found: /favicon.ico
|
||||
[pid: 12533|app: 0|req: 19/108] 180.160.29.98 () {38 vars in 572 bytes} [Thu Sep 27 18:32:46 2018] GET /favicon.ico => generated 3098 bytes in 8 msecs (HTTP/1.1 404) 3 headers in 102 bytes (1 switches on core 0)
|
||||
False
|
||||
[pid: 12535|app: 0|req: 28/109] 180.160.29.98 () {54 vars in 1095 bytes} [Thu Sep 27 18:32:46 2018] POST /operations/show_navigation/ => generated 460 bytes in 58 msecs (HTTP/1.1 200) 3 headers in 101 bytes (1 switches on core 1)
|
||||
273 68 0
|
||||
[pid: 12529|app: 0|req: 28/110] 180.160.29.98 () {54 vars in 1075 bytes} [Thu Sep 27 18:32:46 2018] POST /operations/right/ => generated 8096 bytes in 118 msecs (HTTP/1.1 200) 3 headers in 102 bytes (1 switches on core 1)
|
||||
[pid: 12533|app: 0|req: 19/111] 180.160.29.98 () {54 vars in 1111 bytes} [Thu Sep 27 18:32:46 2018] POST /operations/get_codereading_content/ => generated 11414 bytes in 150 msecs (HTTP/1.1 200) 4 headers in 117 bytes (1 switches on core 1)
|
||||
[pid: 12531|app: 0|req: 11/112] 180.160.29.98 () {54 vars in 1091 bytes} [Thu Sep 27 18:32:46 2018] POST /operations/get_jstree_id/ => generated 46 bytes in 195 msecs (HTTP/1.1 200) 3 headers in 100 bytes (2 switches on core 0)
|
||||
Not Found: /favicon.ico
|
||||
[pid: 12533|app: 0|req: 20/113] 180.160.29.98 () {38 vars in 572 bytes} [Thu Sep 27 18:32:52 2018] GET /favicon.ico => generated 3098 bytes in 32 msecs (HTTP/1.1 404) 3 headers in 102 bytes (1 switches on core 0)
|
||||
[pid: 12529|app: 0|req: 29/114] 180.160.29.98 () {54 vars in 1091 bytes} [Thu Sep 27 18:32:54 2018] POST /operations/get_jstree_id/ => generated 97 bytes in 9 msecs (HTTP/1.1 200) 3 headers in 100 bytes (1 switches on core 0)
|
||||
Not Found: /favicon.ico
|
||||
[pid: 12533|app: 0|req: 21/115] 180.160.29.98 () {38 vars in 572 bytes} [Thu Sep 27 18:32:54 2018] GET /favicon.ico => generated 3098 bytes in 7 msecs (HTTP/1.1 404) 3 headers in 102 bytes (2 switches on core 1)
|
||||
Not Found: /favicon.ico
|
||||
[pid: 12529|app: 0|req: 30/116] 180.160.29.98 () {38 vars in 572 bytes} [Thu Sep 27 18:32:54 2018] GET /favicon.ico => generated 3098 bytes in 10 msecs (HTTP/1.1 404) 3 headers in 102 bytes (1 switches on core 1)
|
||||
[pid: 12531|app: 0|req: 12/117] 203.208.60.28 () {38 vars in 909 bytes} [Thu Sep 27 18:34:31 2018] GET /projects/tensorflow/tensorflow/tools/api/golden/v1/tensorflow.-summary-metadata.-plugin-data.pbtxt => generated 11869 bytes in 58 msecs (HTTP/1.1 200) 4 headers in 125 bytes (1 switches on core 1)
|
||||
[pid: 12529|app: 0|req: 31/118] 203.208.60.58 () {38 vars in 869 bytes} [Thu Sep 27 18:35:25 2018] GET /projects/tensorflow/tensorflow/python/ops/linalg/linear_operator_block_diag.py => generated 11869 bytes in 74 msecs (HTTP/1.1 200) 4 headers in 125 bytes (1 switches on core 0)
|
||||
SIGINT/SIGQUIT received...killing workers...
|
||||
worker 1 buried after 1 seconds
|
||||
worker 2 buried after 1 seconds
|
||||
worker 3 buried after 1 seconds
|
||||
worker 4 buried after 1 seconds
|
||||
worker 5 buried after 1 seconds
|
||||
worker 6 buried after 1 seconds
|
||||
goodbye to uWSGI.
|
||||
VACUUM: pidfile removed.
|
||||
VACUUM WARNING: unix socket /projects/codepedia/codepedia2/my_sock.sock changed inode. Skip removal
|
||||
|
|
Loading…
Reference in New Issue