hexsha string | size int64 | ext string | lang string | max_stars_repo_path string | max_stars_repo_name string | max_stars_repo_head_hexsha string | max_stars_repo_licenses list | max_stars_count int64 | max_stars_repo_stars_event_min_datetime string | max_stars_repo_stars_event_max_datetime string | max_issues_repo_path string | max_issues_repo_name string | max_issues_repo_head_hexsha string | max_issues_repo_licenses list | max_issues_count int64 | max_issues_repo_issues_event_min_datetime string | max_issues_repo_issues_event_max_datetime string | max_forks_repo_path string | max_forks_repo_name string | max_forks_repo_head_hexsha string | max_forks_repo_licenses list | max_forks_count int64 | max_forks_repo_forks_event_min_datetime string | max_forks_repo_forks_event_max_datetime string | content string | avg_line_length float64 | max_line_length int64 | alphanum_fraction float64 | qsc_code_num_words_quality_signal int64 | qsc_code_num_chars_quality_signal float64 | qsc_code_mean_word_length_quality_signal float64 | qsc_code_frac_words_unique_quality_signal float64 | qsc_code_frac_chars_top_2grams_quality_signal float64 | qsc_code_frac_chars_top_3grams_quality_signal float64 | qsc_code_frac_chars_top_4grams_quality_signal float64 | qsc_code_frac_chars_dupe_5grams_quality_signal float64 | qsc_code_frac_chars_dupe_6grams_quality_signal float64 | qsc_code_frac_chars_dupe_7grams_quality_signal float64 | qsc_code_frac_chars_dupe_8grams_quality_signal float64 | qsc_code_frac_chars_dupe_9grams_quality_signal float64 | qsc_code_frac_chars_dupe_10grams_quality_signal float64 | qsc_code_frac_chars_replacement_symbols_quality_signal float64 | qsc_code_frac_chars_digital_quality_signal float64 | qsc_code_frac_chars_whitespace_quality_signal float64 | qsc_code_size_file_byte_quality_signal float64 | qsc_code_num_lines_quality_signal float64 | qsc_code_num_chars_line_max_quality_signal float64 | qsc_code_num_chars_line_mean_quality_signal float64 | qsc_code_frac_chars_alphabet_quality_signal float64 | qsc_code_frac_chars_comments_quality_signal float64 | qsc_code_cate_xml_start_quality_signal float64 | qsc_code_frac_lines_dupe_lines_quality_signal float64 | qsc_code_cate_autogen_quality_signal float64 | qsc_code_frac_lines_long_string_quality_signal float64 | qsc_code_frac_chars_string_length_quality_signal float64 | qsc_code_frac_chars_long_word_length_quality_signal float64 | qsc_code_frac_lines_string_concat_quality_signal float64 | qsc_code_cate_encoded_data_quality_signal float64 | qsc_code_frac_chars_hex_words_quality_signal float64 | qsc_code_frac_lines_prompt_comments_quality_signal float64 | qsc_code_frac_lines_assert_quality_signal float64 | qsc_codepython_cate_ast_quality_signal float64 | qsc_codepython_frac_lines_func_ratio_quality_signal float64 | qsc_codepython_cate_var_zero_quality_signal bool | qsc_codepython_frac_lines_pass_quality_signal float64 | qsc_codepython_frac_lines_import_quality_signal float64 | qsc_codepython_frac_lines_simplefunc_quality_signal float64 | qsc_codepython_score_lines_no_logic_quality_signal float64 | qsc_codepython_frac_lines_print_quality_signal float64 | qsc_code_num_words int64 | qsc_code_num_chars int64 | qsc_code_mean_word_length int64 | qsc_code_frac_words_unique null | qsc_code_frac_chars_top_2grams int64 | qsc_code_frac_chars_top_3grams int64 | qsc_code_frac_chars_top_4grams int64 | qsc_code_frac_chars_dupe_5grams int64 | qsc_code_frac_chars_dupe_6grams int64 | qsc_code_frac_chars_dupe_7grams int64 | qsc_code_frac_chars_dupe_8grams int64 | qsc_code_frac_chars_dupe_9grams int64 | qsc_code_frac_chars_dupe_10grams int64 | qsc_code_frac_chars_replacement_symbols int64 | qsc_code_frac_chars_digital int64 | qsc_code_frac_chars_whitespace int64 | qsc_code_size_file_byte int64 | qsc_code_num_lines int64 | qsc_code_num_chars_line_max int64 | qsc_code_num_chars_line_mean int64 | qsc_code_frac_chars_alphabet int64 | qsc_code_frac_chars_comments int64 | qsc_code_cate_xml_start int64 | qsc_code_frac_lines_dupe_lines int64 | qsc_code_cate_autogen int64 | qsc_code_frac_lines_long_string int64 | qsc_code_frac_chars_string_length int64 | qsc_code_frac_chars_long_word_length int64 | qsc_code_frac_lines_string_concat null | qsc_code_cate_encoded_data int64 | qsc_code_frac_chars_hex_words int64 | qsc_code_frac_lines_prompt_comments int64 | qsc_code_frac_lines_assert int64 | qsc_codepython_cate_ast int64 | qsc_codepython_frac_lines_func_ratio int64 | qsc_codepython_cate_var_zero int64 | qsc_codepython_frac_lines_pass int64 | qsc_codepython_frac_lines_import int64 | qsc_codepython_frac_lines_simplefunc int64 | qsc_codepython_score_lines_no_logic int64 | qsc_codepython_frac_lines_print int64 | effective string | hits int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
30a9ab75ade2dbd70c38b6cd9c991c10b08234de | 1,215 | py | Python | banshee/tests/pta-bt-test.py | CARV-ICS-FORTH/scoop | 9fbd86629a7e1951a392959149bb553fb5611a5f | [
"Apache-2.0"
] | 2 | 2017-02-15T23:36:49.000Z | 2018-09-11T09:34:14.000Z | banshee/tests/pta-bt-test.py | CARV-ICS-FORTH/scoop | 9fbd86629a7e1951a392959149bb553fb5611a5f | [
"Apache-2.0"
] | null | null | null | banshee/tests/pta-bt-test.py | CARV-ICS-FORTH/scoop | 9fbd86629a7e1951a392959149bb553fb5611a5f | [
"Apache-2.0"
] | 2 | 2015-10-15T07:41:09.000Z | 2019-10-08T12:55:13.000Z | #!/usr/bin/python
import sys
import os
import string
#print sys.argv
frontend = "../cparser/parser.exe"
flags = "-fprint-results"
pta_cmd = "%s %s" % (frontend, flags)
prefix = ""
prefix_size = int(sys.argv[1])
for x in sys.argv[2:(2+prefix_size)]:
prefix = " %s %s" % (prefix, x)
filelist = ""
for x in sys.ar... | 27 | 123 | 0.652675 | 188 | 1,215 | 4.175532 | 0.367021 | 0.063694 | 0.071338 | 0.107006 | 0.501911 | 0.453503 | 0.417834 | 0.417834 | 0.417834 | 0.318471 | 0 | 0.015075 | 0.18107 | 1,215 | 44 | 124 | 27.613636 | 0.773869 | 0.071605 | 0 | 0.25 | 0 | 0 | 0.288 | 0.018667 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.09375 | null | null | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
30b47ce03ab25050c96be917e8653691dbb6ff93 | 5,292 | py | Python | app/udp_comm/proto-py/imu_samples_pb2.py | ewfuentes/esp32_stuff | 5bf87555e91ffef48316f85f81d3765a6ef4a2c6 | [
"Apache-2.0"
] | null | null | null | app/udp_comm/proto-py/imu_samples_pb2.py | ewfuentes/esp32_stuff | 5bf87555e91ffef48316f85f81d3765a6ef4a2c6 | [
"Apache-2.0"
] | null | null | null | app/udp_comm/proto-py/imu_samples_pb2.py | ewfuentes/esp32_stuff | 5bf87555e91ffef48316f85f81d3765a6ef4a2c6 | [
"Apache-2.0"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: imu_samples.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _r... | 42 | 522 | 0.74263 | 752 | 5,292 | 4.928191 | 0.1875 | 0.060443 | 0.03238 | 0.059363 | 0.595791 | 0.595791 | 0.533459 | 0.533459 | 0.468969 | 0.468969 | 0 | 0.045078 | 0.132275 | 5,292 | 125 | 523 | 42.336 | 0.761977 | 0.041005 | 0 | 0.490566 | 1 | 0.009434 | 0.204971 | 0.164529 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04717 | 0 | 0.04717 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
30bcbf7ce957c6c88d400b8fdc56ff1017f41f6b | 1,303 | py | Python | Pyautogui_tutorial/mousecontrolscipt.py | xfzlun/WinUIAutomation | 0f94388671cf0aacbc8499293b7dd31ddfa205fa | [
"MIT"
] | null | null | null | Pyautogui_tutorial/mousecontrolscipt.py | xfzlun/WinUIAutomation | 0f94388671cf0aacbc8499293b7dd31ddfa205fa | [
"MIT"
] | null | null | null | Pyautogui_tutorial/mousecontrolscipt.py | xfzlun/WinUIAutomation | 0f94388671cf0aacbc8499293b7dd31ddfa205fa | [
"MIT"
] | null | null | null | import pyautogui as pg
# 间隔2秒钟将鼠标移动到坐标为100,100的位置
pg.FAILSAFE = False #关掉保护措施,不设置会报下面附录的错误
pg.moveTo(x=100, y=100, duration=2)
pg.click() #鼠标左键点击一次, 这个函数有很多参数,参见以下,可以玩看看
#pg.click(x=None, y=None, clicks=1, interval=0.0, button='left', duration=0.0, tween=pg.linear)
'''
第一次执行的时候报了这个错误,搜了一下貌似要关掉
Excepti... | 25.54902 | 175 | 0.720645 | 185 | 1,303 | 5.07027 | 0.583784 | 0.053305 | 0.01919 | 0.025586 | 0.053305 | 0.053305 | 0.053305 | 0.053305 | 0 | 0 | 0 | 0.071556 | 0.14198 | 1,303 | 50 | 176 | 26.06 | 0.767442 | 0.281658 | 0 | 0 | 0 | 0 | 0.033058 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
30bdbe577a5d9d1dbc9a092c3e7fa1f6b9c7256d | 9,683 | py | Python | Backup/moduleA.py | ejekt/rigging-system | dedf09cc832f56b310587b818deadfd4f8ca7b3b | [
"MIT"
] | 3 | 2019-12-12T03:46:41.000Z | 2021-01-16T06:29:45.000Z | Backup/moduleA.py | ejekt/rigging-system | dedf09cc832f56b310587b818deadfd4f8ca7b3b | [
"MIT"
] | null | null | null | Backup/moduleA.py | ejekt/rigging-system | dedf09cc832f56b310587b818deadfd4f8ca7b3b | [
"MIT"
] | null | null | null | import os
import naming as n
reload(n)
import maya.cmds as mc
import System.utils as utils
reload(utils)
CLASS_NAME = 'ModuleA'
TITLE = 'Module A'
DESCRIPTION = 'Test desc for module A'
ICON = os.environ['RIGGING_TOOL_ROOT'] + '/Icons/_hand.xpm'
#cNamer = n.Name(type='blueprint', mod=CLASS_NAME)
clas... | 41.380342 | 129 | 0.741402 | 1,073 | 9,683 | 6.614166 | 0.230196 | 0.040721 | 0.002959 | 0.027617 | 0.172608 | 0.122587 | 0.122587 | 0.045653 | 0.045653 | 0 | 0 | 0.005797 | 0.144893 | 9,683 | 234 | 130 | 41.380342 | 0.851329 | 0.107405 | 0 | 0.051948 | 0 | 0 | 0.122213 | 0.053893 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.025974 | null | null | 0.038961 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
30c1376c3fde4348e43ee2ba12a8534b910f98c1 | 1,527 | py | Python | dragon/usystem.py | NicEastvillage/RLBot-DropShot-Dragon-Python | b0d94fd054ab410ad02880a3d56e72b5eddd7ba6 | [
"MIT"
] | 1 | 2019-08-07T21:38:59.000Z | 2019-08-07T21:38:59.000Z | dragon/usystem.py | NicEastvillage/RLBot-DropShot-Dragon-Python | b0d94fd054ab410ad02880a3d56e72b5eddd7ba6 | [
"MIT"
] | null | null | null | dragon/usystem.py | NicEastvillage/RLBot-DropShot-Dragon-Python | b0d94fd054ab410ad02880a3d56e72b5eddd7ba6 | [
"MIT"
] | null | null | null | from RLUtilities.LinearAlgebra import vec3
from RLUtilities.Maneuvers import Drive
class UtilitySystem:
def __init__(self, choices, prev_bias=0.15):
self.choices = choices
self.current_best_index = -1
self.prev_bias = prev_bias
def evaluate(self, bot):
best_index = -1
... | 29.365385 | 92 | 0.611002 | 197 | 1,527 | 4.502538 | 0.299492 | 0.121759 | 0.135287 | 0.180383 | 0.180383 | 0.069899 | 0 | 0 | 0 | 0 | 0 | 0.022346 | 0.29666 | 1,527 | 51 | 93 | 29.941176 | 0.803538 | 0.026195 | 0 | 0.102564 | 0 | 0 | 0.006065 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.179487 | false | 0.025641 | 0.051282 | 0.025641 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
30ccc835225f0f39d9631aa44f69223b6d2b4527 | 5,825 | py | Python | ratschlab_common/io/dataframe_formats.py | ratschlab/ratschlab-common | e7d71c3220c8b991d9d1c2f2de5cf393fce8357c | [
"MIT"
] | 1 | 2021-02-01T22:45:24.000Z | 2021-02-01T22:45:24.000Z | ratschlab_common/io/dataframe_formats.py | ratschlab/ratschlab-common | e7d71c3220c8b991d9d1c2f2de5cf393fce8357c | [
"MIT"
] | 2 | 2019-11-25T09:10:26.000Z | 2020-02-14T13:08:28.000Z | ratschlab_common/io/dataframe_formats.py | ratschlab/ratschlab-common | e7d71c3220c8b991d9d1c2f2de5cf393fce8357c | [
"MIT"
] | 1 | 2018-09-20T01:38:01.000Z | 2018-09-20T01:38:01.000Z | import os
from abc import ABCMeta, abstractmethod
from types import MappingProxyType
import dask.dataframe
import pandas as pd
class AbstractDataFrameFormat:
"""
Provides helper functions to serialize and deserialize pandas and
dask dataframes.
Instances of such classes can define their own default ... | 36.63522 | 93 | 0.633305 | 599 | 5,825 | 5.868114 | 0.175292 | 0.053201 | 0.083642 | 0.059175 | 0.672262 | 0.626458 | 0.58606 | 0.541679 | 0.357326 | 0.311238 | 0 | 0.000725 | 0.289442 | 5,825 | 158 | 94 | 36.867089 | 0.848514 | 0.08721 | 0 | 0.537736 | 0 | 0 | 0.021652 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235849 | false | 0 | 0.04717 | 0.056604 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
30cd6249b329b46a03cfecc7898ea184033964d2 | 378 | py | Python | HannaL Programming 12 Portfolio/Hanna L Chapter 1 Lab/AreaOfTrapezoidCalculator.py | HannaLuu/Programming12_Portfolio | b6b480b557ab88e428580c40fda2bb8f10ac115a | [
"MIT"
] | null | null | null | HannaL Programming 12 Portfolio/Hanna L Chapter 1 Lab/AreaOfTrapezoidCalculator.py | HannaLuu/Programming12_Portfolio | b6b480b557ab88e428580c40fda2bb8f10ac115a | [
"MIT"
] | null | null | null | HannaL Programming 12 Portfolio/Hanna L Chapter 1 Lab/AreaOfTrapezoidCalculator.py | HannaLuu/Programming12_Portfolio | b6b480b557ab88e428580c40fda2bb8f10ac115a | [
"MIT"
] | null | null | null | print("This program calculates the area of a trapezoid.")
height = float(input("Enter height of trapezoid:"))
top_base_length = float(input("Enter top length of trapezoid:"))
bottom_base_length = float(input("Enter bottom length of trapezoid:"))
area_of_trapezoid = .5 * (top_base_length + bottom_base_length) * height
p... | 63 | 72 | 0.769841 | 57 | 378 | 4.894737 | 0.333333 | 0.197133 | 0.16129 | 0.143369 | 0.179211 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003003 | 0.119048 | 378 | 6 | 73 | 63 | 0.834835 | 0 | 0 | 0 | 0 | 0 | 0.437995 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
30d9462a88c0ebc7b1a28e773898227835681362 | 1,430 | py | Python | covidxpert/utils/__init__.py | LucaCappelletti94/covidxpert | 8adda25f3d6fb648607c0f8af7d3ff54b42c59fb | [
"MIT"
] | 2 | 2020-05-22T12:50:11.000Z | 2021-03-12T01:00:17.000Z | covidxpert/utils/__init__.py | LucaCappelletti94/covidxpert | 8adda25f3d6fb648607c0f8af7d3ff54b42c59fb | [
"MIT"
] | 6 | 2020-05-27T19:03:15.000Z | 2021-03-02T11:12:06.000Z | covidxpert/utils/__init__.py | LucaCappelletti94/covidxpert | 8adda25f3d6fb648607c0f8af7d3ff54b42c59fb | [
"MIT"
] | 1 | 2020-05-27T07:21:02.000Z | 2020-05-27T07:21:02.000Z | from .load_image import load_image
from .normalize_image import normalize_image
from .remove_artefacts import remove_artefacts, fill_small_white_blobs, fill_small_black_blobs
from .padding import trim_padding, add_padding
from .inpaint import inpaint
from .darken import darken
from .difference_of_gaussians_pyramid impo... | 31.086957 | 94 | 0.79021 | 178 | 1,430 | 5.898876 | 0.264045 | 0.034286 | 0.06 | 0.08 | 0.072381 | 0.072381 | 0.072381 | 0.072381 | 0 | 0 | 0 | 0.002443 | 0.141259 | 1,430 | 45 | 95 | 31.777778 | 0.852606 | 0 | 0 | 0.045455 | 0 | 0 | 0.25035 | 0.071329 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.409091 | 0 | 0.409091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
30d9946316ecfd307f0f761701c4aed9a868f4ca | 625 | py | Python | proxy/python/proxy_client.py | koonchen/awesome-design-patterns | 53891e5331b211bce7c2b3f8ea6fdd1a9f4086d1 | [
"MIT"
] | 5 | 2018-10-19T15:30:00.000Z | 2018-11-30T06:02:12.000Z | proxy/python/proxy_client.py | koonchen/awesome-design-patterns | 53891e5331b211bce7c2b3f8ea6fdd1a9f4086d1 | [
"MIT"
] | null | null | null | proxy/python/proxy_client.py | koonchen/awesome-design-patterns | 53891e5331b211bce7c2b3f8ea6fdd1a9f4086d1 | [
"MIT"
] | 2 | 2018-10-19T15:30:08.000Z | 2019-02-20T15:28:38.000Z | #!/usr/bin/env python
# coding:utf8
# @Date : 2018/8/27
# @Author : Koon
# @Link : chenzeping.com
# When I wrote this, only God and I understood what I was doing. Now, God only knows.
class Subject(object):
def request(self):
print("Subject instance has been created")
class RealSubject(Subject):
... | 20.833333 | 85 | 0.6544 | 80 | 625 | 4.9375 | 0.5625 | 0.075949 | 0.106329 | 0.096203 | 0.136709 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016598 | 0.2288 | 625 | 29 | 86 | 21.551724 | 0.802905 | 0.2864 | 0 | 0.214286 | 0 | 0 | 0.177273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0 | 0.5 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
30deb57c91134b9206c1ecfd63be99c7504cefa8 | 565 | py | Python | machina/apps/forum/receivers.py | BrendaH/django-machina | c75b6f39f61ca92745aebb0bb6ab3c707d88063d | [
"BSD-3-Clause"
] | 572 | 2015-04-10T06:15:43.000Z | 2022-03-30T06:40:25.000Z | machina/apps/forum/receivers.py | BrendaH/django-machina | c75b6f39f61ca92745aebb0bb6ab3c707d88063d | [
"BSD-3-Clause"
] | 241 | 2015-10-26T22:23:59.000Z | 2022-03-25T12:30:56.000Z | machina/apps/forum/receivers.py | BrendaH/django-machina | c75b6f39f61ca92745aebb0bb6ab3c707d88063d | [
"BSD-3-Clause"
] | 156 | 2015-10-02T19:32:08.000Z | 2022-03-30T06:40:11.000Z | """
Forum signal receivers
======================
This module defines signal receivers.
"""
from django.db.models import F
from django.dispatch import receiver
from machina.apps.forum.signals import forum_viewed
@receiver(forum_viewed)
def update_forum_redirects_counter(sender, forum, user, request, r... | 26.904762 | 89 | 0.707965 | 72 | 565 | 5.402778 | 0.555556 | 0.133676 | 0.092545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002137 | 0.171681 | 565 | 20 | 90 | 28.25 | 0.82906 | 0.288496 | 0 | 0 | 0 | 0 | 0.053333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
30ea17aa8e12d9e828b613b0ece0e52f6bb41391 | 313 | py | Python | external/lfp_tools.py | dmartin35/pronosfoot | 861ae091fbb65684d00ae8c5ff3726eeaa306ed7 | [
"MIT"
] | 4 | 2017-07-09T21:18:18.000Z | 2022-02-16T13:05:10.000Z | external/lfp_tools.py | dmartin35/pronosfoot | 861ae091fbb65684d00ae8c5ff3726eeaa306ed7 | [
"MIT"
] | 2 | 2020-01-16T14:21:42.000Z | 2021-03-02T18:34:15.000Z | external/lfp_tools.py | dmartin35/pronosfoot | 861ae091fbb65684d00ae8c5ff3726eeaa306ed7 | [
"MIT"
] | null | null | null |
def escape_team_names(mystr):
"""
temporary fix for solving ? characters in bad team names encoding
from LFP's ICS calendar
"""
mystr = mystr.replace('N?MES','NÎMES')
mystr = mystr.replace('SAINT-?TIENNE','SAINT-ÉTIENNE')
mystr = mystr.replace('H?RAULT', 'HÉRAULT')
return mystr | 26.083333 | 69 | 0.654952 | 41 | 313 | 4.95122 | 0.707317 | 0.147783 | 0.251232 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207668 | 313 | 12 | 70 | 26.083333 | 0.818548 | 0.284345 | 0 | 0 | 0 | 0 | 0.245098 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
30f4b65b22ebdf31ffa7df998fa1124ad1b7b169 | 4,076 | py | Python | openstack_dashboard/dashboards/project/connections/reachability_tests/bcf_testpath_api.py | xinwu/horizon | 0e984a2c75d253dd35ab92e7926021b82d730b26 | [
"Apache-2.0"
] | null | null | null | openstack_dashboard/dashboards/project/connections/reachability_tests/bcf_testpath_api.py | xinwu/horizon | 0e984a2c75d253dd35ab92e7926021b82d730b26 | [
"Apache-2.0"
] | null | null | null | openstack_dashboard/dashboards/project/connections/reachability_tests/bcf_testpath_api.py | xinwu/horizon | 0e984a2c75d253dd35ab92e7926021b82d730b26 | [
"Apache-2.0"
] | null | null | null | import eventlet
import json
import rest_lib
import urllib
import logging as log
from openstack_dashboard.dashboards.project.connections import bsn_api
eventlet.monkey_patch()
URL_TEST_PATH = ('applications/bcf/test/path/controller-view'
'[src-tenant=\"%(src-tenant)s\"]'
'[src-segment... | 36.720721 | 79 | 0.531894 | 415 | 4,076 | 5.149398 | 0.313253 | 0.045859 | 0.016846 | 0.032288 | 0.067852 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006881 | 0.358194 | 4,076 | 110 | 80 | 37.054545 | 0.810015 | 0.02527 | 0 | 0.072917 | 0 | 0 | 0.115997 | 0.045742 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.052083 | 0.0625 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
30f632315bf80a25755270e8635ee48d72de5b33 | 3,085 | py | Python | features/tests/features/generators/test_datetime.py | daobook/autogluon | 7309118f2ab1c9519f25acf61a283a95af95842b | [
"Apache-2.0"
] | 1 | 2022-02-19T13:22:26.000Z | 2022-02-19T13:22:26.000Z | features/tests/features/generators/test_datetime.py | daobook/autogluon | 7309118f2ab1c9519f25acf61a283a95af95842b | [
"Apache-2.0"
] | 3 | 2021-12-30T20:28:01.000Z | 2022-02-09T20:19:21.000Z | features/tests/features/generators/test_datetime.py | daobook/autogluon | 7309118f2ab1c9519f25acf61a283a95af95842b | [
"Apache-2.0"
] | null | null | null |
from autogluon.features.generators import DatetimeFeatureGenerator
def test_datetime_feature_generator(generator_helper, data_helper):
# Given
input_data = data_helper.generate_multi_feature_full()
generator_1 = DatetimeFeatureGenerator()
generator_2 = DatetimeFeatureGenerator(features = ['hour'])
... | 32.135417 | 101 | 0.67812 | 342 | 3,085 | 5.695906 | 0.245614 | 0.087269 | 0.129877 | 0.079055 | 0.577515 | 0.463039 | 0.311088 | 0.311088 | 0.259754 | 0.259754 | 0 | 0.106992 | 0.23047 | 3,085 | 95 | 102 | 32.473684 | 0.713564 | 0.077472 | 0 | 0.333333 | 1 | 0 | 0.152925 | 0.042283 | 0 | 0 | 0 | 0 | 0.102564 | 1 | 0.012821 | false | 0 | 0.012821 | 0 | 0.025641 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
30f7b5fce84c80a74ad5a056cdaf77b75b688b7c | 740 | py | Python | tests/test_index.py | cxan96/strong-but-simple-passwords | c7242f870a2968bd40eceb97b163b4ae307cb84c | [
"MIT"
] | 2 | 2021-04-04T03:44:16.000Z | 2021-06-04T13:50:29.000Z | tests/test_index.py | cxan96/strong-but-simple-passwords | c7242f870a2968bd40eceb97b163b4ae307cb84c | [
"MIT"
] | null | null | null | tests/test_index.py | cxan96/strong-but-simple-passwords | c7242f870a2968bd40eceb97b163b4ae307cb84c | [
"MIT"
] | 1 | 2021-08-28T03:35:36.000Z | 2021-08-28T03:35:36.000Z | from strong_but_simple_passwords import views
def test_index_http_ok(client):
response = client.get("/")
assert response.status_code == 200
def test_empty_post(monkeypatch, client):
a_random_sentence = "A random sentence."
monkeypatch.setattr(views, "get_random_sentence", lambda: a_random_sentence)
... | 28.461538 | 84 | 0.736486 | 98 | 740 | 5.336735 | 0.397959 | 0.133843 | 0.114723 | 0.137667 | 0.17782 | 0.126195 | 0 | 0 | 0 | 0 | 0 | 0.014587 | 0.166216 | 740 | 25 | 85 | 29.6 | 0.833063 | 0 | 0 | 0.1875 | 0 | 0 | 0.171622 | 0 | 0 | 0 | 0 | 0 | 0.375 | 1 | 0.1875 | false | 0.1875 | 0.0625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
30fe3ede542736245b717c523c0b5b49831e3733 | 1,178 | py | Python | m3uragen/m3u.py | TiBeN/m3uragen | 45f6f7c76c7a345d01f43a152f1f815a9891441f | [
"Apache-2.0"
] | 1 | 2020-12-19T09:18:13.000Z | 2020-12-19T09:18:13.000Z | m3uragen/m3u.py | TiBeN/m3uragen | 45f6f7c76c7a345d01f43a152f1f815a9891441f | [
"Apache-2.0"
] | 1 | 2021-10-22T00:38:17.000Z | 2021-12-15T13:48:18.000Z | m3uragen/m3u.py | TiBeN/m3uragen | 45f6f7c76c7a345d01f43a152f1f815a9891441f | [
"Apache-2.0"
] | null | null | null | """Handle M3U files generation"""
import os
import logging
def generate(software, out_dir, suffix, dry_run):
"""Generate M3U file for the given software into out_dir"""
m3u_filename = software.name + (suffix if suffix else '') + '.m3u'
if not dry_run:
m3u_fd = open(os.path.join(out_dir, m3u_file... | 31 | 79 | 0.633277 | 171 | 1,178 | 4.181287 | 0.374269 | 0.075524 | 0.044755 | 0.061538 | 0.233566 | 0.208392 | 0.109091 | 0.109091 | 0.109091 | 0.109091 | 0 | 0.012571 | 0.257216 | 1,178 | 37 | 80 | 31.837838 | 0.804571 | 0.117148 | 0 | 0.166667 | 1 | 0 | 0.078125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a5001932f04ab10d0bb10446b772ad4ac5a29053 | 860 | py | Python | Dataset/Leetcode/train/46/7.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/46/7.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/46/7.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution(object):
def XXXUnique(self, nums):
"""
:type nums: List[int]
:rtype: List[List[int]]
"""
if not nums:
return []
nums.sort()
n = len(nums)
visited = [0] * n
res = []
def helper1(temp_list, length):
# if length == n and temp_list not in res:
... | 23.888889 | 79 | 0.561628 | 133 | 860 | 3.56391 | 0.24812 | 0.151899 | 0.056962 | 0.107595 | 0.462025 | 0.415612 | 0.331224 | 0.331224 | 0.248945 | 0.248945 | 0 | 0.027419 | 0.27907 | 860 | 35 | 80 | 24.571429 | 0.737097 | 0 | 0 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a50a1a9c4d80a795f5268abc078ed222ed04076c | 1,087 | py | Python | python/plants/common.py | djcroissant/leds | dec0d963e7d325413d1fedde606039b8baee8c70 | [
"BSD-2-Clause"
] | null | null | null | python/plants/common.py | djcroissant/leds | dec0d963e7d325413d1fedde606039b8baee8c70 | [
"BSD-2-Clause"
] | null | null | null | python/plants/common.py | djcroissant/leds | dec0d963e7d325413d1fedde606039b8baee8c70 | [
"BSD-2-Clause"
] | null | null | null | import time
from neopixel import Adafruit_NeoPixel
import argparse
# Pixel class corresponds to a light strip
# It stores the strip, characteristics, and state
class Pix:
# LED strip configuration:
LED_COUNT = 594 # Number of LED pixels.
LED_PIN = 18 # GPIO pin connected to the pixels (18 ... | 38.821429 | 110 | 0.698252 | 162 | 1,087 | 4.574074 | 0.574074 | 0.037787 | 0.024292 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050663 | 0.237351 | 1,087 | 27 | 111 | 40.259259 | 0.843185 | 0.555658 | 0 | 0 | 0 | 0 | 0.025696 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.928571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a50bf6879a17e8768e2814595f2b630927b697b3 | 1,730 | py | Python | sublime_cscope/settings.py | jgust/SublimeCscope | 8ae008f4805ad6edad7c8bf0d258eb7947da26a0 | [
"MIT"
] | 7 | 2015-05-19T15:11:11.000Z | 2019-10-22T19:16:39.000Z | sublime_cscope/settings.py | jgust/SublimeCscope | 8ae008f4805ad6edad7c8bf0d258eb7947da26a0 | [
"MIT"
] | 2 | 2017-03-12T16:23:06.000Z | 2021-08-24T18:53:29.000Z | sublime_cscope/settings.py | jgust/SublimeCscope | 8ae008f4805ad6edad7c8bf0d258eb7947da26a0 | [
"MIT"
] | 1 | 2016-03-24T09:15:39.000Z | 2016-03-24T09:15:39.000Z |
import sublime
from ..SublimeCscope import PACKAGE_NAME
SETTING_DEFAULTS = {
'index_file_extensions': [
".c",
".cc",
".cpp",
... | 35.306122 | 77 | 0.402312 | 133 | 1,730 | 4.947368 | 0.488722 | 0.12766 | 0.072948 | 0.045593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004819 | 0.520231 | 1,730 | 48 | 78 | 36.041667 | 0.787952 | 0.06474 | 0 | 0 | 0 | 0 | 0.11118 | 0.042236 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.060606 | 0.030303 | 0.212121 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a5107265c6aab9b94bc89f42e8734a161ea23572 | 1,361 | py | Python | bayesvp_try.py | ais97/bayesvp | dedf38dd7236f040301a84e5578f7202a2da07aa | [
"MIT"
] | null | null | null | bayesvp_try.py | ais97/bayesvp | dedf38dd7236f040301a84e5578f7202a2da07aa | [
"MIT"
] | null | null | null | bayesvp_try.py | ais97/bayesvp | dedf38dd7236f040301a84e5578f7202a2da07aa | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Sep 15 18:36:44 2021
@author: aiswarya
"""
#import sys
#sys.path.append('/home/aiswarya/bayesvp')
from bayesvp.scripts import bvp_write_config as wc
from bayesvp.scripts import bvp_process_model as pm
from bayesvp.scripts import bvpfit as fit
from baye... | 23.877193 | 66 | 0.714916 | 188 | 1,361 | 5.021277 | 0.489362 | 0.081568 | 0.057203 | 0.076271 | 0.099576 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023423 | 0.184423 | 1,361 | 57 | 67 | 23.877193 | 0.827027 | 0.150625 | 0 | 0 | 0 | 0 | 0.085308 | 0.024645 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a5122092a80427855c3a9e857644775cb315bcb9 | 322 | py | Python | sayhello/settings.py | wangnalin/test | cf721108983d824433af8afb507e602237533369 | [
"MIT"
] | null | null | null | sayhello/settings.py | wangnalin/test | cf721108983d824433af8afb507e602237533369 | [
"MIT"
] | null | null | null | sayhello/settings.py | wangnalin/test | cf721108983d824433af8afb507e602237533369 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
author:wnl
date: 2018-12-7
"""
import os
from sayhello import app
dev_db = 'mysql+pymysql://root:root.123@192.168.100.105:3306/sayhello2'
SECRET_KEY = os.getenv('SECRRET','secret string')
SQLALCHEMY_TRACK_MODIFICATIONS = False
SQLALCHEMY_DATABASE_URI = os.getenv('DATABASE_URI',dev_db)... | 20.125 | 71 | 0.726708 | 48 | 322 | 4.708333 | 0.770833 | 0.044248 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098246 | 0.114907 | 322 | 15 | 72 | 21.466667 | 0.694737 | 0.152174 | 0 | 0 | 0 | 0.166667 | 0.353846 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a514a8f70721796a5a67c93ce02d723310bc48b4 | 1,166 | py | Python | aiida_fleur/tests/tools/test_io_routines.py | Tseplyaev/aiida-fleur | 5de36d8b235e4b4edd908e7a0cb594112a461eb5 | [
"MIT"
] | null | null | null | aiida_fleur/tests/tools/test_io_routines.py | Tseplyaev/aiida-fleur | 5de36d8b235e4b4edd908e7a0cb594112a461eb5 | [
"MIT"
] | null | null | null | aiida_fleur/tests/tools/test_io_routines.py | Tseplyaev/aiida-fleur | 5de36d8b235e4b4edd908e7a0cb594112a461eb5 | [
"MIT"
] | null | null | null |
# write_results_to_file
def test_write_results_to_file_interface():
"""
is the basic file writter wraper working as indended
"""
from aiida_fleur.tools.io_routines import write_results_to_file
from os.path import isfile, abspath
from os import remove
#import os
from numpy import array... | 26.5 | 74 | 0.701544 | 156 | 1,166 | 5.012821 | 0.442308 | 0.061381 | 0.071611 | 0.092072 | 0.102302 | 0.102302 | 0.102302 | 0.102302 | 0 | 0 | 0 | 0.045852 | 0.214408 | 1,166 | 43 | 75 | 27.116279 | 0.80786 | 0.240995 | 0 | 0 | 0 | 0 | 0.110059 | 0.026036 | 0 | 0 | 0 | 0.023256 | 0.1 | 1 | 0.1 | false | 0.05 | 0.25 | 0 | 0.35 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a515c5bdd107724d285d97362ef20d1a0f5ac85d | 1,097 | py | Python | tests/syngenta_digital_dta/elasticsearch/test_es_connector.py | syngenta-digital/dta-python | 2f313964bdc2b733b47c874b18bd72ebf5ed8817 | [
"Apache-2.0"
] | null | null | null | tests/syngenta_digital_dta/elasticsearch/test_es_connector.py | syngenta-digital/dta-python | 2f313964bdc2b733b47c874b18bd72ebf5ed8817 | [
"Apache-2.0"
] | 62 | 2020-12-02T02:59:14.000Z | 2021-10-01T01:08:07.000Z | tests/syngenta_digital_dta/elasticsearch/test_es_connector.py | syngenta-digital/dta-python | 2f313964bdc2b733b47c874b18bd72ebf5ed8817 | [
"Apache-2.0"
] | null | null | null | import uuid
import unittest
import warnings
import json
from syngenta_digital_dta.elasticsearch.es_connector import ESConnector
from tests.syngenta_digital_dta.elasticsearch.mocks import MockESAdapter
class ESConnectorTest(unittest.TestCase):
def setUp(self, *args, **kwargs):
warnings.simplefilter('ignor... | 36.566667 | 122 | 0.74567 | 124 | 1,097 | 6.403226 | 0.354839 | 0.138539 | 0.120907 | 0.060453 | 0.40932 | 0.40932 | 0.40932 | 0.34005 | 0.2267 | 0.2267 | 0 | 0 | 0.164084 | 1,097 | 29 | 123 | 37.827586 | 0.865867 | 0 | 0 | 0.217391 | 0 | 0 | 0.044667 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 1 | 0.173913 | false | 0.130435 | 0.26087 | 0 | 0.478261 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
eb4a80f052270cf773713e6f31e00575e901cca2 | 3,921 | py | Python | tortoise/contrib/test/__init__.py | EtzelWu/tortoise-orm | 6a79c87169c10ff25b0d84bca4db24f0c0737432 | [
"Apache-2.0"
] | null | null | null | tortoise/contrib/test/__init__.py | EtzelWu/tortoise-orm | 6a79c87169c10ff25b0d84bca4db24f0c0737432 | [
"Apache-2.0"
] | null | null | null | tortoise/contrib/test/__init__.py | EtzelWu/tortoise-orm | 6a79c87169c10ff25b0d84bca4db24f0c0737432 | [
"Apache-2.0"
] | null | null | null | import asyncio as _asyncio
import os as _os
from unittest import SkipTest, expectedFailure, skip, skipIf, skipUnless # noqa
from asynctest import TestCase as _TestCase
from asynctest import _fail_on
from tortoise import Tortoise as _Tortoise
from tortoise.backends.base.client import BaseDBAsyncClient as _BaseDBAsync... | 32.139344 | 97 | 0.678908 | 504 | 3,921 | 5.105159 | 0.35119 | 0.016323 | 0.017101 | 0.024874 | 0.176059 | 0.122425 | 0.067625 | 0.067625 | 0.067625 | 0.067625 | 0 | 0.002663 | 0.233869 | 3,921 | 121 | 98 | 32.404959 | 0.853862 | 0.299158 | 0 | 0.169492 | 0 | 0 | 0.091311 | 0.011263 | 0 | 0 | 0 | 0.008264 | 0 | 1 | 0.033898 | false | 0.050847 | 0.152542 | 0 | 0.254237 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
eb4ad53306cf5e9ef12e757a378a6da18b7e9027 | 1,129 | py | Python | streamkinect2/common.py | rjw57/streamkinect2 | 967fc9855cff1f980e75f5330530d9eb6dc37e5a | [
"BSD-2-Clause"
] | 3 | 2015-09-19T06:55:22.000Z | 2018-03-31T06:51:31.000Z | streamkinect2/common.py | rjw57/streamkinect2 | 967fc9855cff1f980e75f5330530d9eb6dc37e5a | [
"BSD-2-Clause"
] | null | null | null | streamkinect2/common.py | rjw57/streamkinect2 | 967fc9855cff1f980e75f5330530d9eb6dc37e5a | [
"BSD-2-Clause"
] | null | null | null | """
Common elements for both client and server
==========================================
"""
import enum
import json
class ProtocolError(RuntimeError):
"""Raised when some low-level error in the network protocol has been
detected.
"""
class EndpointType(enum.Enum):
"""
Enumeration of endpoints e... | 23.040816 | 91 | 0.616475 | 146 | 1,129 | 4.753425 | 0.616438 | 0.023055 | 0.043228 | 0.060519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024083 | 0.227635 | 1,129 | 48 | 92 | 23.520833 | 0.771789 | 0.379982 | 0 | 0 | 0 | 0 | 0.106977 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
eb4bd3ef93523276a029ce74696a58d6dbda7df8 | 1,791 | py | Python | tests/infrastructure/test_hashing_clients.py | enchainte/enchainte-sdk-py | d7e6803cb941ae929bca9bb00584aa5b4853689a | [
"MIT"
] | 1 | 2021-11-21T22:02:49.000Z | 2021-11-21T22:02:49.000Z | tests/infrastructure/test_hashing_clients.py | enchainte/enchainte-sdk-py | d7e6803cb941ae929bca9bb00584aa5b4853689a | [
"MIT"
] | 1 | 2021-09-16T20:19:04.000Z | 2021-09-16T20:19:04.000Z | tests/infrastructure/test_hashing_clients.py | enchainte/enchainte-sdk-py | d7e6803cb941ae929bca9bb00584aa5b4853689a | [
"MIT"
] | 1 | 2021-12-10T10:22:30.000Z | 2021-12-10T10:22:30.000Z | from unittest import TestCase
from bloock.infrastructure.hashing.blake2b import Blake2b
from bloock.infrastructure.hashing.keccak import Keccak
class Blake2bTestCase(TestCase):
def setUp(self):
self.blake = Blake2b()
def test_blake_generate_hash_64_zeros_string(self):
data = b'00000000000000... | 38.106383 | 86 | 0.731993 | 150 | 1,791 | 8.566667 | 0.266667 | 0.027237 | 0.07393 | 0.062257 | 0.551751 | 0.501167 | 0.403891 | 0.236576 | 0.236576 | 0.182101 | 0 | 0.285714 | 0.198772 | 1,791 | 46 | 87 | 38.934783 | 0.609756 | 0 | 0 | 0.4 | 0 | 0 | 0.353992 | 0.285874 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.2 | false | 0 | 0.085714 | 0 | 0.342857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
eb4c777d1ec0e0f2de5615f741bc3013f401e213 | 7,395 | py | Python | simscale_sdk/models/time_step_animation_output_settings_all_of.py | SimScaleGmbH/simscale-python-sdk | 34c881ca0be87e2b0bb315a9fee1d73f0da61e78 | [
"MIT"
] | 8 | 2021-01-22T13:41:03.000Z | 2022-01-03T09:00:10.000Z | simscale_sdk/models/time_step_animation_output_settings_all_of.py | eljoelopez/simscale-python-sdk | 189f1337b2ab40feed123111ddead0cdecf83c93 | [
"MIT"
] | null | null | null | simscale_sdk/models/time_step_animation_output_settings_all_of.py | eljoelopez/simscale-python-sdk | 189f1337b2ab40feed123111ddead0cdecf83c93 | [
"MIT"
] | 3 | 2021-03-18T15:52:52.000Z | 2022-01-03T08:59:30.000Z | # coding: utf-8
"""
SimScale API
The version of the OpenAPI document: 0.0.0
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from simscale_sdk.configuration import Configuration
class TimeStepAnimationOutputSettingsAllOf(object):
"""NOTE: This cla... | 35.214286 | 142 | 0.640838 | 875 | 7,395 | 5.184 | 0.141714 | 0.101411 | 0.070988 | 0.121693 | 0.621032 | 0.579806 | 0.548721 | 0.405203 | 0.369489 | 0.295635 | 0 | 0.019048 | 0.275862 | 7,395 | 209 | 143 | 35.382775 | 0.828011 | 0.286275 | 0 | 0.106796 | 1 | 0 | 0.131399 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.135922 | false | 0 | 0.038835 | 0 | 0.31068 | 0.019417 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
eb4c825a43f6f758f6c0778489d3efdfec3dabf7 | 1,143 | py | Python | metastore/configurations/repository.py | metastore-developers/metastore | 56397e5c81f6b6b4b408b458bcfe09191945cff2 | [
"BSD-3-Clause"
] | null | null | null | metastore/configurations/repository.py | metastore-developers/metastore | 56397e5c81f6b6b4b408b458bcfe09191945cff2 | [
"BSD-3-Clause"
] | null | null | null | metastore/configurations/repository.py | metastore-developers/metastore | 56397e5c81f6b6b4b408b458bcfe09191945cff2 | [
"BSD-3-Clause"
] | null | null | null | '''
Repository configuration model.
'''
from typing import Dict, List, Literal, Optional
from .. import types
from .configuration import Configuration
class RepositoryConfiguration(Configuration):
'''
Repository configuration model.
'''
#: Configuration type.
type: Optional[Literal['repository'... | 25.4 | 60 | 0.695538 | 110 | 1,143 | 7.136364 | 0.345455 | 0.035669 | 0.071338 | 0.084076 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20385 | 1,143 | 44 | 61 | 25.977273 | 0.862637 | 0.311461 | 0 | 0 | 0 | 0 | 0.057105 | 0.030544 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.157895 | 0 | 0.842105 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
eb4d61456ea19420d3829d735a469004c45d21d0 | 970 | py | Python | python/277.py | kylekanos/project-euler-1 | af7089356a4cea90f8ef331cfdc65e696def6140 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | python/277.py | kylekanos/project-euler-1 | af7089356a4cea90f8ef331cfdc65e696def6140 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | python/277.py | kylekanos/project-euler-1 | af7089356a4cea90f8ef331cfdc65e696def6140 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2019-09-17T00:55:58.000Z | 2019-09-17T00:55:58.000Z | #!/usr/bin/env python
def modpow(a,n,m):
ret=1
while n:
if n&1: ret=(ret*a)%m
n>>=1
a = (a*a)%m
return ret
def check(a1):
checkstr=''
for i in xrange(len(moves)):
if a1%3==0:
checkstr+='D'
a1/=3
elif a1%3==1:
checkstr+='U'... | 19.4 | 61 | 0.43299 | 190 | 970 | 2.210526 | 0.3 | 0.064286 | 0.028571 | 0.02381 | 0.088095 | 0.021429 | 0 | 0 | 0 | 0 | 0 | 0.155906 | 0.345361 | 970 | 49 | 62 | 19.795918 | 0.505512 | 0.212371 | 0 | 0.052632 | 0 | 0 | 0.046113 | 0.038208 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
eb500447316c707e8ab27d9672035cbf09dc6dee | 972 | py | Python | Easy/Paint_Cost.py | vinayvinu500/Sololearn | 82ea8c41ae52c265cc37b8bf126ea3cfaf2c5500 | [
"MIT"
] | null | null | null | Easy/Paint_Cost.py | vinayvinu500/Sololearn | 82ea8c41ae52c265cc37b8bf126ea3cfaf2c5500 | [
"MIT"
] | null | null | null | Easy/Paint_Cost.py | vinayvinu500/Sololearn | 82ea8c41ae52c265cc37b8bf126ea3cfaf2c5500 | [
"MIT"
] | null | null | null | """
Paint costs
You are getting ready to paint a piece of art. The canvas and brushes that you want to use will cost 40.00. Each color of paint that you buy is an additional 5.00. Determine how much money you will need based on the number of colors that you want to buy if tax at this store is 10%.
Task
Given the to... | 33.517241 | 282 | 0.748971 | 184 | 972 | 3.956522 | 0.413043 | 0.048077 | 0.04533 | 0.053571 | 0.17033 | 0.17033 | 0.17033 | 0.082418 | 0 | 0 | 0 | 0.046632 | 0.205761 | 972 | 29 | 283 | 33.517241 | 0.896373 | 0.901235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
eb51468dffd54037005f28c7423bde948db98210 | 3,625 | py | Python | yaleclient/cli.py | anderselton/yale-client | 2c2ddd46bfada9ea0ec97022ec4bc46c8e062558 | [
"Apache-2.0"
] | null | null | null | yaleclient/cli.py | anderselton/yale-client | 2c2ddd46bfada9ea0ec97022ec4bc46c8e062558 | [
"Apache-2.0"
] | null | null | null | yaleclient/cli.py | anderselton/yale-client | 2c2ddd46bfada9ea0ec97022ec4bc46c8e062558 | [
"Apache-2.0"
] | 1 | 2021-04-16T16:43:23.000Z | 2021-04-16T16:43:23.000Z | # -*- coding: utf-8 -*-
import argparse
import os
from .client import YaleClient
class EnvDefault(argparse.Action):
def __init__(self, envvar, help, required=True, default=None, **kwargs):
if envvar:
if envvar in os.environ:
value_default = os.getenv(key=envvar, default=default... | 40.277778 | 120 | 0.589517 | 401 | 3,625 | 5.117207 | 0.311721 | 0.02729 | 0.037524 | 0.02729 | 0.174951 | 0.062378 | 0 | 0 | 0 | 0 | 0 | 0.000398 | 0.30731 | 3,625 | 89 | 121 | 40.730337 | 0.816806 | 0.018483 | 0 | 0.084507 | 0 | 0 | 0.138115 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070423 | false | 0.056338 | 0.042254 | 0 | 0.126761 | 0.056338 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
eb5195c7f53f58aed03e892f82a003ed8c0cede7 | 1,376 | py | Python | backend/api/filters/filters.py | grallage/course-selection-system | d7db267befe8c1d91b9d1bc335397e3087466c96 | [
"MIT"
] | null | null | null | backend/api/filters/filters.py | grallage/course-selection-system | d7db267befe8c1d91b9d1bc335397e3087466c96 | [
"MIT"
] | null | null | null | backend/api/filters/filters.py | grallage/course-selection-system | d7db267befe8c1d91b9d1bc335397e3087466c96 | [
"MIT"
] | null | null | null | from .. import models
from django_filters import rest_framework as filters
class MajorFilterSet(filters.FilterSet):
name = filters.CharFilter(field_name="name", lookup_expr="contains")
description = filters.CharFilter(field_name="description", lookup_expr="contains")
id = filters.NumberFilter(field_name="... | 32.761905 | 88 | 0.711483 | 159 | 1,376 | 5.893082 | 0.232704 | 0.086446 | 0.164354 | 0.194237 | 0.496265 | 0.432231 | 0.432231 | 0.432231 | 0.326574 | 0.326574 | 0 | 0 | 0.169331 | 1,376 | 41 | 89 | 33.560976 | 0.819773 | 0 | 0 | 0.275862 | 0 | 0 | 0.16061 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068966 | 0 | 0.655172 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
eb548fb8cf15eb3f8798883ce250fd08789baca2 | 4,012 | py | Python | tests/xmrswap/test_other.py | tecnovert/xmrswap | ad2983a4df03184453ff680c17602497acc75a87 | [
"MIT"
] | 2 | 2020-09-21T17:33:23.000Z | 2020-10-03T08:54:01.000Z | tests/xmrswap/test_other.py | tecnovert/xmrswap | ad2983a4df03184453ff680c17602497acc75a87 | [
"MIT"
] | 2 | 2020-10-03T09:18:48.000Z | 2020-10-13T19:58:34.000Z | tests/xmrswap/test_other.py | tecnovert/xmrswap | ad2983a4df03184453ff680c17602497acc75a87 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright (c) 2020 tecnovert
# Distributed under the MIT software license, see the accompanying
# file LICENSE.txt or http://www.opensource.org/licenses/mit-license.php.
import unittest
from xmrswap.interface_btc import (
testBTCInterface
)
from xmrswap.util import... | 33.714286 | 89 | 0.583998 | 477 | 4,012 | 4.750524 | 0.27044 | 0.067079 | 0.035746 | 0.019417 | 0.379082 | 0.374669 | 0.364519 | 0.342454 | 0.342454 | 0.340688 | 0 | 0.234375 | 0.298106 | 4,012 | 118 | 90 | 34 | 0.570313 | 0.058824 | 0 | 0.375 | 0 | 0 | 0.138837 | 0.059464 | 0 | 0 | 0 | 0 | 0.21875 | 1 | 0.0625 | false | 0 | 0.0625 | 0 | 0.135417 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
eb57f9bf54428ecebf85880e23368e3618741a38 | 243 | py | Python | V2RaycSpider1025/main.py | caicai166/V2RayCloudSpider | b263490407814c9e67e34fcce821af01a22405f1 | [
"MIT"
] | 4 | 2020-11-18T00:25:54.000Z | 2022-03-14T11:54:13.000Z | V2RaycSpider1025/main.py | caicai166/V2RayCloudSpider | b263490407814c9e67e34fcce821af01a22405f1 | [
"MIT"
] | null | null | null | V2RaycSpider1025/main.py | caicai166/V2RayCloudSpider | b263490407814c9e67e34fcce821af01a22405f1 | [
"MIT"
] | 3 | 2021-01-03T03:16:29.000Z | 2021-06-02T04:09:59.000Z | from Panel.master_panel import *
"""欢迎使用V2Ray云彩姬"""
if __name__ == '__main__':
V2Rayc = V2RaycSpider_Master_Panel()
try:
V2Rayc.home_menu()
except Exception as e:
V2Rayc.debug(e)
finally:
V2Rayc.kill()
| 20.25 | 40 | 0.62963 | 27 | 243 | 5.222222 | 0.740741 | 0.156028 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033149 | 0.255144 | 243 | 11 | 41 | 22.090909 | 0.745856 | 0 | 0 | 0 | 0 | 0 | 0.035556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
eb58c8c60f85a4934a55d96cc31bb7f46a9c0eae | 289 | py | Python | apps/toppage/urls.py | shimizukawa/django-multiple-type-user-auth | 8fba1670ae2c5e7add9d9bfe39997c047f848582 | [
"Apache-2.0"
] | 29 | 2020-01-31T08:24:18.000Z | 2022-03-24T18:39:11.000Z | apps/toppage/urls.py | shimizukawa/django-multiple-type-user-auth | 8fba1670ae2c5e7add9d9bfe39997c047f848582 | [
"Apache-2.0"
] | 2 | 2021-03-18T21:30:27.000Z | 2021-04-05T20:45:48.000Z | apps/toppage/urls.py | shimizukawa/django-multiple-type-user-auth | 8fba1670ae2c5e7add9d9bfe39997c047f848582 | [
"Apache-2.0"
] | 5 | 2021-05-12T19:46:46.000Z | 2022-03-03T16:06:41.000Z | from django.urls import path
from .views import index, supporter_index, customer_index
app_name = 'toppage'
urlpatterns = [
path('', index, name='index'),
path('supporter/', supporter_index, name='supporter_index'),
path('customer/', customer_index, name='customer_index'),
] | 28.9 | 64 | 0.719723 | 35 | 289 | 5.742857 | 0.371429 | 0.208955 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134948 | 289 | 10 | 65 | 28.9 | 0.804 | 0 | 0 | 0 | 0 | 0 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
eb5a1f1e207966227e8c201ab765ed8ba7bfef1e | 1,923 | py | Python | blocks/utils.py | vogonyo/SImulator | bd05c5bda376d9463b68b1b386e17be8ca393ea3 | [
"MIT"
] | 76 | 2016-09-16T21:04:56.000Z | 2021-11-09T03:29:37.000Z | blocks/utils.py | vogonyo/SImulator | bd05c5bda376d9463b68b1b386e17be8ca393ea3 | [
"MIT"
] | 4 | 2019-01-06T08:53:29.000Z | 2019-01-25T09:38:09.000Z | blocks/utils.py | vogonyo/SImulator | bd05c5bda376d9463b68b1b386e17be8ca393ea3 | [
"MIT"
] | 22 | 2016-09-20T11:06:02.000Z | 2021-07-28T03:06:42.000Z | import sys
import h5py
import yaml
import numpy as np
from fuel.datasets import H5PYDataset
from fuel.streams import DataStream
from fuel.schemes import SequentialScheme, ShuffledScheme
from fuel.transformers import Mapping
from blocks.extensions import saveload, predicates
from blocks.extensions.training import TrackT... | 34.339286 | 97 | 0.73791 | 258 | 1,923 | 5.251938 | 0.422481 | 0.02952 | 0.020664 | 0.030996 | 0.067159 | 0.020664 | 0 | 0 | 0 | 0 | 0 | 0.013733 | 0.166927 | 1,923 | 55 | 98 | 34.963636 | 0.832085 | 0.068643 | 0 | 0 | 0 | 0 | 0.038031 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0.02381 | 0.547619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
eb5f27f70e1b8021f877eebe2821bbbc7ca9a3c6 | 2,626 | py | Python | cdr_plugin_folder_to_folder/api/Server.py | lucia15/cdr-plugin-folder-to-folder | 6dc245086d613a07e0fc63057d1ca1da965feccd | [
"Apache-2.0"
] | null | null | null | cdr_plugin_folder_to_folder/api/Server.py | lucia15/cdr-plugin-folder-to-folder | 6dc245086d613a07e0fc63057d1ca1da965feccd | [
"Apache-2.0"
] | null | null | null | cdr_plugin_folder_to_folder/api/Server.py | lucia15/cdr-plugin-folder-to-folder | 6dc245086d613a07e0fc63057d1ca1da965feccd | [
"Apache-2.0"
] | 1 | 2022-02-21T15:48:51.000Z | 2022-02-21T15:48:51.000Z | import logging
import uvicorn
from fastapi_offline import FastAPIOffline as FastAPI
#from cdr_plugin_folder_to_folder.api.users import router
from osbot_utils.utils.Misc import to_int
from cdr_plugin_folder_to_folder.api.routes.Processing import router as router_processing
from cdr_plugin_folder_to_folder.api.routes... | 44.508475 | 162 | 0.686976 | 350 | 2,626 | 4.917143 | 0.362857 | 0.041836 | 0.069727 | 0.079024 | 0.299826 | 0.254503 | 0.174317 | 0.156886 | 0.053457 | 0 | 0 | 0.008354 | 0.225057 | 2,626 | 59 | 163 | 44.508475 | 0.837346 | 0.228865 | 0 | 0 | 0 | 0 | 0.102628 | 0.020823 | 0 | 0 | 0 | 0.016949 | 0 | 1 | 0.121951 | false | 0 | 0.219512 | 0 | 0.390244 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
eb62f7a6a5283024ec8152b88db4515eb8b7c676 | 1,373 | py | Python | xos/tosca/resources/accessdevice.py | pan2za/olt | 54f110f81849b6393f3055755876cd01b4c6dac5 | [
"Apache-2.0"
] | null | null | null | xos/tosca/resources/accessdevice.py | pan2za/olt | 54f110f81849b6393f3055755876cd01b4c6dac5 | [
"Apache-2.0"
] | null | null | null | xos/tosca/resources/accessdevice.py | pan2za/olt | 54f110f81849b6393f3055755876cd01b4c6dac5 | [
"Apache-2.0"
] | null | null | null | from services.volt.models import AccessDevice, VOLTDevice
from xosresource import XOSResource
class XOSAccessDevice(XOSResource):
provides = "tosca.nodes.AccessDevice"
xos_model = AccessDevice
copyin_props = ["uplink", "vlan"]
name_field = None
def get_xos_args(self, throw_exception=True):
... | 40.382353 | 134 | 0.697014 | 177 | 1,373 | 5.19209 | 0.350282 | 0.097933 | 0.043526 | 0.030468 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216315 | 1,373 | 33 | 135 | 41.606061 | 0.854089 | 0.115076 | 0 | 0 | 0 | 0 | 0.082645 | 0.047934 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.086957 | 0 | 0.521739 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
eb63e2b82821e62051f86e67479c30cbd653b398 | 587 | py | Python | 1_Einstieg/passengers/naiveForecast.py | DavidStahl97/Predictive-Analytics | c607ef2a5fc2b6654122b0b5ef90cb1a23f88eb0 | [
"MIT"
] | null | null | null | 1_Einstieg/passengers/naiveForecast.py | DavidStahl97/Predictive-Analytics | c607ef2a5fc2b6654122b0b5ef90cb1a23f88eb0 | [
"MIT"
] | null | null | null | 1_Einstieg/passengers/naiveForecast.py | DavidStahl97/Predictive-Analytics | c607ef2a5fc2b6654122b0b5ef90cb1a23f88eb0 | [
"MIT"
] | null | null | null | import pandas as pd
import math
from matplotlib import pyplot
ts = pd.read_csv("airline-passengers.csv", header=0, index_col=0)
nOfPassengers = ts["Passengers"]
values = nOfPassengers.values.tolist()
forecast = [math.nan]
for i in range(0, len(values) - 1):
forecast.append(values[i])
pyplot.plot(values)
pyplot... | 17.264706 | 65 | 0.664395 | 94 | 587 | 4.12766 | 0.404255 | 0.020619 | 0.030928 | 0.056701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016913 | 0.194208 | 587 | 33 | 66 | 17.787879 | 0.803383 | 0 | 0 | 0 | 0 | 0 | 0.054514 | 0.037479 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 0.125 | 0 | 0.125 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
eb689c0f5ae5483dbf370934ef7f938d7073e716 | 1,076 | py | Python | app/models/file.py | dhardtke/pyEncode | 5db3813bfa2bae11a353dd63a10577413d41cdbe | [
"MIT"
] | 5 | 2016-02-17T15:19:00.000Z | 2020-01-22T06:10:39.000Z | app/models/file.py | dhardtke/pyEncode | 5db3813bfa2bae11a353dd63a10577413d41cdbe | [
"MIT"
] | 19 | 2016-02-18T00:26:37.000Z | 2016-09-07T15:36:04.000Z | app/models/file.py | dhardtke/pyEncode | 5db3813bfa2bae11a353dd63a10577413d41cdbe | [
"MIT"
] | 1 | 2020-02-13T15:44:17.000Z | 2020-02-13T15:44:17.000Z | from app import db
from app.models.base_model import BaseModel
class File(BaseModel):
__tablename__ = "files"
filename = db.Column(db.String(300)) # includes path!
status = db.Column(db.Integer())
size = db.Column(db.Integer())
position = db.Column(db.Integer())
# foreign keys
package_i... | 28.315789 | 89 | 0.63197 | 148 | 1,076 | 4.445946 | 0.364865 | 0.133739 | 0.167173 | 0.155015 | 0.243161 | 0.243161 | 0.132219 | 0 | 0 | 0 | 0 | 0.018337 | 0.239777 | 1,076 | 37 | 90 | 29.081081 | 0.786064 | 0.099442 | 0 | 0 | 0 | 0 | 0.026539 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0.041667 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
eb73593abc8f876baf0bf2e515008f8778305aa4 | 1,988 | py | Python | exercicio07.py | Matheus2037/infosatc-lp-avaliativo-02 | 88121a8f4f294d1125492c085a15cf3a033fc919 | [
"MIT"
] | null | null | null | exercicio07.py | Matheus2037/infosatc-lp-avaliativo-02 | 88121a8f4f294d1125492c085a15cf3a033fc919 | [
"MIT"
] | null | null | null | exercicio07.py | Matheus2037/infosatc-lp-avaliativo-02 | 88121a8f4f294d1125492c085a15cf3a033fc919 | [
"MIT"
] | null | null | null | lista_filmes = ['vingadores ultimato', 'star wars', 'as branquelas', 'vovó... zona']#Criando as 4 listas
print("lista filmes: " ,lista_filmes)
print("\n")
lista_jogos = ['genshin impact', 'the witcher 3', 'dying light', 'destiny']#Criando as 4 listas
print("lista jogos: " ,lista_jogos)
print("\n")
lista_livros = ['o ul... | 41.416667 | 158 | 0.755533 | 284 | 1,988 | 5.176056 | 0.292254 | 0.07483 | 0.097959 | 0.108844 | 0.531293 | 0.514966 | 0.161905 | 0.063946 | 0 | 0 | 0 | 0.00905 | 0.110664 | 1,988 | 48 | 159 | 41.416667 | 0.822398 | 0.242455 | 0 | 0.342105 | 0 | 0 | 0.429913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.605263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
eb763354ab5b452fa95155e1fea3cdf2157a1123 | 2,535 | py | Python | .local/bin/word-clock.py | hghann/osxrice | 78f32f35dd68ee400025c0e61b22ab4cc78a8ac9 | [
"MIT"
] | 1 | 2021-12-25T10:57:55.000Z | 2021-12-25T10:57:55.000Z | .local/bin/word-clock.py | hghann/osxrice | 78f32f35dd68ee400025c0e61b22ab4cc78a8ac9 | [
"MIT"
] | null | null | null | .local/bin/word-clock.py | hghann/osxrice | 78f32f35dd68ee400025c0e61b22ab4cc78a8ac9 | [
"MIT"
] | 1 | 2021-12-25T10:57:54.000Z | 2021-12-25T10:57:54.000Z | # MINUTES
IT_IS = [[0,0],[0,1],[0,3],[0,4]]
FIVE = [[3,i] for i in range(7,11)]
TEN = [[1,i] for i in range(6,9)]
QUARTER = [[2,i] for i in range(2,9)]
TWENTY = [[3,i] for i in range(1,7)]
HALF = [[1,i] for i in range(2,6)]
TO = [[4,i] for i in range(1,3)]
PAST = [[4,i] for i in range(3,7)]
MINUTES = [
[],
FI... | 26.684211 | 101 | 0.50927 | 411 | 2,535 | 3.104623 | 0.226277 | 0.131661 | 0.098746 | 0.181034 | 0.351881 | 0.311912 | 0.126176 | 0.045455 | 0.045455 | 0.045455 | 0 | 0.091168 | 0.307692 | 2,535 | 95 | 102 | 26.684211 | 0.635897 | 0.047337 | 0 | 0 | 0 | 0 | 0.09975 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.04 | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
eb8028a8b7b945f7ec2d911683799e73bf046fb9 | 1,781 | py | Python | loopingTechniques.py | harish-kumar-97/Python-Exercises | c3966a75283dec335b83fea53160cf09ba93f9a6 | [
"MIT"
] | null | null | null | loopingTechniques.py | harish-kumar-97/Python-Exercises | c3966a75283dec335b83fea53160cf09ba93f9a6 | [
"MIT"
] | null | null | null | loopingTechniques.py | harish-kumar-97/Python-Exercises | c3966a75283dec335b83fea53160cf09ba93f9a6 | [
"MIT"
] | null | null | null | # python code to demonstrate working of enumerate()
for key, value in enumerate(['The', 'Big', 'Bang', 'Theory']):
print(key, value)
print('\n')
# python code to demonstrate working of enumerate()
for key, value in enumerate(['Geeks', 'for', 'Geeks', 'is', 'the', 'Best', 'Coding', 'Platform']):
print(value, e... | 30.186441 | 98 | 0.662549 | 265 | 1,781 | 4.45283 | 0.309434 | 0.054237 | 0.061017 | 0.071186 | 0.444068 | 0.333051 | 0.241525 | 0.218644 | 0.181356 | 0.181356 | 0 | 0.008152 | 0.173498 | 1,781 | 59 | 99 | 30.186441 | 0.793478 | 0.367771 | 0 | 0.375 | 0 | 0 | 0.295496 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.59375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
eb85b2b61c540dec30a5ddbb7a6f5bca969046a6 | 399 | py | Python | setup.py | mapogolions/pyreact-event-loop | 6bfdf34c73a8ef1ce89adb3af69ac07314a0ae3e | [
"MIT"
] | null | null | null | setup.py | mapogolions/pyreact-event-loop | 6bfdf34c73a8ef1ce89adb3af69ac07314a0ae3e | [
"MIT"
] | 2 | 2019-05-21T14:46:25.000Z | 2021-06-01T23:54:24.000Z | setup.py | mapogolions/pyreact | 8d91f8397e6bec3fb02140015c68b50f6cb8ea62 | [
"MIT"
] | null | null | null | from setuptools import setup
def readme():
with open('./README.md') as f:
return f.read()
setup(
name='event_loop',
version='0.1',
author='mapogolions',
author_email='ivanovpavelalex45@gmail.com',
description='Simple event loop',
license='LICENSE.txt',
long_description=readme... | 19.95 | 47 | 0.646617 | 47 | 399 | 5.382979 | 0.744681 | 0.106719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012461 | 0.195489 | 399 | 19 | 48 | 21 | 0.775701 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 0.067669 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | true | 0 | 0.066667 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
eb865cf2e7668259a91927012b67adf757085745 | 1,121 | py | Python | Python/ITChallenge/2011/3.py | TRex22/random | 97d74c57bad4e2046d940a92d71f38f202cdb70b | [
"Unlicense"
] | 2 | 2015-11-05T21:23:12.000Z | 2019-12-03T07:02:41.000Z | Python/ITChallenge/2011/3.py | TRex22/random | 97d74c57bad4e2046d940a92d71f38f202cdb70b | [
"Unlicense"
] | null | null | null | Python/ITChallenge/2011/3.py | TRex22/random | 97d74c57bad4e2046d940a92d71f38f202cdb70b | [
"Unlicense"
] | null | null | null | #a = raw_input()
num = input()
def addone():
global t, qq
t[qq-1] += 1
carry = 0
c = 0
ss = ""
for j in range(qq):
t[qq-1-j] += carry
if (t[qq-1-j] > 1):
t[qq-1-j] = 0
carry = 1
else:
carry = 0
c += 1
ss += str(t[qq-1-j])
return ss
def makestring():
s = ""
ends = ""
global t, b, l, qq
... | 14.558442 | 66 | 0.486173 | 206 | 1,121 | 2.635922 | 0.286408 | 0.033149 | 0.036832 | 0.036832 | 0.051565 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039191 | 0.29438 | 1,121 | 76 | 67 | 14.75 | 0.647282 | 0.045495 | 0 | 0.138462 | 0 | 0 | 0.012172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.015385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
eb88dcaec82b7d18b2e8efb0e331cee8cbb15f9e | 7,873 | py | Python | pysocksproto/tools.py | fkohs/py_socksproto | 343ae1e2fee66cdb87c510d13e8d27db60991ab4 | [
"MIT"
] | null | null | null | pysocksproto/tools.py | fkohs/py_socksproto | 343ae1e2fee66cdb87c510d13e8d27db60991ab4 | [
"MIT"
] | null | null | null | pysocksproto/tools.py | fkohs/py_socksproto | 343ae1e2fee66cdb87c510d13e8d27db60991ab4 | [
"MIT"
] | null | null | null | from .exceptions import UnexpectedValue
from .constants import *
import socket, struct, threading, time
class Tools:
atype2AF = {
ATYP_IPV4:socket.AF_INET,
ATYP_IPV6:socket.AF_INET6,
ATYP_DOMAINNAME:socket.AF_INET
}
def recv2(conn:socket.socket, *args):
... | 42.556757 | 150 | 0.585164 | 924 | 7,873 | 4.829004 | 0.207792 | 0.040341 | 0.059615 | 0.024204 | 0.331017 | 0.20641 | 0.136486 | 0.05827 | 0.025101 | 0.025101 | 0 | 0.018707 | 0.287057 | 7,873 | 184 | 151 | 42.788043 | 0.776234 | 0.144037 | 0 | 0.215517 | 0 | 0 | 0.079467 | 0.030251 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12931 | false | 0.051724 | 0.025862 | 0 | 0.258621 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
eb8a1d7c0343c248c39a269df6093c8c26b1c2e1 | 1,494 | py | Python | MAOL/personal_list/migrations/0001_initial.py | noxlock/my-anime-openings-list | 4ab7660f226af5f06b941c657b8ff611ec8c63bc | [
"MIT"
] | null | null | null | MAOL/personal_list/migrations/0001_initial.py | noxlock/my-anime-openings-list | 4ab7660f226af5f06b941c657b8ff611ec8c63bc | [
"MIT"
] | 4 | 2021-12-31T07:56:10.000Z | 2021-12-31T09:43:27.000Z | MAOL/personal_list/migrations/0001_initial.py | noxlock/my-anime-openings-list | 4ab7660f226af5f06b941c657b8ff611ec8c63bc | [
"MIT"
] | null | null | null | # Generated by Django 3.2.4 on 2021-06-30 14:10
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('home', '0001_initial'),
migrations.swappable_dependency(setting... | 41.5 | 248 | 0.595047 | 162 | 1,494 | 5.376543 | 0.481481 | 0.045924 | 0.064294 | 0.101033 | 0.377727 | 0.377727 | 0.377727 | 0.377727 | 0.377727 | 0.377727 | 0 | 0.027051 | 0.232932 | 1,494 | 35 | 249 | 42.685714 | 0.732984 | 0.03012 | 0 | 0.357143 | 1 | 0 | 0.132688 | 0.015204 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.107143 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
eb94674e627c9637e3631827dccad31e43dbeafa | 1,983 | py | Python | api/project/modules/geoprocessing/utils.py | wilsoncwc/mapbox-osmnx | 38031e31ad3b97e941a773c99b1f9b544ef93fae | [
"MIT"
] | null | null | null | api/project/modules/geoprocessing/utils.py | wilsoncwc/mapbox-osmnx | 38031e31ad3b97e941a773c99b1f9b544ef93fae | [
"MIT"
] | null | null | null | api/project/modules/geoprocessing/utils.py | wilsoncwc/mapbox-osmnx | 38031e31ad3b97e941a773c99b1f9b544ef93fae | [
"MIT"
] | null | null | null | import osmnx as ox
import networkx as nx
def gdf_to_nx(gdf_network):
# generate graph from GeoDataFrame of LineStrings
net = nx.Graph()
net.graph['crs'] = gdf_network.crs
fields = list(gdf_network.columns)
for _, row in gdf_network.iterrows():
first = row.geometry.coords[0]
last = ... | 34.789474 | 95 | 0.646999 | 291 | 1,983 | 4.254296 | 0.391753 | 0.044426 | 0.036349 | 0.016155 | 0.03231 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013324 | 0.243066 | 1,983 | 57 | 96 | 34.789474 | 0.811459 | 0.165406 | 0 | 0.047619 | 1 | 0 | 0.068044 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.047619 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
eb967e24d2a33e6b84541055a8e1fda35b50d6bc | 1,236 | py | Python | FastSimulation/HighLevelTrigger/python/full2fast.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | FastSimulation/HighLevelTrigger/python/full2fast.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | FastSimulation/HighLevelTrigger/python/full2fast.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
def modify_hltL3TrajSeedOIHit(_hltL3TrajSeedOIHit):
_iterativeTSG = _hltL3TrajSeedOIHit.TkSeedGenerator.iterativeTSG
_iterativeTSG.ComponentName = cms.string('FastTSGFromPropagation')
_iterativeTSG.HitProducer = cms.InputTag("fastMatchedTrackerRecHitCombinations")
... | 47.538462 | 84 | 0.786408 | 90 | 1,236 | 10.577778 | 0.4 | 0.103992 | 0.081933 | 0.071429 | 0.128151 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009234 | 0.123786 | 1,236 | 25 | 85 | 49.44 | 0.869806 | 0 | 0 | 0.095238 | 0 | 0 | 0.178947 | 0.102024 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.047619 | 0 | 0.142857 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
eb99f86622cecc9f033b1bea66381c9d93c350c4 | 9,225 | py | Python | pysnmp-with-texts/CADANT-CMTS-NOTIFICATION-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/CADANT-CMTS-NOTIFICATION-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/CADANT-CMTS-NOTIFICATION-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module CADANT-CMTS-NOTIFICATION-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CADANT-CMTS-NOTIFICATION-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:45:14 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python vers... | 139.772727 | 717 | 0.776802 | 1,086 | 9,225 | 6.596685 | 0.239411 | 0.009771 | 0.085008 | 0.058347 | 0.446119 | 0.340592 | 0.292155 | 0.28043 | 0.28043 | 0.28043 | 0 | 0.049917 | 0.087913 | 9,225 | 65 | 718 | 141.923077 | 0.801521 | 0.03794 | 0 | 0 | 0 | 0.070175 | 0.392285 | 0.098579 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.035088 | 0.157895 | 0 | 0.157895 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
eb9c34327c8ded8bca2d41bbc276bd049672bbd7 | 1,729 | py | Python | bad.py | Spencer-Clay/Spencer-Clay-ketangpai_cracker- | dd769a853a6fd5e4cd0c7a1b891c46a50360cd27 | [
"MIT"
] | null | null | null | bad.py | Spencer-Clay/Spencer-Clay-ketangpai_cracker- | dd769a853a6fd5e4cd0c7a1b891c46a50360cd27 | [
"MIT"
] | null | null | null | bad.py | Spencer-Clay/Spencer-Clay-ketangpai_cracker- | dd769a853a6fd5e4cd0c7a1b891c46a50360cd27 | [
"MIT"
] | null | null | null | import requests
import sys
import os
import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
requests.adapters.DEFAULT_RETRIES = 10
def exploit_post_code(data, token):
main_url = 'https://openapiv51.ketangpai.com/AttenceApi/checkin'
headers = {
"User-Agent": "Mozilla/5.0 (M... | 30.875 | 111 | 0.604974 | 234 | 1,729 | 4.376068 | 0.376068 | 0.027344 | 0.029297 | 0.03125 | 0.669922 | 0.617188 | 0.617188 | 0.617188 | 0.617188 | 0.617188 | 0 | 0.071981 | 0.252747 | 1,729 | 55 | 112 | 31.436364 | 0.720588 | 0 | 0 | 0.473684 | 0 | 0.052632 | 0.300328 | 0.031475 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0 | 0.105263 | 0 | 0.210526 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
eb9cf0127ef5ed427d9efbbfab74a2a9d0c4ae7e | 2,088 | py | Python | python/constants.py | ptracton/wb_platform | 7e8a3c0fc9486cb0ee29d0d44707ee7dc21a6824 | [
"MIT"
] | null | null | null | python/constants.py | ptracton/wb_platform | 7e8a3c0fc9486cb0ee29d0d44707ee7dc21a6824 | [
"MIT"
] | null | null | null | python/constants.py | ptracton/wb_platform | 7e8a3c0fc9486cb0ee29d0d44707ee7dc21a6824 | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
"""
Packet Commands
"""
COMMAND_CPU_WRITE = 1
COMMAND_CPU_READ = 2
COMMAND_DAQ_WRITE = 3
COMMAND_DAQ_READ = 4
"""
RAM ADDRESSES
"""
RAM0_BASE_ADDRESS = 0x90000000
RAM1_BASE_ADDRESS = 0x90002000
RAM2_BASE_ADDRESS = 0x90004000
RAM3_BASE_ADDRESS = 0x90006000
"""
GPIO
"""
GPIO_BASE_ADDRESS = 0x40... | 26.769231 | 55 | 0.815134 | 363 | 2,088 | 4.090909 | 0.275482 | 0.222222 | 0.141414 | 0.103704 | 0.155556 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090119 | 0.117816 | 2,088 | 77 | 56 | 27.116883 | 0.716069 | 0.018199 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065723 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
eba03f73105a14dca36c64eedfaaba318422e180 | 648 | py | Python | crud/migrations/migration_motif.py | MedAli-FSTG/AdminDjangoCrud | b7de87f2fbfe0a1b990113792deb3157aed288b8 | [
"Apache-2.0"
] | null | null | null | crud/migrations/migration_motif.py | MedAli-FSTG/AdminDjangoCrud | b7de87f2fbfe0a1b990113792deb3157aed288b8 | [
"Apache-2.0"
] | null | null | null | crud/migrations/migration_motif.py | MedAli-FSTG/AdminDjangoCrud | b7de87f2fbfe0a1b990113792deb3157aed288b8 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.2.6 on 2019-10-22 08:11
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='motifs',
fields=[
('id', models.BigAutoFiel... | 24 | 79 | 0.520062 | 59 | 648 | 5.627119 | 0.79661 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040284 | 0.348765 | 648 | 26 | 80 | 24.923077 | 0.746446 | 0.069444 | 0 | 0 | 1 | 0 | 0.086522 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ebac27508f66c5ff713c821f2b877ebdbc6660c6 | 2,912 | py | Python | accountingsubject/views.py | zwj12/accounting | 96678104ac7815da57f8f8c1a38c3138bc5ed0b6 | [
"Apache-2.0"
] | null | null | null | accountingsubject/views.py | zwj12/accounting | 96678104ac7815da57f8f8c1a38c3138bc5ed0b6 | [
"Apache-2.0"
] | null | null | null | accountingsubject/views.py | zwj12/accounting | 96678104ac7815da57f8f8c1a38c3138bc5ed0b6 | [
"Apache-2.0"
] | null | null | null | from django.db.models import Count, Sum
from django.http import HttpResponseRedirect
from django.shortcuts import render, get_object_or_404
# Create your views here.
from django.views import generic
from accountingsubject.forms import AccountingSubjectForm
from accountingsubject.models import AccountingSubject
from c... | 44.121212 | 119 | 0.714629 | 306 | 2,912 | 6.584967 | 0.29085 | 0.177171 | 0.080397 | 0.101241 | 0.316625 | 0.26799 | 0.222333 | 0.195534 | 0.195534 | 0.145906 | 0 | 0.002535 | 0.187157 | 2,912 | 66 | 119 | 44.121212 | 0.848754 | 0.258242 | 0 | 0 | 0 | 0 | 0.130252 | 0.051821 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0 | 0.184211 | 0.026316 | 0.552632 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ebad0fa39828f876d9327badae6cbb23b3a1f522 | 258 | py | Python | upylab/upylab_5.3.py | piousteph/mooc_python | b7446c8a8317e2ae5e87a9ce27fd107f20333765 | [
"MIT"
] | null | null | null | upylab/upylab_5.3.py | piousteph/mooc_python | b7446c8a8317e2ae5e87a9ce27fd107f20333765 | [
"MIT"
] | null | null | null | upylab/upylab_5.3.py | piousteph/mooc_python | b7446c8a8317e2ae5e87a9ce27fd107f20333765 | [
"MIT"
] | null | null | null |
def duree(debut, fin):
d = debut[0] * 60 + debut[1]
f = fin[0] * 60 + fin[1]
e = f - d
h = e // 60
m = e - h * 60
if h < 0:
h = 24 - abs(h)
return (h, m)
print(duree ((14, 39), (18, 45)))
print(duree ((6, 0), (5, 15))) | 17.2 | 33 | 0.410853 | 48 | 258 | 2.208333 | 0.5 | 0.056604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171779 | 0.368217 | 258 | 15 | 34 | 17.2 | 0.478528 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.181818 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ebcd555eb93d05d6fa9188af7a083640c3b0d772 | 2,829 | py | Python | paginas/p1_vrc.py | Blake-SRTC/tv-digital-deteccion | c55798714d1d1829471e31d3d8aa612739a8193c | [
"MIT"
] | null | null | null | paginas/p1_vrc.py | Blake-SRTC/tv-digital-deteccion | c55798714d1d1829471e31d3d8aa612739a8193c | [
"MIT"
] | null | null | null | paginas/p1_vrc.py | Blake-SRTC/tv-digital-deteccion | c55798714d1d1829471e31d3d8aa612739a8193c | [
"MIT"
] | null | null | null | from tkinter import *
from tkinter.font import BOLD
from algoritmos.vrc import *
from algoritmos.noise_1_bits import *
######################################################################################################
# Pagina 1
def tab1(root, common_img, bits_normales, bits_desglosados):
pagina1 = Toplevel(... | 34.084337 | 164 | 0.618593 | 359 | 2,829 | 4.696379 | 0.264624 | 0.037367 | 0.042705 | 0.060498 | 0.219454 | 0.205813 | 0.205813 | 0.205813 | 0.205813 | 0.172005 | 0 | 0.048792 | 0.224814 | 2,829 | 82 | 165 | 34.5 | 0.720018 | 0.100035 | 0 | 0.038462 | 0 | 0 | 0.102923 | 0 | 0 | 0 | 0 | 0.012195 | 0 | 1 | 0.038462 | false | 0 | 0.076923 | 0 | 0.115385 | 0.096154 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ebcf09fa50c43679cec20b34ad768687dfbb66a1 | 322 | py | Python | Interesting Python Questions/add four integers together.py | liu-yunfei/Python | 314cdc98f32f4f0de2c0904279865b944e34dd75 | [
"MIT"
] | 1 | 2020-10-08T09:29:59.000Z | 2020-10-08T09:29:59.000Z | Interesting Python Questions/add four integers together.py | liu-yunfei/Python | 314cdc98f32f4f0de2c0904279865b944e34dd75 | [
"MIT"
] | 1 | 2021-01-30T12:04:51.000Z | 2021-01-30T12:05:37.000Z | Interesting Python Questions/add four integers together.py | liu-yunfei/Python | 314cdc98f32f4f0de2c0904279865b944e34dd75 | [
"MIT"
] | null | null | null | # Written by Yunfei LIU
# Sep 23, 2020
# Please obey the license GPLv3
# This allows to input four integers with space between them
number1,number2,number3,number4 = map(int,input().split())
# Add them up
sum = number1 + number2 + number3 + number4
# Get the unit digit
result = sum%10
# Output the result
print(result... | 24.769231 | 61 | 0.736025 | 50 | 322 | 4.74 | 0.78 | 0.118143 | 0.177215 | 0.236287 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064151 | 0.177019 | 322 | 12 | 62 | 26.833333 | 0.830189 | 0.537267 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ebd4b3b718d780d64a2bf799562bbb822aab0940 | 16,347 | py | Python | testscripts/RDKB/component/WAN_MANAGER/TS_WANMANAGER_DSL_CheckInternetConnectivity_PrimaryWanForDSLAndWANOE.py | rdkcmf/rdkb-tools-tdkb | 9f9c3600cd701d5fc90ac86a6394ebd28d49267e | [
"Apache-2.0"
] | null | null | null | testscripts/RDKB/component/WAN_MANAGER/TS_WANMANAGER_DSL_CheckInternetConnectivity_PrimaryWanForDSLAndWANOE.py | rdkcmf/rdkb-tools-tdkb | 9f9c3600cd701d5fc90ac86a6394ebd28d49267e | [
"Apache-2.0"
] | null | null | null | testscripts/RDKB/component/WAN_MANAGER/TS_WANMANAGER_DSL_CheckInternetConnectivity_PrimaryWanForDSLAndWANOE.py | rdkcmf/rdkb-tools-tdkb | 9f9c3600cd701d5fc90ac86a6394ebd28d49267e | [
"Apache-2.0"
] | null | null | null | ##########################################################################
# If not stated otherwise in this file or this component's Licenses.txt
# file the following copyright and licenses apply:
#
# Copyright 2021 RDK Management
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use th... | 53.596721 | 174 | 0.603475 | 1,652 | 16,347 | 5.891041 | 0.184625 | 0.013152 | 0.023736 | 0.033909 | 0.561241 | 0.512022 | 0.490341 | 0.486334 | 0.433313 | 0.408138 | 0 | 0.013464 | 0.304827 | 16,347 | 304 | 175 | 53.773026 | 0.842925 | 0.089986 | 0 | 0.53125 | 0 | 0 | 0.280409 | 0.041591 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.020833 | null | null | 0.244792 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ebd4fa6e495803588cbdc17f69290991cb8d3593 | 2,409 | py | Python | tests/conftest.py | frnsys/maup | 2cd12184e3a0d60128c4991e7e8eb706e3a227bd | [
"MIT"
] | 50 | 2019-05-10T22:38:14.000Z | 2022-03-17T20:11:43.000Z | tests/conftest.py | frnsys/maup | 2cd12184e3a0d60128c4991e7e8eb706e3a227bd | [
"MIT"
] | 42 | 2019-03-23T13:03:47.000Z | 2022-03-14T22:23:57.000Z | tests/conftest.py | frnsys/maup | 2cd12184e3a0d60128c4991e7e8eb706e3a227bd | [
"MIT"
] | 16 | 2019-03-25T18:03:04.000Z | 2021-09-27T08:16:30.000Z | import geopandas as gp
import pytest
from shapely.geometry import Polygon
import maup
CRS = "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"
@pytest.fixture
def crs():
return CRS
@pytest.fixture
def four_square_grid():
"""
b d
a c
"""
a = Polygon([(0, 0), (0, 1), (1, 1), (1, 0)])
b = ... | 23.617647 | 85 | 0.550851 | 373 | 2,409 | 3.407507 | 0.201072 | 0.02203 | 0.151062 | 0.018883 | 0.354839 | 0.108576 | 0.104642 | 0.025177 | 0.025177 | 0.025177 | 0 | 0.103939 | 0.241179 | 2,409 | 101 | 86 | 23.851485 | 0.591357 | 0.026152 | 0 | 0.202899 | 0 | 0 | 0.037866 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.057971 | 0.144928 | 0.405797 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
ebd5e7cdc22ace82a24160df0b1f3fbcd2c0b44d | 1,389 | py | Python | plot_benchmark.py | 99991/ParallelZipFile | 070e54845ac9c42805c1e211992f26b719ed3920 | [
"MIT"
] | null | null | null | plot_benchmark.py | 99991/ParallelZipFile | 070e54845ac9c42805c1e211992f26b719ed3920 | [
"MIT"
] | null | null | null | plot_benchmark.py | 99991/ParallelZipFile | 070e54845ac9c42805c1e211992f26b719ed3920 | [
"MIT"
] | null | null | null | """
Plot results of benchmark. Need to run benchmark.py first to generate
the file benchmark_results.json.
"""
import json
from collections import defaultdict
import matplotlib.pyplot as plt
def groupby(values, keyfunc):
"""Group values by key returned by keyfunc."""
groups = defaultdict(list)
for value ... | 25.254545 | 82 | 0.62275 | 163 | 1,389 | 5.239264 | 0.509202 | 0.056206 | 0.046838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007626 | 0.24478 | 1,389 | 54 | 83 | 25.722222 | 0.806482 | 0.12023 | 0 | 0 | 1 | 0 | 0.186047 | 0.040698 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088235 | false | 0 | 0.088235 | 0.029412 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ebdc4515eef225eea20fa462e0ef3055b00b55ae | 193 | py | Python | _solutions/pandas/series/pandas_series_create_even.py | sages-pl/2022-01-pythonsqlalchemy-aptiv | 1d6d856608e9dbe25b139e8968c48b7f46753b84 | [
"MIT"
] | null | null | null | _solutions/pandas/series/pandas_series_create_even.py | sages-pl/2022-01-pythonsqlalchemy-aptiv | 1d6d856608e9dbe25b139e8968c48b7f46753b84 | [
"MIT"
] | null | null | null | _solutions/pandas/series/pandas_series_create_even.py | sages-pl/2022-01-pythonsqlalchemy-aptiv | 1d6d856608e9dbe25b139e8968c48b7f46753b84 | [
"MIT"
] | null | null | null |
data = np.arange(0, 20, 2)
result = pd.Series(data)
# Alternative Solution
# s = pd.Series(range(0, 20, 2))
# Alternative Solution
# s = pd.Series([x for x in range(0, 20) if x % 2 == 0])
| 16.083333 | 56 | 0.61658 | 35 | 193 | 3.4 | 0.485714 | 0.07563 | 0.067227 | 0.369748 | 0.470588 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084967 | 0.207254 | 193 | 11 | 57 | 17.545455 | 0.69281 | 0.658031 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ebe0baf06bf88a67d2daea2010828c40f054c75a | 558 | py | Python | corehq/apps/data_interfaces/migrations/0016_createscheduleinstanceactiondefinition_specific_start_date.py | kkrampa/commcare-hq | d64d7cad98b240325ad669ccc7effb07721b4d44 | [
"BSD-3-Clause"
] | 1 | 2020-05-05T13:10:01.000Z | 2020-05-05T13:10:01.000Z | corehq/apps/data_interfaces/migrations/0016_createscheduleinstanceactiondefinition_specific_start_date.py | kkrampa/commcare-hq | d64d7cad98b240325ad669ccc7effb07721b4d44 | [
"BSD-3-Clause"
] | 1 | 2019-12-09T14:00:14.000Z | 2019-12-09T14:00:14.000Z | corehq/apps/data_interfaces/migrations/0016_createscheduleinstanceactiondefinition_specific_start_date.py | MaciejChoromanski/commcare-hq | fd7f65362d56d73b75a2c20d2afeabbc70876867 | [
"BSD-3-Clause"
] | 5 | 2015-11-30T13:12:45.000Z | 2019-07-01T19:27:07.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.10 on 2018-03-11 12:37
from __future__ import absolute_import
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('data_interfaces', '0015_automaticupdaterule_locked_f... | 25.363636 | 75 | 0.682796 | 58 | 558 | 6.258621 | 0.775862 | 0.055096 | 0.088154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050691 | 0.222222 | 558 | 21 | 76 | 26.571429 | 0.785714 | 0.123656 | 0 | 0 | 1 | 0 | 0.236626 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ebe364266010bc086bf3592d22da99f969271db1 | 699 | py | Python | tests/slack_sdk/web/test_web_client_issue_1049.py | priya1puresoftware/python-slack-sdk | 3503182feaaf4d41b57fd8bf10038ebc99f1f3c7 | [
"MIT"
] | 2,486 | 2016-11-03T14:31:43.000Z | 2020-10-26T23:07:44.000Z | tests/slack_sdk/web/test_web_client_issue_1049.py | priya1puresoftware/python-slack-sdk | 3503182feaaf4d41b57fd8bf10038ebc99f1f3c7 | [
"MIT"
] | 721 | 2016-11-03T21:26:56.000Z | 2020-10-26T12:41:29.000Z | tests/slack_sdk/web/test_web_client_issue_1049.py | priya1puresoftware/python-slack-sdk | 3503182feaaf4d41b57fd8bf10038ebc99f1f3c7 | [
"MIT"
] | 627 | 2016-11-02T19:04:19.000Z | 2020-10-25T19:21:13.000Z | import json
import unittest
from slack_sdk.web import WebClient
from tests.slack_sdk.web.mock_web_api_server import (
setup_mock_web_api_server,
cleanup_mock_web_api_server,
)
class TestWebClient_Issue_1049(unittest.TestCase):
def setUp(self):
setup_mock_web_api_server(self)
def tearDown(sel... | 25.888889 | 76 | 0.688126 | 89 | 699 | 5.067416 | 0.539326 | 0.077605 | 0.110865 | 0.177384 | 0.226164 | 0.101996 | 0 | 0 | 0 | 0 | 0 | 0.016636 | 0.226037 | 699 | 26 | 77 | 26.884615 | 0.817006 | 0 | 0 | 0 | 0 | 0 | 0.085837 | 0.038627 | 0 | 0 | 0 | 0 | 0.047619 | 1 | 0.142857 | false | 0 | 0.190476 | 0 | 0.380952 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ebe421e20d63c5797e08d5c60d06d2e3c0b635d7 | 734 | py | Python | netforce_service/netforce_service/models/task_list.py | nfco/netforce | 35252eecd0a6633ab9d82162e9e3ff57d4da029a | [
"MIT"
] | 27 | 2015-09-30T23:53:30.000Z | 2021-06-07T04:56:25.000Z | netforce_service/netforce_service/models/task_list.py | nfco/netforce | 35252eecd0a6633ab9d82162e9e3ff57d4da029a | [
"MIT"
] | 191 | 2015-10-08T11:46:30.000Z | 2019-11-14T02:24:36.000Z | netforce_service/netforce_service/models/task_list.py | nfco/netforce | 35252eecd0a6633ab9d82162e9e3ff57d4da029a | [
"MIT"
] | 32 | 2015-10-01T03:59:43.000Z | 2022-01-13T07:31:05.000Z | from netforce.model import Model, fields, get_model, clear_cache
from netforce.database import get_connection
from datetime import *
import time
from netforce import access
class TaskList(Model):
_name = "task.list"
_string = "Task List"
_fields = {
"name": fields.Char("Name",required=True),
... | 30.583333 | 73 | 0.667575 | 88 | 734 | 5.397727 | 0.454545 | 0.092632 | 0.067368 | 0.096842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005025 | 0.186649 | 734 | 23 | 74 | 31.913043 | 0.79062 | 0 | 0 | 0 | 0 | 0 | 0.249319 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.55 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ebe505828b5e47c65eb660e7346462d4ff167740 | 696 | py | Python | startpara.py | bhsnsrma/Cisco_Python | e92e272d8335f6b7fef27466a085430dd1694396 | [
"Apache-2.0"
] | null | null | null | startpara.py | bhsnsrma/Cisco_Python | e92e272d8335f6b7fef27466a085430dd1694396 | [
"Apache-2.0"
] | null | null | null | startpara.py | bhsnsrma/Cisco_Python | e92e272d8335f6b7fef27466a085430dd1694396 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
import paramiko,time
#using as ssh client
client=paramiko.SSHClient()
#auto adjut host kue verification with yes or no
client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
#time to connect to remote Cisco IOS
addr=input("Enter your Router IP :")
u='root'
p='cisco'
#connected with SSh sessio... | 27.84 | 81 | 0.787356 | 111 | 696 | 4.837838 | 0.747748 | 0.067039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011236 | 0.104885 | 696 | 24 | 82 | 29 | 0.850722 | 0.392241 | 0 | 0 | 0 | 0 | 0.128641 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.083333 | 0.083333 | 0 | 0.083333 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
cce820db4737d5f4fc516df5c5d36a6fb126649f | 1,560 | py | Python | classification.py | alisher0717/one-shot-learning | b1a0814df045e4a9c3bf8e0d7cbc7a0979e9ceb0 | [
"MIT"
] | null | null | null | classification.py | alisher0717/one-shot-learning | b1a0814df045e4a9c3bf8e0d7cbc7a0979e9ceb0 | [
"MIT"
] | null | null | null | classification.py | alisher0717/one-shot-learning | b1a0814df045e4a9c3bf8e0d7cbc7a0979e9ceb0 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from __future__ import print_function
import numpy as np
import random
import cv2
from keras.utils import to_categorical
from keras.models import Model
from keras.layers import Dropout, Lambda, Dense, Conv2D, Flatten, Input, MaxPooling2D
from keras.optimizers import RMSprop
from ... | 38.04878 | 104 | 0.688462 | 233 | 1,560 | 4.386266 | 0.274678 | 0.041096 | 0.029354 | 0.055773 | 0.116438 | 0.092955 | 0.092955 | 0.092955 | 0.092955 | 0.092955 | 0 | 0.021514 | 0.195513 | 1,560 | 41 | 104 | 38.04878 | 0.792829 | 0 | 0 | 0.142857 | 0 | 0 | 0.035234 | 0.015375 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0 | 0.342857 | 0 | 0.485714 | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
cce86a805da411d647ff0f543066e46f420f6023 | 596 | py | Python | setup.py | holtrop/simple-svn-browser | 62641493b95535bf0efb9855fec3dd496b37764e | [
"Zlib"
] | null | null | null | setup.py | holtrop/simple-svn-browser | 62641493b95535bf0efb9855fec3dd496b37764e | [
"Zlib"
] | null | null | null | setup.py | holtrop/simple-svn-browser | 62641493b95535bf0efb9855fec3dd496b37764e | [
"Zlib"
] | null | null | null | import sys
if sys.version_info < (3, 5):
print("Python 3.5 is required for this package")
sys.exit(1)
from setuptools import setup
setup(name = "simplesvnbrowser",
version = "0.0.1",
description = "A simple subversion repository browser application",
url = "https://github.com/holtrop/simple-... | 29.8 | 73 | 0.634228 | 70 | 596 | 5.342857 | 0.742857 | 0.010695 | 0.085562 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017391 | 0.228188 | 596 | 19 | 74 | 31.368421 | 0.795652 | 0 | 0 | 0 | 0 | 0 | 0.404362 | 0.036913 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.117647 | 0 | 0.117647 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ccece4c2f4cefc9d065c0f4184c45e006ab941e8 | 1,342 | py | Python | tests/test_common.py | tussedrotten/pylie | df34b820b9d9273bc9c4287e559e5d5837faf794 | [
"BSD-3-Clause"
] | 6 | 2020-09-25T07:38:00.000Z | 2022-03-11T09:09:22.000Z | tests/test_common.py | tussedrotten/pylie | df34b820b9d9273bc9c4287e559e5d5837faf794 | [
"BSD-3-Clause"
] | 1 | 2020-10-29T08:39:34.000Z | 2021-02-09T14:07:09.000Z | tests/test_common.py | tussedrotten/pylie | df34b820b9d9273bc9c4287e559e5d5837faf794 | [
"BSD-3-Clause"
] | 1 | 2020-11-21T12:33:44.000Z | 2020-11-21T12:33:44.000Z | from pylie.common import *
from pylie import SO3
def test_to_rotation_matrix_results_in_valid_rotation():
# Test 2x2 matrix.
A = np.random.rand(2, 2)
R = to_rotation_matrix(A)
np.testing.assert_almost_equal(R @ R.T, np.identity(2), 14)
np.testing.assert_almost_equal(np.linalg.det(R), 1, 14)
#... | 29.822222 | 63 | 0.688525 | 221 | 1,342 | 3.972851 | 0.280543 | 0.127563 | 0.11959 | 0.167426 | 0.452164 | 0.331435 | 0.300683 | 0.22779 | 0.22779 | 0.22779 | 0 | 0.03907 | 0.198957 | 1,342 | 44 | 64 | 30.5 | 0.777674 | 0.208644 | 0 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.304348 | 1 | 0.086957 | false | 0 | 0.086957 | 0 | 0.173913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ccf5cf766e01ecc826d0e351e27a11fbaff7d8c0 | 3,329 | py | Python | openhivenpy/types/attachment.py | FrostbyteBot/hiven.py | 1a2831cf4e0512cc8dd2b8f8f5d04b582158a21e | [
"MIT"
] | 9 | 2020-11-13T19:07:54.000Z | 2021-01-30T23:12:57.000Z | openhivenpy/types/attachment.py | FrostbyteBot/hiven.py | 1a2831cf4e0512cc8dd2b8f8f5d04b582158a21e | [
"MIT"
] | 46 | 2020-11-05T20:32:41.000Z | 2021-04-03T22:48:18.000Z | openhivenpy/types/attachment.py | FrostbyteBot/openhiven.py | 1a2831cf4e0512cc8dd2b8f8f5d04b582158a21e | [
"MIT"
] | 2 | 2020-12-19T14:27:07.000Z | 2021-01-29T10:52:33.000Z | """
Attachment File which implements the Hiven Attachment type and its methods
(endpoints)
---
Under MIT License
Copyright © 2020 - 2021 Luna Klatzer
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 Soft... | 34.677083 | 79 | 0.714329 | 454 | 3,329 | 5.127753 | 0.42511 | 0.037801 | 0.021907 | 0.014605 | 0.083333 | 0.062715 | 0.041237 | 0.041237 | 0 | 0 | 0 | 0.003069 | 0.216882 | 3,329 | 95 | 80 | 35.042105 | 0.889528 | 0.581256 | 0 | 0.090909 | 0 | 0 | 0.054502 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.151515 | false | 0 | 0.212121 | 0 | 0.575758 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ccf715d5c23093aaf3f22692cfa66ef6452f1f55 | 605 | py | Python | test/sample_robot_api.py | things-factory/vision-client-python | b76e1fb3e1f4537de7a5fa07330c137f37a9cc5d | [
"MIT"
] | null | null | null | test/sample_robot_api.py | things-factory/vision-client-python | b76e1fb3e1f4537de7a5fa07330c137f37a9cc5d | [
"MIT"
] | null | null | null | test/sample_robot_api.py | things-factory/vision-client-python | b76e1fb3e1f4537de7a5fa07330c137f37a9cc5d | [
"MIT"
] | null | null | null | import sys
import json
from random import choice, random
import time
from pyaidoop_graphql_client.api import Client
def main(argv):
workspaceName = argv[1]
client = Client("http://localhost:3000", "system")
client.signin("admin@hatiolab.com", "admin")
# client.robot_go_home(name='robot01')
# cl... | 24.2 | 93 | 0.661157 | 88 | 605 | 4.340909 | 0.511364 | 0.026178 | 0.073298 | 0.099476 | 0.188482 | 0.188482 | 0.188482 | 0 | 0 | 0 | 0 | 0.051383 | 0.163636 | 605 | 24 | 94 | 25.208333 | 0.703557 | 0.247934 | 0 | 0 | 0 | 0 | 0.186253 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.384615 | 0 | 0.461538 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ccfbb57a4333021e3f1feae704010ec46562da66 | 3,608 | py | Python | 2_Regression/Energy_balance_MIMO/Python_minimize/mimo_fit.py | APMonitor/arduino | f36e65a70dd7122d1829883899e40e56bf6c4279 | [
"Apache-2.0"
] | 71 | 2017-06-09T06:15:09.000Z | 2022-01-19T12:02:22.000Z | 2_Regression/Energy_balance_MIMO/Python_minimize/mimo_fit.py | rezabbasi/arduino | 4d9ea70688427e610228036c44560a11246930e1 | [
"Apache-2.0"
] | 5 | 2017-09-14T15:03:39.000Z | 2020-04-24T01:05:03.000Z | 2_Regression/Energy_balance_MIMO/Python_minimize/mimo_fit.py | rezabbasi/arduino | 4d9ea70688427e610228036c44560a11246930e1 | [
"Apache-2.0"
] | 49 | 2017-05-11T04:02:25.000Z | 2021-11-24T17:56:14.000Z | import numpy as np
import matplotlib.pyplot as plt
from scipy.integrate import odeint
from scipy.optimize import minimize
import pandas as pd
# generate data file from TCLab or get sample data file from:
# http://apmonitor.com/pdc/index.php/Main/ArduinoEstimation2
# Import data file
# Column 1 = time (t)
# ... | 26.335766 | 62 | 0.560421 | 600 | 3,608 | 3.356667 | 0.285 | 0.027805 | 0.031778 | 0.039722 | 0.184211 | 0.157398 | 0.120159 | 0.074479 | 0.060576 | 0.060576 | 0 | 0.091984 | 0.249723 | 3,608 | 136 | 63 | 26.529412 | 0.652013 | 0.216463 | 0 | 0.078652 | 1 | 0 | 0.098342 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033708 | false | 0 | 0.05618 | 0 | 0.123596 | 0.05618 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ccffcaa195c026f029865dcd87b3fe8d69e0f7e3 | 3,129 | py | Python | xquotient/test/historic/test_undefertask1to2.py | twisted/quotient | 95f2515219da99a77905852bc01deeb27e93466e | [
"MIT"
] | 6 | 2016-02-15T07:33:39.000Z | 2018-12-03T17:20:58.000Z | xquotient/test/historic/test_undefertask1to2.py | DalavanCloud/quotient | 95f2515219da99a77905852bc01deeb27e93466e | [
"MIT"
] | 1 | 2021-02-18T20:01:02.000Z | 2021-02-18T20:01:02.000Z | xquotient/test/historic/test_undefertask1to2.py | DalavanCloud/quotient | 95f2515219da99a77905852bc01deeb27e93466e | [
"MIT"
] | 4 | 2015-11-15T17:28:20.000Z | 2018-12-03T17:20:48.000Z | from zope.interface import implements
from epsilon.extime import Time
from axiom.iaxiom import IScheduler
from axiom.item import Item
from axiom.attributes import text
from axiom.test.historic.stubloader import StubbedTest
from xquotient.exmess import _UndeferTask, Message, INBOX_STATUS, CLEAN_STATUS
from xquotient.... | 33.645161 | 78 | 0.683925 | 372 | 3,129 | 5.688172 | 0.465054 | 0.053875 | 0.05104 | 0.056711 | 0.07656 | 0.047259 | 0.033081 | 0.033081 | 0 | 0 | 0 | 0.007592 | 0.24225 | 3,129 | 92 | 79 | 34.01087 | 0.884859 | 0.315436 | 0 | 0.04878 | 0 | 0 | 0.120103 | 0.028351 | 0 | 0 | 0 | 0 | 0.073171 | 1 | 0.170732 | false | 0.02439 | 0.243902 | 0 | 0.585366 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6905dd86176dcedc7d4f61bca47e2cde2c5fae84 | 8,048 | py | Python | pymorsegui.py | mmgrant73/pymorsecode | 594c341817598e86a7be766ca591a99cd8db0e94 | [
"MIT"
] | 1 | 2021-04-15T03:26:32.000Z | 2021-04-15T03:26:32.000Z | pymorsegui.py | mmgrant73/pymorsecode | 594c341817598e86a7be766ca591a99cd8db0e94 | [
"MIT"
] | null | null | null | pymorsegui.py | mmgrant73/pymorsecode | 594c341817598e86a7be766ca591a99cd8db0e94 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
#
# generated by wxGlade 0.9.4 on Sat Feb 1 19:14:54 2020
#
import wx
from pymorsecode import MorseCode
# begin wxGlade: dependencies
# end wxGlade
# begin wxGlade: extracode
# end wxGlade
class MyFrame(wx.Frame):
def __init__(self, *args, **kwds):
# begi... | 44.21978 | 146 | 0.650596 | 1,161 | 8,048 | 4.30491 | 0.173127 | 0.048019 | 0.038415 | 0.033013 | 0.416166 | 0.337735 | 0.168467 | 0.140456 | 0.093237 | 0.070028 | 0 | 0.020464 | 0.222788 | 8,048 | 181 | 147 | 44.464088 | 0.778577 | 0.071695 | 0 | 0.028986 | 1 | 0 | 0.124899 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.014493 | 0 | 0.123188 | 0.057971 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6911b43b591ee3e9e1fa26ab8ffa4f05986921b5 | 7,123 | py | Python | ai_challenge/agents/_ignore_Agent.py | village-people/flying-pig | c86b589aadb02dbfd42a917a388c2b8488ecd338 | [
"MIT"
] | 72 | 2017-05-22T18:22:58.000Z | 2019-03-11T22:49:00.000Z | ai_challenge/agents/_ignore_Agent.py | village-people/flying-pig | c86b589aadb02dbfd42a917a388c2b8488ecd338 | [
"MIT"
] | 1 | 2017-06-09T05:26:43.000Z | 2017-08-22T11:41:41.000Z | ai_challenge/agents/_ignore_Agent.py | village-people/flying-pig | c86b589aadb02dbfd42a917a388c2b8488ecd338 | [
"MIT"
] | 3 | 2017-05-25T08:49:27.000Z | 2019-09-09T18:41:54.000Z | import torch
from argparse import ArgumentParser, Namespace
import logging
import os
from collections import namedtuple
import random
import torch
Transition = namedtuple('Transition',
('state', 'action', 'next_state', 'reward', 'done'))
class AgentMemory(object):
def __init__(self, capaci... | 28.378486 | 80 | 0.579952 | 692 | 7,123 | 5.803468 | 0.234104 | 0.02739 | 0.026145 | 0.018675 | 0.174054 | 0.114293 | 0.064741 | 0.064741 | 0.064741 | 0.064741 | 0 | 0.002483 | 0.321494 | 7,123 | 250 | 81 | 28.492 | 0.828471 | 0.048294 | 0 | 0.187879 | 0 | 0 | 0.049829 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.175758 | false | 0.054545 | 0.042424 | 0.030303 | 0.30303 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
69153ffe65a563075cabcea48239e1f649f663fd | 320 | py | Python | setup.py | onidzelskyi/python_betbright_test | 5de60c10857829bc3d326558132fa512776e952d | [
"MIT"
] | null | null | null | setup.py | onidzelskyi/python_betbright_test | 5de60c10857829bc3d326558132fa512776e952d | [
"MIT"
] | null | null | null | setup.py | onidzelskyi/python_betbright_test | 5de60c10857829bc3d326558132fa512776e952d | [
"MIT"
] | null | null | null | from setuptools import setup
setup(name='betbright_test',
version='0.1',
description='Python product category classification kit',
url='',
author='Oleksii Nidzelskyi',
author_email='alexey.education@gmail.com',
license='MIT',
packages=['betbright_test'],
zip_safe=False)
| 26.666667 | 63 | 0.6625 | 35 | 320 | 5.942857 | 0.885714 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007905 | 0.209375 | 320 | 11 | 64 | 29.090909 | 0.814229 | 0 | 0 | 0 | 0 | 0 | 0.375 | 0.08125 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
691732087c532907538627537cd1a0c66892dfed | 2,182 | py | Python | example/multicut/performance/simple_experiments.py | abailoni/elf | e3b459b4dcc1d72a8dd3d38eabbf3b7183285372 | [
"MIT"
] | 23 | 2019-09-07T23:02:08.000Z | 2022-03-19T09:50:58.000Z | example/multicut/performance/simple_experiments.py | abailoni/elf | e3b459b4dcc1d72a8dd3d38eabbf3b7183285372 | [
"MIT"
] | 34 | 2019-08-07T11:54:01.000Z | 2022-03-29T09:50:54.000Z | example/multicut/performance/simple_experiments.py | abailoni/elf | e3b459b4dcc1d72a8dd3d38eabbf3b7183285372 | [
"MIT"
] | 12 | 2019-08-23T09:01:29.000Z | 2021-11-09T01:21:20.000Z | import argparse
import json
import os
import time
from elf.segmentation.multicut import get_multicut_solver, _to_objective
from elf.segmentation.utils import load_multicut_problem
def simple_performance_experiments(problem, solvers):
os.makedirs("problems", exist_ok=True)
path = f"./problems/{problem}"
s... | 34.634921 | 96 | 0.648029 | 255 | 2,182 | 5.317647 | 0.372549 | 0.044248 | 0.037611 | 0.051622 | 0.09882 | 0.09882 | 0.09882 | 0.09882 | 0.09882 | 0 | 0 | 0.003561 | 0.227773 | 2,182 | 62 | 97 | 35.193548 | 0.801187 | 0.095325 | 0 | 0 | 0 | 0 | 0.156425 | 0.012189 | 0 | 0 | 0 | 0.016129 | 0 | 1 | 0.043478 | false | 0 | 0.130435 | 0 | 0.195652 | 0.065217 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6925a6eef582f0d830aa78315162927b6a168d1b | 2,717 | py | Python | face_follow/src/follower.py | andrewtron3000/hacdc-ros-pkg | f3178ebc5a71889066db102e3b57beb0dcc1a204 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | face_follow/src/follower.py | andrewtron3000/hacdc-ros-pkg | f3178ebc5a71889066db102e3b57beb0dcc1a204 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | face_follow/src/follower.py | andrewtron3000/hacdc-ros-pkg | f3178ebc5a71889066db102e3b57beb0dcc1a204 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | #!/usr/bin/env python
#*********************************************************************
# Software License Agreement (BSD License)
#
# Copyright (c) 2011 andrewtron3000
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the ... | 45.283333 | 90 | 0.703717 | 369 | 2,717 | 5.108401 | 0.485095 | 0.023873 | 0.033952 | 0.040318 | 0.204775 | 0.12626 | 0.122016 | 0.122016 | 0.122016 | 0.122016 | 0 | 0.01738 | 0.174089 | 2,717 | 59 | 91 | 46.050847 | 0.822638 | 0.632315 | 0 | 0 | 0 | 0 | 0.059067 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.363636 | 0 | 0.409091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
69279b7254cd9d2ee23d0e66b83b60fdbe51cae2 | 4,359 | py | Python | fangyu.py | gaogaotiantian/tybuild | f97a1fc5e15c35dd887dbcd8a5018e424ee79e78 | [
"MIT"
] | null | null | null | fangyu.py | gaogaotiantian/tybuild | f97a1fc5e15c35dd887dbcd8a5018e424ee79e78 | [
"MIT"
] | null | null | null | fangyu.py | gaogaotiantian/tybuild | f97a1fc5e15c35dd887dbcd8a5018e424ee79e78 | [
"MIT"
] | null | null | null | # coding:utf-8
import matplotlib.pyplot as plt
import matplotlib as mpl
# Def
def GetDefRate(d):
if d/(3360.0+d) > 0.9:
return 0.9
return d/(3360.0+d)
def GetDamageRate(d):
return 1-GetDefRate(d)
def GetDefImp(currDef, prevDef, pofang):
return 1 - GetDamageRate(currDef*(1-pofang)) / GetDamageRat... | 34.054688 | 96 | 0.620096 | 669 | 4,359 | 3.919283 | 0.210762 | 0.05492 | 0.037757 | 0.018688 | 0.190694 | 0.160183 | 0.160183 | 0.160183 | 0.160183 | 0.116705 | 0 | 0.063036 | 0.224822 | 4,359 | 127 | 97 | 34.322835 | 0.712933 | 0.010553 | 0 | 0.056075 | 0 | 0 | 0.019981 | 0 | 0 | 0 | 0 | 0 | 0.009346 | 0 | null | null | 0 | 0.018692 | null | null | 0.074766 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
692850aadfd57c9c530354c065381240dc631282 | 759 | py | Python | portfolio_app/migrations/0005_auto_20210309_1606.py | ashraffaris42/faris-Personal-Portfolio | ea2a84cdefbefeb703037dd2eb80299ca24c42f4 | [
"BSD-3-Clause"
] | 2 | 2021-05-04T20:52:56.000Z | 2021-05-05T12:50:05.000Z | portfolio_app/migrations/0005_auto_20210309_1606.py | ashraffaris42/faris-Personal-Portfolio | ea2a84cdefbefeb703037dd2eb80299ca24c42f4 | [
"BSD-3-Clause"
] | null | null | null | portfolio_app/migrations/0005_auto_20210309_1606.py | ashraffaris42/faris-Personal-Portfolio | ea2a84cdefbefeb703037dd2eb80299ca24c42f4 | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 3.1.7 on 2021-03-09 16:06
from django.db import migrations, models
import djrichtextfield.models
class Migration(migrations.Migration):
dependencies = [
('portfolio_app', '0004_delete_service'),
]
operations = [
migrations.AddField(
model_name='project'... | 25.3 | 65 | 0.59025 | 70 | 759 | 6.285714 | 0.614286 | 0.143182 | 0.072727 | 0.090909 | 0.245455 | 0.245455 | 0 | 0 | 0 | 0 | 0 | 0.035782 | 0.300395 | 759 | 29 | 66 | 26.172414 | 0.792844 | 0.059289 | 0 | 0.478261 | 1 | 0 | 0.106742 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
692ec0bb7422b9bf134882c71709eab791047862 | 779 | py | Python | infinisdk/core/utils/environment.py | Infinidat/infinisdk | a5a3fbe1e6c649bca85b8a3fc3bd28fb820a90e4 | [
"BSD-3-Clause"
] | 5 | 2019-02-26T20:11:43.000Z | 2021-03-10T08:45:38.000Z | infinisdk/core/utils/environment.py | Infinidat/infinisdk | a5a3fbe1e6c649bca85b8a3fc3bd28fb820a90e4 | [
"BSD-3-Clause"
] | 11 | 2017-11-15T19:20:23.000Z | 2021-09-14T18:17:47.000Z | infinisdk/core/utils/environment.py | Infinidat/infinisdk | a5a3fbe1e6c649bca85b8a3fc3bd28fb820a90e4 | [
"BSD-3-Clause"
] | 2 | 2017-11-16T11:59:05.000Z | 2019-02-25T20:44:23.000Z | import os
import pkg_resources
from mitba import cached_function
@cached_function
def get_logged_in_username():
try:
import pwd
user_id = os.getuid()
os_info = pwd.getpwuid(user_id)
return os_info.pw_name
except (ImportError, KeyError):
# ImportError: For windows users... | 25.966667 | 94 | 0.703466 | 98 | 779 | 5.397959 | 0.520408 | 0.10586 | 0.096408 | 0.113422 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214377 | 779 | 29 | 95 | 26.862069 | 0.864379 | 0.156611 | 0 | 0.227273 | 0 | 0 | 0.047473 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.272727 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6939aa03ac383f4a97a326eec7719fca0c79b4b8 | 1,213 | py | Python | ingestion/testdir/testperf.py | jaysisodiya/relevare | b4e7b547b7372cee132e84bbd5d92cd69cdbdb63 | [
"Apache-2.0"
] | null | null | null | ingestion/testdir/testperf.py | jaysisodiya/relevare | b4e7b547b7372cee132e84bbd5d92cd69cdbdb63 | [
"Apache-2.0"
] | null | null | null | ingestion/testdir/testperf.py | jaysisodiya/relevare | b4e7b547b7372cee132e84bbd5d92cd69cdbdb63 | [
"Apache-2.0"
] | null | null | null | #
# GDELT data will be published to Kafka
# Topics will be created - one topic per country using the Alpha-2 country codes
#
from kafka import KafkaProducer
from datetime import datetime
import pickle
#
# Initialize the producer
#
brokerlist='ec2-54-186-208-110.us-west-2.compute.amazonaws.com:9092,ec2-52-11-172-126.u... | 34.657143 | 233 | 0.746908 | 160 | 1,213 | 5.64375 | 0.55 | 0.026578 | 0.031008 | 0.062016 | 0.149502 | 0.149502 | 0.149502 | 0.116279 | 0.116279 | 0 | 0 | 0.232092 | 0.136851 | 1,213 | 34 | 234 | 35.676471 | 0.630372 | 0.115416 | 0 | 0 | 0 | 0.1 | 0.413146 | 0.381221 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.15 | 0 | 0.25 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
693a26318273b86a08a21c3e6ee0d27d5cef1837 | 529 | py | Python | ope-backend/create_db.py | clauddio-silva/ope-1 | 8be8a10c0db3d2f17e8e90a594abdf5770d53fa3 | [
"CC0-1.0"
] | null | null | null | ope-backend/create_db.py | clauddio-silva/ope-1 | 8be8a10c0db3d2f17e8e90a594abdf5770d53fa3 | [
"CC0-1.0"
] | null | null | null | ope-backend/create_db.py | clauddio-silva/ope-1 | 8be8a10c0db3d2f17e8e90a594abdf5770d53fa3 | [
"CC0-1.0"
] | null | null | null | from src.infra.config import *
from src.infra.db_entities import *
from src.main.utils import hash_password
db_conn = DBConnectionHandler()
engine = db_conn.get_engine()
Base.metadata.create_all(engine)
with DBConnectionHandler() as db:
try:
new_user = Users(name='admin', role=1, email='admin@suzy.com', p... | 27.842105 | 103 | 0.688091 | 72 | 529 | 4.930556 | 0.583333 | 0.101408 | 0.067606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002342 | 0.192817 | 529 | 18 | 104 | 29.388889 | 0.82904 | 0 | 0 | 0 | 0 | 0 | 0.045369 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 0.1875 | 0 | 0.1875 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
69473144068a69e9d819b7ace65fa14ac4780508 | 2,629 | py | Python | litreview/apps/accounts/migrations/0001_initial.py | josayko/litreview | 7bbc08eb635897a763f3882f0f42c76b76a5f127 | [
"MIT"
] | null | null | null | litreview/apps/accounts/migrations/0001_initial.py | josayko/litreview | 7bbc08eb635897a763f3882f0f42c76b76a5f127 | [
"MIT"
] | null | null | null | litreview/apps/accounts/migrations/0001_initial.py | josayko/litreview | 7bbc08eb635897a763f3882f0f42c76b76a5f127 | [
"MIT"
] | null | null | null | # Generated by Django 4.0.1 on 2022-02-18 10:26
from django.conf import settings
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AU... | 43.098361 | 164 | 0.613922 | 271 | 2,629 | 5.797048 | 0.302583 | 0.040738 | 0.062381 | 0.098027 | 0.504774 | 0.452578 | 0.377467 | 0.377467 | 0.292171 | 0.227244 | 0 | 0.015816 | 0.254469 | 2,629 | 60 | 165 | 43.816667 | 0.785714 | 0.017117 | 0 | 0.415094 | 1 | 0 | 0.08598 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.075472 | 0 | 0.150943 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
695982e3be224fdcb410f0b1f9e5e2d7fef87d2d | 1,713 | py | Python | crawler/configs.py | debasishbai/Tender-Crawler | b721f197236bee4a69e0f403101a159af5924dda | [
"MIT"
] | null | null | null | crawler/configs.py | debasishbai/Tender-Crawler | b721f197236bee4a69e0f403101a159af5924dda | [
"MIT"
] | 1 | 2021-06-30T07:28:21.000Z | 2021-06-30T07:28:21.000Z | crawler/configs.py | debasishbai/Tender-Crawler | b721f197236bee4a69e0f403101a159af5924dda | [
"MIT"
] | null | null | null | go_to_tender_page = "Live Tenders"
search_bar = "#sr_buyer_chzn > a > span"
all_dept_names = "#sr_buyer_chzn > div > ul > li:nth-of-type(n+1)"
search_button = '#frm_sr > div.actionBtn > input[type="button"]:nth-child(1)'
type_name = '#sr_buyer_chzn > div > div > input[type="text"]'
scroll_down = "window.scrollTo(0, doc... | 50.382353 | 150 | 0.683596 | 251 | 1,713 | 4.533865 | 0.422311 | 0.077329 | 0.047452 | 0.024605 | 0.154657 | 0.11775 | 0.11775 | 0.057996 | 0 | 0 | 0 | 0.013605 | 0.141856 | 1,713 | 33 | 151 | 51.909091 | 0.760544 | 0 | 0 | 0 | 0 | 0.16129 | 0.719206 | 0.124927 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
695aa8899e70c364dd37a9eae8fc436359e8c4b2 | 1,849 | py | Python | users/forms.py | hrbhat/twissandra | e2c16eac29b3c77065555da269b7974898e9f80e | [
"Apache-2.0"
] | 308 | 2015-01-04T20:05:10.000Z | 2022-03-09T17:15:52.000Z | users/forms.py | hrbhat/twissandra | e2c16eac29b3c77065555da269b7974898e9f80e | [
"Apache-2.0"
] | 10 | 2016-01-02T20:29:03.000Z | 2020-06-05T16:45:20.000Z | users/forms.py | hrbhat/twissandra | e2c16eac29b3c77065555da269b7974898e9f80e | [
"Apache-2.0"
] | 109 | 2015-02-01T11:25:24.000Z | 2022-03-18T12:18:13.000Z | from django import forms
import cass
class LoginForm(forms.Form):
username = forms.CharField(max_length=30)
password = forms.CharField(widget=forms.PasswordInput(render_value=False))
def clean(self):
username = self.cleaned_data['username']
password = self.cleaned_data['password']
... | 35.557692 | 83 | 0.663602 | 209 | 1,849 | 5.746411 | 0.277512 | 0.109908 | 0.149875 | 0.076603 | 0.452123 | 0.412157 | 0.334721 | 0.334721 | 0.289759 | 0.199833 | 0 | 0.010722 | 0.243375 | 1,849 | 51 | 84 | 36.254902 | 0.847748 | 0 | 0 | 0.357143 | 0 | 0 | 0.118983 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.119048 | false | 0.357143 | 0.047619 | 0.02381 | 0.452381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
695c9b1e7ed238ec8d68378d50cb9434b9b47feb | 2,240 | py | Python | design-pattern/factory_method.py | twotwo/tools-python | b9e7a97e58fb0a3f3fb5e8b674e64a997669c2c4 | [
"MIT"
] | null | null | null | design-pattern/factory_method.py | twotwo/tools-python | b9e7a97e58fb0a3f3fb5e8b674e64a997669c2c4 | [
"MIT"
] | null | null | null | design-pattern/factory_method.py | twotwo/tools-python | b9e7a97e58fb0a3f3fb5e8b674e64a997669c2c4 | [
"MIT"
] | 1 | 2016-10-21T07:51:24.000Z | 2016-10-21T07:51:24.000Z | from abc import ABC, abstractmethod
class Pizza(ABC):
@abstractmethod
def prepare(self):
pass
def bake(self):
print("baking pizza for 12min in 400 degrees..")
def cut(self):
print("cutting pizza in pieces")
def box(self):
print("putting pizza in box")
class NY... | 23.092784 | 84 | 0.638839 | 240 | 2,240 | 5.945833 | 0.308333 | 0.044149 | 0.049054 | 0.053259 | 0.313245 | 0.313245 | 0.288718 | 0.288718 | 0.241065 | 0.176594 | 0 | 0.003036 | 0.264732 | 2,240 | 96 | 85 | 23.333333 | 0.863388 | 0.098661 | 0 | 0.372881 | 0 | 0 | 0.187686 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.20339 | false | 0.033898 | 0.016949 | 0 | 0.389831 | 0.169492 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
695d8b7488bd393e88af11f9dfa6cf05fcd29803 | 2,677 | py | Python | ics2csv.py | wikier/apachecon-tac-scripts | 8b58eb910990910ed113996c2662e2601bee0176 | [
"Apache-2.0"
] | null | null | null | ics2csv.py | wikier/apachecon-tac-scripts | 8b58eb910990910ed113996c2662e2601bee0176 | [
"Apache-2.0"
] | null | null | null | ics2csv.py | wikier/apachecon-tac-scripts | 8b58eb910990910ed113996c2662e2601bee0176 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf8 -*-
# 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 i... | 30.078652 | 109 | 0.637281 | 356 | 2,677 | 4.707865 | 0.505618 | 0.0358 | 0.0179 | 0.019093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007866 | 0.240194 | 2,677 | 88 | 110 | 30.420455 | 0.816126 | 0.27232 | 0 | 0 | 0 | 0 | 0.160293 | 0.011524 | 0 | 0 | 0 | 0.011364 | 0 | 1 | 0.019231 | false | 0 | 0.173077 | 0 | 0.192308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
695eb2e49aac8f15bf80012509cf307d5b4f61f7 | 5,434 | py | Python | src/main/resources/basic.py | feng345fengcool/hellojava | efb1db4997d5e35572d69221b955e89f4ad84301 | [
"Apache-2.0"
] | null | null | null | src/main/resources/basic.py | feng345fengcool/hellojava | efb1db4997d5e35572d69221b955e89f4ad84301 | [
"Apache-2.0"
] | null | null | null | src/main/resources/basic.py | feng345fengcool/hellojava | efb1db4997d5e35572d69221b955e89f4ad84301 | [
"Apache-2.0"
] | null | null | null | __author__ = 'chenshuai'
cast = ["Cleese", "Plain", "Jones", "Idle"]
print cast
print len(cast)
print cast[1]
cast.append("Gilliam")
print cast
cast.pop()
print cast
cast.extend(["Gilliam", "Chapman"])
print cast
cast.remove("Chapman")
print cast
cast.insert(0, "Chapman")
print cast
movies = ["The Holy Grail", "The L... | 24.367713 | 99 | 0.602503 | 760 | 5,434 | 4.214474 | 0.290789 | 0.019669 | 0.021855 | 0.026538 | 0.198876 | 0.198876 | 0.186388 | 0.110521 | 0.093038 | 0.081174 | 0 | 0.013637 | 0.257821 | 5,434 | 222 | 100 | 24.477477 | 0.78056 | 0.110232 | 0 | 0.27972 | 0 | 0 | 0.113786 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.013986 | 0.013986 | null | null | 0.272727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69606e8d600007b6ed1a1fe06f495e08cc77f964 | 994 | py | Python | Spell Compendium/scr/Spell1108 - Dirge.py | Sagenlicht/ToEE_Mods | a4b07f300df6067f834e09fcbc4c788f1f4e417b | [
"MIT"
] | 1 | 2021-04-26T08:03:56.000Z | 2021-04-26T08:03:56.000Z | Spell Compendium/scr/Spell1108 - Dirge.py | Sagenlicht/ToEE_Mods | a4b07f300df6067f834e09fcbc4c788f1f4e417b | [
"MIT"
] | 2 | 2021-06-11T05:55:01.000Z | 2021-08-03T23:41:02.000Z | Spell Compendium/scr/Spell1108 - Dirge.py | Sagenlicht/ToEE_Mods | a4b07f300df6067f834e09fcbc4c788f1f4e417b | [
"MIT"
] | 1 | 2021-05-17T15:37:58.000Z | 2021-05-17T15:37:58.000Z | from toee import *
def OnBeginSpellCast(spell):
print "Dirge OnBeginSpellCast"
print "spell.target_list=", spell.target_list
print "spell.caster=", spell.caster, " caster.level= ", spell.caster_level
def OnSpellEffect(spell):
print "Dirge OnSpellEffect"
targetsToRemove = []
spell.duration... | 30.121212 | 87 | 0.740443 | 116 | 994 | 6.172414 | 0.413793 | 0.092179 | 0.104749 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005995 | 0.160966 | 994 | 33 | 88 | 30.121212 | 0.852518 | 0.069417 | 0 | 0 | 0 | 0 | 0.144252 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.047619 | null | null | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6961424e888d8e63d731e6c1e71ebfa8b2d27d7f | 468 | py | Python | OMIEData/Downloaders/marginal_price_downloader.py | acruzgarcia/OMIEData | e4f8d8b8d7b5a8351a65c32e86f1a798f968cc6c | [
"MIT"
] | 9 | 2021-02-14T19:47:18.000Z | 2022-03-25T14:03:04.000Z | OMIEData/Downloaders/marginal_price_downloader.py | acruzgarcia/OMIEData | e4f8d8b8d7b5a8351a65c32e86f1a798f968cc6c | [
"MIT"
] | 2 | 2022-03-09T15:45:05.000Z | 2022-03-25T11:02:46.000Z | OMIEData/Downloaders/marginal_price_downloader.py | acruzgarcia/OMIEData | e4f8d8b8d7b5a8351a65c32e86f1a798f968cc6c | [
"MIT"
] | null | null | null |
from OMIEData.Downloaders.general_omie_downloader import GeneralOMIEDownloader
class MarginalPriceDownloader(GeneralOMIEDownloader):
url_year = 'AGNO_YYYY'
url_month = '/MES_MM/TXT/'
url_name = 'INT_PBC_EV_H_1_DD_MM_YYYY_DD_MM_YYYY.TXT'
output_mask = 'PMD_YYYYMMDD.txt'
def __init__(self):
... | 29.25 | 89 | 0.762821 | 63 | 468 | 5.142857 | 0.52381 | 0.08642 | 0.049383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007576 | 0.153846 | 468 | 15 | 90 | 31.2 | 0.810606 | 0 | 0 | 0 | 0 | 0 | 0.164882 | 0.085653 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6962fbbf3e083926d0de2767052362c19acba0b1 | 5,556 | py | Python | 054-asong/code.py | Life4gal/adworld.xctf-REVERSE | 5e552de6cf1f5fccdcba40d26ecf7060f5e782da | [
"MIT"
] | 14 | 2020-09-01T03:43:48.000Z | 2021-09-10T15:43:33.000Z | 054-asong/code.py | Life4gal/adworld.xctf-REVERSE | 5e552de6cf1f5fccdcba40d26ecf7060f5e782da | [
"MIT"
] | null | null | null | 054-asong/code.py | Life4gal/adworld.xctf-REVERSE | 5e552de6cf1f5fccdcba40d26ecf7060f5e782da | [
"MIT"
] | 3 | 2021-03-04T12:22:46.000Z | 2021-07-30T03:25:44.000Z | from struct import unpack
from os.path import getsize
# 第一步 读取 out 文件的 二进制 内容
def un_sub_400CC0() -> tuple:
"""
:return: 返回一个元祖,内容是从 out 文件中读取的内容
"""
# 读取 out 文件
outFilePath = "./out"
outLength = getsize(outFilePath)
with open(outFilePath, 'rb') as outFile:
# B = unsigned char
... | 28.639175 | 95 | 0.415767 | 670 | 5,556 | 3.365672 | 0.359701 | 0.053215 | 0.031042 | 0.023947 | 0.008869 | 0 | 0 | 0 | 0 | 0 | 0 | 0.203368 | 0.433585 | 5,556 | 193 | 96 | 28.787565 | 0.513187 | 0.194384 | 0 | 0.041096 | 0 | 0 | 0.027479 | 0.018567 | 0 | 0 | 0.059413 | 0 | 0 | 1 | 0.082192 | false | 0 | 0.027397 | 0 | 0.178082 | 0.013699 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69652dfb803516a28321ac437986a8a9c6bc0aa9 | 1,345 | py | Python | textblob.py | usmanhaider1995/TextBlob | d609fe58b1e581bc8055d61bbefc7d20ef5ce388 | [
"BSD-3-Clause"
] | null | null | null | textblob.py | usmanhaider1995/TextBlob | d609fe58b1e581bc8055d61bbefc7d20ef5ce388 | [
"BSD-3-Clause"
] | null | null | null | textblob.py | usmanhaider1995/TextBlob | d609fe58b1e581bc8055d61bbefc7d20ef5ce388 | [
"BSD-3-Clause"
] | null | null | null | from textblob import TextBlob
from textblob import Word
import nltk
nltk.download('punkt')
nltk.download('wordnet')
#getting correct sentences
words = ['Machin','Learnin','corect']
corrected_words = []
for i in words:
corrected_words.append(TextBlob(i))
print('worng words :', words)
print('Corrected words :')
for... | 23.596491 | 97 | 0.719703 | 176 | 1,345 | 5.482955 | 0.409091 | 0.058031 | 0.02487 | 0.037306 | 0.194819 | 0.153368 | 0.153368 | 0.153368 | 0.153368 | 0.153368 | 0 | 0.002676 | 0.166543 | 1,345 | 56 | 98 | 24.017857 | 0.858162 | 0.203717 | 0 | 0 | 0 | 0 | 0.311848 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.096774 | 0 | 0.096774 | 0.419355 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
696d1b5afd422299951b5f3ee0a8a3483cf6d75d | 2,449 | py | Python | ansible/plugins/connection/multi_passwd_ssh.py | shubav/sonic-mgmt | 0ff71b907a55489bb4ed7d17b1682380fd459bf2 | [
"Apache-2.0"
] | 132 | 2016-10-19T12:34:44.000Z | 2022-03-16T09:00:39.000Z | ansible/plugins/connection/multi_passwd_ssh.py | shubav/sonic-mgmt | 0ff71b907a55489bb4ed7d17b1682380fd459bf2 | [
"Apache-2.0"
] | 3,152 | 2016-09-21T23:05:58.000Z | 2022-03-31T23:29:08.000Z | ansible/plugins/connection/multi_passwd_ssh.py | shubav/sonic-mgmt | 0ff71b907a55489bb4ed7d17b1682380fd459bf2 | [
"Apache-2.0"
] | 563 | 2016-09-20T01:00:15.000Z | 2022-03-31T22:43:54.000Z | import imp
import os
from functools import wraps
from ansible.errors import AnsibleAuthenticationFailure
from ansible.plugins import connection
# HACK: workaround to import the SSH connection plugin
_ssh_mod = os.path.join(os.path.dirname(connection.__file__), "ssh.py")
_ssh = imp.load_source("_ssh", _ssh_mod)
# Us... | 34.985714 | 113 | 0.660269 | 281 | 2,449 | 5.548043 | 0.391459 | 0.038486 | 0.03592 | 0.044259 | 0.109686 | 0.050032 | 0.050032 | 0 | 0 | 0 | 0 | 0.000551 | 0.258473 | 2,449 | 69 | 114 | 35.492754 | 0.85793 | 0.218865 | 0 | 0.044444 | 0 | 0 | 0.173383 | 0.012195 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088889 | false | 0.466667 | 0.111111 | 0.044444 | 0.311111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
15cdcd4087b753790bc8fb71c6e5d7a167674399 | 1,500 | py | Python | CourseOnline/MainProject/forms.py | smygt/DjangoSchoolSystem. | 6ddbef118ed7a2bb77192f96fc888a36ad4831ed | [
"MIT"
] | null | null | null | CourseOnline/MainProject/forms.py | smygt/DjangoSchoolSystem. | 6ddbef118ed7a2bb77192f96fc888a36ad4831ed | [
"MIT"
] | null | null | null | CourseOnline/MainProject/forms.py | smygt/DjangoSchoolSystem. | 6ddbef118ed7a2bb77192f96fc888a36ad4831ed | [
"MIT"
] | null | null | null | from django import forms
from .models import Announcement
# from .models import Role
from .models import Assignment
from .models import CourseMaterial
from .models import Grade
from .models import StudentUploadFile
from .models import Syllabus
from .models import Assistant
from django.forms import ClearableFileInput
#... | 22.38806 | 76 | 0.685333 | 155 | 1,500 | 6.587097 | 0.290323 | 0.107738 | 0.17238 | 0.112635 | 0.182174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.218667 | 1,500 | 67 | 77 | 22.38806 | 0.87116 | 0.152667 | 0 | 0.263158 | 0 | 0 | 0.092637 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.026316 | 0.236842 | 0 | 0.631579 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
15dd1eeb2fac5589a59d8aeda6e5e6d37752563e | 2,369 | py | Python | foundation/correspondence/views/letter.py | pilnujemy/foundation-manager | 1f1d6afcbb408c87a171bcbe3f9e58570eb478b6 | [
"BSD-3-Clause"
] | 1 | 2016-01-04T06:30:24.000Z | 2016-01-04T06:30:24.000Z | foundation/correspondence/views/letter.py | pilnujemy/foundation-manager | 1f1d6afcbb408c87a171bcbe3f9e58570eb478b6 | [
"BSD-3-Clause"
] | 36 | 2015-11-27T14:17:34.000Z | 2016-07-14T10:23:52.000Z | foundation/correspondence/views/letter.py | pilnujemy/foundation-manager | 1f1d6afcbb408c87a171bcbe3f9e58570eb478b6 | [
"BSD-3-Clause"
] | 1 | 2016-05-14T01:11:28.000Z | 2016-05-14T01:11:28.000Z | from django.views.generic import DeleteView, DetailView, UpdateView, CreateView
from django.forms.models import BaseInlineFormSet
from django.forms.models import inlineformset_factory
from braces.views import LoginRequiredMixin, UserFormKwargsMixin, SelectRelatedMixin
from ..models import Letter, Attachment
from ..form... | 34.333333 | 95 | 0.765724 | 217 | 2,369 | 8.202765 | 0.37788 | 0.02809 | 0.016854 | 0.023596 | 0.161798 | 0.131461 | 0.131461 | 0.131461 | 0.082022 | 0.082022 | 0 | 0 | 0.165893 | 2,369 | 68 | 96 | 34.838235 | 0.90081 | 0 | 0 | 0.183673 | 0 | 0 | 0.064162 | 0.026171 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061224 | false | 0 | 0.244898 | 0.040816 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
15e04aa4840a7e7977d248d10cc55f54658702cd | 753 | py | Python | examples/Genius/Python/GeniusCancel/GeniusCancel/GeniusCancel.py | sfmwright/developer-docs | 160c7c9d8b1f75964ed2615373516361564cac82 | [
"Apache-2.0"
] | 4 | 2019-08-20T03:06:43.000Z | 2021-11-09T18:18:31.000Z | examples/Genius/Python/GeniusCancel/GeniusCancel/GeniusCancel.py | sfmwright/developer-docs | 160c7c9d8b1f75964ed2615373516361564cac82 | [
"Apache-2.0"
] | 1 | 2020-01-28T11:26:32.000Z | 2020-03-09T11:06:26.000Z | examples/Genius/Python/GeniusCancel/GeniusCancel/GeniusCancel.py | sfmwright/developer-docs | 160c7c9d8b1f75964ed2615373516361564cac82 | [
"Apache-2.0"
] | 8 | 2019-04-20T00:16:26.000Z | 2020-12-29T20:48:14.000Z | import urllib3
import lxml.etree as etree
import lxml.objectify as objectify
# Declare IP Address
ip_address = "192.168.0.123"
# Generate XML and XSD Validation
genius_schema = etree.XMLSchema(file='Genius.xsd')
xml_parser = objectify.makeparser(schema=genius_schema)
# Send Status Request
genius_comm = urllib3.PoolMan... | 39.631579 | 82 | 0.802125 | 108 | 753 | 5.407407 | 0.5 | 0.119863 | 0.092466 | 0.065068 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024963 | 0.095618 | 753 | 19 | 83 | 39.631579 | 0.832599 | 0.148738 | 0 | 0 | 1 | 0 | 0.202512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.230769 | 0 | 0.230769 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
15e0c5cedcaca764ffdaedc7f69b8b05a55711fa | 6,270 | py | Python | editNames.py | harmsm/phylo_tools | 470873a6decd8c9ca6f66308eeb53f7f6627115b | [
"Unlicense"
] | null | null | null | editNames.py | harmsm/phylo_tools | 470873a6decd8c9ca6f66308eeb53f7f6627115b | [
"Unlicense"
] | 1 | 2015-07-22T15:53:11.000Z | 2015-07-22T16:49:54.000Z | editNames.py | harmsm/phylo_tools | 470873a6decd8c9ca6f66308eeb53f7f6627115b | [
"Unlicense"
] | 3 | 2015-07-01T22:39:55.000Z | 2019-08-13T21:23:20.000Z | #!/usr/bin/env python
__description__ =\
"""
editNames.py
Goes through a file looking for a set of strings, replacing each one with a
specific counterpart. The strings are defined in a delimited text file
with columns naemd "key" and "value".
"""
__author__ = "Michael J. Harms"
__date__ = "091205"
__usage__ = "editT... | 32.319588 | 82 | 0.612919 | 859 | 6,270 | 4.32014 | 0.240978 | 0.008084 | 0.019402 | 0.018593 | 0.141202 | 0.113447 | 0.113447 | 0.113447 | 0.113447 | 0.071409 | 0 | 0.004217 | 0.28134 | 6,270 | 193 | 83 | 32.487047 | 0.819352 | 0.080064 | 0 | 0.189189 | 0 | 0 | 0.185071 | 0.006169 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.009009 | 0.009009 | null | null | 0.009009 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
15e6149aa17b64d559de3c4f55ed8ff3fa679352 | 666 | py | Python | postgresqleu/confsponsor/migrations/0008_class_params_json.py | bradfordboyle/pgeu-system | bbe70e7a94092c10f11a0f74fda23079532bb018 | [
"MIT"
] | 11 | 2020-08-20T11:16:02.000Z | 2022-03-12T23:25:04.000Z | postgresqleu/confsponsor/migrations/0008_class_params_json.py | bradfordboyle/pgeu-system | bbe70e7a94092c10f11a0f74fda23079532bb018 | [
"MIT"
] | 71 | 2019-11-18T10:11:22.000Z | 2022-03-27T16:12:57.000Z | postgresqleu/confsponsor/migrations/0008_class_params_json.py | bradfordboyle/pgeu-system | bbe70e7a94092c10f11a0f74fda23079532bb018 | [
"MIT"
] | 18 | 2019-11-18T09:56:31.000Z | 2022-01-08T03:16:43.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.10 on 2018-06-26 20:22
from __future__ import unicode_literals
import django.contrib.postgres.fields.jsonb
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('confsponsor', '0007_contract_per_conference'),
]
... | 28.956522 | 119 | 0.686186 | 70 | 666 | 6.342857 | 0.685714 | 0.101351 | 0.094595 | 0.121622 | 0.144144 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041431 | 0.202703 | 666 | 22 | 120 | 30.272727 | 0.794727 | 0.103604 | 0 | 0 | 1 | 0 | 0.272727 | 0.132997 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
15e96ef0984aad80cae6e556037214dc416821d1 | 9,077 | py | Python | hack/make-rules/generate-notice.py | dingfeng/galaxykube | f5ea5cf40c957358e2bc5b14eabc9dea2ec93ad2 | [
"Apache-2.0"
] | 29 | 2021-10-16T06:01:53.000Z | 2022-03-31T02:37:30.000Z | hack/make-rules/generate-notice.py | dingfeng/galaxykube | f5ea5cf40c957358e2bc5b14eabc9dea2ec93ad2 | [
"Apache-2.0"
] | null | null | null | hack/make-rules/generate-notice.py | dingfeng/galaxykube | f5ea5cf40c957358e2bc5b14eabc9dea2ec93ad2 | [
"Apache-2.0"
] | 11 | 2021-10-18T02:26:32.000Z | 2022-01-11T12:06:03.000Z | #!/usr/bin/env python3
# Copyright 2021 Alibaba Group Holding Limited.
#
# 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... | 46.311224 | 755 | 0.736036 | 1,273 | 9,077 | 5.142969 | 0.235664 | 0.025661 | 0.024591 | 0.021078 | 0.502826 | 0.455629 | 0.395296 | 0.367497 | 0.353444 | 0.342752 | 0 | 0.005091 | 0.199295 | 9,077 | 195 | 756 | 46.548718 | 0.895707 | 0.077449 | 0 | 0.138686 | 0 | 0.036496 | 0.606989 | 0.005146 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043796 | false | 0 | 0.036496 | 0.007299 | 0.189781 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
15f328ce83cf7262e3a2711b251f951f5f5aef7e | 1,542 | py | Python | src/hydratk/core/eventhandler.py | hydratk/hydratk | 54f64df2a68f49ba4ce564bf102824cc33dbe6c8 | [
"BSD-3-Clause"
] | null | null | null | src/hydratk/core/eventhandler.py | hydratk/hydratk | 54f64df2a68f49ba4ce564bf102824cc33dbe6c8 | [
"BSD-3-Clause"
] | null | null | null | src/hydratk/core/eventhandler.py | hydratk/hydratk | 54f64df2a68f49ba4ce564bf102824cc33dbe6c8 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""HydraTK core event handling implementation class
.. module:: core.eventhandler
:platform: Unix
:synopsis: HydraTK core event handling implementation class
.. moduleauthor:: Petr Czaderna <pc@hydratk.org>
"""
from hydratk.core import hsignal
class EventHandler(object):
"""Class ... | 27.052632 | 66 | 0.662776 | 204 | 1,542 | 4.681373 | 0.357843 | 0.125654 | 0.117277 | 0.08377 | 0.381152 | 0.259686 | 0.136126 | 0.090052 | 0.090052 | 0.090052 | 0 | 0.003306 | 0.215305 | 1,542 | 56 | 67 | 27.535714 | 0.78595 | 0.166667 | 0 | 0.133333 | 0 | 0 | 0.039308 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.033333 | 0 | 0.466667 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
15f34bffaf876f6f6a2e7f2b53d0bff13ac885d0 | 13,660 | py | Python | charon/saver.py | Galithil/charon | 7b11780b8275d775c467e7ebd4a99a9d6bb77ee4 | [
"MIT"
] | 3 | 2015-11-18T06:20:56.000Z | 2017-09-20T14:44:45.000Z | charon/saver.py | Galithil/charon | 7b11780b8275d775c467e7ebd4a99a9d6bb77ee4 | [
"MIT"
] | 25 | 2015-02-20T15:13:27.000Z | 2018-11-06T14:17:17.000Z | charon/saver.py | Galithil/charon | 7b11780b8275d775c467e7ebd4a99a9d6bb77ee4 | [
"MIT"
] | 8 | 2015-05-22T14:16:05.000Z | 2022-03-22T07:55:25.000Z | " Charon: Context handler for saving an entity. "
import logging
import couchdb
from . import constants
from . import utils
class Field(object):
"Specification of a data field for an entity."
type ='text'
def __init__(self, key, title=None, description=None,
mandatory=False, editable... | 35.572917 | 82 | 0.544583 | 1,546 | 13,660 | 4.721216 | 0.140362 | 0.034525 | 0.015071 | 0.013427 | 0.477463 | 0.400603 | 0.380463 | 0.324565 | 0.305384 | 0.251541 | 0 | 0.003072 | 0.356662 | 13,660 | 383 | 83 | 35.665796 | 0.827492 | 0.00776 | 0 | 0.401929 | 0 | 0 | 0.150864 | 0.008676 | 0 | 0 | 0 | 0 | 0.009646 | 0 | null | null | 0.012862 | 0.012862 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.