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
9b42a0997f86ee1d66c3b3d99b899ee1b3d09abb
12,357
py
Python
ledtest/ledtest.py
JohnOmernik/pimeup
c68f84d699f67af71bb5561eb6c5885ccd8b4ac8
[ "Apache-2.0" ]
1
2017-10-21T16:52:21.000Z
2017-10-21T16:52:21.000Z
ledtest/ledtest.py
JohnOmernik/pimeup
c68f84d699f67af71bb5561eb6c5885ccd8b4ac8
[ "Apache-2.0" ]
null
null
null
ledtest/ledtest.py
JohnOmernik/pimeup
c68f84d699f67af71bb5561eb6c5885ccd8b4ac8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import cwiid import sys import gevent import time import json import datetime import atexit from collections import OrderedDict import random from dotstar import Adafruit_DotStar import socket WHOAMI = socket.gethostname() mesg = False rpt_mode = 0 wiimote = None connected = False turbo = Fa...
28.020408
182
0.561382
1,496
12,357
4.56484
0.208556
0.021087
0.022551
0.022258
0.239567
0.156392
0.129448
0.122712
0.114365
0.114365
0
0.045399
0.335114
12,357
440
183
28.084091
0.785784
0.142672
0
0.380503
0
0
0.031552
0
0
0
0.014001
0
0
0
null
null
0.003145
0.034591
null
null
0.044025
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
9b4a9274d51bacf038e0345c87b840a2ac7287e8
984
py
Python
api/models.py
Azbesciak/SmartEnegry
87ed5aa7e291940855828c868251c4f15183a5a0
[ "MIT" ]
null
null
null
api/models.py
Azbesciak/SmartEnegry
87ed5aa7e291940855828c868251c4f15183a5a0
[ "MIT" ]
null
null
null
api/models.py
Azbesciak/SmartEnegry
87ed5aa7e291940855828c868251c4f15183a5a0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models class Device(models.Model): description = models.CharField(max_length=200, null=True, blank=True) state = models.BooleanField(default=False) def __str__(self): return "id=" + str(self.id) + ", des=" + se...
28.941176
73
0.627033
115
984
5.173913
0.530435
0.070588
0.033613
0.053782
0
0
0
0
0
0
0
0.009576
0.257114
984
33
74
29.818182
0.804378
0.021341
0
0.083333
0
0
0.040583
0
0
0
0
0
0
1
0.125
false
0
0.083333
0.083333
0.666667
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
9b4b939306b2dfd4d176f1f20907ad6a39206ab6
4,463
py
Python
djangoserver/server/logic/city/city.py
simonneuville/runamic_server
661eb4c11ccfab4b2e669e688e123a2077c564d4
[ "MIT" ]
1
2021-04-17T06:25:16.000Z
2021-04-17T06:25:16.000Z
djangoserver/server/logic/city/city.py
simonneuville/runamic_server
661eb4c11ccfab4b2e669e688e123a2077c564d4
[ "MIT" ]
null
null
null
djangoserver/server/logic/city/city.py
simonneuville/runamic_server
661eb4c11ccfab4b2e669e688e123a2077c564d4
[ "MIT" ]
2
2020-06-11T23:48:03.000Z
2020-06-17T23:09:53.000Z
from server.logic.graph.graph import Graph from server.config import HIGHWAY_WHITELIST import json from collections import namedtuple from server.logic.graph.util import distance from server.logic.database.edge_database import EdgeDatabase DATABASE = EdgeDatabase() class Coordinate(namedtuple('node', 'lat lon')): ...
40.944954
126
0.533498
514
4,463
4.535019
0.262646
0.006006
0.006435
0.005148
0.181896
0.181896
0.138138
0.138138
0.138138
0.113256
0
0.008205
0.344611
4,463
108
127
41.324074
0.788718
0.003809
0
0.243902
0
0
0.082108
0
0
0
0
0
0
0
null
null
0.02439
0.073171
null
null
0.02439
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
9b506cc602a8e526d9d8a53e27ee3fd6efa0f174
798
gyp
Python
node_extension/node-gyp-binding.gyp
freesample/hopper
9aaec07a3b6131291792ed157a523108613e9ef1
[ "MIT" ]
null
null
null
node_extension/node-gyp-binding.gyp
freesample/hopper
9aaec07a3b6131291792ed157a523108613e9ef1
[ "MIT" ]
null
null
null
node_extension/node-gyp-binding.gyp
freesample/hopper
9aaec07a3b6131291792ed157a523108613e9ef1
[ "MIT" ]
null
null
null
{ "targets": [ { "target_name": "samplerproxy", "sources": [ "src/node_sampler_proxy.cpp" ], "include_dirs": [ # Path to hopper root ], "libraries": [ # Path to hopper framework library # Path to hopper histogram library ], "cflags" : [ "-std=c++11...
25.741935
72
0.422306
70
798
4.657143
0.571429
0.06135
0.092025
0.07362
0.09816
0
0
0
0
0
0
0.025591
0.363409
798
30
73
26.6
0.616142
0.106516
0
0.185185
0
0
0.438646
0.070522
0
0
0
0
0
1
0
true
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
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
9b50a4d7fcc2c05b1870b220e85b5e793b512a50
352
py
Python
app/__init__.py
ppmadalin/praetorian-token-exemple
24c19702a7cdd519a912edce4b347f34a8e6a901
[ "MIT" ]
1
2020-03-17T23:07:17.000Z
2020-03-17T23:07:17.000Z
app/__init__.py
ppmadalin/praetorian-token-exemple
24c19702a7cdd519a912edce4b347f34a8e6a901
[ "MIT" ]
null
null
null
app/__init__.py
ppmadalin/praetorian-token-exemple
24c19702a7cdd519a912edce4b347f34a8e6a901
[ "MIT" ]
null
null
null
# coding: utf-8 # app/__init__.py from flask import Flask from flask_praetorian import Praetorian from app.model import User guard = Praetorian() def create_app(): app = Flask(__name__) app.config.from_object("config.Config") guard.init_app(app, User) from app.routes import api app.register...
14.666667
43
0.715909
50
352
4.78
0.46
0.075314
0
0
0
0
0
0
0
0
0
0.003534
0.196023
352
23
44
15.304348
0.840989
0.082386
0
0
0
0
0.040625
0
0
0
0
0
0
1
0.090909
false
0
0.363636
0
0.545455
0.090909
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
9b524ed89f2eb42f306a3ffaa700bad9befd80cb
570
py
Python
djangoql/views.py
plarionov/djangoql
15897737d1f84e9b01262c445d95b2b9581ca609
[ "MIT" ]
null
null
null
djangoql/views.py
plarionov/djangoql
15897737d1f84e9b01262c445d95b2b9581ca609
[ "MIT" ]
null
null
null
djangoql/views.py
plarionov/djangoql
15897737d1f84e9b01262c445d95b2b9581ca609
[ "MIT" ]
null
null
null
import json from django.apps import apps from django.contrib.auth.decorators import login_required from django.http import HttpResponse from djangoql.schema import NonRecursiveDjangoQLSchema @login_required def get_model_schema(request, model_path): """ Returns json with model schema by given path """ ...
24.782609
60
0.714035
68
570
5.823529
0.544118
0.075758
0
0
0
0
0
0
0
0
0
0.004444
0.210526
570
22
61
25.909091
0.875556
0.077193
0
0
0
0
0.060784
0
0
0
0
0
0
1
0.066667
false
0
0.333333
0
0.466667
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
9b5268d92b400dae5f55cfe7e76f9ee066658638
340
py
Python
Leetcode/657. Robot Return to Origin/solution1.py
asanoviskhak/Outtalent
c500e8ad498f76d57eb87a9776a04af7bdda913d
[ "MIT" ]
51
2020-07-12T21:27:47.000Z
2022-02-11T19:25:36.000Z
Leetcode/657. Robot Return to Origin/solution1.py
CrazySquirrel/Outtalent
8a10b23335d8e9f080e5c39715b38bcc2916ff00
[ "MIT" ]
null
null
null
Leetcode/657. Robot Return to Origin/solution1.py
CrazySquirrel/Outtalent
8a10b23335d8e9f080e5c39715b38bcc2916ff00
[ "MIT" ]
32
2020-07-27T13:54:24.000Z
2021-12-25T18:12:50.000Z
class Solution: def judgeCircle(self, moves: str) -> bool: M = { 'U': (0, -1), 'D': (0, 1), 'R': (1, 0), 'L': (-1, 0) } x, y = 0, 0 for move in moves: dx, dy = M[move] x += dx y += dy retur...
18.888889
46
0.3
43
340
2.372093
0.55814
0.039216
0
0
0
0
0
0
0
0
0
0.075949
0.535294
340
17
47
20
0.56962
0
0
0
0
0
0.011765
0
0
0
0
0
0
1
0.071429
false
0
0
0
0.214286
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
9b5464735ff8091e91c21a810f978fe5065f3b89
570
py
Python
tests/pandas/test_indexes.py
sjdemartini/python-type-stubs
6ab1717fef39161953a215f939e48177f29bf460
[ "MIT" ]
null
null
null
tests/pandas/test_indexes.py
sjdemartini/python-type-stubs
6ab1717fef39161953a215f939e48177f29bf460
[ "MIT" ]
null
null
null
tests/pandas/test_indexes.py
sjdemartini/python-type-stubs
6ab1717fef39161953a215f939e48177f29bf460
[ "MIT" ]
null
null
null
import pandas as pd from typing import TYPE_CHECKING, Any if not TYPE_CHECKING: def reveal_type(*args, **kwargs): pass if TYPE_CHECKING: from pandas._typing import np_ndarray_bool else: np_ndarray_bool = Any def test_index_unique(): df = pd.DataFrame({"x": [1, 2, 3, 4]}, index=pd.Index(...
19
72
0.650877
92
570
3.826087
0.402174
0.102273
0.110795
0.022727
0.056818
0
0
0
0
0
0
0.037862
0.212281
570
29
73
19.655172
0.746102
0
0
0
0
0
0.026316
0
0
0
0
0
0
1
0.166667
false
0.055556
0.166667
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
1
0
0
0
0
0
1
9b56627439368046c2f85b7b0a1b45c72244d79c
659
py
Python
main.py
aminert/easy-vizy
6e2963b2306a674589f93db97e9737075d69d4ea
[ "MIT" ]
1
2021-08-22T23:11:20.000Z
2021-08-22T23:11:20.000Z
main.py
aminert/easy-vizy
6e2963b2306a674589f93db97e9737075d69d4ea
[ "MIT" ]
null
null
null
main.py
aminert/easy-vizy
6e2963b2306a674589f93db97e9737075d69d4ea
[ "MIT" ]
null
null
null
from flask import Flask, request, render_template, jsonify app = Flask(__name__) def get_image_urls(ids): """function to map ids to image URLS""" return [f"http://127.0.0.1:8000/{id}" for id in ids] @app.route('/', methods=['GET']) def app_main(): ids = request.args.get('asset_ids').split(',') ima...
23.535714
63
0.679818
97
659
4.443299
0.463918
0.12529
0.055684
0.069606
0
0
0
0
0
0
0
0.056159
0.162367
659
28
64
23.535714
0.724638
0.050076
0
0
0
0
0.151369
0
0
0
0
0
0
1
0.235294
false
0
0.058824
0
0.529412
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
9b5f7e6b3523cec28b1b6fc3065deabfd37fff17
531
py
Python
python/strategy.py
PabloAceG/sorting-algorithms
33e9982a63fb2d66fbc6d638f4011c05dc15bd05
[ "Apache-2.0" ]
null
null
null
python/strategy.py
PabloAceG/sorting-algorithms
33e9982a63fb2d66fbc6d638f4011c05dc15bd05
[ "Apache-2.0" ]
null
null
null
python/strategy.py
PabloAceG/sorting-algorithms
33e9982a63fb2d66fbc6d638f4011c05dc15bd05
[ "Apache-2.0" ]
null
null
null
from enum import Enum __author__ = "Pablo Acereda" __copyright__ = "Copyright 2020" __credits__ = [ "Pablo Acereda" ] __license__ = "Apache License 2.0" __version__ = "1.0" __maintainer__ = "Pablo Acereda" __email__ = "p.aceredag@gmail.com" class Order(Enum): ASC = 1 DESC = -1 class Pivot(Enum): FIRST...
17.7
45
0.679849
59
531
5.644068
0.627119
0.108108
0.108108
0
0
0
0
0
0
0
0
0.023866
0.210923
531
29
46
18.310345
0.770883
0
0
0.136364
0
0
0.207156
0
0
0
0
0
0
1
0
false
0.136364
0.045455
0
0.545455
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
9b61b72b3c7c4904f714ab9d8d507ba6f7eed684
732
py
Python
imageprobe/parsers/gif.py
Parnassius/imageprobe
8d6fad1940b419654d369d1a727d76ad0948f99e
[ "MIT" ]
null
null
null
imageprobe/parsers/gif.py
Parnassius/imageprobe
8d6fad1940b419654d369d1a727d76ad0948f99e
[ "MIT" ]
null
null
null
imageprobe/parsers/gif.py
Parnassius/imageprobe
8d6fad1940b419654d369d1a727d76ad0948f99e
[ "MIT" ]
1
2021-08-30T17:46:59.000Z
2021-08-30T17:46:59.000Z
import struct from typing import Optional from imageprobe.client import DownloadClient from imageprobe.errors import CorruptedImage from imageprobe.types import ImageData async def gif(client: DownloadClient) -> Optional[ImageData]: # Validate GIF signature await client.read_from_start(6) if client.buffe...
26.142857
65
0.687158
91
732
5.472527
0.538462
0.084337
0.060241
0.076305
0.096386
0
0
0
0
0
0
0.019332
0.222678
732
27
66
27.111111
0.855888
0.053279
0
0
0
0
0.062319
0
0
0
0
0
0
1
0
true
0
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
0
0
0
0
1
0
0
0
0
0
0
1
9b62bdfc6ab5a03500690298194b9398bb02f634
10,874
py
Python
briefmetrics/test/fixtures/api_google.py
shazow/briefmetrics
b6ca5ac0980ae00ccc160e6456e36ade8a3e2eeb
[ "MIT" ]
18
2020-02-06T23:31:43.000Z
2022-02-09T00:32:42.000Z
briefmetrics/test/fixtures/api_google.py
shazow/briefmetrics
b6ca5ac0980ae00ccc160e6456e36ade8a3e2eeb
[ "MIT" ]
8
2020-02-08T23:00:46.000Z
2021-07-27T20:52:12.000Z
briefmetrics/test/fixtures/api_google.py
shazow/briefmetrics
b6ca5ac0980ae00ccc160e6456e36ade8a3e2eeb
[ "MIT" ]
1
2020-07-09T12:59:27.000Z
2020-07-09T12:59:27.000Z
""" METRICS = [u'ga:CPC', u'ga:CPM', u'ga:CTR', u'ga:ROI', u'ga:RPC', u'ga:adClicks', u'ga:adCost', u'ga:adsenseAdUnitsViewed', u'ga:adsenseAdsClicks', u'ga:adsenseAdsViewed', u'ga:adsenseCTR', u'ga:adsenseECPM', u'ga:adsenseExits', u'ga:adsensePageImpressions', u'ga:adsenseRevenue', u'ga:appviews', u'ga:appviewsPerVis...
84.953125
3,332
0.713077
1,493
10,874
5.152713
0.334226
0.11036
0.006369
0.006239
0.028597
0.016898
0.016898
0.016898
0.015079
0.015079
0
0.026173
0.100515
10,874
127
3,333
85.622047
0.760352
0.612562
0
0.042105
0
0
0.326278
0.097027
0
0
0
0
0
1
0.073684
false
0
0.031579
0.021053
0.189474
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9b6fa569611e794b6e18073f001f296dd667ce0b
2,563
py
Python
guest_posting/utils.py
marcphilippebeaujean-abertay/castspot
c39c230161091380b2a1b3612a8a2e52f414ea72
[ "MIT" ]
null
null
null
guest_posting/utils.py
marcphilippebeaujean-abertay/castspot
c39c230161091380b2a1b3612a8a2e52f414ea72
[ "MIT" ]
null
null
null
guest_posting/utils.py
marcphilippebeaujean-abertay/castspot
c39c230161091380b2a1b3612a8a2e52f414ea72
[ "MIT" ]
null
null
null
from datetime import date, datetime from django.core.mail import send_mail from rest_framework import exceptions from users.models import ContactDetails from podcasts.models import Podcast from .models import GuestSpeakingApplication, GuestPost def get_number_of_posts_this_month(user): current_month = date(year...
48.358491
123
0.716348
341
2,563
5.252199
0.384164
0.040201
0.035176
0.021776
0.25684
0.208822
0.11837
0.11837
0.078169
0.078169
0
0.004751
0.178697
2,563
52
124
49.288462
0.846081
0.010925
0
0.046512
0
0
0.341098
0.122779
0
0
0
0.019231
0
1
0.069767
false
0
0.139535
0
0.255814
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
9b70d8f38cc26e4791256af5721c234917e8ce42
3,128
py
Python
systems/system.py
martintb/typyCreator
ba8ad4c30322caa197714fdaac1a4388ad48b91d
[ "MIT" ]
null
null
null
systems/system.py
martintb/typyCreator
ba8ad4c30322caa197714fdaac1a4388ad48b91d
[ "MIT" ]
null
null
null
systems/system.py
martintb/typyCreator
ba8ad4c30322caa197714fdaac1a4388ad48b91d
[ "MIT" ]
null
null
null
import numpy as np from copy import deepcopy from typyCreator.util import overPrint from ..util.box import box from ..placers.python_placer import python_placer from ..placers.external_placer import external_placer class system(python_placer,external_placer): def __init__(self): self.molecules_placed=False ...
32.926316
67
0.664962
384
3,128
5.380208
0.257813
0.048403
0.062924
0.023233
0.097773
0.047435
0.047435
0
0
0
0
0.005945
0.193414
3,128
94
68
33.276596
0.812921
0
0
0.044444
0
0
0.05312
0
0
0
0
0
0
0
null
null
0
0.066667
null
null
0.044444
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
9b7b2cd0a47c461bea87aa3beed5997bcc162177
1,775
py
Python
forms.py
jennymgarces/parking
b0608bb062ca2e729424dad93501d6aabefb5ab6
[ "MIT" ]
null
null
null
forms.py
jennymgarces/parking
b0608bb062ca2e729424dad93501d6aabefb5ab6
[ "MIT" ]
null
null
null
forms.py
jennymgarces/parking
b0608bb062ca2e729424dad93501d6aabefb5ab6
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import SelectField, StringField, SubmitField, PasswordField, TextAreaField, BooleanField from wtforms.validators import DataRequired, Email, Length class SignupForm(FlaskForm): name = StringField('Nombre', validators=[DataRequired(), Length(max=64)]) password = Pas...
36.22449
101
0.693521
161
1,775
7.627329
0.403727
0.107492
0.074919
0.091205
0.311075
0.15798
0.125407
0.125407
0.125407
0.125407
0
0.005424
0.169014
1,775
49
102
36.22449
0.827119
0.024225
0
0.305556
0
0
0.134527
0
0
0
0
0
0
1
0
false
0.083333
0.083333
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
0
1
0
0
0
0
0
1
9b7cc12be28596c57a2770a88b9492d27232e761
2,259
py
Python
camille-scripts/glueing.py
cambouvy/BSc-Thesis-Project
ca2504cb828ab068545e130eac393ceb34f2a457
[ "MIT" ]
1
2021-10-02T11:15:10.000Z
2021-10-02T11:15:10.000Z
camille-scripts/glueing.py
cambouvy/BSc-Thesis-Project
ca2504cb828ab068545e130eac393ceb34f2a457
[ "MIT" ]
null
null
null
camille-scripts/glueing.py
cambouvy/BSc-Thesis-Project
ca2504cb828ab068545e130eac393ceb34f2a457
[ "MIT" ]
null
null
null
import os import copy import warnings from warnings import warn from collections import OrderedDict from itertools import chain import array import gc import re import logging import pandas as pd import numpy as np import shutil import xarray as xr """ 'Glueing' all the files outputted from QuaLiKiz together. The vari...
37.65
128
0.580788
261
2,259
4.804598
0.59387
0.009569
0.019139
0.028708
0.033493
0
0
0
0
0
0
0.002442
0.2749
2,259
59
129
38.288136
0.763126
0.069942
0
0
0
0
0.34787
0.024848
0
0
0
0
0
1
0
false
0
0.388889
0
0.388889
0.027778
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
9b7e2046a1d5daab7bf9285dd44bb8e82a1bc506
899
py
Python
resize.py
tunepolo/resize_image
f0e7f1b435f7f57a8bd56ebd75afd4bd3cc13b11
[ "MIT" ]
null
null
null
resize.py
tunepolo/resize_image
f0e7f1b435f7f57a8bd56ebd75afd4bd3cc13b11
[ "MIT" ]
null
null
null
resize.py
tunepolo/resize_image
f0e7f1b435f7f57a8bd56ebd75afd4bd3cc13b11
[ "MIT" ]
null
null
null
from PIL import Image img = Image.open('元画像.jpg') Lsize = (600, 450) if img.width > img.height else (450, 600) L2size = (1200, 900) if img.width > img.height else (900, 1200) L3size = (1800, 1350) if img.width > img.height else (1350, 1800) img.resize(Lsize, Image.BICUBIC).save('L_バイキュービック.jpg', img.format, quality=...
47.315789
82
0.739711
153
899
4.248366
0.261438
0.110769
0.147692
0.233846
0.683077
0.683077
0.576923
0.576923
0.487692
0.381538
0
0.097324
0.085651
899
18
83
49.944444
0.693431
0
0
0
0
0
0.143493
0
0
0
0
0
0
1
0
false
0
0.076923
0
0.076923
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
9b819c81d0fd6815518004d7b55fbbaa2f3e869c
2,899
py
Python
src/similarity_search.py
MastafaF/multilingual_similarity_compare
6b3ccc0a239747c0f649e58d49088833c20b8b3c
[ "BSD-3-Clause" ]
8
2020-03-06T14:29:04.000Z
2021-11-14T17:18:40.000Z
src/similarity_search.py
MastafaF/multilingual_similarity_compare
6b3ccc0a239747c0f649e58d49088833c20b8b3c
[ "BSD-3-Clause" ]
10
2020-03-17T15:14:26.000Z
2020-10-29T16:36:49.000Z
src/similarity_search.py
MastafaF/multilingual_similarity_compare
6b3ccc0a239747c0f649e58d49088833c20b8b3c
[ "BSD-3-Clause" ]
null
null
null
""" The goal of this file is to Encode a document We inspire ourselves from https://github.com/facebookresearch/LASER/blob/master/source/embed.py The idea is to reproduce the Similarity Search task from LASER with XLM-R XLM-R is the new SOTA in multilingual embeddings, hence it should outperform LASER in this task """...
35.353659
128
0.706795
398
2,899
5.030151
0.414573
0.00999
0.04995
0.041958
0.090909
0.038961
0
0
0
0
0
0.019608
0.173163
2,899
82
129
35.353659
0.815603
0.370818
0
0.081633
0
0
0.217175
0.026593
0
0
0
0.012195
0
1
0
false
0
0.244898
0
0.244898
0.081633
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
9b8f5ec526a9daa36abaf73a66dad94a3d94fa51
4,793
py
Python
dialogue-engine/test/programytest/security/authorise/test_usergroups.py
cotobadesign/cotoba-agent-oss
3833d56e79dcd7529c3e8b3a3a8a782d513d9b12
[ "MIT" ]
104
2020-03-30T09:40:00.000Z
2022-03-06T22:34:25.000Z
dialogue-engine/test/programytest/security/authorise/test_usergroups.py
cotobadesign/cotoba-agent-oss
3833d56e79dcd7529c3e8b3a3a8a782d513d9b12
[ "MIT" ]
25
2020-06-12T01:36:35.000Z
2022-02-19T07:30:44.000Z
dialogue-engine/test/programytest/security/authorise/test_usergroups.py
cotobadesign/cotoba-agent-oss
3833d56e79dcd7529c3e8b3a3a8a782d513d9b12
[ "MIT" ]
10
2020-04-02T23:43:56.000Z
2021-05-14T13:47:01.000Z
""" Copyright (c) 2020 COTOBA DESIGN, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distri...
39.61157
126
0.686835
568
4,793
5.714789
0.248239
0.0878
0.025878
0.035428
0.4313
0.260628
0.21565
0.195625
0.195625
0.167899
0
0.00961
0.196745
4,793
120
127
39.941667
0.833506
0.221573
0
0.385542
0
0
0.080043
0
0
0
0
0
0.542169
1
0.048193
false
0
0.048193
0
0.108434
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
1
0
0
0
0
0
0
0
0
0
1
9b948f6cd80605274b4ecf4629794befadcbe919
1,125
py
Python
request_demo/T_request.py
wuyongmao/python3_6
f4c77ceaeddcba4773e6b42bce5f21d4665d150d
[ "Unlicense" ]
null
null
null
request_demo/T_request.py
wuyongmao/python3_6
f4c77ceaeddcba4773e6b42bce5f21d4665d150d
[ "Unlicense" ]
null
null
null
request_demo/T_request.py
wuyongmao/python3_6
f4c77ceaeddcba4773e6b42bce5f21d4665d150d
[ "Unlicense" ]
null
null
null
''' requests 模组使用 1.post 2.get r.status_code #响应状态码 r.raw #返回原始响应体,也就是 urllib 的 response 对象,使用 r.raw.read() 读取 r.content #字节方式的响应体,会自动为你解码 gzip 和 deflate 压缩 r.text #字符串方式的响应体,会自动根据响应头部的字符编码进行解码 r.headers #以字典对象存储服务器响应头,但是这个字典比较特殊,字典键不区分大小写,若键不存在则返回None #*特殊方法*# r.json() #Requests中内置的JSON解码器 r.raise_for_status...
25
122
0.708444
170
1,125
4.647059
0.535294
0.037975
0.064557
0.075949
0.120253
0.088608
0
0
0
0
0
0.039139
0.091556
1,125
44
123
25.568182
0.733855
0.530667
0
0
0
0
0.379175
0
0
0
0
0
0
1
0
false
0.166667
0.166667
0
0.166667
0.25
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
9b983e5211e3b2baf44ff309a08f9d2ebac9ffba
731
py
Python
formas/triangulo.py
mdietterle/aulas
b289a7252c2c8f7dfb4ee5482326a94e7d87ee45
[ "Apache-2.0" ]
null
null
null
formas/triangulo.py
mdietterle/aulas
b289a7252c2c8f7dfb4ee5482326a94e7d87ee45
[ "Apache-2.0" ]
null
null
null
formas/triangulo.py
mdietterle/aulas
b289a7252c2c8f7dfb4ee5482326a94e7d87ee45
[ "Apache-2.0" ]
null
null
null
import turtle #wn = turtle.Screen() #wn.bgcolor("lightgreen") # Set the window background color #wn.title("Hello, Tess!") # Set the window title #tess = turtle.Turtle() '''tess=turtle.Pen() tess.color("blue") # Tell tess to change her color tess.pensize(3) # Tell tess to set her pen ...
26.107143
64
0.673051
109
731
4.495413
0.330275
0.110204
0.081633
0.128571
0.546939
0.546939
0.546939
0.546939
0.412245
0.157143
0
0.043697
0.186047
731
28
65
26.107143
0.779832
0.313269
0
0.416667
0
0
0.075758
0
0
0
0
0
0
1
0
true
0
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
1
0
0
0
0
0
0
1
9b98d5725d1d31280d0b30b6f928fc3df0c1868e
1,486
py
Python
python/pythonChallengingExcercises.py
mir-dhaka/coding_playground
f20138e404c27e008b2902d4be2e9f9d4c25b11f
[ "Apache-2.0" ]
2
2019-05-23T06:05:20.000Z
2019-11-17T01:35:45.000Z
python/pythonChallengingExcercises.py
mir-dhaka/coding_playground
f20138e404c27e008b2902d4be2e9f9d4c25b11f
[ "Apache-2.0" ]
2
2020-08-29T12:29:11.000Z
2020-08-29T12:30:14.000Z
python/pythonChallengingExcercises.py
mir-dhaka/coding_playground
f20138e404c27e008b2902d4be2e9f9d4c25b11f
[ "Apache-2.0" ]
2
2020-07-18T17:07:36.000Z
2021-12-06T02:21:15.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim:fenc=utf-8 # # Copyright © 2017 damian <damian@damian-desktop> # # Distributed under terms of the MIT license. """ Execrcises and Based on https://github.com/zhiwehu/Python-programming-exercises """ import math def list_div_by_7_but_not_5(start=2000, stop=3200): ...
25.186441
79
0.642665
222
1,486
4.135135
0.427928
0.009804
0.019608
0.029412
0.108932
0.108932
0.037037
0
0
0
0
0.046167
0.227456
1,486
58
80
25.62069
0.752613
0.148048
0
0
0
0
0.034653
0
0
0
0
0
0
0
null
null
0
0.05
null
null
0.2
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
9b9da6da098eed8ce027282609c98c0f66704fd0
2,071
py
Python
configs/FDDB/csl/cfgs_res50_fddb_csl_v2.py
chisyliu/RotationDetection
6f2bd55a51a6de0bcd0959a85977682511fd440d
[ "Apache-2.0" ]
2
2022-03-05T09:55:49.000Z
2022-03-05T10:12:51.000Z
configs/FDDB/csl/cfgs_res50_fddb_csl_v2.py
ZhangRan24/RotationDetection
85791a4ec944bb0b14b8721193477eb0f582e981
[ "Apache-2.0" ]
null
null
null
configs/FDDB/csl/cfgs_res50_fddb_csl_v2.py
ZhangRan24/RotationDetection
85791a4ec944bb0b14b8721193477eb0f582e981
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import division, print_function, absolute_import import numpy as np from alpharotate.utils.pretrain_zoo import PretrainModelZoo from configs._base_.models.retinanet_r50_fpn import * from configs._base_.datasets.dota_detection import * from configs._base_.schedules.schedule_1x i...
26.896104
105
0.754225
309
2,071
4.812298
0.495146
0.02959
0.04035
0.028245
0.160054
0.160054
0.160054
0.160054
0.160054
0.160054
0
0.292291
0.129406
2,071
76
106
27.25
0.532446
0.07436
0
0
0
0
0.055598
0.040154
0
0
0
0
0
1
0
false
0
0.162162
0
0.162162
0.027027
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
9ba2b52f1de2b194885447442733185e45f935bd
433
py
Python
SIRL_bot/deep_dialog/nlu/nlu.py
brianspiering/ReinforcementLearning_Chatbots
b331a040076f9a2497cdfe3b5d3f68eface49259
[ "Apache-2.0" ]
null
null
null
SIRL_bot/deep_dialog/nlu/nlu.py
brianspiering/ReinforcementLearning_Chatbots
b331a040076f9a2497cdfe3b5d3f68eface49259
[ "Apache-2.0" ]
null
null
null
SIRL_bot/deep_dialog/nlu/nlu.py
brianspiering/ReinforcementLearning_Chatbots
b331a040076f9a2497cdfe3b5d3f68eface49259
[ "Apache-2.0" ]
null
null
null
from deep_dialog.nlu.watson import watson from deep_dialog.nlu.rasa import rasa def set_nlu(params, nlu_type, top_intents, **kargs): print('----------- NLU in use is %s -----------'%nlu_type) if nlu_type == 'watson': nlu = watson(params, top_intents, **kargs...
27.0625
68
0.538106
53
433
4.207547
0.415094
0.125561
0.201794
0.152466
0
0
0
0
0
0
0
0
0.314088
433
15
69
28.866667
0.750842
0
0
0
0
0
0.122302
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.444444
0.111111
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
9ba8aba94ace10b2b103094bd472b3a2e4aac669
3,330
py
Python
polyphony/compiler/libs.py
ktok07b6/polyphony
657c5c7440520db6b4985970bd50547407693ac4
[ "MIT" ]
83
2015-11-30T09:59:13.000Z
2021-08-03T09:12:28.000Z
polyphony/compiler/libs.py
jesseclin/polyphony
657c5c7440520db6b4985970bd50547407693ac4
[ "MIT" ]
4
2017-02-10T01:43:11.000Z
2020-07-14T03:52:25.000Z
polyphony/compiler/libs.py
jesseclin/polyphony
657c5c7440520db6b4985970bd50547407693ac4
[ "MIT" ]
11
2016-11-18T14:39:15.000Z
2021-02-23T10:05:20.000Z
single_port_ram = """module SinglePortRam # ( parameter DATA_WIDTH = 8, parameter ADDR_WIDTH = 4, parameter RAM_DEPTH = 1 << ADDR_WIDTH ) ( input clk, input rst, input [ADDR_WIDTH-1:0] ram_addr, input [DATA_WIDTH-1:0] ram_d, input ram_we, output [DATA_WIDTH-1:0] ram_q ); reg [DATA_WIDTH-1:0] mem [0...
21.764706
70
0.594294
509
3,330
3.738703
0.119843
0.026274
0.06989
0.057803
0.5134
0.425118
0.403048
0.350499
0.299002
0.299002
0
0.040279
0.269369
3,330
152
71
21.907895
0.741882
0
0
0.485915
0
0
0.975976
0.014414
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
9baa6c528e376292aa9ced94a69bb12cf039cd72
3,668
py
Python
management_api_app/api/routes/workspaces.py
LizaShak/AzureTRE
b845eb4b73439ef7819565aaadb36f43b6484ad9
[ "MIT" ]
2
2021-11-14T16:57:16.000Z
2022-03-13T15:14:26.000Z
management_api_app/api/routes/workspaces.py
anatbal/AzureTRE
d1d4891657c737092e761c4aaf80b04ff0f03fc7
[ "MIT" ]
null
null
null
management_api_app/api/routes/workspaces.py
anatbal/AzureTRE
d1d4891657c737092e761c4aaf80b04ff0f03fc7
[ "MIT" ]
null
null
null
import logging from fastapi import APIRouter, Depends, HTTPException from starlette import status from api.dependencies.authentication import extract_auth_information from api.dependencies.database import get_repository from api.dependencies.workspaces import get_workspace_by_workspace_id_from_path from api.dependenc...
49.567568
186
0.815976
431
3,668
6.640371
0.259861
0.031796
0.033543
0.041929
0.325646
0.260307
0.231656
0.13557
0.13557
0.13557
0
0.006479
0.116412
3,668
73
187
50.246575
0.876581
0.009542
0
0.166667
0
0
0.050413
0.007163
0
0
0
0.013699
0
1
0
false
0
0.259259
0
0.314815
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
9bae845975ea73741b9eeb37bdf675056bd32cad
976
py
Python
Python/add_digits.py
paulolemus/leetcode
e11c4f1d6dcd02d1bb69534ddcf7bb957d6df318
[ "MIT" ]
null
null
null
Python/add_digits.py
paulolemus/leetcode
e11c4f1d6dcd02d1bb69534ddcf7bb957d6df318
[ "MIT" ]
null
null
null
Python/add_digits.py
paulolemus/leetcode
e11c4f1d6dcd02d1bb69534ddcf7bb957d6df318
[ "MIT" ]
null
null
null
# Source: https://leetcode.com/problems/add-digits/description/ # Author: Paulo Lemus # Date : 2017-11-16 # Info : #258, Easy, 92 ms, 92.50% # Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. # # For example: # # Given num = 38, the process is like: 3 + 8 = 11, 1 +...
23.804878
102
0.581967
143
976
3.972028
0.65035
0.014085
0.021127
0.028169
0.172535
0.172535
0.172535
0.172535
0.172535
0.172535
0
0.065886
0.300205
976
40
103
24.4
0.765739
0.612705
0
0.6
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0
0
0.6
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
9bb0b101cf01f701dcb1e1a9f05d3968600aac28
948
py
Python
kombu_fernet/serializers/msgpack.py
trussworks/kombu-fernet-serializers
e9d55e640c21cfda188aa66f4661b734ddfbb50f
[ "MIT" ]
11
2015-11-05T07:41:14.000Z
2021-11-09T01:01:08.000Z
kombu_fernet/serializers/msgpack.py
trussworks/kombu-fernet-serializers
e9d55e640c21cfda188aa66f4661b734ddfbb50f
[ "MIT" ]
12
2015-01-01T16:34:10.000Z
2021-10-21T15:28:32.000Z
kombu_fernet/serializers/msgpack.py
trussworks/kombu-fernet-serializers
e9d55e640c21cfda188aa66f4661b734ddfbb50f
[ "MIT" ]
6
2017-01-08T16:57:54.000Z
2021-11-29T18:38:12.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals, absolute_import from kombu.exceptions import SerializerNotInstalled from . import fernet_encode, fernet_decode try: try: from msgpack import packb as pack, unpackb unpack = lambda s: unpackb(s, encoding='utf-8') except ImportErr...
27.882353
68
0.671941
116
948
5.37931
0.568966
0.019231
0.054487
0
0
0
0
0
0
0
0
0.011127
0.241561
948
33
69
28.727273
0.856745
0.139241
0
0.086957
0
0
0.1325
0.035
0
0
0
0
0
1
0.043478
false
0
0.304348
0
0.347826
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
9bb1c93b13747a585e138506836360d3de47ac8b
1,577
py
Python
train/compute/python/lib/pytorch/operator_impl.py
sazanovd/param
595b81ceb64d8d106d05ab67d2c73e8465d06921
[ "MIT" ]
null
null
null
train/compute/python/lib/pytorch/operator_impl.py
sazanovd/param
595b81ceb64d8d106d05ab67d2c73e8465d06921
[ "MIT" ]
null
null
null
train/compute/python/lib/pytorch/operator_impl.py
sazanovd/param
595b81ceb64d8d106d05ab67d2c73e8465d06921
[ "MIT" ]
null
null
null
from typing import Callable import torch from ..operator import OperatorInterface class InPlaceOpByName(OperatorInterface): """ Inplace ops is called in the form of tensor.op(args), we convert it to a regular function call with "getattr(tensor, op)(args)" """ def __init__( self, ...
27.189655
86
0.636652
214
1,577
4.509346
0.28972
0.065285
0.093264
0.046632
0.453886
0.379275
0.321244
0.321244
0.321244
0.248705
0
0.001698
0.253012
1,577
57
87
27.666667
0.817487
0.185796
0
0.529412
0
0
0
0
0
0
0
0
0
1
0.235294
false
0
0.088235
0
0.411765
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
9bb7aa01bf516cab8cdf53c479cbbeaf566af567
2,367
py
Python
observations/r/morley.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
199
2017-07-24T01:34:27.000Z
2022-01-29T00:50:55.000Z
observations/r/morley.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
46
2017-09-05T19:27:20.000Z
2019-01-07T09:47:26.000Z
observations/r/morley.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
45
2017-07-26T00:10:44.000Z
2022-03-16T20:44:59.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import csv import numpy as np import os import sys from observations.util import maybe_download_and_extract def morley(path): """Michelson Speed of Light Data A classical data of...
30.74026
74
0.69962
344
2,367
4.738372
0.549419
0.021472
0.029448
0.028221
0.026994
0
0
0
0
0
0
0.028695
0.219687
2,367
76
75
31.144737
0.852734
0.638783
0
0
0
0
0.095908
0
0
0
0
0
0
1
0.045455
false
0
0.409091
0
0.5
0.045455
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
9bb90870770f68c249aea1c7ab8b858b458fc280
4,874
py
Python
src/app/voltdb/voltdb_src/tools/vmc_stats_emulator.py
OpenMPDK/SMDK
8f19d32d999731242cb1ab116a4cb445d9993b15
[ "BSD-3-Clause" ]
44
2022-03-16T08:32:31.000Z
2022-03-31T16:02:35.000Z
src/app/voltdb/voltdb_src/tools/vmc_stats_emulator.py
H2O0Lee/SMDK
eff49bc17a55a83ea968112feb2e2f2ea18c4ff5
[ "BSD-3-Clause" ]
1
2022-03-29T02:30:28.000Z
2022-03-30T03:40:46.000Z
src/app/voltdb/voltdb_src/tools/vmc_stats_emulator.py
H2O0Lee/SMDK
eff49bc17a55a83ea968112feb2e2f2ea18c4ff5
[ "BSD-3-Clause" ]
18
2022-03-19T04:41:04.000Z
2022-03-31T03:32:12.000Z
#!/usr/bin/env python2.6 # This file is part of VoltDB. # Copyright (C) 2008-2020 VoltDB Inc. # # This file contains original code and/or modifications of original code. # Any modifications made by VoltDB Inc. are licensed under the following # terms and conditions: # # Permission is hereby granted, free of charge, to...
35.064748
149
0.694707
703
4,874
4.739687
0.406828
0.039616
0.036315
0.060024
0.171669
0.171669
0.164166
0.164166
0.141957
0.134754
0
0.044776
0.188962
4,874
138
150
35.318841
0.798128
0.34325
0
0.125
0
0.0125
0.415166
0.323223
0
0
0
0.007246
0
0
null
null
0
0.075
null
null
0.05
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
9bbe2ab7a3c2b6cd56bfab398501e10d1824436c
1,943
py
Python
flask_template_support/filters.py
cs91chris/flask_template_support
1e877581f1b05f00e8e754d2259cbd4606ba7d8f
[ "MIT" ]
2
2019-04-05T17:20:55.000Z
2021-03-21T18:58:43.000Z
flask_template_support/filters.py
cs91chris/flask_template_support
1e877581f1b05f00e8e754d2259cbd4606ba7d8f
[ "MIT" ]
null
null
null
flask_template_support/filters.py
cs91chris/flask_template_support
1e877581f1b05f00e8e754d2259cbd4606ba7d8f
[ "MIT" ]
null
null
null
from datetime import datetime from operator import itemgetter from dateutil import parser from flask import current_app as cap def or_na(item): """ :param item: :return: """ if not item: return cap.config['NOT_AVAILABLE_DESC'] return item def yes_or_no(item): """ :param it...
18.330189
69
0.585178
250
1,943
4.46
0.348
0.035874
0.034978
0.034081
0.039462
0
0
0
0
0
0
0.003647
0.29439
1,943
105
70
18.504762
0.809628
0.213073
0
0.046512
0
0
0.075
0.032353
0
0
0
0
0
1
0.162791
false
0
0.093023
0
0.534884
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
9bc00accdd9e99a7e1ee1205bedd5a609a633c7d
2,315
py
Python
aoc_cqkh42/year_2019/day_15.py
cqkh42/advent-of-code
bcf31cf8973a5b6d67492c412dce10df742e04d1
[ "MIT" ]
null
null
null
aoc_cqkh42/year_2019/day_15.py
cqkh42/advent-of-code
bcf31cf8973a5b6d67492c412dce10df742e04d1
[ "MIT" ]
null
null
null
aoc_cqkh42/year_2019/day_15.py
cqkh42/advent-of-code
bcf31cf8973a5b6d67492c412dce10df742e04d1
[ "MIT" ]
null
null
null
# TODO A* class? from collections import Counter, deque from aoc_cqkh42.year_2019.computer import Computer def path_to_coordinate(path): counts = Counter(path) x = counts.get(4, 0) - counts.get(3, 0) y = counts.get(1, 0) - counts.get(2, 0) return x, y def winning_computer(data): inputs = data.spl...
26.609195
76
0.546436
274
2,315
4.430657
0.266423
0.108731
0.053542
0.065898
0.532949
0.532949
0.483526
0.420923
0.420923
0.420923
0
0.017426
0.355508
2,315
87
77
26.609195
0.796247
0.006048
0
0.549296
0
0
0.000435
0
0
0
0
0.011494
0
1
0.056338
false
0.028169
0.028169
0
0.15493
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
9bc075fe5b71155e8db61ae9b1d09810ad8fa13a
761
py
Python
openFlow/ofptPacketIn.py
wsharif/thesis
96a9bd6c86ed027c3eeee231b2eae1c14394d728
[ "MIT" ]
null
null
null
openFlow/ofptPacketIn.py
wsharif/thesis
96a9bd6c86ed027c3eeee231b2eae1c14394d728
[ "MIT" ]
null
null
null
openFlow/ofptPacketIn.py
wsharif/thesis
96a9bd6c86ed027c3eeee231b2eae1c14394d728
[ "MIT" ]
null
null
null
from ofptHeader import ofptHeader from generateMatch import generateMatch from os import urandom from random import randint from struct import Struct def ofptPacketIn(maxLength): payloadLength = randint(18 + 4 + 14, maxLength - 8) bufferId = urandom(4) totalLen = urandom(2) reason = Struct('! B').pack(randint(0,...
26.241379
79
0.720105
96
761
5.708333
0.385417
0.029197
0.113139
0.072993
0.120438
0
0
0
0
0
0
0.04127
0.172142
761
29
80
26.241379
0.828571
0
0
0
1
0
0.003937
0
0
0
0
0
0
1
0.045455
false
0
0.227273
0
0.318182
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
9bc16dea4dd9c39b949fb877dda48fc823b519ae
5,642
py
Python
scripts/create_fluseverity_figs_v5/S_corrCoef_2wkPeriod_v5.py
eclee25/flu-SDI-exploratory-age
2f5a4d97b84d2116e179e85fe334edf4556aa946
[ "MIT" ]
3
2018-03-29T23:02:43.000Z
2020-08-10T12:01:50.000Z
scripts/create_fluseverity_figs_v5/S_corrCoef_2wkPeriod_v5.py
eclee25/flu-SDI-exploratory-age
2f5a4d97b84d2116e179e85fe334edf4556aa946
[ "MIT" ]
null
null
null
scripts/create_fluseverity_figs_v5/S_corrCoef_2wkPeriod_v5.py
eclee25/flu-SDI-exploratory-age
2f5a4d97b84d2116e179e85fe334edf4556aa946
[ "MIT" ]
null
null
null
#!/usr/bin/python ############################################## ###Python template ###Author: Elizabeth Lee ###Date: 1/15/15 ###Function: correlation coefficient between benchmark and zRR vs. moving 2 week window for SDI data for 7 week fall baseline ### 7/20/15: new benchmark ### 7/22/15: update notation ### 10/8/1...
44.425197
232
0.728288
886
5,642
4.48307
0.349887
0.019386
0.033233
0.018127
0.239426
0.195116
0.17145
0.149043
0.126133
0.103474
0
0.044329
0.112372
5,642
126
233
44.777778
0.748802
0.333215
0
0.029412
0
0.014706
0.179603
0.124646
0
0
0
0
0
0
null
null
0
0.117647
null
null
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
1
0
0
0
0
0
0
0
0
1
32e249e6287641744bbd250af01e6d927f5c891e
3,285
py
Python
test/test_consistency.py
olliethomas/torchtyping
81e1cffa841307d700b11e9a2c970a5face65020
[ "Apache-2.0" ]
881
2021-04-07T12:03:52.000Z
2022-03-30T13:30:40.000Z
test/test_consistency.py
olliethomas/torchtyping
81e1cffa841307d700b11e9a2c970a5face65020
[ "Apache-2.0" ]
28
2021-04-07T14:24:18.000Z
2022-02-28T17:27:14.000Z
test/test_consistency.py
olliethomas/torchtyping
81e1cffa841307d700b11e9a2c970a5face65020
[ "Apache-2.0" ]
21
2021-04-07T17:07:34.000Z
2022-03-31T15:48:43.000Z
import pytest from torch import rand from torchtyping import TensorType from typeguard import typechecked x = y = None def test_single(): @typechecked def func1(x: TensorType["x"], y: TensorType["x"]): pass @typechecked def func2(x: TensorType["x"], y: TensorType["x"]) -> TensorType["x"]: ...
26.491935
83
0.560122
465
3,285
3.952688
0.135484
0.173558
0.124048
0.084875
0.619695
0.593036
0.43852
0.385201
0.18988
0.103373
0
0.059374
0.251446
3,285
123
84
26.707317
0.688085
0.039574
0
0.4
0
0
0.014916
0
0
0
0
0
0.021053
1
0.168421
false
0.052632
0.042105
0.073684
0.305263
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
32e923facd8cf3b8f2d156722c3cf802d1de9b34
87,699
py
Python
obsolete/pipeline_cpg.py
861934367/cgat
77fdc2f819320110ed56b5b61968468f73dfc5cb
[ "BSD-2-Clause", "BSD-3-Clause" ]
87
2015-01-01T03:48:19.000Z
2021-11-23T16:23:24.000Z
obsolete/pipeline_cpg.py
861934367/cgat
77fdc2f819320110ed56b5b61968468f73dfc5cb
[ "BSD-2-Clause", "BSD-3-Clause" ]
189
2015-01-06T15:53:11.000Z
2019-05-31T13:19:45.000Z
obsolete/pipeline_cpg.py
CGATOxford/cgat
326aad4694bdfae8ddc194171bb5d73911243947
[ "BSD-2-Clause", "BSD-3-Clause" ]
56
2015-01-13T02:18:50.000Z
2022-01-05T10:00:59.000Z
################################################################################ # # MRC FGU Computational Genomics Group # # $Id: pipeline_cpg.py 2900 2011-05-24 14:38:00Z david $ # # Copyright (C) 2009 Andreas Heger # # This program is free software; you can redistribute it and/or # modify it under the term...
42.284957
423
0.53321
9,126
87,699
5.07002
0.104536
0.023169
0.016145
0.021526
0.537185
0.475243
0.438436
0.398388
0.370205
0.339709
0
0.005814
0.215567
87,699
2,073
424
42.305355
0.666759
0.031004
0
0.468495
0
0.037806
0.408104
0.128001
0
0
0
0
0.001483
0
null
null
0.02298
0.02891
null
null
0.008154
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
32f40cda81a2c53aad43cb59d9003aef9755ccf0
1,681
py
Python
generate.py
juliecious/sinGAN_reload
f67b651fef308d7c3e81cc34c64dd8cf5f2748f3
[ "MIT" ]
null
null
null
generate.py
juliecious/sinGAN_reload
f67b651fef308d7c3e81cc34c64dd8cf5f2748f3
[ "MIT" ]
null
null
null
generate.py
juliecious/sinGAN_reload
f67b651fef308d7c3e81cc34c64dd8cf5f2748f3
[ "MIT" ]
null
null
null
"""Generate new images using a trained SinGAN.""" import torch from src.singan import SinGAN import argparse from datetime import datetime from skimage import io import numpy as np from skimage.color import lab2rgb # Arguments parser = argparse.ArgumentParser() parser.add_argument('--device', type=str, default='cuda',...
32.326923
129
0.688876
267
1,681
4.273408
0.430712
0.031551
0.059597
0
0
0
0
0
0
0
0
0.02811
0.15348
1,681
52
130
32.326923
0.773718
0.145747
0
0
1
0
0.210674
0
0
0
0
0
0
1
0
false
0
0.205882
0
0.205882
0.029412
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
fd033c97290401cecc5f969f9e5015bda2a22d17
1,040
py
Python
tests/test_files_copier/test_get_root_of_config.py
PavliukKonstantin/file-copier
915659330b303825b21a0003347e7add0e0920cc
[ "MIT" ]
null
null
null
tests/test_files_copier/test_get_root_of_config.py
PavliukKonstantin/file-copier
915659330b303825b21a0003347e7add0e0920cc
[ "MIT" ]
null
null
null
tests/test_files_copier/test_get_root_of_config.py
PavliukKonstantin/file-copier
915659330b303825b21a0003347e7add0e0920cc
[ "MIT" ]
null
null
null
"""Module with tests for testing the method 'test_get_root_of_config'.""" from xml.etree import ElementTree def test_correct_config(prepare_correct_config): copier, _ = prepare_correct_config root = type(copier.get_root_of_config()) assert root is ElementTree.Element def test_config_with_incorrect_para...
28.888889
76
0.789423
140
1,040
5.392857
0.221429
0.055629
0.071523
0.119205
0.593377
0.413245
0.413245
0.413245
0.413245
0.413245
0
0
0.148077
1,040
35
77
29.714286
0.852144
0.064423
0
0.434783
0
0
0
0
0
0
0
0
0.217391
1
0.217391
false
0
0.043478
0
0.26087
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
fd0724417e138786b8c46afdd989e0eeee6b5ed5
1,112
py
Python
core/handlers/text_handler_OLDED.py
taimaskhanov11/AsyncVkAccount
58c48886545aa581eb28a1071d52e0a60aa1b8ea
[ "MIT" ]
1
2021-12-26T20:40:39.000Z
2021-12-26T20:40:39.000Z
core/handlers/text_handler_OLDED.py
taimaskhanov11/AsyncVkAccount
58c48886545aa581eb28a1071d52e0a60aa1b8ea
[ "MIT" ]
1
2021-12-03T18:38:38.000Z
2021-12-03T18:39:08.000Z
core/handlers/text_handler_OLDED.py
taimaskhanov11/AsyncVkAccount
58c48886545aa581eb28a1071d52e0a60aa1b8ea
[ "MIT" ]
null
null
null
from more_termcolor import colored from core.log_settings import prop_log, talk_log from settings import log_colors, settings, text_settings accept_handling = settings['text_handler_controller']['accept_handling'] # OLD def text_handler(sign: str, # todo text: str, log_type: str = ...
30.054054
72
0.573741
131
1,112
4.549618
0.320611
0.080537
0.120805
0.100671
0.060403
0.060403
0
0
0
0
0
0.009259
0.320144
1,112
36
73
30.888889
0.779101
0.007194
0
0.275862
0
0
0.149864
0.039964
0
0
0
0.027778
0
1
0.034483
false
0
0.103448
0
0.172414
0.137931
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
fd0965b5c7bf03f9059e4dfc5071f4488a38d862
1,274
py
Python
Rects-Fight/RectsFight.py
OxygenCobalt/Project-Archive
7e6ae0511e93eeb7ea78f02a86718b5dc44b7cf2
[ "Unlicense" ]
null
null
null
Rects-Fight/RectsFight.py
OxygenCobalt/Project-Archive
7e6ae0511e93eeb7ea78f02a86718b5dc44b7cf2
[ "Unlicense" ]
null
null
null
Rects-Fight/RectsFight.py
OxygenCobalt/Project-Archive
7e6ae0511e93eeb7ea78f02a86718b5dc44b7cf2
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 if __name__ == '__main__': import sys import subprocess import time print('Loading Rects Fight V2.0...', end='', flush=True) # Check if pygame is installed, if not install pygame # If os is not windows, then tell to manually install if str(sys.platform) == 'win32': ...
29.627907
99
0.600471
150
1,274
5.026667
0.56
0.068966
0.039788
0.055703
0.119363
0.119363
0
0
0
0
0
0.007718
0.288069
1,274
43
100
29.627907
0.823594
0.251962
0
0.225806
0
0
0.197243
0
0
0
0
0
0
1
0
true
0
0.225806
0
0.225806
0.193548
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
fd0bff698e1eb18d1434c9873708cb3d001b3719
1,519
py
Python
mods/NERO_Battle/menu.py
SummitChen/opennero
1bb1ba083cf2576e09bb7cfeac013d6940a47afe
[ "BSD-3-Clause" ]
215
2015-08-26T19:41:28.000Z
2022-01-19T13:23:17.000Z
mods/NERO_Battle/menu.py
SummitChen/opennero
1bb1ba083cf2576e09bb7cfeac013d6940a47afe
[ "BSD-3-Clause" ]
6
2015-11-03T19:40:24.000Z
2019-10-15T11:19:32.000Z
mods/NERO_Battle/menu.py
SummitChen/opennero
1bb1ba083cf2576e09bb7cfeac013d6940a47afe
[ "BSD-3-Clause" ]
56
2015-08-26T19:42:05.000Z
2022-02-26T16:45:41.000Z
import os import sys sys.path.append(os.path.join(sys.path[0], os.pardir)) import NERO.menu import NERO.constants try: import wx except: import tkMessageBox tkMessageBox.showwarning('Warning!', 'Could not start the external menu for NERO because wxPython is not installed.') sys.exit() class NeroPan...
31
121
0.639895
194
1,519
4.865979
0.5
0.037076
0.055085
0.036017
0
0
0
0
0
0
0
0.015358
0.22844
1,519
48
122
31.645833
0.790102
0
0
0
0
0
0.159315
0
0
0
0
0
0
0
null
null
0
0.153846
null
null
0.025641
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
fd0f67fbfcf70c12c6e3104a5f2da64c085cdd82
3,746
py
Python
attempt1.py
boyter/python-license-checker
6cd351e0c2ee5c69298687ed3b67b34104d9c3cd
[ "MIT" ]
14
2017-05-09T13:11:20.000Z
2022-03-25T08:53:59.000Z
attempt1.py
boyter/python-license-checker
6cd351e0c2ee5c69298687ed3b67b34104d9c3cd
[ "MIT" ]
null
null
null
attempt1.py
boyter/python-license-checker
6cd351e0c2ee5c69298687ed3b67b34104d9c3cd
[ "MIT" ]
5
2017-05-09T01:25:54.000Z
2019-09-10T16:49:26.000Z
import os import json import math class VectorCompare: def magnitude(self, concordance): if type(concordance) != dict: raise ValueError('Supplied Argument should be of type dict') total = 0 for word, count in concordance.iteritems(): total += count ** 2 retu...
32.859649
116
0.600641
461
3,746
4.845987
0.240781
0.026858
0.013429
0.0188
0.402417
0.317816
0.257833
0.257833
0.225604
0.185765
0
0.015304
0.284837
3,746
113
117
33.150442
0.818589
0.040844
0
0.232558
0
0
0.096127
0.01421
0
0
0
0
0
0
null
null
0
0.034884
null
null
0.046512
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
fd280c83d901f6c8af5f317a2e810af9cf96764f
1,332
py
Python
internal/migrations/0005_remove_member_card_number.py
MAKENTNU/web
7a5b512bf4c087d1561cdb623d7df4b3d04811a2
[ "MIT" ]
10
2017-11-25T01:47:20.000Z
2020-03-24T18:28:24.000Z
internal/migrations/0005_remove_member_card_number.py
MAKENTNU/web
7a5b512bf4c087d1561cdb623d7df4b3d04811a2
[ "MIT" ]
319
2017-11-16T09:56:03.000Z
2022-03-28T00:24:37.000Z
internal/migrations/0005_remove_member_card_number.py
MAKENTNU/web
7a5b512bf4c087d1561cdb623d7df4b3d04811a2
[ "MIT" ]
6
2017-11-12T14:04:08.000Z
2021-03-10T09:41:18.000Z
# Generated by Django 2.2.4 on 2019-09-23 15:04 from django.db import migrations def update_user_card_from_member(apps, schema_editor): """ Set user card number from member card number """ Member = apps.get_model('internal', 'Member') db_alias = schema_editor.connection.alias for member in M...
29.6
97
0.676426
171
1,332
5.005848
0.309942
0.128505
0.11215
0.084112
0.556075
0.509346
0.464953
0.464953
0.371495
0.264019
0
0.022222
0.222973
1,332
44
98
30.272727
0.804831
0.097598
0
0.222222
1
0
0.093083
0.043553
0
0
0
0
0
1
0.074074
false
0
0.037037
0
0.222222
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
fd3216454709181d6263ed932dd1076e94b122a6
740
py
Python
misc/test_set.py
dineshkumar2509/learning-python
e8af11ff0b396da4c3f2cfe21d14131bae4b2adb
[ "MIT" ]
86
2015-06-13T16:53:55.000Z
2022-03-24T20:56:42.000Z
misc/test_set.py
pei-zheng-yi/learning-python
55e350dfe44cf04f7d4408e76e72d2f467bd42ce
[ "MIT" ]
9
2015-05-27T07:52:44.000Z
2022-03-29T21:52:40.000Z
misc/test_set.py
pei-zheng-yi/learning-python
55e350dfe44cf04f7d4408e76e72d2f467bd42ce
[ "MIT" ]
124
2015-12-10T01:17:18.000Z
2021-11-08T04:03:38.000Z
#!/usr/bin/env python # -*- coding: UTF-8 -*- # python的set和其他语言类似, 是一个无序不重复元素集, 基本功能包括关系测试和消除重复元素. # 集合对象还支持union(联合), intersection(交), difference(差)和sysmmetric difference(对称差集)等数学运算. # sets 支持 x in set, len(set)和 for x in set. 作为一个无序的集合, sets不记录元素位置或者插入点. # 因此, sets不支持 indexing, slicing, 或其它类序列(sequence-like)的操作. # ...
15.744681
84
0.636486
123
740
3.829268
0.601626
0.101911
0.07431
0
0
0
0
0
0
0
0
0.037157
0.163514
740
46
85
16.086957
0.723748
0.590541
0
0.166667
0
0
0.041812
0
0
0
0
0
0
1
0
false
0
0
0
0
0.555556
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
fd38480532ceb956e8dbe749467761fd202389f7
1,471
py
Python
batchout/indexes/scalar.py
ilia-khaustov/batchout
e916a1b0bfac771e6c96d0ff2478dc3f44804a94
[ "MIT" ]
8
2019-11-05T06:54:30.000Z
2021-12-14T14:52:24.000Z
batchout/indexes/scalar.py
ilia-khaustov/batchout
e916a1b0bfac771e6c96d0ff2478dc3f44804a94
[ "MIT" ]
null
null
null
batchout/indexes/scalar.py
ilia-khaustov/batchout
e916a1b0bfac771e6c96d0ff2478dc3f44804a94
[ "MIT" ]
1
2020-05-05T09:31:14.000Z
2020-05-05T09:31:14.000Z
from typing import Dict, Any from batchout.core.config import with_config_key from batchout.core.registry import Registry from batchout.indexes import Index from batchout.extractors import XPathExtractor class ScalarIndexConfigInvalid(Exception): pass @with_config_key('path', raise_exc=ScalarIndexConfigInvalid...
26.745455
65
0.685248
168
1,471
5.839286
0.297619
0.04893
0.053007
0.089704
0.299694
0.270133
0.229358
0.185525
0.185525
0.185525
0
0.001723
0.210741
1,471
54
66
27.240741
0.843239
0
0
0.289474
0
0
0.027192
0
0
0
0
0
0
1
0.131579
false
0.026316
0.131579
0
0.578947
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
fd549daee37b062060661fb23e5fe4cf2b91f116
9,977
py
Python
run.py
Burence1/password-locker
15789d78b02bfdd65096dfbbb5ccfd2a480e7f95
[ "MIT" ]
null
null
null
run.py
Burence1/password-locker
15789d78b02bfdd65096dfbbb5ccfd2a480e7f95
[ "MIT" ]
null
null
null
run.py
Burence1/password-locker
15789d78b02bfdd65096dfbbb5ccfd2a480e7f95
[ "MIT" ]
null
null
null
from user import Users from credentials import Credentials def create_user(username, login_password): ''' Function that creates a new user ''' new_user = Users(username, login_password) return new_user def add_user(user): ''' Function for saving users ''' user.add_user() def delete_user(user): ''...
33.820339
206
0.498246
962
9,977
5.034304
0.172557
0.039025
0.019822
0.021681
0.246541
0.191823
0.117902
0.086517
0.077018
0.077018
0
0.003384
0.407537
9,977
294
207
33.935374
0.811538
0.042698
0
0.351852
0
0.009259
0.201635
0.016033
0
0
0
0
0
1
0.060185
false
0.175926
0.009259
0
0.106481
0.310185
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
fd5bb348ebc649b3f2f7e16e5beac18b8179c299
1,105
py
Python
mot/utils/registry.py
linkinpark213/online-mot-by-detection
3bde45cc68815f84fa73bec816a557349e5a33fd
[ "MIT" ]
null
null
null
mot/utils/registry.py
linkinpark213/online-mot-by-detection
3bde45cc68815f84fa73bec816a557349e5a33fd
[ "MIT" ]
null
null
null
mot/utils/registry.py
linkinpark213/online-mot-by-detection
3bde45cc68815f84fa73bec816a557349e5a33fd
[ "MIT" ]
null
null
null
from typing import List, Dict class Registry(object): def __init__(self, name: str) -> None: """ Args: name (str): the name of this registry """ self._name: str = name self._contents: Dict[str, object] = {} def register(self): def decorator(obj: obj...
29.078947
112
0.529412
125
1,105
4.368
0.32
0.153846
0.06044
0.065934
0.076923
0
0
0
0
0
0
0
0.334842
1,105
37
113
29.864865
0.742857
0.042534
0
0
0
0
0.086745
0
0
0
0
0
0.076923
1
0.230769
false
0
0.038462
0.038462
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
fd606d456f778469a63af30ca5e8a84d625308aa
649
py
Python
programming-laboratory-I/iffz/teorema_herao.py
MisaelAugusto/computer-science
d21335a2dc824b54ffe828370f0e6717fd0c7c27
[ "MIT" ]
null
null
null
programming-laboratory-I/iffz/teorema_herao.py
MisaelAugusto/computer-science
d21335a2dc824b54ffe828370f0e6717fd0c7c27
[ "MIT" ]
null
null
null
programming-laboratory-I/iffz/teorema_herao.py
MisaelAugusto/computer-science
d21335a2dc824b54ffe828370f0e6717fd0c7c27
[ "MIT" ]
null
null
null
# coding: utf-8 # Aluno: Misael Augusto # Matrícula: 117110525 # Problema: Utilizando o Teorema de Herão para Calcular a Área de Triângulos import math N = int(raw_input()) areas = [] for i in range(N): medidas = raw_input().split() a = float(medidas[0]) b = float(medidas[1]) c = float(medidas[2]) s = (a + b + ...
20.935484
76
0.608629
107
649
3.672897
0.485981
0.091603
0.030534
0.05598
0.061069
0
0
0
0
0
0
0.047337
0.218798
649
30
77
21.633333
0.727811
0.201849
0
0.095238
0
0
0.095517
0
0
0
0
0
0
0
null
null
0
0.047619
null
null
0.095238
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
b5c1fef23feea46a555c309b52fe4dd98baa6ca3
823
py
Python
lowfat/migrations/0109_auto_20170921_1029.py
elena-kolomeets/lowfat
f7647f5cd12519f722e41808157a96cc3e37b6ce
[ "BSD-3-Clause" ]
6
2017-02-23T16:44:36.000Z
2019-03-18T11:39:03.000Z
lowfat/migrations/0109_auto_20170921_1029.py
elena-kolomeets/lowfat
f7647f5cd12519f722e41808157a96cc3e37b6ce
[ "BSD-3-Clause" ]
286
2017-02-07T15:00:41.000Z
2022-03-08T12:56:09.000Z
lowfat/migrations/0109_auto_20170921_1029.py
elena-kolomeets/lowfat
f7647f5cd12519f722e41808157a96cc3e37b6ce
[ "BSD-3-Clause" ]
2
2018-06-19T12:38:08.000Z
2020-11-23T12:15:08.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-09-21 10:29 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('lowfat', '0108_auto_20170830_1340'), ] operations = [ migrations.AddField( ...
31.653846
138
0.599028
93
823
5.107527
0.580645
0.075789
0.096842
0.113684
0.429474
0.429474
0.429474
0.429474
0.429474
0.429474
0
0.055732
0.236938
823
25
139
32.92
0.700637
0.082625
0
0.444444
1
0
0.232713
0.091755
0
0
0
0
0
1
0
false
0
0.111111
0
0.277778
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
b5c1ff9c8a5944bfdf3c89386c5ff443268b8e3a
3,068
py
Python
oops_fhir/r4/code_system/imaging_study_status.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/code_system/imaging_study_status.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/code_system/imaging_study_status.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
from pathlib import Path from fhir.resources.codesystem import CodeSystem from oops_fhir.utils import CodeSystemConcept __all__ = ["ImagingStudyStatus"] _resource = CodeSystem.parse_file(Path(__file__).with_suffix(".json")) class ImagingStudyStatus: """ ImagingStudyStatus The status of the ImagingSt...
32.989247
323
0.652216
363
3,068
5.471074
0.330579
0.060423
0.060423
0.03424
0.638469
0.638469
0.638469
0.638469
0.638469
0.638469
0
0.001774
0.264993
3,068
92
324
33.347826
0.878936
0.045632
0
0
0
0.069767
0.509764
0.010791
0
0
0
0
0
1
0
false
0
0.069767
0
0.232558
0
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
b5c487fcbac242aa8288488e37763a900d11a01f
516
py
Python
zabbix/tests/conftest.py
CTAC-unixsupport/stackstate-agent-integrations
9ac167e182e69d035a09bedec9bbceb135e2727b
[ "BSD-3-Clause" ]
2
2020-03-10T13:21:37.000Z
2021-04-01T07:52:16.000Z
zabbix/tests/conftest.py
DennisLoos/stackstate-agent-integrations
8a8cc1607a8f1b8560e450d15cefa0d8d1227674
[ "BSD-3-Clause" ]
33
2020-02-05T16:18:32.000Z
2022-03-21T14:08:04.000Z
zabbix/tests/conftest.py
DennisLoos/stackstate-agent-integrations
8a8cc1607a8f1b8560e450d15cefa0d8d1227674
[ "BSD-3-Clause" ]
7
2020-03-10T13:21:39.000Z
2021-03-11T07:16:44.000Z
# (C) StackState 2020 # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import pytest @pytest.fixture(scope='session') def sts_environment(): return { "url": "http://localhost/api_jsonrpc.php", "user": "Admin", "password": "zabbix" } @pytest.fixture(sc...
21.5
59
0.604651
62
516
4.983871
0.677419
0.084142
0.116505
0.110032
0.23301
0.23301
0.23301
0
0
0
0
0.025253
0.232558
516
23
60
22.434783
0.755051
0.187985
0
0.25
0
0
0.322892
0
0
0
0
0
0
1
0.125
false
0.125
0.0625
0.0625
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
b5c582ade98ef2f2441879337cf6532d82534c04
599
py
Python
apis/consent/serializers.py
computablelabs/capi
44e349fa3c71c8d2d390cdf2a5b7b8892807b40a
[ "MIT" ]
null
null
null
apis/consent/serializers.py
computablelabs/capi
44e349fa3c71c8d2d390cdf2a5b7b8892807b40a
[ "MIT" ]
43
2019-09-03T14:50:23.000Z
2019-12-18T17:30:11.000Z
apis/consent/serializers.py
computablelabs/capi
44e349fa3c71c8d2d390cdf2a5b7b8892807b40a
[ "MIT" ]
1
2019-10-15T14:41:28.000Z
2019-10-15T14:41:28.000Z
from flask_restplus import Model, fields Consent = Model('Consent', { 'timestamp': fields.Integer(required=True, description='When the consent was agreed upon'), 'from_us': fields.Boolean(required=True, description='Self identification as a "US Person"'), 'version': fields.Integer(required=True, descriptio...
46.076923
97
0.729549
71
599
6.126761
0.535211
0.137931
0.264368
0.114943
0.326437
0
0
0
0
0
0
0
0.138564
599
12
98
49.916667
0.843023
0
0
0.2
0
0
0.370618
0
0
0
0
0
0
1
0
false
0
0.1
0
0.1
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
b5c5aab5e9a58ff2811671f8e93c2dd6c8cf7e45
996
py
Python
dialRL/additional_code/test_float_conversion.py
PawelMlyniec/Dail-a-ride
2b8954f9041b7635bcf8fa44e9129f2cd391f457
[ "MIT" ]
1
2020-12-24T22:08:52.000Z
2020-12-24T22:08:52.000Z
dialRL/additional_code/test_float_conversion.py
Thibaud-Ardoin/Dial-a-Ride
7d9b3cd904d3194dccad31fec2533e2cf58cad0c
[ "MIT" ]
null
null
null
dialRL/additional_code/test_float_conversion.py
Thibaud-Ardoin/Dial-a-Ride
7d9b3cd904d3194dccad31fec2533e2cf58cad0c
[ "MIT" ]
null
null
null
import numpy as np from dialRL.utils import distance, float_equality origin = np.array([1. , 1.]) target = np.array([10., 10.]) print('origin position: ', origin) print('Traget position: ', target) a = distance(origin, target) b = np.random.uniform(0, 9) # , b = np.random.uniform(0, 9) # a, b = np.max([a, b]), np....
26.210526
78
0.693775
161
996
4.136646
0.304348
0.036036
0.031532
0.048048
0.054054
0.054054
0
0
0
0
0
0.01889
0.149598
996
37
79
26.918919
0.767414
0.068273
0
0
0
0
0.305946
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
0.454545
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
b5c6af1c6caab6046df0e4531e80aacade1a880b
454
py
Python
pygraz_website/apps/meetups/decorators.py
pygraz/website
e319d07853ab045b4db29395946a6bc9a70b955d
[ "BSD-3-Clause" ]
null
null
null
pygraz_website/apps/meetups/decorators.py
pygraz/website
e319d07853ab045b4db29395946a6bc9a70b955d
[ "BSD-3-Clause" ]
11
2015-05-04T20:52:22.000Z
2021-09-07T23:57:06.000Z
pygraz_website/apps/meetups/decorators.py
pygraz/website
e319d07853ab045b4db29395946a6bc9a70b955d
[ "BSD-3-Clause" ]
4
2017-11-08T09:17:28.000Z
2018-12-03T11:37:46.000Z
from django.http import HttpResponseForbidden def allow_only_staff_or_author_during_submission(method): def _func(self, request, *args, **kwargs): user = request.user self.kwargs = kwargs obj = self.get_object() if user.is_superuser or user.is_staff or obj.speaker is not None and u...
34.923077
97
0.687225
58
454
5.189655
0.534483
0.046512
0.099668
0.139535
0
0
0
0
0
0
0
0
0.229075
454
12
98
37.833333
0.86
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.1
0
0.6
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
b5d336f86b2842794d64a0e075842027d558e3b6
806
py
Python
karmabot/core/facets/name.py
chromakode/karmabot
d8fe4fd1303320d577a41194b3e0f0258d4d5362
[ "BSD-3-Clause" ]
7
2015-02-24T00:05:03.000Z
2020-03-30T05:29:16.000Z
karmabot/core/facets/name.py
chromakode/karmabot
d8fe4fd1303320d577a41194b3e0f0258d4d5362
[ "BSD-3-Clause" ]
1
2016-10-07T03:09:18.000Z
2016-10-07T03:09:18.000Z
karmabot/core/facets/name.py
chromakode/karmabot
d8fe4fd1303320d577a41194b3e0f0258d4d5362
[ "BSD-3-Clause" ]
1
2020-03-30T05:29:17.000Z
2020-03-30T05:29:17.000Z
# Copyright the Karmabot authors and contributors. # All rights reserved. See AUTHORS. # # This file is part of 'karmabot' and is distributed under the BSD license. # See LICENSE for more details. from karmabot.core.commands import CommandSet, action from .base import Facet from ..ircutils import bold class NameFac...
28.785714
75
0.687345
107
806
5.140187
0.598131
0.04
0
0
0
0
0
0
0
0
0
0.001587
0.218362
806
27
76
29.851852
0.871429
0.294045
0
0
0
0
0.088968
0
0
0
0
0
0
1
0.2
false
0
0.2
0.133333
0.8
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
b5d3c1ce51e84699e6e217a5aff57ec44d13c39e
7,875
py
Python
Figures/Fig3_importances.py
dabrze/CheckMyBlob
237587c503a2b0636a397d530b822672e0d10267
[ "MIT" ]
8
2018-11-15T08:37:35.000Z
2021-09-18T12:01:00.000Z
Figures/Fig3_importances.py
dabrze/CheckMyBlob
237587c503a2b0636a397d530b822672e0d10267
[ "MIT" ]
null
null
null
Figures/Fig3_importances.py
dabrze/CheckMyBlob
237587c503a2b0636a397d530b822672e0d10267
[ "MIT" ]
null
null
null
import glob import os import numpy as np import matplotlib import matplotlib.pyplot as plt plt.switch_backend('agg') import pandas as pd def read_file(path): print "reading", path return pd.read_csv(path, header=0, index_col=0) def read_files(directory, wildcard): path = os.path.join(di...
43.994413
152
0.663873
1,194
7,875
4.110553
0.178392
0.03912
0.045029
0.04564
0.345558
0.290546
0.242461
0.199267
0.179095
0.147718
0
0.044325
0.152
7,875
178
153
44.241573
0.690626
0.006476
0
0.014286
0
0.028571
0.53062
0.245355
0
0
0
0
0
0
null
null
0
0.092857
null
null
0.042857
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
b5da14fb7c377715747acf2734f0c926f7aab773
2,321
py
Python
conans/cli/commands/search.py
ninjayash/conan
00fbc925fde93a148abfbcebf236c6b4f2da0572
[ "MIT" ]
1
2020-11-07T21:25:57.000Z
2020-11-07T21:25:57.000Z
conans/cli/commands/search.py
ninjayash/conan
00fbc925fde93a148abfbcebf236c6b4f2da0572
[ "MIT" ]
9
2017-10-07T06:23:10.000Z
2021-06-29T15:22:27.000Z
conans/cli/commands/search.py
ninjayash/conan
00fbc925fde93a148abfbcebf236c6b4f2da0572
[ "MIT" ]
1
2022-03-23T18:07:31.000Z
2022-03-23T18:07:31.000Z
import json from conans.client.output import Color from conans.errors import NoRemoteAvailable from conans.cli.command import conan_command, Extender def output_search_cli(info, out): results = info["results"] for remote_info in results: source = "cache" if remote_info["remote"] is None else str(remo...
38.683333
107
0.623869
281
2,321
5.003559
0.359431
0.049787
0.021337
0.025605
0.035562
0
0
0
0
0
0
0.005181
0.251616
2,321
59
108
39.338983
0.80426
0.061181
0
0.05
0
0
0.161812
0
0
0
0
0.016949
0
1
0.1
false
0
0.1
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
1
0
0
0
0
0
0
0
0
0
0
1
b5da28f0119f116ccb89c423496223a89d769dfd
206
py
Python
datavisualization.py
Maheerr2707/C-103HW
b7199bc924442669c3eb829600bf3652ba9d6463
[ "MIT" ]
null
null
null
datavisualization.py
Maheerr2707/C-103HW
b7199bc924442669c3eb829600bf3652ba9d6463
[ "MIT" ]
null
null
null
datavisualization.py
Maheerr2707/C-103HW
b7199bc924442669c3eb829600bf3652ba9d6463
[ "MIT" ]
null
null
null
import pandas as pd import plotly.express as px df=pd.read_csv("Covid Data.csv") print(df) fig = px.scatter(df,x="date",y="cases",color="country", title="Covid cases of countries") fig.show()
18.727273
90
0.679612
35
206
3.971429
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.160194
206
10
91
20.6
0.803468
0
0
0
0
0
0.27551
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.166667
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
b5da6d754f4def887b63ac2d8f2ff9e60308935d
315
py
Python
utils/constants.py
msciotti/discord_rpc_tester
cde1893a73ef7d6a16390f16ea5c51f0aa6ae3f0
[ "MIT" ]
3
2020-05-28T15:35:48.000Z
2021-05-12T01:51:43.000Z
utils/constants.py
msciotti/discord_rpc_tester
cde1893a73ef7d6a16390f16ea5c51f0aa6ae3f0
[ "MIT" ]
null
null
null
utils/constants.py
msciotti/discord_rpc_tester
cde1893a73ef7d6a16390f16ea5c51f0aa6ae3f0
[ "MIT" ]
1
2021-02-01T09:15:34.000Z
2021-02-01T09:15:34.000Z
TOKEN_URL = 'https://discordapp.com/api/oauth2/token' GROUP_DM_URL = 'https://discordapp.com/api/users/@me/channels' RPC_TOKEN_URL_FRAGMENT = '/rpc' RPC_HOSTNAME = 'ws://127.0.0.1:' RPC_QUERYSTRING = '?v=1&encoding=json&client_id=' CLIENT_ID = '' CLIENT_SECRET = '' REDIRECT_URI = '' RPC_ORIGIN = '' BOT_TOKEN = ''
28.636364
62
0.714286
48
315
4.395833
0.625
0.075829
0.170616
0.199052
0.227488
0
0
0
0
0
0
0.02807
0.095238
315
10
63
31.5
0.712281
0
0
0
0
0
0.419048
0.092063
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
b5dcff20fa49898ca258f08048c262c255954349
9,963
py
Python
lib/usage.py
runblood/get_mysql_stats
4f340259b2b65926f5e0fbbbffa2a4c04bec8b54
[ "Apache-2.0" ]
2
2021-01-07T08:59:03.000Z
2021-01-09T01:48:28.000Z
lib/usage.py
runblood/db-tools
4f340259b2b65926f5e0fbbbffa2a4c04bec8b54
[ "Apache-2.0" ]
null
null
null
lib/usage.py
runblood/db-tools
4f340259b2b65926f5e0fbbbffa2a4c04bec8b54
[ "Apache-2.0" ]
null
null
null
#!/usr/local/bin/python3.6 #-*- coding: utf-8 -*- #Author WangJiang@2019 15810438848 634615288@qq.com #All rights reserved ################################################################################################################ import argparse ###################################################################...
50.573604
146
0.658135
1,163
9,963
5.273431
0.159071
0.074841
0.105332
0.106147
0.675689
0.667536
0.599054
0.520789
0.463395
0.446437
0
0.005768
0.182174
9,963
196
147
50.831633
0.746932
0.09465
0
0.446281
0
0
0.159156
0
0
0
0
0
0
1
0.165289
false
0.14876
0.016529
0
0.280992
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
b5eae1978f228091717a64147f7646ba729535b9
1,076
py
Python
deepcave/utils/compression.py
automl/DeepCAVE
62084793e76d6d9e7797163ac1d515d2b2ce56e9
[ "Apache-2.0" ]
11
2021-11-15T09:49:41.000Z
2022-01-18T09:57:43.000Z
deepcave/utils/compression.py
automl/DeepCAVE
62084793e76d6d9e7797163ac1d515d2b2ce56e9
[ "Apache-2.0" ]
9
2021-12-13T10:20:14.000Z
2022-03-30T15:37:19.000Z
deepcave/utils/compression.py
automl/DeepCAVE
62084793e76d6d9e7797163ac1d515d2b2ce56e9
[ "Apache-2.0" ]
2
2021-11-19T12:22:11.000Z
2021-12-13T13:01:37.000Z
from typing import TypeVar, Union, Dict, List import json import numpy as np import pandas as pd JSON_DENSE_SEPARATORS = (",", ":") TYPE = TypeVar("TYPE") def serialize(data: Union[Dict, List, pd.DataFrame]) -> str: """ Serialize a dataframe to a string. """ class Encoder(json.JSONEncoder): ...
26.9
93
0.657063
141
1,076
4.943262
0.368794
0.07891
0.081779
0.045911
0.157819
0.083214
0
0
0
0
0
0
0.224907
1,076
39
94
27.589744
0.835731
0.184015
0
0
0
0
0.007092
0
0
0
0
0.051282
0
1
0.157895
false
0
0.210526
0
0.736842
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
b5ed1b4aefa003b48f9b5c879639f45b7a241a89
483
py
Python
tests/test_evaluation.py
tahsmith/pycmake
acff91be83e9cff9ff9b65e5895340d14da075ea
[ "MIT" ]
null
null
null
tests/test_evaluation.py
tahsmith/pycmake
acff91be83e9cff9ff9b65e5895340d14da075ea
[ "MIT" ]
null
null
null
tests/test_evaluation.py
tahsmith/pycmake
acff91be83e9cff9ff9b65e5895340d14da075ea
[ "MIT" ]
null
null
null
from unittest import TestCase from cmake.context import Context __author__ = 'tahsmith' class TestEvaluationContext(TestCase): ctx = Context() def test_variable_lookup(self): self.ctx.variable_stack[0]['x'] = 'x-value' self.assertEqual( self.ctx.variable_lookup('x'), 'x-value' ...
24.15
60
0.623188
57
483
5.105263
0.403509
0.09622
0.206186
0.137457
0.295533
0.295533
0.295533
0.295533
0.295533
0
0
0.002725
0.240166
483
19
61
25.421053
0.790191
0
0
0.142857
0
0
0.099379
0
0
0
0
0
0.142857
1
0.071429
false
0
0.142857
0
0.357143
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
b5ef61f4369f2e63d24b6e9c5f59f797093ad777
411
py
Python
player/migrations/0010_auto_20200403_1810.py
kos33rd/ac-friends
d65dbbe48755d5f8c637640f611084b01f2f66b4
[ "MIT" ]
1
2020-05-06T14:03:38.000Z
2020-05-06T14:03:38.000Z
player/migrations/0010_auto_20200403_1810.py
kos33rd/ac-friends
d65dbbe48755d5f8c637640f611084b01f2f66b4
[ "MIT" ]
null
null
null
player/migrations/0010_auto_20200403_1810.py
kos33rd/ac-friends
d65dbbe48755d5f8c637640f611084b01f2f66b4
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2020-04-03 18:10 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('player', '0009_auto_20200403_1809'), ] operations = [ migrations.AlterField( model_name='player', name='commentary',...
21.631579
72
0.608273
45
411
5.466667
0.822222
0
0
0
0
0
0
0
0
0
0
0.104027
0.274939
411
18
73
22.833333
0.721477
0.109489
0
0
1
0
0.123626
0.063187
0
0
0
0
0
1
0
false
0
0.083333
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b5f3a6f6f7cbb3e3d69982682015263bac7be6c5
280
py
Python
python-data-analysis/numpy/ndarray-concatenate-stack/row_vstack.py
nkhn37/python-tech-sample-source
e8aea7ed3d810494682b3c2dde952ddd0f7acf84
[ "MIT" ]
null
null
null
python-data-analysis/numpy/ndarray-concatenate-stack/row_vstack.py
nkhn37/python-tech-sample-source
e8aea7ed3d810494682b3c2dde952ddd0f7acf84
[ "MIT" ]
null
null
null
python-data-analysis/numpy/ndarray-concatenate-stack/row_vstack.py
nkhn37/python-tech-sample-source
e8aea7ed3d810494682b3c2dde952ddd0f7acf84
[ "MIT" ]
null
null
null
"""NumPy基礎 配列(ndarray)の結合方法 行方向の結合(vstackを使用する場合) [説明ページ] https://tech.nkhn37.net/numpy-ndarray-concatenate-vstack-hstack/#vstack """ import numpy as np x = np.arange(9).reshape((3, 3)) y = np.arange(9).reshape((3, 3)) # 2次元配列を行方向に結合する result = np.vstack((x, y)) print(result)
17.5
71
0.707143
43
280
4.604651
0.627907
0.080808
0.090909
0.161616
0.181818
0.181818
0
0
0
0
0
0.035714
0.1
280
15
72
18.666667
0.75
0.510714
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.2
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
b5f436c17ddba5cc595bb7341028f123e82e9c8c
689
py
Python
tests/dataset_utils/datasets.py
APodolskiy/SentenceVAE
afe82504922de700810b24638f7df0dbf1d8fa11
[ "MIT" ]
null
null
null
tests/dataset_utils/datasets.py
APodolskiy/SentenceVAE
afe82504922de700810b24638f7df0dbf1d8fa11
[ "MIT" ]
null
null
null
tests/dataset_utils/datasets.py
APodolskiy/SentenceVAE
afe82504922de700810b24638f7df0dbf1d8fa11
[ "MIT" ]
null
null
null
import pytest from torchtext.data import Field from svae.dataset_utils import SOS_TOKEN, EOS_TOKEN, UNK_TOKEN, PAD_TOKEN from svae.dataset_utils.datasets import YelpReview def test_yelp_review(): TEXT = Field(sequential=True, use_vocab=True, lower=True, init_token=SOS_TOKEN, eos_token=EOS_TOKEN, ...
40.529412
114
0.735849
105
689
4.561905
0.447619
0.041754
0.08142
0.083507
0
0
0
0
0
0
0
0.064736
0.148041
689
16
115
43.0625
0.751278
0
0
0
0
0
0.053701
0.037736
0
0
0
0
0.25
1
0.083333
false
0
0.333333
0
0.416667
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
b5fa1cb9370daace991d60b288c74a4644a74bc0
5,710
py
Python
apps/users/tests/test_api/private/test_invalid_requests.py
GiannisClipper/payments
94e08144597b3f4cd0de8485edf3f5535aeb9da6
[ "MIT" ]
null
null
null
apps/users/tests/test_api/private/test_invalid_requests.py
GiannisClipper/payments
94e08144597b3f4cd0de8485edf3f5535aeb9da6
[ "MIT" ]
null
null
null
apps/users/tests/test_api/private/test_invalid_requests.py
GiannisClipper/payments
94e08144597b3f4cd0de8485edf3f5535aeb9da6
[ "MIT" ]
null
null
null
from unittest import skip # noqa: F401 from django.urls import reverse from rest_framework import status from . import UsersPrivateAPITests from users.constants import ( USERNAME_REQUIRED, USERNAME_EXISTS, PASSWORD_REQUIRED, PASSWORD_TOO_SHORT, EMAIL_REQUIRED, EMAIL_EXISTS, INPUT_NOT_MATC...
32.259887
89
0.695797
680
5,710
5.691176
0.15
0.034367
0.034884
0.04186
0.614729
0.590956
0.590956
0.460982
0.43876
0.366408
0
0.007291
0.183363
5,710
176
90
32.443182
0.822646
0.117863
0
0.384615
0
0
0.074753
0
0
0
0
0
0.240385
1
0.076923
false
0.067308
0.048077
0
0.375
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
bd111d5ac4ebc51002aa960caec6d89618e2ddd5
14,359
py
Python
App0/forms.py
LTSana/lost-empire
495397345f1226b025434e37c5e1703273f475a8
[ "CC0-1.0" ]
null
null
null
App0/forms.py
LTSana/lost-empire
495397345f1226b025434e37c5e1703273f475a8
[ "CC0-1.0" ]
null
null
null
App0/forms.py
LTSana/lost-empire
495397345f1226b025434e37c5e1703273f475a8
[ "CC0-1.0" ]
null
null
null
from django import forms from django.core.validators import RegexValidator, validate_email import emoji import json # Import PayPal API from .utils.paypal_api import GetOrder class SigninForm(forms.Form): """ Form for signing in """ email = forms.EmailField( max_length=1600, min_length=1, label="E-mail addre...
30.946121
120
0.706038
2,072
14,359
4.798263
0.122587
0.038021
0.016295
0.029873
0.60179
0.557634
0.456347
0.416415
0.373064
0.325186
0
0.015126
0.180444
14,359
463
121
31.012959
0.829623
0.083293
0
0.418421
0
0.005263
0.477238
0
0
0
0
0
0
1
0.013158
false
0.144737
0.013158
0
0.15
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
bd19aa7a11c8ae7438be822fe0c7bf1dc77b80c4
1,976
py
Python
generate_db.py
Horse-Race-Prediction-System/TJK-Scraper
51e80c61a006d4628ac5590e6fc892f63d9b6b4d
[ "BSD-3-Clause" ]
3
2020-03-12T15:56:47.000Z
2020-11-19T20:55:14.000Z
generate_db.py
Horse-Race-Prediction-System/TJK-Scraper
51e80c61a006d4628ac5590e6fc892f63d9b6b4d
[ "BSD-3-Clause" ]
1
2020-04-10T23:28:16.000Z
2020-04-10T23:28:16.000Z
generate_db.py
Horse-Race-Prediction-System/TJK-Scraper
51e80c61a006d4628ac5590e6fc892f63d9b6b4d
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 """This script takes a horse dataset and generates an SQLite3 database out of it.""" import csv import sqlite3 import sys import re NUMBER_PREFIX = re.compile("\d+") # Get the required arguments try: horses_csv, target_db = sys.argv[1:] except ValueError: print("Usage:", sys.argv[0], "...
27.830986
86
0.655364
283
1,976
4.540636
0.420495
0.081712
0.070039
0.052918
0.057588
0.057588
0.057588
0
0
0
0
0.020612
0.238866
1,976
70
87
28.228571
0.833777
0.215587
0
0.0625
1
0
0.202569
0
0
0
0
0
0
1
0
false
0
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bd1bd8665cce2f15b21d2b15e2cd7acdc64b58c7
354
py
Python
UVa 640 self numbers/sample/main.py
tadvi/uva
0ac0cbdf593879b4fb02a3efc09adbb031cb47d5
[ "MIT" ]
1
2020-11-24T03:17:21.000Z
2020-11-24T03:17:21.000Z
UVa 640 self numbers/sample/main.py
tadvi/uva
0ac0cbdf593879b4fb02a3efc09adbb031cb47d5
[ "MIT" ]
null
null
null
UVa 640 self numbers/sample/main.py
tadvi/uva
0ac0cbdf593879b4fb02a3efc09adbb031cb47d5
[ "MIT" ]
1
2021-04-11T16:22:31.000Z
2021-04-11T16:22:31.000Z
from bitstring import BitArray import sys MAXN = 1000000 bits = BitArray(MAXN) for x in range(1, MAXN): if not bits[x]: print x while True: next = x + sum(ord(c) - ord('0') for c in str(x)) if next < MAXN: bits.set(True, next) x = next ...
20.823529
61
0.477401
48
354
3.520833
0.5625
0.094675
0.106509
0
0
0
0
0
0
0
0
0.044554
0.429379
354
16
62
22.125
0.792079
0
0
0
0
0
0.002825
0
0
0
0
0
0
0
null
null
0
0.142857
null
null
0.071429
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
bd2394acb578a1bf6330af7614ce260d80511fe8
981
py
Python
leetcode/200.NumberOfIsland/soln.py
saisankargochhayat/algo_quest
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
[ "Apache-2.0" ]
3
2017-02-15T20:55:04.000Z
2018-09-26T18:48:24.000Z
leetcode/200.NumberOfIsland/soln.py
saisankargochhayat/algo_quest
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
[ "Apache-2.0" ]
4
2017-10-07T18:59:20.000Z
2019-10-08T05:43:25.000Z
leetcode/200.NumberOfIsland/soln.py
saisankargochhayat/algo_quest
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
[ "Apache-2.0" ]
1
2017-10-08T06:52:21.000Z
2017-10-08T06:52:21.000Z
# import copy class Solution: def numIslands(self, grid: List[List[str]]) -> int: if not grid: return 0 # copyGrid = copy.deepcopy(grid) copyGrid = grid m = len(grid) n = len(grid[0]) res = 0 for i in range(m): for j in range(n): ...
30.65625
62
0.454638
128
981
3.484375
0.28125
0.141256
0.112108
0.161435
0.103139
0.044843
0
0
0
0
0
0.026132
0.414883
981
31
63
31.645161
0.750871
0.086646
0
0.083333
0
0
0.003375
0
0
0
0
0
0
1
0.083333
false
0
0
0
0.291667
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
bd31bc49d5d526ea31ed1d117d2b442e1a1039a1
284
py
Python
gitgud/levels/intro/__init__.py
Fiss-and-Fuse/git-gud
d26fbdb1ba92119de3c581e5994b4dd3711c88df
[ "MIT" ]
null
null
null
gitgud/levels/intro/__init__.py
Fiss-and-Fuse/git-gud
d26fbdb1ba92119de3c581e5994b4dd3711c88df
[ "MIT" ]
null
null
null
gitgud/levels/intro/__init__.py
Fiss-and-Fuse/git-gud
d26fbdb1ba92119de3c581e5994b4dd3711c88df
[ "MIT" ]
null
null
null
from collections import OrderedDict import pkg_resources from gitgud.levels.util import BasicChallenge all_challenges = OrderedDict() all_challenges['commits'] = BasicChallenge('commits', pkg_resources.resource_filename(__name__, '_commits/')) del pkg_resources del BasicChallenge
25.818182
109
0.834507
32
284
7.0625
0.53125
0.159292
0
0
0
0
0
0
0
0
0
0
0.088028
284
11
110
25.818182
0.872587
0
0
0
0
0
0.080702
0
0
0
0
0
0
1
0
false
0
0.428571
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
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
bd35e63f4ce2ab9ec81b8c5dc2549640ac77848e
522
py
Python
IT Workshop Practice Scripts/super method.py
AswinBarath/IT-Workshop-on-Python
07392c849546b0fec8c14a41ee8a2327c598345d
[ "MIT" ]
null
null
null
IT Workshop Practice Scripts/super method.py
AswinBarath/IT-Workshop-on-Python
07392c849546b0fec8c14a41ee8a2327c598345d
[ "MIT" ]
null
null
null
IT Workshop Practice Scripts/super method.py
AswinBarath/IT-Workshop-on-Python
07392c849546b0fec8c14a41ee8a2327c598345d
[ "MIT" ]
null
null
null
class Person: def __init__(self, name): self.name = name def display1(self): print('End of the Statement') class Student(Person): def __init__(self, name, usn, branch): super().__init__(name) self.name = name self.usn = usn self.branch = branch def dis...
20.88
42
0.570881
65
522
4.4
0.338462
0.13986
0.125874
0.118881
0.146853
0
0
0
0
0
0
0.016043
0.283525
522
24
43
21.75
0.748663
0
0
0.111111
0
0
0.155172
0
0
0
0
0
0
1
0.222222
false
0
0
0
0.333333
0.222222
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
bd385f28e893098f82c6b5f494e2c5b0c69f04e7
1,746
py
Python
alembic/versions/2020-01-20_669e9df34ea7_add_new_netloc_tracking_table.py
fake-name/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
193
2016-08-02T22:04:35.000Z
2022-03-09T20:45:41.000Z
alembic/versions/2020-01-20_669e9df34ea7_add_new_netloc_tracking_table.py
fake-name/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
533
2016-08-23T20:48:23.000Z
2022-03-28T15:55:13.000Z
alembic/versions/2020-01-20_669e9df34ea7_add_new_netloc_tracking_table.py
rrosajp/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
19
2015-08-13T18:01:08.000Z
2021-07-12T17:13:09.000Z
"""add new netloc tracking table Revision ID: 669e9df34ea7 Revises: 5552dfae2cb0 Create Date: 2020-01-20 01:36:51.862767 """ # revision identifiers, used by Alembic. revision = '669e9df34ea7' down_revision = '5552dfae2cb0' branch_labels = None depends_on = None from alembic import op import sqlalchemy as sa from s...
32.333333
106
0.757159
226
1,746
5.712389
0.39823
0.086754
0.102246
0.123935
0.281952
0.164214
0.119287
0.119287
0
0
0
0.030323
0.131157
1,746
53
107
32.943396
0.820699
0.214777
0
0
0
0
0.146287
0.043511
0
0
0
0
0
1
0.0625
false
0
0.4375
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
bd3873afdd6bb6c17ce7a0c51bf7dcbf8943a53e
697
py
Python
safe_transaction_service/contracts/tests/test_sourcify.py
bigman1208000/safe-transaction-service
283a278eeb06aaf9227047b96816e63d2a7b9466
[ "MIT" ]
5
2021-01-28T17:41:42.000Z
2021-11-14T17:09:18.000Z
safe_transaction_service/contracts/tests/test_sourcify.py
bigman1208000/safe-transaction-service
283a278eeb06aaf9227047b96816e63d2a7b9466
[ "MIT" ]
null
null
null
safe_transaction_service/contracts/tests/test_sourcify.py
bigman1208000/safe-transaction-service
283a278eeb06aaf9227047b96816e63d2a7b9466
[ "MIT" ]
5
2021-04-06T17:20:02.000Z
2022-01-13T10:58:08.000Z
from typing import List from django.test import TestCase from ..clients import Sourcify class TestSourcify(TestCase): def test_get_contract_metadata(self): sourcify = Sourcify() safe_contract_address = '0x6851D6fDFAfD08c0295C392436245E5bc78B0185' contract_metadata = sourcify.get_contract...
38.722222
103
0.780488
74
697
7.040541
0.391892
0.307102
0.109405
0.103647
0.176583
0.176583
0.176583
0
0
0
0
0.049236
0.15495
697
17
104
41
0.835314
0
0
0
0
0
0.074605
0.060258
0
0
0.060258
0
0.307692
1
0.076923
false
0
0.230769
0
0.384615
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
bd387b2a10ed29987262a5630aaf860d62e79e68
2,940
py
Python
hello.py
Snowty/python_flask
d6da3b9af74fb87877fa8fef56158ac6f70a2672
[ "MIT" ]
null
null
null
hello.py
Snowty/python_flask
d6da3b9af74fb87877fa8fef56158ac6f70a2672
[ "MIT" ]
null
null
null
hello.py
Snowty/python_flask
d6da3b9af74fb87877fa8fef56158ac6f70a2672
[ "MIT" ]
null
null
null
from flask import Flask, render_template,session,redirect,url_for,flash,request,\ current_app from flask_script import Manager,Shell from flask_bootstrap import Bootstrap from flask_moment import Moment from flask_wtf import FlaskForm from wtforms import StringField, SubmitField,TextAreaField from wtforms.validator...
33.409091
175
0.72381
387
2,940
5.335917
0.325581
0.030993
0.038741
0.046489
0.0523
0
0
0
0
0
0
0.012171
0.133673
2,940
87
176
33.793103
0.798587
0.019388
0
0
0
0
0.08504
0.018049
0
0
0
0
0
1
0.088235
false
0
0.147059
0.058824
0.588235
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
bd3bf5ac2581d06eada1569d911712cc1fd88ed3
2,894
py
Python
cnntflearn/prepare_dataset.py
fioritonicolas/cnn_machinelearning
b6a6b93e58432588573fe886ca7fae131d0ceea6
[ "Apache-2.0" ]
null
null
null
cnntflearn/prepare_dataset.py
fioritonicolas/cnn_machinelearning
b6a6b93e58432588573fe886ca7fae131d0ceea6
[ "Apache-2.0" ]
null
null
null
cnntflearn/prepare_dataset.py
fioritonicolas/cnn_machinelearning
b6a6b93e58432588573fe886ca7fae131d0ceea6
[ "Apache-2.0" ]
null
null
null
import os import random #the path directory where are the images contained in oder directorys path = '/Users/nicolas/workspace/machinelearning/retraining/tf_files/people_photos' dataset_result_path = 'dataset' name_dataset_file = 'dataset.txt' name_datatest_file = 'datatest.txt' name_labels_file = 'labels.txt' valid_e...
34.452381
177
0.723912
448
2,894
4.381696
0.241071
0.038207
0.055018
0.067753
0.468161
0.331126
0.311768
0.186449
0.145695
0.109017
0
0.010417
0.170698
2,894
83
178
34.86747
0.8075
0.112301
0
0.037736
0
0
0.091833
0.028918
0
0
0
0
0
0
null
null
0
0.056604
null
null
0.113208
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
bd40a286c18f7bffec4f2d22455422cb8574363f
504
py
Python
nuclear/args/container.py
igrek51/glue
6726ba977a21e58b354a5c97f68639f84184be7a
[ "MIT" ]
6
2020-06-24T20:03:06.000Z
2021-09-21T10:05:17.000Z
nuclear/args/container.py
igrek51/cliglue
6726ba977a21e58b354a5c97f68639f84184be7a
[ "MIT" ]
2
2021-09-19T15:28:02.000Z
2021-09-21T17:29:38.000Z
nuclear/args/container.py
igrek51/cliglue
6726ba977a21e58b354a5c97f68639f84184be7a
[ "MIT" ]
2
2020-06-24T21:21:35.000Z
2021-08-01T17:24:38.000Z
from typing import Dict, Any from nuclear.parser.keyword import format_var_name class ArgsContainer(object): def __init__(self, _vars: Dict[str, Any]): self.__vars = _vars def __getattr__(self, name): if name in self.__vars: return self.__vars[name] else: rais...
24
52
0.625
63
504
4.52381
0.444444
0.196491
0.147368
0.112281
0.168421
0.168421
0
0
0
0
0
0
0.293651
504
20
53
25.2
0.800562
0
0
0.133333
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.133333
0
0.6
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
bd41114f99571ab516ff16ed8fbd3d85b6be6cb4
855
py
Python
pyckaxe/lib/resource/function/function.py
Arcensoth/pyckaxe
09ed0828d6660a233b827721454293579329991b
[ "MIT" ]
3
2018-09-23T05:16:44.000Z
2021-12-23T03:06:07.000Z
pyckaxe/lib/resource/function/function.py
Arcensoth/pyckaxe
09ed0828d6660a233b827721454293579329991b
[ "MIT" ]
5
2018-07-11T02:31:56.000Z
2018-07-11T03:15:05.000Z
pyckaxe/lib/resource/function/function.py
Arcensoth/pyckaxe
09ed0828d6660a233b827721454293579329991b
[ "MIT" ]
null
null
null
from dataclasses import dataclass from typing import Any, List, TypeAlias from pyckaxe.lib.pack.abc.resource import Resource from pyckaxe.lib.pack.resource_collection import ResourceCollection from pyckaxe.lib.pack.resource_link import ResourceLink from pyckaxe.lib.pack.resource_location import ClassifiedResourceLocat...
30.535714
82
0.825731
80
855
8.7125
0.375
0.07891
0.10043
0.129125
0.149211
0
0
0
0
0
0
0
0.105263
855
27
83
31.666667
0.911111
0
0
0
0
0
0.092398
0.02924
0
0
0
0
0
1
0
false
0
0.333333
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
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
bd45f34267039efd1e7b930d523ce191dc0862fc
452
py
Python
setting.py
yxcxx/upass
aab3f1cf139cff59018eb999fbd3a2bd19e3a5b0
[ "MIT" ]
null
null
null
setting.py
yxcxx/upass
aab3f1cf139cff59018eb999fbd3a2bd19e3a5b0
[ "MIT" ]
null
null
null
setting.py
yxcxx/upass
aab3f1cf139cff59018eb999fbd3a2bd19e3a5b0
[ "MIT" ]
null
null
null
__author__ = 'yxc' import os from sqlalchemy import session, sessionmaker URL1 = "http://219.231.0.187/default_ysdx.aspx" URL2 = "http://jw2.ahjzu.edu.cn/default_ysdx.aspx " SQL = {"mysql": 0, "redis": 0, "PostgreSql": 0} setting = { "debug": True, "template_path": os.path.join(os.path.dirname(__file__), "t...
25.111111
74
0.685841
64
452
4.59375
0.640625
0.081633
0.102041
0.095238
0.210884
0.210884
0.210884
0.210884
0
0
0
0.050633
0.126106
452
17
75
26.588235
0.693671
0
0
0
0
0
0.404867
0.079646
0
0
0
0
0
1
0
false
0.083333
0.166667
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
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
bd4a362e507ac638b4233f75532a2aa2249cda29
11,917
py
Python
alarmageddon/validations/http.py
professor0x/Alarmageddon
2aa0493b78e8ea8ae7870651dc7ff1d8c58b309c
[ "Apache-2.0" ]
null
null
null
alarmageddon/validations/http.py
professor0x/Alarmageddon
2aa0493b78e8ea8ae7870651dc7ff1d8c58b309c
[ "Apache-2.0" ]
null
null
null
alarmageddon/validations/http.py
professor0x/Alarmageddon
2aa0493b78e8ea8ae7870651dc7ff1d8c58b309c
[ "Apache-2.0" ]
null
null
null
"""HTTP Validation""" import time import urlparse import os import requests import copy from alarmageddon.validations.validation import Validation, Priority from alarmageddon.validations.json_expectations import \ ExpectedJsonValueLessThan, \ ExpectedJsonValueGreaterThan, \ ExpectedJsonEquality from alar...
34.048571
83
0.621046
1,363
11,917
5.287601
0.170946
0.009713
0.019981
0.019426
0.43874
0.363397
0.363397
0.311919
0.293465
0.292077
0
0.002426
0.308215
11,917
349
84
34.146132
0.871786
0.007972
0
0.136364
0
0
0.034766
0
0
0
0
0
0
0
null
null
0
0.051136
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
bd4b17ea3ba06f5eaad4b8e758f133426e8513d6
721
py
Python
pair-filter/gen_image_list.py
kingdido999/bugswarm
8ff2b3e71ca2598c354e8481c6b887cd5988816a
[ "BSD-3-Clause" ]
18
2019-12-27T06:53:39.000Z
2022-03-03T03:05:35.000Z
pair-filter/gen_image_list.py
kingdido999/bugswarm
8ff2b3e71ca2598c354e8481c6b887cd5988816a
[ "BSD-3-Clause" ]
13
2020-01-10T17:11:38.000Z
2021-12-13T20:34:38.000Z
pair-filter/gen_image_list.py
kingdido999/bugswarm
8ff2b3e71ca2598c354e8481c6b887cd5988816a
[ "BSD-3-Clause" ]
10
2020-01-10T17:36:57.000Z
2021-09-13T19:51:43.000Z
import json import os from os import path import sys from bugswarm.common import log from pair_filter import utils from pair_filter.constants import DOCKERHUB_REPO_NAME, DOCKERHUB_IMAGES_JSON def generate_image_file(): image_list = dict() for repo_name in DOCKERHUB_REPO_NAME: image_list[repo_name] =...
24.862069
89
0.725381
106
721
4.641509
0.471698
0.081301
0.056911
0
0
0
0
0
0
0
0
0.003384
0.180305
721
28
90
25.75
0.829103
0
0
0
0
0
0.138696
0.029126
0
0
0
0
0
1
0.1
false
0
0.35
0
0.45
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
bd51c47cfe9f5a0927a1495ad7f4c2450428d706
1,619
py
Python
CC_Python/CCFile.py
Caleb68864/CC_Python
b6d62099c8f52b7b9464924785aae794c82e3bb0
[ "MIT" ]
null
null
null
CC_Python/CCFile.py
Caleb68864/CC_Python
b6d62099c8f52b7b9464924785aae794c82e3bb0
[ "MIT" ]
null
null
null
CC_Python/CCFile.py
Caleb68864/CC_Python
b6d62099c8f52b7b9464924785aae794c82e3bb0
[ "MIT" ]
null
null
null
import os import os.path class CCFile: # Replaces part of a file name for all files in a directory # https://stackoverflow.com/questions/225735/batch-renaming-of-files-in-a-directory def replaceFileNames(self, find, replace, dir): for f in os.listdir(dir): if not f.startswith('.'): ...
38.547619
92
0.660284
204
1,619
5.240196
0.29902
0.06174
0.032741
0.037418
0.513564
0.448082
0.389149
0.312442
0.312442
0.312442
0
0.004951
0.25139
1,619
41
93
39.487805
0.877063
0.320568
0
0.25
0
0
0.004591
0
0
0
0
0
0
1
0.208333
false
0
0.083333
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
1
0
0
0
0
0
0
0
1
1fa2d02afe2db0e18f0e73be41bf6152354da9af
4,674
py
Python
passvault/views.py
satya-sudo/PASSVAULT_WEB
962de314bc119054f870be19be655b63ba673c56
[ "MIT" ]
null
null
null
passvault/views.py
satya-sudo/PASSVAULT_WEB
962de314bc119054f870be19be655b63ba673c56
[ "MIT" ]
null
null
null
passvault/views.py
satya-sudo/PASSVAULT_WEB
962de314bc119054f870be19be655b63ba673c56
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse,HttpResponseRedirect from django.urls import reverse from django.contrib.auth import authenticate,login,logout from django.contrib.auth.decorators import login_required from .models import User,SavedPassword from django.db import IntegrityError...
32.458333
122
0.663885
476
4,674
6.478992
0.197479
0.058366
0.092412
0.136187
0.520104
0.495785
0.37808
0.318093
0.26524
0.26524
0
0
0.223149
4,674
144
123
32.458333
0.849353
0
0
0.446602
0
0
0.150588
0.047059
0
0
0
0
0
1
0.097087
false
0.359223
0.07767
0.019417
0.407767
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
1fb0a968dee317794024beb7d86008316024fdda
1,591
py
Python
Makeup-App-master/server/makeupapp/migrations/0001_initial.py
SiddiquiWaleed/web-development
fb98d1236411ada820ebb3fdb06b4d76c2878556
[ "Apache-2.0" ]
1
2021-11-04T20:17:10.000Z
2021-11-04T20:17:10.000Z
Makeup-App-master/server/makeupapp/migrations/0001_initial.py
SiddiquiWaleed/web-development
fb98d1236411ada820ebb3fdb06b4d76c2878556
[ "Apache-2.0" ]
null
null
null
Makeup-App-master/server/makeupapp/migrations/0001_initial.py
SiddiquiWaleed/web-development
fb98d1236411ada820ebb3fdb06b4d76c2878556
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2.6 on 2019-12-25 15:01 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Product', fields=[ ...
35.355556
114
0.54934
149
1,591
5.765101
0.38255
0.087311
0.104773
0.139697
0.500582
0.46915
0.46915
0.46915
0.348079
0.348079
0
0.027174
0.306097
1,591
44
115
36.159091
0.750906
0.028284
0
0.459459
1
0
0.079016
0
0
0
0
0
0
1
0
false
0.027027
0.054054
0
0.162162
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
1fb4c79788d1a8a0202c85e117cf4f5f75c32ffa
861
py
Python
catalogserver/tests/server_test.py
talkingscott/catalog
bbf64081672595483c2412a106644b438fc3be95
[ "MIT" ]
null
null
null
catalogserver/tests/server_test.py
talkingscott/catalog
bbf64081672595483c2412a106644b438fc3be95
[ "MIT" ]
null
null
null
catalogserver/tests/server_test.py
talkingscott/catalog
bbf64081672595483c2412a106644b438fc3be95
[ "MIT" ]
null
null
null
# pylint: disable=C0111 import json import unittest import server from bottle import HTTPResponse class ServerTestCase(unittest.TestCase): def setUp(self): server.initdb('schema-version-items.json') def test_get_items(self): items = _parsed_json(server.get_items()) self.assertEqual...
24.6
58
0.679443
110
861
5.172727
0.481818
0.056239
0.052724
0.066784
0.084359
0
0
0
0
0
0
0.023774
0.218351
861
34
59
25.323529
0.821694
0.076655
0
0
0
0
0.056818
0.031566
0
0
0
0
0.173913
1
0.217391
false
0
0.173913
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
1
0
0
0
0
0
0
0
1
1fc34d29cc47b7bf02fd014cb0cfe8a8dc280cb4
566
py
Python
tmp/fetch_a_single_transcription_on_a_recording.py
dtolb/docstring-extractor
f77ba4bc8e03eaa041eea92fdadf9442e6eb6ca6
[ "MIT" ]
null
null
null
tmp/fetch_a_single_transcription_on_a_recording.py
dtolb/docstring-extractor
f77ba4bc8e03eaa041eea92fdadf9442e6eb6ca6
[ "MIT" ]
null
null
null
tmp/fetch_a_single_transcription_on_a_recording.py
dtolb/docstring-extractor
f77ba4bc8e03eaa041eea92fdadf9442e6eb6ca6
[ "MIT" ]
null
null
null
# Example: Fetch a single transcription on a recording my_transcription = api.get_transcription('recordingId', 'transcriptionId') print(my_transcription) ## { ## 'chargeableDuration': 11, ## 'id' : '{transcriptionId}', ## 'state' : 'completed', ## 'text' : 'Hey t...
43.538462
96
0.558304
53
566
5.90566
0.849057
0.095847
0
0
0
0
0
0
0
0
0
0.044118
0.279152
566
12
97
47.166667
0.723039
0.772085
0
0
0
0
0.238532
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
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
1fc3def804c57e66d9fec3934fafe2be53455c15
1,672
py
Python
mrq/bin/mrq_run.py
bpmbank/mrq
12b0be3795164732da94d12240d9ed74f8b33601
[ "MIT" ]
null
null
null
mrq/bin/mrq_run.py
bpmbank/mrq
12b0be3795164732da94d12240d9ed74f8b33601
[ "MIT" ]
null
null
null
mrq/bin/mrq_run.py
bpmbank/mrq
12b0be3795164732da94d12240d9ed74f8b33601
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os # Needed to make getaddrinfo() work in pymongo on Mac OS X # Docs mention it's a better choice for Linux as well. # This must be done asap in the worker if "GEVENT_RESOLVER" not in os.environ: os.environ["GEVENT_RESOLVER"] = "ares" # We must still monkey-patch the methods for job sub...
25.723077
82
0.673445
256
1,672
4.265625
0.457031
0.025641
0.025641
0.03663
0
0
0
0
0
0
0
0.008909
0.194378
1,672
64
83
26.125
0.801782
0.163876
0
0.043478
0
0
0.125718
0
0
0
0
0
0
0
null
null
0
0.217391
null
null
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
0
0
1
0
0
0
0
0
0
0
0
1
1fc52f0cac81a9253a175a1d41121af39cb0ed19
6,723
py
Python
Voltron/unit_tests/Algorithms/test_level_medium.py
ernestyalumni/HrdwCCppCUDA
17ed937dea06431a4d5ca103f993ea69a6918734
[ "MIT" ]
1
2018-02-09T19:44:51.000Z
2018-02-09T19:44:51.000Z
Voltron/unit_tests/Algorithms/test_level_medium.py
ernestyalumni/HrdwCCppCUDA
17ed937dea06431a4d5ca103f993ea69a6918734
[ "MIT" ]
null
null
null
Voltron/unit_tests/Algorithms/test_level_medium.py
ernestyalumni/HrdwCCppCUDA
17ed937dea06431a4d5ca103f993ea69a6918734
[ "MIT" ]
null
null
null
""" @file test_level_medium.py """ from Voltron.Algorithms.level_medium import ( # In order of usage or appearance. smallest_difference, three_number_sum, three_number_sum_with_sorted_array, move_element_to_end, is_monotonic, spiral_traverse, _find_peaks, _find_peak_length, long...
20.814241
79
0.510338
1,085
6,723
3.045161
0.105069
0.033293
0.034504
0.030266
0.752724
0.70793
0.617131
0.511501
0.464891
0.365012
0
0.176184
0.327979
6,723
322
80
20.878882
0.555113
0.080916
0
0.548913
0
0
0
0
0
0
0
0
0.195652
1
0.048913
false
0
0.01087
0
0.059783
0
0
0
0
null
0
0
0
0
1
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
1fc6e6eeae18b8b232f000c899961e7cb198c7d8
1,640
py
Python
archive/ultimatePy.py
maxwilliams94/ultimatePy
1582f1666f05d75b103a0fd4913c115157cd462d
[ "MIT" ]
1
2020-01-26T15:21:29.000Z
2020-01-26T15:21:29.000Z
archive/ultimatePy.py
maxwilliams94/ultimatePy
1582f1666f05d75b103a0fd4913c115157cd462d
[ "MIT" ]
null
null
null
archive/ultimatePy.py
maxwilliams94/ultimatePy
1582f1666f05d75b103a0fd4913c115157cd462d
[ "MIT" ]
null
null
null
from archive.tournament import Tournament, Timings from datetime import datetime, timedelta # Expect team list to be input from file in seed order if __name__ == '__main__': team_input = ["Uni A 1", "Uni B", "Uni C", "Uni D", "Uni E", "Uni A 2", "Uni G", "Uni H", "Uni A 3", "Uni B 2", "Uni C 2"...
36.444444
115
0.658537
225
1,640
4.657778
0.417778
0.045802
0.049618
0.068702
0.118321
0.118321
0.118321
0.103053
0
0
0
0.027309
0.240854
1,640
44
116
37.272727
0.814458
0.285976
0
0
0
0
0.07772
0
0
0
0
0.022727
0
1
0
false
0
0.090909
0
0.090909
0.090909
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
1fcb6629abac42f4f63877091b644a24e15a7395
725
py
Python
2_Numpy/NumpyIntro.py
tkaya94/UdemyDataScience
83fe006bace0e91a273006546df3f3ee408b7797
[ "MIT" ]
null
null
null
2_Numpy/NumpyIntro.py
tkaya94/UdemyDataScience
83fe006bace0e91a273006546df3f3ee408b7797
[ "MIT" ]
null
null
null
2_Numpy/NumpyIntro.py
tkaya94/UdemyDataScience
83fe006bace0e91a273006546df3f3ee408b7797
[ "MIT" ]
null
null
null
import numpy as np def array_info(array: np.ndarray) -> None: print(f"ndim: {array.ndim}") print(f"shape: {array.shape}") print(f"size: {array.size}") print(f"dtype: {array.dtype}") print(f"values:\n{array}\n") if __name__ == '__main__': # my_np_array = np.array([1, 2, 3.14, 5, 4, 3], dtype="...
31.521739
89
0.631724
123
725
3.504065
0.382114
0.113689
0.104408
0.102088
0.088167
0
0
0
0
0
0
0.043697
0.17931
725
22
90
32.954545
0.680672
0.350345
0
0
0
0
0.228448
0
0
0
0
0
0
1
0.076923
false
0
0.076923
0
0.153846
0.461538
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
1fd04b6bfd2dd3f421559959804253f280278d49
4,060
py
Python
flask_apns/__init__.py
gilles/flask-apns
bf53dce053b5ac09438f30af15d523a57ba231da
[ "MIT" ]
3
2015-05-20T08:34:33.000Z
2015-12-08T21:56:21.000Z
flask_apns/__init__.py
gilles/flask-apns
bf53dce053b5ac09438f30af15d523a57ba231da
[ "MIT" ]
null
null
null
flask_apns/__init__.py
gilles/flask-apns
bf53dce053b5ac09438f30af15d523a57ba231da
[ "MIT" ]
1
2015-01-10T10:32:22.000Z
2015-01-10T10:32:22.000Z
# coding=utf-8 """ Send APNS message with flask """ from apnsclient import Session, Certificate, Message, APNs class APNS(object): """ APNS extension """ def __init__(self, app=None, address="push_sandbox", failure_callback=None, **cert_params): """ :param app: The a...
30.992366
79
0.575862
467
4,060
4.856531
0.256959
0.026455
0.026455
0.035273
0.077601
0.017637
0
0
0
0
0
0.000373
0.338916
4,060
130
80
31.230769
0.844635
0.336207
0
0.074074
0
0
0.082058
0.009354
0
0
0
0
0
1
0.074074
false
0.166667
0.018519
0
0.222222
0.018519
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
1fd5b6fe4433a8564a440a40bc2d3691b48b4b27
2,226
py
Python
snekcord/objects/integrationobject.py
asleep-cult/snakecord
9b46b62674da9ceeeda688f3e3040616da518277
[ "MIT" ]
6
2020-12-15T04:40:18.000Z
2021-01-24T06:54:58.000Z
snekcord/objects/integrationobject.py
blanketsucks/snakecord
9b46b62674da9ceeeda688f3e3040616da518277
[ "MIT" ]
13
2021-02-07T23:22:44.000Z
2021-04-19T13:00:50.000Z
snekcord/objects/integrationobject.py
blanketsucks/snakecord
9b46b62674da9ceeeda688f3e3040616da518277
[ "MIT" ]
3
2021-03-03T17:50:48.000Z
2021-04-02T00:17:55.000Z
from datetime import datetime from .baseobject import BaseObject from ..enums import IntegrationExpireBehavior, IntegrationType from ..json import JsonField, JsonObject from ..snowflake import Snowflake __all__ = ('IntegrationAccount', 'IntegrationApplication', 'Integration') class IntegrationAccount(JsonObject): ...
27.481481
86
0.676101
229
2,226
6.39738
0.279476
0.03413
0.034812
0.023208
0.081911
0.046416
0.046416
0.046416
0
0
0
0
0.207996
2,226
80
87
27.825
0.83097
0
0
0.196429
0
0
0.116352
0.009883
0
0
0
0
0
1
0.125
false
0
0.089286
0.053571
0.714286
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
1fda5aac006e5d5e942925a520303846fbb68244
686
py
Python
py/2018/6A.py
pedrotari7/advent_of_code
98d5bc8d903435624a019a5702f5421d7b4ef8c8
[ "MIT" ]
null
null
null
py/2018/6A.py
pedrotari7/advent_of_code
98d5bc8d903435624a019a5702f5421d7b4ef8c8
[ "MIT" ]
null
null
null
py/2018/6A.py
pedrotari7/advent_of_code
98d5bc8d903435624a019a5702f5421d7b4ef8c8
[ "MIT" ]
null
null
null
def manhattan(p1, p2): return abs(p1[0]-p2[0]) + abs(p1[1]-p2[1]) a = {tuple(map(int, _.strip().split(', '))):0 for _ in open('6.in')} corners = [ min(a), max(a), min(a, key=lambda x: x[1]), max(a, key=lambda x: x[1])] infinity = set() for j in xrange(corners[0][0], corners[1][0] + 1): for i in xrange(corne...
36.105263
90
0.527697
132
686
2.727273
0.30303
0.075
0.055556
0.061111
0.272222
0.272222
0
0
0
0
0
0.080675
0.223032
686
18
91
38.111111
0.594747
0
0
0
0
0
0.008746
0
0
0
0
0
0
0
null
null
0
0
null
null
0.076923
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
1fe566c5fead887ae599ff0e09d57d6f20287f36
272
py
Python
simple_streaming.py
alecgtx/test_tello
e79b7f9170533cf9452ff501a2d7d589fe3e8810
[ "Apache-2.0" ]
null
null
null
simple_streaming.py
alecgtx/test_tello
e79b7f9170533cf9452ff501a2d7d589fe3e8810
[ "Apache-2.0" ]
null
null
null
simple_streaming.py
alecgtx/test_tello
e79b7f9170533cf9452ff501a2d7d589fe3e8810
[ "Apache-2.0" ]
null
null
null
from djitellopy import Tello tello=Tello() tello.connect() tello.streamon() frame_read=tello.get_frame_read() import cv2 while True: cv2.imshow('tello stream', frame_read.frame) key=cv2.waitKey(1) if key==ord('q'): break tello.streamoff() pass
15.111111
48
0.691176
39
272
4.717949
0.589744
0.163043
0.163043
0
0
0
0
0
0
0
0
0.017937
0.180147
272
18
49
15.111111
0.807175
0
0
0
0
0
0.047619
0
0
0
0
0
0
1
0
false
0.076923
0.153846
0
0.153846
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
1fe69aade0957ddb0830f17bb2c0bb07c0b9b089
207
py
Python
vest/aggregations/hurst.py
vcerqueira/vest-python
146e1ee50463637c89e32112283cf857e2eb190a
[ "MIT" ]
5
2021-04-26T12:55:05.000Z
2021-12-23T20:03:57.000Z
vest/aggregations/hurst.py
vcerqueira/vest-python
146e1ee50463637c89e32112283cf857e2eb190a
[ "MIT" ]
null
null
null
vest/aggregations/hurst.py
vcerqueira/vest-python
146e1ee50463637c89e32112283cf857e2eb190a
[ "MIT" ]
3
2021-02-12T23:12:22.000Z
2021-06-11T14:25:58.000Z
import numpy as np import nolds def hurst(x: np.ndarray) -> float: """ Hurst exponent :param x: a 1-d numeric vector :return: numeric scalar """ out = nolds.hurst_rs(x) return out
15.923077
34
0.623188
31
207
4.129032
0.677419
0
0
0
0
0
0
0
0
0
0
0.006623
0.270531
207
12
35
17.25
0.84106
0.333333
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.4
0
0.8
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
1fea751dc1626e193925e4992ad810d72c8a53b0
9,063
py
Python
od_matrix_analysis.py
PatSunter/OTP-Routing-Tools
218b080b6888e9294d9ba2336553b3cc3044991a
[ "BSD-3-Clause" ]
2
2017-06-28T14:42:06.000Z
2020-01-25T10:47:38.000Z
od_matrix_analysis.py
PatSunter/pyOTPA
218b080b6888e9294d9ba2336553b3cc3044991a
[ "BSD-3-Clause" ]
null
null
null
od_matrix_analysis.py
PatSunter/pyOTPA
218b080b6888e9294d9ba2336553b3cc3044991a
[ "BSD-3-Clause" ]
null
null
null
# A set of functions helpful for analysing the OD matrices produced from tools # such as OpenTripPlanner, NetView, etc. # Patrick Sunter, 2013-2014. # Uses OGR library for shape file manipulation aspects. import csv import os import operator import itertools import numpy import taz_files ### General utility functi...
34.857692
79
0.648681
1,149
9,063
5.079199
0.288077
0.008568
0.008225
0.010281
0.252228
0.215387
0.178547
0.178547
0.10281
0.10281
0
0.017925
0.249035
9,063
259
80
34.992278
0.839553
0.11409
0
0.339181
0
0
0.083243
0
0
0
0
0
0
0
null
null
0
0.046784
null
null
0.064327
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
1feb7f1665d967a69bbcb8caa7e5941884e08a13
1,968
py
Python
pyeccodes/templates.py
ecmwf/pyeccodes
dce2c72d3adcc0cb801731366be53327ce13a00b
[ "Apache-2.0" ]
7
2020-04-14T09:41:17.000Z
2021-08-06T09:38:19.000Z
pyeccodes/templates.py
ecmwf/pyeccodes
dce2c72d3adcc0cb801731366be53327ce13a00b
[ "Apache-2.0" ]
null
null
null
pyeccodes/templates.py
ecmwf/pyeccodes
dce2c72d3adcc0cb801731366be53327ce13a00b
[ "Apache-2.0" ]
3
2020-04-30T12:44:48.000Z
2020-12-15T08:40:26.000Z
# (C) Copyright 2020- ECMWF. # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. # In applying this licence, ECMWF does not waive the privileges and immunities granted to it by # virtue of its status as an intergovernment...
24.296296
99
0.573679
243
1,968
4.555556
0.440329
0.069557
0.050587
0.04607
0.179765
0.094851
0.094851
0.066847
0
0
0
0.008094
0.309451
1,968
80
100
24.6
0.806475
0.196138
0
0.204082
0
0
0.033016
0
0
0
0
0
0
1
0.122449
false
0.061224
0.061224
0.040816
0.367347
0.040816
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
1ff10c30b20b8363eb7c80674dbddaeb6f9e71c2
989
py
Python
get_uid.py
haishenming/weibom-spider
f755272cf2af828a97102cce0aa96970a6d4ea60
[ "MIT" ]
null
null
null
get_uid.py
haishenming/weibom-spider
f755272cf2af828a97102cce0aa96970a6d4ea60
[ "MIT" ]
null
null
null
get_uid.py
haishenming/weibom-spider
f755272cf2af828a97102cce0aa96970a6d4ea60
[ "MIT" ]
null
null
null
# encoding:utf-8 import xlrd import re import os def duplicate_removal(new_uid_list): file_list = os.listdir(os.getcwd()) old_uid_list = [] for i in file_list: if i.isdigit(): old_uid_list.append(i) if new_uid_list==old_uid_list: return [] else: old_uid_list = s...
22.477273
63
0.626896
147
989
3.829932
0.340136
0.236234
0.142096
0.078153
0.264654
0.071048
0
0
0
0
0
0.00411
0.261881
989
43
64
23
0.767123
0.045501
0
0.0625
0
0
0.017003
0
0
0
0
0
0
1
0.0625
false
0.03125
0.09375
0
0.25
0.03125
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
1ff1bc47e66ecdeab8d1cb2a0454c7b0bfa9b323
15,829
py
Python
cifar10-code/Adax_main_cifar.py
switchablenorms/AdaX
e18f35f3d6ab99ad862f81d6ddf4d7dbc5f2f63d
[ "Apache-2.0" ]
30
2020-04-22T02:16:26.000Z
2021-08-12T07:04:48.000Z
cifar10-code/Adax_main_cifar.py
switchablenorms/adax
e18f35f3d6ab99ad862f81d6ddf4d7dbc5f2f63d
[ "Apache-2.0" ]
1
2020-06-21T13:33:08.000Z
2020-06-21T13:33:08.000Z
cifar10-code/Adax_main_cifar.py
switchablenorms/adax
e18f35f3d6ab99ad862f81d6ddf4d7dbc5f2f63d
[ "Apache-2.0" ]
8
2020-05-08T07:25:24.000Z
2021-11-10T14:09:36.000Z
''' Training script for ImageNet Copyright (c) Wei YANG, 2017 ''' from __future__ import print_function, division import argparse import os import time import torch.nn.parallel import torch.backends.cudnn as cudnn import torch.optim as optim import torch.utils.data as data import torchvision.transforms as transforms ...
41.655263
118
0.602628
1,956
15,829
4.713701
0.174335
0.035141
0.066377
0.014751
0.300108
0.244794
0.233297
0.200651
0.168547
0.15141
0
0.027057
0.252827
15,829
379
119
41.765172
0.752515
0.054141
0
0.20979
0
0.006993
0.19306
0.028512
0
0
0
0
0.003497
0
null
null
0.003497
0.059441
null
null
0.101399
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