hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
f31c461ea88a83b782769751389f56772c713d60
1,457
py
Python
pyof/v0x05/asynchronous/table_status.py
mhaji007/python-openflow
25f032d660e648501d1e732969b6f91357ef5b66
[ "MIT" ]
null
null
null
pyof/v0x05/asynchronous/table_status.py
mhaji007/python-openflow
25f032d660e648501d1e732969b6f91357ef5b66
[ "MIT" ]
null
null
null
pyof/v0x05/asynchronous/table_status.py
mhaji007/python-openflow
25f032d660e648501d1e732969b6f91357ef5b66
[ "MIT" ]
null
null
null
"""Defines an Table Status Message.""" # System imports from enum import IntEnum # Local source tree imports from pyof.foundation.base import GenericMessage, GenericStruct from pyof.foundation.basic_types import BinaryData, FixedTypeList, UBInt16, UBInt8, UBInt32, UBInt64, Pad from pyof.v0x05.common.header import He...
26.490909
105
0.691833
968
0.664379
0
0
0
0
0
0
662
0.454358
f31ce1a1719984d1cf324a95ea4f226d430436e1
361
py
Python
DEQModel/utils/debug.py
JunLi-Galios/deq
80eb6b598357e8e01ad419126465fa3ed53b12c7
[ "MIT" ]
548
2019-09-05T04:25:21.000Z
2022-03-22T01:49:35.000Z
DEQModel/utils/debug.py
JunLi-Galios/deq
80eb6b598357e8e01ad419126465fa3ed53b12c7
[ "MIT" ]
21
2019-10-04T16:36:05.000Z
2022-03-24T02:20:28.000Z
DEQModel/utils/debug.py
JunLi-Galios/deq
80eb6b598357e8e01ad419126465fa3ed53b12c7
[ "MIT" ]
75
2019-09-05T22:40:32.000Z
2022-03-31T09:40:44.000Z
import torch from torch.autograd import Function class Identity(Function): @staticmethod def forward(ctx, x, name): ctx.name = name return x.clone() def backward(ctx, grad): import pydevd pydevd.settrace(suspend=False, trace_only_current_thread=True) grad_temp = gr...
24.066667
70
0.65928
310
0.858726
0
0
93
0.257618
0
0
0
0
f31cf93ef20fe7554b80d699b5aa26fadaf86834
13,629
py
Python
feature_track_visualizer/visualizer.py
jfvilaro/rpg_feature_tracking_analysis
4c29a64cc07db44b43c12ff66c71d5c7da062c79
[ "MIT" ]
null
null
null
feature_track_visualizer/visualizer.py
jfvilaro/rpg_feature_tracking_analysis
4c29a64cc07db44b43c12ff66c71d5c7da062c79
[ "MIT" ]
null
null
null
feature_track_visualizer/visualizer.py
jfvilaro/rpg_feature_tracking_analysis
4c29a64cc07db44b43c12ff66c71d5c7da062c79
[ "MIT" ]
null
null
null
from os.path import isfile import os import cv2 from os.path import join import numpy as np import tqdm import random from big_pun.tracker_utils import filter_first_tracks, getTrackData def component(): return random.randint(0, 255) class FeatureTracksVisualizer: def __init__(self, gt_file,track_file, dat...
37.035326
131
0.556387
13,385
0.982097
0
0
0
0
0
0
1,751
0.128476
f31e643bb5106928ddc94996a97d51a1aa497458
12,163
py
Python
Polygon2-2.0.7/Polygon/IO.py
tangrams/landgrab
217699e4730a1bdb7c9e03bfd9c2c0c31950eb7c
[ "MIT" ]
20
2015-02-26T15:55:42.000Z
2021-07-30T00:19:31.000Z
Polygon2-2.0.7/Polygon/IO.py
tangrams/landgrab
217699e4730a1bdb7c9e03bfd9c2c0c31950eb7c
[ "MIT" ]
1
2018-04-02T12:13:30.000Z
2021-10-04T00:59:38.000Z
Polygon2-2.0.7/Polygon/IO.py
tangrams/landgrab
217699e4730a1bdb7c9e03bfd9c2c0c31950eb7c
[ "MIT" ]
5
2015-03-03T23:31:39.000Z
2018-01-17T03:13:34.000Z
# -*- coding: utf-8 -*- """ This module provides functions for reading and writing Polygons in different formats. The following write-methods will accept different argument types for the output. If ofile is None, the method will create and return a StringIO-object. If ofile is a string, a file with that name will b...
31.840314
128
0.564499
254
0.020883
151
0.012415
0
0
0
0
4,512
0.370961
f3200d5d53315321e6ef6c3cef5d42425590c96b
743
py
Python
strings/reverse_string.py
ahcode0919/python-ds-algorithms
0d617b78c50b6c18da40d9fa101438749bfc82e1
[ "MIT" ]
null
null
null
strings/reverse_string.py
ahcode0919/python-ds-algorithms
0d617b78c50b6c18da40d9fa101438749bfc82e1
[ "MIT" ]
null
null
null
strings/reverse_string.py
ahcode0919/python-ds-algorithms
0d617b78c50b6c18da40d9fa101438749bfc82e1
[ "MIT" ]
3
2020-10-07T20:24:45.000Z
2020-12-16T04:53:19.000Z
from typing import List, Optional def reverse_string(string: str) -> str: return string[::-1] def reverse_string_in_place(string: [str]): index = 0 length = len(string) middle = length / 2 while index < middle: string[index], string[length - 1 - index] = string[length - 1 - index], strin...
28.576923
93
0.643338
0
0
0
0
0
0
0
0
4
0.005384
f3212e189d04ba2e4747e03dc77f4721f12f30e5
14,706
py
Python
qnarre/prep/tokens/realm.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
qnarre/prep/tokens/realm.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
qnarre/prep/tokens/realm.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
37.707692
141
0.589963
11,313
0.769278
0
0
151
0.010268
0
0
3,155
0.214538
f323bb4c6d1d42af8adea82f66966d109724eba9
29,495
py
Python
api/fileupload.py
subhendu01/Audio-FIle-Server
6c7f9a093e41f0750a0a8c4c1f0e48608215c8a6
[ "MIT" ]
5
2021-05-12T18:18:49.000Z
2022-01-06T12:35:35.000Z
api/fileupload.py
subhendu01/Audio-FIle-Server
6c7f9a093e41f0750a0a8c4c1f0e48608215c8a6
[ "MIT" ]
null
null
null
api/fileupload.py
subhendu01/Audio-FIle-Server
6c7f9a093e41f0750a0a8c4c1f0e48608215c8a6
[ "MIT" ]
null
null
null
import datetime, os, base64 from flask import Flask, jsonify, request, Blueprint from dbstore import dbconf import json from bson import json_util # process kill # lsof -i tcp:3000 file_upload = Blueprint('uploadAPI', __name__) app = Flask(__name__) def song_upload(val): try: # content = request.get_j...
45.376923
137
0.398644
0
0
0
0
20,390
0.691304
0
0
6,818
0.231158
f324f6cba05e902a8556f523455c852d7fd15d3d
2,542
py
Python
dna/zfec/zfec/cmdline_zunfec.py
bobbae/examples
6c998e2af9a48f7173a0b6b1ff0176df7edceda5
[ "Unlicense" ]
null
null
null
dna/zfec/zfec/cmdline_zunfec.py
bobbae/examples
6c998e2af9a48f7173a0b6b1ff0176df7edceda5
[ "Unlicense" ]
null
null
null
dna/zfec/zfec/cmdline_zunfec.py
bobbae/examples
6c998e2af9a48f7173a0b6b1ff0176df7edceda5
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # zfec -- a fast C implementation of Reed-Solomon erasure coding with # command-line, C, and Python interfaces from __future__ import print_function import os, sys, argparse from zfec import filefec from zfec import __version__ as libversion __version__ = libversion def main(): if '-V' i...
35.305556
149
0.663257
0
0
0
0
0
0
0
0
1,104
0.434304
f327633efe0ce2c9e557f60f7f82ada184c4948d
576
py
Python
bottomline/blweb/migrations/0012_vehicleconfig_color.py
mcm219/BottomLine
db82eef403c79bffa3864c4db6bc336632abaca5
[ "MIT" ]
null
null
null
bottomline/blweb/migrations/0012_vehicleconfig_color.py
mcm219/BottomLine
db82eef403c79bffa3864c4db6bc336632abaca5
[ "MIT" ]
1
2021-06-14T02:20:40.000Z
2021-06-14T02:20:40.000Z
bottomline/blweb/migrations/0012_vehicleconfig_color.py
mcm219/BottomLine
db82eef403c79bffa3864c4db6bc336632abaca5
[ "MIT" ]
null
null
null
# Generated by Django 3.2.2 on 2021-07-10 03:16 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('blweb', '0011_vehiclecolor'), ] operations = [ migrations.AddField( model_name='vehicleconfig',...
28.8
211
0.663194
450
0.78125
0
0
0
0
0
0
156
0.270833
b823df535990bd76d900f1381be1d7cc948408cf
11,634
py
Python
src/acs_3dpsf.py
davidharvey1986/rrg
26b4658f14279af21af1a61d57e9936daf315a71
[ "MIT" ]
2
2019-11-18T12:51:09.000Z
2019-12-11T03:13:51.000Z
src/acs_3dpsf.py
davidharvey1986/rrg
26b4658f14279af21af1a61d57e9936daf315a71
[ "MIT" ]
5
2017-06-09T10:06:27.000Z
2019-07-19T11:28:18.000Z
src/acs_3dpsf.py
davidharvey1986/rrg
26b4658f14279af21af1a61d57e9936daf315a71
[ "MIT" ]
2
2017-07-19T15:48:33.000Z
2017-08-09T16:07:20.000Z
import numpy as np from . import acs_map_xy as acs_map def acs_3dpsf_basisfunctions( degree, x, y, focus ): # Generate relevant basis functions n_stars=np.max( np.array([len(x),len(y),len(focus)])) basis_function_order=np.zeros((1,3)) # All zeros for k in range(degree[2]+1): for j in range(...
39.979381
122
0.565068
1,715
0.147413
0
0
0
0
0
0
1,674
0.143889
b824108791760c3044be86fca8557a92a30f2d41
27,400
py
Python
gsf/function_class.py
mtakahiro/gsf
c09c5d32a45b0277c469d2d3cb2f8c11f1fc0278
[ "MIT" ]
9
2019-08-23T19:00:54.000Z
2022-02-23T17:57:41.000Z
gsf/function_class.py
mtakahiro/gsf
c09c5d32a45b0277c469d2d3cb2f8c11f1fc0278
[ "MIT" ]
17
2020-05-22T17:41:15.000Z
2022-03-20T03:32:48.000Z
gsf/function_class.py
mtakahiro/gsf
c09c5d32a45b0277c469d2d3cb2f8c11f1fc0278
[ "MIT" ]
1
2020-02-01T22:55:37.000Z
2020-02-01T22:55:37.000Z
import numpy as np import sys import scipy.interpolate as interpolate import asdf from .function import * from .basic_func import Basic class Func: ''' The list of (possible) `Func` attributes is given below: Attributes ---------- ''' def __init__(self, MB, dust_model=0): ''' ...
31.823461
123
0.464964
27,254
0.994672
0
0
0
0
0
0
4,941
0.180328
b825f9f00f6901c5d7cf23cfa47cb3197933eecd
1,855
py
Python
loadbalanceRL/utils/exceptions.py
fqzhou/LoadBalanceControl-RL
689eec3b3b27e121aa45d2793e411f1863f6fc0b
[ "MIT" ]
11
2018-10-29T06:50:43.000Z
2022-03-28T14:26:09.000Z
loadbalanceRL/utils/exceptions.py
fqzhou/LoadBalanceControl-RL
689eec3b3b27e121aa45d2793e411f1863f6fc0b
[ "MIT" ]
1
2022-03-01T13:46:25.000Z
2022-03-01T13:46:25.000Z
loadbalanceRL/utils/exceptions.py
fqzhou/LoadBalanceControl-RL
689eec3b3b27e121aa45d2793e411f1863f6fc0b
[ "MIT" ]
6
2019-02-05T20:01:53.000Z
2020-09-04T12:30:00.000Z
#! /usr/bin/env python3 # -*- coding: utf-8 -*- """ Definition of all Rainman2 exceptions """ __author__ = 'Ari Saha ([email protected]), Mingyang Liu([email protected])' __date__ = 'Wednesday, February 14th 2018, 11:38:08 am' class FileOpenError(IOError): """ Exception raised when a file couldn't be opene...
21.079545
77
0.698652
1,595
0.859838
0
0
0
0
0
0
1,177
0.634501
b826697289acc6bb7f13171d32f3b15f39b8d6bc
411
py
Python
mundo-1/ex-014.py
guilhermesm28/python-curso-em-video
50ab4e76b1903e62d4daa579699c5908329b26c8
[ "MIT" ]
null
null
null
mundo-1/ex-014.py
guilhermesm28/python-curso-em-video
50ab4e76b1903e62d4daa579699c5908329b26c8
[ "MIT" ]
null
null
null
mundo-1/ex-014.py
guilhermesm28/python-curso-em-video
50ab4e76b1903e62d4daa579699c5908329b26c8
[ "MIT" ]
null
null
null
# Escreva um programa que converta uma temperatura digitando em graus Celsius e converta para graus Fahrenheit. print('-' * 100) print('{: ^100}'.format('EXERCÍCIO 014 - CONVERSOR DE TEMPERATURAS')) print('-' * 100) c = float(input('Informe a temperatura em ºC: ')) f = ((9 * c) / 5) + 32 print(f'A temperatura de {c:...
27.4
111
0.6691
0
0
0
0
0
0
0
0
292
0.703614
b828874e2b78ad751bb04188c59615f7f159fd1a
848
py
Python
access_apps/controllers/main.py
aaltinisik/access-addons
933eef8b7abd5d2ac0b07b270271cb5aed3b23b6
[ "MIT" ]
null
null
null
access_apps/controllers/main.py
aaltinisik/access-addons
933eef8b7abd5d2ac0b07b270271cb5aed3b23b6
[ "MIT" ]
null
null
null
access_apps/controllers/main.py
aaltinisik/access-addons
933eef8b7abd5d2ac0b07b270271cb5aed3b23b6
[ "MIT" ]
1
2021-02-15T03:14:52.000Z
2021-02-15T03:14:52.000Z
from odoo import SUPERUSER_ID, http from odoo.http import request from odoo.addons.web_settings_dashboard.controllers.main import WebSettingsDashboard class WebSettingsDashboardCustom(WebSettingsDashboard): @http.route("/web_settings_dashboard/data", type="json", auth="user") def web_settings_dashboard_data(...
44.631579
105
0.740566
693
0.817217
0
0
633
0.746462
0
0
281
0.331368
b829ed55de73d723e9907e52986b8d92ed93231d
686
py
Python
dev/test.py
SmartBadge/SmartBadge
7bddc1ec230bcf5fa6185999b0b0c0e448528629
[ "MIT" ]
null
null
null
dev/test.py
SmartBadge/SmartBadge
7bddc1ec230bcf5fa6185999b0b0c0e448528629
[ "MIT" ]
null
null
null
dev/test.py
SmartBadge/SmartBadge
7bddc1ec230bcf5fa6185999b0b0c0e448528629
[ "MIT" ]
null
null
null
import game as g import time as t def start_game(): r.add_sprite(player1, 0,0) r.add_sprite(player2, 5,0) r.add_sprite(ball, 3,3) r.print() def wait(length_of_time): inital = t.time() x = False while(not(x)): current = t.time() x = (current - inital) > length_of_time de...
17.589744
47
0.610787
0
0
0
0
0
0
0
0
26
0.037901
b82a954625c33b4891411d888f3fa383b4a7acc9
662
py
Python
itermembers.py
hanshuaigithub/pyrogram_project
539ebbfa00d5381b4495450580f9c77ee8be9d11
[ "MIT" ]
null
null
null
itermembers.py
hanshuaigithub/pyrogram_project
539ebbfa00d5381b4495450580f9c77ee8be9d11
[ "MIT" ]
null
null
null
itermembers.py
hanshuaigithub/pyrogram_project
539ebbfa00d5381b4495450580f9c77ee8be9d11
[ "MIT" ]
null
null
null
from pyrogram import Client import json api_id = 2763716 api_hash = "d4c2d2e53efe8fbb71f0d64deb84b3da" app = Client("+639277144517", api_id, api_hash) target = "cnsex8" # Target channel/supergroup sigui588 cnsex8 with app: members = app.iter_chat_members(target) print(f"Chanel members counts : {len(members)...
26.48
86
0.706949
0
0
0
0
0
0
0
0
174
0.26284
b82b18f5c487a5e8f40d5acca12f69514df44f14
590
py
Python
FisherExactTest/__version__.py
Ae-Mc/Fisher
166e3ac68e304ed7418393d6a7717dd6f7032c15
[ "MIT" ]
null
null
null
FisherExactTest/__version__.py
Ae-Mc/Fisher
166e3ac68e304ed7418393d6a7717dd6f7032c15
[ "MIT" ]
null
null
null
FisherExactTest/__version__.py
Ae-Mc/Fisher
166e3ac68e304ed7418393d6a7717dd6f7032c15
[ "MIT" ]
null
null
null
__title__ = "FisherExactTest" __version__ = "1.0.1" __author__ = "Ae-Mc" __author_email__ = "[email protected]" __description__ = "Two tailed Fisher's exact test wrote in pure Python" __url__ = "https://github.com/Ae-Mc/Fisher" __classifiers__ = [ "Programming Language :: Python :: 3 :: Only", "Programming Language...
34.705882
71
0.661017
0
0
0
0
0
0
0
0
429
0.727119
b82b81bc5dbddba7f6dc9e8f6bf26affa5968f16
875
py
Python
mimosa/pylib/mimosa_reader.py
rafelafrance/traiter_mimosa
7a248b610747d5d0e5ce5473953cbdc90d336aae
[ "MIT" ]
null
null
null
mimosa/pylib/mimosa_reader.py
rafelafrance/traiter_mimosa
7a248b610747d5d0e5ce5473953cbdc90d336aae
[ "MIT" ]
null
null
null
mimosa/pylib/mimosa_reader.py
rafelafrance/traiter_mimosa
7a248b610747d5d0e5ce5473953cbdc90d336aae
[ "MIT" ]
null
null
null
"""Parse PDFs about mimosas.""" from tqdm import tqdm from . import mimosa_pipeline from . import sentence_pipeline from .parsed_data import Datum def read(args): with open(args.in_text) as in_file: lines = in_file.readlines() if args.limit: lines = lines[: args.limit] nlp = mimosa_pipe...
25
82
0.584
0
0
0
0
0
0
0
0
43
0.049143
b82ba735b06701323afbbc1adb2108b231b98638
1,647
py
Python
CxMetrics/calcMetrics.py
Danielhiversen/pyCustusx
5a7fca51d885ad30f4db46ab725485d86fb2d17a
[ "MIT" ]
null
null
null
CxMetrics/calcMetrics.py
Danielhiversen/pyCustusx
5a7fca51d885ad30f4db46ab725485d86fb2d17a
[ "MIT" ]
null
null
null
CxMetrics/calcMetrics.py
Danielhiversen/pyCustusx
5a7fca51d885ad30f4db46ab725485d86fb2d17a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Oct 24 11:39:42 2015 @author: dahoiv """ import numpy as np def loadMetrics(filepath): mr_points=dict() us_points=dict() with open(filepath, 'r') as file : for line in file.readlines(): line = line.translate(None, '"') ...
32.294118
82
0.571342
0
0
0
0
0
0
0
0
300
0.182149
b82dae5c13359feb72d2a0825f3801687d516058
118
py
Python
twodspec/extern/__init__.py
hypergravity/songcn
e2b071c932720d02e5f085884c83c46baba7802d
[ "MIT" ]
null
null
null
twodspec/extern/__init__.py
hypergravity/songcn
e2b071c932720d02e5f085884c83c46baba7802d
[ "MIT" ]
null
null
null
twodspec/extern/__init__.py
hypergravity/songcn
e2b071c932720d02e5f085884c83c46baba7802d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __all__ = ['interpolate', 'polynomial', 'SmoothSpline'] from .interpolate import SmoothSpline
29.5
55
0.70339
0
0
0
0
0
0
0
0
62
0.525424
b82f6fabf22a5cbcfa7dd2e7ea076e9e772feb3f
3,286
py
Python
SUAVE/SUAVE-2.5.0/trunk/SUAVE/Methods/Weights/Correlations/Transport/tube.py
Vinicius-Tanigawa/Undergraduate-Research-Project
e92372f07882484b127d7affe305eeec2238b8a9
[ "MIT" ]
null
null
null
SUAVE/SUAVE-2.5.0/trunk/SUAVE/Methods/Weights/Correlations/Transport/tube.py
Vinicius-Tanigawa/Undergraduate-Research-Project
e92372f07882484b127d7affe305eeec2238b8a9
[ "MIT" ]
null
null
null
SUAVE/SUAVE-2.5.0/trunk/SUAVE/Methods/Weights/Correlations/Transport/tube.py
Vinicius-Tanigawa/Undergraduate-Research-Project
e92372f07882484b127d7affe305eeec2238b8a9
[ "MIT" ]
null
null
null
## @ingroup Methods-Weights-Correlations-Tube_Wing # tube.py # # Created: Jan 2014, A. Wendorff # Modified: Feb 2014, A. Wendorff # Feb 2016, E. Botero # ---------------------------------------------------------------------- # Imports # --------------------------------------------------------------------...
45.013699
123
0.5
0
0
0
0
0
0
0
0
2,411
0.733719
b82ff818b8e67f8cae3f7360326180bd7e14f756
3,837
py
Python
Dependencies/02_macOS/40_gtk+/x64/lib/gobject-introspection/giscanner/annotationmain.py
bognikol/Eleusis
ee518ede31893689eb6d3c5539e0bd757aeb0294
[ "MIT" ]
4
2019-05-31T19:55:23.000Z
2020-10-27T10:00:32.000Z
Dependencies/02_macOS/40_gtk+/x64/lib/gobject-introspection/giscanner/annotationmain.py
bognikol/Eleusis
ee518ede31893689eb6d3c5539e0bd757aeb0294
[ "MIT" ]
null
null
null
Dependencies/02_macOS/40_gtk+/x64/lib/gobject-introspection/giscanner/annotationmain.py
bognikol/Eleusis
ee518ede31893689eb6d3c5539e0bd757aeb0294
[ "MIT" ]
3
2019-04-29T14:09:38.000Z
2020-10-27T10:00:33.000Z
# -*- Mode: Python -*- # GObject-Introspection - a framework for introspecting GObject libraries # Copyright (C) 2010 Johan Dahlin # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either versio...
36.542857
89
0.65963
0
0
644
0.167839
660
0.172009
0
0
1,600
0.416992
b830ed284183da0f588ffc8416e532df6cb6e5aa
1,219
py
Python
src/tools/json2db.py
chobocho/ChoboMemo2
d3883e20d7c69c48477d1178120e0e32c062b27f
[ "MIT" ]
null
null
null
src/tools/json2db.py
chobocho/ChoboMemo2
d3883e20d7c69c48477d1178120e0e32c062b27f
[ "MIT" ]
null
null
null
src/tools/json2db.py
chobocho/ChoboMemo2
d3883e20d7c69c48477d1178120e0e32c062b27f
[ "MIT" ]
null
null
null
import os import sys import json from manager import dbmanager def loadJson(filename): print("loadJson: " + filename) memoList = [] try: if os.path.isfile(filename): file = open(filename, 'r', encoding="UTF-8") lines = file.readlines() file.close() ...
23
56
0.525021
0
0
0
0
0
0
0
0
203
0.16653
b8317e86fff68e0107933de518fdf61bc7534d00
171
py
Python
Configuration/ProcessModifiers/python/trackingMkFitTobTecStep_cff.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
Configuration/ProcessModifiers/python/trackingMkFitTobTecStep_cff.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
Configuration/ProcessModifiers/python/trackingMkFitTobTecStep_cff.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms # This modifier sets replaces the default pattern recognition with mkFit for tobTecStep trackingMkFitTobTecStep = cms.Modifier()
34.2
87
0.836257
0
0
0
0
0
0
0
0
87
0.508772
b8327398b4c50fa047db432d9765d37a5dd0095d
3,772
py
Python
config/config.py
rossja/Docker-Minecraft-Overviewer
bb2285f5af723a74b1365bbcbe284b9e5ce85245
[ "MIT" ]
12
2019-12-14T13:58:44.000Z
2022-03-12T10:43:43.000Z
config/config.py
rossja/Docker-Minecraft-Overviewer
bb2285f5af723a74b1365bbcbe284b9e5ce85245
[ "MIT" ]
2
2019-02-04T09:46:10.000Z
2019-02-05T10:05:56.000Z
config/config.py
rossja/Docker-Minecraft-Overviewer
bb2285f5af723a74b1365bbcbe284b9e5ce85245
[ "MIT" ]
5
2020-01-29T20:38:35.000Z
2021-12-18T19:56:49.000Z
# My config.py script for overviewer: worlds["pudel"] = "/tmp/server/world/" worlds["pudel_nether"] = "/tmp/server/world_nether/" texturepath = "/tmp/overviewer/client.jar" processes = 2 outputdir = "/tmp/export/" my_cave = [Base(), EdgeLines(), Cave(only_lit=True), DepthTinting()] my_nowater = [Base(), EdgeLines(), No...
26.013793
82
0.593054
0
0
0
0
0
0
0
0
2,272
0.602333
b832db34004caeef160a328496546197b3b692d7
1,764
py
Python
SurveyManager/survey/models.py
javiervar/SurveyManager
bbe2ed356654c32586c587f58c609c8ce014e96b
[ "MIT" ]
null
null
null
SurveyManager/survey/models.py
javiervar/SurveyManager
bbe2ed356654c32586c587f58c609c8ce014e96b
[ "MIT" ]
null
null
null
SurveyManager/survey/models.py
javiervar/SurveyManager
bbe2ed356654c32586c587f58c609c8ce014e96b
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Encuesta(models.Model): nombre=models.CharField(max_length=150) descripcion=models.TextField() estructura=models.TextField() fecha = models.DateTimeField(auto_now_add=True) def __str__(self): return str(self.nombre) class Pregunta(models.Model):...
30.413793
92
0.786848
1,692
0.959184
0
0
0
0
0
0
103
0.05839
b8361f78932036e9f23fbe61c22ab2ba8ac449f7
3,150
py
Python
pythainlp/corpus/__init__.py
petetanru/pythainlp
83fa999336ce8c7f7b5431fc2fc41c53c5cb7604
[ "Apache-2.0" ]
1
2018-10-10T19:01:43.000Z
2018-10-10T19:01:43.000Z
pythainlp/corpus/__init__.py
Khawoat6/pythainlp
05979c0ac9a596bb7957fb8a050a32c87ea098e8
[ "Apache-2.0" ]
null
null
null
pythainlp/corpus/__init__.py
Khawoat6/pythainlp
05979c0ac9a596bb7957fb8a050a32c87ea098e8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import,unicode_literals from pythainlp.tools import get_path_db,get_path_data from tinydb import TinyDB,Query from future.moves.urllib.request import urlopen from tqdm import tqdm import requests import os import math import requests from nltk.corpus import names ...
40.384615
124
0.586032
0
0
0
0
0
0
0
0
645
0.204762
b83a4b8131231e8ffeccb27881d8404fa73c602e
649
py
Python
dynamic programming/python/leetcode303_Range_Sum_Query_Immutable.py
wenxinjie/leetcode
c459a01040c8fe0783e15a16b8d7cca4baf4612a
[ "Apache-2.0" ]
null
null
null
dynamic programming/python/leetcode303_Range_Sum_Query_Immutable.py
wenxinjie/leetcode
c459a01040c8fe0783e15a16b8d7cca4baf4612a
[ "Apache-2.0" ]
null
null
null
dynamic programming/python/leetcode303_Range_Sum_Query_Immutable.py
wenxinjie/leetcode
c459a01040c8fe0783e15a16b8d7cca4baf4612a
[ "Apache-2.0" ]
null
null
null
# Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive. # Example: # Given nums = [-2, 0, 3, -5, 2, -1] # sumRange(0, 2) -> 1 # sumRange(2, 5) -> -1 # sumRange(0, 5) -> -3 class NumArray: def __init__(self, nums): """ :type nums: List[int] ...
20.935484
103
0.497689
378
0.580645
0
0
0
0
0
0
381
0.585253
b83d0a4d0944019fd7f267fd6043e0bc64496350
8,257
py
Python
py/garage/garage/asyncs/messaging/reqrep.py
clchiou/garage
446ff34f86cdbd114b09b643da44988cf5d027a3
[ "MIT" ]
3
2016-01-04T06:28:52.000Z
2020-09-20T13:18:40.000Z
py/garage/garage/asyncs/messaging/reqrep.py
clchiou/garage
446ff34f86cdbd114b09b643da44988cf5d027a3
[ "MIT" ]
null
null
null
py/garage/garage/asyncs/messaging/reqrep.py
clchiou/garage
446ff34f86cdbd114b09b643da44988cf5d027a3
[ "MIT" ]
null
null
null
__all__ = [ 'Terminated', 'Unavailable', 'client', 'server', ] import logging import time import curio import nanomsg as nn from garage import asyncs from garage.assertions import ASSERT from garage.asyncs import futures from garage.asyncs import queues LOG = logging.getLogger(__name__) class Te...
33.294355
76
0.608696
129
0.015623
0
0
0
0
7,479
0.905777
2,217
0.268499
b83f80c89541762b358261a94161b094315b1f52
1,412
py
Python
fasm_utils/segbits.py
antmicro/quicklogic-fasm-utils
83c867e3269e1186b9bcd71767bb810c82b3905d
[ "Apache-2.0" ]
null
null
null
fasm_utils/segbits.py
antmicro/quicklogic-fasm-utils
83c867e3269e1186b9bcd71767bb810c82b3905d
[ "Apache-2.0" ]
1
2021-06-25T15:38:43.000Z
2021-06-25T15:38:43.000Z
fasm_utils/segbits.py
antmicro/quicklogic-fasm-utils
83c867e3269e1186b9bcd71767bb810c82b3905d
[ "Apache-2.0" ]
1
2020-05-18T12:04:40.000Z
2020-05-18T12:04:40.000Z
from collections import namedtuple Bit = namedtuple('Bit', 'x y isset') def parsebit(val: str): """Parses bit notation for .db files to Bit class. Parameters ---------- val: str A string containing .db bit notation, i.e. "!012_23" => (12, 23, False) Returns ------- Bit: A named...
21.723077
79
0.563739
0
0
0
0
0
0
0
0
643
0.455382
b84015aceb9a117ef3d45102bccf99b010e44535
927
py
Python
docs/_api/_build/delira/logging/visdom_backend.py
gedoensmax/delira
545e2ccbe56ed382d300cf3d00317e9a0e3ab5f6
[ "BSD-2-Clause" ]
1
2019-10-03T21:00:20.000Z
2019-10-03T21:00:20.000Z
docs/_api/_build/delira/logging/visdom_backend.py
gedoensmax/delira
545e2ccbe56ed382d300cf3d00317e9a0e3ab5f6
[ "BSD-2-Clause" ]
null
null
null
docs/_api/_build/delira/logging/visdom_backend.py
gedoensmax/delira
545e2ccbe56ed382d300cf3d00317e9a0e3ab5f6
[ "BSD-2-Clause" ]
null
null
null
import tensorboardX from threading import Event from queue import Queue from delira.logging.writer_backend import WriterLoggingBackend class VisdomBackend(WriterLoggingBackend): """ A Visdom Logging backend """ def __init__(self, writer_kwargs: dict = None, abort_event: Event = None...
23.769231
65
0.593312
788
0.850054
0
0
60
0.064725
0
0
346
0.373247
b842118c3400dc6b3842e04f1499ebec381bda43
7,706
py
Python
node/substitute.py
treverson/coin-buildimage
a868250733f65140a6d11a5fbd3b4a7e1509f8d5
[ "MIT" ]
1
2018-09-28T11:51:06.000Z
2018-09-28T11:51:06.000Z
node/substitute.py
treverson/coin-buildimage
a868250733f65140a6d11a5fbd3b4a7e1509f8d5
[ "MIT" ]
null
null
null
node/substitute.py
treverson/coin-buildimage
a868250733f65140a6d11a5fbd3b4a7e1509f8d5
[ "MIT" ]
null
null
null
#! /usr/bin/env python3.5 # vim:ts=4:sw=4:ai:et:si:sts=4 import argparse import json import re import os import uuid import shutil import sys import requests filterRe = re.compile(r'(?P<block>^%=(?P<mode>.)?\s+(?P<label>.*?)\s+(?P<value>[^\s\n$]+)(?:\s*.*?)?^(?P<section>.*?)^=%.*?$)', re.M | re.S) subItemRe = re.com...
29.189394
140
0.616922
0
0
0
0
0
0
0
0
2,061
0.267454
b842ca4df0f85a27ac428ca98c508bc0fd8473bb
379
py
Python
pages/page1.py
kalimuthu123/dash-app
90bf4c570abb1770ea0f082989e8f97d62b98346
[ "MIT" ]
null
null
null
pages/page1.py
kalimuthu123/dash-app
90bf4c570abb1770ea0f082989e8f97d62b98346
[ "MIT" ]
null
null
null
pages/page1.py
kalimuthu123/dash-app
90bf4c570abb1770ea0f082989e8f97d62b98346
[ "MIT" ]
null
null
null
import dash_html_components as html from utils import Header def create_layout(app): # Page layouts return html.Div( [ html.Div([Header(app)]), # page 1 # add your UI here, and callbacks go at the bottom of app.py # assets and .js go in assets folder ...
25.266667
72
0.564644
0
0
0
0
0
0
0
0
151
0.398417
b8431428845abd267d2447bb2c266f7ad3458a5b
318
py
Python
polrev/offices/admin/office_admin.py
polrev-github/polrev-django
99108ace1a5307b14c3eccb424a9f9616e8c02ae
[ "MIT" ]
1
2021-12-10T05:54:16.000Z
2021-12-10T05:54:16.000Z
polrev/offices/admin/office_admin.py
polrev-github/polrev-django
99108ace1a5307b14c3eccb424a9f9616e8c02ae
[ "MIT" ]
null
null
null
polrev/offices/admin/office_admin.py
polrev-github/polrev-django
99108ace1a5307b14c3eccb424a9f9616e8c02ae
[ "MIT" ]
null
null
null
from django.contrib import admin from offices.models import OfficeType, Office class OfficeTypeAdmin(admin.ModelAdmin): search_fields = ['title'] admin.site.register(OfficeType, OfficeTypeAdmin) ''' class OfficeAdmin(admin.ModelAdmin): search_fields = ['title'] admin.site.register(Office, OfficeAdmin) '''
22.714286
48
0.77044
70
0.220126
0
0
0
0
0
0
123
0.386792
b84346e9d501185aa45dba40c444e9fe20860224
6,511
py
Python
tests/spec/test_schema_parser.py
tclh123/aio-openapi
7c63eb628b7735501508aea6c83e458715fb070b
[ "BSD-3-Clause" ]
19
2019-03-04T22:50:38.000Z
2022-03-02T09:28:17.000Z
tests/spec/test_schema_parser.py
tclh123/aio-openapi
7c63eb628b7735501508aea6c83e458715fb070b
[ "BSD-3-Clause" ]
4
2019-03-04T23:03:08.000Z
2022-01-16T11:32:54.000Z
tests/spec/test_schema_parser.py
tclh123/aio-openapi
7c63eb628b7735501508aea6c83e458715fb070b
[ "BSD-3-Clause" ]
3
2020-05-20T17:43:08.000Z
2021-10-06T10:47:41.000Z
from dataclasses import dataclass, field from datetime import datetime from enum import Enum from typing import Dict, List import pytest from openapi.data.fields import ( as_field, bool_field, data_field, date_time_field, number_field, ) from openapi.exc import InvalidSpecException, InvalidTypeExc...
30.283721
85
0.587775
1,562
0.239902
0
0
1,562
0.239902
0
0
1,605
0.246506
b8437331efb5465038081e91c134bce49f22a468
394
py
Python
models/losses/MSE.py
johnrachwan123/SNIP-it
a578a0693318f261492331298b6602de225fe21f
[ "MIT" ]
null
null
null
models/losses/MSE.py
johnrachwan123/SNIP-it
a578a0693318f261492331298b6602de225fe21f
[ "MIT" ]
null
null
null
models/losses/MSE.py
johnrachwan123/SNIP-it
a578a0693318f261492331298b6602de225fe21f
[ "MIT" ]
1
2021-11-08T16:34:45.000Z
2021-11-08T16:34:45.000Z
import torch from torch import nn from models.GeneralModel import GeneralModel class MSE(GeneralModel): def __init__(self, device, l1_reg=0, lp_reg=0, **kwargs): super(MSE, self).__init__(device, **kwargs) self.loss = nn.MSELoss() def forward(self, output=None, target=None, weight_generator...
28.142857
81
0.700508
312
0.791878
0
0
0
0
0
0
0
0
b845201c7741d5e90f7173c09fe9315087e66057
2,046
py
Python
svca_limix/limix/core/covar/test/test_categorical.py
DenisSch/svca
bd029c120ca8310f43311253e4d7ce19bc08350c
[ "Apache-2.0" ]
65
2015-01-20T20:46:26.000Z
2021-06-27T14:40:35.000Z
svca_limix/limix/core/covar/test/test_categorical.py
DenisSch/svca
bd029c120ca8310f43311253e4d7ce19bc08350c
[ "Apache-2.0" ]
29
2015-02-01T22:35:17.000Z
2017-08-07T08:18:23.000Z
svca_limix/limix/core/covar/test/test_categorical.py
DenisSch/svca
bd029c120ca8310f43311253e4d7ce19bc08350c
[ "Apache-2.0" ]
35
2015-02-01T17:26:50.000Z
2019-09-13T07:06:16.000Z
"""LMM testing code""" import unittest import scipy as sp import numpy as np from limix.core.covar import CategoricalCov from limix.utils.check_grad import mcheck_grad class TestCategoricalLowRank(unittest.TestCase): """test class for CategoricalCov cov""" def setUp(self): sp.random.seed(1) sel...
26.921053
62
0.580645
1,826
0.892473
0
0
0
0
0
0
500
0.244379
b8459a275062134e5f40c7584623582d09c9aa02
4,274
py
Python
code/stephen/005/005.py
Stephen0910/python-practice-for-game-tester
e17b2666d18a51e5bff31ad0355ad4a6775191a4
[ "MIT" ]
29
2019-03-07T03:03:42.000Z
2021-12-25T04:55:58.000Z
code/stephen/005/005.py
Stephen0910/python-practice-for-game-tester
e17b2666d18a51e5bff31ad0355ad4a6775191a4
[ "MIT" ]
null
null
null
code/stephen/005/005.py
Stephen0910/python-practice-for-game-tester
e17b2666d18a51e5bff31ad0355ad4a6775191a4
[ "MIT" ]
19
2019-03-11T02:40:37.000Z
2021-09-24T08:57:04.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2019/3/13 0013 下午 3:44 # @Author : Stephen # @Site : # @File : 005.py # @Purpose : # @Software : PyCharm # @Copyright: (c) Stephen 2019 # @Licence : <your licence> import os, re, time from pyecharts import Line """ 配置游戏包名和名字 """ package_na...
30.312057
97
0.523631
3,918
0.874554
0
0
0
0
0
0
1,353
0.302009
b846bfa9679bd871993a1750e2cf6c621e13bfac
13,470
py
Python
sdk/opendp/smartnoise/synthesizers/pytorch/nn/dpctgan.py
Tecnarca/whitenoise-system
9dfc1425bca77f6e30afe1eea253a6b580bfa847
[ "MIT" ]
1
2021-12-30T15:21:54.000Z
2021-12-30T15:21:54.000Z
sdk/opendp/smartnoise/synthesizers/pytorch/nn/dpctgan.py
Tecnarca/whitenoise-system
9dfc1425bca77f6e30afe1eea253a6b580bfa847
[ "MIT" ]
null
null
null
sdk/opendp/smartnoise/synthesizers/pytorch/nn/dpctgan.py
Tecnarca/whitenoise-system
9dfc1425bca77f6e30afe1eea253a6b580bfa847
[ "MIT" ]
null
null
null
import numpy as np import torch from torch import optim from torch.nn import functional import torch.nn as nn import torch.utils.data from torch.nn import BatchNorm1d, Dropout, LeakyReLU, Linear, Module, ReLU, Sequential,Sigmoid from torch.nn import functional as F from opendp.smartnoise.synthesizers.base import SDGYMB...
36.307278
129
0.566592
12,153
0.902227
0
0
0
0
0
0
1,459
0.108315
b846da72c1b90ad2cd7931c2938c866fd817d9f6
1,814
py
Python
client/client.py
MasonDiGi/chat_server
2100eb012f8bce359b51e0dc8684a82949ba1c17
[ "MIT" ]
null
null
null
client/client.py
MasonDiGi/chat_server
2100eb012f8bce359b51e0dc8684a82949ba1c17
[ "MIT" ]
null
null
null
client/client.py
MasonDiGi/chat_server
2100eb012f8bce359b51e0dc8684a82949ba1c17
[ "MIT" ]
null
null
null
import socket import threading import time # Create constants HEADER = 64 PORT = 5050 FORMAT = 'utf-8' DC_MSG = "!DISCONNECT" SERVER = "localhost" ADDR = (SERVER, PORT) # Set up client var and connect to the server client = socket.socket(socket.AF_INET, socket.SOCK_STREAM) client.connect(ADDR) erase = ...
26.676471
117
0.615215
0
0
0
0
0
0
0
0
651
0.358875
b8481e8c9248a5d340e323d7d3c83d87b3a95b6f
9,183
py
Python
src/cogs/ide/dialogs/edit_view.py
osam7a/Jarvide
9a4424c293ae40b21968b5118f60862860ff5247
[ "MIT" ]
null
null
null
src/cogs/ide/dialogs/edit_view.py
osam7a/Jarvide
9a4424c293ae40b21968b5118f60862860ff5247
[ "MIT" ]
null
null
null
src/cogs/ide/dialogs/edit_view.py
osam7a/Jarvide
9a4424c293ae40b21968b5118f60862860ff5247
[ "MIT" ]
null
null
null
from __future__ import annotations import disnake from disnake.ext import commands from typing import TYPE_CHECKING from src.utils.utils import EmbedFactory, ExitButton, SaveButton, add_lines, get_info if TYPE_CHECKING: from src.utils import File def clear_codeblock(content: str): content.strip("\n") ...
35.871094
117
0.597299
8,302
0.904062
0
0
6,932
0.754873
6,689
0.728411
1,024
0.11151
b8493d2511af44620ab30010ea879f211db8a17b
11,878
py
Python
modules/administrator.py
Gaeta/Delta
c76e149d0c17e025fe2648964e2512440fc0b4c7
[ "MIT" ]
1
2021-07-04T10:34:11.000Z
2021-07-04T10:34:11.000Z
modules/administrator.py
Gaeta/Delta
c76e149d0c17e025fe2648964e2512440fc0b4c7
[ "MIT" ]
null
null
null
modules/administrator.py
Gaeta/Delta
c76e149d0c17e025fe2648964e2512440fc0b4c7
[ "MIT" ]
null
null
null
import discord, sqlite3, asyncio, utils, re from discord.ext import commands from datetime import datetime TIME_REGEX = re.compile("(?:(\d{1,5})\s?(h|hours|hrs|hour|hr|s|seconds|secs|sec|second|m|mins|minutes|minute|min|d|days|day))+?") TIME_DICT = {"h": 3600, "s": 1, "m": 60, "d": 86400} class TimeConverter...
46.217899
272
0.594124
11,509
0.968934
0
0
10,583
0.890975
10,596
0.892069
3,039
0.255851
b84a30c58e64eb7a73321b156d6da42908f33f1f
23,650
py
Python
models/feature_extraction/gcn_resnest.py
hoangtuanvu/rad_chestxray
b29c2bf98ae41d85258b21674e8826847a0cc647
[ "MIT" ]
2
2020-09-07T00:06:41.000Z
2020-09-29T07:08:24.000Z
models/feature_extraction/gcn_resnest.py
hoangtuanvu/rad_chestxray
b29c2bf98ae41d85258b21674e8826847a0cc647
[ "MIT" ]
7
2020-09-25T22:12:53.000Z
2021-08-25T16:06:24.000Z
models/feature_extraction/gcn_resnest.py
hoangtuanvu/rad_chestxray
b29c2bf98ae41d85258b21674e8826847a0cc647
[ "MIT" ]
null
null
null
##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ## Created by: Hang Zhang ## Email: [email protected] ## Copyright (c) 2020 ## ## LICENSE file in the root directory of this source tree ##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ """ResNet variants""" imp...
42.383513
229
0.602199
18,929
0.800381
0
0
0
0
0
0
3,244
0.137167
b84bfe3e24cf3fa88c7b90891f02c84318e2faae
7,473
py
Python
nextai_lib/inference.py
jav0927/nextai
9de0c338a41a3ce0297b95f625290fa814a83344
[ "Apache-2.0" ]
null
null
null
nextai_lib/inference.py
jav0927/nextai
9de0c338a41a3ce0297b95f625290fa814a83344
[ "Apache-2.0" ]
1
2021-09-28T05:33:17.000Z
2021-09-28T05:33:17.000Z
nextai_lib/inference.py
jav0927/nextai
9de0c338a41a3ce0297b95f625290fa814a83344
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED! DO NOT EDIT! File to edit: 02_inference.ipynb (unless otherwise specified). __all__ = ['device', 'pad_output', 'get_activ_offsets_mns'] # Cell #from fastai.vision.all import * from fastai import * from typing import * from torch import tensor, Tensor import torch import torchvision # Needed to i...
59.784
174
0.640707
0
0
0
0
0
0
0
0
3,690
0.493778
b84c1c6e378f4059bee57b13f1d84bcf63b4ae74
2,141
py
Python
code.py
ashweta81/data-wrangling-pandas-code-along-practice
af49250a45c616f46d763990f2321f470d439916
[ "MIT" ]
null
null
null
code.py
ashweta81/data-wrangling-pandas-code-along-practice
af49250a45c616f46d763990f2321f470d439916
[ "MIT" ]
null
null
null
code.py
ashweta81/data-wrangling-pandas-code-along-practice
af49250a45c616f46d763990f2321f470d439916
[ "MIT" ]
null
null
null
# -------------- import pandas as pd import numpy as np # Read the data using pandas module. data=pd.read_csv(path) # Find the list of unique cities where matches were played print("The unique cities where matches were played are ", data.city.unique()) print('*'*80) # Find the columns which contains null values if a...
40.396226
109
0.712751
0
0
0
0
0
0
0
0
1,055
0.49276
b84e3b8a7a2a09cb215aab0d692cf00fa2446655
794
py
Python
Trakttv.bundle/Contents/Libraries/Shared/plugin/scrobbler/handlers/playing.py
disrupted/Trakttv.bundle
24712216c71f3b22fd58cb5dd89dad5bb798ed60
[ "RSA-MD" ]
1,346
2015-01-01T14:52:24.000Z
2022-03-28T12:50:48.000Z
Trakttv.bundle/Contents/Libraries/Shared/plugin/scrobbler/handlers/playing.py
alcroito/Plex-Trakt-Scrobbler
4f83fb0860dcb91f860d7c11bc7df568913c82a6
[ "RSA-MD" ]
474
2015-01-01T10:27:46.000Z
2022-03-21T12:26:16.000Z
Trakttv.bundle/Contents/Libraries/Shared/plugin/scrobbler/handlers/playing.py
alcroito/Plex-Trakt-Scrobbler
4f83fb0860dcb91f860d7c11bc7df568913c82a6
[ "RSA-MD" ]
191
2015-01-02T18:27:22.000Z
2022-03-29T10:49:48.000Z
from plugin.scrobbler.core import SessionEngine, SessionHandler @SessionEngine.register class PlayingHandler(SessionHandler): __event__ = 'playing' __src__ = ['create', 'pause', 'stop', 'start'] __dst__ = ['start', 'stop'] @classmethod def process(cls, session, payload): # Handle media c...
31.76
91
0.61461
703
0.88539
533
0.671285
727
0.915617
0
0
168
0.211587
b84e7cc9d16e3f0b3e8a9ecacf33341e96af47cb
102
py
Python
Desafio 46.py
MisaelGuilherme/100_Exercicios_Em_Python
8c4cdad7e60201abcdd2c4a5646f52aed4e7041e
[ "MIT" ]
null
null
null
Desafio 46.py
MisaelGuilherme/100_Exercicios_Em_Python
8c4cdad7e60201abcdd2c4a5646f52aed4e7041e
[ "MIT" ]
null
null
null
Desafio 46.py
MisaelGuilherme/100_Exercicios_Em_Python
8c4cdad7e60201abcdd2c4a5646f52aed4e7041e
[ "MIT" ]
null
null
null
print('====== DESAFIO 46 ======') import time for c in range(10,-1,-1): time.sleep(1) print(c)
20.4
33
0.539216
0
0
0
0
0
0
0
0
26
0.254902
b850754dddf9940614a7ecc4de4bab7929800a85
4,329
py
Python
samples/features/sql-big-data-cluster/security/encryption-at-rest-external-key-provider/kms_plugin_app/custom_akv.py
aguzev/sql-server-samples
498c47f2ac8e45d052ed61878a2ce11eb32394bf
[ "MIT" ]
4,474
2019-05-06T23:05:37.000Z
2022-03-31T23:30:31.000Z
samples/features/sql-big-data-cluster/security/encryption-at-rest-external-key-provider/kms_plugin_app/custom_akv.py
aguzev/sql-server-samples
498c47f2ac8e45d052ed61878a2ce11eb32394bf
[ "MIT" ]
256
2019-05-07T07:07:19.000Z
2022-03-29T17:11:41.000Z
samples/features/sql-big-data-cluster/security/encryption-at-rest-external-key-provider/kms_plugin_app/custom_akv.py
aguzev/sql-server-samples
498c47f2ac8e45d052ed61878a2ce11eb32394bf
[ "MIT" ]
5,075
2019-05-07T00:07:21.000Z
2022-03-31T23:31:15.000Z
# Placeholder for adding logic specific to application # and backend key store. # import os import json import sys from azure.identity import DefaultAzureCredential from azure.keyvault.keys import KeyClient from azure.keyvault.keys.crypto import CryptographyClient, EncryptionAlgorithm # Append the current application p...
40.839623
90
0.769924
0
0
0
0
0
0
0
0
1,498
0.346038
b85115da00994686b76087d8e81c839619f86fa0
338
py
Python
scss/setup.py
Jawbone/pyScss
b1f483c253ec4aaceb3b8d4d630ca5528590e9b8
[ "MIT" ]
null
null
null
scss/setup.py
Jawbone/pyScss
b1f483c253ec4aaceb3b8d4d630ca5528590e9b8
[ "MIT" ]
null
null
null
scss/setup.py
Jawbone/pyScss
b1f483c253ec4aaceb3b8d4d630ca5528590e9b8
[ "MIT" ]
null
null
null
from distutils.core import setup, Extension setup(name='jawbonePyScss', version='1.1.8', description='jawbonePyScss', ext_modules=[ Extension( '_scss', sources=['src/_scss.c', 'src/block_locator.c', 'src/scanner.c'], libraries=['pcre'], optional=True ...
22.533333
76
0.553254
0
0
0
0
0
0
0
0
99
0.292899
b851d6b0de112cf236b222d90e4d36785001355b
18,301
py
Python
spanner_orm/tests/query_test.py
MetaOfX/python-spanner-orm
59063eb6989b845d1658118a7a0282eede19d8bf
[ "Apache-2.0" ]
37
2018-11-01T18:29:03.000Z
2022-03-30T17:24:39.000Z
spanner_orm/tests/query_test.py
MetaOfX/python-spanner-orm
59063eb6989b845d1658118a7a0282eede19d8bf
[ "Apache-2.0" ]
48
2018-11-05T18:51:23.000Z
2021-12-17T20:28:11.000Z
spanner_orm/tests/query_test.py
MetaOfX/python-spanner-orm
59063eb6989b845d1658118a7a0282eede19d8bf
[ "Apache-2.0" ]
19
2019-05-04T06:05:31.000Z
2021-12-17T20:52:53.000Z
# python3 # Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
38.855626
112
0.674335
17,246
0.942353
0
0
11,131
0.608218
0
0
3,741
0.204415
b8521a1784e7669f76ae670720d2483ecddff419
518
py
Python
leetcode/1859_sorting_the_sentence.py
jacquerie/leetcode
a05e6b832eb0e0740aaff7b2eb3109038ad404bf
[ "MIT" ]
3
2018-05-10T09:56:49.000Z
2020-11-07T18:09:42.000Z
leetcode/1859_sorting_the_sentence.py
jacquerie/leetcode
a05e6b832eb0e0740aaff7b2eb3109038ad404bf
[ "MIT" ]
null
null
null
leetcode/1859_sorting_the_sentence.py
jacquerie/leetcode
a05e6b832eb0e0740aaff7b2eb3109038ad404bf
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- class Solution: def sortSentence(self, s: str) -> str: tokens = s.split() result = [None] * len(tokens) for token in tokens: word, index = token[:-1], int(token[-1]) result[index - 1] = word return ' '.join(result) if __name__ == '...
25.9
82
0.579151
276
0.532819
0
0
0
0
0
0
118
0.227799
b8522b1cda4c464e1d7c573371d89f13b40ae37b
89
py
Python
todoapi/apps.py
Faysa1/Gestion-Tickets-Taches
eeba92df59c3217d15b02a5bb1ed3c6e673537a4
[ "Apache-2.0" ]
51
2018-12-12T20:18:31.000Z
2022-03-11T20:23:35.000Z
todoapi/apps.py
Faysa1/Gestion-Tickets-Taches
eeba92df59c3217d15b02a5bb1ed3c6e673537a4
[ "Apache-2.0" ]
11
2018-12-17T08:48:07.000Z
2022-03-02T02:54:38.000Z
todoapi/apps.py
Faysa1/Gestion-Tickets-Taches
eeba92df59c3217d15b02a5bb1ed3c6e673537a4
[ "Apache-2.0" ]
29
2018-12-12T20:19:00.000Z
2022-01-18T12:33:21.000Z
from django.apps import AppConfig class TodoapiConfig(AppConfig): name = 'todoapi'
14.833333
33
0.752809
52
0.58427
0
0
0
0
0
0
9
0.101124
b85283b049e0e58e8a7c62f87369d905b8440e5f
3,101
py
Python
src/flagon/backends/redis_backend.py
ashcrow/flagon
50e6aa96854468a89399ef08573e4f814a002d26
[ "MIT" ]
18
2015-08-27T03:49:42.000Z
2021-05-12T21:48:17.000Z
src/flagon/backends/redis_backend.py
ashcrow/flagon
50e6aa96854468a89399ef08573e4f814a002d26
[ "MIT" ]
2
2016-07-18T13:48:46.000Z
2017-05-20T15:56:03.000Z
src/flagon/backends/redis_backend.py
ashcrow/flagon
50e6aa96854468a89399ef08573e4f814a002d26
[ "MIT" ]
5
2015-09-20T08:46:01.000Z
2021-06-10T03:41:04.000Z
# The MIT License (MIT) # # Copyright (c) 2014 Steve Milner # # 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, modi...
32.642105
78
0.639471
1,882
0.606901
0
0
0
0
0
0
1,945
0.627217
b8578eebc5523ec0f810b0739d30b92505082a9a
2,365
py
Python
6. Ordinary Differential Equations/4. a. Higher Order Ordinary Differential Equation using RK4.py
dmNadim/Numerical-Methods
2c74312ea4efddd7db65483fef02fea710963dcf
[ "MIT" ]
null
null
null
6. Ordinary Differential Equations/4. a. Higher Order Ordinary Differential Equation using RK4.py
dmNadim/Numerical-Methods
2c74312ea4efddd7db65483fef02fea710963dcf
[ "MIT" ]
null
null
null
6. Ordinary Differential Equations/4. a. Higher Order Ordinary Differential Equation using RK4.py
dmNadim/Numerical-Methods
2c74312ea4efddd7db65483fef02fea710963dcf
[ "MIT" ]
null
null
null
from math import sin, cos, pi f = lambda x: 9*pi*cos(x) + 7*sin(x) + 4*x - 5*x*cos(x) # Analytical Solution df = lambda x: -9*pi*sin(x) + 7*cos(x) + 4 - 5*(cos(x)-x*sin(x)) dy = lambda x,y,u: u # 1st Derivative, y' = u du = lambda x,y,u: 4*x + 10*sin(x) - y # 2nd Derivative, u' = 4x+10sin(x)-y x = ...
36.384615
78
0.4537
0
0
0
0
0
0
0
0
1,384
0.582492
b85874411e43ac8ab8f40e52f253f84cc102e824
1,029
py
Python
scripts/image_navigation.py
habibmuhammadthariq/iq_gnc
06752997c103b48db48efb2814923fdc3a0f74b8
[ "MIT" ]
null
null
null
scripts/image_navigation.py
habibmuhammadthariq/iq_gnc
06752997c103b48db48efb2814923fdc3a0f74b8
[ "MIT" ]
null
null
null
scripts/image_navigation.py
habibmuhammadthariq/iq_gnc
06752997c103b48db48efb2814923fdc3a0f74b8
[ "MIT" ]
null
null
null
#! /usr/bin/env python #ros library #import rospy #import the API #from iq_gnc.py_gnc_functions import * #print the colours #from iq_gnc.PrintColours import * # Importing Point message from package geometry_msgs. #from geometry_msgs.msg import Point #import opencv library import cv2 cap = cv2.VideoCapture(0) while T...
25.725
54
0.651118
0
0
0
0
0
0
0
0
555
0.539359
b8588a227beffd14bd3ab5788c323affed1dda08
1,083
py
Python
switchmng/wsgi.py
AnsgarKlein/switchmng
d86ae2dc40ef70f43fec8e3adf49ae5fd796a01d
[ "MIT" ]
null
null
null
switchmng/wsgi.py
AnsgarKlein/switchmng
d86ae2dc40ef70f43fec8e3adf49ae5fd796a01d
[ "MIT" ]
null
null
null
switchmng/wsgi.py
AnsgarKlein/switchmng
d86ae2dc40ef70f43fec8e3adf49ae5fd796a01d
[ "MIT" ]
null
null
null
from switchmng import config from switchmng.schema.base import Base from switchmng.database import DatabaseConnection from switchmng.routes import create_app def app(*args, **kwargs): """ Entry point for wsgi server like `gunicorn` serving this application. Parse all command line arguments, initialize...
29.27027
84
0.665743
0
0
0
0
0
0
0
0
486
0.448753
b8591745507d3ac646b22cef27786c56c597a729
1,598
py
Python
records_mover/db/postgres/copy_options/date_output_style.py
ellyteitsworth/records-mover
21cd56efc2d23cfff04ec1fdf582e5229546c418
[ "Apache-2.0" ]
null
null
null
records_mover/db/postgres/copy_options/date_output_style.py
ellyteitsworth/records-mover
21cd56efc2d23cfff04ec1fdf582e5229546c418
[ "Apache-2.0" ]
null
null
null
records_mover/db/postgres/copy_options/date_output_style.py
ellyteitsworth/records-mover
21cd56efc2d23cfff04ec1fdf582e5229546c418
[ "Apache-2.0" ]
null
null
null
from records_mover.utils import quiet_remove from records_mover.records.delimited import cant_handle_hint, ValidatedRecordsHints from typing import Set, Tuple, Optional from .types import DateOrderStyle, DateOutputStyle def determine_date_output_style(unhandled_hints: Set[str], hints: ...
39.95
83
0.70025
0
0
0
0
0
0
0
0
405
0.253442
b8596ffa290b85166791b3474bb6337caf557e75
6,239
py
Python
tacker/tests/unit/vnfm/infra_drivers/openstack/test_vdu.py
takahashi-tsc/tacker
a0ae01a13dcc51bb374060adcbb4fd484ab37156
[ "Apache-2.0" ]
null
null
null
tacker/tests/unit/vnfm/infra_drivers/openstack/test_vdu.py
takahashi-tsc/tacker
a0ae01a13dcc51bb374060adcbb4fd484ab37156
[ "Apache-2.0" ]
null
null
null
tacker/tests/unit/vnfm/infra_drivers/openstack/test_vdu.py
takahashi-tsc/tacker
a0ae01a13dcc51bb374060adcbb4fd484ab37156
[ "Apache-2.0" ]
1
2020-11-16T02:14:35.000Z
2020-11-16T02:14:35.000Z
# Copyright 2018 NTT DATA # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
38.042683
79
0.599295
3,563
0.571085
0
0
1,532
0.245552
0
0
2,141
0.343164
b85adde254fd21cc8c4987b399dbf5487b008f43
445
py
Python
tests/test_example.py
jlane9/mockerena
a3fd1bd39af6269dc96846967b4bba47759bab41
[ "MIT" ]
1
2019-09-10T05:12:38.000Z
2019-09-10T05:12:38.000Z
tests/test_example.py
jlane9/mockerena
a3fd1bd39af6269dc96846967b4bba47759bab41
[ "MIT" ]
10
2019-09-10T16:14:35.000Z
2019-12-19T17:13:51.000Z
tests/test_example.py
jlane9/mockerena
a3fd1bd39af6269dc96846967b4bba47759bab41
[ "MIT" ]
2
2019-09-10T05:11:58.000Z
2020-04-29T17:59:47.000Z
"""test_example .. codeauthor:: John Lane <[email protected]> """ from flask import url_for from eve import Eve import pytest @pytest.mark.example def test_example(client: Eve): """Example test for reference :param Eve client: Mockerena app instance :raises: AssertionError """ res = clien...
19.347826
67
0.698876
0
0
0
0
309
0.694382
0
0
217
0.48764
b85d1ecfbfe5440d3438acef2b9c37a3da7e6e97
1,243
py
Python
tests/TestPoissonSpikeGeneration.py
VadimLopatkin/AtlasSnnController
25c87bd7c80cbb5a1163311b2fd87fad5344f978
[ "Apache-2.0" ]
2
2016-05-22T12:30:41.000Z
2016-06-03T06:05:21.000Z
tests/TestPoissonSpikeGeneration.py
VadimLopatkin/AtlasSnnController
25c87bd7c80cbb5a1163311b2fd87fad5344f978
[ "Apache-2.0" ]
null
null
null
tests/TestPoissonSpikeGeneration.py
VadimLopatkin/AtlasSnnController
25c87bd7c80cbb5a1163311b2fd87fad5344f978
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
33.594595
74
0.697506
369
0.296862
0
0
0
0
0
0
907
0.729686
b85d56ed4c33e772f43301cfd59b3662ccd3560a
6,100
py
Python
stream.py
Abhishek-Aditya-bs/Streaming-Spark-For-Machine-Learning
76f9c97e66d6171bc83d1183fadc30bd492422a7
[ "MIT" ]
1
2021-12-10T13:14:53.000Z
2021-12-10T13:14:53.000Z
stream.py
iVishalr/SSML-spark-streaming-for-machine-learning
ba95a7d2d6bb15bacfbbf5b3c95317310b36d54f
[ "MIT" ]
null
null
null
stream.py
iVishalr/SSML-spark-streaming-for-machine-learning
ba95a7d2d6bb15bacfbbf5b3c95317310b36d54f
[ "MIT" ]
null
null
null
#! /usr/bin/python3 import time import json import pickle import socket import argparse import numpy as np from tqdm import tqdm parser = argparse.ArgumentParser( description='Streams a file to a Spark Streaming Context') parser.add_argument('--file', '-f', help='File to stream', required=False,type=str, default=...
40.131579
122
0.59623
4,770
0.781967
0
0
0
0
0
0
973
0.159508
b85e1207d6e09dc9d3b5821470f14d0eed8e2190
394
py
Python
subcontent/backup/python3_closure_nonlocal.py
fingerkc/fingerkc.github.io
0bfe5163ea28be3747756c8b6be64ad4f09b2fbf
[ "MIT" ]
2
2019-06-13T07:22:22.000Z
2019-11-23T03:55:21.000Z
subcontent/backup/python3_closure_nonlocal.py
fingerkc/fingerkc.github.io
0bfe5163ea28be3747756c8b6be64ad4f09b2fbf
[ "MIT" ]
1
2019-12-15T04:10:59.000Z
2019-12-15T04:10:59.000Z
subcontent/backup/python3_closure_nonlocal.py
fingerkc/fingerkc.github.io
0bfe5163ea28be3747756c8b6be64ad4f09b2fbf
[ "MIT" ]
1
2019-06-24T08:17:13.000Z
2019-06-24T08:17:13.000Z
#!/usr/bin/python3 ##python3 闭包 与 nonlocal #如果在一个内部函数里,对在外部作用域(但不是在全局作用域)的变量进行引用, #那么内部函数就被认为是闭包(closure) def A_(): var = 0 def clo_B(): var_b = 1 # 闭包的局部变量 var = 100 print(var) # 引用外部的var , 但是不会改变var 的值 return clo_B #clo_B是一个闭包 #nonlocal 关键字 def A_(): var = 0 def clo_B(): nonlocal var # nonlocal关...
15.153846
50
0.670051
0
0
0
0
0
0
0
0
445
0.720065
b85e66013be32836e47b0a35176f156e7e93f2e2
352
py
Python
utils/tracker.py
emarche/Fashion-MNIST
f8183e33ab7c3df673a60de3b16f2c4c979b89bb
[ "MIT" ]
null
null
null
utils/tracker.py
emarche/Fashion-MNIST
f8183e33ab7c3df673a60de3b16f2c4c979b89bb
[ "MIT" ]
null
null
null
utils/tracker.py
emarche/Fashion-MNIST
f8183e33ab7c3df673a60de3b16f2c4c979b89bb
[ "MIT" ]
null
null
null
import os import numpy as np class Tracker: def __init__(self, seed, model_name): self.save_tag = model_name + '_seed_' + str(seed) self.model_save = "models/" if not os.path.exists(self.model_save): os.makedirs(self.model_save) def save_model(self, model): model.save(self.mod...
29.333333
76
0.661932
322
0.914773
0
0
0
0
0
0
22
0.0625
b86107cdd1d04d347d396fb2227d46e8eb33bf64
2,663
py
Python
kittycad/models/cluster.py
KittyCAD/kittycad.py
7f7460d366dbd55fce50e5faa4a032b62e4baae4
[ "MIT" ]
1
2022-02-06T05:07:25.000Z
2022-02-06T05:07:25.000Z
kittycad/models/cluster.py
KittyCAD/kittycad.py
7f7460d366dbd55fce50e5faa4a032b62e4baae4
[ "MIT" ]
7
2022-02-04T11:29:25.000Z
2022-03-07T01:37:26.000Z
kittycad/models/cluster.py
KittyCAD/kittycad.py
7f7460d366dbd55fce50e5faa4a032b62e4baae4
[ "MIT" ]
null
null
null
from typing import Any, Dict, List, Type, TypeVar, Union, cast import attr from ..types import UNSET, Unset T = TypeVar("T", bound="Cluster") @attr.s(auto_attribs=True) class Cluster: """ """ addr: Union[Unset, str] = UNSET auth_timeout: Union[Unset, int] = UNSET cluster_port: Union[Unset, int] = U...
28.945652
77
0.605332
2,488
0.934285
0
0
2,515
0.944424
0
0
137
0.051446
b8630346a106bda3978051caf8a5f0528b3d18fe
4,287
py
Python
Crypto.py
akshatsri89/Cryptogram
51ea1e658ecf82ea922a967299814e812da73c4e
[ "Apache-2.0" ]
1
2021-08-10T14:09:34.000Z
2021-08-10T14:09:34.000Z
Crypto.py
akshatsri89/Cryptogram
51ea1e658ecf82ea922a967299814e812da73c4e
[ "Apache-2.0" ]
null
null
null
Crypto.py
akshatsri89/Cryptogram
51ea1e658ecf82ea922a967299814e812da73c4e
[ "Apache-2.0" ]
null
null
null
# import tkinter module from tkinter import * # import other necessery modules import random # Vigenère cipher for encryption and decryption import base64 # creating root object root = Tk() # defining size of window root.geometry("1200x4000") # setting up the title of window root.title("Message Enc...
24.497143
68
0.54397
0
0
0
0
0
0
0
0
1,180
0.275122
b865512ce604a1054ccd890643255a1593208d7a
224
py
Python
bootstrap_rmsf/__init__.py
jeeberhardt/bootstrap_rmsf
1487251ffde91d34b7609aec147c0ff99fc7cded
[ "MIT" ]
1
2021-08-06T02:31:32.000Z
2021-08-06T02:31:32.000Z
bootstrap_rmsf/__init__.py
jeeberhardt/bootstrap_rmsf
1487251ffde91d34b7609aec147c0ff99fc7cded
[ "MIT" ]
null
null
null
bootstrap_rmsf/__init__.py
jeeberhardt/bootstrap_rmsf
1487251ffde91d34b7609aec147c0ff99fc7cded
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Jérôme Eberhardt 2018 # Bootstrap RMSF # Author: Jérôme Eberhardt <[email protected]> # # License: MIT from bootstrap_rmsf import Bootstrap_RMSF from utils import plot_rmsf
18.666667
46
0.736607
0
0
0
0
0
0
0
0
149
0.653509
b8658b22f0fd4c1d9dcc67d9f35f9aa1c9580dfe
1,221
py
Python
fixture/application.py
OSavchik/python_training
8e532c9f0da99e5f342467dd7bcc3a43e667daf6
[ "Apache-2.0" ]
null
null
null
fixture/application.py
OSavchik/python_training
8e532c9f0da99e5f342467dd7bcc3a43e667daf6
[ "Apache-2.0" ]
null
null
null
fixture/application.py
OSavchik/python_training
8e532c9f0da99e5f342467dd7bcc3a43e667daf6
[ "Apache-2.0" ]
null
null
null
from selenium import webdriver from fixture.session import SessionHelper from fixture.group import GroupHelper from fixture.contact import ContactHelper class Application: def __init__(self, browser, base_url): if browser == "firefox": self.wd = webdriver.Firefox() elif browser == "Ch...
24.918367
65
0.580672
1,062
0.869779
0
0
0
0
0
0
45
0.036855
b868a9af47b1de35f84902480574280915282a7c
7,601
py
Python
data_managers/data_manager_gatk_picard_index_builder/data_manager/data_manager_gatk_picard_index_builder.py
supernord/tools-iuc
9a0c41967765d120a8fc519c0c7f09cbe3a6efbe
[ "MIT" ]
142
2015-03-13T18:08:34.000Z
2022-03-30T23:52:34.000Z
data_managers/data_manager_gatk_picard_index_builder/data_manager/data_manager_gatk_picard_index_builder.py
mtekman/tools-iuc
95f1ae4ed1cdd56114df76d215f9e1ed549aa4c5
[ "MIT" ]
3,402
2015-01-05T18:04:20.000Z
2022-03-30T22:09:36.000Z
data_managers/data_manager_gatk_picard_index_builder/data_manager/data_manager_gatk_picard_index_builder.py
willemdek11/tools-iuc
dc0a0cf275168c2a88ee3dc47652dd7ca1137871
[ "MIT" ]
438
2015-01-07T20:33:59.000Z
2022-03-30T04:39:18.000Z
#!/usr/bin/env python # Dave B. # Uses fasta sorting functions written by Dan Blankenberg. import json import optparse import os import shutil import subprocess import sys import tempfile CHUNK_SIZE = 2**20 DEFAULT_DATA_TABLE_NAME = "fasta_indexes" def get_id_name(params, dbkey, fasta_description=None): # TODO:...
40.865591
157
0.675043
0
0
0
0
0
0
0
0
1,224
0.161031
b86adccb9d42d87933b32bb27aaf25b01696f8a9
818
py
Python
django_for_startups/django_customizations/drf_customizations.py
Alex3917/django_for_startups
9dda54f5777247f7367a963d668f25e797c9adf1
[ "MIT" ]
102
2021-02-28T00:58:36.000Z
2022-03-30T09:29:34.000Z
django_for_startups/django_customizations/drf_customizations.py
Alex3917/django_for_startups
9dda54f5777247f7367a963d668f25e797c9adf1
[ "MIT" ]
1
2021-07-11T18:45:29.000Z
2021-07-11T18:45:29.000Z
django_for_startups/django_customizations/drf_customizations.py
Alex3917/django_for_startups
9dda54f5777247f7367a963d668f25e797c9adf1
[ "MIT" ]
16
2021-06-23T18:34:46.000Z
2022-03-30T09:27:34.000Z
# Standard Library imports # Core Django imports # Third-party imports from rest_framework import permissions from rest_framework.throttling import UserRateThrottle, AnonRateThrottle # App imports class BurstRateThrottle(UserRateThrottle): scope = 'burst' class SustainedRateThrottle(UserRateThrottle): sc...
24.787879
94
0.734719
606
0.740831
0
0
0
0
0
0
308
0.376528
b86ccfc144647099cbf5ac1e80b91ec536893766
171,517
py
Python
python/mapCells.py
claraya/meTRN
a4e4911b26a295e22d7309d5feda026db3325885
[ "MIT" ]
2
2019-11-18T22:54:13.000Z
2019-11-18T22:55:18.000Z
python/mapCells.py
claraya/meTRN
a4e4911b26a295e22d7309d5feda026db3325885
[ "MIT" ]
null
null
null
python/mapCells.py
claraya/meTRN
a4e4911b26a295e22d7309d5feda026db3325885
[ "MIT" ]
null
null
null
#!/usr/bin/env python # perform cellular-resolution expression analyses! import sys import time import optparse import general import hyper import numpy import math import pickle import pdb import metrn import modencode import itertools import os import re import datetime import calendar #import simplejson as json fr...
42.815027
384
0.692007
0
0
0
0
0
0
0
0
50,185
0.292595
b86edb269cd9e7e592b4cc82203020de3b8e84a3
1,838
py
Python
gravity/bak/gravity3.py
baijianhua/pymath
a96ebbd8c8ac646c436d8bf33cb01764a948255d
[ "MIT" ]
null
null
null
gravity/bak/gravity3.py
baijianhua/pymath
a96ebbd8c8ac646c436d8bf33cb01764a948255d
[ "MIT" ]
null
null
null
gravity/bak/gravity3.py
baijianhua/pymath
a96ebbd8c8ac646c436d8bf33cb01764a948255d
[ "MIT" ]
null
null
null
# https://stackoverflow.com/questions/47295473/how-to-plot-using-matplotlib-python-colahs-deformed-grid """ 这个形状仍然不对。靠近坐标轴的地方变化太大。不管是横轴还是纵轴。应该是以原点为圆心,各个网格均匀分担才对 而不管是否靠近坐标轴 变形的目标,是在某处给定一个球体或者立方体,整个坐标中的网格,靠近这个物体的,受到变形影响,距离越远,影响 越小,直到可以忽略不计 但有个要求是靠近物体的网格,是均匀的受到影响,不能有的多,有的少 或许用极坐标是更好的选择?但是也不行。极坐标如何体现原有的坐标系呢? 极坐标没有平直的地方...
24.506667
103
0.581066
0
0
0
0
0
0
0
0
968
0.414384
b86fc82da8dc94ff37ad24a384c231a1a48f881c
7,780
py
Python
IR_Extraction.py
Kazuhito00/yolo2_onnx
95c5e2063071d610ec8e98963f3639e0b25efb59
[ "MIT" ]
15
2018-07-02T19:11:09.000Z
2022-03-31T07:12:53.000Z
IR_Extraction.py
Kazuhito00/yolo2_onnx
95c5e2063071d610ec8e98963f3639e0b25efb59
[ "MIT" ]
null
null
null
IR_Extraction.py
Kazuhito00/yolo2_onnx
95c5e2063071d610ec8e98963f3639e0b25efb59
[ "MIT" ]
9
2018-05-08T01:58:53.000Z
2022-01-28T06:36:02.000Z
from Onnx import make_dir, OnnxImportExport import subprocess import pickle import os import numpy as np import time def generate_svg(modelName, marked_nodes=[]): """ generate SVG figure from existed ONNX file """ if marked_nodes ==[]: addfilenamestr = "" add_command_str = "" els...
35.525114
166
0.579434
0
0
0
0
0
0
0
0
2,350
0.302057
b87022120f02d56a10e8caeb021ec987a4c00e77
9,961
py
Python
app.py
rshane7/Sqlalchemy-Challenge
b0cd11388727e1f43453b0e7b0019e304d45eb39
[ "ADSL" ]
null
null
null
app.py
rshane7/Sqlalchemy-Challenge
b0cd11388727e1f43453b0e7b0019e304d45eb39
[ "ADSL" ]
null
null
null
app.py
rshane7/Sqlalchemy-Challenge
b0cd11388727e1f43453b0e7b0019e304d45eb39
[ "ADSL" ]
null
null
null
# Python script uses flask and SQL alchemy to create API requests for weather data from Hawaii. # Import dependencies. import numpy as np import datetime as dt import sqlalchemy from sqlalchemy.ext.automap import automap_base from sqlalchemy.orm import Session from sqlalchemy import create_engine, func from flask impo...
45.484018
229
0.635679
0
0
0
0
6,605
0.661227
0
0
5,699
0.570528
b870872caf1a9e4c3f638cbe128e60ddb9f7db8d
5,194
py
Python
optimalTAD/__main__.py
cosmoskaluga/optimalTAD
eae806878df36a96b3ef8c5dc7eb8ecc9fa622b2
[ "MIT" ]
null
null
null
optimalTAD/__main__.py
cosmoskaluga/optimalTAD
eae806878df36a96b3ef8c5dc7eb8ecc9fa622b2
[ "MIT" ]
null
null
null
optimalTAD/__main__.py
cosmoskaluga/optimalTAD
eae806878df36a96b3ef8c5dc7eb8ecc9fa622b2
[ "MIT" ]
null
null
null
import argparse import logging import sys import time import glob import os from . import logger from . import config from . visualization import plot from . optimization import run from . optimization import utils class optimalTAD: def __init__(self): self.log = logger.initialize_logger() self.cfg...
55.849462
167
0.649788
4,926
0.948402
0
0
0
0
0
0
1,716
0.330381
b870e2ce26d78dfa9746e5e88adb9ed1463fb9fc
944
py
Python
communications/migrations/0002_auto_20190902_1759.py
shriekdj/django-social-network
3654051e334996ee1b0b60f83c4f809a162ddf4a
[ "MIT" ]
368
2019-10-10T18:02:09.000Z
2022-03-31T14:31:39.000Z
communications/migrations/0002_auto_20190902_1759.py
shriekdj/django-social-network
3654051e334996ee1b0b60f83c4f809a162ddf4a
[ "MIT" ]
19
2020-05-09T19:10:29.000Z
2022-03-04T18:22:51.000Z
communications/migrations/0002_auto_20190902_1759.py
shriekdj/django-social-network
3654051e334996ee1b0b60f83c4f809a162ddf4a
[ "MIT" ]
140
2019-10-10T18:01:59.000Z
2022-03-14T09:37:39.000Z
# Generated by Django 2.2.4 on 2019-09-02 11:59 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('communications', '0001_i...
32.551724
153
0.665254
785
0.831568
0
0
0
0
0
0
145
0.153602
b871aaee0feb9ef1cdc6b28c76ed73a977fed9b3
1,126
py
Python
examples/sht2x.py
kungpfui/python-i2cmod
57d9cc8de372aa38526c3503ceec0d8924665c04
[ "MIT" ]
null
null
null
examples/sht2x.py
kungpfui/python-i2cmod
57d9cc8de372aa38526c3503ceec0d8924665c04
[ "MIT" ]
null
null
null
examples/sht2x.py
kungpfui/python-i2cmod
57d9cc8de372aa38526c3503ceec0d8924665c04
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Sensirion SHT2x humidity sensor. Drives SHT20, SHT21 and SHT25 humidity and temperature sensors. Sensirion `SHT2x Datasheets <https://www.sensirion.com/en/environmental-sensors/humidity-sensors/humidity-temperature-sensor-sht2x-digital-i2c-accurate/>` """ from i2cmo...
34.121212
154
0.579041
0
0
0
0
0
0
0
0
543
0.481383
b872257816f92142d8b69ab7304685ffe49c0d35
52
py
Python
__init__.py
HarisNaveed17/aws-boxdetector
e71daebbebe9dc847bdad70d2ea2fe859fede587
[ "Apache-2.0" ]
null
null
null
__init__.py
HarisNaveed17/aws-boxdetector
e71daebbebe9dc847bdad70d2ea2fe859fede587
[ "Apache-2.0" ]
null
null
null
__init__.py
HarisNaveed17/aws-boxdetector
e71daebbebe9dc847bdad70d2ea2fe859fede587
[ "Apache-2.0" ]
null
null
null
from pipeline import * box_detection = BoxDetector()
26
29
0.807692
0
0
0
0
0
0
0
0
0
0
b8746c0bb1705159c5c6690183e9699670c24d04
217
bzl
Python
bazel_versions.bzl
pennig/rules_xcodeproj
109ab85a82954ea38f0529eafc291f5ce6f63483
[ "MIT" ]
1
2022-03-31T09:13:24.000Z
2022-03-31T09:13:24.000Z
bazel_versions.bzl
pennig/rules_xcodeproj
109ab85a82954ea38f0529eafc291f5ce6f63483
[ "MIT" ]
null
null
null
bazel_versions.bzl
pennig/rules_xcodeproj
109ab85a82954ea38f0529eafc291f5ce6f63483
[ "MIT" ]
null
null
null
"""Specifies the supported Bazel versions.""" CURRENT_BAZEL_VERSION = "5.0.0" OTHER_BAZEL_VERSIONS = [ "6.0.0-pre.20220223.1", ] SUPPORTED_BAZEL_VERSIONS = [ CURRENT_BAZEL_VERSION, ] + OTHER_BAZEL_VERSIONS
18.083333
45
0.728111
0
0
0
0
0
0
0
0
74
0.341014
b874c67d7c0255eb46088b631d745bcaf2f71c70
1,372
py
Python
Pymug/server/game/parse.py
Aitocir/UnfoldingWorld
70606eec694f006ccd6687912bce7b75d623287e
[ "MIT" ]
2
2019-08-30T08:26:44.000Z
2021-04-09T14:22:09.000Z
Pymug/server/game/parse.py
Aitocir/UnfoldingWorld
70606eec694f006ccd6687912bce7b75d623287e
[ "MIT" ]
null
null
null
Pymug/server/game/parse.py
Aitocir/UnfoldingWorld
70606eec694f006ccd6687912bce7b75d623287e
[ "MIT" ]
null
null
null
def _compile(words): if not len(words): return None, '' num = None if words[0].isdigit(): num = int(words[0]) words = words[1:] return num, ' '.join(words) def _split_out_colons(terms): newterms = [] for term in terms: if ':' in term: subterms = term...
26.384615
52
0.487609
0
0
0
0
0
0
0
0
104
0.075802
b876fc588cb708294748bda2b97c2a9bb2b7cc83
539
py
Python
files/OOP/Encapsulation/Encapsulation 3.py
grzegorzpikus/grzegorzpikus.github.io
652233e0b98f48a3396583bab2559f5981bac8ad
[ "CC-BY-3.0" ]
null
null
null
files/OOP/Encapsulation/Encapsulation 3.py
grzegorzpikus/grzegorzpikus.github.io
652233e0b98f48a3396583bab2559f5981bac8ad
[ "CC-BY-3.0" ]
null
null
null
files/OOP/Encapsulation/Encapsulation 3.py
grzegorzpikus/grzegorzpikus.github.io
652233e0b98f48a3396583bab2559f5981bac8ad
[ "CC-BY-3.0" ]
null
null
null
class BankAccount: def __init__(self, checking = None, savings = None): self._checking = checking self._savings = savings def get_checking(self): return self._checking def set_checking(self, new_checking): self._checking = new_checking def get_savings(self): return self._savings def s...
22.458333
54
0.747681
382
0.70872
0
0
0
0
0
0
0
0
b877894244ea866fac268797b7d04d857a48c881
800
py
Python
utils/folder_to_list.py
abhatta1234/face_analysis_pytorch
2abe930c0ca02a1fd819d4710fd9bff392f32f58
[ "MIT" ]
27
2020-05-19T16:51:42.000Z
2022-02-28T05:00:16.000Z
utils/folder_to_list.py
abhatta1234/face_analysis_pytorch
2abe930c0ca02a1fd819d4710fd9bff392f32f58
[ "MIT" ]
3
2020-04-09T04:46:24.000Z
2020-10-21T18:57:05.000Z
utils/folder_to_list.py
abhatta1234/face_analysis_pytorch
2abe930c0ca02a1fd819d4710fd9bff392f32f58
[ "MIT" ]
10
2020-05-11T19:50:30.000Z
2022-03-16T11:49:52.000Z
import argparse from os import listdir, path import numpy as np def convert(main_folder, output): ret = [] for label, class_folder in listdir(main_folder): class_folder_path = path.join(main_folder, class_folder) for img_name in listdir(class_folder_path): image_path = path.join...
26.666667
72
0.665
0
0
0
0
0
0
0
0
134
0.1675
b8783b5b039e343b576ed8c99dd5d5e0e166571d
509
py
Python
Leetcode/Python Solutions/Strings/ReverseString.py
Mostofa-Najmus-Sakib/Applied-Algorithm
bc656fd655617407856e0ce45b68585fa81c5035
[ "MIT" ]
1
2020-01-06T02:21:56.000Z
2020-01-06T02:21:56.000Z
Leetcode/Python Solutions/Strings/ReverseString.py
Mostofa-Najmus-Sakib/Applied-Algorithm
bc656fd655617407856e0ce45b68585fa81c5035
[ "MIT" ]
null
null
null
Leetcode/Python Solutions/Strings/ReverseString.py
Mostofa-Najmus-Sakib/Applied-Algorithm
bc656fd655617407856e0ce45b68585fa81c5035
[ "MIT" ]
3
2021-02-22T17:41:01.000Z
2022-01-13T05:03:19.000Z
""" LeetCode Problem: 344. Reverse String Link: https://leetcode.com/problems/reverse-string/ Language: Python Written by: Mostofa Adib Shakib Time Complexity: O(n) Space Complexity: O(1) """ class Solution: def reverseString(self, s: List[str]) -> None: """ Do not return anything, modify s in-pla...
23.136364
58
0.554028
315
0.618861
0
0
0
0
0
0
266
0.522593
b878732e91bebe5ae9b4cd691ecca80c673cb34c
7,242
py
Python
packages/verify_layer.py
OpenTrustGroup/scripts
31ca2ca5bae055113c6f92a2eb75b0c7528902b3
[ "BSD-3-Clause" ]
null
null
null
packages/verify_layer.py
OpenTrustGroup/scripts
31ca2ca5bae055113c6f92a2eb75b0c7528902b3
[ "BSD-3-Clause" ]
null
null
null
packages/verify_layer.py
OpenTrustGroup/scripts
31ca2ca5bae055113c6f92a2eb75b0c7528902b3
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright 2018 The Fuchsia Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import argparse from common import FUCHSIA_ROOT, get_package_imports, get_product_imports import json import os import subprocess import...
31.081545
80
0.619994
0
0
0
0
0
0
0
0
1,492
0.20602
b8796958be709a16a0f0fcd864b552aa54f7203a
8,064
py
Python
server/main.py
MrCheka/langidnn
77788ef1b7c03d3de92cb1f28e6eb7f3a20d262a
[ "MIT" ]
null
null
null
server/main.py
MrCheka/langidnn
77788ef1b7c03d3de92cb1f28e6eb7f3a20d262a
[ "MIT" ]
7
2020-07-17T01:22:21.000Z
2022-02-26T10:48:01.000Z
server/main.py
MrCheka/langidnn
77788ef1b7c03d3de92cb1f28e6eb7f3a20d262a
[ "MIT" ]
null
null
null
import tensorflow as tf import argparse import logging from src.helpers.NNHelper import NNHelper from src.controller.Controller import Controller from src.params.Parameters import Parameters def createParser(): parser = argparse.ArgumentParser(prog='langid_server', descriptio...
48
131
0.631696
0
0
0
0
0
0
0
0
4,093
0.43207
b879c0d4ddbe81e9894622e0f700feebdf2b2709
1,086
py
Python
Python/Code/Python3-Base/13_Network/Server/SingleProgressServer.py
hiloWang/notes
64a637a86f734e4e80975f4aa93ab47e8d7e8b64
[ "Apache-2.0" ]
2
2020-10-08T13:22:08.000Z
2021-07-28T14:45:41.000Z
Python/Python3-Base/13_Network/Server/SingleProgressServer.py
flyfire/Programming-Notes-Code
4b1bdd74c1ba0c007c504834e4508ec39f01cd94
[ "Apache-2.0" ]
null
null
null
Python/Python3-Base/13_Network/Server/SingleProgressServer.py
flyfire/Programming-Notes-Code
4b1bdd74c1ba0c007c504834e4508ec39f01cd94
[ "Apache-2.0" ]
6
2020-08-20T07:19:17.000Z
2022-03-02T08:16:21.000Z
######################### # 单进程服务器 ######################### """ 同一时刻只能为一个客户进行服务,不能同时为多个客户服务类似于找一个“明星”签字一样,客户需要耐心等待才可以获取到服务 当服务器为一个客户端服务时,而另外的客户端发起了connect,只要服务器listen的队列有空闲的位置,就会为这个新客户端进行连接, 并且客户端可以发送数据,但当服务器为这个新客户端服务时,可能一次性把所有数据接收完毕当receive接收数据时,返回值为空, 即没有返回数据,那么意味着客户端已经调用了close关闭了;因此服务器通过判断receive接收数据是否为空 来判断客户端是否...
24.133333
80
0.64825
0
0
0
0
0
0
0
0
1,024
0.619855
b87a63d631b48c56ae9ad1ccd48c2c053e4047a5
3,098
py
Python
webapp/kortkatalogen/base/models.py
snickaren/CIPAC
58455d59734a571e0134d6368d27ee3e65001c9a
[ "Apache-2.0" ]
null
null
null
webapp/kortkatalogen/base/models.py
snickaren/CIPAC
58455d59734a571e0134d6368d27ee3e65001c9a
[ "Apache-2.0" ]
2
2021-06-01T22:47:10.000Z
2021-06-10T20:52:49.000Z
webapp/kortkatalogen/base/models.py
snickaren/CIPAC
58455d59734a571e0134d6368d27ee3e65001c9a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from django.db import models class BaseCatalog(models.Model): name = models.CharField(max_length=255) description = models.TextField() created_at = models.DateTimeField(auto_now_add=True) updated_at = models.DateTimeField(auto_now=True) def __unicode__(self): return...
45.558824
203
0.726598
3,052
0.979147
0
0
0
0
0
0
844
0.270773
b87adad624fdbc747cbd3966ca19edcc62c0db08
2,607
py
Python
script/raw-word-cloud.py
ranyxr/infoVis
307c2ffc4c7d6cf87ed000310a1f2b6233bd7a3b
[ "MIT" ]
2
2020-05-27T11:12:41.000Z
2020-12-17T19:33:41.000Z
script/raw-word-cloud.py
ranyxr/infoVis
307c2ffc4c7d6cf87ed000310a1f2b6233bd7a3b
[ "MIT" ]
null
null
null
script/raw-word-cloud.py
ranyxr/infoVis
307c2ffc4c7d6cf87ed000310a1f2b6233bd7a3b
[ "MIT" ]
3
2020-03-18T19:20:24.000Z
2020-12-17T17:37:24.000Z
import os import nltk import spacy from datetime import datetime from pyspark.sql import SparkSession from pyspark.sql.types import StringType, ArrayType from pyspark.sql.functions import udf, col, explode, collect_list, count from SYS import COL, MODE, DIR, FILE nltk.download('stopwords') os.system("python -m spacy d...
33.857143
126
0.638282
0
0
0
0
0
0
0
0
593
0.227465
b87d4232f38a23242d6a6192e497347e1e6d8428
141
py
Python
main/ftpServer.py
McUtty/FlowerPlan
b0998835356e8e10fe53cad447bc559df2ac7175
[ "MIT" ]
null
null
null
main/ftpServer.py
McUtty/FlowerPlan
b0998835356e8e10fe53cad447bc559df2ac7175
[ "MIT" ]
null
null
null
main/ftpServer.py
McUtty/FlowerPlan
b0998835356e8e10fe53cad447bc559df2ac7175
[ "MIT" ]
null
null
null
import uftpd uftpd.stop() # uftpd.start([port = 21][, verbose = 1]) uftpd.restart() # Version abfragen # wenn neuer - Dateien downloaden
12.818182
41
0.687943
0
0
0
0
0
0
0
0
92
0.652482
b87d46b05ec2436786cd95db9a677d1f89cf7d59
10,672
py
Python
Entradas/views.py
ToniIvars/Blog
c2d1674c2c1fdf51749f4b014795b507ed93b45e
[ "MIT" ]
null
null
null
Entradas/views.py
ToniIvars/Blog
c2d1674c2c1fdf51749f4b014795b507ed93b45e
[ "MIT" ]
4
2021-03-30T13:26:38.000Z
2021-06-10T19:20:56.000Z
Entradas/views.py
ToniIvars/Blog
c2d1674c2c1fdf51749f4b014795b507ed93b45e
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from django.core.mail import send_mail from django.contrib import messages from django.core.exceptions import ObjectDoesNotExist from django.contrib.auth.models import User from django.contrib.auth import authenticate, login, logout from django.contrib.auth.decorators impor...
32.048048
205
0.648801
0
0
0
0
5,449
0.509967
0
0
1,964
0.183809
b87f562e23be6f95cf850092c0a407380227775e
975
py
Python
setup.py
remiolsen/anglerfish
5caabebf5864180e5552b3e40de3650fc5fcabd6
[ "MIT" ]
null
null
null
setup.py
remiolsen/anglerfish
5caabebf5864180e5552b3e40de3650fc5fcabd6
[ "MIT" ]
19
2019-10-07T11:14:54.000Z
2022-03-28T12:36:47.000Z
setup.py
remiolsen/anglerfish
5caabebf5864180e5552b3e40de3650fc5fcabd6
[ "MIT" ]
2
2019-05-28T14:15:26.000Z
2022-03-28T09:28:44.000Z
#!/usr/bin/env python from setuptools import setup, find_packages import sys, os setup( name='anglerfish', version='0.4.1', description='Anglerfish, a tool to demultiplex Illumina libraries from ONT data', author='Remi-Andre Olsen', author_email='[email protected]', url='https://gi...
29.545455
85
0.645128
0
0
0
0
0
0
0
0
596
0.611282
b87f7b6b8b386385428ae91baa19206d67341ede
600
py
Python
files/urls.py
danielchriscarter/part2-django
d4adffa3280431151bb8d1c51f0be2dbffff9dd1
[ "BSD-2-Clause" ]
null
null
null
files/urls.py
danielchriscarter/part2-django
d4adffa3280431151bb8d1c51f0be2dbffff9dd1
[ "BSD-2-Clause" ]
null
null
null
files/urls.py
danielchriscarter/part2-django
d4adffa3280431151bb8d1c51f0be2dbffff9dd1
[ "BSD-2-Clause" ]
null
null
null
from django.urls import path from . import views app_name = 'files' urlpatterns = [ path('', views.index, name='index'), path('file/<int:file_id>/', views.fileview, name='file'), path('file/<int:file_id>/edit', views.fileedit, name='fileedit'), path('dir/<int:dir_id>/', views.dirview, ...
37.5
73
0.62
0
0
0
0
0
0
0
0
213
0.355
b8823356abe70dc72971de117d1caaf078936601
1,733
py
Python
morpheus/algorithms/kmeans.py
amirsh/MorpheusPy
8eda959e71a3b377c3f6629802bad2bd4f5a5ee6
[ "Apache-2.0" ]
12
2018-10-04T08:27:33.000Z
2022-01-11T15:41:29.000Z
morpheus/algorithms/kmeans.py
amirsh/MorpheusPy
8eda959e71a3b377c3f6629802bad2bd4f5a5ee6
[ "Apache-2.0" ]
3
2020-09-22T16:18:51.000Z
2021-12-28T19:01:00.000Z
morpheus/algorithms/kmeans.py
amirsh/MorpheusPy
8eda959e71a3b377c3f6629802bad2bd4f5a5ee6
[ "Apache-2.0" ]
4
2019-12-13T17:52:19.000Z
2021-12-17T12:43:44.000Z
# Copyright 2018 Side Li and Arun Kumar # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writ...
40.302326
104
0.660704
1,051
0.606463
0
0
0
0
0
0
570
0.328909
b8833e3d9f3a2008bcf62eb119ccbf510334b106
796
py
Python
670/main.py
pauvrepetit/leetcode
6ad093cf543addc4dfa52d72a8e3c0d05a23b771
[ "MIT" ]
null
null
null
670/main.py
pauvrepetit/leetcode
6ad093cf543addc4dfa52d72a8e3c0d05a23b771
[ "MIT" ]
null
null
null
670/main.py
pauvrepetit/leetcode
6ad093cf543addc4dfa52d72a8e3c0d05a23b771
[ "MIT" ]
null
null
null
# 670. 最大交换 # # 20200905 # huao class Solution: def maximumSwap(self, num: int) -> int: return int(self.maximumSwapStr(str(num))) def maximumSwapStr(self, num: str) -> str: s = list(num) if len(s) == 1: return num maxNum = '0' maxLoc = 0 for i in ran...
22.742857
56
0.5
616
0.766169
0
0
0
0
0
0
41
0.050995
b8860c8f4169552c8561caf03f121aafce628fa6
333
py
Python
tests/resources/test_codegen/template.py
come2ry/atcoder-tools
d7ecf5c19427848e6c8f0aaa3c1a8af04c467f1b
[ "MIT" ]
313
2016-12-04T13:25:21.000Z
2022-03-31T09:46:15.000Z
tests/resources/test_codegen/template.py
come2ry/atcoder-tools
d7ecf5c19427848e6c8f0aaa3c1a8af04c467f1b
[ "MIT" ]
232
2016-12-02T22:55:20.000Z
2022-03-27T06:48:02.000Z
tests/resources/test_codegen/template.py
come2ry/atcoder-tools
d7ecf5c19427848e6c8f0aaa3c1a8af04c467f1b
[ "MIT" ]
90
2017-09-23T15:09:48.000Z
2022-03-17T03:13:40.000Z
#!/usr/bin/env python3 import sys def solve(${formal_arguments}): return def main(): def iterate_tokens(): for line in sys.stdin: for word in line.split(): yield word tokens = iterate_tokens() ${input_part} solve(${actual_arguments}) if __name__ == '__main__'...
16.65
37
0.588589
0
0
117
0.351351
0
0
0
0
32
0.096096
b8862a702744111dde08cc354f165d4d573be5a8
21,501
py
Python
orghtml.py
waynezhang/orgextended
853ae89f937d302c2dd9dad3ae98aa5c2485faaa
[ "MIT" ]
null
null
null
orghtml.py
waynezhang/orgextended
853ae89f937d302c2dd9dad3ae98aa5c2485faaa
[ "MIT" ]
null
null
null
orghtml.py
waynezhang/orgextended
853ae89f937d302c2dd9dad3ae98aa5c2485faaa
[ "MIT" ]
null
null
null
import sublime import sublime_plugin import datetime import re import regex from pathlib import Path import os import fnmatch import OrgExtended.orgparse.node as node from OrgExtended.orgparse.sublimenode import * import OrgExtended.orgutil.util as util import OrgExtended.orgutil.navigation as nav import OrgExtended...
33.180556
188
0.612576
14,358
0.667783
0
0
0
0
0
0
6,740
0.313474
b887416d23a942756c48311820dd05ec2e0e80d6
3,519
py
Python
qso_toolbox/LBT_MODS_script.py
jtschindler/qso_toolbox
d9864e0f87e0da3952b75949a7b17ae84ba7b839
[ "MIT" ]
null
null
null
qso_toolbox/LBT_MODS_script.py
jtschindler/qso_toolbox
d9864e0f87e0da3952b75949a7b17ae84ba7b839
[ "MIT" ]
null
null
null
qso_toolbox/LBT_MODS_script.py
jtschindler/qso_toolbox
d9864e0f87e0da3952b75949a7b17ae84ba7b839
[ "MIT" ]
null
null
null
import os import pandas as pd from qso_toolbox import utils as ut from qso_toolbox import catalog_tools as ct targets = pd.read_csv('/Users/schindler/Observations/LBT/MODS/190607-190615/lukas_efficiency_candidates.csv') offsets = pd.read_csv('') # query = 'rMeanPSFMag - rMeanApMag < 0.05 and 10 < zMeanPSFMag < 18' #...
37.43617
109
0.545041
0
0
0
0
0
0
0
0
974
0.276783
b8876be3ac0b9f4743f3b55d348997ace9a6d95d
1,451
py
Python
EASTAR/main/migrations/0008_auto_20191005_0012.py
DightMerc/EASTAR
04a3578932f8b4b842e0898513ef279c2f750f48
[ "Apache-2.0" ]
1
2020-09-21T16:46:19.000Z
2020-09-21T16:46:19.000Z
EASTAR/main/migrations/0008_auto_20191005_0012.py
DightMerc/EASTAR
04a3578932f8b4b842e0898513ef279c2f750f48
[ "Apache-2.0" ]
null
null
null
EASTAR/main/migrations/0008_auto_20191005_0012.py
DightMerc/EASTAR
04a3578932f8b4b842e0898513ef279c2f750f48
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2.6 on 2019-10-04 19:12 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('main', '0007_auto_20191005_0011'), ] operations = [ migrations.AddField( model_name='technologies', name='textAddEN'...
30.87234
89
0.583046
1,439
0.939295
0
0
0
0
0
0
414
0.270235
b887c62ca86e34d3408f8bf9208020ecb0064fd5
152
py
Python
archived-stock-trading-bot-v1/utils/alerts.py
Allcallofduty10/stock-trading-bot
54e608b3c0b95b87e7753b065307fc23a045e230
[ "MIT" ]
101
2020-05-20T02:17:45.000Z
2022-03-31T12:22:09.000Z
archived-stock-trading-bot-v1/utils/alerts.py
Allcallofduty10/stock-trading-bot
54e608b3c0b95b87e7753b065307fc23a045e230
[ "MIT" ]
10
2020-09-02T14:55:12.000Z
2022-02-21T08:50:48.000Z
archived-stock-trading-bot-v1/utils/alerts.py
Allcallofduty10/stock-trading-bot
54e608b3c0b95b87e7753b065307fc23a045e230
[ "MIT" ]
33
2021-02-13T15:38:51.000Z
2022-03-21T10:39:15.000Z
import os from sys import platform def say_beep(n: int): for i in range(0, n): if platform == "darwin": os.system("say beep")
16.888889
33
0.578947
0
0
0
0
0
0
0
0
18
0.118421
b88943d6ad79d038afe5d44eee2909d9f74948cd
1,685
py
Python
tests/test_company_apis.py
elaoshi/my_planet_flask_api_backend_with_mongo
7795034a14783a15772fae649c4f2c918b4b36f0
[ "Apache-2.0" ]
null
null
null
tests/test_company_apis.py
elaoshi/my_planet_flask_api_backend_with_mongo
7795034a14783a15772fae649c4f2c918b4b36f0
[ "Apache-2.0" ]
3
2020-04-02T23:48:46.000Z
2021-06-10T22:43:22.000Z
tests/test_company_apis.py
elaoshi/my_planet_flask_api_backend_with_mongo
7795034a14783a15772fae649c4f2c918b4b36f0
[ "Apache-2.0" ]
null
null
null
from starlette.testclient import TestClient import pytest,os # from server.app import app import json import requests from faker import Faker fake = Faker() # The root url of the flask app url = 'http://127.0.0.1:5000/employee' @pytest.mark.skip(reason="long time running") def test_company_api_by_name_not_exists()...
23.402778
54
0.636202
0
0
0
0
291
0.1727
0
0
324
0.192285
b889e8215d671ac9152cd6ccc561184f07b5f430
9,491
py
Python
doc2json/grobid2json/grobid/grobid_client.py
josephcc/s2orc-doc2json
8a6a21b7a8a3c6ad11cd42bdd0d46ee32a5a990d
[ "Apache-2.0" ]
null
null
null
doc2json/grobid2json/grobid/grobid_client.py
josephcc/s2orc-doc2json
8a6a21b7a8a3c6ad11cd42bdd0d46ee32a5a990d
[ "Apache-2.0" ]
null
null
null
doc2json/grobid2json/grobid/grobid_client.py
josephcc/s2orc-doc2json
8a6a21b7a8a3c6ad11cd42bdd0d46ee32a5a990d
[ "Apache-2.0" ]
null
null
null
import os import io import json import argparse import time import glob from doc2json.grobid2json.grobid.client import ApiClient import ntpath from typing import List ''' This version uses the standard ProcessPoolExecutor for parallelizing the concurrent calls to the GROBID services. Given the limits of ThreadPoolExec...
35.02214
117
0.596249
7,207
0.759351
0
0
0
0
0
0
2,587
0.272574