hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
588720a8fbd2b194538c95af29d2bebc57a110ae
4,101
py
Python
custom_components/xiaomi_miot/device_tracker.py
ss109/hass-xiaomi-miot
a69c8e0e44400b9aa0f94f1003d3c6f3de4996fd
[ "Apache-2.0" ]
1
2021-12-10T12:30:34.000Z
2021-12-10T12:30:34.000Z
custom_components/xiaomi_miot/device_tracker.py
ss109/hass-xiaomi-miot
a69c8e0e44400b9aa0f94f1003d3c6f3de4996fd
[ "Apache-2.0" ]
null
null
null
custom_components/xiaomi_miot/device_tracker.py
ss109/hass-xiaomi-miot
a69c8e0e44400b9aa0f94f1003d3c6f3de4996fd
[ "Apache-2.0" ]
null
null
null
"""Support for Xiaomi device tracker.""" import logging from datetime import timedelta from homeassistant.const import * # noqa: F401 from homeassistant.components.device_tracker import ( DOMAIN as ENTITY_DOMAIN, ) from homeassistant.components.device_tracker.config_entry import TrackerEntity from . import ( ...
33.614754
111
0.674957
cd0bbfd868baf70536ea06d852d8d0548ddac6a8
5,279
py
Python
tools/split_dataset.py
by-liu/RetinalApp
53173b2b20dfcf613a3a22d6caa5178771d14225
[ "MIT" ]
null
null
null
tools/split_dataset.py
by-liu/RetinalApp
53173b2b20dfcf613a3a22d6caa5178771d14225
[ "MIT" ]
null
null
null
tools/split_dataset.py
by-liu/RetinalApp
53173b2b20dfcf613a3a22d6caa5178771d14225
[ "MIT" ]
null
null
null
import os.path as osp import math import random import numpy as np from tqdm import tqdm from retinal.data.retinal_lesions import RetinalLesions from retinal.utils import load_list, save_list def stats(): data_root = "./data/retinal-lesions/" dataset = RetinalLesions( data_root, osp.join(data...
32.189024
91
0.569426
9ddd0dd416af3ab28883b1871f8423817c06ec73
14,652
py
Python
pynndescent/distances.py
AvantiShri/pynndescent
e44b848148f0845eeb9fa762418055bb30c71267
[ "BSD-2-Clause" ]
null
null
null
pynndescent/distances.py
AvantiShri/pynndescent
e44b848148f0845eeb9fa762418055bb30c71267
[ "BSD-2-Clause" ]
null
null
null
pynndescent/distances.py
AvantiShri/pynndescent
e44b848148f0845eeb9fa762418055bb30c71267
[ "BSD-2-Clause" ]
null
null
null
# Author: Leland McInnes <leland.mcinnes@gmail.com> # # License: BSD 3 clause import numpy as np import numba _mock_identity = np.eye(2, dtype=np.float32) _mock_ones = np.ones(2, dtype=np.float32) @numba.njit(fastmath=True, cache=True) def euclidean(x, y): r"""Standard euclidean distance. .. math:: ...
25.218589
85
0.582105
082be12429b5455e54b7f5a468201147d3a1bf97
1,524
py
Python
fboss/py/fboss/cli/commands/agent.py
midopooler/fboss
c8d08dd4255e97e5977f53712e7c91a7d045a0cb
[ "BSD-3-Clause" ]
1
2020-03-20T22:47:21.000Z
2020-03-20T22:47:21.000Z
fboss/py/fboss/cli/commands/agent.py
phshaikh/fboss
05e6ed1e9d62bf7db45a770886b1761e046c1722
[ "BSD-3-Clause" ]
null
null
null
fboss/py/fboss/cli/commands/agent.py
phshaikh/fboss
05e6ed1e9d62bf7db45a770886b1761e046c1722
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (c) 2004-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. An additional grant # of patent rights can be found in the PATENTS file in the same direct...
32.425532
83
0.636483
68831bf840d50483ad1e14a7b2106c8c66a620f9
628
py
Python
GT_forms/manage.py
10K-Linesofcode/Glowing-Tribble
be0e17ce5391b589792e4ae6b02156d7ee4ce145
[ "MIT" ]
null
null
null
GT_forms/manage.py
10K-Linesofcode/Glowing-Tribble
be0e17ce5391b589792e4ae6b02156d7ee4ce145
[ "MIT" ]
null
null
null
GT_forms/manage.py
10K-Linesofcode/Glowing-Tribble
be0e17ce5391b589792e4ae6b02156d7ee4ce145
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'GT_forms.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise Impor...
28.545455
73
0.683121
9e5068b034cab2859b5d560d71be1c75f717cbf6
400
py
Python
learn-python/variable/nesting/list_nest.py
Moazzam125/learn-python
a0a92a5f4d1a031d0f66a7d10682c1844b1da80d
[ "MIT" ]
2
2020-12-25T06:42:13.000Z
2020-12-25T10:25:55.000Z
learn-python/variable/nesting/list_nest.py
Moazzam125/learn-python
a0a92a5f4d1a031d0f66a7d10682c1844b1da80d
[ "MIT" ]
null
null
null
learn-python/variable/nesting/list_nest.py
Moazzam125/learn-python
a0a92a5f4d1a031d0f66a7d10682c1844b1da80d
[ "MIT" ]
2
2021-12-27T06:15:40.000Z
2022-01-05T15:08:29.000Z
''' List Nesting ''' # List in string list_str = ['list in string', 'list'] str_nest = list_str print(str_nest) # List in List list0 = ['list', 'in'] list1 = ['list'] list_nest = [list0, list1] print(list_nest) # List in Dictionary list_dict0 = ['list', 'dictionary'] list_dict1 = ['in'] dict_nest = { 'secto...
16
71
0.6325
28c6753f38de553d127ab549385d5af9443c8ee8
2,825
py
Python
cortex/secondary/data_quality.py
BIDMCDigitalPsychiatry/LAMP-cortex
805813e13843b0a76dad060a17b0e02756babf4d
[ "BSD-3-Clause" ]
4
2021-03-24T16:46:12.000Z
2022-02-09T15:55:11.000Z
cortex/secondary/data_quality.py
BIDMCDigitalPsychiatry/LAMP-cortex
805813e13843b0a76dad060a17b0e02756babf4d
[ "BSD-3-Clause" ]
15
2021-04-16T15:55:14.000Z
2022-03-04T16:42:27.000Z
cortex/secondary/data_quality.py
BIDMCDigitalPsychiatry/LAMP-cortex
805813e13843b0a76dad060a17b0e02756babf4d
[ "BSD-3-Clause" ]
3
2021-04-13T15:04:46.000Z
2021-06-21T11:50:16.000Z
""" Module to compute the data quality from raw data """ import pandas as pd import numpy as np from ..feature_types import secondary_feature, log from ..raw.accelerometer import accelerometer from ..raw.gps import gps MS_IN_A_DAY = 86400000 @secondary_feature( name='cortex.feature.data_quality', dependencies...
35.3125
95
0.585841
3d3da13f918971e3f84874aa13298b495901f62c
722
py
Python
252_meeting_room.py
ojhaanshu87/LeetCode
e6e4a15c4bb9f01b67c50689be3ead6c6d5df155
[ "Unlicense" ]
null
null
null
252_meeting_room.py
ojhaanshu87/LeetCode
e6e4a15c4bb9f01b67c50689be3ead6c6d5df155
[ "Unlicense" ]
null
null
null
252_meeting_room.py
ojhaanshu87/LeetCode
e6e4a15c4bb9f01b67c50689be3ead6c6d5df155
[ "Unlicense" ]
null
null
null
''' Given an array of meeting time intervals where intervals[i] = [starti, endi], determine if a person could attend all meetings. Example 1: Input: intervals = [[0,30],[5,10],[15,20]] Output: false Example 2: Input: intervals = [[7,10],[2,4]] Output: true ''' ''' The idea here is to sort the meetings by starting ti...
30.083333
161
0.66482
a99cb07093797b16305f61ac6260fc61857c489a
6,420
py
Python
src/kerassurgeon/examples/inception_flowers_prune.py
audatic/keras-surgeon
241ca31784cac59ec6ad31c0dfd723ce0e1643a3
[ "MIT" ]
null
null
null
src/kerassurgeon/examples/inception_flowers_prune.py
audatic/keras-surgeon
241ca31784cac59ec6ad31c0dfd723ce0e1643a3
[ "MIT" ]
null
null
null
src/kerassurgeon/examples/inception_flowers_prune.py
audatic/keras-surgeon
241ca31784cac59ec6ad31c0dfd723ce0e1643a3
[ "MIT" ]
null
null
null
"""Prunes channels from Inception V3 fine tuned on a small flowers data set. see setup instructions in inception_flowers_tune.py inception_flowers_tune.py must be run first """ import math from keras.applications import inception_v3 from keras.preprocessing.image import ImageDataGenerator from keras.optimizers import...
33.612565
88
0.684424
79e767de37a9b40dc316237ae6d4a2b879f80056
361
py
Python
game/migrations/0003_auto_20180311_2100.py
mingaleg/yakubovich
95398c78eaffbd6ff69f8fdbedfc847531219d8a
[ "MIT" ]
5
2018-12-12T16:24:42.000Z
2020-02-29T18:45:30.000Z
game/migrations/0003_auto_20180311_2100.py
mingaleg/yakubovich
95398c78eaffbd6ff69f8fdbedfc847531219d8a
[ "MIT" ]
3
2020-06-05T17:47:13.000Z
2022-02-11T03:39:54.000Z
game/migrations/0003_auto_20180311_2100.py
mingaleg/yakubovich
95398c78eaffbd6ff69f8fdbedfc847531219d8a
[ "MIT" ]
null
null
null
# Generated by Django 2.0.3 on 2018-03-11 21:00 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('game', '0002_auto_20180311_2050'), ] operations = [ migrations.AlterModelOptions( name='game', options={'permissions': (('st...
20.055556
64
0.584488
37b38306f49233c139da5ccaba916fe565db1c4e
4,863
py
Python
gpMgmt/bin/gppylib/operations/utils.py
darthunix/gpdb
ef7e33315d46586a4b511846531f4973c23187dd
[ "PostgreSQL", "Apache-2.0" ]
null
null
null
gpMgmt/bin/gppylib/operations/utils.py
darthunix/gpdb
ef7e33315d46586a4b511846531f4973c23187dd
[ "PostgreSQL", "Apache-2.0" ]
null
null
null
gpMgmt/bin/gppylib/operations/utils.py
darthunix/gpdb
ef7e33315d46586a4b511846531f4973c23187dd
[ "PostgreSQL", "Apache-2.0" ]
null
null
null
import os import sys import pickle from gppylib import gplog from gppylib.commands.base import OperationWorkerPool, Command, REMOTE from gppylib.operations import Operation DEFAULT_NUM_WORKERS = 64 logger = gplog.get_default_logger() class RemoteOperation(Operation): # TODO: The Operation that is run remotely ca...
44.614679
129
0.691754
cba5a871d6c5b8647c0e25943133c0a6dcf78dd8
232
py
Python
lemon/__init__.py
trilan/lemon
7f55b72a84fcae2c4b6372279dda2a05332f1e4c
[ "BSD-3-Clause" ]
2
2018-11-11T16:15:21.000Z
2021-07-30T20:02:31.000Z
lemon/__init__.py
trilan/lemon
7f55b72a84fcae2c4b6372279dda2a05332f1e4c
[ "BSD-3-Clause" ]
null
null
null
lemon/__init__.py
trilan/lemon
7f55b72a84fcae2c4b6372279dda2a05332f1e4c
[ "BSD-3-Clause" ]
2
2016-10-07T06:42:03.000Z
2021-07-30T20:02:34.000Z
from .options import ModelAdmin, AppAdmin from .options import StackedInline, TabularInline from .sites import AdminSite, site __all__ = [ 'ModelAdmin', 'AppAdmin', 'StackedInline', 'TabularInline', 'AdminSite', 'site', ]
23.2
76
0.732759
cbf04dca5354cf0176909738de7d63cfe84e01cd
41,450
py
Python
cardinal_pythonlib/sqlalchemy/merge_db.py
bopopescu/pythonlib
9c2187d6092ba133342ca3374eb7c86f9d296c30
[ "Apache-2.0" ]
null
null
null
cardinal_pythonlib/sqlalchemy/merge_db.py
bopopescu/pythonlib
9c2187d6092ba133342ca3374eb7c86f9d296c30
[ "Apache-2.0" ]
null
null
null
cardinal_pythonlib/sqlalchemy/merge_db.py
bopopescu/pythonlib
9c2187d6092ba133342ca3374eb7c86f9d296c30
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # cardinal_pythonlib/sqlalchemy/merge_db.py """ =============================================================================== Original code copyright (C) 2009-2020 Rudolf Cardinal (rudolf@pobox.com). This file is part of cardinal_pythonlib. Licensed under the Apache License, Vers...
36.359649
140
0.595585
507167017c37a56d341bec21304559a189be2c37
2,603
py
Python
analysis/r_omega_two_star/r_contraction.py
yamauchi1132/Research_Codes
c9e104f8592277cb4aa5c479b014c78c702a0939
[ "FSFAP" ]
null
null
null
analysis/r_omega_two_star/r_contraction.py
yamauchi1132/Research_Codes
c9e104f8592277cb4aa5c479b014c78c702a0939
[ "FSFAP" ]
null
null
null
analysis/r_omega_two_star/r_contraction.py
yamauchi1132/Research_Codes
c9e104f8592277cb4aa5c479b014c78c702a0939
[ "FSFAP" ]
null
null
null
import sys, os sys.path.append(os.pardir) import numpy as np import operator import math import matplotlib as mpl import matplotlib.pyplot as plt from common import * dirname = "data/sph_t0000.dat" def calc_r_v_ratio(p1, p2, pos1_cg, vel1_cg, pos2_cg, vel2_cg): r_x = [] v_x = [] r_y = [] v_y = [] r_z = [] ...
26.561224
91
0.557434
39a641195b0929989264a20388d5cb86436d83ff
370
py
Python
Program/QT_Line.py
EleKoPhi/GBCT_new
660c41a009a4d9db0a872369cb9519d8e37a9c5d
[ "CECILL-B" ]
null
null
null
Program/QT_Line.py
EleKoPhi/GBCT_new
660c41a009a4d9db0a872369cb9519d8e37a9c5d
[ "CECILL-B" ]
null
null
null
Program/QT_Line.py
EleKoPhi/GBCT_new
660c41a009a4d9db0a872369cb9519d8e37a9c5d
[ "CECILL-B" ]
null
null
null
from PyQt5.QtWidgets import * class QHLine(QFrame): def __init__(self): super(QHLine, self).__init__() self.setFrameShape(QFrame.HLine) self.setFrameShadow(QFrame.Sunken) class QVLine(QFrame): def __init__(self): super(QVLine, self).__init__() self.setFrameShape(QFrame...
26.428571
42
0.675676
b2608621c012f722b2831025cc1520c0b929eedf
3,558
py
Python
iscc_bench/imageid/ssc.py
coblo/isccbench
daf22cdd740fa99c62c4a56233593159e398596b
[ "BSD-2-Clause" ]
3
2019-07-07T19:30:26.000Z
2020-09-17T10:17:36.000Z
iscc_bench/imageid/ssc.py
coblo/isccbench
daf22cdd740fa99c62c4a56233593159e398596b
[ "BSD-2-Clause" ]
3
2019-04-15T13:00:48.000Z
2021-12-13T19:44:12.000Z
iscc_bench/imageid/ssc.py
coblo/isccbench
daf22cdd740fa99c62c4a56233593159e398596b
[ "BSD-2-Clause" ]
1
2021-02-25T16:13:14.000Z
2021-02-25T16:13:14.000Z
# -*- coding: utf-8 -*- """ Original Code (MIT License) from: https://github.com/BAILOOL/ANMS-Codes """ import math def SSC(keypoints, num_ret_points, tolerance, cols, rows): exp1 = rows + cols + 2 * num_ret_points exp2 = ( 4 * cols + 4 * num_ret_points + 4 * rows * num_ret_points ...
34.543689
95
0.497752
6a13e8a5d86376c8e8432dd9568bb1797c23a786
491
py
Python
Python3/0087-Scramble-String/soln-1.py
wyaadarsh/LeetCode-Solutions
3719f5cb059eefd66b83eb8ae990652f4b7fd124
[ "MIT" ]
5
2020-07-24T17:48:59.000Z
2020-12-21T05:56:00.000Z
Python3/0087-Scramble-String/soln-1.py
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
null
null
null
Python3/0087-Scramble-String/soln-1.py
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
2
2020-07-24T17:49:01.000Z
2020-08-31T19:57:35.000Z
class Solution: def isScramble(self, s1: str, s2: str) -> bool: if len(s1) != len(s2): return False if s1 == s2: return True if sorted(s1) != sorted(s2): return False n = len(s1) for i in range(1, n): if (self.isScramble(s1[:i],...
35.071429
160
0.492872
43ab2ee8a025745f55a9ab0ab119316b867a1072
2,272
py
Python
numba_dppy/examples/debug/side-by-side-2.py
akharche/numba-dppy
f12dac64b149bd72f305f341ff64b796bbb648c1
[ "Apache-2.0" ]
22
2020-11-25T12:13:33.000Z
2022-03-10T14:26:14.000Z
numba_dppy/examples/debug/side-by-side-2.py
akharche/numba-dppy
f12dac64b149bd72f305f341ff64b796bbb648c1
[ "Apache-2.0" ]
439
2020-11-17T14:48:38.000Z
2022-03-31T10:09:47.000Z
numba_dppy/examples/debug/side-by-side-2.py
akharche/numba-dppy
f12dac64b149bd72f305f341ff64b796bbb648c1
[ "Apache-2.0" ]
11
2020-11-24T14:29:46.000Z
2022-03-10T05:50:27.000Z
# Copyright 2020, 2021 Intel Corporation # # 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...
23.915789
76
0.673856
96b9d10d0fa3b66dc3f0332d443b25e9744b44e2
43,987
py
Python
script_gravidade_bif.py
jpra2/Presto2.1
e2a3e3121280b011a6be2a59be708623bdc0b482
[ "CNRI-Python" ]
1
2018-12-04T19:32:27.000Z
2018-12-04T19:32:27.000Z
script_gravidade_bif.py
jpra2/Presto2.1
e2a3e3121280b011a6be2a59be708623bdc0b482
[ "CNRI-Python" ]
null
null
null
script_gravidade_bif.py
jpra2/Presto2.1
e2a3e3121280b011a6be2a59be708623bdc0b482
[ "CNRI-Python" ]
null
null
null
from test34_bif import Msclassic_bif import time import numpy as np from PyTrilinos import Epetra, AztecOO, EpetraExt class gravidade_bif(Msclassic_bif): def __init__(self): super().__init__() self.run_grav() def create_flux_vector_pf_gr(self): """ cria um vetor para armazenar ...
45.022518
158
0.510992
913bf0a308c89940898763aacb693c97d4e43e50
18,994
py
Python
autocertkit/ack_cli.py
zhenzhenc/auto-cert-kit
82602c58899e2855078a3ccd03718c68fc38c42b
[ "BSD-2-Clause" ]
null
null
null
autocertkit/ack_cli.py
zhenzhenc/auto-cert-kit
82602c58899e2855078a3ccd03718c68fc38c42b
[ "BSD-2-Clause" ]
null
null
null
autocertkit/ack_cli.py
zhenzhenc/auto-cert-kit
82602c58899e2855078a3ccd03718c68fc38c42b
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python # Copyright (c) Citrix Systems Inc. # All rights reserved. # # Redistribution and use in source and binary forms, # with or without modification, are permitted provided # that the following conditions are met: # # * Redistributions of source code must retain the above # copyright notice, this l...
37.243137
151
0.613931
6865c8652de74d2e0a40d218cd1bd97e75504fbb
4,904
py
Python
Grid/grid_overlap_multi_xy_axis.py
zhang-xiao-feng/pyecharts-gallery
46c286f20372768e4375a34457c0638b0769aeee
[ "MIT" ]
1
2021-08-06T07:50:50.000Z
2021-08-06T07:50:50.000Z
Grid/grid_overlap_multi_xy_axis.py
yangzuogang/pyecharts-gallery
46c286f20372768e4375a34457c0638b0769aeee
[ "MIT" ]
null
null
null
Grid/grid_overlap_multi_xy_axis.py
yangzuogang/pyecharts-gallery
46c286f20372768e4375a34457c0638b0769aeee
[ "MIT" ]
1
2022-03-10T09:05:44.000Z
2022-03-10T09:05:44.000Z
from pyecharts import options as opts from pyecharts.charts import Bar, Grid, Line bar = ( Bar() .add_xaxis(["{}月".format(i) for i in range(1, 13)]) .add_yaxis( "蒸发量", [2.0, 4.9, 7.0, 23.2, 25.6, 76.7, 135.6, 162.2, 32.6, 20.0, 6.4, 3.3], yaxis_index=0, color="#d14a61", ...
29.365269
88
0.521615
44e893e60b2ec2e17764b76f4d81f5d019d24f88
6,665
py
Python
userbot/plugins/afk.py
NoobRider/catuserbot
dea79d5d8b7174efefcc1c35ed3434516a490f58
[ "MIT" ]
2
2020-04-12T11:51:06.000Z
2020-04-18T14:08:06.000Z
userbot/plugins/afk.py
NoobRider/catuserbot
dea79d5d8b7174efefcc1c35ed3434516a490f58
[ "MIT" ]
null
null
null
userbot/plugins/afk.py
NoobRider/catuserbot
dea79d5d8b7174efefcc1c35ed3434516a490f58
[ "MIT" ]
1
2020-05-18T10:46:56.000Z
2020-05-18T10:46:56.000Z
"""AFK Plugin for @UniBorg Syntax: .afk REASON""" import asyncio import datetime from datetime import datetime from telethon import events from telethon.tl import functions, types from userbot import CMD_HELP global USER_AFK # pylint:disable=E0602 global afk_time # pylint:disable=E0602 global last_afk_message # py...
39.672619
185
0.611253
4a7bf5312a6fcf888e9c41ef32ffd1a0192c66f5
10,475
py
Python
api/clouds/gdrive.py
h2020-westlife-eu/VRE
a85d5370767939b1971415be48a551ae6b1edc5d
[ "MIT" ]
1
2016-06-28T13:13:27.000Z
2016-06-28T13:13:27.000Z
api/clouds/gdrive.py
h2020-westlife-eu/VRE
a85d5370767939b1971415be48a551ae6b1edc5d
[ "MIT" ]
12
2016-06-28T11:19:46.000Z
2017-05-05T14:24:14.000Z
api/clouds/gdrive.py
h2020-westlife-eu/VRE
a85d5370767939b1971415be48a551ae6b1edc5d
[ "MIT" ]
null
null
null
# coding: utf-8 # Copyright Luna Technology 2015 # Matthieu Riviere <mriviere@luna-technology.com> import os import tempfile import traceback from apiclient.discovery import build import httplib2 from oauth2client import client from pydrive.auth import GoogleAuth from pydrive.drive import GoogleDrive from django.c...
29.843305
84
0.641718
caee7f5f7d01177e3933bab5bc2181e592dee0b9
27,776
py
Python
milvus/grpc_gen/common_pb2.py
fishpenguin/pymilvus
4e73e87e3d8b6317628f2bebaf1e48eddaa05dba
[ "Apache-2.0" ]
null
null
null
milvus/grpc_gen/common_pb2.py
fishpenguin/pymilvus
4e73e87e3d8b6317628f2bebaf1e48eddaa05dba
[ "Apache-2.0" ]
null
null
null
milvus/grpc_gen/common_pb2.py
fishpenguin/pymilvus
4e73e87e3d8b6317628f2bebaf1e48eddaa05dba
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: common.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protob...
35.248731
3,809
0.730019
a614822dffae3b980d1275df12c2b261f70f1279
610
py
Python
CF_Functions/Arcade/boxblur.py
glickmac/Misc_Scripts
7e18be79b84a309a1e79935f4470ea915141938d
[ "MIT" ]
null
null
null
CF_Functions/Arcade/boxblur.py
glickmac/Misc_Scripts
7e18be79b84a309a1e79935f4470ea915141938d
[ "MIT" ]
null
null
null
CF_Functions/Arcade/boxblur.py
glickmac/Misc_Scripts
7e18be79b84a309a1e79935f4470ea915141938d
[ "MIT" ]
1
2020-07-30T17:37:12.000Z
2020-07-30T17:37:12.000Z
def find_all_around(arr, row, col): top_left = arr[row-1][col-1] top = arr[row-1][col] top_right = arr[row-1][col+1] right= arr[row][col+1] bot_right = arr[row+1][col+1] bot = arr[row+1][col] bot_left = arr[row+1][col-1] left = arr[row][col-1] res = [top_left, top, top_right, right, bot_righ...
25.416667
74
0.57377
da3c2923f5b21bb9de8cea20e3cf8e4a4f1116f3
36,516
py
Python
venv/Lib/site-packages/mistune.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
1,318
2019-07-11T10:34:39.000Z
2022-03-29T15:05:19.000Z
venv/Lib/site-packages/mistune.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
387
2019-09-05T16:33:09.000Z
2022-03-31T10:43:39.000Z
venv/Lib/site-packages/mistune.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
66
2019-11-11T15:33:12.000Z
2022-03-01T07:55:55.000Z
# coding: utf-8 """ mistune ~~~~~~~ The fastest markdown parser in pure Python with renderer feature. :copyright: (c) 2014 - 2018 by Hsiaoming Yang. """ import re import inspect __version__ = '0.8.4' __author__ = 'Hsiaoming Yang <me@lepture.com>' __all__ = [ 'BlockGrammar', 'BlockLexer', 'In...
30.81519
79
0.51257
8b9644fe844a47c0591d9190ef81461e054347dd
995
py
Python
rustfst-python-bench/rustfst_python_bench/algorithms/compose.py
llogiq/rustfst
3172547ad57c5ae7e1c0474fd49187a81555b516
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
97
2018-11-22T00:55:26.000Z
2022-03-28T13:45:41.000Z
rustfst-python-bench/rustfst_python_bench/algorithms/compose.py
llogiq/rustfst
3172547ad57c5ae7e1c0474fd49187a81555b516
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
41
2019-08-02T23:29:45.000Z
2022-03-09T15:05:31.000Z
rustfst-python-bench/rustfst_python_bench/algorithms/compose.py
llogiq/rustfst
3172547ad57c5ae7e1c0474fd49187a81555b516
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
11
2018-10-22T22:06:19.000Z
2022-01-10T10:48:26.000Z
from rustfst_python_bench.utils import check_fst_equals class ComposeAlgorithm: def __init__(self, compose_type="default"): self.compose_type = compose_type @classmethod def openfst_cli(cls): return "fstcompose" @classmethod def rustfst_subcommand(cls): return "compose" ...
28.428571
75
0.675377
9792dc66325ef5c04ec85ed8922eb973e0a161f2
9,168
py
Python
vif_plug_linux_bridge/linux_net.py
mail2nsrajesh/os-vif
6a9017d1dcf2a0a4ab8bf35f39d4bfb7cb56027d
[ "Apache-2.0" ]
null
null
null
vif_plug_linux_bridge/linux_net.py
mail2nsrajesh/os-vif
6a9017d1dcf2a0a4ab8bf35f39d4bfb7cb56027d
[ "Apache-2.0" ]
null
null
null
vif_plug_linux_bridge/linux_net.py
mail2nsrajesh/os-vif
6a9017d1dcf2a0a4ab8bf35f39d4bfb7cb56027d
[ "Apache-2.0" ]
null
null
null
# Derived from nova/network/linux_net.py # # Copyright (c) 2011 X.commerce, a business unit of eBay Inc. # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the...
42.055046
79
0.599476
b2d831db91ab14ea096d0eff09632c7391805593
3,247
py
Python
src/msrnn_summary/msrnn_summary_run.py
ThuYShao/MatchZoo-py
dd8ff1328af58d3d14aacd1a7d56d79bbf847c15
[ "Apache-2.0" ]
null
null
null
src/msrnn_summary/msrnn_summary_run.py
ThuYShao/MatchZoo-py
dd8ff1328af58d3d14aacd1a7d56d79bbf847c15
[ "Apache-2.0" ]
null
null
null
src/msrnn_summary/msrnn_summary_run.py
ThuYShao/MatchZoo-py
dd8ff1328af58d3d14aacd1a7d56d79bbf847c15
[ "Apache-2.0" ]
1
2020-07-28T03:07:31.000Z
2020-07-28T03:07:31.000Z
# -*- coding: utf-8 -*- __author__ = 'yshao' import torch import numpy as np import pandas as pd import matchzoo as mz import os print('matchzoo version', mz.__version__) DATA_DIR = '/data/disk2/private/guozhipeng/syq/coliee/Case_Law/format/matchzoo' ranking_task = mz.tasks.Ranking(losses=mz.losses.RankCrossEntropy...
26.398374
128
0.749307
16e28d369818cd1865621753db585621a9783aa5
653
py
Python
tottle/polling/abc.py
muffleo/tottle
69a5bdda879ab56d43505d517d3369a687c135a2
[ "MIT" ]
12
2020-09-06T15:31:34.000Z
2021-02-27T20:30:34.000Z
tottle/polling/abc.py
cyanlabs-org/tottle
6cf02022ed7b445c9b5af475c6e854b91780d792
[ "MIT" ]
2
2021-04-13T06:43:42.000Z
2021-07-07T20:52:39.000Z
tottle/polling/abc.py
cyanlabs-org/tottle
6cf02022ed7b445c9b5af475c6e854b91780d792
[ "MIT" ]
4
2020-09-12T03:09:25.000Z
2021-03-22T08:52:04.000Z
from abc import ABC, abstractmethod from typing import AsyncIterator, Any, Optional from tottle.exception_factory import ABCErrorHandler from tottle.api import ABCAPI class ABCPolling(ABC): @abstractmethod async def get_updates(self) -> Any: pass @abstractmethod async def listen(self) -> Asy...
21.064516
78
0.656968
dfc5e1cb286c79dc39b28a496122512ed784933a
1,404
py
Python
config_pb2_grpc.py
neolinsu/dlrm
3caad5079032b9603df93d9dae57f40e495eb540
[ "MIT" ]
null
null
null
config_pb2_grpc.py
neolinsu/dlrm
3caad5079032b9603df93d9dae57f40e495eb540
[ "MIT" ]
null
null
null
config_pb2_grpc.py
neolinsu/dlrm
3caad5079032b9603df93d9dae57f40e495eb540
[ "MIT" ]
null
null
null
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc import config_pb2 as config__pb2 class ConfigStub(object): # missing associated documentation comment in .proto file pass def __init__(self, channel): """Constructor. Args: channel: A grpc.Channel. """ sel...
29.87234
72
0.746439
b128a6549876bdcdd362171efd4462cfac8075cd
18,529
py
Python
sdk/python/pulumi_aws/cfg/rule.py
michael-golden/pulumi-aws
165e876e166ecab1870e857822247585d78aef64
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/cfg/rule.py
michael-golden/pulumi-aws
165e876e166ecab1870e857822247585d78aef64
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/cfg/rule.py
michael-golden/pulumi-aws
165e876e166ecab1870e857822247585d78aef64
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Union from .. import utilities, tables class Rule(pulumi.Custo...
66.412186
669
0.690647
5f34c62baad1916f21ac0441a9899ff2bec5a268
5,513
py
Python
main/driveupload.py
siddhantkhandelwal/pep-website
4d8b0fc7d2c7fe41c3497e64b8a3c34f02c13bf9
[ "MIT" ]
null
null
null
main/driveupload.py
siddhantkhandelwal/pep-website
4d8b0fc7d2c7fe41c3497e64b8a3c34f02c13bf9
[ "MIT" ]
3
2021-02-08T20:28:24.000Z
2021-06-10T21:04:27.000Z
main/driveupload.py
siddhantkhandelwal/pep-website
4d8b0fc7d2c7fe41c3497e64b8a3c34f02c13bf9
[ "MIT" ]
null
null
null
from pydrive.auth import GoogleAuth from pydrive.drive import GoogleDrive import sys import os import datetime from django.utils import timezone import pytz from main.models import Abstract, Paper, ParticipantProfile, ProfessorProfile, StaffProfile, College, SupervisorProfile, Category def upload_thread(pk): glob...
36.753333
129
0.641937
59a5ac8062fdf6f6ef4fbdac2e93e8b986448a18
1,055
py
Python
apps/establishment_system/lookup.py
camilortte/RecomendadorUD
ebf9ee4482c4093d4751a27c90f56637a9c692a4
[ "MIT" ]
4
2015-01-29T17:17:26.000Z
2021-03-03T08:17:03.000Z
apps/establishment_system/lookup.py
camilortte/RecomendadorUD
ebf9ee4482c4093d4751a27c90f56637a9c692a4
[ "MIT" ]
null
null
null
apps/establishment_system/lookup.py
camilortte/RecomendadorUD
ebf9ee4482c4093d4751a27c90f56637a9c692a4
[ "MIT" ]
1
2015-09-22T08:35:26.000Z
2015-09-22T08:35:26.000Z
""" Por eliminar """ # from .models import Categoria,SubCategoria,Establecimiento # from selectable.base import ModelLookup # from selectable.registry import registry # class EstablecimientoLookUp(ModelLookup): # model = Establecimiento # search_fields = ('nombre__icontains','email', ) # class SubCategoriaL...
29.305556
76
0.676777
5e904397bc9e403254ae7d7657494e0307c11b82
7,150
py
Python
rain_animation.py
claytongulick/blinky_lights
84064264637cf6bb6c62100b5b8bd60fa8ef1af2
[ "MIT" ]
null
null
null
rain_animation.py
claytongulick/blinky_lights
84064264637cf6bb6c62100b5b8bd60fa8ef1af2
[ "MIT" ]
null
null
null
rain_animation.py
claytongulick/blinky_lights
84064264637cf6bb6c62100b5b8bd60fa8ef1af2
[ "MIT" ]
1
2021-08-22T09:28:33.000Z
2021-08-22T09:28:33.000Z
from random import random from animation import Animation from pprint import pprint import time import logging import math import sys from config import * from traceback import print_exception class RainAnimation(Animation): MAX_LINES = 25 class Line: def __init__(self, fade_speed, color, x, y, v...
36.85567
178
0.464196
4537158f84466009a8fa4ce57c8866c1f3e48de2
856
py
Python
version_control/scripts/upgrade/versions/v_00005.py
yaoyansibase/mymagicbox
e6e720aa7c45c5b059a953101d698c6b76212ea6
[ "MIT" ]
1
2018-08-02T03:59:04.000Z
2018-08-02T03:59:04.000Z
version_control/scripts/upgrade/versions/v_00005.py
yaoyansibase/mymagicbox
e6e720aa7c45c5b059a953101d698c6b76212ea6
[ "MIT" ]
null
null
null
version_control/scripts/upgrade/versions/v_00005.py
yaoyansibase/mymagicbox
e6e720aa7c45c5b059a953101d698c6b76212ea6
[ "MIT" ]
null
null
null
import maya.cmds as cmds import mymagicbox.log as log class Upgrade(object): def __init__(self): self.thisVersion = 00005; def do(self, nodes): log.info('------------------------------------'); log.info(' Trying To Upgrade to %s ... ', self.thisVersion); for node in nodes: if cmds.getAttr(node...
24.457143
69
0.643692
b5ea39484116d62db440b1ec664d1b3fecd494cc
4,145
py
Python
bot.py
V-I-C-T-O-R/rasa-chatbot
9c99a35e9a0d7e75fdc461fa0039d434b8083c33
[ "Apache-2.0" ]
9
2018-10-26T08:12:13.000Z
2020-11-26T01:05:17.000Z
bot.py
V-I-C-T-O-R/rasa-chatbot
9c99a35e9a0d7e75fdc461fa0039d434b8083c33
[ "Apache-2.0" ]
2
2018-12-19T06:09:30.000Z
2019-09-05T05:44:41.000Z
bot.py
V-I-C-T-O-R/rasa-chatbot
9c99a35e9a0d7e75fdc461fa0039d434b8083c33
[ "Apache-2.0" ]
4
2018-12-18T08:55:36.000Z
2019-08-23T15:09:39.000Z
import argparse import warnings from gevent.pywsgi import WSGIServer from rasa_core import train from rasa_core.agent import Agent from rasa_core.interpreter import NaturalLanguageInterpreter, RasaNLUInterpreter from rasa_core.policies.keras_policy import KerasPolicy from rasa_core.policies.memoization import Memoizat...
38.027523
120
0.672859
37ee14322f255d2bb4f46f05e32976ee6c2e1a4d
2,787
py
Python
src/main/python/ui/savechart.py
3ll3d00d/pypolarmap
d96e16820b4da29ec33271abd34dc33c587e7657
[ "MIT" ]
1
2020-02-12T12:33:26.000Z
2020-02-12T12:33:26.000Z
src/main/python/ui/savechart.py
3ll3d00d/pypolarmap
d96e16820b4da29ec33271abd34dc33c587e7657
[ "MIT" ]
10
2018-06-04T18:09:59.000Z
2020-02-01T11:24:54.000Z
src/main/python/ui/savechart.py
3ll3d00d/pypolarmap
d96e16820b4da29ec33271abd34dc33c587e7657
[ "MIT" ]
1
2019-09-30T04:35:00.000Z
2019-09-30T04:35:00.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'savechart.ui' # # Created by: PyQt5 UI code generator 5.13.1 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_saveChartDialog(object): def setupUi(self, saveChartDialog): ...
48.051724
108
0.733405
2fc321564ec22a3fc08d852dadd83738de2b7bb9
349
py
Python
languages/python/web_codepad_post.py
Andilyn/learntosolveit
fd15345c74ef543e4e26f4691bf91cb6dac568a4
[ "BSD-3-Clause" ]
1
2021-04-09T04:15:24.000Z
2021-04-09T04:15:24.000Z
languages/python/web_codepad_post.py
Andilyn/learntosolveit
fd15345c74ef543e4e26f4691bf91cb6dac568a4
[ "BSD-3-Clause" ]
null
null
null
languages/python/web_codepad_post.py
Andilyn/learntosolveit
fd15345c74ef543e4e26f4691bf91cb6dac568a4
[ "BSD-3-Clause" ]
1
2021-07-31T02:45:29.000Z
2021-07-31T02:45:29.000Z
import urllib2 import urllib url = 'http://codepad.org' with open('locate.py') as f: code = f.read() parameters = {'project':'uthcode', 'lang':'Python', 'code': code, 'private':'', 'run':'False', 'submit':'Submit'} seq = urllib.urlencode(parameters) r = urllib2.urlopen(ur...
18.368421
34
0.575931
8c477ee9e508168b7fdfad27e9932756e083549e
236
py
Python
Server/Python/src/dbs/dao/MySQL/ProcessedDataset/GetID.py
vkuznet/DBS
14df8bbe8ee8f874fe423399b18afef911fe78c7
[ "Apache-2.0" ]
8
2015-08-14T04:01:32.000Z
2021-06-03T00:56:42.000Z
Server/Python/src/dbs/dao/MySQL/ProcessedDataset/GetID.py
yuyiguo/DBS
14df8bbe8ee8f874fe423399b18afef911fe78c7
[ "Apache-2.0" ]
162
2015-01-07T21:34:47.000Z
2021-10-13T09:42:41.000Z
Server/Python/src/dbs/dao/MySQL/ProcessedDataset/GetID.py
yuyiguo/DBS
14df8bbe8ee8f874fe423399b18afef911fe78c7
[ "Apache-2.0" ]
16
2015-01-22T15:27:29.000Z
2021-04-28T09:23:28.000Z
#!/usr/bin/env python """ This module provides ProcessedDataset.GetID data access object. """ from dbs.dao.Oracle.ProcessedDataset.GetID import GetID as OraProcessedDatasetGetID class GetID(OraProcessedDatasetGetID): pass
23.6
83
0.771186
5717a9780ae8288174a5ec87f1881e0e25d549ce
5,865
py
Python
docs/source/conf.py
aeroramesh/eMInd
a699681c53637bc5b2ef2608fd4e5cb8ebc7b19d
[ "MIT" ]
98
2019-09-13T16:00:57.000Z
2022-03-25T05:15:36.000Z
docs/source/conf.py
aeroramesh/eMInd
a699681c53637bc5b2ef2608fd4e5cb8ebc7b19d
[ "MIT" ]
269
2019-08-22T01:47:09.000Z
2021-12-01T14:47:47.000Z
docs/source/conf.py
aeroramesh/eMInd
a699681c53637bc5b2ef2608fd4e5cb8ebc7b19d
[ "MIT" ]
5
2021-05-07T11:11:40.000Z
2022-03-29T08:38:33.000Z
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
29.621212
79
0.66445
eb282e96df605c49958261d1bcdd1be576d4b1bf
3,574
py
Python
story_chain/flaskrunner.py
muchu1983/story_chain
3af4bb158be128a52c753f88eaffaed872d85880
[ "BSD-3-Clause" ]
null
null
null
story_chain/flaskrunner.py
muchu1983/story_chain
3af4bb158be128a52c753f88eaffaed872d85880
[ "BSD-3-Clause" ]
null
null
null
story_chain/flaskrunner.py
muchu1983/story_chain
3af4bb158be128a52c753f88eaffaed872d85880
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Copyright (C) 2015, MuChu Hsu Contributed by Muchu Hsu (muchu1983@gmail.com) This file is part of BSD license <https://opensource.org/licenses/BSD-3-Clause> """ import json from flask import Flask from flask import request from flask import render_template from flask import jsonify from sto...
34.038095
94
0.689144
1354c689298d20a92ecea8e5b49d805dfb56c133
4,002
py
Python
ML6_fruits.py
maedora/apphy186MLexercises
8086b9a98041ecfe332421e3637b97b37a0864e7
[ "MIT" ]
null
null
null
ML6_fruits.py
maedora/apphy186MLexercises
8086b9a98041ecfe332421e3637b97b37a0864e7
[ "MIT" ]
null
null
null
ML6_fruits.py
maedora/apphy186MLexercises
8086b9a98041ecfe332421e3637b97b37a0864e7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Jan 19 13:51:29 2021 @author: Alena Edora """ import matplotlib.pyplot as plt import numpy as np import pandas as pd from sklearn.metrics import accuracy_score, \ confusion_matrix, ConfusionMatrixDisplay df = pd.read_excel('classification_features.xlsx'...
25.0125
81
0.617691
adc0003dca3e60f178b34c38f66966626eb9a784
1,077
py
Python
nginpro/ngin.py
thesabbir/nginpro
b3ca2fbadc19fa28798434bb640f4d0a1bf742b9
[ "MIT" ]
1
2020-12-28T16:33:54.000Z
2020-12-28T16:33:54.000Z
nginpro/ngin.py
thesabbir/nginpro
b3ca2fbadc19fa28798434bb640f4d0a1bf742b9
[ "MIT" ]
null
null
null
nginpro/ngin.py
thesabbir/nginpro
b3ca2fbadc19fa28798434bb640f4d0a1bf742b9
[ "MIT" ]
null
null
null
import argparse from nginx_conf import server, reverse_proxy from utils import to_nginx_template, make_indent, make_block """ Initiate argparse """ parser = argparse.ArgumentParser() """ Add arguments """ parser.add_argument("-r", "--revproxy", help="reverse proxy", action="store_true") parser.add_argument("-n", "--n...
29.916667
97
0.715877
bfa274731702b7e93b1fde530bd4215f7eaa6a3d
854
py
Python
topics/DynamicProgramming/Paint_Fence_276/Paint_Fence_276.py
DmitryNaimark/leetcode-solutions-python
16af5f3a9cb8469d82b14c8953847f0e93a92324
[ "MIT" ]
1
2019-10-31T11:06:23.000Z
2019-10-31T11:06:23.000Z
topics/DynamicProgramming/Paint_Fence_276/Paint_Fence_276.py
DmitryNaimark/leetcode-solutions-python
16af5f3a9cb8469d82b14c8953847f0e93a92324
[ "MIT" ]
null
null
null
topics/DynamicProgramming/Paint_Fence_276/Paint_Fence_276.py
DmitryNaimark/leetcode-solutions-python
16af5f3a9cb8469d82b14c8953847f0e93a92324
[ "MIT" ]
null
null
null
# https://leetcode.com/problems/paint-fence/ # --------------------------------------------------- # Runtime Complexity: O(N) # Space Complexity: O(1) class Solution: def numWays(self, n: int, k: int) -> int: if n == 0: return 0 if n == 1: return k same_color = k ...
26.6875
113
0.443794
78606c340479b12753242b347ebfcd6ea59a504c
543
py
Python
Python/Linked List/traversal.py
msboffl/Data-Structures-and-Algorithms
ad823886f5c25b80487b42d92c9b71c5bdc5cf26
[ "MIT" ]
null
null
null
Python/Linked List/traversal.py
msboffl/Data-Structures-and-Algorithms
ad823886f5c25b80487b42d92c9b71c5bdc5cf26
[ "MIT" ]
null
null
null
Python/Linked List/traversal.py
msboffl/Data-Structures-and-Algorithms
ad823886f5c25b80487b42d92c9b71c5bdc5cf26
[ "MIT" ]
null
null
null
class Node: def __init__(self,data): self.data = data self.ref = None class LinkedList: def __init__(self): self.head = None # method for print LL def printLL(self): if(self.head == None): print('Linked List is empty') else: n = self....
19.392857
41
0.526703
3f852d385494598301a1f5e931efebc98c5cec89
8,833
py
Python
networks/network.py
StanfordVL/cavin
581f70fefb3a869db739d8539f3b74759ab71777
[ "MIT" ]
17
2020-04-11T22:31:40.000Z
2021-08-16T09:29:16.000Z
networks/network.py
StanfordVL/cavin
581f70fefb3a869db739d8539f3b74759ab71777
[ "MIT" ]
null
null
null
networks/network.py
StanfordVL/cavin
581f70fefb3a869db739d8539f3b74759ab71777
[ "MIT" ]
4
2020-09-28T02:39:31.000Z
2021-05-16T13:44:29.000Z
"""Base extension to network to simplify copy operations. Note: This file overrides Network and DistributionNetwork classes in TF-Agents to get around Keras. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import abc # import sys import six import tens...
35.332
79
0.625042
b877129fed8da189ac42018f3acc0805d83ffa13
6,330
py
Python
bin/ADFRsuite/CCSBpckgs/UTpackages/UTmesh/lbiemesher.py
AngelRuizMoreno/Jupyter_Dock_devel
6d23bc174d5294d1e9909a0a1f9da0713042339e
[ "MIT" ]
null
null
null
bin/ADFRsuite/CCSBpckgs/UTpackages/UTmesh/lbiemesher.py
AngelRuizMoreno/Jupyter_Dock_devel
6d23bc174d5294d1e9909a0a1f9da0713042339e
[ "MIT" ]
null
null
null
bin/ADFRsuite/CCSBpckgs/UTpackages/UTmesh/lbiemesher.py
AngelRuizMoreno/Jupyter_Dock_devel
6d23bc174d5294d1e9909a0a1f9da0713042339e
[ "MIT" ]
1
2021-11-04T21:48:14.000Z
2021-11-04T21:48:14.000Z
# This file was automatically generated by SWIG (http://www.swig.org). # Version 3.0.5 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info if version_info >= (2, 6, 0): def swig_import_helper(): from os.path imp...
30.432692
101
0.7109
f5f309234f3cae27b898390a996e7eca3a32c4cc
12,587
py
Python
iridauploader/core/cli_entry.py
dfornika/irida-uploader
0d855433bf5b567ff1e63501950fdc145b488742
[ "Apache-2.0" ]
null
null
null
iridauploader/core/cli_entry.py
dfornika/irida-uploader
0d855433bf5b567ff1e63501950fdc145b488742
[ "Apache-2.0" ]
null
null
null
iridauploader/core/cli_entry.py
dfornika/irida-uploader
0d855433bf5b567ff1e63501950fdc145b488742
[ "Apache-2.0" ]
null
null
null
import logging from pprint import pformat import iridauploader.api as api import iridauploader.parsers as parsers import iridauploader.progress as progress from iridauploader.model import DirectoryStatus from . import api_handler, parsing_handler, logger, exit_return VERSION_NUMBER = "0.4.1" def upload_run_single...
45.937956
118
0.69111
6f3bf9e1410976950d6b3c1625db1efba20ae4eb
159
py
Python
pc_toolbox/utils_data/__init__.py
TracyYXChen/prediction-constrained-topic-models
91f6f71d10583b49161cd058ededffe93aed0e02
[ "MIT" ]
null
null
null
pc_toolbox/utils_data/__init__.py
TracyYXChen/prediction-constrained-topic-models
91f6f71d10583b49161cd058ededffe93aed0e02
[ "MIT" ]
null
null
null
pc_toolbox/utils_data/__init__.py
TracyYXChen/prediction-constrained-topic-models
91f6f71d10583b49161cd058ededffe93aed0e02
[ "MIT" ]
null
null
null
from pc_toolbox.utils_data.util_data_slicer import make_slice_for_step from pc_toolbox.utils_data.util_stratified_subsample import get_stratified_subsample_ids
79.5
88
0.930818
fac348b836b439122445dbce6457fb7301a0b8fb
7,406
py
Python
test/functional/qtum_duplicate_stake.py
machado-rev/HTMLCOIN
f8224d522932b929d4c9ff53ece6dc5e83d91749
[ "MIT" ]
106
2017-11-21T14:29:30.000Z
2022-01-28T04:40:07.000Z
test/functional/qtum_duplicate_stake.py
machado-rev/HTMLCOIN
f8224d522932b929d4c9ff53ece6dc5e83d91749
[ "MIT" ]
75
2018-01-04T16:23:02.000Z
2021-12-21T05:59:44.000Z
test/functional/qtum_duplicate_stake.py
machado-rev/HTMLCOIN
f8224d522932b929d4c9ff53ece6dc5e83d91749
[ "MIT" ]
106
2017-11-21T16:25:16.000Z
2022-01-20T13:58:15.000Z
#!/usr/bin/env python3 from test_framework.test_framework import BitcoinTestFramework from test_framework.util import * from test_framework.script import * from test_framework.mininode import * from test_framework.messages import * from test_framework.qtum import * import time class QtumDuplicateStakeTest(BitcoinTes...
40.469945
115
0.692547
06631ab4743c076d1399306e9ae7bc314c0597d7
1,384
py
Python
project/project/urls.py
justo340/blogapp
7baaee3eed5385dd80b94d77ad72a1b95b7035f3
[ "MIT" ]
null
null
null
project/project/urls.py
justo340/blogapp
7baaee3eed5385dd80b94d77ad72a1b95b7035f3
[ "MIT" ]
null
null
null
project/project/urls.py
justo340/blogapp
7baaee3eed5385dd80b94d77ad72a1b95b7035f3
[ "MIT" ]
null
null
null
"""project URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based...
37.405405
101
0.725434
e03383704bbfced129cccf64b3855dde896b693d
3,002
py
Python
setup.py
IntelPython/smp
aa319b916d990c5a21a30f64817ee57ee75f761c
[ "BSD-3-Clause" ]
14
2017-07-13T15:51:30.000Z
2022-02-01T08:20:28.000Z
setup.py
IntelPython/smp
aa319b916d990c5a21a30f64817ee57ee75f761c
[ "BSD-3-Clause" ]
null
null
null
setup.py
IntelPython/smp
aa319b916d990c5a21a30f64817ee57ee75f761c
[ "BSD-3-Clause" ]
2
2019-02-13T20:58:41.000Z
2019-03-01T10:56:41.000Z
#!/usr/bin/env python # Copyright (c) 2017, Intel Corporation # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, # this list of conditi...
46.184615
82
0.678548
e0935a9df4ee46fc3355e5db4720d55e79803a3e
19,206
py
Python
venv/lib/python3.7/site-packages/debian/debtags.py
margretmwangi/Rblog
2d606a858c3313e1d48cdd6a8ce205c8776be754
[ "Unlicense" ]
null
null
null
venv/lib/python3.7/site-packages/debian/debtags.py
margretmwangi/Rblog
2d606a858c3313e1d48cdd6a8ce205c8776be754
[ "Unlicense" ]
1
2021-02-08T20:34:54.000Z
2021-02-08T20:34:54.000Z
venv/lib/python3.7/site-packages/debian/debtags.py
margretmwangi/Rblog
2d606a858c3313e1d48cdd6a8ce205c8776be754
[ "Unlicense" ]
1
2020-11-04T06:48:34.000Z
2020-11-04T06:48:34.000Z
""" Facilities to work with debtags - tags for Debian packages """ # Copyright (C) 2006-2007 Enrico Zini <enrico@enricozini.org> # # 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...
32.442568
92
0.596741
fa9d5e70e66f588cfb08d8a932fb5d8088429b6b
32,425
py
Python
scale/util/test/test_rest.py
kaydoh/scale
1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee
[ "Apache-2.0" ]
121
2015-11-18T18:15:33.000Z
2022-03-10T01:55:00.000Z
scale/util/test/test_rest.py
kaydoh/scale
1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee
[ "Apache-2.0" ]
1,415
2015-12-23T23:36:04.000Z
2022-01-07T14:10:09.000Z
scale/util/test/test_rest.py
kaydoh/scale
1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee
[ "Apache-2.0" ]
66
2015-12-03T20:38:56.000Z
2020-07-27T15:28:11.000Z
from __future__ import unicode_literals import datetime import django import mock from django.http import QueryDict from django.test import TestCase from django.utils.timezone import utc from mock import MagicMock from rest_framework.request import Request import util.rest as rest_util from util.rest import BadParam...
43.003979
115
0.64478
c1f476bd225b71942c936cca89c6c595bb9ae6a2
3,104
py
Python
training/train_model.py
googleinterns/smart-news-query-embeddings
5c0f354100e3c92ad3e9c0b9ca43f3307b8b68c5
[ "Apache-2.0" ]
null
null
null
training/train_model.py
googleinterns/smart-news-query-embeddings
5c0f354100e3c92ad3e9c0b9ca43f3307b8b68c5
[ "Apache-2.0" ]
11
2020-08-06T18:53:39.000Z
2022-02-10T01:56:49.000Z
training/train_model.py
googleinterns/smart-news-query-embeddings
5c0f354100e3c92ad3e9c0b9ca43f3307b8b68c5
[ "Apache-2.0" ]
1
2020-09-02T08:20:14.000Z
2020-09-02T08:20:14.000Z
""" Copyright 2020 Google LLC. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
53.517241
127
0.761276
ef67c7a8be76af61d823ee447dc272d58105caab
8,787
py
Python
build.py
k0sukey/TiSBTickerView
097a05801365db6857d1ef902c257d69cab257f3
[ "Unlicense", "MIT" ]
1
2016-11-16T19:30:17.000Z
2016-11-16T19:30:17.000Z
build.py
k0sukey/TiSBTickerView
097a05801365db6857d1ef902c257d69cab257f3
[ "Unlicense", "MIT" ]
null
null
null
build.py
k0sukey/TiSBTickerView
097a05801365db6857d1ef902c257d69cab257f3
[ "Unlicense", "MIT" ]
null
null
null
#!/usr/bin/env python # # Appcelerator Titanium Module Packager # # import os, subprocess, sys, glob, string, optparse, subprocess import zipfile from datetime import date cwd = os.path.abspath(os.path.dirname(sys._getframe(0).f_code.co_filename)) os.chdir(cwd) required_module_keys = ['name','version','moduleid','desc...
31.836957
135
0.709116
2094971b8c9beb6ca24941a01c25f083b08474bb
3,714
py
Python
post_tool/post_area.py
sus304/ForRocketWorkbench
453613ecde282cc8a2b481250f29e6de7438a230
[ "Apache-2.0" ]
null
null
null
post_tool/post_area.py
sus304/ForRocketWorkbench
453613ecde282cc8a2b481250f29e6de7438a230
[ "Apache-2.0" ]
null
null
null
post_tool/post_area.py
sus304/ForRocketWorkbench
453613ecde282cc8a2b481250f29e6de7438a230
[ "Apache-2.0" ]
null
null
null
import os import glob import numpy as np from tqdm import tqdm from post_tool.post_df import csv2df from post_tool.post_summary import post_summary from post_tool.post_kml import dump_area_kml def post_area(area_work_dir): os.chdir(area_work_dir) # ディレクトリ内の*_flight_log.csvをリストアップする log_file_list = glob....
36.058252
81
0.651319
303c319fcd1dd6304665954e517d8b0281190f65
2,288
py
Python
tests/test_philips_tiff_tiler.py
imi-bigpicture/opentile
1a84284c5bc2c3515e14d5345b6077842897b547
[ "Apache-2.0" ]
4
2021-12-02T17:19:10.000Z
2022-02-02T16:35:48.000Z
tests/test_philips_tiff_tiler.py
sectra-medical/opentile
1a84284c5bc2c3515e14d5345b6077842897b547
[ "Apache-2.0" ]
6
2021-12-02T13:22:04.000Z
2022-03-09T14:01:19.000Z
tests/test_philips_tiff_tiler.py
sectra-medical/opentile
1a84284c5bc2c3515e14d5345b6077842897b547
[ "Apache-2.0" ]
4
2022-02-04T08:24:20.000Z
2022-02-16T12:39:39.000Z
# Copyright 2021 SECTRA AB # # 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...
29.714286
77
0.652535
b555ae5d5f4276e7533584444a998c316ce4d983
10,223
py
Python
src/Updater.py
losek1/Sounder3
21999a309d9a395bcbc88ecb7fbfce1c507dfa6a
[ "MIT" ]
2
2019-08-12T15:40:23.000Z
2019-08-12T15:41:52.000Z
src/Updater.py
losek1/Sounder3
21999a309d9a395bcbc88ecb7fbfce1c507dfa6a
[ "MIT" ]
null
null
null
src/Updater.py
losek1/Sounder3
21999a309d9a395bcbc88ecb7fbfce1c507dfa6a
[ "MIT" ]
null
null
null
try: from os import getcwd, startfile, rename, remove from os.path import dirname, isfile, basename from threading import Thread from json import load from tkinter import Tk, PhotoImage, sys, Frame from tkinter import ttk from typing import ClassVar, Dict, List from requests import get ...
36.906137
163
0.638462
66ebad7fd2f39e50cf9a9f14ad3956b2bb7264bc
68,401
py
Python
mlflow/tracking/fluent.py
szczeles/mlflow
7e7b9f8fe8672e5fdc0a1b2c4180443c24918ad4
[ "Apache-2.0" ]
null
null
null
mlflow/tracking/fluent.py
szczeles/mlflow
7e7b9f8fe8672e5fdc0a1b2c4180443c24918ad4
[ "Apache-2.0" ]
null
null
null
mlflow/tracking/fluent.py
szczeles/mlflow
7e7b9f8fe8672e5fdc0a1b2c4180443c24918ad4
[ "Apache-2.0" ]
null
null
null
""" Internal module implementing the fluent API, allowing management of an active MLflow run. This module is exposed to users at the top-level :py:mod:`mlflow` module. """ import os import atexit import time import logging import inspect from copy import deepcopy from packaging.version import Version from typing impor...
39.333525
100
0.638119
6c4dbedf8128fda560f7c312c84bab9e8f5ecfb9
2,687
py
Python
movement_primitives/data/_minimum_jerk.py
maotto/movement_primitives
b79c78a5a0667cc24a26b7b6cc64a5762d8f4dd4
[ "BSD-3-Clause" ]
17
2021-11-17T15:36:16.000Z
2022-03-26T08:49:25.000Z
movement_primitives/data/_minimum_jerk.py
DavidYaonanZhu/movement_primitives
ce355837f06cb5fada24be7259cb0305e8ea5d91
[ "BSD-3-Clause" ]
9
2021-12-01T10:33:04.000Z
2022-03-23T12:41:39.000Z
movement_primitives/data/_minimum_jerk.py
DavidYaonanZhu/movement_primitives
ce355837f06cb5fada24be7259cb0305e8ea5d91
[ "BSD-3-Clause" ]
8
2021-11-25T03:53:40.000Z
2022-03-31T03:19:25.000Z
import numpy as np def generate_minimum_jerk(start, goal, execution_time=1.0, dt=0.01): """Create a minimum jerk trajectory. A minimum jerk trajectory from :math:`x_0` to :math:`g` minimizes the third time derivative of the positions: .. math:: \\arg \min_{x_0, \ldots, x_T} \int_{t=0}^T \dd...
25.590476
78
0.484927
b239e9d99986355452a79bf2ac4bb9e7a9e33c14
5,467
py
Python
beit/semantic_segmentation/tools/test.py
Sanster/unilm
8dc116038a49f51abb9506071283a817af43fd60
[ "MIT" ]
5,129
2019-09-30T11:21:03.000Z
2022-03-31T22:35:12.000Z
beit/semantic_segmentation/tools/test.py
Sanster/unilm
8dc116038a49f51abb9506071283a817af43fd60
[ "MIT" ]
604
2019-10-05T00:39:46.000Z
2022-03-31T11:12:07.000Z
beit/semantic_segmentation/tools/test.py
Sanster/unilm
8dc116038a49f51abb9506071283a817af43fd60
[ "MIT" ]
1,034
2019-09-30T15:01:32.000Z
2022-03-31T06:14:50.000Z
import argparse import os import mmcv import torch from mmcv.parallel import MMDataParallel, MMDistributedDataParallel from mmcv.runner import get_dist_info, init_dist, load_checkpoint from mmcv.utils import DictAction from mmseg.apis import multi_gpu_test, single_gpu_test from mmseg.datasets import build_dataloader,...
36.205298
79
0.646607
cb251d46489255b0a3f31d69a14afe0f5e39044b
291,287
py
Python
pandas/core/frame.py
dhimmel/pandas
776fed3ab63d74ddef6e5af1a702b10c2a30bbb6
[ "BSD-3-Clause" ]
null
null
null
pandas/core/frame.py
dhimmel/pandas
776fed3ab63d74ddef6e5af1a702b10c2a30bbb6
[ "BSD-3-Clause" ]
null
null
null
pandas/core/frame.py
dhimmel/pandas
776fed3ab63d74ddef6e5af1a702b10c2a30bbb6
[ "BSD-3-Clause" ]
null
null
null
""" DataFrame --------- An efficient 2D container for potentially mixed-type time series or other labeled data series. Similar to its R counterpart, data.frame, except providing automatic data alignment and a host of useful data manipulation methods having to do with the labeling information """ from __future__ import...
36.561692
169
0.532059
d7e9eff463b2892c2d8827ec61ac2ac40f295522
10,123
py
Python
rdkit/ML/NaiveBayes/ClassificationModel.py
kazuyaujihara/rdkit
06027dcd05674787b61f27ba46ec0d42a6037540
[ "BSD-3-Clause" ]
1,609
2015-01-05T02:41:13.000Z
2022-03-30T21:57:24.000Z
rdkit/ML/NaiveBayes/ClassificationModel.py
kazuyaujihara/rdkit
06027dcd05674787b61f27ba46ec0d42a6037540
[ "BSD-3-Clause" ]
3,412
2015-01-06T12:13:33.000Z
2022-03-31T17:25:41.000Z
rdkit/ML/NaiveBayes/ClassificationModel.py
kazuyaujihara/rdkit
06027dcd05674787b61f27ba46ec0d42a6037540
[ "BSD-3-Clause" ]
811
2015-01-11T03:33:48.000Z
2022-03-28T11:57:49.000Z
# $Id$ # # Copyright (C) 2004-2008 Greg Landrum and Rational Discovery LLC # All Rights Reserved # """ Defines Naive Baysean classification model Based on development in: Chapter 6 of "Machine Learning" by Tom Mitchell """ import numpy from rdkit.ML.Data import Quantize def _getBinId(val, qBounds): bid ...
36.024911
109
0.533735
9d3e347088cde32ff29b272a06cbe7014fd5dcf2
726
py
Python
fixture/session.py
hvolena/python_training
621a9342939054f32129f9e0652a786269f0174b
[ "Apache-2.0" ]
null
null
null
fixture/session.py
hvolena/python_training
621a9342939054f32129f9e0652a786269f0174b
[ "Apache-2.0" ]
null
null
null
fixture/session.py
hvolena/python_training
621a9342939054f32129f9e0652a786269f0174b
[ "Apache-2.0" ]
null
null
null
class SessionHelper: def __init__(self, app): self.app = app def logout(self): wd = self.app.wd wd.find_element_by_link_text("Logout").click() while not wd.find_element_by_name("user"): pass def login(self, username, password): wd = self.app.wd ...
33
67
0.632231
56a27d2a0f9aab5376986b6edfdd24da60a530ba
869
py
Python
first_django_project/first_django_project/urls.py
ArRosid/Django-Article
92bfb1047b734ac1627ab17163d4d077ed0d2c44
[ "MIT" ]
null
null
null
first_django_project/first_django_project/urls.py
ArRosid/Django-Article
92bfb1047b734ac1627ab17163d4d077ed0d2c44
[ "MIT" ]
null
null
null
first_django_project/first_django_project/urls.py
ArRosid/Django-Article
92bfb1047b734ac1627ab17163d4d077ed0d2c44
[ "MIT" ]
null
null
null
"""first_django_project URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home'...
31.035714
77
0.703107
9e0b7a9517a7020a66b30aa03bb6b6883c97425d
6,740
py
Python
src/out/PLDI19evaluation/squeezenet/tensorflow/squeezenet.py
supunab/Lantern
932a031816617d71c46653f3b2245129a6a8a7c8
[ "BSD-3-Clause" ]
158
2018-03-28T21:58:07.000Z
2022-02-22T00:49:46.000Z
src/out/PLDI19evaluation/squeezenet/tensorflow/squeezenet.py
douxiansheng/Lantern
f453de532da638c1f467953b32bbe49a3dedfa45
[ "BSD-3-Clause" ]
35
2018-09-03T21:27:15.000Z
2019-05-11T02:17:49.000Z
src/out/PLDI19evaluation/squeezenet/tensorflow/squeezenet.py
douxiansheng/Lantern
f453de532da638c1f467953b32bbe49a3dedfa45
[ "BSD-3-Clause" ]
15
2018-03-29T06:29:22.000Z
2020-05-20T06:56:03.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow as tf from tensorflow.contrib.layers import conv2d, avg_pool2d, max_pool2d from tensorflow.contrib.layers import batch_norm, l2_regularizer from tensorflow.contrib.framework import add_arg_sco...
40.848485
78
0.59451
c72a3e0eeba605d114269b5f1257605f8211b8cc
1,175
py
Python
kolibri/plugins/device/kolibri_plugin.py
MBKayro/kolibri
0a38a5fb665503cf8f848b2f65938e73bfaa5989
[ "MIT" ]
545
2016-01-19T19:26:55.000Z
2022-03-20T00:13:04.000Z
kolibri/plugins/device/kolibri_plugin.py
MBKayro/kolibri
0a38a5fb665503cf8f848b2f65938e73bfaa5989
[ "MIT" ]
8,329
2016-01-19T19:32:02.000Z
2022-03-31T21:23:12.000Z
kolibri/plugins/device/kolibri_plugin.py
MBKayro/kolibri
0a38a5fb665503cf8f848b2f65938e73bfaa5989
[ "MIT" ]
493
2016-01-19T19:26:48.000Z
2022-03-28T14:35:05.000Z
from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals from kolibri.core.auth.constants.user_kinds import SUPERUSER from kolibri.core.device.utils import get_device_setting from kolibri.core.hooks import NavigationHook from kolibri.core.hooks import RoleBas...
26.704545
75
0.772766
149a40181ae1a97390338f32baa92c4c174ed096
377
py
Python
opentech/public/utils/context_processors.py
stdevteam/opentech.fund
6888dc5aa1a8c60f17629dff03877412275e08a5
[ "BSD-3-Clause" ]
null
null
null
opentech/public/utils/context_processors.py
stdevteam/opentech.fund
6888dc5aa1a8c60f17629dff03877412275e08a5
[ "BSD-3-Clause" ]
null
null
null
opentech/public/utils/context_processors.py
stdevteam/opentech.fund
6888dc5aa1a8c60f17629dff03877412275e08a5
[ "BSD-3-Clause" ]
null
null
null
from opentech.apply.home.models import ApplyHomePage from opentech.public.home.models import HomePage from opentech.public.mailchimp.forms import NewsletterForm def global_vars(request): return { 'APPLY_SITE': ApplyHomePage.objects.first().get_site(), 'PUBLIC_SITE': HomePage.objects.first().get_s...
29
63
0.737401
08c20ee47538fed4491627eaebbbd46ac2b9b0c9
5,877
py
Python
plugins/trigger_operators.py
slaclab/cryoem-pipeline
b3fcfb6072fda64164eaef7681d82fa3838dc05e
[ "MIT" ]
null
null
null
plugins/trigger_operators.py
slaclab/cryoem-pipeline
b3fcfb6072fda64164eaef7681d82fa3838dc05e
[ "MIT" ]
null
null
null
plugins/trigger_operators.py
slaclab/cryoem-pipeline
b3fcfb6072fda64164eaef7681d82fa3838dc05e
[ "MIT" ]
1
2020-12-13T00:00:53.000Z
2020-12-13T00:00:53.000Z
from airflow.plugins_manager import AirflowPlugin from airflow.operators.trigger_dagrun import TriggerDagRunOperator from airflow_multi_dagrun.operators import TriggerMultiDagRunOperator from airflow.exceptions import AirflowException, AirflowSkipException from airflow import settings import contextlib from airfl...
35.835366
161
0.537349
1849732d58598a4fd39cd95f066af6f711120f43
3,612
py
Python
frontend/main.py
Fox520/PaymentGateway
c4c0675b056ac377b135de778069b1c63883b6de
[ "MIT" ]
1
2021-11-23T16:33:39.000Z
2021-11-23T16:33:39.000Z
frontend/main.py
Fox520/PaymentGateway
c4c0675b056ac377b135de778069b1c63883b6de
[ "MIT" ]
null
null
null
frontend/main.py
Fox520/PaymentGateway
c4c0675b056ac377b135de778069b1c63883b6de
[ "MIT" ]
null
null
null
import os import json import webbrowser from kivy.network.urlrequest import UrlRequest from kivy.storage.dictstore import DictStore from kivy.app import App from kivy.properties import StringProperty from kivy.lang import Builder from kivy.uix.screenmanager import ScreenManager, Screen BASE_URL = "https://c73e12ff8ac...
28.21875
86
0.590808
433efa9ec98b5c6296506866da1cdd77611469e4
6,385
py
Python
examples/NAS-Envelopenet-trainingcontainer/evaluate.py
adamjm/katib
41143e8aa3affd0835727df379c38eaf298593cc
[ "Apache-2.0" ]
null
null
null
examples/NAS-Envelopenet-trainingcontainer/evaluate.py
adamjm/katib
41143e8aa3affd0835727df379c38eaf298593cc
[ "Apache-2.0" ]
1
2019-06-14T21:22:35.000Z
2019-06-14T21:22:35.000Z
examples/NAS-Envelopenet-trainingcontainer/evaluate.py
adamjm/katib
41143e8aa3affd0835727df379c38eaf298593cc
[ "Apache-2.0" ]
null
null
null
from datetime import datetime import math import numpy as np import tensorflow as tf import net class Evaluate(object): def __init__(self, arch, config, checkpoint_dir): self.task_config = config self.arch = arch self.checkpoint_dir = checkpoint_dir self.get_task_params() def ...
40.66879
89
0.511198
41b7865f3e1f2aae69df2318bc3af482c604e0e5
3,680
py
Python
bin/Python27/Lib/site-packages/scipy/optimize/tests/test_cobyla.py
lefevre-fraser/openmeta-mms
08f3115e76498df1f8d70641d71f5c52cab4ce5f
[ "MIT" ]
null
null
null
bin/Python27/Lib/site-packages/scipy/optimize/tests/test_cobyla.py
lefevre-fraser/openmeta-mms
08f3115e76498df1f8d70641d71f5c52cab4ce5f
[ "MIT" ]
null
null
null
bin/Python27/Lib/site-packages/scipy/optimize/tests/test_cobyla.py
lefevre-fraser/openmeta-mms
08f3115e76498df1f8d70641d71f5c52cab4ce5f
[ "MIT" ]
1
2020-05-07T11:04:14.000Z
2020-05-07T11:04:14.000Z
from __future__ import division, print_function, absolute_import import math import numpy as np from numpy.testing import assert_allclose, TestCase, run_module_suite, \ assert_ from scipy.optimize import fmin_cobyla, minimize class TestCobyla(TestCase): def setUp(self): self.x0 = [4.9...
30.92437
77
0.533424
8e7a57824055e65e1a88d14c274b24445b020e94
8,028
py
Python
moe/optimal_learning/python/python_version/domain.py
mikepsinn/MOE
fdc2e1318d37c89c54a7b7902c12f8f164f517e8
[ "Apache-2.0" ]
null
null
null
moe/optimal_learning/python/python_version/domain.py
mikepsinn/MOE
fdc2e1318d37c89c54a7b7902c12f8f164f517e8
[ "Apache-2.0" ]
null
null
null
moe/optimal_learning/python/python_version/domain.py
mikepsinn/MOE
fdc2e1318d37c89c54a7b7902c12f8f164f517e8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Various python implementations of interfaces.domain_interface.DomainInterface (e.g., TensorProduct). These are currently used to describe domain limits for optimizers (i.e., implementations of :mod:`moe.optimal_learning.python.interfaces.optimization_interface`). Each domain provides functi...
44.849162
136
0.692576
2401261db541681371f9647577ed258f4458a6d1
1,805
py
Python
zk_shell/tree.py
sellers/zk_shell
5f5972c4362212f97de91a75e44d2a551c7bcd51
[ "Apache-2.0" ]
163
2015-01-24T06:17:34.000Z
2021-12-17T22:58:46.000Z
zk_shell/tree.py
sellers/zk_shell
5f5972c4362212f97de91a75e44d2a551c7bcd51
[ "Apache-2.0" ]
86
2015-01-01T00:22:57.000Z
2022-03-02T14:50:59.000Z
zk_shell/tree.py
sellers/zk_shell
5f5972c4362212f97de91a75e44d2a551c7bcd51
[ "Apache-2.0" ]
32
2015-02-18T17:33:16.000Z
2021-12-28T03:43:45.000Z
""" Async tree builder Example usage: >>> from kazoo.client import KazooClient >>> from zk_shell.tree import Tree >>> zk = KazooClient(hosts) >>> zk.start() >>> gen = PathMap(zk, "/configs").get() >>> str([path for path in gen]) [ 'servers', 'ports', ] >>> zk.stop() "...
22.283951
79
0.539612
6332a649ca12944902f405f9042c9685c6593101
7,376
py
Python
src/ptb/ptb_enas_controller.py
ankdesh/enas
95fa07744440c0ae79f7f7a108ef08ee5099fdca
[ "Apache-2.0" ]
7
2018-05-30T06:44:03.000Z
2021-03-11T03:59:43.000Z
src/ptb/ptb_enas_controller.py
ankdesh/enas
95fa07744440c0ae79f7f7a108ef08ee5099fdca
[ "Apache-2.0" ]
2
2018-11-15T06:31:05.000Z
2020-06-27T03:07:08.000Z
src/ptb/ptb_enas_controller.py
wangshy31/enas
18cfbbf4dbb82b859ee81a40fbc3357da650d6da
[ "Apache-2.0" ]
3
2018-06-28T16:40:12.000Z
2019-11-18T11:42:16.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import sys import os import time import numpy as np import tensorflow as tf from src.utils import get_train_ops from src.common_ops import stack_lstm from tensorflow.python.training import moving_averages c...
34.46729
80
0.656589
2dc9962a101f881a2d46f7c305617a4543c36550
2,350
py
Python
tests/test_html_cleaner.py
theseus-automl/gorgona
a7366d54430caa5a038488432fb93702e1cb83b8
[ "Apache-2.0" ]
1
2021-12-12T10:47:00.000Z
2021-12-12T10:47:00.000Z
tests/test_html_cleaner.py
theseus-automl/gorgona
a7366d54430caa5a038488432fb93702e1cb83b8
[ "Apache-2.0" ]
5
2021-12-12T10:45:04.000Z
2022-01-17T07:51:14.000Z
tests/test_html_cleaner.py
theseus-automl/gorgona
a7366d54430caa5a038488432fb93702e1cb83b8
[ "Apache-2.0" ]
null
null
null
import pytest from gorgona.stages.cleaners import * @pytest.fixture() def setup_html_cleaner() -> HtmlCleaner: html_cleaner = HtmlCleaner( 'html', '', ) return html_cleaner def test_html_cleaner_no_tags(setup_html_cleaner): assert setup_html_cleaner('hello world') == 'hello world' ...
30.921053
107
0.755745
9d328e81362dc90d7245dd8821cae1b316c87583
20,039
py
Python
tests/text/helpers.py
bibinwils/metrics
e1c3fda24f90367803c2b04315ad7c8bced719db
[ "Apache-2.0" ]
4
2021-03-22T09:02:31.000Z
2021-03-23T07:35:39.000Z
tests/text/helpers.py
bibinwils/metrics
e1c3fda24f90367803c2b04315ad7c8bced719db
[ "Apache-2.0" ]
4
2021-06-14T08:40:18.000Z
2021-07-27T20:01:08.000Z
tests/text/helpers.py
bibinwils/metrics
e1c3fda24f90367803c2b04315ad7c8bced719db
[ "Apache-2.0" ]
2
2021-10-16T05:02:43.000Z
2022-02-10T16:01:52.000Z
# Copyright The PyTorch Lightning team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
41.747917
119
0.653975
edb037153683fc5e77e8700b4b9145a7be6758dd
1,467
py
Python
communication/migrations/0023_auto_20161026_1503.py
stewardshiptools/stewardshiptools
ee5d27e7b0d5d4947f34ad02bdf63a06ad0a5c3e
[ "MIT" ]
null
null
null
communication/migrations/0023_auto_20161026_1503.py
stewardshiptools/stewardshiptools
ee5d27e7b0d5d4947f34ad02bdf63a06ad0a5c3e
[ "MIT" ]
11
2020-03-24T15:29:46.000Z
2022-03-11T23:14:48.000Z
communication/migrations/0023_auto_20161026_1503.py
stewardshiptools/stewardshiptools
ee5d27e7b0d5d4947f34ad02bdf63a06ad0a5c3e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models ''' Migration 0023, 0024, and 0025 form 3 parts of custom migration to remove asset inheritance on messageattachment model. Needed a new ID pk field but it had to be added as null=True, calculated (0024) and then ...
32.6
121
0.662577
d7558814c02dcba8aa17a948bc90e92df8c45977
1,468
py
Python
discourse_sso_oidc_bridge/group_processor.py
ThoreKr/discourse-sso-oidc-bridge
bade9fd83142bca335ea1dbb7f7cae2700ffbacb
[ "Apache-2.0" ]
null
null
null
discourse_sso_oidc_bridge/group_processor.py
ThoreKr/discourse-sso-oidc-bridge
bade9fd83142bca335ea1dbb7f7cae2700ffbacb
[ "Apache-2.0" ]
null
null
null
discourse_sso_oidc_bridge/group_processor.py
ThoreKr/discourse-sso-oidc-bridge
bade9fd83142bca335ea1dbb7f7cae2700ffbacb
[ "Apache-2.0" ]
null
null
null
from typing import Dict, List def process_group_mappings( group_mapping_config: Dict[str, dict], sso_attributes: dict, groups: List[str] ): """Processes the groups from the mapping rule config into discourse compatible formats Args: group_mapping_config (Dict[str, dict]): Predefined mapping rules...
34.139535
113
0.588556
82148527ea88e8bef6426be71c8573d8e46af4c8
708
py
Python
waterspout_api/migrations/0040_auto_20210613_1728.py
Water-Systems-Management-UCM/Waterspout
78965f1e53b09f442e278dff72c290ceac22ed60
[ "MIT" ]
1
2020-09-10T20:43:24.000Z
2020-09-10T20:43:24.000Z
waterspout_api/migrations/0040_auto_20210613_1728.py
Water-Systems-Management-UCM/Waterspout
78965f1e53b09f442e278dff72c290ceac22ed60
[ "MIT" ]
72
2020-05-28T17:20:12.000Z
2022-03-28T14:11:40.000Z
waterspout_api/migrations/0040_auto_20210613_1728.py
Water-Systems-Management-UCM/Waterspout
78965f1e53b09f442e278dff72c290ceac22ed60
[ "MIT" ]
null
null
null
# Generated by Django 3.2 on 2021-06-14 00:28 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('waterspout_api', '0039_userprofile_dense_tables'), ] operations = [ migrations.AlterField( model_...
29.5
167
0.649718
514c6fc5e609d67fe70862c3146b02fb9f1e8c9a
7,992
py
Python
build/lib.macosx-10.9-x86_64-3.9/gators/feature_generation/tests/test_is_equal.py
Aditya-Kapadiya/gators
d7c9967e3a8e304a601b6a92ad834d03d3e36338
[ "Apache-2.0" ]
4
2021-10-29T18:20:52.000Z
2022-03-31T22:53:03.000Z
build/lib.macosx-10.9-x86_64-3.9/gators/feature_generation/tests/test_is_equal.py
Aditya-Kapadiya/gators
d7c9967e3a8e304a601b6a92ad834d03d3e36338
[ "Apache-2.0" ]
1
2022-02-21T20:02:16.000Z
2022-02-21T20:02:16.000Z
build/lib.macosx-10.9-x86_64-3.9/gators/feature_generation/tests/test_is_equal.py
Aditya-Kapadiya/gators
d7c9967e3a8e304a601b6a92ad834d03d3e36338
[ "Apache-2.0" ]
5
2021-11-17T20:16:54.000Z
2022-02-21T18:21:02.000Z
# License: Apache-2.0 from gators.feature_generation.is_equal import IsEqual from pandas.testing import assert_frame_equal import pytest import numpy as np import pandas as pd import databricks.koalas as ks ks.set_option('compute.default_index_type', 'distributed-sequence') @pytest.fixture def data(): X = pd.Data...
28.140845
78
0.567067
b74f013921b804f8b9e6548450eaf9285d5c6dde
311
py
Python
users/urls.py
redhat-beyond/roo.me
7d711c1828a8951c7e29be796f9f26ed61e2b683
[ "MIT" ]
7
2021-03-08T18:15:44.000Z
2021-05-24T21:04:24.000Z
users/urls.py
AmitAharoni/roo.me
eb93ed99ab8635543a5e9489893e6718344ddfd9
[ "MIT" ]
232
2021-03-08T15:35:56.000Z
2021-06-06T21:33:10.000Z
users/urls.py
AmitAharoni/roo.me
eb93ed99ab8635543a5e9489893e6718344ddfd9
[ "MIT" ]
7
2021-03-08T13:11:46.000Z
2021-03-22T06:58:39.000Z
from django.urls import path from . import views as user_views urlpatterns = [ path('update/', user_views.update_user, name='update-user'), path('password_change/', user_views.password_change, name='change-password'), path('<int:user_id>/details', user_views.user_details, name='user-details'), ]
31.1
81
0.729904
c21db1d26d92bcf337fcfdab4effa89ce267769c
185
py
Python
pluggie/exceptions.py
local-minimum/pluggie
526944f2741f8c04e9444fcbdbf6460aaf0e6438
[ "MIT" ]
null
null
null
pluggie/exceptions.py
local-minimum/pluggie
526944f2741f8c04e9444fcbdbf6460aaf0e6438
[ "MIT" ]
null
null
null
pluggie/exceptions.py
local-minimum/pluggie
526944f2741f8c04e9444fcbdbf6460aaf0e6438
[ "MIT" ]
null
null
null
class PluggieError(Exception): pass class SignatureError(PluggieError): pass class PluginLoadError(PluggieError): pass class EventTriggerError(PluggieError): pass
12.333333
38
0.751351
9952bd1e8115efe971c6183b42504f9ddc8270fd
979
py
Python
manage.py
christopherjmedlin/blog.christophermedlin.me
b1d1c10ab304a9f31b90b439e9cddd44b173d6a0
[ "MIT" ]
null
null
null
manage.py
christopherjmedlin/blog.christophermedlin.me
b1d1c10ab304a9f31b90b439e9cddd44b173d6a0
[ "MIT" ]
null
null
null
manage.py
christopherjmedlin/blog.christophermedlin.me
b1d1c10ab304a9f31b90b439e9cddd44b173d6a0
[ "MIT" ]
null
null
null
#!/usr/bin/env python from flask_script import Manager import flask_s3 from werkzeug.security import generate_password_hash import getpass import pytest from blog import app, mongo manager = Manager(app) @manager.command def createuser(): username = input("Username: ") pswd = getpass.getpass("Password: ")...
20.829787
74
0.675179
49ccb5147cf6893074c35931d3e70bafbf15d1a7
15,424
py
Python
appengine/monorail/services/chart_svc.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
appengine/monorail/services/chart_svc.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
7
2022-02-15T01:11:37.000Z
2022-03-02T12:46:13.000Z
appengine/monorail/services/chart_svc.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2018 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file or at # https://developers.google.com/open-source/licenses/bsd """A service for querying data for charts. Functions for querying the IssueSnapshot table and ...
37.436893
80
0.676024
9462aea5b80ab2fdc325f56d03b30de3b1e9d0db
66,830
py
Python
features/bert_similarity_between_tweet_and_tweets_user_vectors_feature.py
wantedly/recsys2020-challenge
d9967860cc4767380d28d2ed7af00d467cc6941a
[ "Apache-2.0" ]
35
2020-06-23T05:33:50.000Z
2021-11-22T08:22:42.000Z
features/bert_similarity_between_tweet_and_tweets_user_vectors_feature.py
wantedly/recsys2020-challenge
d9967860cc4767380d28d2ed7af00d467cc6941a
[ "Apache-2.0" ]
15
2020-12-28T05:31:06.000Z
2021-01-22T06:49:28.000Z
features/bert_similarity_between_tweet_and_tweets_user_vectors_feature.py
wantedly/recsys2020-challenge
d9967860cc4767380d28d2ed7af00d467cc6941a
[ "Apache-2.0" ]
2
2020-06-30T10:02:05.000Z
2021-05-22T09:57:19.000Z
from typing import List, Tuple from google.cloud import bigquery, bigquery_storage_v1beta1 import pandas as pd from base import BaseFeature, reduce_mem_usage class BertSimilarityBetweenTweetAndTweetsUserVectorsFeature(BaseFeature): # 使わない def import_columns(self) -> List[str]: ... def make_featu...
41.304079
90
0.712345
80ec3a501b72a2c357bc9f855c07b80e31abed0a
22,072
py
Python
tensorflow_addons/seq2seq/tests/beam_search_decoder_test.py
leondgarse/addons
6c512e1ec49ae14ca61f1bbf0fd3403204ba21e2
[ "Apache-2.0" ]
1,560
2018-11-26T23:57:34.000Z
2022-03-27T10:37:34.000Z
tensorflow_addons/seq2seq/tests/beam_search_decoder_test.py
leondgarse/addons
6c512e1ec49ae14ca61f1bbf0fd3403204ba21e2
[ "Apache-2.0" ]
2,067
2018-11-28T04:40:23.000Z
2022-03-31T11:36:50.000Z
tensorflow_addons/seq2seq/tests/beam_search_decoder_test.py
leondgarse/addons
6c512e1ec49ae14ca61f1bbf0fd3403204ba21e2
[ "Apache-2.0" ]
679
2018-11-27T14:39:25.000Z
2022-03-31T10:09:22.000Z
# Copyright 2017 The TensorFlow 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 applica...
33.34139
88
0.62577
887885085ba4682c5d3c658760961a3c28dba7b2
52,406
py
Python
zerver/lib/message.py
Awawdi/zulip
f2e7b92b024cfec6a9babace8298de9537925347
[ "Apache-2.0" ]
2
2018-09-24T14:12:46.000Z
2018-09-24T14:12:59.000Z
zerver/lib/message.py
adb-web-designs/zulip
1b303e7b2f0271f81265123ad1e7125ed3914d68
[ "Apache-2.0" ]
18
2021-08-14T01:12:30.000Z
2022-03-04T20:28:51.000Z
zerver/lib/message.py
adb-web-designs/zulip
1b303e7b2f0271f81265123ad1e7125ed3914d68
[ "Apache-2.0" ]
1
2020-07-09T23:28:34.000Z
2020-07-09T23:28:34.000Z
import copy import datetime import zlib from dataclasses import dataclass, field from typing import Any, Dict, List, Mapping, Optional, Sequence, Set, Tuple, Union import ahocorasick import orjson from django.conf import settings from django.db import connection from django.db.models import Max, Sum from django.utils....
35.242771
100
0.664122
71e1386266d2484bf5093dd8f1e466dfc0c69ce7
462
py
Python
data/scripts/templates/object/tangible/container/base/shared_base_container.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/tangible/container/base/shared_base_container.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/tangible/container/base/shared_base_container.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Tangible() result.template = "object/tangible/container/base/shared_base_container.iff" result.attribute_template...
27.176471
77
0.733766
c9f2316df3a4602cab86028a4664761a9040d6c1
667
py
Python
lib/aoc/year_2019_day_01.py
Repiphany/AoC
d59badb62b82434bccd757e37d6d5c4d0bbf2838
[ "MIT" ]
null
null
null
lib/aoc/year_2019_day_01.py
Repiphany/AoC
d59badb62b82434bccd757e37d6d5c4d0bbf2838
[ "MIT" ]
null
null
null
lib/aoc/year_2019_day_01.py
Repiphany/AoC
d59badb62b82434bccd757e37d6d5c4d0bbf2838
[ "MIT" ]
1
2019-12-06T19:16:12.000Z
2019-12-06T19:16:12.000Z
#!/usr/bin/env python3 from .input import get_input def fuel(mass): return max(mass // 3 - 2, 0) def fuelr(mass): fr = [fuel(mass)] while fr[-1]: fr.append(fuel(fr[-1])) return sum(fr) def test(args): assert fuel(12) == 2 assert fuel(14) == 2 assert fuel(1969) == 654 assert f...
20.84375
47
0.595202
b74e7a475fa7ff574e5e1429f8f1ebd1c456d878
68
py
Python
processing/backends/__init__.py
Kingjmk/mlfaati
12c0dcbe0389c2c1da0bde80509fb3374955e293
[ "MIT" ]
1
2021-01-04T07:34:34.000Z
2021-01-04T07:34:34.000Z
processing/backends/__init__.py
Kingjmk/mlfaati
12c0dcbe0389c2c1da0bde80509fb3374955e293
[ "MIT" ]
null
null
null
processing/backends/__init__.py
Kingjmk/mlfaati
12c0dcbe0389c2c1da0bde80509fb3374955e293
[ "MIT" ]
null
null
null
""" This module contains processing backends for each file type """
17
59
0.75
9027820a6ca71736928645d1903955f76db01f42
1,995
py
Python
test2.py
blevine37/blarf
8f1d1abb05d72069323d7911f2afb38ad3d9146b
[ "MIT" ]
null
null
null
test2.py
blevine37/blarf
8f1d1abb05d72069323d7911f2afb38ad3d9146b
[ "MIT" ]
null
null
null
test2.py
blevine37/blarf
8f1d1abb05d72069323d7911f2afb38ad3d9146b
[ "MIT" ]
null
null
null
import numpy as np import blarf import os natoms = 5 k = 200 ff = blarf.potential() ff.init_chain(natoms,1.0,1.0,(1.414/1.122),0.1) r = np.zeros(natoms*3) r[3] = 0.2 r[5] = 1.0 r[7] = 1.1 r[8] = 1.0 #3 r[10] = 1.1 r[11] = 1.9 r[13] = 0.9 r[14] = 3.0 # 5 #r[15] = 0.3 #r[16] = 0.9 #r[17] = 4.0 # 6 #r[19] = 1.1 #r[2...
18.472222
73
0.626566
34021945763c42e2a492d05de7d4984bb354e36d
221
py
Python
PyHEADTAIL/trackers/simple_long_tracking.py
fsoubelet/PyHEADTAIL
51cae8845cceb61cc3f140db4ab0eeb68469110f
[ "BSD-3-Clause" ]
null
null
null
PyHEADTAIL/trackers/simple_long_tracking.py
fsoubelet/PyHEADTAIL
51cae8845cceb61cc3f140db4ab0eeb68469110f
[ "BSD-3-Clause" ]
null
null
null
PyHEADTAIL/trackers/simple_long_tracking.py
fsoubelet/PyHEADTAIL
51cae8845cceb61cc3f140db4ab0eeb68469110f
[ "BSD-3-Clause" ]
null
null
null
from .longitudinal_tracking import * from PyHEADTAIL.general.decorators import deprecated @deprecated("--> Use the longitudinal_tracking module instead.\n") def simple_long_tracking(): pass simple_long_tracking()
20.090909
66
0.79638
f029f0ff0d0f555e3d9113675f41decf654add74
2,421
py
Python
nlp_news.py
CoderPaulK/news_nlp
1a74a08727993b8ef3b38a2cc9151bdfd275abff
[ "Apache-2.0" ]
null
null
null
nlp_news.py
CoderPaulK/news_nlp
1a74a08727993b8ef3b38a2cc9151bdfd275abff
[ "Apache-2.0" ]
null
null
null
nlp_news.py
CoderPaulK/news_nlp
1a74a08727993b8ef3b38a2cc9151bdfd275abff
[ "Apache-2.0" ]
null
null
null
import pprint import requests import pickle import pandas as pd import spacy from sklearn.neighbors import NearestNeighbors from tqdm import tqdm from sklearn.cluster import DBSCAN from sklearn.datasets.samples_generator import make_blobs import numpy as np from matplotlib import pyplot as plt import seaborn as sns sn...
27.827586
84
0.670384
49e3198cbd569976172fded57185698c8c8ae7e2
4,001
py
Python
wiserHeatAPIv2/heating_actuator.py
LGO44/wiserHeatAPIv2
dfe66edf21d069764f64842e4218ae39c81701dc
[ "MIT" ]
null
null
null
wiserHeatAPIv2/heating_actuator.py
LGO44/wiserHeatAPIv2
dfe66edf21d069764f64842e4218ae39c81701dc
[ "MIT" ]
null
null
null
wiserHeatAPIv2/heating_actuator.py
LGO44/wiserHeatAPIv2
dfe66edf21d069764f64842e4218ae39c81701dc
[ "MIT" ]
null
null
null
from . import _LOGGER from .device import _WiserDevice from .helpers import _WiserTemperatureFunctions as tf from .rest_controller import _WiserRestController from .const import TEMP_OFF, TEXT_UNKNOWN, WISERHEATINGACTUATOR, WISERDEVICE import inspect class _WiserHeatingActuator(_WiserDevice): """Class represen...
33.90678
106
0.662584
df1d359d4686ef890cadcdc7efbc056ba0abca4a
4,936
py
Python
src/modules/db_operations/operations.py
AndersenLab/CAENDR
ce4cdb74db736db8226ffc90988959b71b0d5ff5
[ "MIT" ]
3
2022-02-09T07:04:37.000Z
2022-03-11T02:46:35.000Z
src/modules/db_operations/operations.py
AndersenLab/CAENDR
ce4cdb74db736db8226ffc90988959b71b0d5ff5
[ "MIT" ]
4
2022-01-28T22:28:08.000Z
2022-02-11T21:47:15.000Z
src/modules/db_operations/operations.py
AndersenLab/CAENDR
ce4cdb74db736db8226ffc90988959b71b0d5ff5
[ "MIT" ]
1
2022-01-11T03:39:02.000Z
2022-01-11T03:39:02.000Z
import os from caendr.services.cloud.postgresql import health_database_status from logzero import logger from caendr.models.error import EnvVarError from caendr.models.sql import WormbaseGene, WormbaseGeneSummary, Strain, Homolog, StrainAnnotatedVariant from caendr.services.sql.db import (drop_tables, ...
41.478992
142
0.725081
bd6e2b32c2f0efc91472f87505948f39c17b04c0
9,949
py
Python
jax/interpreters/sharded_jit.py
davesque/jax
47df7b95c44d27a2bb78636c7642a60cdb622402
[ "ECL-2.0", "Apache-2.0" ]
1
2020-03-12T04:34:46.000Z
2020-03-12T04:34:46.000Z
jax/interpreters/sharded_jit.py
davesque/jax
47df7b95c44d27a2bb78636c7642a60cdb622402
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
jax/interpreters/sharded_jit.py
davesque/jax
47df7b95c44d27a2bb78636c7642a60cdb622402
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2020 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 writing, ...
33.498316
101
0.711026
59c4db74a162570274e849486bee7887be54b18a
62,157
py
Python
libcloud/compute/base.py
gig-tech/libcloud
3c7f83f64ee72252a14ddc1e1f8cac4474a0be4b
[ "Apache-2.0" ]
null
null
null
libcloud/compute/base.py
gig-tech/libcloud
3c7f83f64ee72252a14ddc1e1f8cac4474a0be4b
[ "Apache-2.0" ]
null
null
null
libcloud/compute/base.py
gig-tech/libcloud
3c7f83f64ee72252a14ddc1e1f8cac4474a0be4b
[ "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 use ...
33.707701
79
0.569397