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
b4986e96e1f0b1e90e25754d1b183dee07129893
23,748
py
Python
src/vtra/preprocess/province_roads_access_od_creation.py
GFDRR/vietnam-transport
71f6fc8cb7f1ca7bccb9a29d544869b442e68bfc
[ "MIT" ]
3
2018-07-09T12:15:46.000Z
2020-12-03T07:02:23.000Z
src/vtra/preprocess/province_roads_access_od_creation.py
GFDRR/vietnam-transport
71f6fc8cb7f1ca7bccb9a29d544869b442e68bfc
[ "MIT" ]
1
2019-05-09T21:57:20.000Z
2019-05-09T21:57:20.000Z
src/vtra/preprocess/province_roads_access_od_creation.py
GFDRR/vietnam-transport
71f6fc8cb7f1ca7bccb9a29d544869b442e68bfc
[ "MIT" ]
2
2018-07-23T12:49:21.000Z
2021-06-03T11:00:44.000Z
"""Pre-process accessibility-based provincial OD matrix Purpose ------- Create province scale OD matrices between roads connecting villages to nearest communes: - Net revenue estimates of commune villages - IFPRI crop data at 1km resolution Input data requirements ----------------------- 1. Correct paths to...
45.934236
127
0.677531
0
0
0
0
0
0
0
0
12,472
0.525181
b498ac276e2df68b96a6609f47852d8c76bbc685
2,478
py
Python
codes/train.py
pettod/lyft-kaggle
352e6e54f16622a4fac4e698828c11148ead8c7e
[ "Apache-2.0" ]
null
null
null
codes/train.py
pettod/lyft-kaggle
352e6e54f16622a4fac4e698828c11148ead8c7e
[ "Apache-2.0" ]
null
null
null
codes/train.py
pettod/lyft-kaggle
352e6e54f16622a4fac4e698828c11148ead8c7e
[ "Apache-2.0" ]
null
null
null
import argparse from datetime import datetime import os import torch.nn as nn import torch.optim as optim import torch.optim.lr_scheduler as sched from pytorch_lightning import Trainer from pytorch_lightning.loggers import TensorBoardLogger as tb from module import LyftModule from net import LyftNet from dataset impo...
31.769231
92
0.686441
0
0
0
0
0
0
0
0
330
0.133172
b49a30813a3995f8b132fee3f56f6df5ef37cad1
1,319
py
Python
blackjack/Model/hand.py
TrevorMcDougald/Blackjack
7441064525ef4634a8ad8d09aca971de2d150cec
[ "MIT" ]
null
null
null
blackjack/Model/hand.py
TrevorMcDougald/Blackjack
7441064525ef4634a8ad8d09aca971de2d150cec
[ "MIT" ]
5
2019-07-11T19:49:36.000Z
2019-07-12T19:19:26.000Z
blackjack/Model/hand.py
TrevorMcDougald/Blackjack
7441064525ef4634a8ad8d09aca971de2d150cec
[ "MIT" ]
1
2020-01-29T02:26:26.000Z
2020-01-29T02:26:26.000Z
from Model.deck import Deck class Hand: """ Attributes: _cards: list BlackjackCard name: str """ def __init__(self, name="", *cards): """ Args: name: *cards: """ self._cards = list(cards) self.name = name class Blackjac...
21.274194
62
0.536012
1,285
0.974223
0
0
0
0
0
0
235
0.178165
b49aaea7ec39afb87fb3a52cd84feb0d5ae86507
2,459
py
Python
Examples/example_crysalispro_cuts.py
DanPorter/Dans_Diffaction
74aea3d2b54d841271f22841f405a9a7c6fa1c81
[ "Apache-2.0" ]
22
2018-05-03T13:13:43.000Z
2022-02-28T16:55:45.000Z
Examples/example_crysalispro_cuts.py
DanPorter/Dans_Diffaction
74aea3d2b54d841271f22841f405a9a7c6fa1c81
[ "Apache-2.0" ]
7
2018-05-21T06:01:13.000Z
2022-03-25T10:39:35.000Z
Examples/example_crysalispro_cuts.py
DanPorter/Dans_Diffaction
74aea3d2b54d841271f22841f405a9a7c6fa1c81
[ "Apache-2.0" ]
6
2020-03-08T17:40:50.000Z
2022-02-28T04:49:31.000Z
""" Example Read recirpocal space cuts from CrysAlisPro """ import sys, os import re import numpy as np import matplotlib.pyplot as plt cf = os.path.dirname(__file__) sys.path.insert(0, os.path.join(cf, '..')) import Dans_Diffraction as dif print(dif.version_info()) def read_image(filename, resolution=0.8): ""...
32.786667
115
0.640504
0
0
0
0
0
0
0
0
867
0.352582
b49ac37fe88c794fc2754068fb491f153b63e256
4,339
py
Python
qkeras/qtools/quantized_operators/fused_bn_factory.py
mkettn/qkeras
9ea16325db86ba1dae465c4e3f1ef0575c5f3af5
[ "Apache-2.0" ]
null
null
null
qkeras/qtools/quantized_operators/fused_bn_factory.py
mkettn/qkeras
9ea16325db86ba1dae465c4e3f1ef0575c5f3af5
[ "Apache-2.0" ]
null
null
null
qkeras/qtools/quantized_operators/fused_bn_factory.py
mkettn/qkeras
9ea16325db86ba1dae465c4e3f1ef0575c5f3af5
[ "Apache-2.0" ]
null
null
null
# Lint as: 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
37.730435
80
0.726896
3,184
0.73381
0
0
0
0
0
0
2,465
0.568103
b49b9b4c960812cbbb38751eb57c7f0355124d6a
948
py
Python
discordbot.py
2339145977/discordpy-startup
c69906961514bd7d6d13ff666e9326589f672d81
[ "MIT" ]
null
null
null
discordbot.py
2339145977/discordpy-startup
c69906961514bd7d6d13ff666e9326589f672d81
[ "MIT" ]
null
null
null
discordbot.py
2339145977/discordpy-startup
c69906961514bd7d6d13ff666e9326589f672d81
[ "MIT" ]
null
null
null
from os import getenv import traceback import random import discord PREFIX = "yz " class MyClient(discord.Client): async def on_ready(self): print(f'Logged in as {self.user} (ID: {self.user.id})') print('------') async def on_message(self, message): # we do not want the bot to reply ...
27.085714
72
0.631857
823
0.832996
0
0
0
0
780
0.789474
224
0.226721
b49c01b7f4d4caa36d93674286e808354fe98984
278
py
Python
drogher/package/dhl.py
jbittel/drogher
9a01a19aa6575f82949ef83a3e3b8834807d9cc9
[ "BSD-3-Clause" ]
13
2017-04-24T07:49:30.000Z
2020-09-22T13:13:13.000Z
drogher/package/dhl.py
jbittel/drogher
9a01a19aa6575f82949ef83a3e3b8834807d9cc9
[ "BSD-3-Clause" ]
null
null
null
drogher/package/dhl.py
jbittel/drogher
9a01a19aa6575f82949ef83a3e3b8834807d9cc9
[ "BSD-3-Clause" ]
4
2018-09-08T05:31:57.000Z
2022-02-10T17:42:31.000Z
from .base import Package class DHL(Package): barcode_pattern = r'^\d{10}$' shipper = 'DHL' @property def valid_checksum(self): chars, check_digit = self.tracking_number[:-1], self.tracking_number[-1] return int(chars) % 7 == int(check_digit)
23.166667
80
0.643885
249
0.895683
0
0
170
0.611511
0
0
16
0.057554
b49c513be34b4f17b0d736578157499c3c26fc69
3,878
py
Python
src/process/rpc/OperationProcess.py
jedicontributors/pythondataintegrator
3e877b367ab9b20185476128ec053db41087879f
[ "MIT" ]
null
null
null
src/process/rpc/OperationProcess.py
jedicontributors/pythondataintegrator
3e877b367ab9b20185476128ec053db41087879f
[ "MIT" ]
null
null
null
src/process/rpc/OperationProcess.py
jedicontributors/pythondataintegrator
3e877b367ab9b20185476128ec053db41087879f
[ "MIT" ]
null
null
null
import time import traceback from IocManager import IocManager from datetime import datetime from domain.operation.execution.services.OperationExecution import OperationExecution from domain.operation.services.DataOperationJobService import DataOperationJobService from infrastructor.data.RepositoryProvider import Rep...
45.093023
168
0.691594
3,311
0.853791
0
0
3,271
0.843476
0
0
676
0.174317
b49c9eb3c3eb69f27f9c4ba7b02c96c6ca9089e4
404
py
Python
L_3_dz3.py
Malamut86/2075_Python
a78443d4de741cdca0c67c0b014f23daf10428c0
[ "MIT" ]
null
null
null
L_3_dz3.py
Malamut86/2075_Python
a78443d4de741cdca0c67c0b014f23daf10428c0
[ "MIT" ]
2
2022-03-13T13:10:36.000Z
2022-03-20T12:08:26.000Z
L_3_dz3.py
Malamut86/2075_Python
a78443d4de741cdca0c67c0b014f23daf10428c0
[ "MIT" ]
null
null
null
def thesaurus(*args, bool=True) -> dict: if bool: args = sorted(list(args)) dict_out = {} for words in args: dict_value = dict_out.setdefault(words[0], list()) if words not in dict_value: dict_value.append(words) dict_out[words[0]] = dict_value ...
23.764706
59
0.564356
0
0
0
0
0
0
0
0
52
0.122353
b49d958a46d14b05dba8cf75523bb3f4b5c4c07d
28
py
Python
adbc/commands/__init__.py
aleontiev/apg
c6a10a9b0a576913c63ed4f093e2a0fa7469af87
[ "MIT" ]
2
2020-07-17T16:33:42.000Z
2020-07-21T04:48:38.000Z
adbc/commands/__init__.py
aleontiev/apg
c6a10a9b0a576913c63ed4f093e2a0fa7469af87
[ "MIT" ]
null
null
null
adbc/commands/__init__.py
aleontiev/apg
c6a10a9b0a576913c63ed4f093e2a0fa7469af87
[ "MIT" ]
null
null
null
from .run import RunCommand
14
27
0.821429
0
0
0
0
0
0
0
0
0
0
b49ea8e7151a4c7f8e75d89321810fa271971c0e
430
py
Python
app/management/commands/delete_all_users.py
kantale/OpenBioC
e047e44d06613f30845f3b98b83d2a2c935dff54
[ "BSD-3-Clause" ]
5
2019-09-05T12:48:46.000Z
2020-08-27T12:47:28.000Z
app/management/commands/delete_all_users.py
kantale/OpenBioC
e047e44d06613f30845f3b98b83d2a2c935dff54
[ "BSD-3-Clause" ]
85
2019-07-25T06:45:44.000Z
2020-09-17T12:59:48.000Z
app/management/commands/delete_all_users.py
kantale/OpenBioC
e047e44d06613f30845f3b98b83d2a2c935dff54
[ "BSD-3-Clause" ]
4
2019-09-05T12:48:49.000Z
2019-12-05T13:29:31.000Z
from django.core.management.base import BaseCommand from django.conf import settings from django.contrib.auth.models import User from ...models import OBC_user class Command(BaseCommand): help = 'Delete all users.' def handle(self, *args, **options): print (User.objects.all().delete()) print...
25.294118
51
0.686047
266
0.618605
0
0
0
0
0
0
59
0.137209
b4a37dfcf3562862645afaf93f9f77b2926dd541
12,886
py
Python
robonet/video_prediction/models/deterministic_generator.py
russellmendonca/RoboNet
de30fa069dacb2888e62bd239e7a3471ea3aaa9d
[ "MIT" ]
140
2019-10-25T03:05:04.000Z
2022-03-07T17:41:56.000Z
robonet/video_prediction/models/deterministic_generator.py
russellmendonca/RoboNet
de30fa069dacb2888e62bd239e7a3471ea3aaa9d
[ "MIT" ]
9
2019-12-22T20:52:47.000Z
2022-02-22T07:56:43.000Z
robonet/video_prediction/models/deterministic_generator.py
russellmendonca/RoboNet
de30fa069dacb2888e62bd239e7a3471ea3aaa9d
[ "MIT" ]
26
2019-10-21T04:49:55.000Z
2021-09-17T15:50:17.000Z
""" Boiled down version of SAVP model from https://github.com/alexlee-gk/video_prediction """ from robonet.video_prediction.models.base_model import BaseModel from robonet.video_prediction.utils import tf_utils import tensorflow as tf from collections import OrderedDict from robonet.video_prediction import losses from ...
57.526786
155
0.619122
11,414
0.885767
0
0
0
0
0
0
1,901
0.147524
b4a3a57a382cc1afa9ce35172dc42125af270306
2,145
py
Python
utils/boilerplate/test_elephant.py
cfginn/sap-simulation-package
73314e5380cec5c61a9fe5ff5fbafa25b9e2beac
[ "MIT" ]
null
null
null
utils/boilerplate/test_elephant.py
cfginn/sap-simulation-package
73314e5380cec5c61a9fe5ff5fbafa25b9e2beac
[ "MIT" ]
null
null
null
utils/boilerplate/test_elephant.py
cfginn/sap-simulation-package
73314e5380cec5c61a9fe5ff5fbafa25b9e2beac
[ "MIT" ]
null
null
null
import unittest from pysapets.elephant import Elephant from pysapets.animal import Animal import pysapets.constants as constants from unittest.mock import patch from io import StringIO from copy import deepcopy class ElephantTest(unittest.TestCase): def setUp(self): self.elephant = Elephant() self.friends ...
32.014925
97
0.748252
1,915
0.892774
0
0
0
0
0
0
534
0.248951
b4a4e97414c6b6c88561b6464b26eaeee459ebc6
6,013
py
Python
checkproject/case.py
perror/checkproject
9321470164e010778d32e24dc77c0b28eccd9429
[ "BSD-3-Clause" ]
null
null
null
checkproject/case.py
perror/checkproject
9321470164e010778d32e24dc77c0b28eccd9429
[ "BSD-3-Clause" ]
null
null
null
checkproject/case.py
perror/checkproject
9321470164e010778d32e24dc77c0b28eccd9429
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 # Checkcase class implementation. """Checkcase class implementation. There is three kinds of ways to fail a check: - Warning: Generate a warning message but do not count as an error. - Error: Generate an error message and count as an error. - Failure: Generate a failure message and stop the run...
35.370588
78
0.640113
5,667
0.942458
0
0
0
0
0
0
4,205
0.699318
b4a5bbf08a7b51f662f40c48b225c0d4fcbb721e
8,200
py
Python
models/nerf_net.py
peihaowang/nerf-pytorch
24c11a42d65c381150d2bb6caa6d160920d6cae7
[ "MIT" ]
23
2021-02-03T07:59:22.000Z
2022-03-28T07:13:45.000Z
models/nerf_net.py
peihaowang/nerf-pytorch
24c11a42d65c381150d2bb6caa6d160920d6cae7
[ "MIT" ]
null
null
null
models/nerf_net.py
peihaowang/nerf-pytorch
24c11a42d65c381150d2bb6caa6d160920d6cae7
[ "MIT" ]
4
2021-12-06T12:18:44.000Z
2022-03-29T16:08:12.000Z
import os, sys import numpy as np import imageio import json import random import time import torch import torch.nn as nn import torch.nn.functional as F from torch.utils.tensorboard import SummaryWriter from tqdm import tqdm, trange import matplotlib.pyplot as plt from models.sampler import StratifiedSampler, Import...
42.051282
146
0.617805
7,756
0.945854
0
0
0
0
0
0
2,415
0.294512
b4a6549b47a6935e2adc560ad5318ae84b5054b8
113
py
Python
src/base_unittest.py
fekblom/critic
a6b60c9053e13d4c878d50531860d7389568626d
[ "Apache-2.0" ]
216
2015-01-05T12:48:10.000Z
2022-03-08T00:12:23.000Z
src/base_unittest.py
fekblom/critic
a6b60c9053e13d4c878d50531860d7389568626d
[ "Apache-2.0" ]
55
2015-02-28T12:10:26.000Z
2020-11-18T17:45:16.000Z
src/base_unittest.py
fekblom/critic
a6b60c9053e13d4c878d50531860d7389568626d
[ "Apache-2.0" ]
34
2015-05-02T15:15:10.000Z
2020-06-15T19:20:37.000Z
def independence(): # Simply check that base can be imported. import base print "independence: ok"
16.142857
45
0.672566
0
0
0
0
0
0
0
0
59
0.522124
b4a65d97b1e73201ba7a61c0189b55eeb9aa09c5
1,970
py
Python
code/data_wash.py
ylf2002/lol
476bea227227434fc19c012047243afbeab9d099
[ "MIT" ]
1
2021-05-26T03:03:33.000Z
2021-05-26T03:03:33.000Z
code/data_wash.py
ylf2002/lol
476bea227227434fc19c012047243afbeab9d099
[ "MIT" ]
null
null
null
code/data_wash.py
ylf2002/lol
476bea227227434fc19c012047243afbeab9d099
[ "MIT" ]
null
null
null
####################################### # School of Software Technology # # Dalian University of Technology # # yang lifan # # 2862506026@qq.com # ####################################### import numpy as np import pandas as pd df = pd.read_excel(r"lol\data\f...
35.178571
92
0.561421
0
0
0
0
0
0
0
0
1,173
0.499149
b4a68eef0211ea8367075b0a591513830e5f31fa
1,116
py
Python
development/models/layers/mesh_conv.py
atomicsulfate/meshcnn-4-cadseg
c0d91ec593293cb58eec422556d1322a3b4f6183
[ "MIT" ]
7
2021-04-07T06:31:58.000Z
2022-01-27T09:49:51.000Z
development/models/layers/mesh_conv.py
atomicsulfate/meshcnn-4-cadseg
c0d91ec593293cb58eec422556d1322a3b4f6183
[ "MIT" ]
null
null
null
development/models/layers/mesh_conv.py
atomicsulfate/meshcnn-4-cadseg
c0d91ec593293cb58eec422556d1322a3b4f6183
[ "MIT" ]
2
2021-05-19T03:39:04.000Z
2021-08-12T08:20:19.000Z
import torch from meshcnn.models.layers import mesh_conv class MeshConv(mesh_conv.MeshConv): def create_GeMM(self, x, Gi): Gishape = Gi.shape # pad the first row of every sample in batch with zeros padding = torch.zeros((x.shape[0], x.shape[1], 1), requires_grad=True, device=x.device) ...
34.875
95
0.49552
1,058
0.948029
0
0
0
0
0
0
174
0.155914
b4a7840aed45d076df5f2476093d1ece342ead3d
3,389
py
Python
miossl/schedulers.py
miossl/miossl
cf1d6e5375803e46c74d361ae650403f70fc2b4c
[ "Apache-2.0" ]
null
null
null
miossl/schedulers.py
miossl/miossl
cf1d6e5375803e46c74d361ae650403f70fc2b4c
[ "Apache-2.0" ]
null
null
null
miossl/schedulers.py
miossl/miossl
cf1d6e5375803e46c74d361ae650403f70fc2b4c
[ "Apache-2.0" ]
null
null
null
import math import warnings from typing import List from torch.optim import Optimizer from torch.optim.lr_scheduler import _LRScheduler class LinearWarmupCosineAnnealingLR(_LRScheduler): def __init__( self, optimizer: Optimizer, warmup_epochs: int, max_epochs: int, warmup_...
39.406977
119
0.588374
3,250
0.958985
0
0
0
0
0
0
731
0.215698
b4a7ca4b7618be6bc620a7d348026e8218320c74
4,305
py
Python
compiler/lexer/lexer.py
KrishnaKanth1729/FireScript
90c42163bfabff3b4e105f337f39da1f48dc4f3a
[ "MIT" ]
null
null
null
compiler/lexer/lexer.py
KrishnaKanth1729/FireScript
90c42163bfabff3b4e105f337f39da1f48dc4f3a
[ "MIT" ]
null
null
null
compiler/lexer/lexer.py
KrishnaKanth1729/FireScript
90c42163bfabff3b4e105f337f39da1f48dc4f3a
[ "MIT" ]
null
null
null
from typing import Tuple from compiler.errors.errors import FEOLError, FParsingError, FEOFError from compiler.lexer.tokens import * from compiler.lexer.readers import Reader class Lexer: def __init__(self, reader: Reader): self.reader = reader def lex_identifier(self) -> str: """Grab an iden...
35.286885
83
0.523577
4,127
0.958653
0
0
0
0
0
0
389
0.09036
b4a7d54ebf43275a91b1af9ae00ff9bd58753690
118
py
Python
dataservice/api/outcome/__init__.py
ConnorBarnhill/kf-api-dataservice
547df467a307788882469a25c947a14965a26336
[ "Apache-2.0" ]
6
2018-01-25T13:49:24.000Z
2020-03-07T16:25:09.000Z
dataservice/api/outcome/__init__.py
ConnorBarnhill/kf-api-dataservice
547df467a307788882469a25c947a14965a26336
[ "Apache-2.0" ]
369
2018-01-17T15:22:18.000Z
2022-03-10T19:14:56.000Z
dataservice/api/outcome/__init__.py
ConnorBarnhill/kf-api-dataservice
547df467a307788882469a25c947a14965a26336
[ "Apache-2.0" ]
3
2018-04-11T14:18:37.000Z
2018-10-31T19:09:48.000Z
from dataservice.api.outcome.resources import OutcomeAPI from dataservice.api.outcome.resources import OutcomeListAPI
39.333333
60
0.881356
0
0
0
0
0
0
0
0
0
0
b4a89b047d9526903b1666439bd632bebb9235df
36,093
py
Python
src/aceinna/devices/openrtk/uart_provider.py
xhaidong/python-openimu
9cd20ed61f62d0abd964e37700972bc97e3d0e8c
[ "Apache-2.0" ]
null
null
null
src/aceinna/devices/openrtk/uart_provider.py
xhaidong/python-openimu
9cd20ed61f62d0abd964e37700972bc97e3d0e8c
[ "Apache-2.0" ]
null
null
null
src/aceinna/devices/openrtk/uart_provider.py
xhaidong/python-openimu
9cd20ed61f62d0abd964e37700972bc97e3d0e8c
[ "Apache-2.0" ]
null
null
null
import os import time import json import datetime import threading import math import re import collections import serial import serial.tools.list_ports from .ntrip_client import NTRIPClient from ...framework.utils import ( helper, resource ) from ...framework.context import APP_CONTEXT from ..base.provider_base im...
38.851453
131
0.506469
35,199
0.975231
6,707
0.185826
6,857
0.189981
0
0
7,021
0.194525
b4ab5336f243e3a61cf46c03fff4d5667a06f2b8
2,250
py
Python
src/77. Combinations.py
wisesky/LeetCode-Practice
65549f72c565d9f11641c86d6cef9c7988805817
[ "MIT" ]
null
null
null
src/77. Combinations.py
wisesky/LeetCode-Practice
65549f72c565d9f11641c86d6cef9c7988805817
[ "MIT" ]
null
null
null
src/77. Combinations.py
wisesky/LeetCode-Practice
65549f72c565d9f11641c86d6cef9c7988805817
[ "MIT" ]
null
null
null
from typing import List from itertools import product import random class Solution: def combine(self, n: int, k: int) -> List[List[int]]: # s1 inmitate std practice # nums = list(range(1,n+1)) # res = self.combinations(nums, k) # return list(res) # s2 DFS # nums = l...
28.125
86
0.450667
2,051
0.911556
242
0.107556
0
0
0
0
605
0.268889
b4ae6154e286558196a78ebd191992f0143763b1
4,082
py
Python
src/object_detector.py
jaswanthbjk/BCDC-Net
a83b7bc31e53ab89d9025fd6b7e3d45c9dbd4f4f
[ "MIT" ]
null
null
null
src/object_detector.py
jaswanthbjk/BCDC-Net
a83b7bc31e53ab89d9025fd6b7e3d45c9dbd4f4f
[ "MIT" ]
null
null
null
src/object_detector.py
jaswanthbjk/BCDC-Net
a83b7bc31e53ab89d9025fd6b7e3d45c9dbd4f4f
[ "MIT" ]
null
null
null
import cv2 import numpy as np class Image_Detector: """ Detector class for performing 1) resizing to required image size 2) Perform inference on a new image using the trained network Args: label_dict: Dictionary of class_id mapped to class_names frozen_graph: Tensorflow frozen graph of...
41.232323
78
0.566144
4,049
0.991916
0
0
0
0
0
0
1,179
0.288829
b4b08a6e22243f7c828aaf3dc42a0edf0a5971a8
407
py
Python
embasp/specializations/idlv/idlv_minimal_models.py
MikeCoder96/EmbASP-Python
60898633db9fa3786989bfe7b4c77c5381315e7a
[ "MIT" ]
1
2020-03-28T14:28:40.000Z
2020-03-28T14:28:40.000Z
embasp/specializations/idlv/idlv_minimal_models.py
MikeCoder96/EmbASP-Python
60898633db9fa3786989bfe7b4c77c5381315e7a
[ "MIT" ]
null
null
null
embasp/specializations/idlv/idlv_minimal_models.py
MikeCoder96/EmbASP-Python
60898633db9fa3786989bfe7b4c77c5381315e7a
[ "MIT" ]
5
2020-03-29T15:48:05.000Z
2021-09-07T22:05:04.000Z
from ...languages.datalog.minimal_models import MinimalModels from parsers.datalog.datalog_solvers_parser import DatalogSolversParser class IDLVMinimalModels(MinimalModels): """Represents IDLV's minimal models.""" def __init__(self, out, err=None): super(IDLVMinimalModels, self).__init__(out, err) ...
31.307692
71
0.759214
270
0.663391
0
0
0
0
0
0
39
0.095823
b4b108ba267b965113bd6553053c7e28217a887f
381
py
Python
py/contiguous-array.py
ckclark/leetcode
844c6f18d06dcb397db76436e5f4b8ddcb1beddc
[ "Apache-2.0" ]
null
null
null
py/contiguous-array.py
ckclark/leetcode
844c6f18d06dcb397db76436e5f4b8ddcb1beddc
[ "Apache-2.0" ]
null
null
null
py/contiguous-array.py
ckclark/leetcode
844c6f18d06dcb397db76436e5f4b8ddcb1beddc
[ "Apache-2.0" ]
null
null
null
class Solution(object): def findMaxLength(self, nums): """ :type nums: List[int] :rtype: int """ pos = {0: -1} v = 0 ans = 0 for i, n in enumerate(nums): v += n * 2 - 1 if v in pos: ans = max(ans, i - pos[v]) ...
22.411765
42
0.370079
380
0.997375
0
0
0
0
0
0
65
0.170604
b4b1e6c3082e6ef4193d783b860478fded91a496
1,548
py
Python
src/test/rdflib/__init__.py
sffjunkie/mogul
1634fd3e630dd27e7d875cbd2f053e97eaa1da6f
[ "Apache-2.0" ]
null
null
null
src/test/rdflib/__init__.py
sffjunkie/mogul
1634fd3e630dd27e7d875cbd2f053e97eaa1da6f
[ "Apache-2.0" ]
null
null
null
src/test/rdflib/__init__.py
sffjunkie/mogul
1634fd3e630dd27e7d875cbd2f053e97eaa1da6f
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2009-2014 Simon Kennedy <sffjunkie+code@gmail.com> # # 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 a...
30.96
98
0.709948
0
0
0
0
0
0
0
0
779
0.50323
b4b219e46b871a781176af732787b6b6cfc80947
4,753
py
Python
ChiEngProj.py
meson200/ChiEngProj
9661f3d4ce66ddfc2b6e0c36a64bec67a31ef5aa
[ "MIT" ]
null
null
null
ChiEngProj.py
meson200/ChiEngProj
9661f3d4ce66ddfc2b6e0c36a64bec67a31ef5aa
[ "MIT" ]
null
null
null
ChiEngProj.py
meson200/ChiEngProj
9661f3d4ce66ddfc2b6e0c36a64bec67a31ef5aa
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Oct 29 23:25:47 2015 Data incubator challenge question "predicting power usage for new home owners" version 1.0 based on 2010 usage and weather data in Chicago @author: Sangkyu Lee """ import pandas as pd import numpy as np import requests import json import calendar from g...
42.4375
115
0.723122
0
0
0
0
0
0
0
0
1,785
0.375552
b4b3d80e55a5aa21605c46650fbb8fb3c8a414dc
17,666
py
Python
dotastats/models.py
romanalexander/opendota
e0ad79db9b425055a5a3ed40be793ddfb082ecd8
[ "MIT" ]
14
2016-08-31T15:21:59.000Z
2021-03-24T07:11:07.000Z
dotastats/models.py
romanalexander/opendota
e0ad79db9b425055a5a3ed40be793ddfb082ecd8
[ "MIT" ]
1
2017-09-07T01:13:49.000Z
2017-09-07T01:13:49.000Z
dotastats/models.py
romanalexander/opendota
e0ad79db9b425055a5a3ed40be793ddfb082ecd8
[ "MIT" ]
6
2016-09-06T04:45:28.000Z
2019-07-19T17:13:41.000Z
from datetime import datetime from datetime import timedelta from django.db import models from django.db.models import Q from django.core import serializers from django.core.exceptions import ObjectDoesNotExist from django.conf import settings from django.utils.timezone import get_current_timezone from django.utils imp...
40.518349
185
0.657874
15,444
0.874222
0
0
7,570
0.428507
0
0
5,074
0.287218
b4b498934bcc4f96ba6a32615a180933e174d2c4
1,697
py
Python
setup.py
isabella232/resync
6e9ddfa83087a0c122f72a6cc375c490f758b016
[ "Apache-2.0" ]
1
2016-11-30T18:08:02.000Z
2016-11-30T18:08:02.000Z
setup.py
EHRI/resync
6e9ddfa83087a0c122f72a6cc375c490f758b016
[ "Apache-2.0" ]
1
2021-06-22T08:24:40.000Z
2021-06-22T08:24:40.000Z
setup.py
isabella232/resync
6e9ddfa83087a0c122f72a6cc375c490f758b016
[ "Apache-2.0" ]
1
2021-06-22T08:22:25.000Z
2021-06-22T08:22:25.000Z
from setuptools import setup # setuptools used instead of distutils.core so that # dependencies can be handled automatically # Extract version number from resync/_version.py. Here we # are very strict about the format of the version string # as an extra sanity check. (Thanks for comments in # http://stackoverflow.com/...
39.465116
95
0.64231
0
0
0
0
0
0
0
0
1,095
0.645256
b4b57c305f668f559a512cca575b3c48c7b7230f
2,966
py
Python
tests/test_config.py
ARMmbed/snippet
e186338ceeca8727b1dc0843f22c5cc486c00045
[ "Apache-2.0" ]
4
2018-11-09T13:51:07.000Z
2022-03-02T08:16:16.000Z
tests/test_config.py
ARMmbed/snippet
e186338ceeca8727b1dc0843f22c5cc486c00045
[ "Apache-2.0" ]
2
2020-04-09T07:38:44.000Z
2020-04-09T07:49:32.000Z
tests/test_config.py
ARMmbed/snippet
e186338ceeca8727b1dc0843f22c5cc486c00045
[ "Apache-2.0" ]
15
2019-02-03T12:10:44.000Z
2022-03-02T20:40:32.000Z
# # Copyright (C) 2020 Arm Mbed. All rights reserved. # SPDX-License-Identifier: Apache-2.0 # import os import shutil import filecmp import subprocess import sys import textwrap import unittest from snippet import config as snippet_config from tests import tmp_test_dir from tests import sample_input_dir class Test(...
29.366337
96
0.567094
2,656
0.895482
0
0
1,115
0.375927
0
0
914
0.308159
b4b6b4138ca66bccd63341d93918ed34f71c9d55
6,705
py
Python
Train.py
lythings/FaceEmotionCamera
430545201a2ea2d1423ed5509d882f00f9d7dba6
[ "MIT" ]
null
null
null
Train.py
lythings/FaceEmotionCamera
430545201a2ea2d1423ed5509d882f00f9d7dba6
[ "MIT" ]
null
null
null
Train.py
lythings/FaceEmotionCamera
430545201a2ea2d1423ed5509d882f00f9d7dba6
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import time import torch import torch.nn as nn import torch.optim as optim import torchvision from tqdm import tqdm import matplotlib.pyplot as plt class DataSet(torch.utils.data.Dataset): def __init__(self, dataPath, transform=None): self.dataset = pd.read_csv(dataPat...
43.258065
107
0.579717
1,149
0.162817
0
0
0
0
0
0
1,325
0.187757
b4b770d170dc7ddd7d1fdf77ff1f8640146578d6
625
py
Python
readimc/_imc_file.py
BodenmillerGroup/readimc
d46a3cc0cbae973f21477daa1c57f55b140fa1e3
[ "MIT" ]
null
null
null
readimc/_imc_file.py
BodenmillerGroup/readimc
d46a3cc0cbae973f21477daa1c57f55b140fa1e3
[ "MIT" ]
5
2021-11-01T13:53:10.000Z
2022-03-10T16:34:43.000Z
readimc/_imc_file.py
BodenmillerGroup/readimc
d46a3cc0cbae973f21477daa1c57f55b140fa1e3
[ "MIT" ]
null
null
null
import numpy as np from abc import ABC, abstractmethod from pathlib import Path class IMCFile(ABC): """Shared IMC file interface""" def __init__(self, path: Path) -> None: super().__init__() self._path = Path(path) @property def path(self) -> Path: """Path to the IMC file"""...
23.148148
69
0.6112
541
0.8656
0
0
370
0.592
0
0
214
0.3424
b4b8ba2e649969fc6bb6f38a691b8170998175d9
1,579
py
Python
behaviour-analysis-pipeline.py
zhen-lab/behaviour-analysis
14cddaa342ad04538428faba1f91a4f34ab7b1e2
[ "MIT" ]
null
null
null
behaviour-analysis-pipeline.py
zhen-lab/behaviour-analysis
14cddaa342ad04538428faba1f91a4f34ab7b1e2
[ "MIT" ]
7
2020-02-07T14:16:48.000Z
2020-02-25T20:43:03.000Z
behaviour-analysis-pipeline.py
zhen-lab/behaviour-analysis
14cddaa342ad04538428faba1f91a4f34ab7b1e2
[ "MIT" ]
null
null
null
import cv2 import glob import os import shutil from tierpsy.processing.processMultipleFilesFun import processMultipleFilesFun from tierpsy.summary.collect import calculate_summaries path = './data/jpeg-30s/' img_extension = "*.jpg" fps = 10 masked_video_dir = path + 'MaskedVideos' results_dir = path + 'Results' parame...
26.762712
173
0.721343
0
0
0
0
0
0
0
0
375
0.237492
b4ba681dc4c92ddb5d2f438ede0c482768226c4a
16,306
py
Python
dracoon/groups.py
Quirinwierer/dracoon-python-api
7fad8cdb95069fb80069e76c740547f3ad02b910
[ "Apache-2.0" ]
3
2020-10-05T14:34:46.000Z
2020-11-27T07:44:57.000Z
dracoon/groups.py
Quirinwierer/dracoon-python-api
7fad8cdb95069fb80069e76c740547f3ad02b910
[ "Apache-2.0" ]
1
2022-02-15T16:01:12.000Z
2022-02-15T16:01:12.000Z
dracoon/groups.py
Quirinwierer/dracoon-python-api
7fad8cdb95069fb80069e76c740547f3ad02b910
[ "Apache-2.0" ]
1
2021-03-04T08:16:07.000Z
2021-03-04T08:16:07.000Z
""" Async DRACOON users adapter based on httpx and pydantic V1.0.0 (c) Octavio Simone, November 2021 Collection of DRACOON API calls for user management Documentation: https://dracoon.team/api/swagger-ui/index.html?configUrl=/api/spec_v4/swagger-config#/groups Please note: maximum 500 items are returned in GET reque...
35.680525
170
0.631976
11,942
0.732368
0
0
13,123
0.804796
9,852
0.604195
3,695
0.226604
b4bb509664e64b4c97929d6b7c30c8a2ec08f3e2
1,758
py
Python
higra/accumulator/graph_accumulator.py
deisemaia/Higra
82cb78b606a383f3961faa882457a9a987f802e0
[ "CECILL-B" ]
64
2019-08-18T19:23:23.000Z
2022-03-21T04:15:04.000Z
higra/accumulator/graph_accumulator.py
deisemaia/Higra
82cb78b606a383f3961faa882457a9a987f802e0
[ "CECILL-B" ]
120
2019-08-16T09:10:35.000Z
2022-03-17T09:42:58.000Z
higra/accumulator/graph_accumulator.py
deisemaia/Higra
82cb78b606a383f3961faa882457a9a987f802e0
[ "CECILL-B" ]
12
2019-10-04T07:35:55.000Z
2021-01-10T19:59:11.000Z
############################################################################ # Copyright ESIEE Paris (2018) # # # # Contributor(s) : Benjamin Perret # # ...
43.95
81
0.521615
0
0
0
0
0
0
0
0
1,401
0.796928
b4bd67bdd7932ab494ee265fcb7f8858ae2f0b83
48
py
Python
tests/__init__.py
konradical/python_boilerplate
726bce3729f2263b43bc4acc39549e4179a257b3
[ "MIT" ]
4
2021-09-16T15:51:33.000Z
2022-02-22T01:49:38.000Z
tests/__init__.py
konradical/python_boilerplate
726bce3729f2263b43bc4acc39549e4179a257b3
[ "MIT" ]
4
2021-03-30T13:39:29.000Z
2021-09-22T19:12:55.000Z
tests/__init__.py
konradical/python_boilerplate
726bce3729f2263b43bc4acc39549e4179a257b3
[ "MIT" ]
null
null
null
"""Unit test package for python_boilerplate."""
24
47
0.75
0
0
0
0
0
0
0
0
47
0.979167
b4bee4983a1e8f4098187f57c27bfb93f46aeb4b
338
py
Python
src/addongen/src/addongen/__object__.py
KAIYOHUGO/addon-gen
65c7db176bdef8c8746eb6db50b684f8cce23bd6
[ "MIT" ]
null
null
null
src/addongen/src/addongen/__object__.py
KAIYOHUGO/addon-gen
65c7db176bdef8c8746eb6db50b684f8cce23bd6
[ "MIT" ]
null
null
null
src/addongen/src/addongen/__object__.py
KAIYOHUGO/addon-gen
65c7db176bdef8c8746eb6db50b684f8cce23bd6
[ "MIT" ]
null
null
null
class component: __type__ = str() data = object() class query: __type__ = str() query_id = int() class itemStack: __identifier__ = str() __type__ = str() count = str() item = str() class block: __identifier__ = str() __type__ = str() block_position = object() tickin...
14.695652
29
0.591716
328
0.970414
0
0
0
0
0
0
0
0
b4c08a0ea77bdace7128fe675e8b04ad49fff756
171
py
Python
py/ml/main/main.py
deadwind4/gumiho
672907d2f6e585c0042a5425dd1d6c55cd58af14
[ "MIT" ]
2
2019-06-03T12:09:46.000Z
2019-06-03T12:09:50.000Z
py/ml/main/main.py
deadwind4/gumiho
672907d2f6e585c0042a5425dd1d6c55cd58af14
[ "MIT" ]
12
2021-03-19T01:53:24.000Z
2022-03-15T02:26:33.000Z
py/ml/main/main.py
deadwind4/gumiho
672907d2f6e585c0042a5425dd1d6c55cd58af14
[ "MIT" ]
null
null
null
import torch import re import logging logging.basicConfig(level=logging.DEBUG) x = torch.eye(3) print(x) r=re.match('sys_apply', 'sys_apply') print(r) logging.debug("a")
15.545455
40
0.748538
0
0
0
0
0
0
0
0
25
0.146199
b4c15794d223dfbfa08064e0cd66ab6569b6d28b
3,353
py
Python
tests/attr/core/strategies/test_margin_sampling.py
nocotan/orakl
b524bc311f008b7ac46f5c289e4cc86322f4c5e3
[ "Apache-2.0" ]
null
null
null
tests/attr/core/strategies/test_margin_sampling.py
nocotan/orakl
b524bc311f008b7ac46f5c289e4cc86322f4c5e3
[ "Apache-2.0" ]
null
null
null
tests/attr/core/strategies/test_margin_sampling.py
nocotan/orakl
b524bc311f008b7ac46f5c289e4cc86322f4c5e3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import numpy as np import tensorflow as tf from orakl.attr import MarginSampling from ...helpers.utils import BaseTest class Test(BaseTest): def test_call_with_empty_data_pool(self): ms = MarginSampling() model = tf.keras.Model() with self.assertRaises(AssertionEr...
31.632075
71
0.532061
3,206
0.956159
0
0
0
0
0
0
442
0.131822
b4c44cfa861a3cb2f7399a87693dea11f5c7ba5f
481
py
Python
search_service/models/base.py
verdan/amundsensearchlibrary
ca57770d82f7956339376655aaae736870671a66
[ "Apache-2.0" ]
null
null
null
search_service/models/base.py
verdan/amundsensearchlibrary
ca57770d82f7956339376655aaae736870671a66
[ "Apache-2.0" ]
null
null
null
search_service/models/base.py
verdan/amundsensearchlibrary
ca57770d82f7956339376655aaae736870671a66
[ "Apache-2.0" ]
null
null
null
from abc import ABCMeta, abstractmethod from typing import Set class Base(metaclass=ABCMeta): """ A base class for ES model """ @abstractmethod def get_id(cls) -> str: # return a document id in ES pass @abstractmethod def get_attrs(cls) -> Set: # return a set of a...
19.24
50
0.609148
415
0.862786
0
0
321
0.66736
0
0
147
0.305613
b4c5a0efbd3a143079b5efd4a1992af1f5fc5e31
13,196
py
Python
openpnm/models/physics/diffusive_conductance.py
edgargmartinez/OpenPNM
c68745993b3e9895f53938164a9cf6305500748e
[ "MIT" ]
3
2019-07-17T01:35:09.000Z
2021-05-08T02:03:35.000Z
openpnm/models/physics/diffusive_conductance.py
edgargmartinez/OpenPNM
c68745993b3e9895f53938164a9cf6305500748e
[ "MIT" ]
null
null
null
openpnm/models/physics/diffusive_conductance.py
edgargmartinez/OpenPNM
c68745993b3e9895f53938164a9cf6305500748e
[ "MIT" ]
null
null
null
r""" .. autofunction:: openpnm.models.physics.diffusive_conductance.ordinary_diffusion .. autofunction:: openpnm.models.physics.diffusive_conductance.taylor_aris_diffusion .. autofunction:: openpnm.models.physics.diffusive_conductance.generic_conductance """ import scipy as _sp def ordinary_diffusion(target, ...
37.91954
84
0.646863
0
0
0
0
0
0
0
0
7,607
0.576463
b4c5e19a5fb4217eaf5c3e579db4be69866e0425
2,281
py
Python
app/caffeine.py
pknn1/radii
29a55161e283e972545f2fa6ab86eb06162aeb8e
[ "MIT" ]
null
null
null
app/caffeine.py
pknn1/radii
29a55161e283e972545f2fa6ab86eb06162aeb8e
[ "MIT" ]
65
2018-10-17T09:13:21.000Z
2019-05-12T15:27:28.000Z
app/caffeine.py
pknn1/radii
29a55161e283e972545f2fa6ab86eb06162aeb8e
[ "MIT" ]
2
2018-11-28T20:42:58.000Z
2019-10-26T07:31:25.000Z
import logging import os import tqdm import codecs import h5py from scipy.sparse import coo_matrix, csr_matrix from implicit.als import AlternatingLeastSquares import numpy as np log = logging.getLogger("implicit") def calculate_similar_event(path, output_filename): model = AlternatingLeastSquares() a, b ...
29.623377
79
0.624288
0
0
0
0
0
0
0
0
222
0.097326
b4c62c1d188683a74a0962fac84688ac5b97821d
2,606
py
Python
Externals/micromegas_4.3.5/Packages/smodels-v1.1.0patch1/Unum-4.1.3-py2.7.egg/unum/units/others/__init__.py
yuanfangtardis/vscode_project
2d78a85413cc85789cc4fee8ec991eb2a0563ef8
[ "Apache-2.0" ]
null
null
null
Externals/micromegas_4.3.5/Packages/smodels-v1.1.0patch1/Unum-4.1.3-py2.7.egg/unum/units/others/__init__.py
yuanfangtardis/vscode_project
2d78a85413cc85789cc4fee8ec991eb2a0563ef8
[ "Apache-2.0" ]
null
null
null
Externals/micromegas_4.3.5/Packages/smodels-v1.1.0patch1/Unum-4.1.3-py2.7.egg/unum/units/others/__init__.py
yuanfangtardis/vscode_project
2d78a85413cc85789cc4fee8ec991eb2a0563ef8
[ "Apache-2.0" ]
1
2022-01-15T12:22:30.000Z
2022-01-15T12:22:30.000Z
"""Define common units that are not SI units. Source: http://physics.nist.gov/cuu/Units/outside.html """ from math import pi from unum import Unum from unum.units.si import * unit = Unum.unit min = MIN = unit( 'min' , 60 * s , 'minute' ) h = H =...
63.560976
93
0.331926
0
0
0
0
0
0
0
0
577
0.221412
b4c6fc0c69541816e21939fbebc9a6f46bed5200
411
py
Python
ejemplos/python/Project/core.py
juanmi-gh/curso-tdd
6803d7def7e48ea500c5a3de2ab4ce04a645cf54
[ "MIT" ]
null
null
null
ejemplos/python/Project/core.py
juanmi-gh/curso-tdd
6803d7def7e48ea500c5a3de2ab4ce04a645cf54
[ "MIT" ]
null
null
null
ejemplos/python/Project/core.py
juanmi-gh/curso-tdd
6803d7def7e48ea500c5a3de2ab4ce04a645cf54
[ "MIT" ]
null
null
null
class Project: def newMilestone(self, milestone): pass; def milestones(self): pass def percentageCompleted(self): pass def completionSummary(self): pass def data(self): pass def projectName(self): pass class NoIssueException(Exception): ...
17.125
55
0.618005
408
0.992701
0
0
0
0
0
0
22
0.053528
b4c923ce3d32af3eeec668c17548a734deee2fca
5,563
py
Python
.ipynb_checkpoints/quickr-checkpoint.py
victorfica/utils
b61935a860838a0e70afde7c9ecf2c68f51a2c4b
[ "MIT" ]
5
2015-12-16T01:23:07.000Z
2020-04-27T11:41:43.000Z
.ipynb_checkpoints/quickr-checkpoint.py
victorfica/utils
b61935a860838a0e70afde7c9ecf2c68f51a2c4b
[ "MIT" ]
1
2021-05-06T23:47:20.000Z
2021-05-06T23:48:33.000Z
.ipynb_checkpoints/quickr-checkpoint.py
victorfica/utils
b61935a860838a0e70afde7c9ecf2c68f51a2c4b
[ "MIT" ]
6
2016-04-29T14:04:22.000Z
2021-05-06T23:49:34.000Z
import subprocess import pandas as pd import tempfile import os __all__ = ['runRscript'] def runRscript(Rcmd, inDf=None, outputFiles=0, removeTempFiles=None): """Runs an R cmd with option to provide a DataFrame as input and file as output. Params ------ Rcmd : str String containing the R-...
35.433121
104
0.577926
0
0
0
0
0
0
0
0
2,355
0.423333
b4c9ce487e10dba3071c2961a4b998890acc04b4
1,790
py
Python
website/trafficlights/__init__.py
matthewrkitson/traffic-lights
4a469fe9e2b78d140f79e411f57f73a10161608c
[ "MIT" ]
1
2017-07-24T08:21:38.000Z
2017-07-24T08:21:38.000Z
website/trafficlights/__init__.py
matthewrkitson/traffic-lights
4a469fe9e2b78d140f79e411f57f73a10161608c
[ "MIT" ]
1
2017-08-26T22:48:40.000Z
2017-08-26T22:49:31.000Z
website/trafficlights/__init__.py
matthewrkitson/traffic-lights
4a469fe9e2b78d140f79e411f57f73a10161608c
[ "MIT" ]
null
null
null
from flask import Flask, render_template, request import trafficlights.controller as controller import trafficlights.poller as poller from trafficlights.updaters.teamcity_updater import TeamCityUpdater from trafficlights.updaters.flash_updater import FlashUpdater import os import pwd import logging from logging.handler...
30.862069
81
0.732961
0
0
0
0
0
0
0
0
190
0.106145
b4caab1d782450ff5523fe9d995e78cea4812cc6
552
py
Python
google-calendar-notifier.py
motchy869/Google-Calendar-notifier
f25ff114f600bcf051622290ce5ee46fa6763b40
[ "MIT" ]
null
null
null
google-calendar-notifier.py
motchy869/Google-Calendar-notifier
f25ff114f600bcf051622290ce5ee46fa6763b40
[ "MIT" ]
null
null
null
google-calendar-notifier.py
motchy869/Google-Calendar-notifier
f25ff114f600bcf051622290ce5ee46fa6763b40
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ google-calendar-notifier Google Calendar から直近の予定を取得し、通知時刻になったらデスクトップに通知を表示する。 """ import sys from modules.Global import APPLICATION_NAME from modules.Manager import Manager import setproctitle from PyQt5.QtWidgets import (QApplication, QWidget) def main(): """ ...
18.4
52
0.748188
0
0
0
0
0
0
0
0
258
0.413462
b4cb7e7c29d9db6eb7015f3523a78eabfadd2701
6,121
py
Python
tests/alerters/exotel_test.py
perceptron01/elastalert2
bb91ecdb03dedda207237ca83d628fd5d40d29c6
[ "Apache-2.0" ]
250
2021-04-24T18:06:30.000Z
2022-03-31T04:37:47.000Z
tests/alerters/exotel_test.py
perceptron01/elastalert2
bb91ecdb03dedda207237ca83d628fd5d40d29c6
[ "Apache-2.0" ]
129
2021-04-24T17:09:50.000Z
2022-03-29T08:52:14.000Z
tests/alerters/exotel_test.py
perceptron01/elastalert2
bb91ecdb03dedda207237ca83d628fd5d40d29c6
[ "Apache-2.0" ]
128
2021-04-25T15:20:34.000Z
2022-03-31T04:37:49.000Z
import logging import pytest from unittest import mock from requests import RequestException from elastalert.alerters.exotel import ExotelAlerter from elastalert.loaders import FileRulesLoader from elastalert.util import EAException def test_exotel_getinfo(): rule = { 'name': 'Test Rule', 'type...
34.581921
123
0.59255
0
0
0
0
2,235
0.365136
0
0
1,804
0.294723
b4cb904211fffa6f3cd36f4d79779477007b846c
1,664
py
Python
gensort/gen_partitions.py
bskim45/akka-clustered-sorting
af9b5846c346fd758b90c66317edcc620acdaf67
[ "Apache-2.0" ]
4
2016-10-23T12:52:51.000Z
2018-12-07T04:44:17.000Z
gensort/gen_partitions.py
bskim45/akka-clustered-sorting
af9b5846c346fd758b90c66317edcc620acdaf67
[ "Apache-2.0" ]
null
null
null
gensort/gen_partitions.py
bskim45/akka-clustered-sorting
af9b5846c346fd758b90c66317edcc620acdaf67
[ "Apache-2.0" ]
null
null
null
# -*- coding: UTF-8 -*- import argparse import os import shlex import subprocess import sys def main(argv): command = "" path = os.path.dirname(os.path.abspath(__file__)) if sys.platform.startswith('win'): command = os.path.join(path, "gensort.exe") + " -a -b%d %d %s\partition%d" elif sys.pl...
32
106
0.616587
0
0
0
0
0
0
0
0
369
0.221755
b4cbcf09ac9214d01520bb499e084a430a45cce9
6,855
py
Python
models/backbones/psa.py
EmanuelNk/semantic-segmentation
20ff16da49691fb407724909d9c7e84b47e2fee0
[ "MIT" ]
null
null
null
models/backbones/psa.py
EmanuelNk/semantic-segmentation
20ff16da49691fb407724909d9c7e84b47e2fee0
[ "MIT" ]
null
null
null
models/backbones/psa.py
EmanuelNk/semantic-segmentation
20ff16da49691fb407724909d9c7e84b47e2fee0
[ "MIT" ]
null
null
null
import torch from torch import nn, Tensor from torch.nn import functional as F class PSAP(nn.Module): def __init__(self, c1, c2): super().__init__() ch = c2 // 2 self.conv_q_right = nn.Conv2d(c1, 1, 1, bias=False) self.conv_v_right = nn.Conv2d(c1, ch, 1, bias=False) self.co...
34.104478
117
0.564989
6,378
0.930416
0
0
0
0
0
0
357
0.052079
b4cc740af35ab7b4d6f5b995924f2b85986c8d1a
2,318
py
Python
ruconlluconv/space/dataset.py
shkarupa-alex/ruconlluconv
7b1c2c5af7724f407b56e412629921dc9b4f163b
[ "MIT" ]
1
2019-10-24T10:23:53.000Z
2019-10-24T10:23:53.000Z
ruconlluconv/space/dataset.py
shkarupa-alex/ruconlluconv
7b1c2c5af7724f407b56e412629921dc9b4f163b
[ "MIT" ]
null
null
null
ruconlluconv/space/dataset.py
shkarupa-alex/ruconlluconv
7b1c2c5af7724f407b56e412629921dc9b4f163b
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse import csv import os import random from conllu import parse def create_dataset(src_files, dest_path): data = [] for sf in src_files: with open(sf, 'rb') as f: sent...
29.717949
101
0.592752
0
0
0
0
0
0
0
0
248
0.106989
b4cca09337b02a9336a893eb3318ca00d49f56c0
203
py
Python
venv_restaurant/Scripts/django-admin.py
Frank1963-mpoyi/RUTH-RESTAURANT-BACK-END
b2c657b822295b717e699797a12c3db48f8d3b70
[ "MIT" ]
null
null
null
venv_restaurant/Scripts/django-admin.py
Frank1963-mpoyi/RUTH-RESTAURANT-BACK-END
b2c657b822295b717e699797a12c3db48f8d3b70
[ "MIT" ]
null
null
null
venv_restaurant/Scripts/django-admin.py
Frank1963-mpoyi/RUTH-RESTAURANT-BACK-END
b2c657b822295b717e699797a12c3db48f8d3b70
[ "MIT" ]
null
null
null
#!c:\users\mpoyi tshibuyi\desktop\cv\ruth-restaurant-back-end\venv_restaurant\scripts\python.exe from django.core import management if __name__ == "__main__": management.execute_from_command_line()
33.833333
96
0.802956
0
0
0
0
0
0
0
0
106
0.522167
b4cd052381d84e741e9aba129e01ded11236ccc7
5,471
py
Python
code/head_and_flare_plot_rti_together.py
ryanvolz/thesis_defense
0ada54d632c0c98edaf338390a56f85a8c29381f
[ "CC-BY-4.0", "CC0-1.0", "BSD-3-Clause" ]
1
2022-03-24T22:52:14.000Z
2022-03-24T22:52:14.000Z
code/head_and_flare_plot_rti_together.py
ryanvolz/thesis_defense
0ada54d632c0c98edaf338390a56f85a8c29381f
[ "CC-BY-4.0", "CC0-1.0", "BSD-3-Clause" ]
null
null
null
code/head_and_flare_plot_rti_together.py
ryanvolz/thesis_defense
0ada54d632c0c98edaf338390a56f85a8c29381f
[ "CC-BY-4.0", "CC0-1.0", "BSD-3-Clause" ]
null
null
null
import numpy as np import matplotlib import matplotlib.pyplot as plt from mpl_toolkits import axes_grid1 import cPickle import copy import os import echolect as el params = {#'figure.subplot.left': 0.01, #'figure.subplot.bottom': 0.01, #'figure.subplot.right': .99, #'figure.subplot.top':...
36.718121
86
0.599708
0
0
0
0
0
0
0
0
1,338
0.244562
b4ce3c157a11cf1e8eaa0e95bc2a27f12658839f
1,161
py
Python
second/utils/print_test.py
rogeriobonatti/wysiwyg
04a26c6e9125f55222bd0b5d5b0cfbfaebbdbcdf
[ "MIT", "BSD-3-Clause" ]
92
2020-04-16T08:52:55.000Z
2022-03-02T15:52:55.000Z
second/utils/print_test.py
rogeriobonatti/wysiwyg
04a26c6e9125f55222bd0b5d5b0cfbfaebbdbcdf
[ "MIT", "BSD-3-Clause" ]
6
2020-08-07T03:18:41.000Z
2022-03-09T04:49:07.000Z
second/utils/print_test.py
rogeriobonatti/wysiwyg
04a26c6e9125f55222bd0b5d5b0cfbfaebbdbcdf
[ "MIT", "BSD-3-Clause" ]
18
2020-05-21T15:47:48.000Z
2021-09-28T02:22:11.000Z
import os import json import argparse parser = argparse.ArgumentParser() parser.add_argument('--dataset', type=str, default='nuscenes') parser.add_argument('--step', type=int, default='-1') parser.add_argument('--metric', type=str, default='mean_dist_aps') parser.add_argument('--thresh', type=str, default="") args = p...
25.8
126
0.64255
0
0
0
0
0
0
0
0
301
0.259259
b4ce7143a08fd78efc9047f19ca66cad8f2c7504
1,924
py
Python
core/snake.py
LucienShui/SnakeAI
9636d881f5d9647bf8f8a3f60ec890ccf7a6e245
[ "Apache-2.0" ]
1
2020-08-12T07:10:43.000Z
2020-08-12T07:10:43.000Z
core/snake.py
LucienShui/SnakeAI
9636d881f5d9647bf8f8a3f60ec890ccf7a6e245
[ "Apache-2.0" ]
1
2020-08-19T07:38:38.000Z
2020-08-19T07:38:38.000Z
core/snake.py
LucienShui/SnakeAI
9636d881f5d9647bf8f8a3f60ec890ccf7a6e245
[ "Apache-2.0" ]
null
null
null
import typing from .point import Point from .action import Action class Apple(object): def __init__(self, point: Point): self.position: Point = point class Snake(object): def __init__(self, x: int, y: int, length: int = 2): self.length: int = length self.initial_x: int = x ...
26.722222
100
0.572765
1,865
0.962332
0
0
0
0
0
0
88
0.045408
b4cf2c91db7b015aa8aa4991bdda7ef428e1f465
915
py
Python
Python 3/8600TransientTrace.py
BKPrecisionCorp/8600DCLoad
94ab102dca952acc19af9a5216a686546c73340a
[ "Apache-2.0" ]
null
null
null
Python 3/8600TransientTrace.py
BKPrecisionCorp/8600DCLoad
94ab102dca952acc19af9a5216a686546c73340a
[ "Apache-2.0" ]
null
null
null
Python 3/8600TransientTrace.py
BKPrecisionCorp/8600DCLoad
94ab102dca952acc19af9a5216a686546c73340a
[ "Apache-2.0" ]
null
null
null
import time import visa rm=visa.ResourceManager() li=rm.list_resources() for index in range(len(li)): print(str(index)+" - "+li[index]) choice = input("Which device?: ") vi=rm.open_resource(li[int(choice)]) print(vi.query("*idn?")) vi.write("FUNC CURR") vi.write("trace:clear") vi.write("trace:feed two") vi.write("...
28.59375
71
0.689617
0
0
0
0
0
0
0
0
551
0.602186
b4cf7e1c86e3205958291e7425a9a9f4f73be2ce
9,057
py
Python
tests/test_ssdp.py
esev/pywemo
95ee8271c4253c4872112bdfd02f7e24d2ae4aa5
[ "MIT" ]
null
null
null
tests/test_ssdp.py
esev/pywemo
95ee8271c4253c4872112bdfd02f7e24d2ae4aa5
[ "MIT" ]
null
null
null
tests/test_ssdp.py
esev/pywemo
95ee8271c4253c4872112bdfd02f7e24d2ae4aa5
[ "MIT" ]
null
null
null
"""Tests for SSDP and discovery.""" import queue import socket import unittest.mock as mock import pytest import requests from pywemo import ssdp MOCK_CALLBACK_PORT = 8989 MOCK_IP_ADDRESS = "5.6.7.8" @pytest.fixture() def mock_interface_addresses(): """Mock for util.interface_addresses.""" addresses = ["1...
30.701695
79
0.646572
3,230
0.35663
3,136
0.346252
4,035
0.445512
0
0
3,498
0.386221
b4cfce8b12a6ac49b647cb4f04c9fcd1077b1ec7
963
py
Python
Past Homeworks/homework6.py
hunterluepke/Learn-Python-for-Stats-and-Econ
d580a8e27ba937fc8401ac6d0714b6488ac8bbb6
[ "MIT" ]
16
2019-01-10T18:54:13.000Z
2022-01-28T20:07:20.000Z
Past Homeworks/homework6.py
hunterluepke/Learn-Python-for-Stats-and-Econ
d580a8e27ba937fc8401ac6d0714b6488ac8bbb6
[ "MIT" ]
null
null
null
Past Homeworks/homework6.py
hunterluepke/Learn-Python-for-Stats-and-Econ
d580a8e27ba937fc8401ac6d0714b6488ac8bbb6
[ "MIT" ]
15
2019-01-24T17:11:20.000Z
2021-12-11T01:53:57.000Z
#1. Run an OLS regression using a different set of data. Use the regression #class created in this chapter. Print the results. #2. Create scatter plots of the observation and predicted values as demonstrated at the end of this chapter. #3. Use the numpy libraries log function to log some or all value in your data. ...
48.15
108
0.768432
0
0
0
0
0
0
0
0
948
0.980352
b4d0137f7fae0bad4c0708d52cc3a2d28862307e
4,563
py
Python
MCSH/logging.py
RealAllenDa/MinecraftServerHelper
888217070443c0cc04823ebe4a41c7f24ff785ec
[ "MIT" ]
null
null
null
MCSH/logging.py
RealAllenDa/MinecraftServerHelper
888217070443c0cc04823ebe4a41c7f24ff785ec
[ "MIT" ]
null
null
null
MCSH/logging.py
RealAllenDa/MinecraftServerHelper
888217070443c0cc04823ebe4a41c7f24ff785ec
[ "MIT" ]
null
null
null
""" *************************************** MCSH - A Minecraft Server Helper. Coded by AllenDa 2020. Licensed under MIT. *************************************** Module Name: MCSH.logging Module Revision: 0.0.1-18 Module Description: A module for all the shared functions. Including Logging, Downloading, ...
33.8
102
0.573526
0
0
0
0
0
0
0
0
1,604
0.351523
b4d33929de3fd0bf625b63e39a95f8cfb6dfd254
6,366
py
Python
train.py
firehose-dataset/congrad
20792f43aa89beae75454e30b82b2e1280ed3106
[ "MIT" ]
9
2020-07-21T14:37:22.000Z
2021-07-14T12:44:13.000Z
train.py
firehose-dataset/congrad
20792f43aa89beae75454e30b82b2e1280ed3106
[ "MIT" ]
2
2020-09-22T18:05:03.000Z
2020-11-19T09:42:21.000Z
train.py
firehose-dataset/congrad
20792f43aa89beae75454e30b82b2e1280ed3106
[ "MIT" ]
2
2020-07-21T16:39:12.000Z
2020-07-30T02:20:47.000Z
# coding: utf-8 import argparse import json import time import math import os, sys import itertools import numpy as np import os.path as osp import torch import torch.nn as nn import torch.optim as optim from core.dataset.corpus import get_lm_corpus from core.configs import get_basic_parser from core.trainer import ...
47.864662
113
0.56409
0
0
0
0
0
0
0
0
1,537
0.241439
b4d4ab3cc397b904b89f32e4f6a280d303e8fc9e
133
py
Python
python_100/Level1/33.new_list.py
relax-space/python-cy
eaf4650756e7ece5ec97894b65a7495b5c964eb3
[ "Apache-2.0" ]
1
2020-04-27T03:31:23.000Z
2020-04-27T03:31:23.000Z
python_100/Level1/33.new_list.py
relax-space/python-cy
eaf4650756e7ece5ec97894b65a7495b5c964eb3
[ "Apache-2.0" ]
1
2020-04-14T23:55:19.000Z
2020-04-15T03:29:37.000Z
python_100/Level1/33.new_list.py
relax-space/python-cy
eaf4650756e7ece5ec97894b65a7495b5c964eb3
[ "Apache-2.0" ]
null
null
null
# 33.使用单一的列表生成式来产生一个新的列表 # 该列表只包含满足以下条件的值,元素为原始列表中偶数切片 a = [1,2,5,8,10,3,18,6,20] res = [i for i in a[::2] if i %2 ==0] print(res)
22.166667
39
0.639098
0
0
0
0
0
0
0
0
145
0.644444
b4d83f281f1eebd41934900dc6fcbc95f4422fa8
828
py
Python
Algorithm/Easy/1000+/1137ConstructStringfromBinaryTree.py
MartinYan623/Lint-Code
57d2fa441d6496234615736e3f55d0b71aaa51dc
[ "MIT" ]
null
null
null
Algorithm/Easy/1000+/1137ConstructStringfromBinaryTree.py
MartinYan623/Lint-Code
57d2fa441d6496234615736e3f55d0b71aaa51dc
[ "MIT" ]
1
2020-08-08T10:14:53.000Z
2020-08-08T10:18:37.000Z
Algorithm/Easy/1000+/1137ConstructStringfromBinaryTree.py
MartinYan623/Lint-Code
57d2fa441d6496234615736e3f55d0b71aaa51dc
[ "MIT" ]
null
null
null
""" Definition of TreeNode: class TreeNode: def __init__(self, val): self.val = val self.left, self.right = None, None """ class Solution: """ @param t: the root of tree @return: return a string """ def tree2str(self, t): # write your code here result = "" ...
27.6
66
0.519324
682
0.823671
0
0
0
0
0
0
265
0.320048
b4d9bf8f6d4100f5fbe1040cb0ba4a581a667576
2,589
py
Python
nncf/common/quantization/quantizers.py
xiao1228/nncf
307262119ee3f50eec2fa4022b2ef96693fd8448
[ "Apache-2.0" ]
null
null
null
nncf/common/quantization/quantizers.py
xiao1228/nncf
307262119ee3f50eec2fa4022b2ef96693fd8448
[ "Apache-2.0" ]
null
null
null
nncf/common/quantization/quantizers.py
xiao1228/nncf
307262119ee3f50eec2fa4022b2ef96693fd8448
[ "Apache-2.0" ]
null
null
null
""" Copyright (c) 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 in writin...
34.065789
80
0.679413
0
0
0
0
0
0
0
0
1,775
0.685593
b4d9d7e8ab9eba17dd2d34e0f48b7c7da2f7aa12
620
py
Python
Teaching-Evaluation-Assistant/main.py
xsx-123/awesome-sdu-scripts
bc371fda9d4d2a616f82c9a44b7d1d6eddb2c6eb
[ "MIT" ]
21
2021-06-01T09:54:20.000Z
2022-03-11T16:50:42.000Z
Teaching-Evaluation-Assistant/main.py
xsx-123/awesome-sdu-scripts
bc371fda9d4d2a616f82c9a44b7d1d6eddb2c6eb
[ "MIT" ]
1
2020-07-05T15:39:54.000Z
2020-07-05T15:39:54.000Z
Teaching-Evaluation-Assistant/main.py
xsx-123/awesome-sdu-scripts
bc371fda9d4d2a616f82c9a44b7d1d6eddb2c6eb
[ "MIT" ]
8
2021-07-21T03:11:40.000Z
2021-12-03T08:25:19.000Z
# -*- coding: utf-8 -*- #!/usr/bin/env python # Copyright 2018 ZhangT. All Rights Reserved. # Author: ZhangT # Author-Github: github.com/zhangt2333 # main.py 2019/1/18 10:24 from spider import * def main(): username = input('请输入学号: ') password = input('请输入密码: ') print('下面将为你进行所有课的教评,一律好评,如需特...
25.833333
77
0.651613
0
0
0
0
0
0
0
0
402
0.537433
b4de7316ed1e8e13a0577cf10dc2841aba8c4450
114
py
Python
food_reference_listing/database/apps.py
bfssi-forest-dussault/food_reference_listing
85372a81a9201dda02797ab0c11b1bd710f9b70d
[ "MIT" ]
null
null
null
food_reference_listing/database/apps.py
bfssi-forest-dussault/food_reference_listing
85372a81a9201dda02797ab0c11b1bd710f9b70d
[ "MIT" ]
null
null
null
food_reference_listing/database/apps.py
bfssi-forest-dussault/food_reference_listing
85372a81a9201dda02797ab0c11b1bd710f9b70d
[ "MIT" ]
null
null
null
from django.apps import AppConfig class DatabaseConfig(AppConfig): name = 'food_reference_listing.database'
19
44
0.798246
77
0.675439
0
0
0
0
0
0
33
0.289474
b4e075d99493283f713d77ff2a9998ebc61bca27
6,905
py
Python
crawler/bot.py
danhorsley/my_fx_bot
fc62a9c6c8a596546d028bedd0ada5769038ca93
[ "MIT" ]
null
null
null
crawler/bot.py
danhorsley/my_fx_bot
fc62a9c6c8a596546d028bedd0ada5769038ca93
[ "MIT" ]
1
2021-06-02T00:37:56.000Z
2021-06-02T00:37:56.000Z
crawler/bot.py
danhorsley/my_fx_bot
fc62a9c6c8a596546d028bedd0ada5769038ca93
[ "MIT" ]
null
null
null
#import pandas as pd import numpy as np import random from tqdm import tqdm #from sklearn.linear_model import LinearRegression #from pandas.core.common import SettingWithCopyWarning #import warnings #from .dbtonumpy import eurusd_prices #warnings.simplefilter(action="ignore", category=SettingWithCopyWarning) from datet...
39.232955
116
0.623172
3,975
0.57567
0
0
0
0
0
0
1,488
0.215496
b4e1de52882ddfbf3559c816d3bb41dcee39e97e
3,824
py
Python
test/test_stream.py
pkch/executors
326677ab98de374314bfa76e75624a705c34bdda
[ "MIT" ]
1
2017-07-17T14:11:18.000Z
2017-07-17T14:11:18.000Z
test/test_stream.py
pkch/executors
326677ab98de374314bfa76e75624a705c34bdda
[ "MIT" ]
3
2017-05-29T10:24:36.000Z
2017-05-30T09:20:11.000Z
test/test_stream.py
pkch/executors
326677ab98de374314bfa76e75624a705c34bdda
[ "MIT" ]
1
2020-11-21T18:53:52.000Z
2020-11-21T18:53:52.000Z
from itertools import islice, count from functools import partial import time import os import pytest from streamexecutors import StreamThreadPoolExecutor, StreamProcessPoolExecutor approx = partial(pytest.approx, abs=0.5) test_classes = [StreamThreadPoolExecutor, StreamProcessPoolExecutor] # pytest bu...
30.592
100
0.631799
308
0.080544
190
0.049686
2,667
0.697437
0
0
439
0.114801
b4e304de012fad4ec3d5be2223cfc1f74ac57b63
1,997
py
Python
edit_exercise_page.py
delereyus/ProLog
b08c9d4c1aae5c0d7cf2dbafd5fd764b46243406
[ "MIT" ]
null
null
null
edit_exercise_page.py
delereyus/ProLog
b08c9d4c1aae5c0d7cf2dbafd5fd764b46243406
[ "MIT" ]
null
null
null
edit_exercise_page.py
delereyus/ProLog
b08c9d4c1aae5c0d7cf2dbafd5fd764b46243406
[ "MIT" ]
null
null
null
from tkinter import * from back_end import Database import confirm_sets_page import edit_workout_page import config database = Database("py_project.db") class EditExercisePage: def __init__(self, content, exercise, workout_id, workout_date, username): self.show_edit_exercise_page(content, exercise, worko...
46.44186
210
0.751127
1,840
0.921382
0
0
0
0
0
0
50
0.025038
b4e324cf93a35e2065c6896d6b9be38a85fb0fe0
4,463
py
Python
src/remote_pdb.py
MatthewWilkes/python-remote-pdb
ce1477a565b1b3cb42a018900c36eb17891b8a53
[ "BSD-2-Clause" ]
null
null
null
src/remote_pdb.py
MatthewWilkes/python-remote-pdb
ce1477a565b1b3cb42a018900c36eb17891b8a53
[ "BSD-2-Clause" ]
null
null
null
src/remote_pdb.py
MatthewWilkes/python-remote-pdb
ce1477a565b1b3cb42a018900c36eb17891b8a53
[ "BSD-2-Clause" ]
null
null
null
from __future__ import print_function import errno import logging import re import socket import sys from pdb import Pdb __version__ = "1.2.0" PY3 = sys.version_info[0] == 3 def cry(message, stderr=sys.__stderr__): logging.critical(message) print(message, file=stderr) stderr.flush() class LF2CRLF_Fi...
32.107914
118
0.611696
3,900
0.873852
0
0
69
0.01546
0
0
1,114
0.249608
b4e410c12154b75ec6c1f9e175b28611de1ac1b9
9,258
py
Python
dataproxy/__init__.py
peerplays-network/bos-dataproxy
ff19ce97981a10d8ff8d6ad3ed6afe7b4cdd42fc
[ "MIT" ]
6
2019-12-05T18:37:33.000Z
2019-12-20T17:58:32.000Z
dataproxy/__init__.py
peerplays-network/bos-dataproxy
ff19ce97981a10d8ff8d6ad3ed6afe7b4cdd42fc
[ "MIT" ]
2
2019-08-06T10:40:45.000Z
2020-02-21T14:14:12.000Z
dataproxy/__init__.py
peerplays-network/bos-dataproxy
ff19ce97981a10d8ff8d6ad3ed6afe7b4cdd42fc
[ "MIT" ]
1
2019-07-01T13:25:15.000Z
2019-07-01T13:25:15.000Z
import os import yaml import io from copy import deepcopy import logging import collections from logging.handlers import TimedRotatingFileHandler from bookiesports.normalize import IncidentsNormalizer def get_version(): try: with open(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'VERSION')) ...
36.023346
196
0.600562
4,838
0.522575
0
0
4,621
0.499136
0
0
2,983
0.322208
b4e4ea35c0b136bd77ad4305316db6545dfc8ef0
957
py
Python
api/migrations/0008_auto_20180527_2054.py
jcasmer/grow_control_backend-
6a18a137e0a16138607413925727d7e5f8486777
[ "BSD-3-Clause" ]
1
2019-05-11T14:45:47.000Z
2019-05-11T14:45:47.000Z
api/migrations/0008_auto_20180527_2054.py
jcasmer/grow_control_backend-
6a18a137e0a16138607413925727d7e5f8486777
[ "BSD-3-Clause" ]
6
2021-03-18T20:45:02.000Z
2021-09-22T17:41:38.000Z
api/migrations/0008_auto_20180527_2054.py
jcasmer/grow_control_backend-
6a18a137e0a16138607413925727d7e5f8486777
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.0.5 on 2018-05-27 20:54 import django.core.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0007_auto_20180527_2014'), ] operations = [ migrations.AlterField( model_name='parents', ...
38.28
329
0.667712
836
0.871741
0
0
0
0
0
0
231
0.240876
b4e51bf7923cd3c56e111afff2886221c0eb4630
9,221
py
Python
designs/migrations/0001_initial.py
ygrass/handsome
0ea016745d92054bd4df8d934c1b67fd61b6f845
[ "Unlicense" ]
null
null
null
designs/migrations/0001_initial.py
ygrass/handsome
0ea016745d92054bd4df8d934c1b67fd61b6f845
[ "Unlicense" ]
null
null
null
designs/migrations/0001_initial.py
ygrass/handsome
0ea016745d92054bd4df8d934c1b67fd61b6f845
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'DesignPhoto' db.create_table(u'designs_designphoto', ( ...
69.856061
195
0.584102
9,054
0.981889
0
0
0
0
0
0
5,791
0.628023
b4e764ff085936858ce0218d82e10f1f4328559c
1,125
py
Python
python_4/sun.py
SPbAU-ProgrammingParadigms/materials
447bc7639c218cf5ee869d461e35998e1a0e02e5
[ "Unlicense" ]
null
null
null
python_4/sun.py
SPbAU-ProgrammingParadigms/materials
447bc7639c218cf5ee869d461e35998e1a0e02e5
[ "Unlicense" ]
null
null
null
python_4/sun.py
SPbAU-ProgrammingParadigms/materials
447bc7639c218cf5ee869d461e35998e1a0e02e5
[ "Unlicense" ]
7
2017-09-02T17:09:46.000Z
2021-01-10T09:53:56.000Z
#!/usr/bin/env python3 class Runtime: pass class Singleton(Runtime): _instance = None def __new__(cls, *args, **kwargs): if not cls._instance: cls._instance = super().__new__(cls, *args, **kwargs) return cls._instance class StringBuilder: def __init__(self, encoding='ut...
20.454545
65
0.535111
632
0.561778
0
0
0
0
0
0
144
0.128
b4e7a3522fd2849798df7f967eae45a3a6fe16a0
506
py
Python
notes/code/yahoo/history.py
bckenstler/msan692
1a9dedca98570bacbbec5f755344cd2f66ffc5a9
[ "MIT" ]
null
null
null
notes/code/yahoo/history.py
bckenstler/msan692
1a9dedca98570bacbbec5f755344cd2f66ffc5a9
[ "MIT" ]
null
null
null
notes/code/yahoo/history.py
bckenstler/msan692
1a9dedca98570bacbbec5f755344cd2f66ffc5a9
[ "MIT" ]
1
2019-06-15T16:49:26.000Z
2019-06-15T16:49:26.000Z
HistoryURL = "http://ichart.finance.yahoo.com/table.csv?s=%s" import sys import urllib2 ticker = sys.argv[1] # AAPL response = urllib2.urlopen(HistoryURL % ticker) csvdata = response.read() print csvdata """ ... 1998-02-23,20.125,21.624999,20.00,21.250001,119372400,0.694818 1998-02-20,20.50,20.5625,19.8125,20.00,81...
23
79
0.701581
0
0
0
0
0
0
0
0
275
0.543478
b4e976b9f90b3ddddb85b1feba1420243bbfa81c
1,894
py
Python
scripts/genmanualtrimlist.py
taneliang/mellotron
259ffb66b0c23d571a5350ee5f05618c4101a59d
[ "BSD-3-Clause" ]
2
2021-09-17T10:15:57.000Z
2021-12-28T08:09:18.000Z
scripts/genmanualtrimlist.py
taneliang/mellotron
259ffb66b0c23d571a5350ee5f05618c4101a59d
[ "BSD-3-Clause" ]
null
null
null
scripts/genmanualtrimlist.py
taneliang/mellotron
259ffb66b0c23d571a5350ee5f05618c4101a59d
[ "BSD-3-Clause" ]
2
2020-11-19T23:03:18.000Z
2021-12-18T11:38:41.000Z
#!/usr/bin/env python3 # Generates a list of files to be manually trimmed. To aid pre-processing of # our existing files. import glob import os import re EMOVDB_CMUARCTIC_PATH = '/home/e/e-liang/is4152/tacotron2/cmuarctic.data' # Transcripts for emovdb dataset located in repo root dataLookup = {} with open(EMOVDB_C...
43.045455
159
0.67529
0
0
0
0
0
0
0
0
1,236
0.652587
b4ea4abbb674908b308a29f2c1088bdba4b29c37
1,587
py
Python
tests/test_zip.py
shengqh/bamsnap
4815c618011b2a1f2ab0d9e6418e39dbd292239b
[ "MIT" ]
84
2020-01-09T11:12:52.000Z
2022-03-05T00:15:55.000Z
tests/test_zip.py
shengqh/bamsnap
4815c618011b2a1f2ab0d9e6418e39dbd292239b
[ "MIT" ]
23
2020-08-24T14:28:06.000Z
2021-11-27T16:42:40.000Z
tests/test_zip.py
shengqh/bamsnap
4815c618011b2a1f2ab0d9e6418e39dbd292239b
[ "MIT" ]
14
2020-08-28T16:55:21.000Z
2021-12-01T20:20:50.000Z
import sys import shlex sys.path.append('..') bamsnap_prog = "src/bamsnap.py" from src import bamsnap # import bamsnap # bamsnap_prog = "bamsnap" cmdlist = [] cmdlist.append(""" -bam ./data/test_SV1_softclipped_1.bam \ -title "Clipped read" \ -pos chr1:37775740 chr1:37775780 chr1:37775783 chr1:3777578...
21.16
80
0.587902
0
0
0
0
0
0
0
0
858
0.540643
b4eb14a0b04fc6b011592ad8a874f914b0b2709b
943
py
Python
systems/models.py
KenkoGeek/assigned-it-resources
2407dc309b9cc4751dc556898596d60b3b57b539
[ "MIT" ]
null
null
null
systems/models.py
KenkoGeek/assigned-it-resources
2407dc309b9cc4751dc556898596d60b3b57b539
[ "MIT" ]
null
null
null
systems/models.py
KenkoGeek/assigned-it-resources
2407dc309b9cc4751dc556898596d60b3b57b539
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models # Create your models here. PERMISSIONS_NAMES = ( ("Lectura","Lectura"), ("Escritura","Escritura"), ("Administrador","Administrador"), ("Superusuario","Superusuario") ) class Permissions (models.Model): p...
25.486486
79
0.700954
655
0.694592
0
0
0
0
0
0
164
0.173913
b4ebe3d8d5c147beec7d63a578314a1710325450
3,751
py
Python
doc/source/rstprocess.py
jefalon/WindSE
bf7e0dbad85552b32327bda2b5c29a0fac5286bb
[ "Apache-2.0" ]
35
2019-07-14T17:08:10.000Z
2022-03-15T11:09:44.000Z
doc/source/rstprocess.py
jefalon/WindSE
bf7e0dbad85552b32327bda2b5c29a0fac5286bb
[ "Apache-2.0" ]
45
2020-11-16T16:40:12.000Z
2022-03-30T20:04:37.000Z
doc/source/rstprocess.py
jefalon/WindSE
bf7e0dbad85552b32327bda2b5c29a0fac5286bb
[ "Apache-2.0" ]
21
2020-02-11T12:01:36.000Z
2022-03-18T19:07:14.000Z
# -*- coding: utf-8 -*- # Copyright (C) 2017 Garth N. Wells # # This file is part of DOLFIN. # # DOLFIN is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your opt...
36.417476
140
0.604639
0
0
0
0
0
0
0
0
2,070
0.551853
b4ecc6c166b9223c2444d0ba856f875609a0d0b7
7,084
py
Python
homeassistant/components/thermostat/homematic.py
magas0/home-assistant
3c9e4934946ce99f5193ca550296034e86337997
[ "MIT" ]
1
2016-07-14T05:20:54.000Z
2016-07-14T05:20:54.000Z
app/bower_components/home-assistant-dev/homeassistant/components/thermostat/homematic.py
EkoHub/CustomizableWalkThroughTourElement
0a4ae793a1e031c9bd042b0e8ffef3be96b7c1b0
[ "BSD-3-Clause" ]
null
null
null
app/bower_components/home-assistant-dev/homeassistant/components/thermostat/homematic.py
EkoHub/CustomizableWalkThroughTourElement
0a4ae793a1e031c9bd042b0e8ffef3be96b7c1b0
[ "BSD-3-Clause" ]
1
2018-11-22T13:55:23.000Z
2018-11-22T13:55:23.000Z
""" Support for Homematic (HM-TC-IT-WM-W-EU, HM-CC-RT-DN) thermostats. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/thermostat.homematic/ """ import logging import socket from xmlrpc.client import ServerProxy from xmlrpc.client import Error from collec...
36.328205
79
0.56917
3,755
0.530068
0
0
1,059
0.149492
0
0
1,603
0.226285
b4eebbcaac2662f45a776502923fe86d751ae5dc
1,658
py
Python
src/main/python/bridge_access.py
afichet/candela
eafa61fb6054b3beedbb63d9b9ca3c1f5a15f562
[ "MIT" ]
1
2020-07-27T21:37:28.000Z
2020-07-27T21:37:28.000Z
src/main/python/bridge_access.py
afichet/candela
eafa61fb6054b3beedbb63d9b9ca3c1f5a15f562
[ "MIT" ]
1
2020-06-22T13:36:37.000Z
2020-10-04T19:26:52.000Z
src/main/python/bridge_access.py
afichet/candela
eafa61fb6054b3beedbb63d9b9ca3c1f5a15f562
[ "MIT" ]
null
null
null
# This Python file uses the following encoding: utf-8 import phue from PySide2.QtCore import QObject, Signal, Slot, Property class BridgeAccess(QObject): def __init__(self, ip, user, parent=None): super(BridgeAccess, self).__init__(parent) self.ip_val = ip self.user_val = user t...
26.741935
71
0.626659
1,529
0.922195
0
0
434
0.261761
0
0
141
0.085042
b4f154a32dafa26aff0166449879bde375421d24
3,779
py
Python
toqnets/nn/gnntc.py
C-SUNSHINE/TOQ-Nets-PyTorch-Release
05e06bf633fb3c6b610dda9a5126ecd7af1db02f
[ "MIT" ]
6
2021-08-24T21:46:01.000Z
2022-03-09T14:34:05.000Z
toqnets/nn/gnntc.py
vacancy/TOQ-Nets-PyTorch-Release
53a712be28e2ecf8d2e04a9f71a2d7e8db5430e1
[ "MIT" ]
null
null
null
toqnets/nn/gnntc.py
vacancy/TOQ-Nets-PyTorch-Release
53a712be28e2ecf8d2e04a9f71a2d7e8db5430e1
[ "MIT" ]
2
2021-08-23T03:06:20.000Z
2021-09-30T14:17:14.000Z
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # File : gnntc.py # Author : Zhezheng Luo # Email : luozhezheng@gmail.com # Date : 08/02/2021 # # This file is part of TOQ-Nets-PyTorch. # Distributed under terms of the MIT license. import torch from torch import nn from toqnets.nn.propnet import AgentEncoder, Rel...
41.527473
117
0.645144
3,431
0.907912
0
0
0
0
0
0
682
0.180471
b4f33c8f5454d70f21eee639b9eaec15c00e3876
553
py
Python
2020/2/part1.py
atsvetkov/adventofcode2020
392ca75f89214fce696cd4facfcf34a7a91d74c8
[ "MIT" ]
null
null
null
2020/2/part1.py
atsvetkov/adventofcode2020
392ca75f89214fce696cd4facfcf34a7a91d74c8
[ "MIT" ]
null
null
null
2020/2/part1.py
atsvetkov/adventofcode2020
392ca75f89214fce696cd4facfcf34a7a91d74c8
[ "MIT" ]
null
null
null
valid_count = 0 for line in open('input.txt'): space_index = line.index(' ') limits = [int(limit) for limit in line[:space_index].split('-')] lo, hi = limits[0], limits[1] colon_index = line.index(':') letter = line[space_index+1:colon_index] word = line[colon_index+1:] letter_count = 0 ...
29.105263
68
0.582278
0
0
0
0
0
0
0
0
48
0.086799
b4f83beaa12a9866f44ed0f21189ccc8f4c1bf21
1,187
py
Python
evaluation/hand_calculation/agari.py
VictorZXY/meowjong
ec71171f7dc2369c55f5e3bd3302cbaa76346561
[ "MIT" ]
null
null
null
evaluation/hand_calculation/agari.py
VictorZXY/meowjong
ec71171f7dc2369c55f5e3bd3302cbaa76346561
[ "MIT" ]
null
null
null
evaluation/hand_calculation/agari.py
VictorZXY/meowjong
ec71171f7dc2369c55f5e3bd3302cbaa76346561
[ "MIT" ]
null
null
null
from evaluation.hand_calculation.hand_divider import HandDivider from evaluation.hand_calculation.yaku_list.yakuman import KokushiMusou class Agari: @staticmethod def is_agari(private_tiles, win_tile=None, melds=None): """ Determine whether a given hand is complete. Yaku are not counted. ...
38.290323
80
0.648694
1,048
0.882898
0
0
1,031
0.868576
0
0
553
0.46588
b4f880d130da7c09dd7f3647df3d4c2bfe447453
2,961
py
Python
SentiLARE/finetune/run_sentilr_tests.py
authorAnonymousGit/WOCEL
5edcf1c0cce07c8280ef3c10c9e01ad0d2643885
[ "Apache-2.0" ]
null
null
null
SentiLARE/finetune/run_sentilr_tests.py
authorAnonymousGit/WOCEL
5edcf1c0cce07c8280ef3c10c9e01ad0d2643885
[ "Apache-2.0" ]
null
null
null
SentiLARE/finetune/run_sentilr_tests.py
authorAnonymousGit/WOCEL
5edcf1c0cce07c8280ef3c10c9e01ad0d2643885
[ "Apache-2.0" ]
null
null
null
import os import numpy as np SEEDS = [1, 2, 3, 4, 5] LOSS_TYPES = ["OCE_loss_final_with_prox_dynamic_L7_with_alpha", "CrossEntropy"] ALPHAS = np.linspace(0.5, 0.9, 5) # Irrelevant for CrossEntropy # SEEDS = [1, 3, 5] # LOSS_TYPES = ['OCE_loss_final_with_prox_dynamic_L7_with_alpha_ablation_prox', # ...
55.867925
116
0.444107
0
0
0
0
0
0
0
0
2,011
0.679162
b4f91e22fe213c7ec2c0ae9a49e8a93da6fcfe82
45
py
Python
src/__init__.py
gchhablani/DRIFT
8d748998b695489a40ff732a974e4b1f915bab34
[ "MIT" ]
90
2021-07-01T15:42:57.000Z
2021-12-06T04:57:59.000Z
src/__init__.py
gchhablani/DRIFT
8d748998b695489a40ff732a974e4b1f915bab34
[ "MIT" ]
8
2021-07-02T12:41:13.000Z
2021-08-08T17:59:30.000Z
src/__init__.py
gchhablani/DRIFT
8d748998b695489a40ff732a974e4b1f915bab34
[ "MIT" ]
7
2021-07-01T13:08:14.000Z
2021-08-29T05:29:09.000Z
from .analysis import * from .utils import *
15
23
0.733333
0
0
0
0
0
0
0
0
0
0
b4f9ccdefea2153e5041d2860cc16cc5a2038328
570
py
Python
CreaFiguraConSimbolos.py
brown9804/Python_DiversosAlgortimos
e9ff0fbe761f24a49a30a513d50824ca56cafaa3
[ "Apache-2.0" ]
3
2018-06-28T21:06:53.000Z
2018-07-01T20:39:30.000Z
CreaFiguraConSimbolos.py
brown9804/Python_DiversosAlgortimos
e9ff0fbe761f24a49a30a513d50824ca56cafaa3
[ "Apache-2.0" ]
null
null
null
CreaFiguraConSimbolos.py
brown9804/Python_DiversosAlgortimos
e9ff0fbe761f24a49a30a513d50824ca56cafaa3
[ "Apache-2.0" ]
null
null
null
#Python3 #Crea una figura con un simbolo digitado ###### DEFINICIONES ###### def impr (anch): print("*" * anch) def anchofig(anc,sym): print (sym*anc) ###### IMPLEMENTACION ###### ancho = int(input("Digite el ancho para el de asteriscos ")) for indice in range (1, ancho + 1): impr(ancho) ancho ...
23.75
72
0.659649
0
0
0
0
0
0
0
0
301
0.527145
b4fa243292a8aeaaab2484645654ac37e38928e0
16,093
py
Python
domain.py
acrovato/geoGen
55cea28f9d6cea7a9b04cb8403e6b9b69e326133
[ "Apache-2.0" ]
1
2021-01-05T11:53:13.000Z
2021-01-05T11:53:13.000Z
domain.py
acrovato/gridGen
55cea28f9d6cea7a9b04cb8403e6b9b69e326133
[ "Apache-2.0" ]
1
2019-09-17T07:18:23.000Z
2019-10-17T16:24:37.000Z
domain.py
acrovato/geoGen
55cea28f9d6cea7a9b04cb8403e6b9b69e326133
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ''' Copyright 2019 University of Liege 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 requir...
48.914894
346
0.512956
15,154
0.941652
0
0
0
0
0
0
5,133
0.318959
b4fb690e180278fffd33e59c9c5b194dc52708ab
2,039
py
Python
Leak #5 - Lost In Translation/windows/Resources/Dsz/PyScripts/Lib/mcl/lp/cmdparser/XmlCommandArgument.py
bidhata/EquationGroupLeaks
1ff4bc115cb2bd5bf2ed6bf769af44392926830c
[ "Unlicense" ]
9
2019-11-22T04:58:40.000Z
2022-02-26T16:47:28.000Z
Leak #5 - Lost In Translation/windows/Resources/Dsz/PyScripts/Lib/mcl/lp/cmdparser/XmlCommandArgument.py
bidhata/EquationGroupLeaks
1ff4bc115cb2bd5bf2ed6bf769af44392926830c
[ "Unlicense" ]
null
null
null
Leak #5 - Lost In Translation/windows/Resources/Dsz/PyScripts/Lib/mcl/lp/cmdparser/XmlCommandArgument.py
bidhata/EquationGroupLeaks
1ff4bc115cb2bd5bf2ed6bf769af44392926830c
[ "Unlicense" ]
8
2017-09-27T10:31:18.000Z
2022-01-08T10:30:46.000Z
# uncompyle6 version 2.9.10 # Python bytecode 2.7 (62211) # Decompiled from: Python 3.6.0b2 (default, Oct 11 2016, 05:27:10) # [GCC 6.2.0 20161005] # Embedded file name: XmlCommandArgument.py from XmlCommandBase import XmlCommandBase class XmlCommandArgument(XmlCommandBase): def __init__(self): XmlComman...
35.155172
105
0.615498
1,803
0.884257
0
0
0
0
0
0
335
0.164296
b4fc46a1bb23ac5c4deeb4b6415184c741b08da2
10,390
py
Python
userPayWin.py
Salalami/SmartSupermarket4Win
0442de2c821361ecdb88cf1ce9523ac78c48d6d1
[ "Apache-2.0" ]
null
null
null
userPayWin.py
Salalami/SmartSupermarket4Win
0442de2c821361ecdb88cf1ce9523ac78c48d6d1
[ "Apache-2.0" ]
null
null
null
userPayWin.py
Salalami/SmartSupermarket4Win
0442de2c821361ecdb88cf1ce9523ac78c48d6d1
[ "Apache-2.0" ]
null
null
null
from PyQt5.QtWidgets import QApplication, QMainWindow, QDialog, QWidget, QMessageBox from PyQt5 import QtWidgets from PyQt5.QtGui import QPixmap from PyQt5.QtCore import pyqtSignal, QThread, QCoreApplication, Qt from Ui_userPayWin import Ui_Dialog import sys, utils from alipay import AliPay import qrcode, time, threadi...
39.505703
116
0.626083
10,619
0.941735
0
0
0
0
0
0
2,531
0.224459
b4fc5de33e8b1aa1ab1e0d787882387f1e99ef8d
6,125
py
Python
venv/lib/python3.6/site-packages/ansible_collections/cisco/nxos/tests/unit/modules/network/nxos/test_nxos_bgp_af.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/cisco/nxos/tests/unit/modules/network/nxos/test_nxos_bgp_af.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/cisco/nxos/tests/unit/modules/network/nxos/test_nxos_bgp_af.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
# (c) 2016 Red Hat Inc. # # This file is part of Ansible # # Ansible 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 version 3 of the License, or # (at your option) any later version. # # Ansible is dis...
31.735751
99
0.577306
5,109
0.834122
0
0
0
0
0
0
1,760
0.287347
b4fdebbc09fb6614f7cb781e964938b2e7e78dab
7,253
py
Python
devilry/apps/core/admin.py
devilry/devilry-django
9ae28e462dfa4cfee966ebacbca04ade9627e715
[ "BSD-3-Clause" ]
29
2015-01-18T22:56:23.000Z
2020-11-10T21:28:27.000Z
devilry/apps/core/admin.py
devilry/devilry-django
9ae28e462dfa4cfee966ebacbca04ade9627e715
[ "BSD-3-Clause" ]
786
2015-01-06T16:10:18.000Z
2022-03-16T11:10:50.000Z
devilry/apps/core/admin.py
devilry/devilry-django
9ae28e462dfa4cfee966ebacbca04ade9627e715
[ "BSD-3-Clause" ]
15
2015-04-06T06:18:43.000Z
2021-02-24T12:28:30.000Z
import json from django.contrib import admin from django.utils.html import format_html from devilry.apps.core.models import AssignmentGroup, Subject, Period, Assignment, PeriodTag, \ CandidateAssignmentGroupHistory, ExaminerAssignmentGroupHistory, Examiner, RelatedStudent, RelatedExaminer, \ AssignmentGroupHi...
23.548701
113
0.64718
6,171
0.85082
0
0
0
0
0
0
1,830
0.252309
b4ff7a2689f88f39799b28e0ab3ec620248833a9
168
py
Python
myvenv/lib/python3.5/site-packages/IPython/utils/traitlets.py
tuvapp/tuvappcom
5ca2be19f4b0c86a1d4a9553711a4da9d3f32841
[ "MIT" ]
6,989
2017-07-18T06:23:18.000Z
2022-03-31T15:58:36.000Z
myvenv/lib/python3.5/site-packages/IPython/utils/traitlets.py
tuvapp/tuvappcom
5ca2be19f4b0c86a1d4a9553711a4da9d3f32841
[ "MIT" ]
1,978
2017-07-18T09:17:58.000Z
2022-03-31T14:28:43.000Z
myvenv/lib/python3.5/site-packages/IPython/utils/traitlets.py
tuvapp/tuvappcom
5ca2be19f4b0c86a1d4a9553711a4da9d3f32841
[ "MIT" ]
1,228
2017-07-18T09:03:13.000Z
2022-03-29T05:57:40.000Z
from __future__ import absolute_import from warnings import warn warn("IPython.utils.traitlets has moved to a top-level traitlets package.") from traitlets import *
21
75
0.809524
0
0
0
0
0
0
0
0
69
0.410714
370211a081a208a56f69edfdacecf44b58bc1ce6
26,188
py
Python
airflow/providers/google/cloud/operators/vertex_ai/auto_ml.py
arezamoosavi/airflow
c3c81c3144386d1de535c1c5e777270e727bb69e
[ "Apache-2.0" ]
2
2016-08-23T14:22:15.000Z
2017-09-28T19:45:26.000Z
airflow/providers/google/cloud/operators/vertex_ai/auto_ml.py
arezamoosavi/airflow
c3c81c3144386d1de535c1c5e777270e727bb69e
[ "Apache-2.0" ]
4
2019-01-24T11:01:17.000Z
2022-02-28T04:28:07.000Z
airflow/providers/google/cloud/operators/vertex_ai/auto_ml.py
arezamoosavi/airflow
c3c81c3144386d1de535c1c5e777270e727bb69e
[ "Apache-2.0" ]
6
2018-04-09T07:46:05.000Z
2019-07-16T00:13:15.000Z
# # 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...
41.967949
107
0.688941
24,685
0.942607
0
0
0
0
0
0
2,100
0.080189
370239612665db191d987f35efe965057710194c
18
py
Python
ret_benchmark/utils/log_info.py
alibaba-edu/Ranking-based-Instance-Selection
06e7fa2061d42f5e8181f7181fe591fc3d294f8d
[ "MIT" ]
20
2021-04-15T09:15:28.000Z
2022-03-30T02:31:20.000Z
vit_retri/utils/log_info.py
ludics/ViT-Retri
4a17ae8392a0f8145a2f5ee37854e76503c26009
[ "MIT" ]
1
2021-06-03T05:51:52.000Z
2021-06-19T05:52:33.000Z
vit_retri/utils/log_info.py
ludics/ViT-Retri
4a17ae8392a0f8145a2f5ee37854e76503c26009
[ "MIT" ]
5
2021-05-17T09:05:38.000Z
2022-02-28T10:10:50.000Z
log_info = dict()
9
17
0.666667
0
0
0
0
0
0
0
0
0
0
3702fd553a25de275c7515e72b1efc8cf1822fe0
293
py
Python
Ex008.py
GabrielSilva2y3d/Curso-em-video-python-exercicios
1098ccb3f8c21b411e6b6e6dc1c9bb339e80b785
[ "MIT" ]
null
null
null
Ex008.py
GabrielSilva2y3d/Curso-em-video-python-exercicios
1098ccb3f8c21b411e6b6e6dc1c9bb339e80b785
[ "MIT" ]
null
null
null
Ex008.py
GabrielSilva2y3d/Curso-em-video-python-exercicios
1098ccb3f8c21b411e6b6e6dc1c9bb339e80b785
[ "MIT" ]
null
null
null
print('Unidades de Medida') m = float(input('Digite uma distância em metros: ')) print(f'A distancia de {m}m corresponde a: ') km = m/1000 hm = m/100 dam = m/10 m = m dm = m * 10 cm = m * 100 mm = m * 1000 print(f"({km}km - {hm}hm - {dam}dam - {m}m - {dm:.0f}dm - {cm:.0f}cm - {mm:.0f}mm)")
20.928571
84
0.576792
0
0
0
0
0
0
0
0
170
0.578231
3707d2a27bdec3d6c78225064cc9a3813466253a
7,472
py
Python
unit_tests/view_official_search/test_enter_search_ref.py
LandRegistry/maintain-frontend
d92446a9972ebbcd9a43a7a7444a528aa2f30bf7
[ "MIT" ]
1
2019-10-03T13:58:29.000Z
2019-10-03T13:58:29.000Z
unit_tests/view_official_search/test_enter_search_ref.py
LandRegistry/maintain-frontend
d92446a9972ebbcd9a43a7a7444a528aa2f30bf7
[ "MIT" ]
null
null
null
unit_tests/view_official_search/test_enter_search_ref.py
LandRegistry/maintain-frontend
d92446a9972ebbcd9a43a7a7444a528aa2f30bf7
[ "MIT" ]
1
2021-04-11T05:24:57.000Z
2021-04-11T05:24:57.000Z
from maintain_frontend import main from flask_testing import TestCase from unit_tests.utilities import Utilities from flask import url_for from unittest.mock import patch, MagicMock from maintain_frontend.dependencies.session_api.session import Session from maintain_frontend.models import SearchDetails class TestEnte...
44.213018
101
0.701017
7,165
0.958913
0
0
5,252
0.702891
0
0
2,062
0.275964
37096124c4cc930bde39de01b5eb32a7bab3bf08
5,285
py
Python
models/quantization.py
aliyun/alibabacloud-quantization-networks
05522aabebf5188df5a92b26f96f5ebded806ca9
[ "Apache-2.0" ]
102
2019-11-08T08:45:56.000Z
2022-03-03T05:22:14.000Z
models/quantization.py
DefTruth/alibabacloud-quantization-networks
05522aabebf5188df5a92b26f96f5ebded806ca9
[ "Apache-2.0" ]
8
2019-12-02T08:44:36.000Z
2021-08-12T13:35:03.000Z
models/quantization.py
DefTruth/alibabacloud-quantization-networks
05522aabebf5188df5a92b26f96f5ebded806ca9
[ "Apache-2.0" ]
30
2019-11-22T05:16:05.000Z
2021-08-04T07:18:56.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # quantization.py is used to quantize the activation of model. from __future__ import print_function, absolute_import import torch import torch.nn.functional as F from torch.nn import init import torch.nn as nn import pickle from torch.nn.parameter import Parameter from to...
36.19863
106
0.60246
4,677
0.884957
0
0
1,279
0.242006
0
0
1,808
0.3421
3709f8e7baa86d5eba77825422a9508af95fef1e
2,240
py
Python
bitstream/decoder/lib/annotations.py
mfkiwl/NEM-Relay-CGRA
1ad59b83b9a61ee56da43e5491a95d2f4e6c2ac4
[ "BSD-3-Clause" ]
2
2021-03-28T08:03:01.000Z
2021-09-19T08:10:02.000Z
bitstream/decoder/lib/annotations.py
mfkiwl/NEM-Relay-CGRA
1ad59b83b9a61ee56da43e5491a95d2f4e6c2ac4
[ "BSD-3-Clause" ]
null
null
null
bitstream/decoder/lib/annotations.py
mfkiwl/NEM-Relay-CGRA
1ad59b83b9a61ee56da43e5491a95d2f4e6c2ac4
[ "BSD-3-Clause" ]
2
2021-03-28T08:02:57.000Z
2021-11-06T05:14:17.000Z
#!/usr/bin/python class Annotations: ''' Class to hold the annotation formats To be used at multiple levels in tool flow for comparison purposes ''' #format strings _connect_wire_str = 'connect wire {} ({}) to {}' _latch_wire_str = 'latch wire {} ({}) before connecting to {}...
33.432836
97
0.614286
2,220
0.991071
0
0
1,508
0.673214
0
0
585
0.261161
370a07874deea75d3ffba660840d9b1109220320
789
py
Python
comprasnet/pages/__init__.py
oncase/python-comprasnet
5cc974873a8c1025d3f572703bf0af02c3d88b59
[ "Apache-2.0" ]
2
2018-04-27T00:15:03.000Z
2018-05-23T21:32:29.000Z
comprasnet/pages/__init__.py
oncase/python-comprasnet
5cc974873a8c1025d3f572703bf0af02c3d88b59
[ "Apache-2.0" ]
6
2018-04-29T22:03:47.000Z
2018-05-19T00:46:14.000Z
comprasnet/pages/__init__.py
oncase/python-comprasnet
5cc974873a8c1025d3f572703bf0af02c3d88b59
[ "Apache-2.0" ]
3
2019-10-09T13:11:48.000Z
2020-06-19T07:31:41.000Z
import logging from collections import OrderedDict log = logging.getLogger('comprasnet') class BaseDetail: DETAIL_URL = None def __init__(self, uasg_code, auction_code, *args, **kwargs): self.uasg_code = uasg_code self.auction_code = auction_code def get_params(self): raise Not...
21.324324
70
0.666667
695
0.880862
0
0
124
0.157161
0
0
19
0.024081