hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
247
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
247
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
f4d42441b96321040a54f16e2b431bb5d1c4b18d
3,334
py
Python
include/server/bw/tools/__init__.py
spacebeam/bw
8f975a2925f309b0038c876f1234595df9798c98
[ "Apache-2.0" ]
2
2019-10-30T04:26:21.000Z
2019-10-31T17:26:59.000Z
include/server/bw/tools/__init__.py
spacebeam/bw
8f975a2925f309b0038c876f1234595df9798c98
[ "Apache-2.0" ]
22
2019-08-21T17:13:45.000Z
2020-08-06T00:38:56.000Z
include/server/bw/tools/__init__.py
spacebeam/bw
8f975a2925f309b0038c876f1234595df9798c98
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # This file is part of bw. # Distributed under the terms of the last AGPL License. __author__ = 'Jean Chassoul' import uuid def validate_uuid4(uuid_string): ''' Validate that a UUID string is in fact a valid uuid4. Happily, the uuid module does the actual ...
21.934211
69
0.588482
# -*- coding: utf-8 -*- # This file is part of bw. # Distributed under the terms of the last AGPL License. __author__ = 'Jean Chassoul' import arrow import ujson as json import logging import uuid from tornado import gen def validate_uuid4(uuid_string): ''' Validate that a UUID string is in ...
0
1,479
0
0
0
0
0
-15
181
356caf4ee17cfa856f9452e5b81fc78885d6f859
122
py
Python
utils/poweroff_restart.py
ndkjing/usv
132e021432a0344a22914aaf68da7d7955d7331f
[ "MIT" ]
null
null
null
utils/poweroff_restart.py
ndkjing/usv
132e021432a0344a22914aaf68da7d7955d7331f
[ "MIT" ]
null
null
null
utils/poweroff_restart.py
ndkjing/usv
132e021432a0344a22914aaf68da7d7955d7331f
[ "MIT" ]
1
2021-09-04T10:27:30.000Z
2021-09-04T10:27:30.000Z
#
11.090909
31
0.655738
from os import system # 重启电脑 def restart(): system('sudo reboot') def poweroff(): system('sudo shutdown now')
12
0
0
0
0
45
0
0
67
33b53b231a99d94ff5cc752b86bbc0159b2e1fb3
17,472
py
Python
pyctrl/flask/server.py
ComplexArts/pyctrl-core
a72bd53924410c2e7f1e71c8188a0391550febdd
[ "Apache-2.0" ]
12
2017-06-20T13:20:40.000Z
2021-01-18T00:12:10.000Z
pyctrl/flask/server.py
mcdeoliveira/beaglebone
6c6062c6d1e9902178500abcd10be6ac0bcf043d
[ "Apache-2.0" ]
2
2017-06-12T15:17:24.000Z
2018-01-30T18:22:19.000Z
pyctrl/flask/server.py
mcdeoliveira/beaglebone
6c6062c6d1e9902178500abcd10be6ac0bcf043d
[ "Apache-2.0" ]
4
2017-09-25T12:19:19.000Z
2019-01-31T21:46:24.000Z
import sys from pyctrl.flask import JSONEncoder, JSONDecoder encoder = JSONEncoder(sort_keys = True, indent = 4) decoder = JSONDecoder() # decorators # decode # decode_kwargs_aux # decode_kwargs # json_response # Server class if __name__ == "__main__": try: import os os.environ['RCPY_N...
33.926214
129
0.54802
from flask import Flask, request, render_template, jsonify, make_response, redirect, flash, url_for from functools import wraps import re import pyctrl from pyctrl.block import Logger import warnings import importlib import traceback, sys, io from pyctrl.flask import JSONEncoder, JSONDecoder encoder = JSONEncoder(so...
0
5,155
0
10,782
0
317
0
78
266
5f6900da0b97f7cb9568e67607b74fc2b4feca0c
3,732
py
Python
proxy-alpha.py
ARTRoyale/ZapRoyale
984d72ee942b29f18250eae130d083d29151bd68
[ "MIT" ]
null
null
null
proxy-alpha.py
ARTRoyale/ZapRoyale
984d72ee942b29f18250eae130d083d29151bd68
[ "MIT" ]
null
null
null
proxy-alpha.py
ARTRoyale/ZapRoyale
984d72ee942b29f18250eae130d083d29151bd68
[ "MIT" ]
null
null
null
# by ARTRoyale (A. Lebedev) for ZapRoyale # global debugmode debugmode = True global gl_server_address gl_server_address = ('***.***.*.**', 9339) if __name__ == "__main__": port_num = 9339 print('[INFO] Proksi podkluchaetsa k portu', port_num) ThreadedServer('0.0.0.0',port_num).listen()
32.172414
111
0.549303
# by ARTRoyale (A. Lebedev) for ZapRoyale import socket import threading import struct import os import uuid import random # начинаем дебаг global debugmode debugmode = True def debug(debmessage): if debmessage: if debugmode: print('[DEBUG]',debmessage) else: pass else:...
40
0
0
2,302
0
898
0
-51
245
a5087d2093117c0c8a944443b7263a2f96effcb6
213
py
Python
api/api_scheme.py
raywu60kg/tensorlfow-project-demo
acd1085788da289ec7ed21ec0d46c9599188e32c
[ "MIT" ]
null
null
null
api/api_scheme.py
raywu60kg/tensorlfow-project-demo
acd1085788da289ec7ed21ec0d46c9599188e32c
[ "MIT" ]
null
null
null
api/api_scheme.py
raywu60kg/tensorlfow-project-demo
acd1085788da289ec7ed21ec0d46c9599188e32c
[ "MIT" ]
null
null
null
# class MetricsOutput(BaseModel): # name: str # metrics: dict
14.2
36
0.723005
from pydantic import BaseModel class HealthCheckOutput(BaseModel): health: bool # class MetricsOutput(BaseModel): # name: str # metrics: dict class RetrainModelOutput(BaseModel): train: bool
0
0
0
62
0
0
0
9
68
de32d45449405b3ec00b4326a7b6348906ee8392
742
py
Python
api/blueprints/users/views/roles.py
mohamed040406/API
40ceb2b35271938d90e4309a6cdcf63ba0c17f0b
[ "MIT" ]
1
2021-05-01T02:25:27.000Z
2021-05-01T02:25:27.000Z
api/blueprints/users/views/roles.py
mohamed040406/API
40ceb2b35271938d90e4309a6cdcf63ba0c17f0b
[ "MIT" ]
null
null
null
api/blueprints/users/views/roles.py
mohamed040406/API
40ceb2b35271938d90e4309a6cdcf63ba0c17f0b
[ "MIT" ]
null
null
null
from .. import bp import utils request: utils.Request
24.733333
66
0.617251
from quart import request, jsonify import time from api.models import User from .. import bp import utils request: utils.Request @bp.route("/<int:user_id>/roles", methods=["GET"]) @utils.auth_required async def fetch_user_roles(user_id: int): """Fetch the specific users roles""" query = """ SELECT j...
0
587
0
0
0
0
0
9
90
d262a3348286d2c2acf7e83331728949dbe00b99
2,328
py
Python
mkgta.py
shaun95/Tacotron2-PyTorch
b1761fd7660e56adf39f3c8d02852fbaec1da2c5
[ "MIT" ]
1
2022-03-10T20:02:58.000Z
2022-03-10T20:02:58.000Z
mkgta.py
shaun95/Tacotron2-PyTorch
b1761fd7660e56adf39f3c8d02852fbaec1da2c5
[ "MIT" ]
null
null
null
mkgta.py
shaun95/Tacotron2-PyTorch
b1761fd7660e56adf39f3c8d02852fbaec1da2c5
[ "MIT" ]
null
null
null
import torch import argparse if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('-c', '--ckpt_pth', type = str, default = '', required = True, help = 'path to load checkpoints') parser.add_argument('-n', '--npy_pth', type = str, default = 'dump', ...
31.04
75
0.627577
import os import torch import argparse import numpy as np import matplotlib.pylab as plt from text import text_to_sequence from model.model import Tacotron2 from hparams import hparams as hps from utils.util import mode, to_var, to_arr from utils.audio import load_wav, save_wav, melspectrogram def files_to_list(fdir ...
0
0
0
0
0
1,224
0
90
268
005dfd3bd6b99b749c3643626e7c275bbe2acb28
1,251
py
Python
com/Leetcode/981.TimeBasedKey-ValueStore.py
samkitsheth95/InterviewPrep
6be68c19bcaab4e64a8f646cc64f651bade8ba86
[ "MIT" ]
null
null
null
com/Leetcode/981.TimeBasedKey-ValueStore.py
samkitsheth95/InterviewPrep
6be68c19bcaab4e64a8f646cc64f651bade8ba86
[ "MIT" ]
null
null
null
com/Leetcode/981.TimeBasedKey-ValueStore.py
samkitsheth95/InterviewPrep
6be68c19bcaab4e64a8f646cc64f651bade8ba86
[ "MIT" ]
null
null
null
# Your TimeMap object will be instantiated and called as such: # obj = TimeMap() # obj.set(key,value,timestamp) # param_2 = obj.get(key,timestamp)
25.02
64
0.513189
from collections import defaultdict from bisect import bisect class TimeMap: def binarySearch(self, a, key): if key < a[0][1]: return '' elif key >= a[-1][1]: return a[-1][0] low = 0 high = len(a) - 1 while low <= high: mid = low + (hi...
0
0
0
1,016
0
0
0
18
67
5017ac97f2b5056a11800f28fde484ec4a35c1b3
8,797
py
Python
sstvis.py
mdjong1/sstvis
927590b1295491a062a77634008a9146e783c617
[ "MIT" ]
null
null
null
sstvis.py
mdjong1/sstvis
927590b1295491a062a77634008a9146e783c617
[ "MIT" ]
null
null
null
sstvis.py
mdjong1/sstvis
927590b1295491a062a77634008a9146e783c617
[ "MIT" ]
null
null
null
import os # prevent pygame from printing their welcome message os.environ['PYGAME_HIDE_SUPPORT_PROMPT'] = "hide" import pygame # Define some basic colors for easy use white = (255, 255, 255) red = (255, 0, 0) black = (0, 0, 0) green = (0, 255, 0) blue = (0, 0, 255) # Screen resolution to use window_dimensions = (12...
35.615385
128
0.630329
import fileinput import sys import math import time import os import click # prevent pygame from printing their welcome message os.environ['PYGAME_HIDE_SUPPORT_PROMPT'] = "hide" import pygame # Define some basic colors for easy use white = (255, 255, 255) red = (255, 0, 0) black = (0, 0, 0) green = (0, 255, 0) blue =...
0
1,108
0
4,806
0
0
0
-45
179
c566c62bfc91343391f87b835b9e079719e2045b
24,813
py
Python
neo4j/_async/io/_bolt.py
matilda-me/neo4j-python-driver
4fb25a266841bf2a861f00d5dcf257bd5ae5c686
[ "Apache-2.0" ]
null
null
null
neo4j/_async/io/_bolt.py
matilda-me/neo4j-python-driver
4fb25a266841bf2a861f00d5dcf257bd5ae5c686
[ "Apache-2.0" ]
null
null
null
neo4j/_async/io/_bolt.py
matilda-me/neo4j-python-driver
4fb25a266841bf2a861f00d5dcf257bd5ae5c686
[ "Apache-2.0" ]
null
null
null
# Copyright (c) "Neo4j" # Neo4j Sweden AB [http://neo4j.com] # # This file is part of Neo4j. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0...
35.548711
95
0.614476
# Copyright (c) "Neo4j" # Neo4j Sweden AB [http://neo4j.com] # # This file is part of Neo4j. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0...
0
13,086
5,480
4,783
0
0
0
351
310
9578398d67c4ab380e45b5e1357b9a225ddd1afc
1,633
py
Python
examples/ex09/process.py
oditorium/PageBuilder
74fa95285d41ed390f46f22129a45900c1d8b474
[ "MIT" ]
null
null
null
examples/ex09/process.py
oditorium/PageBuilder
74fa95285d41ed390f46f22129a45900c1d8b474
[ "MIT" ]
null
null
null
examples/ex09/process.py
oditorium/PageBuilder
74fa95285d41ed390f46f22129a45900c1d8b474
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ process data generated by PageBuilder """ import json INFN = "document.json" OUTFN = "_DATA.json" print ("PROCESSING ===========================================================") ######################################################################## ## READING THE INPUT FILE print ("...
27.677966
80
0.509492
#!/usr/bin/env python3 """ process data generated by PageBuilder """ import json INFN = "document.json" OUTFN = "_DATA.json" print ("PROCESSING ===========================================================") ######################################################################## ## READING THE INPUT FILE print ("...
0
0
0
0
0
0
0
0
0
8a8cfc04c5c7ae8b231f967292f73edd9f04f568
141
py
Python
oogli/Texture.py
brianbruggeman/oogli
6a6f681468d609035924ede27d895afcc9d432b6
[ "Apache-2.0" ]
3
2016-01-18T22:10:51.000Z
2016-06-10T16:02:55.000Z
oogli/Texture.py
brianbruggeman/oogli
6a6f681468d609035924ede27d895afcc9d432b6
[ "Apache-2.0" ]
null
null
null
oogli/Texture.py
brianbruggeman/oogli
6a6f681468d609035924ede27d895afcc9d432b6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*-
15.666667
38
0.560284
#!/usr/bin/env python # -*- coding: utf-8 -*- class Texture(object): def __init__(self, *args, **kwds): '''TODO: something'''
0
0
0
71
0
0
0
0
23
fc7058a10d7e658bef7595f63f5638b9966e1a4c
6,236
py
Python
neutron/common/config.py
plumgrid/plumgrid-quantum
dbd7e472ca28d22d694eeeba47e0738985583961
[ "Apache-2.0" ]
1
2016-04-23T21:33:31.000Z
2016-04-23T21:33:31.000Z
neutron/common/config.py
plumgrid/plumgrid-quantum
dbd7e472ca28d22d694eeeba47e0738985583961
[ "Apache-2.0" ]
null
null
null
neutron/common/config.py
plumgrid/plumgrid-quantum
dbd7e472ca28d22d694eeeba47e0738985583961
[ "Apache-2.0" ]
4
2015-04-14T10:06:51.000Z
2019-10-02T01:28:34.000Z
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 Nicira Networks, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apac...
39.974359
78
0.657473
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 Nicira Networks, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apac...
0
0
0
0
0
362
0
54
68
b12bdd3b7613ac6f1ca82e2ac22d65ec1929d997
3,978
py
Python
code/tmp_rtrip/test/test_structmembers.py
emilyemorehouse/ast-and-me
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
[ "MIT" ]
24
2018-01-23T05:28:40.000Z
2021-04-13T20:52:59.000Z
code/tmp_rtrip/test/test_structmembers.py
emilyemorehouse/ast-and-me
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
[ "MIT" ]
17
2017-12-21T18:32:31.000Z
2018-12-18T17:09:50.000Z
code/tmp_rtrip/test/test_structmembers.py
emilyemorehouse/ast-and-me
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
[ "MIT" ]
null
null
null
import unittest from test import support support.import_module('_testcapi') from _testcapi import _test_structmembersType ts = _test_structmembersType(False, 1, 2, 3, 4, 5, 6, 7, 8, 23, 9.99999, 10.101010101, 'hi') if __name__ == '__main__': unittest.main()
35.20354
232
0.65083
import unittest from test import support support.import_module('_testcapi') from _testcapi import _test_structmembersType, CHAR_MAX, CHAR_MIN, UCHAR_MAX, SHRT_MAX, SHRT_MIN, USHRT_MAX, INT_MAX, INT_MIN, UINT_MAX, LONG_MAX, LONG_MIN, ULONG_MAX, LLONG_MAX, LLONG_MIN, ULLONG_MAX, PY_SSIZE_T_MAX, PY_SSIZE_T_MIN ts = _test_...
0
479
0
2,995
0
0
0
187
46
ace8a02a07baa1d3676ee33620ccb26e1bf748c5
5,705
py
Python
src/predict.py
jamesmcclain/algae-model
45e3e83544034022aba16ad1ed254f1445e4bb1b
[ "MIT" ]
null
null
null
src/predict.py
jamesmcclain/algae-model
45e3e83544034022aba16ad1ed254f1445e4bb1b
[ "MIT" ]
null
null
null
src/predict.py
jamesmcclain/algae-model
45e3e83544034022aba16ad1ed254f1445e4bb1b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import copy import logging import sys import warnings import numpy as np import rasterio as rio import torch import torch.hub import tqdm from rasterio.windows import Window BACKBONES = [ 'vgg16', 'densenet161', 'shufflenet_v2_x1_0', 'mobilenet_v2', 'mobilenet_v3_large', 'mobilenet_v3_s...
39.895105
107
0.564242
#!/usr/bin/env python3 import argparse import copy import logging import sys import warnings import numpy as np import rasterio as rio import torch import torch.hub import tqdm from rasterio.windows import Window BACKBONES = [ 'vgg16', 'densenet161', 'shufflenet_v2_x1_0', 'mobilenet_v2', 'mobilenet_v3_large'...
0
0
0
0
0
1,150
0
-6
76
ed5cc620f755b91673991e6e44482f82fb01cfdf
669
py
Python
tz_detect/defaults.py
dkirkham/django-tz-detect
ec3c66a967e2518adf070bfd42a9076471f1bc2a
[ "MIT" ]
null
null
null
tz_detect/defaults.py
dkirkham/django-tz-detect
ec3c66a967e2518adf070bfd42a9076471f1bc2a
[ "MIT" ]
null
null
null
tz_detect/defaults.py
dkirkham/django-tz-detect
ec3c66a967e2518adf070bfd42a9076471f1bc2a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.conf import settings # How often to check TZ_DETECT_PERIOD = getattr(settings, 'TZ_DETECT_PERIOD', 3*3600) # Version of moment and moment-timezone to load TZ_DETECT_SCRIPTS = getattr(settings, 'TZ_DETECT_SCRIPTS', [ '<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/...
55.75
224
0.77429
# -*- coding: utf-8 -*- from django.conf import settings # How often to check TZ_DETECT_PERIOD = getattr(settings, 'TZ_DETECT_PERIOD', 3*3600) # Version of moment and moment-timezone to load TZ_DETECT_SCRIPTS = getattr(settings, 'TZ_DETECT_SCRIPTS', [ '<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/...
0
0
0
0
0
0
0
0
0
0051e0bd2a9085c3ed7b3685be94b2da7bc22176
1,525
py
Python
cs/algorithms/graph/kargers.py
TylerYep/workshop
69b19afc81c1b84b7f60723077670fb789b55744
[ "MIT" ]
1
2021-06-14T01:20:09.000Z
2021-06-14T01:20:09.000Z
cs/algorithms/graph/kargers.py
TylerYep/workshop
69b19afc81c1b84b7f60723077670fb789b55744
[ "MIT" ]
null
null
null
cs/algorithms/graph/kargers.py
TylerYep/workshop
69b19afc81c1b84b7f60723077670fb789b55744
[ "MIT" ]
null
null
null
import random from cs.structures import Edge, Graph, Node, V def kargers_min_cut(orig_graph: Graph[V]) -> set[Edge[V]]: """ Partitions a graph using Karger's Algorithm. Works on directed and undirected graphs, but involves random choices, so it does not give consistent outputs. Args: graph: A...
31.122449
88
0.633443
import random from cs.structures import Edge, Graph, Node, V def kargers_min_cut(orig_graph: Graph[V]) -> set[Edge[V]]: """ Partitions a graph using Karger's Algorithm. Works on directed and undirected graphs, but involves random choices, so it does not give consistent outputs. Args: graph: A...
0
0
0
0
0
0
0
0
0
2a8f7460a21b7cad5dc74cfff3405c3af0fe2006
471
py
Python
Python/FindDigits.py
MuriloRoque/coding_challenges
dd1ca31bc1c9e77026ef625fbca7f8938d3e965e
[ "MIT" ]
7
2020-06-03T19:19:07.000Z
2022-01-08T03:00:59.000Z
Python/FindDigits.py
MuriloRoque/coding-challenges
dd1ca31bc1c9e77026ef625fbca7f8938d3e965e
[ "MIT" ]
4
2020-05-25T10:31:26.000Z
2022-02-26T08:03:55.000Z
Python/FindDigits.py
MuriloRoque/coding_challenges
dd1ca31bc1c9e77026ef625fbca7f8938d3e965e
[ "MIT" ]
null
null
null
#!/bin/python3 import os # Complete the findDigits function below. if __name__ == '__main__': fptr = open(os.environ['OUTPUT_PATH'], 'w') t = int(input()) for t_itr in range(t): n = int(input()) result = findDigits(n) fptr.write(str(result) + '\n') fptr.close()
15.193548
47
0.501062
#!/bin/python3 import os # Complete the findDigits function below. def findDigits(n): s = str(n) res = 0 for i in s: if int(i) != 0: if n % int(i) == 0: res += 1 return res if __name__ == '__main__': fptr = open(os.environ['OUTPUT_PATH'], 'w') t = int(i...
0
0
0
0
0
136
0
0
23
bc45dbd742de9463f2a3a8dabbfff37df96ff9fa
3,467
py
Python
dfirtrack_artifacts/urls.py
thomas-kropeit/dfirtrack
b1e0e659af7bc8085cfe2d269ddc651f9f4ba585
[ "Apache-2.0" ]
null
null
null
dfirtrack_artifacts/urls.py
thomas-kropeit/dfirtrack
b1e0e659af7bc8085cfe2d269ddc651f9f4ba585
[ "Apache-2.0" ]
6
2022-03-16T12:30:51.000Z
2022-03-28T01:34:45.000Z
dfirtrack_artifacts/urls.py
thomas-kropeit/dfirtrack
b1e0e659af7bc8085cfe2d269ddc651f9f4ba585
[ "Apache-2.0" ]
null
null
null
from django.urls import path from dfirtrack_artifacts.creator import artifact_creator from dfirtrack_artifacts.exporter.spreadsheet import xls from dfirtrack_artifacts.views import (artifact_view, artifactpriority_view, artifactstatus_view, artifacttype_view) urlpatterns = ( # urls for Artifact path( ...
27.736
88
0.651284
from django.urls import path from dfirtrack_artifacts.creator import artifact_creator from dfirtrack_artifacts.exporter.spreadsheet import xls from dfirtrack_artifacts.views import ( artifact_view, artifactpriority_view, artifactstatus_view, artifacttype_view, ) urlpatterns = ( # urls for Artifact...
0
0
0
0
0
0
0
19
0
3f7cd28b00b51df823099bd4153d8f5599444380
270
py
Python
mayan/apps/locales/icons.py
bonitobonita24/Mayan-EDMS
7845fe0e1e83c81f5d227a16116397a3d3883b85
[ "Apache-2.0" ]
343
2015-01-05T14:19:35.000Z
2018-12-10T19:07:48.000Z
mayan/apps/locales/icons.py
bonitobonita24/Mayan-EDMS
7845fe0e1e83c81f5d227a16116397a3d3883b85
[ "Apache-2.0" ]
191
2015-01-03T00:48:19.000Z
2018-11-30T09:10:25.000Z
mayan/apps/locales/icons.py
bonitobonita24/Mayan-EDMS
7845fe0e1e83c81f5d227a16116397a3d3883b85
[ "Apache-2.0" ]
114
2015-01-08T20:21:05.000Z
2018-12-10T19:07:53.000Z
from mayan.apps.appearance.classes import Icon icon_user_locale_profile_detail = Icon( driver_name='fontawesome', symbol='globe' ) icon_user_locale_profile_edit = Icon( driver_name='fontawesome-dual', primary_symbol='globe', secondary_symbol='pencil-alt' )
27
59
0.781481
from mayan.apps.appearance.classes import Icon icon_user_locale_profile_detail = Icon( driver_name='fontawesome', symbol='globe' ) icon_user_locale_profile_edit = Icon( driver_name='fontawesome-dual', primary_symbol='globe', secondary_symbol='pencil-alt' )
0
0
0
0
0
0
0
0
0
6ab583d13ec98e93752ce61e59742114fe5f4689
4,643
py
Python
result/arka/parse_result.py
MingzheWu418/plastering
322531e934c3acf2ecc8f520b37a6d255b9959c2
[ "MIT" ]
29
2018-09-19T01:16:27.000Z
2022-03-29T14:35:36.000Z
result/arka/parse_result.py
MingzheWu418/plastering
322531e934c3acf2ecc8f520b37a6d255b9959c2
[ "MIT" ]
14
2019-04-12T18:37:36.000Z
2022-02-10T00:27:55.000Z
result/arka/parse_result.py
MingzheWu418/plastering
322531e934c3acf2ecc8f520b37a6d255b9959c2
[ "MIT" ]
14
2019-03-05T23:44:11.000Z
2022-03-18T07:29:31.000Z
import os import sys import re from copy import deepcopy import json import pandas as pd dir_path = os.path.dirname(os.path.realpath(__file__)) sys.path.insert(0, dir_path + '/../..') target_building = 'sdh' currfile = __file__ base_dir = os.path.dirname(currfile) target_dir = base_dir + '/' + target_building orig...
30.748344
82
0.645272
import os import sys import pdb import re from copy import deepcopy from operator import itemgetter import json import pandas as pd dir_path = os.path.dirname(os.path.realpath(__file__)) sys.path.insert(0, dir_path + '/../..') from plastering.metadata_interface import * from plastering.evaluator import * target_buil...
0
0
0
0
0
642
0
34
180
580fe86ae0aa9c38a9e6907e1803cb156d5b2bdf
7,285
py
Python
learntools/ml_intermediate/ex3.py
roannav/learntools
355a5df6a66562de62254b723da1a9389b9acc49
[ "Apache-2.0" ]
null
null
null
learntools/ml_intermediate/ex3.py
roannav/learntools
355a5df6a66562de62254b723da1a9389b9acc49
[ "Apache-2.0" ]
null
null
null
learntools/ml_intermediate/ex3.py
roannav/learntools
355a5df6a66562de62254b723da1a9389b9acc49
[ "Apache-2.0" ]
null
null
null
Label = MultipartProblem(LabelA, LabelB) Cardinality = MultipartProblem(CardinalityA, CardinalityB) qvars = bind_exercises(globals(), [ Drop, Label, Cardinality, OneHot ], var_format='step_{n}', ) __all__ = list(qvars)
41.158192
104
0.68744
import pandas as pd import warnings from learntools.core import * class Drop(CodingProblem): _vars = ['drop_X_train', 'drop_X_valid'] _hint = ("Use the [`select_dtypes()`](https://pandas.pydata.org/pandas-" "docs/stable/reference/api/pandas.DataFrame.select_dtypes.html) method " "to ...
0
0
0
6,829
0
0
0
0
205
adcc7eef90b09be43068eff5739a52723c4a565f
976
py
Python
src/vnc_me/controllers/connect.py
maizy/vnc-me
644cbe7c58d5077b2a2c41145e088430c97860ee
[ "MIT" ]
null
null
null
src/vnc_me/controllers/connect.py
maizy/vnc-me
644cbe7c58d5077b2a2c41145e088430c97860ee
[ "MIT" ]
null
null
null
src/vnc_me/controllers/connect.py
maizy/vnc-me
644cbe7c58d5077b2a2c41145e088430c97860ee
[ "MIT" ]
null
null
null
# _*_ coding: utf-8 _*_ # Copyright (c) Nikita Kovaliov, maizy.ru, 2013 # See LICENSE.txt for details.
27.885714
68
0.604508
# _*_ coding: utf-8 _*_ # Copyright (c) Nikita Kovaliov, maizy.ru, 2013 # See LICENSE.txt for details. from tornado.web import asynchronous from vnc_me.controllers import HttpHandler from vnc_me.vnc_client import VncClient class Handler(HttpHandler): @asynchronous def post(self): host = self.get_ar...
0
694
0
6
0
0
0
54
118
3be12f5f6443ad94d4862814b4ddfa13ca970561
998
py
Python
pcloudpy/gui/graphics/QVTKWindow.py
mmolero/pcloudpy
c8e4b342f9180374db97af3d87d60ece683b7bc0
[ "BSD-3-Clause" ]
39
2015-09-30T18:59:22.000Z
2020-10-28T01:52:41.000Z
pcloudpy/gui/graphics/QVTKWindow.py
mmolero/pcloudpy
c8e4b342f9180374db97af3d87d60ece683b7bc0
[ "BSD-3-Clause" ]
3
2017-01-05T20:53:54.000Z
2017-11-30T06:57:13.000Z
pcloudpy/gui/graphics/QVTKWindow.py
mmolero/pcloudpy
c8e4b342f9180374db97af3d87d60ece683b7bc0
[ "BSD-3-Clause" ]
19
2017-01-05T20:33:59.000Z
2021-09-25T09:19:28.000Z
#Author: Miguel Molero <miguel.molero@gmail.com> if __name__ == "__main__": from vtk import vtkConeSource from vtk import vtkPolyDataMapper, vtkActor app = QApplication(['QVTKWindow']) win = QVTKMainWindow() cone = vtkConeSource() cone.SetResolution(8) coneMapper = vtkPolyDataMapper() ...
26.972973
55
0.709419
#Author: Miguel Molero <miguel.molero@gmail.com> from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * from pcloudpy.gui.graphics.QVTKWidget import QVTKWidget class QVTKMainWindow(QMainWindow): def __init__(self, parent = None): super(QVTKMainWindow, self).__init__(parent) ...
0
0
0
280
0
0
0
52
112
839732c105e90217381325571c730da38f09602e
3,377
py
Python
service/docs/source/conf.py
dannosliwcd/geopm
3ec0d223e700350ff37f6d10adde7b9bfbdba286
[ "BSD-3-Clause" ]
2
2016-07-23T18:05:45.000Z
2020-07-24T17:55:24.000Z
service/docs/source/conf.py
dannosliwcd/geopm
3ec0d223e700350ff37f6d10adde7b9bfbdba286
[ "BSD-3-Clause" ]
null
null
null
service/docs/source/conf.py
dannosliwcd/geopm
3ec0d223e700350ff37f6d10adde7b9bfbdba286
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2015 - 2021, Intel Corporation # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and...
39.267442
79
0.70151
# Copyright (c) 2015 - 2021, Intel Corporation # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and...
0
0
0
0
0
0
0
2
22
7641bdb92e4dd1311b939ff97255a4f2bfe9d25c
1,295
py
Python
predict.py
don6105/OCR-Captcha-Recognition
f9d3088b4937218e2675ad19832cd6cdf333d683
[ "Apache-2.0" ]
null
null
null
predict.py
don6105/OCR-Captcha-Recognition
f9d3088b4937218e2675ad19832cd6cdf333d683
[ "Apache-2.0" ]
null
null
null
predict.py
don6105/OCR-Captcha-Recognition
f9d3088b4937218e2675ad19832cd6cdf333d683
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 import cv2 import numpy as np import os import process_img import pickle from shutil import copyfile # model = cv2.ml.KNearest_create() # model.load('model.xml') model = cv2.ml.KNearest_load('model.xml') img_area = 40 * 40 # f = open('id_label_map.txt', 'rb') try: id_label_map = pickle.load(f...
25.9
78
0.643243
#!/usr/bin/python3 import cv2 import numpy as np import os import process_img import pickle from shutil import copyfile # model = cv2.ml.KNearest_create() # model.load('model.xml') model = cv2.ml.KNearest_load('model.xml') img_area = 40 * 40 # 将序列化的内容加载到内存中 f = open('id_label_map.txt', 'rb') try: id_label_map = ...
39
0
0
0
0
0
0
0
0
bd4cecd93bd9c57a578f054d6684869c8da3f50d
210
py
Python
AlgorithmTest/PROGRAMMERS_PYTHON/Lv1/Prog_12934.py
bluesky0960/AlgorithmTest
35e6c01b1c25bf13d4c034c047f3dd3b67f1578e
[ "MIT" ]
null
null
null
AlgorithmTest/PROGRAMMERS_PYTHON/Lv1/Prog_12934.py
bluesky0960/AlgorithmTest
35e6c01b1c25bf13d4c034c047f3dd3b67f1578e
[ "MIT" ]
null
null
null
AlgorithmTest/PROGRAMMERS_PYTHON/Lv1/Prog_12934.py
bluesky0960/AlgorithmTest
35e6c01b1c25bf13d4c034c047f3dd3b67f1578e
[ "MIT" ]
null
null
null
#https://programmers.co.kr/learn/courses/30/lessons/12934
23.333333
57
0.533333
#https://programmers.co.kr/learn/courses/30/lessons/12934 def solution(n): answer = 0 if int(n**0.5)**2 == n: answer = (int(n**0.5)+1)**2 else: answer = -1 return answer
0
0
0
0
0
131
0
0
22
be56fe3a0855a11c83234a8075eb53f6c7ee860e
12,531
py
Python
main.py
sem-onyalo/knowledge-graph-loader
7beadc3fe0f159e5386639d8fa9aeccffa23950c
[ "MIT" ]
null
null
null
main.py
sem-onyalo/knowledge-graph-loader
7beadc3fe0f159e5386639d8fa9aeccffa23950c
[ "MIT" ]
null
null
null
main.py
sem-onyalo/knowledge-graph-loader
7beadc3fe0f159e5386639d8fa9aeccffa23950c
[ "MIT" ]
null
null
null
from pyopenie import OpenIE5 from queue import Queue from spacy.lang.en import English from typing import List ENCODING = "utf-8" DATA_DIRECTORY = "./data" CACHE_DIRECTORY = "cache/" CACHED_CONNECTIONS_FILE = "entity_connections.cache" CACHED_FILTERED_CONNECTIONS_FILE = "entity_connections_filtered.cache" QUEUE_WAIT_T...
34.905292
168
0.677201
import csv import logging import neo4j import os import uuid from concurrent.futures import ThreadPoolExecutor from pyopenie import OpenIE5 from queue import Empty, Queue from spacy.lang.en import English from time import sleep from typing import List ENCODING = "utf-8" DATA_DIRECTORY = "./data" CACHE_DIRECTORY = "cac...
0
0
0
2,538
0
8,360
0
-13
798
9c2ab7ec270dc8209d5b75adadfdc279f77d4441
270
py
Python
polls/scraping_db/wadi_fashion.py
young-ha713/TeamProject
f98bbfbb7cab1b292f83f48a926dc6fd8b3eaf84
[ "Apache-2.0" ]
null
null
null
polls/scraping_db/wadi_fashion.py
young-ha713/TeamProject
f98bbfbb7cab1b292f83f48a926dc6fd8b3eaf84
[ "Apache-2.0" ]
null
null
null
polls/scraping_db/wadi_fashion.py
young-ha713/TeamProject
f98bbfbb7cab1b292f83f48a926dc6fd8b3eaf84
[ "Apache-2.0" ]
2
2021-08-12T01:51:32.000Z
2021-08-17T05:16:37.000Z
import pandas as pd df = pd.read_excel('C:/Users/gkdud/PycharmProjects/TeamProject/Scraping/files/fashion_scraping.xlsx') import sqlite3 connect = sqlite3.connect('./wadizdb.sqlite3') df.to_sql('table_fashion', connect, if_exists='append', index=False) connect.close()
33.75
101
0.788889
import pandas as pd df = pd.read_excel('C:/Users/gkdud/PycharmProjects/TeamProject/Scraping/files/fashion_scraping.xlsx') import sqlite3 connect = sqlite3.connect('./wadizdb.sqlite3') df.to_sql('table_fashion', connect, if_exists='append', index=False) connect.close()
0
0
0
0
0
0
0
0
0
15506c9d3b917a6a1bc46dffb7f880578de51951
5,177
py
Python
static_compress/mixin.py
RentFreeMedia/django-static-compress
b56940b9246714401bdd0b24c2f9595419dc6671
[ "MIT" ]
8
2017-10-23T07:32:43.000Z
2019-12-16T16:25:02.000Z
static_compress/mixin.py
RentFreeMedia/django-static-compress
b56940b9246714401bdd0b24c2f9595419dc6671
[ "MIT" ]
90
2018-06-02T07:37:29.000Z
2022-03-31T13:01:24.000Z
static_compress/mixin.py
RentFreeMedia/django-static-compress
b56940b9246714401bdd0b24c2f9595419dc6671
[ "MIT" ]
8
2018-07-25T13:56:40.000Z
2022-02-11T17:18:17.000Z
from . import compressors __all__ = ["CompressMixin"] DEFAULT_METHODS = ["gz", "br"] METHOD_MAPPING = { "gz": compressors.ZopfliCompressor, "br": compressors.BrotliCompressor, "gz+zlib": compressors.ZlibCompressor, # gz+zlib and gz cannot be used at the same time, because they produce the same file ...
40.131783
114
0.618119
import os from os.path import getatime, getctime, getmtime import errno from django.core.exceptions import ImproperlyConfigured from . import compressors __all__ = ["CompressMixin"] DEFAULT_METHODS = ["gz", "br"] METHOD_MAPPING = { "gz": compressors.ZopfliCompressor, "br": compressors.BrotliCompressor, ...
0
0
0
4,691
0
0
0
40
112
0069c9e2e22ac4791dcf0c3156a7d75e7be45e71
346
py
Python
old files/problem0009.py
kmarcini/Project-Euler-Python
d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3
[ "BSD-3-Clause" ]
null
null
null
old files/problem0009.py
kmarcini/Project-Euler-Python
d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3
[ "BSD-3-Clause" ]
null
null
null
old files/problem0009.py
kmarcini/Project-Euler-Python
d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3
[ "BSD-3-Clause" ]
null
null
null
########################### # Project Euler Problem 9 # Special Pythagorean triplet # # Code by Kevin Marciniak ########################### total = 1000 product = 0 for c in range(1, 1000): for b in range(1, c): for a in range(1, b): if (a + b + c) == 1000: if ((a * a) + (b * b)) == (c * c): product = ...
18.210526
38
0.471098
########################### # Project Euler Problem 9 # Special Pythagorean triplet # # Code by Kevin Marciniak ########################### total = 1000 product = 0 for c in range(1, 1000): for b in range(1, c): for a in range(1, b): if (a + b + c) == 1000: if ((a * a) + (b * b)) == (c * c): product = ...
0
0
0
0
0
0
0
0
0
a147e22d5aeaabe35ccc4c56ea5539f536e24407
3,685
py
Python
lbrynet/wallet/ledger.py
ttkopec/lbry
03415415ed397730e6f691f527f51b429a834ed5
[ "MIT" ]
null
null
null
lbrynet/wallet/ledger.py
ttkopec/lbry
03415415ed397730e6f691f527f51b429a834ed5
[ "MIT" ]
110
2018-11-26T05:41:35.000Z
2021-08-03T15:37:20.000Z
lbrynet/wallet/ledger.py
ttkopec/lbry
03415415ed397730e6f691f527f51b429a834ed5
[ "MIT" ]
1
2018-09-20T22:15:59.000Z
2018-09-20T22:15:59.000Z
import logging log = logging.getLogger(__name__)
34.12037
101
0.735414
import logging from six import int2byte from binascii import unhexlify from twisted.internet import defer from .resolve import Resolver from lbryschema.error import URIParseError from lbryschema.uri import parse_lbry_uri from torba.baseledger import BaseLedger from .account import Account from .network import Netwo...
0
1,299
0
1,833
0
0
0
162
337
226c32b59ca6bfd5663903c81b43098c8f2f31df
1,870
py
Python
emontranslator_v0.py
mkaiserpm/emonpython
f5e7d70b83f1c528fc485556464ce1b4f8553d9b
[ "MIT" ]
null
null
null
emontranslator_v0.py
mkaiserpm/emonpython
f5e7d70b83f1c528fc485556464ce1b4f8553d9b
[ "MIT" ]
null
null
null
emontranslator_v0.py
mkaiserpm/emonpython
f5e7d70b83f1c528fc485556464ce1b4f8553d9b
[ "MIT" ]
null
null
null
''' Created on 01.05.2017 @author: mario Emontranslator Receive messages from serial/uart Generate JSON Emon Input Messages Insert via EMON API / APIKEY to emoncms on locahost (running on pi) ''' import serial import httplib import time domain = "localhost" emoncmspath = "emoncms" apikey = "2eba96e51f6b41534f52110...
26.338028
120
0.578075
''' Created on 01.05.2017 @author: mario Emontranslator Receive messages from serial/uart Generate JSON Emon Input Messages Insert via EMON API / APIKEY to emoncms on locahost (running on pi) ''' import serial import httplib import time domain = "localhost" emoncmspath = "emoncms" apikey = "2eba96e51f6b41534f52110...
0
0
0
0
0
529
0
0
23
515fea6b09cfd40afa2a167b2e7a719933d9dd52
3,970
py
Python
client.py
AvaCity/avacity-async
d600bf3914ab13c918d33a17b1c70df8d2af6913
[ "BSD-3-Clause" ]
10
2020-08-14T03:41:13.000Z
2021-12-12T20:04:08.000Z
client.py
oopss1k/1
78fc1d2cdd001630d80a065a4243e1745f6ba876
[ "BSD-3-Clause" ]
6
2020-08-28T17:27:55.000Z
2022-02-25T20:39:02.000Z
client.py
AvaCity/avacity-async
d600bf3914ab13c918d33a17b1c70df8d2af6913
[ "BSD-3-Clause" ]
5
2020-08-13T20:40:16.000Z
2022-02-25T20:28:43.000Z
PUFFIN_SUB = ["107.178.32.0/20", "45.33.128.0/20", "101.127.206.0/23", "101.127.208.0/23"]
32.276423
79
0.517884
import logging import asyncio import binascii import time import struct from ipaddress import ip_network, ip_address import protocol import const PUFFIN_SUB = ["107.178.32.0/20", "45.33.128.0/20", "101.127.206.0/23", "101.127.208.0/23"] def is_puffin(ip): for net in PUFFIN_SUB: net = ip_net...
80
0
2,484
1,017
0
129
0
-30
222
6f9cf2d8cd0d99cb21323c1e981144539e4f1b93
255,228
py
Python
gbpservice/neutron/tests/unit/services/grouppolicy/test_apic_mapping.py
ashutosh-mishra/my-test
51c82af293f291b9182204392e7d21bda27786d1
[ "Apache-2.0" ]
null
null
null
gbpservice/neutron/tests/unit/services/grouppolicy/test_apic_mapping.py
ashutosh-mishra/my-test
51c82af293f291b9182204392e7d21bda27786d1
[ "Apache-2.0" ]
null
null
null
gbpservice/neutron/tests/unit/services/grouppolicy/test_apic_mapping.py
ashutosh-mishra/my-test
51c82af293f291b9182204392e7d21bda27786d1
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the...
48.002257
79
0.584552
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the...
0
90
0
251,776
0
43
0
551
1,175
87484e3ece20f96eee0532619677e15accd1c4e4
4,760
py
Python
ResourceMonitor.py
Bot-7037/Resource-Monitor
44c96606784d6138bbfbc0fd8254252bb676dbfc
[ "MIT" ]
1
2021-11-21T05:26:06.000Z
2021-11-21T05:26:06.000Z
ResourceMonitor.py
Bot-7037/Resource-Monitor
44c96606784d6138bbfbc0fd8254252bb676dbfc
[ "MIT" ]
null
null
null
ResourceMonitor.py
Bot-7037/Resource-Monitor
44c96606784d6138bbfbc0fd8254252bb676dbfc
[ "MIT" ]
null
null
null
from termcolor import colored import GetInfo import time import os if __name__ == "__main__": import argparse parser = argparse.ArgumentParser() parser.add_argument("-c", "--columns", default="name,cpu_usage,memory_usage,read_bytes,write_bytes,status,create_time,n_threads") parser.add_argu...
35
134
0.575
import psutil import pandas as pd from datetime import datetime from termcolor import colored import GetInfo import Notify import time import os def print_header(): print("╔"+"═"*117,end="╗\n║") print(colored("\t\t\t\t\t\t[= RESOURCE MONITOR =]\t\t\t\t\t\t ", "cyan", attrs=['bold']),end="║\n"...
60
0
0
0
0
2,105
0
-10
217
8d272e209965eda5ff24423747a5f6f4591b2b0c
1,369
py
Python
shutdown.py
liusl104/py_sync_binlog
33a67f545159767d38a522d28d2f79b3ac3802ca
[ "Apache-2.0" ]
3
2018-09-18T03:29:33.000Z
2020-01-13T03:34:39.000Z
shutdown.py
liusl104/py_sync_binlog
33a67f545159767d38a522d28d2f79b3ac3802ca
[ "Apache-2.0" ]
null
null
null
shutdown.py
liusl104/py_sync_binlog
33a67f545159767d38a522d28d2f79b3ac3802ca
[ "Apache-2.0" ]
1
2022-01-25T09:39:17.000Z
2022-01-25T09:39:17.000Z
# encoding=utf8 from sync_binlog.output_log import logger as loging import time import sys from sync_binlog.update_post import update_datetime try: import psutil except ImportError: print("psutil , pip install psutil ") sys.exit(0) # Shutdown complete if __name__ == "__main__": print("%sStarting sh...
24.890909
63
0.637692
# encoding=utf8 import os import socket from sync_binlog.output_log import logger as loging import time import sys from sync_binlog.update_post import update_datetime try: import psutil except ImportError: print("psutil 模块不存在,请使用 pip install psutil 安装") sys.exit(0) def shutdown_program(): hostname =...
132
0
0
0
0
571
0
-20
91
e1c34e1f2ca887b5b7509177103c082a02ee4201
337
py
Python
example/test/T7_duocaiyinyuebang.py
Michael8968/skulpt
15956a60398fac92ee1dab25bf661ffc003b2eaf
[ "MIT" ]
2
2021-12-18T06:34:26.000Z
2022-01-05T05:08:47.000Z
example/test/T8_duocaiyinyuebang.py
Michael8968/skulpt
15956a60398fac92ee1dab25bf661ffc003b2eaf
[ "MIT" ]
null
null
null
example/test/T8_duocaiyinyuebang.py
Michael8968/skulpt
15956a60398fac92ee1dab25bf661ffc003b2eaf
[ "MIT" ]
null
null
null
import turtle turtle.mode("logo") turtle.shape("turtle") turtle.bgcolor("black") turtle.hideturtle() turtle.pensize(12) turtle.colormode(255) s = 50 a = 0 for i in range(10): turtle.pencolor(200-a, a, 100) turtle.pu() turtle.goto(25*i, 0) turtle.pd() turtle.forward(s) a = a + 20 s = s + 10...
14.652174
34
0.62908
import turtle turtle.mode("logo") turtle.shape("turtle") turtle.bgcolor("black") turtle.hideturtle() turtle.pensize(12) turtle.colormode(255) s = 50 a = 0 for i in range(10): turtle.pencolor(200-a, a, 100) turtle.pu() turtle.goto(25*i, 0) turtle.pd() turtle.forward(s) a = a + 20 s = s + 10...
0
0
0
0
0
0
0
0
0
d73f56d089f03fc6f77ef649bdcfbef43da2b862
1,144
py
Python
docs/scripts/cluster_add_k8s.py
pramaku/hpecp-python-library
55550a1e27259a3132ea0608e66719e9732fb081
[ "Apache-2.0" ]
null
null
null
docs/scripts/cluster_add_k8s.py
pramaku/hpecp-python-library
55550a1e27259a3132ea0608e66719e9732fb081
[ "Apache-2.0" ]
null
null
null
docs/scripts/cluster_add_k8s.py
pramaku/hpecp-python-library
55550a1e27259a3132ea0608e66719e9732fb081
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 from hpecp import ContainerPlatformClient, APIException from hpecp.k8s_cluster import K8sClusterHostConfig import textwrap client = ContainerPlatformClient(username='admin', password='admin123', api_host='127.0.0.1', ...
35.75
139
0.604021
#!/usr/bin/env python3 from hpecp import ContainerPlatformClient, APIException from hpecp.k8s_cluster import K8sClusterHostConfig import textwrap client = ContainerPlatformClient(username='admin', password='admin123', api_host='127.0.0.1', ...
0
0
0
0
0
0
0
0
0
ff3dcdc0b12675c40e2b4e49025d944716d7d7ae
1,195
py
Python
datasets/data_splitter.py
AjayMudhai/pytorch-CycleGAN-and-pix2pix
64fcf0b926e2125042a559b0fb6a4a57559923c2
[ "BSD-3-Clause" ]
null
null
null
datasets/data_splitter.py
AjayMudhai/pytorch-CycleGAN-and-pix2pix
64fcf0b926e2125042a559b0fb6a4a57559923c2
[ "BSD-3-Clause" ]
null
null
null
datasets/data_splitter.py
AjayMudhai/pytorch-CycleGAN-and-pix2pix
64fcf0b926e2125042a559b0fb6a4a57559923c2
[ "BSD-3-Clause" ]
null
null
null
# wbg_pth='/datadrive/Reflection/training_data/wbg' # img_pth='/datadrive/Reflection/training_data/images' # dst_pth='/datadrive/Reflection/training_data/valB' # move_data(wbg_pth,img_pth,dst_pth) wbg_pth='/datadrive/Reflection/training_data/wbg' trainA_pth='/datadrive/pytorch-CycleGAN-and-pix2pix/datasets/cars/tr...
35.147059
73
0.702092
import os import shutil def move_data(wbg_pth,img_pth,dst_pth): for root,dirs,files in os.walk(wbg_pth): for file in files: op=os.path.join(img_pth,file) nnp=os.path.join(dst_pth,file) shutil.move(op,nnp) # wbg_pth='/datadrive/Reflection/training_data/wbg' # img_pt...
0
0
0
0
0
620
0
-20
92
5679b81204b649dc0cd086786518ea8025d21ff4
2,711
py
Python
venv/lib/python3.8/site-packages/azureml/_base_sdk_common/field_info.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/azureml/_base_sdk_common/field_info.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/azureml/_base_sdk_common/field_info.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
2
2021-05-23T16:46:31.000Z
2021-05-26T23:51:09.000Z
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- """A class for storing the field information."""
30.806818
113
0.57986
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- """A class for storing the field information.""" class _FieldInfo(object): """A class for storing the field information.""" ...
0
1,085
0
1,367
0
0
0
0
24
6f3cd2cc7dc0d6471de7c34578d22cf3a32749f4
3,440
py
Python
GmailWrapper_JE/venv/Lib/site-packages/google/auth/crypt/__init__.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
GmailWrapper_JE/venv/Lib/site-packages/google/auth/crypt/__init__.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
GmailWrapper_JE/venv/Lib/site-packages/google/auth/crypt/__init__.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
# Copyright 2016 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
34.059406
85
0.684302
# Copyright 2016 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
0
0
0
0
0
0
0
0
0
139954145bee80fddd7c595da934e0de4728e34e
84
py
Python
hw7/ch16/automate_online-materials/sameNameError.py
JWiliams/csc221
0653dcb5f185e8517be9146e17b580f62d4930e6
[ "CC0-1.0" ]
null
null
null
hw7/ch16/automate_online-materials/sameNameError.py
JWiliams/csc221
0653dcb5f185e8517be9146e17b580f62d4930e6
[ "CC0-1.0" ]
null
null
null
hw7/ch16/automate_online-materials/sameNameError.py
JWiliams/csc221
0653dcb5f185e8517be9146e17b580f62d4930e6
[ "CC0-1.0" ]
null
null
null
eggs = 'global' spam()
14
24
0.571429
def spam(): print(eggs) # ERROR! eggs = 'spam local' eggs = 'global' spam()
0
0
0
0
0
39
0
0
22
49e036fce5023369b407b2429dceb9099d47e801
1,209
py
Python
scripts/release_helper/utils.py
DavidZeLiang/azure-sdk-for-python
b343247adc7c3c7ff52d6eadeca6b57eb0a23047
[ "MIT" ]
null
null
null
scripts/release_helper/utils.py
DavidZeLiang/azure-sdk-for-python
b343247adc7c3c7ff52d6eadeca6b57eb0a23047
[ "MIT" ]
null
null
null
scripts/release_helper/utils.py
DavidZeLiang/azure-sdk-for-python
b343247adc7c3c7ff52d6eadeca6b57eb0a23047
[ "MIT" ]
null
null
null
import logging REQUEST_REPO = 'Azure/sdk-release-request' REST_REPO = 'Azure/azure-rest-api-specs' AUTO_ASSIGN_LABEL = 'assigned' AUTO_PARSE_LABEL = 'auto-link' _LOG = logging.getLogger(__name__)
31
87
0.635236
from github.Issue import Issue from github.Repository import Repository import logging from typing import List REQUEST_REPO = 'Azure/sdk-release-request' REST_REPO = 'Azure/azure-rest-api-specs' AUTO_ASSIGN_LABEL = 'assigned' AUTO_PARSE_LABEL = 'auto-link' _LOG = logging.getLogger(__name__) def get_origin_link_and_...
0
0
0
345
0
522
0
30
112
11de465540347c176ba804221d719eaf15627d08
2,350
py
Python
ex9/api_processor.py
Maheliusz/nlp_lab
49e5c9dfe81d94bac4323e044502d1b73c99ce3c
[ "MIT" ]
null
null
null
ex9/api_processor.py
Maheliusz/nlp_lab
49e5c9dfe81d94bac4323e044502d1b73c99ce3c
[ "MIT" ]
null
null
null
ex9/api_processor.py
Maheliusz/nlp_lab
49e5c9dfe81d94bac4323e044502d1b73c99ce3c
[ "MIT" ]
null
null
null
import argparse import os import random import sys import time import requests parser = argparse.ArgumentParser() parser.add_argument('--path', type=str, help='Path to text files with bills', required=True) parser.add_argument('--count', type=int, help='How much files process', required=False, default=20) args = par...
41.22807
113
0.570638
import argparse import os import random import sys import time import requests parser = argparse.ArgumentParser() parser.add_argument('--path', type=str, help='Path to text files with bills', required=True) parser.add_argument('--count', type=int, help='How much files process', required=False, default=20) args = par...
0
0
0
0
0
0
0
0
0
5dedd4b58a8257ac092a43187da5519e0e4f4069
732
py
Python
src/routes/v1/faculties.py
university-my/ultimate-schedule-api
6dbf2368da8751a8b6105c8d783a4b105f99866d
[ "MIT" ]
5
2020-04-18T16:33:50.000Z
2021-09-30T09:24:56.000Z
src/routes/v1/faculties.py
university-my/ultimate-schedule-api
6dbf2368da8751a8b6105c8d783a4b105f99866d
[ "MIT" ]
15
2020-04-18T13:03:26.000Z
2021-12-13T20:44:54.000Z
src/routes/v1/faculties.py
university-my/ultimate-schedule-api
6dbf2368da8751a8b6105c8d783a4b105f99866d
[ "MIT" ]
2
2020-05-30T20:51:45.000Z
2021-09-28T10:32:12.000Z
from fastapi import APIRouter tag = "Faculties" router = APIRouter()
34.857143
85
0.79235
from fastapi import APIRouter from src.utils.events import Events from src.schemas.schema import x_schedule_header from src.controllers.faculties_controller import get_all_faculties, is_faculty_exists from src.utils.tracking import track tag = "Faculties" router = APIRouter() @router.get("", tags=[tag]) @track(fmt="...
0
406
0
0
0
0
0
120
134
20b200530b1cf1e5a75bb3eada9fd29120296117
11,062
py
Python
ckanext/ksext/controllers/MUser.py
WilJoey/ckanext-ksext
1f3383d34beb35702d5bf0799defa5398f207ce2
[ "MIT" ]
null
null
null
ckanext/ksext/controllers/MUser.py
WilJoey/ckanext-ksext
1f3383d34beb35702d5bf0799defa5398f207ce2
[ "MIT" ]
null
null
null
ckanext/ksext/controllers/MUser.py
WilJoey/ckanext-ksext
1f3383d34beb35702d5bf0799defa5398f207ce2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #from ckan.lib.base import BaseController, config import ckan.lib.base as base import ckan.model as model import ckan.logic as logic import ckan.logic.schema as schema import ckan.new_authz as new_authz import ckan.lib.captcha as captcha import ckan.lib.navl.dictization_functions as dictization_...
37.120805
175
0.593835
# -*- coding: utf-8 -*- import ckan.plugins as p #from ckan.lib.base import BaseController, config import ckan.lib.base as base import ckan.lib.helpers as h import ckan.model as model import ckan.logic as logic import ckan.logic.schema as schema import ckan.new_authz as new_authz import ckan.lib.captcha as captcha imp...
0
0
0
10,430
0
0
0
25
156
a156f74140169b47890b5b7f16f2a1189fccdb1f
15,863
py
Python
pypeit/core/load.py
finagle29/PypeIt
418d6d24d24054ad590d2f06c0b4688ea18f492e
[ "BSD-3-Clause" ]
null
null
null
pypeit/core/load.py
finagle29/PypeIt
418d6d24d24054ad590d2f06c0b4688ea18f492e
[ "BSD-3-Clause" ]
null
null
null
pypeit/core/load.py
finagle29/PypeIt
418d6d24d24054ad590d2f06c0b4688ea18f492e
[ "BSD-3-Clause" ]
null
null
null
""" Module for loading PypeIt files """ import os import numpy as np from astropy import units from astropy.io import fits from linetools.spectra.xspectrum1d import XSpectrum1D from linetools.spectra.utils import collate import linetools.utils from pypeit import msgs # TODO I don't think we need this routine def...
38.040767
128
0.60348
""" Module for loading PypeIt files """ import os import warnings import numpy as np from astropy import units from astropy.time import Time from astropy.io import fits from astropy.table import Table from linetools.spectra.xspectrum1d import XSpectrum1D from linetools.spectra.utils import collate import linetools.u...
0
0
0
0
0
246
0
24
133
a43b1675c8e19994c0be2bd6717197a732815f09
336
py
Python
welltory/admin.py
vasmedvedev/welltory_test
9dd1ea35850916a2203241798d0acd9415d762b7
[ "MIT" ]
null
null
null
welltory/admin.py
vasmedvedev/welltory_test
9dd1ea35850916a2203241798d0acd9415d762b7
[ "MIT" ]
null
null
null
welltory/admin.py
vasmedvedev/welltory_test
9dd1ea35850916a2203241798d0acd9415d762b7
[ "MIT" ]
null
null
null
from django.contrib import admin from welltory import models admin.site.register(models.Sleep, SleepAdmin) admin.site.register(models.Steps, StepsAdmin) admin.site.register(models.Geo, GeoAdmin)
16.8
45
0.779762
from django.contrib import admin from welltory import models class SleepAdmin(admin.ModelAdmin): pass class StepsAdmin(admin.ModelAdmin): pass class GeoAdmin(admin.ModelAdmin): pass admin.site.register(models.Sleep, SleepAdmin) admin.site.register(models.Steps, StepsAdmin) admin.site.register(models...
0
0
0
67
0
0
0
0
69
14fe2fcea35b1656d97913ad5e54df7ffd928511
125
py
Python
app/recipies/admin.py
sourabhsinha396/Rest-api-recipie
a9937d5119c706d1193654ece280ed46b599a344
[ "MIT" ]
null
null
null
app/recipies/admin.py
sourabhsinha396/Rest-api-recipie
a9937d5119c706d1193654ece280ed46b599a344
[ "MIT" ]
9
2021-03-30T14:10:47.000Z
2021-09-22T19:29:50.000Z
app/recipies/admin.py
sourabhsinha396/Rest-api-recipie
a9937d5119c706d1193654ece280ed46b599a344
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Tag, Ingredient admin.site.register(Tag) admin.site.register(Ingredient)
25
34
0.832
from django.contrib import admin from .models import Tag,Ingredient admin.site.register(Tag) admin.site.register(Ingredient)
0
0
0
0
0
0
0
-1
0
1471e53db5b729dc1c33d31786115ca692ce7cf8
671
py
Python
RunProject.py
badeaadi/Colorization
b18d4267aa611b7e87ddfe8a32fef834259e8a45
[ "MIT" ]
null
null
null
RunProject.py
badeaadi/Colorization
b18d4267aa611b7e87ddfe8a32fef834259e8a45
[ "MIT" ]
null
null
null
RunProject.py
badeaadi/Colorization
b18d4267aa611b7e87ddfe8a32fef834259e8a45
[ "MIT" ]
null
null
null
""" PROIECT Colorarea imaginilor folosind autoencoder si invatarea automata Badea Adrian Catalin, grupa 334, anul III, FMI """ data_set: DataSet = DataSet() data_set.scene_name = 'forest' ae_model: AeModel = AeModel(data_set) ae_model.define_the_model() ae_model.compile_the_model(...
19.735294
68
0.730253
""" PROIECT Colorarea imaginilor folosind autoencoder si invatarea automata Badea Adrian Catalin, grupa 334, anul III, FMI """ import pdb from DataSet import * from AeModel import * data_set: DataSet = DataSet() data_set.scene_name = 'forest' ae_model: AeModel = AeModel(data_set)...
0
0
0
0
0
0
0
-11
71
8f2f930b5a2dacd7576259cb4a0ce498b4941c73
359
py
Python
ch02/similarity.py
YaGiNA/DLfS2
3dbaba7a62c198b50849de2e3b74d92897a4cae7
[ "MIT" ]
1
2019-05-15T09:17:23.000Z
2019-05-15T09:17:23.000Z
ch02/similarity.py
YaGiNA/DLfS2
3dbaba7a62c198b50849de2e3b74d92897a4cae7
[ "MIT" ]
null
null
null
ch02/similarity.py
YaGiNA/DLfS2
3dbaba7a62c198b50849de2e3b74d92897a4cae7
[ "MIT" ]
null
null
null
import sys sys.path.append("..") from common.util import preprocess, create_co_matrix, cos_similarity text = "You say goobye and I say hello." corpus, word_to_id, id_to_word = preprocess(text) vocab_size = len(word_to_id) C = create_co_matrix(corpus, vocab_size) c0 = C[word_to_id["you"]] c1 = C[word_to_id...
25.642857
69
0.721448
import sys sys.path.append("..") from common.util import preprocess, create_co_matrix, cos_similarity text = "You say goobye and I say hello." corpus, word_to_id, id_to_word = preprocess(text) vocab_size = len(word_to_id) C = create_co_matrix(corpus, vocab_size) c0 = C[word_to_id["you"]] c1 = C[word_to_id...
0
0
0
0
0
0
0
0
0
69b5c654c37a2e2d72fe9be3cc0958d62171dbd6
9,814
py
Python
pydht/pydht.py
scottcunningham/pydht
9a2ecfc8da3794b2dc6587d17b8d51337a8e7df4
[ "BSD-2-Clause-FreeBSD" ]
1
2015-01-04T07:02:54.000Z
2015-01-04T07:02:54.000Z
pydht/pydht.py
scottcunningham/pydht
9a2ecfc8da3794b2dc6587d17b8d51337a8e7df4
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
pydht/pydht.py
scottcunningham/pydht
9a2ecfc8da3794b2dc6587d17b8d51337a8e7df4
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
k = 20 alpha = 3 id_bits = 128 iteration_sleep = 1 keysize = 2048 DEFAULT_TTL = 604800 # = 7 days, in seconds.
39.099602
151
0.635011
import math import json import random import uuid import SocketServer import threading import time import key_derivation from .bucketset import BucketSet from .hashing import hash_function, random_id from .peer import Peer from .shortlist import Shortlist k = 20 alpha = 3 id_bits = 128 iteration_sleep = 1 keysize = 2...
0
0
0
9,374
0
0
0
-8
334
60baa5af0a80d786e5af5dc6c9b0c70a33113f15
913
py
Python
mutability/mutability_exercise2.py
dipeshbabu/python-labs-codio
40ec0f398dc239b41d4105a8f95b35a22024b63e
[ "MIT" ]
2
2021-11-18T01:42:00.000Z
2021-11-28T14:55:31.000Z
mutability/mutability_exercise2.py
dipeshbabu/python-labs-codio
40ec0f398dc239b41d4105a8f95b35a22024b63e
[ "MIT" ]
null
null
null
mutability/mutability_exercise2.py
dipeshbabu/python-labs-codio
40ec0f398dc239b41d4105a8f95b35a22024b63e
[ "MIT" ]
null
null
null
""" Exercise 2 Using the same CelestialBody class, write a static method closer_to_sun that compares two CelectialBody objects and returns the name of the object that is closes to the sun. Expected Output If the objects mercury and venus are compared, then the method would return Mercury. """ mercury = CelestialBody...
27.666667
87
0.665936
""" Exercise 2 Using the same CelestialBody class, write a static method closer_to_sun that compares two CelectialBody objects and returns the name of the object that is closes to the sun. Expected Output If the objects mercury and venus are compared, then the method would return Mercury. """ class CelestialBody: ...
0
243
0
240
0
0
0
0
23
4b6841333d077341a6f1d6dc8abf6907abc1a552
6,442
py
Python
source/clusters/train_cluster.py
microsoft/Aura
d95ae0067bcd82e5952e8eed0e46b1a5eaaa7031
[ "MIT" ]
1
2022-03-02T00:21:33.000Z
2022-03-02T00:21:33.000Z
source/clusters/train_cluster.py
microsoft/Aura
d95ae0067bcd82e5952e8eed0e46b1a5eaaa7031
[ "MIT" ]
null
null
null
source/clusters/train_cluster.py
microsoft/Aura
d95ae0067bcd82e5952e8eed0e46b1a5eaaa7031
[ "MIT" ]
2
2022-03-15T03:12:02.000Z
2022-03-20T20:49:02.000Z
import os from azureml.core.run import Run from ..utils.tfrecords import resize, parse_tfrecord run = Run.get_context() def get_data_from_tfrecords(args, num_replicas): """ Create a tf.data from tf records in args.train_dir/args.validation_dir :param args: :param num_replicas: :return: ""...
34.084656
132
0.658025
import numpy as np import os from azureml.core.run import Run from scipy.stats import entropy from ..utils.tfrecords import resize, parse_tfrecord from .kmeans import * from ..models import * run = Run.get_context() class ClusterFeatureMap(tf.keras.Model): """" This is a clustering class with methods to all...
0
0
0
3,415
0
0
0
8
157
500a827b7b2d2907dc4668b184fb3c0816a2b1e1
4,987
py
Python
curriculumBuilder/testDetails.py
code-dot-org/curriculumbuilder
e40330006145b8528f777a8aec2abff5b309d1c7
[ "Apache-2.0" ]
3
2019-10-22T20:21:15.000Z
2022-01-12T19:38:48.000Z
curriculumBuilder/testDetails.py
code-dot-org/curriculumbuilder
e40330006145b8528f777a8aec2abff5b309d1c7
[ "Apache-2.0" ]
67
2019-09-27T17:04:52.000Z
2022-03-21T22:16:23.000Z
curriculumBuilder/testDetails.py
code-dot-org/curriculumbuilder
e40330006145b8528f777a8aec2abff5b309d1c7
[ "Apache-2.0" ]
1
2019-10-18T16:06:31.000Z
2019-10-18T16:06:31.000Z
# pylint: disable=missing-docstring,invalid-name,line-too-long
41.214876
166
0.600361
# pylint: disable=missing-docstring,invalid-name,line-too-long from django.test import TestCase import markdown class TestDetails(TestCase): """ Test details extension. """ def setUp(self): self.markdown = markdown.Markdown(extensions=['curriculumBuilder.details:DetailsExtension']) def test_deta...
0
0
0
4,851
0
0
0
5
68
88eef38159455835c84e3f2649e3a65d58cd13ef
5,079
py
Python
gtunrealdevice/config.py
Geeks-Trident-LLC/gtunrealdevice
a691f16ed031c342002472fd7c12c96c0e94be45
[ "BSD-3-Clause" ]
null
null
null
gtunrealdevice/config.py
Geeks-Trident-LLC/gtunrealdevice
a691f16ed031c342002472fd7c12c96c0e94be45
[ "BSD-3-Clause" ]
null
null
null
gtunrealdevice/config.py
Geeks-Trident-LLC/gtunrealdevice
a691f16ed031c342002472fd7c12c96c0e94be45
[ "BSD-3-Clause" ]
null
null
null
"""Module containing the attributes for gtunrealdevice.""" __version__ = '0.2.8' version = __version__ __edition__ = 'Community' edition = __edition__ __all__ = [ 'Data', 'version', 'edition' ]
35.027586
86
0.607403
"""Module containing the attributes for gtunrealdevice.""" import yaml from os import path from textwrap import dedent from gtunrealdevice.utils import File __version__ = '0.2.8' version = __version__ __edition__ = 'Community' edition = __edition__ __all__ = [ 'Data', 'version', 'edition' ] class Dat...
0
862
0
3,884
0
0
0
10
114
260c878ed68bb23823d5096c9467185ce233fe09
2,117
py
Python
semester5/num-methods/lab2/lab2.py
gardenappl/uni
5bc7110946caf16aae2a0c1ddae4e88bfbb25aa8
[ "WTFPL" ]
null
null
null
semester5/num-methods/lab2/lab2.py
gardenappl/uni
5bc7110946caf16aae2a0c1ddae4e88bfbb25aa8
[ "WTFPL" ]
null
null
null
semester5/num-methods/lab2/lab2.py
gardenappl/uni
5bc7110946caf16aae2a0c1ddae4e88bfbb25aa8
[ "WTFPL" ]
null
null
null
import numpy as np a = np.array([ (1, 3, 5, 7), (3, 5, 7, 1), (5, 7, 1, 3), (7, 1, 1, 5) ], dtype=np.float64) b = np.array([12, 0, 4, 16], dtype=np.float64) MAX_STEPS = 100 print("Gauss (with selection of main element):", solve_gauss_m(a, b)) print("numpy.linalg.solve:", np.linalg.solve(a, b)) ...
23.786517
76
0.505432
import numpy as np a = np.array([ (1, 3, 5, 7), (3, 5, 7, 1), (5, 7, 1, 3), (7, 1, 1, 5) ], dtype=np.float64) b = np.array([12, 0, 4, 16], dtype=np.float64) def solve_gauss_m(a, b): a = a.copy() b = b.copy() for i in range(0, a.shape[0]): main_row_index = i + np.argmax(a[range(...
0
0
0
0
0
1,511
0
0
46
429b84c47c7bb1d0236a511a637bb935635a7405
8,460
py
Python
ctseg/config.py
sandialabs/mcdn-3d-seg
6b6a234719d37a11f3f997568c32ca04d62a4b18
[ "MIT" ]
4
2021-01-21T21:28:12.000Z
2021-09-27T19:39:34.000Z
ctseg/config.py
sandialabs/mcdn-3d-seg
6b6a234719d37a11f3f997568c32ca04d62a4b18
[ "MIT" ]
null
null
null
ctseg/config.py
sandialabs/mcdn-3d-seg
6b6a234719d37a11f3f997568c32ca04d62a4b18
[ "MIT" ]
2
2021-09-01T11:44:49.000Z
2022-01-04T02:01:28.000Z
""" """ import os from sacred.observers import FileStorageObserver from sacred import Experiment from ctseg.ctutil.utils import read_json def initialize_experiment(): """Initialize the Sacred Experiment This method reads a JSON config from mcdn-3d-seg/sacred_config.json with the following entries: ...
36.943231
89
0.610757
""" """ import os from sacred.observers import FileStorageObserver from sacred import Experiment from ctseg.ctutil.utils import read_json def initialize_experiment(): """Initialize the Sacred Experiment This method reads a JSON config from mcdn-3d-seg/sacred_config.json with the following entries: ...
0
283
0
0
0
0
0
0
92
f0b634f5ff4f75ca1711e6e717af315fda15fb61
1,290
py
Python
src/sage/features/pdf2svg.py
kliem/sage-test-27122
cc60cfebc4576fed8b01f0fc487271bdee3cefed
[ "BSL-1.0" ]
null
null
null
src/sage/features/pdf2svg.py
kliem/sage-test-27122
cc60cfebc4576fed8b01f0fc487271bdee3cefed
[ "BSL-1.0" ]
null
null
null
src/sage/features/pdf2svg.py
kliem/sage-test-27122
cc60cfebc4576fed8b01f0fc487271bdee3cefed
[ "BSL-1.0" ]
1
2020-07-23T10:29:56.000Z
2020-07-23T10:29:56.000Z
# -*- coding: utf-8 -*- r""" Check for pdf2svg """ # **************************************************************************** # Copyright (C) 2021 Sebastien Labbe <slabqc@gmail.com> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License ...
33.947368
84
0.531008
# -*- coding: utf-8 -*- r""" Check for pdf2svg """ # **************************************************************************** # Copyright (C) 2021 Sebastien Labbe <slabqc@gmail.com> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License ...
0
0
0
671
0
0
0
3
46
81823ab9baefc07843a37683b2ffb1db1f4fa33b
1,670
py
Python
test.py
IrekPrzybylo/DogBreedDNN
7c429694c648351cd23544b9b1321665c1866c7c
[ "MIT" ]
null
null
null
test.py
IrekPrzybylo/DogBreedDNN
7c429694c648351cd23544b9b1321665c1866c7c
[ "MIT" ]
12
2021-04-08T16:08:27.000Z
2021-06-23T15:10:41.000Z
test.py
IrekPrzybylo/DogBreedDNN
7c429694c648351cd23544b9b1321665c1866c7c
[ "MIT" ]
2
2021-04-08T14:55:04.000Z
2021-04-22T10:59:28.000Z
import os import cv2 import numpy as np import pandas as pd import tensorflow as tf def read_image(path, size): """ Load image from local storage :param path: image path :param size: image size :return: loaded image """ image = cv2.imread(path, cv2.IMREAD_COLOR) image = cv2.resize(ima...
28.793103
69
0.649102
import os import cv2 import numpy as np import pandas as pd import tensorflow as tf def read_image(path, size): """ Load image from local storage :param path: image path :param size: image size :return: loaded image """ image = cv2.imread(path, cv2.IMREAD_COLOR) image = cv2.resize(ima...
0
0
0
0
0
0
0
0
0
0302eb3a4c90c0f51ea5fb46f2c400e93479d849
236
py
Python
bitbots_misc/bitbots_bringup/scripts/launch_warning.py
MosHumanoid/bitbots_thmos_meta
f45ccc362dc689b69027be5b0d000d2a08580de4
[ "MIT" ]
null
null
null
bitbots_misc/bitbots_bringup/scripts/launch_warning.py
MosHumanoid/bitbots_thmos_meta
f45ccc362dc689b69027be5b0d000d2a08580de4
[ "MIT" ]
57
2019-03-02T10:59:05.000Z
2021-12-09T18:57:34.000Z
bitbots_misc/bitbots_bringup/scripts/launch_warning.py
MosHumanoid/bitbots_thmos_meta
f45ccc362dc689b69027be5b0d000d2a08580de4
[ "MIT" ]
1
2019-07-28T11:26:47.000Z
2019-07-28T11:26:47.000Z
#!/usr/bin/env python3 import rospy rospy.logerr("###\n###\n###\n###\n###\nYou didn't specifiy which robot you want to start!\nPlease add minibot:=true or wolfgang:=true or davros:=true behind you roslaunch.\n###\n###\n###\n###\n###")
47.2
198
0.648305
#!/usr/bin/env python3 import rospy rospy.logerr("###\n###\n###\n###\n###\nYou didn't specifiy which robot you want to start!\nPlease add minibot:=true or wolfgang:=true or davros:=true behind you roslaunch.\n###\n###\n###\n###\n###")
0
0
0
0
0
0
0
0
0
395e3450ce5675d25cb67b1cbba1201ead7d4bd1
612
py
Python
cms_redirects/admin.py
mllrsohn/django-cms-redirects
3398528e44594adb708aa090d5b7867f619db10e
[ "BSD-3-Clause" ]
8
2015-02-10T20:30:26.000Z
2020-05-31T20:20:51.000Z
cms_redirects/admin.py
mllrsohn/django-cms-redirects
3398528e44594adb708aa090d5b7867f619db10e
[ "BSD-3-Clause" ]
5
2017-04-10T07:41:45.000Z
2021-12-20T08:49:35.000Z
cms_redirects/admin.py
mllrsohn/django-cms-redirects
3398528e44594adb708aa090d5b7867f619db10e
[ "BSD-3-Clause" ]
8
2015-04-16T21:25:55.000Z
2018-09-27T11:15:12.000Z
from django.contrib import admin from cms_redirects.models import CMSRedirect admin.site.register(CMSRedirect, CMSRedirectAdmin)
32.210526
97
0.625817
from django.contrib import admin from cms_redirects.models import CMSRedirect class CMSRedirectAdmin(admin.ModelAdmin): list_display = ('old_path', 'new_path', 'page', 'page_site', 'site', 'actual_response_code',) list_filter = ('site',) search_fields = ('old_path', 'new_path', 'page__title_set__title') ...
0
0
0
459
0
0
0
0
23
06aa52314a9c965d93128b5579494aaf803987c3
646
py
Python
cybox/test/objects/win_network_route_entry_test.py
siemens/python-cybox
b692a98c8a62bd696e2a0dda802ada7359853482
[ "BSD-3-Clause" ]
null
null
null
cybox/test/objects/win_network_route_entry_test.py
siemens/python-cybox
b692a98c8a62bd696e2a0dda802ada7359853482
[ "BSD-3-Clause" ]
null
null
null
cybox/test/objects/win_network_route_entry_test.py
siemens/python-cybox
b692a98c8a62bd696e2a0dda802ada7359853482
[ "BSD-3-Clause" ]
1
2019-04-16T18:37:32.000Z
2019-04-16T18:37:32.000Z
# Copyright (c) 2014, The MITRE Corporation. All rights reserved. # See LICENSE.txt for complete terms. import unittest if __name__ == "__main__": unittest.main()
26.916667
77
0.752322
# Copyright (c) 2014, The MITRE Corporation. All rights reserved. # See LICENSE.txt for complete terms. import unittest from cybox.objects.win_network_route_entry_object import WinNetworkRouteEntry from cybox.test import EntityTestCase, round_trip from cybox.test.objects import ObjectTestCase class TestWinNetworkR...
0
0
0
277
0
0
0
108
91
b8dab34e2ddba5fa52d18ceed2c8f8efbaf24b94
3,710
py
Python
external/evolver_gff_featurestats2.py
dentearl/evolverSimControl
b3236debbc8d945a99aecb0988bd1f48f25913c3
[ "MIT" ]
4
2018-12-01T13:49:12.000Z
2021-02-18T17:55:46.000Z
external/evolver_gff_featurestats2.py
dentearl/evolverSimControl
b3236debbc8d945a99aecb0988bd1f48f25913c3
[ "MIT" ]
null
null
null
external/evolver_gff_featurestats2.py
dentearl/evolverSimControl
b3236debbc8d945a99aecb0988bd1f48f25913c3
[ "MIT" ]
1
2021-04-10T15:05:11.000Z
2021-04-10T15:05:11.000Z
#!/usr/bin/env python # Copyright (C) 2008-2011 by # George Asimenos, Robert C. Edgar, Serafim Batzoglou and Arend Sidow. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restrictio...
28.106061
127
0.646092
#!/usr/bin/env python # Copyright (C) 2008-2011 by # George Asimenos, Robert C. Edgar, Serafim Batzoglou and Arend Sidow. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restrictio...
0
0
0
0
0
649
0
0
115
62ff44c7a0f8ffe85637457045ee365bbf8e42f1
4,116
py
Python
LearningSafeSets/Model/SafeSet.py
alexliniger/AdversarialRoadModel
14157760687c22acc8b91c39128875005ada7563
[ "Apache-2.0" ]
20
2020-07-17T06:32:32.000Z
2022-03-27T03:24:26.000Z
LearningSafeSets/Model/SafeSet.py
alexliniger/AdversarialRoadModel
14157760687c22acc8b91c39128875005ada7563
[ "Apache-2.0" ]
null
null
null
LearningSafeSets/Model/SafeSet.py
alexliniger/AdversarialRoadModel
14157760687c22acc8b91c39128875005ada7563
[ "Apache-2.0" ]
7
2020-07-19T07:16:01.000Z
2022-01-22T22:58:02.000Z
## Copyright 2020 Alexander Liniger ## Licensed under the Apache License, Version 2.0 (the "License"); ## you may not use this file except in compliance with the License. ## You may obtain a copy of the License at ## http://www.apache.org/licenses/LICENSE-2.0 ## Unless required by applicable law or agreed to in ...
36.75
75
0.49757
## Copyright 2020 Alexander Liniger ## Licensed under the Apache License, Version 2.0 (the "License"); ## you may not use this file except in compliance with the License. ## You may obtain a copy of the License at ## http://www.apache.org/licenses/LICENSE-2.0 ## Unless required by applicable law or agreed to in ...
0
0
0
3,285
0
0
0
1
68
920fe3da4f1f82c7e5f82cc9d08809d75841703f
12,412
py
Python
arpa-rfp-evaluation/summary_reports.py
cityofasheville/abi-vendro-processing
72ed24216ee4772d72abd26b956d7f97ed23bdd3
[ "MIT" ]
null
null
null
arpa-rfp-evaluation/summary_reports.py
cityofasheville/abi-vendro-processing
72ed24216ee4772d72abd26b956d7f97ed23bdd3
[ "MIT" ]
1
2021-09-02T19:58:09.000Z
2021-09-02T19:58:09.000Z
arpa-rfp-evaluation/summary_reports.py
cityofasheville/data-processing-scripts
72ed24216ee4772d72abd26b956d7f97ed23bdd3
[ "MIT" ]
null
null
null
import json from os.path import exists SERVICE_ACCOUNT_FILE = None SCOPES = ['https://www.googleapis.com/auth/spreadsheets', 'https://www.googleapis.com/auth/drive'] INPUTS_EVAL_MAPPING_ID =None OUTPUTS_MASTER_ID = None INPUTS_SPREADSHEET_ID = None sheetService = None ##############################################...
44.328571
172
0.677409
from os import link from googleapiclient.discovery import build import json from csv import reader from google.oauth2 import service_account import pandas as pd from os.path import exists import numpy as np from functools import reduce import time SERVICE_ACCOUNT_FILE = None SCOPES = ['https://www.googleapis.com/auth/...
0
0
0
0
0
10,595
0
33
337
f838c963eb88052d512eb77b99721f3c3bb5120a
2,041
py
Python
test/algorithms/initial_points/test_initial_point.py
kevinsung/qiskit-nature
407533e05ca33fa53eb4e9cd7b089a0a99f9540e
[ "Apache-2.0" ]
null
null
null
test/algorithms/initial_points/test_initial_point.py
kevinsung/qiskit-nature
407533e05ca33fa53eb4e9cd7b089a0a99f9540e
[ "Apache-2.0" ]
null
null
null
test/algorithms/initial_points/test_initial_point.py
kevinsung/qiskit-nature
407533e05ca33fa53eb4e9cd7b089a0a99f9540e
[ "Apache-2.0" ]
null
null
null
# This code is part of Qiskit. # # (C) Copyright IBM 2022. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
31.890625
77
0.696717
# This code is part of Qiskit. # # (C) Copyright IBM 2022. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
0
202
0
1,111
0
0
0
69
90
ca810b6f0d9eabaeb4ad71ee8608ce994583b4bc
22,392
py
Python
Compressive_Sampling.py
tnakaicode/Python-for-Signal-Processing
b610ca377564e115a0dbd5a8cdcc2ad195c3b162
[ "CC-BY-3.0" ]
null
null
null
Compressive_Sampling.py
tnakaicode/Python-for-Signal-Processing
b610ca377564e115a0dbd5a8cdcc2ad195c3b162
[ "CC-BY-3.0" ]
null
null
null
Compressive_Sampling.py
tnakaicode/Python-for-Signal-Processing
b610ca377564e115a0dbd5a8cdcc2ad195c3b162
[ "CC-BY-3.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # ## Compressive sampling Overview # our previous discussion, we saw that imposing bandlimited-ness on our class of signals permits point-wise sampling of our signal and then later perfect reconstruction. It turns out that by imposing *sparsity* we can also obtain perfect recons...
41.543599
626
0.675196
#!/usr/bin/env python # coding: utf-8 # ## Compressive sampling Overview # our previous discussion, we saw that imposing bandlimited-ness on our class of signals permits point-wise sampling of our signal and then later perfect reconstruction. It turns out that by imposing *sparsity* we can also obtain perfect recons...
0
0
0
0
0
745
0
8
68
8afc13e213c403a3dacc0931aa5029c3a13cf2e0
2,656
py
Python
lineartransporteqn.py
killacamron/CFDcourse21
5ae59303d042819e0246e793271f420de8e1bbdb
[ "MIT" ]
null
null
null
lineartransporteqn.py
killacamron/CFDcourse21
5ae59303d042819e0246e793271f420de8e1bbdb
[ "MIT" ]
null
null
null
lineartransporteqn.py
killacamron/CFDcourse21
5ae59303d042819e0246e793271f420de8e1bbdb
[ "MIT" ]
null
null
null
# ============================================================================= # # Explicit Finite Difference Method Code to Solve the 1D Linear Transport Equation # Adapted by: Cameron Armstrong (2019) # Source: Lorena Barba, 12 Steps to NS in Python # Institution: Virginia Commonwealth University # # ======...
33.2
98
0.460843
# ============================================================================= # # Explicit Finite Difference Method Code to Solve the 1D Linear Transport Equation # Adapted by: Cameron Armstrong (2019) # Source: Lorena Barba, 12 Steps to NS in Python # Institution: Virginia Commonwealth University # # ======...
0
0
0
0
0
0
0
0
0
452c277e6f370c2445473182b1051da62995480e
5,454
py
Python
monty/exts/info/docs/_html.py
onerandomusername/monty-python
fcd8b2827eb9bbb2a05d28f80ac9e215589f03f7
[ "MIT" ]
20
2021-12-31T10:17:20.000Z
2022-03-31T04:16:17.000Z
monty/exts/info/docs/_html.py
onerandomusername/monty-bot
b1c769e44b56bc45f37fc809064571d59c80db27
[ "MIT" ]
1
2022-03-13T22:34:33.000Z
2022-03-13T22:34:52.000Z
monty/exts/info/docs/_html.py
onerandomusername/monty-bot
b1c769e44b56bc45f37fc809064571d59c80db27
[ "MIT" ]
3
2022-01-02T15:21:46.000Z
2022-03-05T09:37:54.000Z
import re from functools import partial from typing import Callable, Container, Iterable, List, Union from bs4 import BeautifulSoup from bs4.element import NavigableString, PageElement, Tag from monty.log import get_logger from . import MAX_SIGNATURE_AMOUNT log = get_logger(__name__) _UNWANTED_SIGNATURE_SYMBOLS_R...
38.957143
120
0.710671
import re from functools import partial from typing import Callable, Container, Iterable, List, Union from bs4 import BeautifulSoup from bs4.element import NavigableString, PageElement, SoupStrainer, Tag from monty.log import get_logger from . import MAX_SIGNATURE_AMOUNT log = get_logger(__name__) _UNWANTED_SIGNA...
2
0
0
917
0
152
0
14
50
23d3fbbdeeaccf228df906ea84306f0500785058
6,513
py
Python
preflibtools/instances/sampling.py
nmattei/PrefLib-Tools
d1a1137efdc6a5722bbb0e15a0c1174a0236aefb
[ "BSD-3-Clause-Clear" ]
17
2015-06-01T15:00:09.000Z
2019-09-18T18:05:38.000Z
preflibtools/instances/sampling.py
nmattei/PrefLib-Tools
d1a1137efdc6a5722bbb0e15a0c1174a0236aefb
[ "BSD-3-Clause-Clear" ]
6
2016-06-06T07:40:41.000Z
2018-01-04T22:09:21.000Z
preflibtools/instances/sampling.py
nmattei/PrefLib-Tools
d1a1137efdc6a5722bbb0e15a0c1174a0236aefb
[ "BSD-3-Clause-Clear" ]
7
2015-06-02T04:58:13.000Z
2019-12-13T13:26:58.000Z
""" This module describes procedures to sample preferences for different probability distributions. """ import numpy as np def generateICStrictProfile(nbVoters, alternatives): """ Generates a profile following the impartial culture. :param nbVoters: Number of orders to sample. :type nbVoters: int :param alter...
35.396739
106
0.716874
""" This module describes procedures to sample preferences for different probability distributions. """ import numpy as np def generateICStrictProfile(nbVoters, alternatives): """ Generates a profile following the impartial culture. :param nbVoters: Number of orders to sample. :type nbVoters: int :param alter...
0
0
0
0
0
474
0
0
24
1a8e4c575c1b0238e1aaf8f4d51c772141dd949b
1,100
py
Python
module1-introduction-to-sql/assignment/buddymove_holidayiq.py
jonathanmendoza-tx/DS-Unit-3-Sprint-2-SQL-and-Databases
7976332b75b8c81b2dd06682c3be1acd390dbd8c
[ "MIT" ]
null
null
null
module1-introduction-to-sql/assignment/buddymove_holidayiq.py
jonathanmendoza-tx/DS-Unit-3-Sprint-2-SQL-and-Databases
7976332b75b8c81b2dd06682c3be1acd390dbd8c
[ "MIT" ]
null
null
null
module1-introduction-to-sql/assignment/buddymove_holidayiq.py
jonathanmendoza-tx/DS-Unit-3-Sprint-2-SQL-and-Databases
7976332b75b8c81b2dd06682c3be1acd390dbd8c
[ "MIT" ]
null
null
null
import sqlite3 import pandas as pd !wget https://raw.githubusercontent.com/jonathanmendoza-tx/DS-Unit-3-Sprint-2-SQL-and-Databases/master/module1-introduction-to-sql/buddymove_holidayiq.csv conn = sqlite3.connect('buddymove_holidayiq.sqlite3') cur = conn.cursor() df = pd.read_csv('/content/buddymove_holidayiq.csv', ...
25.581395
154
0.719091
import sqlite3 import pandas as pd !wget https://raw.githubusercontent.com/jonathanmendoza-tx/DS-Unit-3-Sprint-2-SQL-and-Databases/master/module1-introduction-to-sql/buddymove_holidayiq.csv conn = sqlite3.connect('buddymove_holidayiq.sqlite3') cur = conn.cursor() df = pd.read_csv('/content/buddymove_holidayiq.csv', ...
0
0
0
0
0
0
0
0
0
95e7082386e5418aa14fda8e81fb4e55fd79a141
54
py
Python
quart_rapidoc/version.py
marirs/quart-rapidoc
fd86604ee5ffea7bd33b08af537472f0df21e8c8
[ "MIT" ]
1
2020-07-06T17:11:02.000Z
2020-07-06T17:11:02.000Z
quart_rapidoc/version.py
marirs/quart-rapidoc
fd86604ee5ffea7bd33b08af537472f0df21e8c8
[ "MIT" ]
null
null
null
quart_rapidoc/version.py
marirs/quart-rapidoc
fd86604ee5ffea7bd33b08af537472f0df21e8c8
[ "MIT" ]
null
null
null
"""quart_redoc version file.""" __version__ = "0.5.1"
18
31
0.666667
"""quart_redoc version file.""" __version__ = "0.5.1"
0
0
0
0
0
0
0
0
0
e2e6c98c7ef19d0a3e295150199aeb3a5229e053
48,085
py
Python
cli/cyberPanel.py
uzairAK/serverom-panel
3dcde05ad618e6bef280db7d3180f926fe2ab1db
[ "MIT" ]
null
null
null
cli/cyberPanel.py
uzairAK/serverom-panel
3dcde05ad618e6bef280db7d3180f926fe2ab1db
[ "MIT" ]
null
null
null
cli/cyberPanel.py
uzairAK/serverom-panel
3dcde05ad618e6bef280db7d3180f926fe2ab1db
[ "MIT" ]
null
null
null
#!/usr/local/CyberCP/bin/python import os, sys sys.path.append('/usr/local/CyberCP') import django os.environ.setdefault("DJANGO_SETTINGS_MODULE", "CyberCP.settings") django.setup() import plogical.backupUtilities as backupUtilities # All that we see or seem is but a dream within a dream. if __name__ == "__main__":...
36.181339
214
0.58434
#!/usr/local/CyberCP/bin/python import os,sys sys.path.append('/usr/local/CyberCP') import django os.environ.setdefault("DJANGO_SETTINGS_MODULE", "CyberCP.settings") django.setup() from inspect import stack from cli.cliLogger import cliLogger as logger import json from plogical.virtualHostUtilities import virtualHostUt...
0
0
0
25,509
0
21,468
0
313
464
3fb46c294a5360bb8f1d5b3c59d0fde197c8961d
4,380
py
Python
setup.py
Tobi-Alonso/ResNet50-PYNQ
7c203c2b249479c5384afe152dde2bb06576339b
[ "BSD-3-Clause" ]
null
null
null
setup.py
Tobi-Alonso/ResNet50-PYNQ
7c203c2b249479c5384afe152dde2bb06576339b
[ "BSD-3-Clause" ]
null
null
null
setup.py
Tobi-Alonso/ResNet50-PYNQ
7c203c2b249479c5384afe152dde2bb06576339b
[ "BSD-3-Clause" ]
1
2020-03-27T18:20:47.000Z
2020-03-27T18:20:47.000Z
# Copyright (c) 2019, Xilinx # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of conditions and th...
35.04
81
0.656164
# Copyright (c) 2019, Xilinx # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of conditions and th...
0
0
0
667
0
258
0
42
90
c04249abf3a5ebc265209326af85d9f62c50c23b
3,052
py
Python
testing/python_lib/test_faucet_state_collector.py
pbatta/forch
df033bc5b7cbac06e1c406257193cb0cb62f2742
[ "Apache-2.0" ]
1
2019-12-12T23:13:24.000Z
2019-12-12T23:13:24.000Z
testing/python_lib/test_faucet_state_collector.py
pbatta/forch
df033bc5b7cbac06e1c406257193cb0cb62f2742
[ "Apache-2.0" ]
92
2019-12-13T03:30:35.000Z
2021-11-11T16:16:13.000Z
testing/python_lib/test_faucet_state_collector.py
pbatta/forch
df033bc5b7cbac06e1c406257193cb0cb62f2742
[ "Apache-2.0" ]
7
2020-01-11T14:12:46.000Z
2021-01-25T17:30:55.000Z
"""Unit tests for Faucet State Collector""" import unittest if __name__ == '__main__': unittest.main()
37.219512
100
0.582241
"""Unit tests for Faucet State Collector""" import unittest from unit_base import FaucetStateCollectorTestBase from forch.proto.faucet_event_pb2 import StackTopoChange from forch.utils import dict_proto class DataplaneStateTestCase(FaucetStateCollectorTestBase): """Test cases for dataplane state""" def _bu...
0
0
0
2,774
0
0
0
77
90
3c98d96e351e9f0cf0c5d2fb68fa0eae5f624451
2,344
py
Python
tests/python/gaia-ui-tests/gaiatest/apps/persona/app.py
pdehaan/gaia
0ea959d81cefa0128157ec3ff0e2b7bdd29afacf
[ "Apache-2.0" ]
1
2015-03-02T04:03:00.000Z
2015-03-02T04:03:00.000Z
tests/python/gaia-ui-tests/gaiatest/apps/persona/app.py
caseyyee/gaia
fa82433dda06e9ae7d35a1f74cc16f4dd72cc514
[ "Apache-2.0" ]
null
null
null
tests/python/gaia-ui-tests/gaiatest/apps/persona/app.py
caseyyee/gaia
fa82433dda06e9ae7d35a1f74cc16f4dd72cc514
[ "Apache-2.0" ]
null
null
null
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/.
37.206349
103
0.729522
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from marionette.by import By from gaiatest.apps.base import Base class Persona(Base): # iframes _persona_fram...
0
0
0
2,055
0
0
0
21
68
46007c370fa322eb1ca7e4346385565ed9dfbbd8
4,826
py
Python
ethevents/client/connection.py
ezdac/ethevents
9f4b0ff1ba0d303180abe3b5336805335bc0765b
[ "MIT" ]
2
2018-08-21T01:06:30.000Z
2019-03-05T08:15:55.000Z
ethevents/client/connection.py
ezdac/ethevents
9f4b0ff1ba0d303180abe3b5336805335bc0765b
[ "MIT" ]
1
2018-04-23T14:01:51.000Z
2018-04-23T14:09:51.000Z
ethevents/client/connection.py
ezdac/ethevents
9f4b0ff1ba0d303180abe3b5336805335bc0765b
[ "MIT" ]
1
2022-03-22T04:57:16.000Z
2022-03-22T04:57:16.000Z
import logging log = logging.getLogger(__name__) if __name__ == '__main__': main()
28.05814
90
0.564857
import time import click import requests from elasticsearch.connection import Connection from elasticsearch.connection_pool import DummyConnectionPool from elasticsearch.transport import Transport from elasticsearch.exceptions import ( ConnectionError, ConnectionTimeout, SSLError ) from elasticsearch.compa...
0
664
0
3,594
0
0
0
184
290
2abdd1a8347e55f710b0bd9bf098d6715d1155a9
561
py
Python
Number Guessing.py
GamePlayer-7/Gaming
4466f2e693f0c10d3bc041b388526484713dc2e1
[ "MIT" ]
null
null
null
Number Guessing.py
GamePlayer-7/Gaming
4466f2e693f0c10d3bc041b388526484713dc2e1
[ "MIT" ]
null
null
null
Number Guessing.py
GamePlayer-7/Gaming
4466f2e693f0c10d3bc041b388526484713dc2e1
[ "MIT" ]
null
null
null
import random # imports the random module, which contains a variety of things to do with random number generation. number = random.randint(1,10) #If we wanted a random integer, we can use the randint function Randint accepts two parameters: a lowest and a highest number. for i in range(0,3): user = int(...
51
161
0.672014
import random # imports the random module, which contains a variety of things to do with random number generation. number = random.randint(1,10) #If we wanted a random integer, we can use the randint function Randint accepts two parameters: a lowest and a highest number. for i in range(0,3): user = int(...
0
0
0
0
0
0
0
0
0
a8f717c691e08e576daf5d6b539ccd45bbb8b08f
2,114
py
Python
src/blockdiag/imagedraw/utils/__init__.py
Dridi/blockdiag
bbb16f8a731cdf79a675a63c1ff847e70fdc4a5b
[ "Apache-2.0" ]
null
null
null
src/blockdiag/imagedraw/utils/__init__.py
Dridi/blockdiag
bbb16f8a731cdf79a675a63c1ff847e70fdc4a5b
[ "Apache-2.0" ]
null
null
null
src/blockdiag/imagedraw/utils/__init__.py
Dridi/blockdiag
bbb16f8a731cdf79a675a63c1ff847e70fdc4a5b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2011 Takeshi KOMIYA # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
30.2
78
0.682119
# -*- coding: utf-8 -*- # Copyright 2011 Takeshi KOMIYA # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
0
168
0
0
0
57
0
6
45
5a4d29d31fc8b9261b5b5f65d7bb0b5cb3b90e4d
4,639
py
Python
xt/framework/comm/comm_conf.py
ZZHsunsky/xingtian
0484e2c968d9e6b2e5f43a3b86c0213a095ba309
[ "MIT" ]
null
null
null
xt/framework/comm/comm_conf.py
ZZHsunsky/xingtian
0484e2c968d9e6b2e5f43a3b86c0213a095ba309
[ "MIT" ]
null
null
null
xt/framework/comm/comm_conf.py
ZZHsunsky/xingtian
0484e2c968d9e6b2e5f43a3b86c0213a095ba309
[ "MIT" ]
null
null
null
# Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to us...
34.362963
79
0.64432
# Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to us...
75
0
0
2,462
0
0
0
-10
89
3e25d2bb70c9499de1f4cb505fe2880342dc5c50
2,572
py
Python
python/nbdb/anomaly/static.py
rubrikinc/nbdb2
359db63a39e016e3eb197b8ea511d6e8cffa1853
[ "Apache-2.0" ]
2
2022-03-21T15:48:33.000Z
2022-03-27T00:43:12.000Z
python/nbdb/anomaly/static.py
rubrikinc/nbdb2
359db63a39e016e3eb197b8ea511d6e8cffa1853
[ "Apache-2.0" ]
null
null
null
python/nbdb/anomaly/static.py
rubrikinc/nbdb2
359db63a39e016e3eb197b8ea511d6e8cffa1853
[ "Apache-2.0" ]
1
2022-03-27T00:43:31.000Z
2022-03-27T00:43:31.000Z
""" Static threshold based anomaly detection """ import logging logger = logging.getLogger(__name__)
35.232877
73
0.613919
""" Static threshold based anomaly detection """ from typing import List, Tuple import logging import numpy as np import pandas as pd from nbdb.anomaly.anomaly_interface import AnomalyInterface from nbdb.readapi.graphite_response import Anomaly from nbdb.readapi.time_series_response import TimeRange logger = logging...
0
0
0
2,207
0
0
0
105
157
9288bc7c0b122d032f93019718b7a23eb2c872b0
1,598
py
Python
tests/test_help.py
thomasvolk/R_ev3dev
53b8c83af49e88eb4766deea0a690c55d1304d6a
[ "Apache-2.0" ]
null
null
null
tests/test_help.py
thomasvolk/R_ev3dev
53b8c83af49e88eb4766deea0a690c55d1304d6a
[ "Apache-2.0" ]
null
null
null
tests/test_help.py
thomasvolk/R_ev3dev
53b8c83af49e88eb4766deea0a690c55d1304d6a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3
21.594595
86
0.628911
#!/usr/bin/env python3 import unittest from R_ev3dev.interpreter import Interpreter, Command from R_ev3dev.help import Help, Version class TestCommand01(Command): """ this is the test command 01 usage: c01 """ def invoke(self, interpreter_context, args): return 1 class TestCom...
0
0
0
1,370
0
0
0
44
158
0cb3d0dd6f38e1ffc07fd4e85e3458786f9cf6d8
420
py
Python
news/urls.py
vigen-b/FakeNews
fc19f623529d1661c9f3d475adc9db98ee95a38a
[ "Apache-2.0" ]
null
null
null
news/urls.py
vigen-b/FakeNews
fc19f623529d1661c9f3d475adc9db98ee95a38a
[ "Apache-2.0" ]
null
null
null
news/urls.py
vigen-b/FakeNews
fc19f623529d1661c9f3d475adc9db98ee95a38a
[ "Apache-2.0" ]
null
null
null
from django.urls import path from rest_framework.urlpatterns import format_suffix_patterns from news import views app_name = "news" urlpatterns = [ path("news/", views.NewsList.as_view()), path("news/<int:pk>/", views.NewsDetail.as_view()), path("category/", views.CategoryList.as_view()), path("categor...
30
63
0.735714
from django.urls import path from rest_framework.urlpatterns import format_suffix_patterns from news import views app_name = "news" urlpatterns = [ path("news/", views.NewsList.as_view()), path("news/<int:pk>/", views.NewsDetail.as_view()), path("category/", views.CategoryList.as_view()), path("categor...
0
0
0
0
0
0
0
0
0
9967baa443818e97fb20549f70a4bd20685b2cd4
5,239
py
Python
bobstack/sipmessaging/sipMessage.py
bobjects/BobStack
c177b286075044832f44baf9ace201780c8b4320
[ "Apache-2.0" ]
null
null
null
bobstack/sipmessaging/sipMessage.py
bobjects/BobStack
c177b286075044832f44baf9ace201780c8b4320
[ "Apache-2.0" ]
null
null
null
bobstack/sipmessaging/sipMessage.py
bobjects/BobStack
c177b286075044832f44baf9ace201780c8b4320
[ "Apache-2.0" ]
null
null
null
try: from cStringIO import StringIO except ImportError:
23.181416
76
0.640389
try: from cStringIO import StringIO except ImportError: from StringIO import StringIO from sipHeader import SIPHeader from sipStartLineFactory import SIPStartLineFactory class SIPMessage(object): @classmethod def new_parsed_from(cls, a_string): answer = cls() answer.raw_string = a_stri...
0
2,936
0
2,100
0
0
0
48
93
943c8ed1cd17178b2e7dd6ef67854da8a007f148
98
py
Python
codes_auto/1635.number-of-good-pairs.py
smartmark-pro/leetcode_record
6504b733d892a705571eb4eac836fb10e94e56db
[ "MIT" ]
null
null
null
codes_auto/1635.number-of-good-pairs.py
smartmark-pro/leetcode_record
6504b733d892a705571eb4eac836fb10e94e56db
[ "MIT" ]
null
null
null
codes_auto/1635.number-of-good-pairs.py
smartmark-pro/leetcode_record
6504b733d892a705571eb4eac836fb10e94e56db
[ "MIT" ]
null
null
null
# # @lc app=leetcode.cn id=1635 lang=python3 # # [1635] number-of-good-pairs # None # @lc code=end
14
42
0.673469
# # @lc app=leetcode.cn id=1635 lang=python3 # # [1635] number-of-good-pairs # None # @lc code=end
0
0
0
0
0
0
0
0
0
3d707e5f1c279e06637838e9d88dd40ec499c8ba
1,110
py
Python
python-the-hard-way/12-prompting-people.py
Valka7a/python-playground
f08d4374f2cec2e8b1afec3753854b1ec10ff480
[ "MIT" ]
null
null
null
python-the-hard-way/12-prompting-people.py
Valka7a/python-playground
f08d4374f2cec2e8b1afec3753854b1ec10ff480
[ "MIT" ]
null
null
null
python-the-hard-way/12-prompting-people.py
Valka7a/python-playground
f08d4374f2cec2e8b1afec3753854b1ec10ff480
[ "MIT" ]
null
null
null
# Exercise 12: Prompting People # Variables age = raw_input("How old are you? ") height = raw_input("How tall are you? ") weight = raw_input("How much do you weigh? ") # Print print "So, you're %r old, %r tall and %r heavy." % (age, height, weight) # Study Drills # 1. In Terminal where you normally run python to ru...
34.6875
76
0.715315
# Exercise 12: Prompting People # Variables age = raw_input("How old are you? ") height = raw_input("How tall are you? ") weight = raw_input("How much do you weigh? ") # Print print "So, you're %r old, %r tall and %r heavy." % (age, height, weight) # Study Drills # 1. In Terminal where you normally run python to ru...
0
0
0
0
0
0
0
0
0
17884ad7e858a3c341d64db09625d9ca52b143f6
1,730
py
Python
alipay/aop/api/domain/InvestorMaterialInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/InvestorMaterialInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/InvestorMaterialInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*-
24.366197
67
0.550289
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class InvestorMaterialInfo(object): def __init__(self): self._file_id = None self._file_url = None self._type = None @property def file_id(self): return self._f...
0
573
0
1,019
0
0
0
21
68
715eab9e05e4e3e6f81c12646f271a7236441291
12,764
py
Python
msticpy/nbtools/azure_ml_tools.py
ekmixon/msticpy
8676a648ba9bfb4d848a8dda964820d4942a32ca
[ "MIT" ]
null
null
null
msticpy/nbtools/azure_ml_tools.py
ekmixon/msticpy
8676a648ba9bfb4d848a8dda964820d4942a32ca
[ "MIT" ]
3
2021-05-15T02:16:39.000Z
2022-01-19T13:13:25.000Z
msticpy/nbtools/azure_ml_tools.py
ekmixon/msticpy
8676a648ba9bfb4d848a8dda964820d4942a32ca
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- """Checker...
33.413613
90
0.645096
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- """Checker...
0
0
0
0
0
0
0
1
44
b65206728e5f3f6cbab0f87066d7ed1dc8784f63
4,423
py
Python
konfuzio_sdk/urls.py
atraining/document-ai-python-sdk
ea2df68af0254053da7e6f4c6e2c2df6d7911233
[ "MIT" ]
null
null
null
konfuzio_sdk/urls.py
atraining/document-ai-python-sdk
ea2df68af0254053da7e6f4c6e2c2df6d7911233
[ "MIT" ]
null
null
null
konfuzio_sdk/urls.py
atraining/document-ai-python-sdk
ea2df68af0254053da7e6f4c6e2c2df6d7911233
[ "MIT" ]
null
null
null
"""Endpoints of the Konfuzio Host.""" import logging from konfuzio_sdk import KONFUZIO_HOST, KONFUZIO_PROJECT_ID logger = logging.getLogger(__name__) def get_auth_token_url() -> str: """ Generate URL that creates an authentication token for the user. :return: URL to generate the token. """ ret...
29.291391
116
0.703821
"""Endpoints of the Konfuzio Host.""" import logging from konfuzio_sdk import KONFUZIO_HOST, KONFUZIO_PROJECT_ID logger = logging.getLogger(__name__) def get_auth_token_url() -> str: """ Generate URL that creates an authentication token for the user. :return: URL to generate the token. """ ret...
0
0
0
0
0
0
0
0
0
5a5179184e11bd69c115e048377711a912dc3761
440
py
Python
Web/user/models.py
Pancras-Zheng/Graduation-Project
5d1ae78d5e890fa7ecc2456d0d3d22bdea7c29f0
[ "MIT" ]
37
2018-01-25T03:14:24.000Z
2021-12-15T10:02:37.000Z
Web/user/models.py
Pancras-Zheng/Graduation-Project
5d1ae78d5e890fa7ecc2456d0d3d22bdea7c29f0
[ "MIT" ]
null
null
null
Web/user/models.py
Pancras-Zheng/Graduation-Project
5d1ae78d5e890fa7ecc2456d0d3d22bdea7c29f0
[ "MIT" ]
10
2019-04-11T07:27:10.000Z
2021-11-24T11:16:14.000Z
# Create your models here.
27.5
69
0.747727
from django.db import models from django.contrib.auth.models import AbstractUser from django.utils.translation import ugettext_lazy as _ from django.contrib.auth.base_user import BaseUserManager # Create your models here. class User(AbstractUser): nickname = models.CharField(_('昵称'),max_length=50,blank=True) ...
12
0
0
188
0
0
0
107
111
db4b3216850356cdd188fbda35706bb2acbe536c
14,096
py
Python
src/huggingface_hub/commands/user.py
FrancescoSaverioZuppichini/huggingface_hub
9e7ffda07ddcd668302a61156bcae0d9ec97a26e
[ "Apache-2.0" ]
1
2022-03-28T14:15:24.000Z
2022-03-28T14:15:24.000Z
src/huggingface_hub/commands/user.py
osanseviero/huggingface_hub
b1cf2d8f47088d3fce2244058d222a4d8234b3ab
[ "Apache-2.0" ]
null
null
null
src/huggingface_hub/commands/user.py
osanseviero/huggingface_hub
b1cf2d8f47088d3fce2244058d222a4d8234b3ab
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
35.064677
135
0.605065
# Copyright 2020 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
0
2,294
0
4,841
0
2,259
0
207
469
293ccee023fc91f0aa073e2ba442d3ed89f6b0d4
8,365
py
Python
src/ramstk/logger.py
TahaEntezari/ramstk
f82e5b31ef5c4e33cc02252263247b99a9abe129
[ "BSD-3-Clause" ]
26
2019-05-15T02:03:47.000Z
2022-02-21T07:28:11.000Z
src/ramstk/logger.py
TahaEntezari/ramstk
f82e5b31ef5c4e33cc02252263247b99a9abe129
[ "BSD-3-Clause" ]
815
2019-05-10T12:31:52.000Z
2022-03-31T12:56:26.000Z
src/ramstk/logger.py
TahaEntezari/ramstk
f82e5b31ef5c4e33cc02252263247b99a9abe129
[ "BSD-3-Clause" ]
9
2019-04-20T23:06:29.000Z
2022-01-24T21:21:04.000Z
# -*- coding: utf-8 -*- # # ramstk.logger.py is part of The RAMSTK Project # # All rights reserved. # Copyright 2019 Doyle Rowland doyle.rowland <AT> reliaqual <DOT> com """RAMSTK Logger Module.""" # Standard Library Imports import logging # Third Party Imports LOGFORMAT = logging.Formatter("%(asctime)s - %(na...
39.64455
82
0.68416
# -*- coding: utf-8 -*- # # ramstk.logger.py is part of The RAMSTK Project # # All rights reserved. # Copyright 2019 Doyle Rowland doyle.rowland <AT> reliaqual <DOT> com """RAMSTK Logger Module.""" # Standard Library Imports import logging import sys from typing import Dict # Third Party Imports from pubsub imp...
0
357
0
7,572
0
0
0
-8
89
f4bbd3c26bf1e8d647337c4dd66784c1c9d86a9f
2,458
py
Python
examples/demo/status_overlay.py
martinRenou/chaco
1888da3ecee89f9b2d11900cda9333b32fc5e89a
[ "BSD-3-Clause" ]
3
2017-09-17T17:32:06.000Z
2022-03-15T13:04:43.000Z
examples/demo/status_overlay.py
martinRenou/chaco
1888da3ecee89f9b2d11900cda9333b32fc5e89a
[ "BSD-3-Clause" ]
null
null
null
examples/demo/status_overlay.py
martinRenou/chaco
1888da3ecee89f9b2d11900cda9333b32fc5e89a
[ "BSD-3-Clause" ]
5
2015-05-17T16:08:11.000Z
2021-02-23T09:23:42.000Z
import numpy index = numpy.array([1,2,3,4,5]) data_series = index**2 my_plot = MyPlot(index, data_series) my_plot.configure_traits()
32.342105
74
0.614321
import numpy from chaco.api import Plot, ArrayPlotData from chaco.layers.api import ErrorLayer, WarningLayer, StatusLayer from enable.component_editor import ComponentEditor from traits.api import HasTraits, Instance, Button from traitsui.api import UItem, View, HGroup class MyPlot(HasTraits): """ Displays a plo...
0
0
0
2,041
0
0
0
147
134
08cdc43106ee16eac03626a91a328ff78df10a22
681
py
Python
multi_threadpool_executor.py
Dev-Bobbie/multi_spider
8fd19ab70de04b6cac021d354850b07ffcf360f2
[ "Apache-2.0" ]
null
null
null
multi_threadpool_executor.py
Dev-Bobbie/multi_spider
8fd19ab70de04b6cac021d354850b07ffcf360f2
[ "Apache-2.0" ]
null
null
null
multi_threadpool_executor.py
Dev-Bobbie/multi_spider
8fd19ab70de04b6cac021d354850b07ffcf360f2
[ "Apache-2.0" ]
null
null
null
if __name__ == '__main__': main()
24.321429
49
0.625551
from concurrent.futures import ThreadPoolExecutor import time def sayhello(a): print("hello: "+a) time.sleep(2) def main(): seed=["a","b","c"] start1=time.time() for each in seed: sayhello(each) end1=time.time() print("time1: "+str(end1-start1)) start2=time.time() with Thre...
0
0
0
0
0
535
0
18
90
61b5793ee25a599b5e5738633cc2cd220b7bf9e9
7,541
py
Python
boss2.py
Jamhacks2018/TheJamExpansion
1acec353e666fef6608e06b57e82683053e7f060
[ "MIT" ]
null
null
null
boss2.py
Jamhacks2018/TheJamExpansion
1acec353e666fef6608e06b57e82683053e7f060
[ "MIT" ]
null
null
null
boss2.py
Jamhacks2018/TheJamExpansion
1acec353e666fef6608e06b57e82683053e7f060
[ "MIT" ]
3
2018-05-05T19:59:56.000Z
2020-11-15T21:06:27.000Z
init() fontGeneral = font.Font('resources/fonts/Calibri.ttf', 30) fontHealth = font.Font('resources/fonts/Calibri Bold.ttf', 15)
40.983696
287
0.502851
from pygame import * from enemies import * import random init() fontGeneral = font.Font('resources/fonts/Calibri.ttf', 30) fontHealth = font.Font('resources/fonts/Calibri Bold.ttf', 15) class Cap(): def __init__(self): #initialize the image and pos of cap: self.img = image.load('resourc...
0
0
0
7,222
0
0
0
-9
134
9084b7ccd8e3dba852fd6469469662507b5a8c2b
24,781
py
Python
src/simulator/network_wrong_mi.py
ChenGeng-ZJU/PCC-RL
6627a186643175ea68269d78e206e6bc45ac634f
[ "Apache-2.0" ]
null
null
null
src/simulator/network_wrong_mi.py
ChenGeng-ZJU/PCC-RL
6627a186643175ea68269d78e206e6bc45ac634f
[ "Apache-2.0" ]
null
null
null
src/simulator/network_wrong_mi.py
ChenGeng-ZJU/PCC-RL
6627a186643175ea68269d78e206e6bc45ac634f
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Nathan Jay and Noga Rotman # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
38.183359
130
0.561438
# Copyright 2019 Nathan Jay and Noga Rotman # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
0
0
0
23,125
0
62
0
-21
471
e2b17755e0aaa5b3a5cbb71d2ff79a60e5f99eea
3,150
py
Python
cheddar_oauth_example/settings.py
brianbrunner/cheddar-oauth-demo
7768023a355d9cdc2e861aded2c05ebe3246c930
[ "MIT" ]
1
2015-05-26T18:21:32.000Z
2015-05-26T18:21:32.000Z
cheddar_oauth_example/settings.py
brianbrunner/cheddar-oauth-demo
7768023a355d9cdc2e861aded2c05ebe3246c930
[ "MIT" ]
null
null
null
cheddar_oauth_example/settings.py
brianbrunner/cheddar-oauth-demo
7768023a355d9cdc2e861aded2c05ebe3246c930
[ "MIT" ]
null
null
null
""" Django settings for cheddar_oauth_example project. For more information on this file, see https://docs.djangoproject.com/en/1.7/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.7/ref/settings/ """ # Build paths inside the project like this: os.path.join(BAS...
23.333333
89
0.699365
""" Django settings for cheddar_oauth_example project. For more information on this file, see https://docs.djangoproject.com/en/1.7/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.7/ref/settings/ """ # Build paths inside the project like this: os.path.join(BAS...
0
0
0
0
0
0
0
7
26
1097c97b6b77b2f181e0c5a9531a0851278011cb
470
py
Python
django101/django102/urls.py
Minkov/python-web-2020-09
a43baf4dd4dd811caf25aad971a0f1a4d3d486a4
[ "MIT" ]
4
2020-10-30T23:13:50.000Z
2020-12-26T21:35:00.000Z
django101/django102/urls.py
Minkov/python-web-2020-09
a43baf4dd4dd811caf25aad971a0f1a4d3d486a4
[ "MIT" ]
null
null
null
django101/django102/urls.py
Minkov/python-web-2020-09
a43baf4dd4dd811caf25aad971a0f1a4d3d486a4
[ "MIT" ]
7
2020-09-17T13:08:35.000Z
2020-10-31T15:01:46.000Z
from django.urls import path from django102.views import index as index_view, UsersListView, GamesListView, something, methods_demo, raises_exception, create_game urlpatterns = [ path('', index_view, name='index'), path('2/', UsersListView.as_view()), path('games/', GamesListView.as_view()), p...
33.571429
106
0.676596
from django.urls import path from django102.views import index as index_view, UsersListView, GamesListView, something, methods_demo, \ raises_exception, create_game urlpatterns = [ path('', index_view, name='index'), path('2/', UsersListView.as_view()), path('games/', GamesListView.as_view()),...
0
0
0
0
0
0
0
7
0