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
e8218935d90ebb72cee991e2f05f077a46339325
846
py
Python
porthole/management/commands/brocade.py
jsayles/Porthole
a4176aad632e319eba88dfbe40cb96a4c437725d
[ "Apache-2.0" ]
null
null
null
porthole/management/commands/brocade.py
jsayles/Porthole
a4176aad632e319eba88dfbe40cb96a4c437725d
[ "Apache-2.0" ]
null
null
null
porthole/management/commands/brocade.py
jsayles/Porthole
a4176aad632e319eba88dfbe40cb96a4c437725d
[ "Apache-2.0" ]
null
null
null
from django.core.management.base import BaseCommand, CommandError from django.conf import settings from porthole import models, brocade class Command(BaseCommand): help = "Command the Brocade switch stacks" args = "" requires_system_checks = False def add_arguments(self, parser): parser.add_...
29.172414
106
0.634752
706
0.834515
0
0
0
0
0
0
136
0.160757
e8221f351de78d1c4212826efb9039a3b827c105
410
py
Python
joulia/unit_conversions_test.py
willjschmitt/joulia-webserver
712decb749c2d1bda71af49ecab245378bf30078
[ "FTL" ]
null
null
null
joulia/unit_conversions_test.py
willjschmitt/joulia-webserver
712decb749c2d1bda71af49ecab245378bf30078
[ "FTL" ]
95
2016-08-04T01:59:37.000Z
2021-06-10T18:41:46.000Z
joulia/unit_conversions_test.py
willjschmitt/joulia-webserver
712decb749c2d1bda71af49ecab245378bf30078
[ "FTL" ]
null
null
null
"""Tests joulia.unit_conversions. """ from django.test import TestCase from joulia import unit_conversions class GramsToPoundsTest(TestCase): def test_grams_to_pounds(self): self.assertEquals(unit_conversions.grams_to_pounds(1000.0), 2.20462) class GramsToOuncesTest(TestCase): def test_grams_to_ou...
24.117647
77
0.77561
295
0.719512
0
0
0
0
0
0
37
0.090244
e82434209f26613cf2f4d4081789832c2affad67
1,127
py
Python
Django/blog/tests.py
zarif007/Blog-site
e20e3f73fedbd7acb2f3d22398c36f3dcd4f88b4
[ "MIT" ]
1
2021-03-15T22:28:26.000Z
2021-03-15T22:28:26.000Z
Django/blog/tests.py
zarif007/Blog-site
e20e3f73fedbd7acb2f3d22398c36f3dcd4f88b4
[ "MIT" ]
null
null
null
Django/blog/tests.py
zarif007/Blog-site
e20e3f73fedbd7acb2f3d22398c36f3dcd4f88b4
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from django.test import TestCase from blog.models import Category, Post class Test_Create_Post(TestCase): @classmethod def setUpTestData(cls): test_category = Category.objects.create(name='django') testuser1 = User.objects.create_user( ...
36.354839
104
0.616681
1,008
0.89441
0
0
406
0.360248
0
0
200
0.177462
e824b59433bad7c9a547eb3af6d1a2e1fb6af9c5
2,504
py
Python
scripts/train_presets/beads.py
kreshuklab/hylfm-net
9f1013640e40e998674b65176023367b1e978782
[ "MIT" ]
8
2020-11-13T05:46:59.000Z
2022-01-30T06:12:04.000Z
scripts/train_presets/beads.py
kreshuklab/hylfm-net
9f1013640e40e998674b65176023367b1e978782
[ "MIT" ]
1
2020-11-13T08:29:23.000Z
2022-02-10T16:45:19.000Z
scripts/train_presets/beads.py
kreshuklab/hylfm-net
9f1013640e40e998674b65176023367b1e978782
[ "MIT" ]
2
2020-10-30T11:02:42.000Z
2021-01-12T06:51:33.000Z
from pathlib import Path from hylfm.hylfm_types import ( CriterionChoice, DatasetChoice, LRSchedThresMode, LRSchedulerChoice, MetricChoice, OptimizerChoice, PeriodUnit, ) from hylfm.model import HyLFM_Net from hylfm.train import train if __name__ == "__main__": train( dataset=...
23.185185
57
0.5623
0
0
0
0
0
0
0
0
25
0.009984
e82619fe802bc3c2cff480de32dc1445ec9e1c68
17,055
py
Python
TrainingPreprocess/filtered_to_dataset.py
CsekM8/LVH-THESIS
b0dc60daaf0825ad43951e6895289da4e3ed911b
[ "MIT" ]
null
null
null
TrainingPreprocess/filtered_to_dataset.py
CsekM8/LVH-THESIS
b0dc60daaf0825ad43951e6895289da4e3ed911b
[ "MIT" ]
null
null
null
TrainingPreprocess/filtered_to_dataset.py
CsekM8/LVH-THESIS
b0dc60daaf0825ad43951e6895289da4e3ed911b
[ "MIT" ]
null
null
null
import os import pickle from PIL import Image class PatientToImageFolder: def __init__(self, sourceFolder): self.sourceFolder = sourceFolder # How many patient with contrast SA for each pathology (used for classification) self.contrastSApathologyDict = {} # How many patient with c...
55.373377
121
0.595075
16,788
0.984345
0
0
0
0
0
0
3,574
0.209557
e82731c89300ff664f879da568d6bdf2c014d59b
2,140
py
Python
scripts/pipeline/a06a_submission.py
Iolaum/Phi1337
c73b01cb85c0187ed5c23c672d4f3d05a6934a9f
[ "Apache-2.0" ]
null
null
null
scripts/pipeline/a06a_submission.py
Iolaum/Phi1337
c73b01cb85c0187ed5c23c672d4f3d05a6934a9f
[ "Apache-2.0" ]
null
null
null
scripts/pipeline/a06a_submission.py
Iolaum/Phi1337
c73b01cb85c0187ed5c23c672d4f3d05a6934a9f
[ "Apache-2.0" ]
null
null
null
import pandas as pd import numpy as np import pickle from sklearn.cross_validation import train_test_split from sklearn.linear_model import LinearRegression from sklearn.metrics import mean_squared_error from math import sqrt from sklearn.svm import SVR from sklearn.svm import LinearSVR from sklearn.preprocessing imp...
21.616162
95
0.706075
0
0
0
0
0
0
0
0
616
0.28785
e82976f9a06173b4cb3e6c53bd388cb5ba53c170
602
py
Python
Data Gathering/PythonPlottingScript.py
Carter-eng/SeniorDesign
5305531d251ea749f909cc09eb1ccfe21714cebd
[ "MIT" ]
null
null
null
Data Gathering/PythonPlottingScript.py
Carter-eng/SeniorDesign
5305531d251ea749f909cc09eb1ccfe21714cebd
[ "MIT" ]
null
null
null
Data Gathering/PythonPlottingScript.py
Carter-eng/SeniorDesign
5305531d251ea749f909cc09eb1ccfe21714cebd
[ "MIT" ]
null
null
null
import numpy as np import serial import time import matplotlib.pyplot as plt def getData(): ser = serial.Serial('/dev/ttyACM7', 9600) sensorReadings = [] start = time.time() current = time.time() while current - start < 10: data =ser.readline() sensorReadings.append(floa...
24.08
46
0.642857
0
0
0
0
0
0
0
0
51
0.084718
e82a07131fefc0b08096ef65e989b7c1655ac2a3
732
py
Python
Examples/Rich_Message_Example.py
robinvoogt/text-sdk-python
1acd624991f396cc673dad22cfa3272b4b3fb53b
[ "MIT" ]
2
2021-05-29T07:22:55.000Z
2022-01-15T18:23:39.000Z
Examples/Rich_Message_Example.py
robinvoogt/text-sdk-python
1acd624991f396cc673dad22cfa3272b4b3fb53b
[ "MIT" ]
2
2021-08-04T13:13:50.000Z
2021-12-31T12:54:00.000Z
Examples/Rich_Message_Example.py
robinvoogt/text-sdk-python
1acd624991f396cc673dad22cfa3272b4b3fb53b
[ "MIT" ]
3
2020-12-23T15:24:40.000Z
2021-04-09T11:43:03.000Z
from CMText.TextClient import TextClient # Message to be send message = 'Examples message to be send' # Media to be send media = { "mediaName": "conversational-commerce", "mediaUri": "https://www.cm.com/cdn/cm/cm.png", "mimeType": "image/png" } # AllowedChannels in this ca...
25.241379
110
0.709016
0
0
0
0
0
0
0
0
378
0.516393
e82b3f9736e429583940ccca0c1055b7a0f8dda1
2,630
py
Python
client/audio.py
Dmitry450/asynciogame
47a2a118155805db37f2c3bd916bd6c68c504cff
[ "MIT" ]
null
null
null
client/audio.py
Dmitry450/asynciogame
47a2a118155805db37f2c3bd916bd6c68c504cff
[ "MIT" ]
null
null
null
client/audio.py
Dmitry450/asynciogame
47a2a118155805db37f2c3bd916bd6c68c504cff
[ "MIT" ]
1
2022-03-10T16:05:09.000Z
2022-03-10T16:05:09.000Z
import pygame from pygame.math import Vector2 class Sound: def __init__(self, manager, snd, volume=1.0): self.manager = manager self.snd = pygame.mixer.Sound(snd) self.snd.set_volume(1.0) self.ttl = snd.get_length() self.playing = True ...
30.229885
91
0.53308
2,575
0.979087
0
0
0
0
0
0
350
0.13308
e82d0945219e52cb12d826deeb2607fdf4a302a4
1,353
py
Python
bot/ganjoor/category_choose.py
MmeK/ganjoor-telegram-bot
3992bdd860ea3626dccd79b0c1993a3662e92aa5
[ "MIT" ]
null
null
null
bot/ganjoor/category_choose.py
MmeK/ganjoor-telegram-bot
3992bdd860ea3626dccd79b0c1993a3662e92aa5
[ "MIT" ]
3
2021-11-17T08:03:59.000Z
2021-11-17T14:00:23.000Z
bot/ganjoor/category_choose.py
MmeK/ganjoor-telegram-bot
3992bdd860ea3626dccd79b0c1993a3662e92aa5
[ "MIT" ]
null
null
null
# Copyright 2021 Mohammad Kazemi <kazemi.me.222@gmail.com>. # SPDX-License-Identifier: MIT # Telegram API framework core imports from collections import namedtuple from functools import partial from ganjoor.ganjoor import Ganjoor from telegram.ext import Dispatcher, CallbackContext from telegram import Update # Helper...
33
86
0.764967
0
0
0
0
0
0
0
0
368
0.271988
e82e3c8a5f7b2a855ae8103d8f7b3d7858fce12c
457
py
Python
python/util/md_utils.py
walterfan/snippets
62f87720c411093fcff888f25b338afd1d99a6f9
[ "Apache-2.0" ]
1
2021-06-18T09:31:59.000Z
2021-06-18T09:31:59.000Z
python/util/md_utils.py
walterfan/snippets
62f87720c411093fcff888f25b338afd1d99a6f9
[ "Apache-2.0" ]
10
2020-12-12T08:12:06.000Z
2022-03-02T06:54:10.000Z
python/util/md_utils.py
walterfan/snippets
62f87720c411093fcff888f25b338afd1d99a6f9
[ "Apache-2.0" ]
null
null
null
import os import sys import struct import re import logging logging.basicConfig(stream=sys.stderr, level=logging.DEBUG) logger = logging.getLogger(__name__) def list_to_md(str_list): output = "" for str in str_list: output = output + "* %s \n" % str return output def str_to_md_list(the_str, sep)...
19.869565
59
0.66302
0
0
0
0
0
0
0
0
22
0.04814
e82febc9f75bb1499d62773b17eb275855bf705c
374
py
Python
board/main.py
Josverl/micropython-stubber
3dc57ea9e957bd9f36fce6abfe051a2fa7ace522
[ "MIT" ]
96
2019-04-10T15:03:27.000Z
2022-03-29T09:07:14.000Z
board/main.py
Josverl/micropython-stubber
3dc57ea9e957bd9f36fce6abfe051a2fa7ace522
[ "MIT" ]
154
2019-06-02T21:30:56.000Z
2022-03-30T12:19:00.000Z
board/main.py
Josverl/micropython-stubber
3dc57ea9e957bd9f36fce6abfe051a2fa7ace522
[ "MIT" ]
7
2019-06-14T19:54:22.000Z
2022-03-29T05:02:32.000Z
import uos as os import time def countdown(): for i in range(5, 0, -1): print("start stubbing in {}...".format(i)) time.sleep(1) import createstubs # import stub_lvgl try: # only run import if no stubs yet os.listdir("stubs") print("stub folder was found, stubbing is not aut...
17.809524
73
0.636364
0
0
0
0
0
0
0
0
145
0.387701
e83023e586a214491a4865df8d7fd4b1c0c4034a
5,110
py
Python
third_party/blink/tools/blinkpy/web_tests/breakpad/dump_reader_multipart_unittest.py
zipated/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
third_party/blink/tools/blinkpy/web_tests/breakpad/dump_reader_multipart_unittest.py
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
third_party/blink/tools/blinkpy/web_tests/breakpad/dump_reader_multipart_unittest.py
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
# Copyright (C) 2013 Google 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 list of conditions and the ...
45.221239
104
0.724462
3,396
0.664579
0
0
0
0
0
0
2,330
0.455969
e8308aa03da4eb51baf9d04fa863c427d1808871
257,168
py
Python
scripts/emoji-to-scl.py
SilverWingedSeraph/sws-dotfiles
6bee2b2ece03439101848673d6bcd9196359f7c4
[ "Apache-2.0" ]
3
2018-03-07T15:15:50.000Z
2018-05-22T17:50:34.000Z
scripts/emoji-to-scl.py
SilverWingedSeraph/sws-dotfiles
6bee2b2ece03439101848673d6bcd9196359f7c4
[ "Apache-2.0" ]
null
null
null
scripts/emoji-to-scl.py
SilverWingedSeraph/sws-dotfiles
6bee2b2ece03439101848673d6bcd9196359f7c4
[ "Apache-2.0" ]
1
2020-01-30T15:07:29.000Z
2020-01-30T15:07:29.000Z
#!/usr/bin/python3 # -*- coding: utf-8 -*- from subprocess import Popen, PIPE emojis="""⛑🏻 Helmet With White Cross, Type-1-2 ⛑🏼 Helmet With White Cross, Type-3 ⛑🏽 Helmet With White Cross, Type-4 ⛑🏾 Helmet With White Cross, Type-5 ⛑🏿 Helmet With White Cross, Type-6 💏🏻 Kiss, Type-1-2 💏🏼 Kiss, Type-3 💏🏽 Kiss,...
35.752537
141
0.63422
0
0
0
0
0
0
0
0
358,670
0.999482
e832546effca406bca8fea44d6997bf80564cc29
19,186
py
Python
src/ngc/main.py
HubTou/ngc
9917adfbaff61e7b20b9f06a4be6b51237e4e768
[ "BSD-3-Clause" ]
null
null
null
src/ngc/main.py
HubTou/ngc
9917adfbaff61e7b20b9f06a4be6b51237e4e768
[ "BSD-3-Clause" ]
null
null
null
src/ngc/main.py
HubTou/ngc
9917adfbaff61e7b20b9f06a4be6b51237e4e768
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ ngc - n-grams count License: 3-clause BSD (see https://opensource.org/licenses/BSD-3-Clause) Author: Hubert Tournier """ import getopt import logging import os import re import string import sys import unicode2ascii # Version string used by the what(1) and ident(1) commands: ID = "@(#) $Id:...
37.472656
100
0.526686
0
0
0
0
0
0
0
0
7,773
0.405139
e8327e8e634b6bfa67228d199235d028b776af03
3,104
py
Python
openquake.hazardlib/openquake/hazardlib/tests/gsim/campbell_2003_test.py
rainzhop/ConvNetQuake
a3e6de3f7992eac72f1b9883fec36b8c7fdefd48
[ "MIT" ]
null
null
null
openquake.hazardlib/openquake/hazardlib/tests/gsim/campbell_2003_test.py
rainzhop/ConvNetQuake
a3e6de3f7992eac72f1b9883fec36b8c7fdefd48
[ "MIT" ]
null
null
null
openquake.hazardlib/openquake/hazardlib/tests/gsim/campbell_2003_test.py
rainzhop/ConvNetQuake
a3e6de3f7992eac72f1b9883fec36b8c7fdefd48
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Copyright (C) 2012-2016 GEM Foundation # # OpenQuake is free software: you can redistribute it and/or modify it # under the terms of the GNU Affero General Public License as published # by the Free Software Foundation, either version 3 of the Licen...
31.673469
79
0.715206
2,000
0.64433
0
0
0
0
0
0
1,327
0.427513
e834ba6213863414f344960900a8a67a2181902b
3,713
py
Python
sktime/regression/interval_based/_tsf.py
khrapovs/sktime
1589d007ef5dbcdc1f42f2c8278919ebed516358
[ "BSD-3-Clause" ]
1
2021-12-22T02:45:39.000Z
2021-12-22T02:45:39.000Z
sktime/regression/interval_based/_tsf.py
khrapovs/sktime
1589d007ef5dbcdc1f42f2c8278919ebed516358
[ "BSD-3-Clause" ]
null
null
null
sktime/regression/interval_based/_tsf.py
khrapovs/sktime
1589d007ef5dbcdc1f42f2c8278919ebed516358
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Time Series Forest Regressor (TSF).""" __author__ = ["Tony Bagnall", "kkoziara", "luiszugasti", "kanand77", "Markus Löning"] __all__ = ["TimeSeriesForestRegressor"] import numpy as np from joblib import Parallel, delayed from sklearn.ensemble._forest import ForestRegressor from sklearn.tree...
30.434426
86
0.647724
3,082
0.829833
0
0
0
0
0
0
2,358
0.634895
e834f207abc6dbf424b5c37c56b17f80d4a4a1f6
7,766
py
Python
vectorc2/vectorc2/settings.py
sebastiankruk/vectorc2
13232cd63ebed32346fb4a669511b102b8ed24c0
[ "Apache-2.0" ]
11
2019-02-27T01:38:47.000Z
2020-11-13T02:14:58.000Z
vectorc2/vectorc2/settings.py
sebastiankruk/vectorc2
13232cd63ebed32346fb4a669511b102b8ed24c0
[ "Apache-2.0" ]
20
2019-02-27T21:22:59.000Z
2022-01-13T01:22:16.000Z
vectorc2/vectorc2/settings.py
sebastiankruk/vectorc2
13232cd63ebed32346fb4a669511b102b8ed24c0
[ "Apache-2.0" ]
1
2020-01-14T09:14:28.000Z
2020-01-14T09:14:28.000Z
""" Django settings for vectorc2 project. Copyright 2019 Sebastian Ryszard Kruk <vectorc2@kruk.me> 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-...
29.984556
107
0.676796
0
0
0
0
0
0
0
0
5,861
0.7547
e83506e2b2f1a14d61d7ea9ee2da6803dd09cbf8
7,802
py
Python
datahandlers/wgisd.py
mikewoodson/ssl-transfer
524e2d57e9ffdbf0497cd4a1404eb1f85dc9fca7
[ "MIT" ]
null
null
null
datahandlers/wgisd.py
mikewoodson/ssl-transfer
524e2d57e9ffdbf0497cd4a1404eb1f85dc9fca7
[ "MIT" ]
null
null
null
datahandlers/wgisd.py
mikewoodson/ssl-transfer
524e2d57e9ffdbf0497cd4a1404eb1f85dc9fca7
[ "MIT" ]
null
null
null
from torchvision.datasets.folder import pil_loader, accimage_loader, default_loader from torch import Tensor from pathlib import Path from enum import Enum from collections import namedtuple from torchvision import transforms as T import os import numpy as np import pdb import functools import torch.utils.data as dat...
33.34188
94
0.564214
6,820
0.874135
0
0
1,291
0.16547
0
0
1,646
0.210972
e8361342f0f0d1a04e77282debfd9e4a5b53ef3e
16,223
py
Python
SimpleCV/MachineLearning/query_imgs/get_imgs_geo_gps_search.py
nikhilgk/SimpleCV
ee64451c16db1f40b4da221115273020a6a7b01a
[ "BSD-3-Clause" ]
2
2016-04-30T12:23:05.000Z
2022-03-02T00:01:10.000Z
SimpleCV/MachineLearning/query_imgs/get_imgs_geo_gps_search.py
nikhilgk/SimpleCV
ee64451c16db1f40b4da221115273020a6a7b01a
[ "BSD-3-Clause" ]
null
null
null
SimpleCV/MachineLearning/query_imgs/get_imgs_geo_gps_search.py
nikhilgk/SimpleCV
ee64451c16db1f40b4da221115273020a6a7b01a
[ "BSD-3-Clause" ]
2
2015-04-16T12:14:55.000Z
2019-08-07T14:12:04.000Z
#!/usr/bin/python # # So this script is in a bit of a hack state right now. # This script reads # # # # Graciously copied and modified from: # http://graphics.cs.cmu.edu/projects/im2gps/flickr_code.html #Image querying script written by Tamara Berg, #and extended heavily James Hays #9/26/2007 added dynamic timesli...
47.023188
133
0.513715
0
0
0
0
0
0
0
0
6,746
0.415829
e836603f27c307f1405743aabfd1cf7f2bab9fdf
2,695
py
Python
Chapter04/python/2.0.0/com/sparksamples/util.py
quguiliang/Machine-Learning-with-Spark-Second-Edition
0ba131e6c15a3de97609c6cb5d976806ccc14f09
[ "MIT" ]
112
2017-05-13T15:44:29.000Z
2022-02-19T20:14:14.000Z
Chapter04/python/2.0.0/com/sparksamples/util.py
tophua/Machine-Learning-with-Spark-Second-Edition
0d93e992f6c79d55ad5cdcab735dbe6674143974
[ "MIT" ]
1
2017-05-25T00:10:43.000Z
2017-05-25T00:10:43.000Z
Chapter04/python/2.0.0/com/sparksamples/util.py
tophua/Machine-Learning-with-Spark-Second-Edition
0d93e992f6c79d55ad5cdcab735dbe6674143974
[ "MIT" ]
115
2017-05-06T10:49:00.000Z
2022-03-08T07:48:54.000Z
import os import sys from pyspark.sql.types import * PATH = "/home/ubuntu/work/ml-resources/spark-ml/data" SPARK_HOME = "/home/ubuntu/work/spark-2.0.0-bin-hadoop2.7/" os.environ['SPARK_HOME'] = SPARK_HOME sys.path.append(SPARK_HOME + "/python") from pyspark import SparkContext from pyspark import SparkConf from pyspa...
35.460526
89
0.656401
0
0
0
0
0
0
0
0
435
0.16141
e8367fbdc5ace072208dddf385f21c1015f73383
384
py
Python
safemasks/resources/rest/router.py
Safemasks/safemasks-app
44c1cf16f81b15b74fa5eb38d36eaa078180e975
[ "BSD-3-Clause" ]
1
2020-11-04T09:42:29.000Z
2020-11-04T09:42:29.000Z
safemasks/resources/rest/router.py
Safemasks/safemasks-app
44c1cf16f81b15b74fa5eb38d36eaa078180e975
[ "BSD-3-Clause" ]
null
null
null
safemasks/resources/rest/router.py
Safemasks/safemasks-app
44c1cf16f81b15b74fa5eb38d36eaa078180e975
[ "BSD-3-Clause" ]
1
2022-02-16T12:58:28.000Z
2022-02-16T12:58:28.000Z
""" """ from rest_framework import routers from safemasks.resources.rest.serializers import SupplierViewSet, TrustedSupplierViewSet # Routers provide an easy way of automatically determining the URL conf. ROUTER = routers.DefaultRouter() ROUTER.register(r"suppliers", SupplierViewSet, "suppliers") ROUTER.register(r"s...
32
88
0.815104
0
0
0
0
0
0
0
0
141
0.367188
e836afc7bcf3544821610837e954b4a6cbeab66b
47,925
py
Python
src/zope/testrunner/formatter.py
jamesjer/zope.testrunner
af8bfec49d90613633b76e914a6f54884463ba94
[ "ZPL-2.1" ]
1
2021-03-05T17:27:37.000Z
2021-03-05T17:27:37.000Z
src/zope/testrunner/formatter.py
jamesjer/zope.testrunner
af8bfec49d90613633b76e914a6f54884463ba94
[ "ZPL-2.1" ]
91
2015-01-12T05:27:27.000Z
2022-03-07T07:03:09.000Z
src/zope/testrunner/formatter.py
jamesjer/zope.testrunner
af8bfec49d90613633b76e914a6f54884463ba94
[ "ZPL-2.1" ]
14
2015-04-03T09:53:36.000Z
2021-05-10T15:51:53.000Z
############################################################################## # # Copyright (c) 2004-2008 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THI...
35.952738
94
0.584768
44,575
0.930099
200
0.004173
848
0.017694
0
0
18,616
0.38844
e8372d789b4ce7a9e159e03cce618e0ad5219646
410
py
Python
waterApp/migrations/0011_auto_20210911_1043.py
csisarep/groundwater_dashboard
4f93d7b7c9fd6b48ace54e7b62cae717decc98d2
[ "MIT" ]
null
null
null
waterApp/migrations/0011_auto_20210911_1043.py
csisarep/groundwater_dashboard
4f93d7b7c9fd6b48ace54e7b62cae717decc98d2
[ "MIT" ]
null
null
null
waterApp/migrations/0011_auto_20210911_1043.py
csisarep/groundwater_dashboard
4f93d7b7c9fd6b48ace54e7b62cae717decc98d2
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2021-09-11 04:58 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('waterApp', '0010_auto_20210911_1041'), ] operations = [ migrations.AlterField( model_name='gwmonitoring', name='id', ...
21.578947
73
0.617073
319
0.778049
0
0
0
0
0
0
98
0.239024
08fa086cfe8def53819d28aebd9cf2fb43f1e8d2
45
py
Python
geomstats/geometry/stratified/__init__.py
shubhamtalbar96/geomstats
9c17ccede7e3f0fddf31487c59227c677216a2b9
[ "MIT" ]
null
null
null
geomstats/geometry/stratified/__init__.py
shubhamtalbar96/geomstats
9c17ccede7e3f0fddf31487c59227c677216a2b9
[ "MIT" ]
null
null
null
geomstats/geometry/stratified/__init__.py
shubhamtalbar96/geomstats
9c17ccede7e3f0fddf31487c59227c677216a2b9
[ "MIT" ]
null
null
null
"""The Stratified Space Geometry Package."""
22.5
44
0.733333
0
0
0
0
0
0
0
0
44
0.977778
08fa0ae611479cbc0414a8eece26a08f791be531
928
py
Python
src/exporter/management/commands/test_export.py
xmdy/h9eNi8F5Ut
4128d7cbc6105ec0fe69157bd88ef8e30415d6ca
[ "Unlicense" ]
null
null
null
src/exporter/management/commands/test_export.py
xmdy/h9eNi8F5Ut
4128d7cbc6105ec0fe69157bd88ef8e30415d6ca
[ "Unlicense" ]
null
null
null
src/exporter/management/commands/test_export.py
xmdy/h9eNi8F5Ut
4128d7cbc6105ec0fe69157bd88ef8e30415d6ca
[ "Unlicense" ]
null
null
null
from django.core.management import BaseCommand import logging # These two lines enable debugging at httplib level (requests->urllib3->http.client) # You will see the REQUEST, including HEADERS and DATA, and RESPONSE with HEADERS but without DATA. # The only thing missing will be the response.body which is not logged. ...
37.12
99
0.774784
187
0.201509
0
0
0
0
0
0
360
0.387931
08fa457de4bf935aa74ea49389d3610e34fb81f5
4,179
py
Python
dask/tests/test_highgraph.py
ianthomas23/dask
7968e85e2edab95565ebbab1f936c9c549e29126
[ "BSD-3-Clause" ]
null
null
null
dask/tests/test_highgraph.py
ianthomas23/dask
7968e85e2edab95565ebbab1f936c9c549e29126
[ "BSD-3-Clause" ]
null
null
null
dask/tests/test_highgraph.py
ianthomas23/dask
7968e85e2edab95565ebbab1f936c9c549e29126
[ "BSD-3-Clause" ]
null
null
null
from functools import partial import os import pytest import dask import dask.array as da from dask.utils_test import inc from dask.highlevelgraph import HighLevelGraph, BasicLayer, Layer from dask.blockwise import Blockwise from dask.array.utils import assert_eq def test_visualize(tmpdir): pytest.importorskip(...
27.313725
94
0.61139
0
0
0
0
1,947
0.465901
0
0
545
0.130414
08fa7b2b56dd9ac93cd0f3c88381b55adb14d1bc
4,612
py
Python
transference.py
webpwnized/cryptography
52660c14aa71afe087cf380bb1e9d067fa639bc6
[ "MIT" ]
13
2017-02-20T21:42:08.000Z
2021-08-01T21:18:51.000Z
transference.py
webpwnized/cryptography
52660c14aa71afe087cf380bb1e9d067fa639bc6
[ "MIT" ]
1
2017-03-24T22:52:25.000Z
2017-03-26T23:14:08.000Z
transference.py
webpwnized/cryptography
52660c14aa71afe087cf380bb1e9d067fa639bc6
[ "MIT" ]
2
2019-02-19T05:01:58.000Z
2020-04-11T04:10:32.000Z
# Requires pip install bitarray from bitarray import bitarray import argparse, math def derive_transfer_function(pTransferFunctionString: str) -> list: lTransferFunction = list(map(int, pTransferFunctionString.split(','))) lTransferFunctionValid = True lLengthTransferFunction = len(lTransferFunction) ...
36.03125
301
0.645056
0
0
0
0
0
0
0
0
1,128
0.244579
08fbd2caaba4bfcce30f566e05b356d741dbf22e
6,264
py
Python
tests/test_client.py
mjcaley/spamc
67c4f2b13d569238ea24794eb5253a1416226a2a
[ "MIT" ]
null
null
null
tests/test_client.py
mjcaley/spamc
67c4f2b13d569238ea24794eb5253a1416226a2a
[ "MIT" ]
null
null
null
tests/test_client.py
mjcaley/spamc
67c4f2b13d569238ea24794eb5253a1416226a2a
[ "MIT" ]
null
null
null
import pytest from aiospamc.client import Client from aiospamc.exceptions import ( BadResponse, UsageException, DataErrorException, NoInputException, NoUserException, NoHostException, UnavailableException, InternalSoftwareException, OSErrorException, OSFileException, CantCre...
30.115385
88
0.773467
0
0
0
0
0
0
5,653
0.902458
14
0.002235
08fc5d8c5d3505334ae9288303604f1b7aea6a2c
3,534
py
Python
sunpy/conftest.py
tacaswell/sunpy
1e06d75408d1a621749a5d4e743ae44a31886100
[ "BSD-2-Clause" ]
null
null
null
sunpy/conftest.py
tacaswell/sunpy
1e06d75408d1a621749a5d4e743ae44a31886100
[ "BSD-2-Clause" ]
null
null
null
sunpy/conftest.py
tacaswell/sunpy
1e06d75408d1a621749a5d4e743ae44a31886100
[ "BSD-2-Clause" ]
null
null
null
import os import tempfile import importlib import pytest import astropy import astropy.config.paths # Force MPL to use non-gui backends for testing. try: import matplotlib except ImportError: pass else: matplotlib.use('Agg') # Don't actually import pytest_remotedata because that can do things to the # e...
27.184615
90
0.695812
0
0
2,374
0.67176
2,569
0.726938
0
0
1,352
0.382569
08fd1346d7002eaa8e3e4a99ba4673e257dc45fd
10,165
py
Python
qtcalendar/models.py
asmateus/PyQtCalendar
b8e5e468082f08159744f692e8edaf2ad52fccbb
[ "MIT" ]
7
2018-01-30T19:23:18.000Z
2022-02-04T13:07:57.000Z
qtcalendar/models.py
asmateus/PyQtCalendar
b8e5e468082f08159744f692e8edaf2ad52fccbb
[ "MIT" ]
1
2020-11-13T14:58:41.000Z
2021-04-27T16:58:46.000Z
qtcalendar/models.py
asmateus/PyQtCalendar
b8e5e468082f08159744f692e8edaf2ad52fccbb
[ "MIT" ]
3
2020-05-20T04:40:35.000Z
2021-02-24T08:58:40.000Z
''' Models for QtWidgets ''' from collections import deque from math import ceil import datetime as dt import calendar class EventInCalendar__Model: class Text: @staticmethod def getDefault(): return EventInCalendar__Model.Text() def __init__(self, event=None, overflow=Fal...
30.61747
92
0.59331
10,030
0.986719
0
0
2,111
0.207673
0
0
1,478
0.145401
08fddb52b339d532616e5502ab7e8a544bac55d1
5,457
py
Python
python/orca/src/bigdl/orca/data/tf/data.py
Forest216/BigDL
840da9a2eaf395978dd83730b02aa5e5dfbd7989
[ "Apache-2.0" ]
null
null
null
python/orca/src/bigdl/orca/data/tf/data.py
Forest216/BigDL
840da9a2eaf395978dd83730b02aa5e5dfbd7989
[ "Apache-2.0" ]
null
null
null
python/orca/src/bigdl/orca/data/tf/data.py
Forest216/BigDL
840da9a2eaf395978dd83730b02aa5e5dfbd7989
[ "Apache-2.0" ]
null
null
null
# # Copyright 2016 The BigDL Authors. # # 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 ...
36.139073
98
0.646876
4,669
0.855598
0
0
504
0.092358
0
0
940
0.172256
08fed17a5871561cc999432b467a8117b686ae74
20,180
py
Python
tools/generate_serialization_header.py
StableCoder/vulkan-mini-libs-2
e048f45149816e100d3f4f51306626ebf547b032
[ "Apache-2.0" ]
1
2022-02-28T20:58:44.000Z
2022-02-28T20:58:44.000Z
tools/generate_serialization_header.py
StableCoder/vulkan-mini-libs-2
e048f45149816e100d3f4f51306626ebf547b032
[ "Apache-2.0" ]
null
null
null
tools/generate_serialization_header.py
StableCoder/vulkan-mini-libs-2
e048f45149816e100d3f4f51306626ebf547b032
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import sys import getopt import xml.etree.ElementTree as ET def processVendors(outFile, vendors): outFile.writelines(["\nconstexpr std::array<std::string_view, ", str( len(vendors)), "> vendors = {{\n"]) for vendor in vendors: outFile.writelines([' \"', vendor.tag, '\"...
30.345865
101
0.607334
0
0
0
0
0
0
0
0
15,564
0.771259
08fee5df6d43bb80284a92b04bcc18e2811bda85
5,629
py
Python
ampel/cli/AbsStockCommand.py
AmpelProject/Ampel-core
dcbfbe38ba400b7f8e44e641b90217ca1bed4f8f
[ "BSD-3-Clause" ]
5
2021-04-15T07:43:26.000Z
2022-03-04T09:25:09.000Z
ampel/cli/AbsStockCommand.py
AmpelProject/Ampel-core
dcbfbe38ba400b7f8e44e641b90217ca1bed4f8f
[ "BSD-3-Clause" ]
67
2021-02-23T21:43:20.000Z
2021-12-15T23:28:32.000Z
ampel/cli/AbsStockCommand.py
AmpelProject/Ampel-core
dcbfbe38ba400b7f8e44e641b90217ca1bed4f8f
[ "BSD-3-Clause" ]
1
2021-04-26T07:52:19.000Z
2021-04-26T07:52:19.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # File : Ampel-core/ampel/cli/AbsStockCommand.py # License : BSD-3-Clause # Author : vb <vbrinnel@physik.hu-berlin.de> # Date : 25.03.2021 # Last Modified Date: 25.03.2021 # Last Modified By : vb <vbrinnel@physik.hu-berlin.de>...
39.921986
109
0.688399
4,636
0.823592
0
0
1,569
0.278735
0
0
2,772
0.49245
08ff6b2659f5dee9c411e3cb6cfb927747bc30ea
682
py
Python
programmers/lv2/42888.py
KLumy/Basic-Algorithm
e52e4200c1955a9062569814ff3418dd06666845
[ "MIT" ]
1
2021-01-22T15:58:32.000Z
2021-01-22T15:58:32.000Z
programmers/lv2/42888.py
KLumy/Basic-Algorithm
e52e4200c1955a9062569814ff3418dd06666845
[ "MIT" ]
null
null
null
programmers/lv2/42888.py
KLumy/Basic-Algorithm
e52e4200c1955a9062569814ff3418dd06666845
[ "MIT" ]
null
null
null
from typing import List def solution(records: List[str]): logger = [] id_name = dict() message = {"Enter": "님이 들어왔습니다.", "Leave": "님이 나갔습니다."} for record in records: op, id, *name = record.split() if name: id_name[id] = name[0] if op in message: logger....
22
59
0.532258
0
0
0
0
0
0
0
0
175
0.245787
08ffd799a57ae50947297bcb41ac6ea2c30df0ab
7,081
py
Python
app/nets.py
bobosoft/intrepyd
13f0912b31f86f9bcc50f52ef4ad870e33f0cf65
[ "BSD-3-Clause" ]
2
2021-04-25T17:38:03.000Z
2022-03-20T20:48:50.000Z
app/nets.py
bobosoft/intrepyd
13f0912b31f86f9bcc50f52ef4ad870e33f0cf65
[ "BSD-3-Clause" ]
1
2016-11-30T22:25:00.000Z
2017-01-16T22:43:39.000Z
app/nets.py
bobosoft/intrepyd
13f0912b31f86f9bcc50f52ef4ad870e33f0cf65
[ "BSD-3-Clause" ]
null
null
null
""" Implementation of REST API for nets creation """ from flask import Blueprint, request from .utils import typename_to_type from .contexts import contexts nr = Blueprint('nets', __name__) def _create_bool_constant(func): context = request.get_json()['context'] if context is None: return {'result': '...
26.82197
71
0.609942
0
0
0
0
5,827
0.822906
0
0
1,817
0.256602
08fffc77755fbb25f85fc2fc8357c667133dc97d
3,091
py
Python
tensorflow_addons/image/utils.py
Soroosh129/addons
d92ae02d04e9052f6ca5ea272873efd15eaa35ce
[ "Apache-2.0" ]
1
2020-09-09T14:51:22.000Z
2020-09-09T14:51:22.000Z
tensorflow_addons/image/utils.py
pkanwar23/addons
de99c6dd904c475c5c95726911f4aac447c13361
[ "Apache-2.0" ]
null
null
null
tensorflow_addons/image/utils.py
pkanwar23/addons
de99c6dd904c475c5c95726911f4aac447c13361
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 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...
30.303922
81
0.586218
0
0
0
0
0
0
0
0
1,298
0.419929
1c00a5891e5e90872bc713f8239c14e5c3378b1b
5,624
py
Python
tests/test_charge.py
fossabot/MolVS
dc5afca7fcea93ebb0a342b766d70e88d2c0b841
[ "MIT" ]
1
2019-03-15T03:42:37.000Z
2019-03-15T03:42:37.000Z
tests/test_charge.py
fossabot/MolVS
dc5afca7fcea93ebb0a342b766d70e88d2c0b841
[ "MIT" ]
null
null
null
tests/test_charge.py
fossabot/MolVS
dc5afca7fcea93ebb0a342b766d70e88d2c0b841
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for charge.py""" from __future__ import print_function from __future__ import unicode_literals from __future__ import division import logging from rdkit import Chem from molvs.standardize import Standardizer, standardize_smiles from molvs.charge import Reionizer...
35.594937
229
0.628912
0
0
0
0
0
0
0
0
3,336
0.593172
1c00c51dbbd7d3ac777974eea9dbea63a30953c4
1,921
py
Python
backend/users/views.py
jochanmin/Blog
465dcb951ebe2e2fabcd81d0c4e0221decc66ccc
[ "MIT" ]
11
2020-04-26T13:55:08.000Z
2022-01-27T08:30:03.000Z
backend/users/views.py
jochanmin/Blog
465dcb951ebe2e2fabcd81d0c4e0221decc66ccc
[ "MIT" ]
26
2020-09-27T16:14:36.000Z
2022-01-08T13:29:14.000Z
backend/users/views.py
jochanmin/Blog
465dcb951ebe2e2fabcd81d0c4e0221decc66ccc
[ "MIT" ]
3
2020-05-22T20:01:56.000Z
2022-01-08T08:40:37.000Z
from django.shortcuts import render from django.core import serializers from .models import User from django.forms.models import model_to_dict from rest_framework import status from rest_framework.response import Response from rest_framework.decorators import api_view, permission_classes from rest_framework.permissions...
36.942308
100
0.668922
0
0
0
0
1,486
0.750884
0
0
381
0.192521
1c00e4c128a365529289973580dd79e35cc9432c
4,134
py
Python
src/test/test_Location.py
MrRollyPanda/astral
5a1b013c945fa902b475ff0fa6769f0d43fe2999
[ "Apache-2.0" ]
null
null
null
src/test/test_Location.py
MrRollyPanda/astral
5a1b013c945fa902b475ff0fa6769f0d43fe2999
[ "Apache-2.0" ]
null
null
null
src/test/test_Location.py
MrRollyPanda/astral
5a1b013c945fa902b475ff0fa6769f0d43fe2999
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from pytest import raises from astral import Astral, AstralError, Location import datetime import pytz def datetime_almost_equal(datetime1, datetime2, seconds=60): dd = datetime1 - datetime2 sd = (dd.days * 24 * 60 * 60) + dd.seconds return abs(sd) <= seconds def test_Location_N...
20.984772
75
0.630866
0
0
0
0
0
0
0
0
406
0.098162
1c01520b2864cd9a92e81b37cca59f5c41b908e7
44
py
Python
__init__.py
minjunli/jsonc
a61b72e92729f9177d8d8685deae744244d6be16
[ "MIT" ]
2
2020-08-30T08:02:10.000Z
2020-09-06T05:33:55.000Z
__init__.py
minjunli/jsonc
a61b72e92729f9177d8d8685deae744244d6be16
[ "MIT" ]
null
null
null
__init__.py
minjunli/jsonc
a61b72e92729f9177d8d8685deae744244d6be16
[ "MIT" ]
null
null
null
from .jsonc import load, loads, dump, dumps
22
43
0.75
0
0
0
0
0
0
0
0
0
0
1c0188f969e63d35026803dbf920b5a12f7d75cf
12,648
py
Python
specs/d3d9caps.py
prahal/apitrace
e9426dd61586757d23d7dddc85b3076f477e7f07
[ "MIT" ]
1
2020-06-19T12:34:44.000Z
2020-06-19T12:34:44.000Z
specs/d3d9caps.py
prahal/apitrace
e9426dd61586757d23d7dddc85b3076f477e7f07
[ "MIT" ]
null
null
null
specs/d3d9caps.py
prahal/apitrace
e9426dd61586757d23d7dddc85b3076f477e7f07
[ "MIT" ]
null
null
null
########################################################################## # # Copyright 2008-2009 VMware, Inc. # All Rights Reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software withou...
29.971564
79
0.716872
0
0
0
0
0
0
0
0
8,937
0.706594
1c020c67e87e2c7154ebd489b70107987ace54ea
23
py
Python
miika_nlu/venv/Lib/site-packages/tqdm/_dist_ver.py
NimBuzz01/Project-Miika_SDGP
08ad1aafafbe9f47c59bd1568b8ac367fefe5503
[ "MIT" ]
null
null
null
miika_nlu/venv/Lib/site-packages/tqdm/_dist_ver.py
NimBuzz01/Project-Miika_SDGP
08ad1aafafbe9f47c59bd1568b8ac367fefe5503
[ "MIT" ]
null
null
null
miika_nlu/venv/Lib/site-packages/tqdm/_dist_ver.py
NimBuzz01/Project-Miika_SDGP
08ad1aafafbe9f47c59bd1568b8ac367fefe5503
[ "MIT" ]
null
null
null
__version__ = '4.64.0'
11.5
22
0.652174
0
0
0
0
0
0
0
0
8
0.347826
1c026bf515ed2ee75cb046511de891145466adbe
10,188
py
Python
gym_flock/envs/old/mapping.py
katetolstaya/gym-flock
3236d1dafcb1b9be0cf78b471672e8becb2d37af
[ "MIT" ]
19
2019-07-29T22:19:58.000Z
2022-01-27T04:38:38.000Z
gym_flock/envs/old/mapping.py
henghenghahei849/gym-flock
b09bdfbbe4a96fe052958d1f9e1e9dd314f58419
[ "MIT" ]
null
null
null
gym_flock/envs/old/mapping.py
henghenghahei849/gym-flock
b09bdfbbe4a96fe052958d1f9e1e9dd314f58419
[ "MIT" ]
5
2019-10-03T14:44:49.000Z
2021-12-09T20:39:39.000Z
import gym from gym import spaces, error, utils from gym.utils import seeding import numpy as np import configparser from os import path import matplotlib.pyplot as plt from matplotlib.pyplot import gca font = {'family': 'sans-serif', 'weight': 'bold', 'size': 14} class MappingEnv(gym.Env): def ...
38.014925
120
0.565077
9,903
0.972026
0
0
0
0
0
0
2,387
0.234295
1c0280c3ce6e60aeea9f1bd9542b3a69e75d70e4
10,478
py
Python
tensorflow/python/kernel_tests/lu_op_test.py
PaulWang1905/tensorflow
ebf12d22b4801fb8dab5034cc94562bf7cc33fa0
[ "Apache-2.0" ]
36
2016-12-17T15:25:25.000Z
2022-01-29T21:50:53.000Z
tensorflow/python/kernel_tests/lu_op_test.py
PaulWang1905/tensorflow
ebf12d22b4801fb8dab5034cc94562bf7cc33fa0
[ "Apache-2.0" ]
59
2019-06-17T09:37:49.000Z
2022-01-19T01:21:34.000Z
tensorflow/python/kernel_tests/lu_op_test.py
PaulWang1905/tensorflow
ebf12d22b4801fb8dab5034cc94562bf7cc33fa0
[ "Apache-2.0" ]
36
2017-07-27T21:12:40.000Z
2022-02-03T16:45:56.000Z
# Copyright 2018 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...
36.894366
80
0.644589
8,932
0.852453
0
0
661
0.063085
0
0
1,962
0.187249
1c02cc341eda998a41a468c758008bb1da86efcd
10,970
py
Python
aligner/features/processing.py
zhouyangnk/Montreal-Forced-Aligner
4f8733409e79a50744616921a04fccf115e8af6f
[ "MIT" ]
1
2021-03-09T03:15:14.000Z
2021-03-09T03:15:14.000Z
aligner/features/processing.py
missaaoo/Montreal-Forced-Aligner
62a40e2337448752a4b8fc7a4ec9cbf3f159fbff
[ "MIT" ]
null
null
null
aligner/features/processing.py
missaaoo/Montreal-Forced-Aligner
62a40e2337448752a4b8fc7a4ec9cbf3f159fbff
[ "MIT" ]
1
2021-03-09T03:15:17.000Z
2021-03-09T03:15:17.000Z
import multiprocessing as mp import subprocess import shutil import os from ..helper import make_path_safe, thirdparty_binary, filter_scp from ..exceptions import CorpusError def mfcc_func(directory, job_name, mfcc_config_path): # pragma: no cover log_directory = os.path.join(directory, 'log') raw_mfcc_path...
52.740385
142
0.51887
0
0
0
0
0
0
0
0
1,960
0.178669
1c03e5b1937b24240e10a556ec3658ca89e78e05
19,640
py
Python
ffai/util/bothelper.py
tysen2k/ffai
2fa1fd45a8877986fdb21e3fea5e01cbf819d3ec
[ "Apache-2.0" ]
null
null
null
ffai/util/bothelper.py
tysen2k/ffai
2fa1fd45a8877986fdb21e3fea5e01cbf819d3ec
[ "Apache-2.0" ]
null
null
null
ffai/util/bothelper.py
tysen2k/ffai
2fa1fd45a8877986fdb21e3fea5e01cbf819d3ec
[ "Apache-2.0" ]
null
null
null
""" A number of static methods for interpretting the state of the fantasy football pitch that aren't required directly by the client """ from ffai.core import Game, Action, ActionType from ffai.core.procedure import * from ffai.util.pathfinding import * from typing import Optional, List, Dict class ActionSequence: ...
39.676768
253
0.667668
3,839
0.195468
0
0
0
0
0
0
2,651
0.13498
1c04bbf01c459890b136a85f02fecf87b5220fd7
601
py
Python
sb_backend/cli/cli.py
DmitriyGrigoriev/sb-fastapi
1aef3db6ce26ea054e048e5927552d48c2eccbfb
[ "MIT" ]
null
null
null
sb_backend/cli/cli.py
DmitriyGrigoriev/sb-fastapi
1aef3db6ce26ea054e048e5927552d48c2eccbfb
[ "MIT" ]
null
null
null
sb_backend/cli/cli.py
DmitriyGrigoriev/sb-fastapi
1aef3db6ce26ea054e048e5927552d48c2eccbfb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """sb-fastapi CLI root.""" import logging import click from sb_backend.cli.commands.serve import serve @click.group() @click.option( "-v", "--verbose", help="Enable verbose logging.", is_flag=True, default=False, ) def cli(**options): """sb-fastapi CLI root.""" if ...
18.78125
73
0.582363
0
0
0
0
445
0.740433
0
0
203
0.33777
1c04cbdee0c3246cf3dd07ebf05dec05475d975b
1,379
py
Python
1-Chapter/htmlcomponents.py
DSandovalFlavio/Dashboards-Plotly-Dash
58867c2e813bc9273838dec12e7bd15be25504fa
[ "MIT" ]
null
null
null
1-Chapter/htmlcomponents.py
DSandovalFlavio/Dashboards-Plotly-Dash
58867c2e813bc9273838dec12e7bd15be25504fa
[ "MIT" ]
null
null
null
1-Chapter/htmlcomponents.py
DSandovalFlavio/Dashboards-Plotly-Dash
58867c2e813bc9273838dec12e7bd15be25504fa
[ "MIT" ]
null
null
null
import dash from dash import html app = dash.Dash(__name__) app.layout = html.Div(children=[html.H1('Data Science', style = {'textAlign': 'center', 'color': '#0FD08D', 'font-size': '...
55.16
175
0.354605
0
0
0
0
0
0
0
0
409
0.296592
1c051afc13411020a3654ad65fd96dd86b2c6979
75,380
py
Python
baadalinstallation/baadal/modules/vm_helper.py
iitd-plos/baadal2.0
0496a8ddb5c0620f3448f018ba48b080b96cbe61
[ "Apache-2.0" ]
8
2017-01-30T17:40:18.000Z
2022-02-07T19:37:32.000Z
baadalinstallation/baadal/modules/vm_helper.py
iitd-plos/baadal2.0
0496a8ddb5c0620f3448f018ba48b080b96cbe61
[ "Apache-2.0" ]
null
null
null
baadalinstallation/baadal/modules/vm_helper.py
iitd-plos/baadal2.0
0496a8ddb5c0620f3448f018ba48b080b96cbe61
[ "Apache-2.0" ]
7
2016-11-08T13:38:10.000Z
2019-11-26T04:33:17.000Z
# -*- coding: utf-8 -*- ################################################################################### from gluon import current from helper import get_constant, execute_remote_cmd, config, get_datetime, \ log_exception, is_pingable, get_context_path from libvirt import * # @UnusedWildImport from log_handler ...
44.789067
237
0.655399
0
0
0
0
0
0
0
0
17,381
0.230578
1c051e0c55fbe3f232891ef1ecc26d26fcbe892f
1,152
py
Python
third_party/webrtc/src/chromium/src/build/android/devil/android/sdk/aapt.py
bopopescu/webrtc-streaming-node
727a441204344ff596401b0253caac372b714d91
[ "MIT" ]
8
2016-02-08T11:59:31.000Z
2020-05-31T15:19:54.000Z
third_party/webrtc/src/chromium/src/build/android/devil/android/sdk/aapt.py
bopopescu/webrtc-streaming-node
727a441204344ff596401b0253caac372b714d91
[ "MIT" ]
1
2016-01-29T00:54:49.000Z
2016-01-29T00:54:49.000Z
third_party/webrtc/src/chromium/src/build/android/devil/android/sdk/aapt.py
bopopescu/webrtc-streaming-node
727a441204344ff596401b0253caac372b714d91
[ "MIT" ]
7
2016-02-09T09:28:14.000Z
2020-07-25T19:03:36.000Z
# Copyright 2015 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. """This module wraps the Android Asset Packaging Tool.""" import os from devil.utils import cmd_helper from pylib import constants _AAPT_PATH = os.path.jo...
27.428571
75
0.688368
0
0
0
0
0
0
0
0
624
0.541667
1c0586c2c8dd465a0ae7f5e9116c1bf2f5320f2f
46
py
Python
examples/Tests/Misc/Resources/PythonFile/basic.py
esayui/mworks
0522e5afc1e30fdbf1e67cedd196ee50f7924499
[ "MIT" ]
null
null
null
examples/Tests/Misc/Resources/PythonFile/basic.py
esayui/mworks
0522e5afc1e30fdbf1e67cedd196ee50f7924499
[ "MIT" ]
null
null
null
examples/Tests/Misc/Resources/PythonFile/basic.py
esayui/mworks
0522e5afc1e30fdbf1e67cedd196ee50f7924499
[ "MIT" ]
null
null
null
setvar('nsamples', getvar('a') + getvar('b'))
23
45
0.608696
0
0
0
0
0
0
0
0
16
0.347826
1c0727618b7254d68a22ae858de032e6c20ddbc5
2,218
py
Python
quacc/recipes/psi4/core.py
arosen93/HT-ASE
a76542e7a2bc5bf6e7382d8f1387374eb2abc713
[ "BSD-3-Clause-LBNL" ]
9
2022-02-08T08:31:30.000Z
2022-03-30T21:37:35.000Z
quacc/recipes/psi4/core.py
arosen93/HT-ASE
a76542e7a2bc5bf6e7382d8f1387374eb2abc713
[ "BSD-3-Clause-LBNL" ]
5
2022-02-02T21:47:59.000Z
2022-03-18T21:28:52.000Z
quacc/recipes/psi4/core.py
arosen93/HT-ASE
a76542e7a2bc5bf6e7382d8f1387374eb2abc713
[ "BSD-3-Clause-LBNL" ]
3
2022-02-23T12:00:57.000Z
2022-03-24T23:54:22.000Z
"""Core recipes for Psi4""" from __future__ import annotations from dataclasses import dataclass from typing import Any, Dict from ase.atoms import Atoms from ase.calculators.psi4 import Psi4 from jobflow import Maker, job from monty.dev import requires try: import psi4 except: psi4 = None from quacc.schemas...
25.494253
84
0.587917
1,778
0.801623
0
0
1,789
0.806583
0
0
930
0.419297
1c073d575249e6f524c3e4fa1ac84edb0ff05cc7
984
py
Python
UAS/UAS 11 & 12/main.py
Archedar/UAS
3237d9304026340acc93c8f36b358578dc0ae66f
[ "BSD-Source-Code" ]
null
null
null
UAS/UAS 11 & 12/main.py
Archedar/UAS
3237d9304026340acc93c8f36b358578dc0ae66f
[ "BSD-Source-Code" ]
null
null
null
UAS/UAS 11 & 12/main.py
Archedar/UAS
3237d9304026340acc93c8f36b358578dc0ae66f
[ "BSD-Source-Code" ]
null
null
null
#Main Program from Class import Barang import Menu histori = list() listBarang = [ Barang('Rinso', 5000, 20), Barang('Sabun', 3000, 20), Barang('Pulpen', 2500, 20), Barang('Tisu', 10000, 20), Barang('Penggaris', 1000, 20) ] while True: print(''' Menu 1. Tampilkan Barang 2. Tambahkan Barang 3. Ta...
20.93617
37
0.645325
0
0
0
0
0
0
0
0
350
0.355691
1c075f34dca283714195a979ceda054e43bd4f75
13,010
py
Python
original/baselines/train/JointE+ONE.py
thunlp/JointNRE
29e2070910d0940bf4d32a8b8c97800bceff98fb
[ "MIT" ]
186
2018-01-29T09:33:59.000Z
2022-03-17T08:20:44.000Z
original/baselines/train/JointE+ONE.py
thunlp/JointNRE
29e2070910d0940bf4d32a8b8c97800bceff98fb
[ "MIT" ]
19
2018-03-01T01:55:08.000Z
2022-02-17T03:38:21.000Z
original/baselines/train/JointE+ONE.py
thunlp/JointNRE
29e2070910d0940bf4d32a8b8c97800bceff98fb
[ "MIT" ]
36
2018-02-02T06:29:29.000Z
2021-01-22T08:36:00.000Z
#coding:utf-8 import numpy as np import tensorflow as tf import os import time import datetime import ctypes import threading import json ll1 = ctypes.cdll.LoadLibrary lib_cnn = ll1("./init_cnn.so") ll2 = ctypes.cdll.LoadLibrary lib_kg = ll2("./init_know.so") class Config(object): def __init__(self): self.in...
41.301587
321
0.711299
5,440
0.41814
0
0
0
0
0
0
635
0.048809
1c076dedd327711fd82ede330f8c1964afc14a4e
7,468
py
Python
i2vec_cli/__main__.py
rachmadaniHaryono/i2vec_cli
9e03ca1c930e5eab8e42ac882c66e18f7c7435ba
[ "MIT" ]
null
null
null
i2vec_cli/__main__.py
rachmadaniHaryono/i2vec_cli
9e03ca1c930e5eab8e42ac882c66e18f7c7435ba
[ "MIT" ]
null
null
null
i2vec_cli/__main__.py
rachmadaniHaryono/i2vec_cli
9e03ca1c930e5eab8e42ac882c66e18f7c7435ba
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """get tag from http://demo.illustration2vec.net/.""" # note: # - error 'ERROR: Request Entity Too Large' for file 1.1 mb # <span style="color:red;">ERROR: Request Entity Too Large</span> from collections import OrderedDict from pathlib import Path from pprint import pformat import imghdr import ...
30.987552
98
0.644215
0
0
0
0
2,163
0.289636
0
0
1,621
0.217059
1c079634ef4058798430437eb20ed1003701c2d2
23,443
py
Python
cherrypy/lib/cptools.py
debrando/cherrypy
a92c5cc5d888b0aad327bce34e94da4a1f961e43
[ "BSD-3-Clause" ]
2
2019-03-04T15:17:49.000Z
2021-04-04T08:08:14.000Z
lib/cherrypy/lib/cptools.py
rrosajp/script.module.cherrypy
61ae795123755f3be43611e0f2667e85ef20c9d3
[ "BSD-3-Clause" ]
2
2019-11-16T13:20:55.000Z
2021-01-10T11:28:43.000Z
lib/cherrypy/lib/cptools.py
rrosajp/script.module.cherrypy
61ae795123755f3be43611e0f2667e85ef20c9d3
[ "BSD-3-Clause" ]
6
2020-05-22T15:25:34.000Z
2021-08-13T09:43:01.000Z
"""Functions for builtin CherryPy tools.""" import logging import re from hashlib import md5 import six from six.moves import urllib import cherrypy from cherrypy._cpcompat import text_or_bytes from cherrypy.lib import httputil as _httputil from cherrypy.lib import is_iterator # Conditional HTT...
36.572543
81
0.601971
4,859
0.207269
705
0.030073
0
0
0
0
9,317
0.397432
1c07bfa6e3a91882477a3925b04caaee6211dc0f
3,216
py
Python
pyiomica/utilityFunctions.py
benstear/pyiomica
bc26032b610fc911cc03b54115d6abdf53a56fce
[ "MIT" ]
null
null
null
pyiomica/utilityFunctions.py
benstear/pyiomica
bc26032b610fc911cc03b54115d6abdf53a56fce
[ "MIT" ]
null
null
null
pyiomica/utilityFunctions.py
benstear/pyiomica
bc26032b610fc911cc03b54115d6abdf53a56fce
[ "MIT" ]
null
null
null
'''Utility functions''' import multiprocessing from .globalVariables import * def readMathIOmicaData(fileName): '''Read text files exported by MathIOmica and convert to Python data Parameters: fileName: str Path of directories and name of the file containing data ...
26.578512
107
0.60852
0
0
0
0
0
0
0
0
1,679
0.522077
1c07e719407fcda373a642abe4461b09f4086e6c
4,041
py
Python
CRNitschke/get_sextract_thresholds.py
deapplegate/wtgpipeline
9693e8562022cc97bf5a96427e22965e1a5e8497
[ "MIT" ]
1
2019-03-15T04:01:19.000Z
2019-03-15T04:01:19.000Z
CRNitschke/get_sextract_thresholds.py
deapplegate/wtgpipeline
9693e8562022cc97bf5a96427e22965e1a5e8497
[ "MIT" ]
5
2017-12-11T00:11:39.000Z
2021-07-09T17:05:16.000Z
CRNitschke/get_sextract_thresholds.py
deapplegate/wtgpipeline
9693e8562022cc97bf5a96427e22965e1a5e8497
[ "MIT" ]
2
2017-08-15T21:19:11.000Z
2017-10-12T00:36:35.000Z
#! /usr/bin/env python #adam-does# runs SeeingClearly to get the seeing and rms of the image, then uses those to get sextractor thresholds for CR detection #adam-use# use with CRNitschke pipeline #adam-call_example# call it like ./get_sextract_thresholds.py /path/flname.fits output_file.txt #IO stuff: import sys ; sys...
36.736364
213
0.732739
0
0
0
0
0
0
0
0
1,848
0.457313
1c0a49535e49079808208d6bb2ff3cdc8ca96e3f
2,843
py
Python
python/labbox/api/_session.py
flatironinstitute/labbox
d8b331d55a5cca543567c3b2e92bcdc02b46e799
[ "Apache-2.0" ]
1
2021-09-23T01:10:39.000Z
2021-09-23T01:10:39.000Z
python/labbox/api/_session.py
flatironinstitute/labbox
d8b331d55a5cca543567c3b2e92bcdc02b46e799
[ "Apache-2.0" ]
null
null
null
python/labbox/api/_session.py
flatironinstitute/labbox
d8b331d55a5cca543567c3b2e92bcdc02b46e799
[ "Apache-2.0" ]
1
2021-09-23T01:10:39.000Z
2021-09-23T01:10:39.000Z
import time import multiprocessing class Session: def __init__(self, *, labbox_config, default_feed_name: str): self._labbox_config = labbox_config pipe_to_parent, pipe_to_child = multiprocessing.Pipe() self._worker_process = multiprocessing.Process(target=_run_worker_session, args=(pipe_...
38.418919
140
0.593739
1,604
0.564193
0
0
0
0
0
0
343
0.120647
1c0adf2b82d9cbfe6db20d368afa9827c211f577
8,114
py
Python
aldryn_newsblog/tests/test_reversion.py
GabrielDumbrava/aldryn-newsblog
f3be5ff78e88fde532ce4c45e5eeb88d98fa6d93
[ "BSD-3-Clause" ]
null
null
null
aldryn_newsblog/tests/test_reversion.py
GabrielDumbrava/aldryn-newsblog
f3be5ff78e88fde532ce4c45e5eeb88d98fa6d93
[ "BSD-3-Clause" ]
null
null
null
aldryn_newsblog/tests/test_reversion.py
GabrielDumbrava/aldryn-newsblog
f3be5ff78e88fde532ce4c45e5eeb88d98fa6d93
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from unittest import skipIf try: from django.core.urlresolvers import reverse except ModuleNotFoundError: from django.urls import reverse from django.db import transaction from aldryn_reversion.core import create_revision as aldryn_create_revisio...
37.391705
78
0.646537
7,261
0.894873
0
0
7,323
0.902514
0
0
940
0.115849
1c0c6c9d53be4b7690f691af9859df23fb71fa58
38,971
py
Python
network/network.py
VirtualEmbryo/lumen_network
35b1dadccd087c9ef234f12c2735098b82890b34
[ "MIT" ]
1
2019-08-02T07:41:27.000Z
2019-08-02T07:41:27.000Z
network/network.py
VirtualEmbryo/lumen_network
35b1dadccd087c9ef234f12c2735098b82890b34
[ "MIT" ]
null
null
null
network/network.py
VirtualEmbryo/lumen_network
35b1dadccd087c9ef234f12c2735098b82890b34
[ "MIT" ]
null
null
null
# Library for the dynamics of a lumen network # The lumen are 2 dimensional and symmetric and connected with 1 dimensional tubes # # Created by A. Mielke, 2018 # Modified by M. Le Verge--Serandour on 8/04/2019 """ network.py conf.init Defines the class network and associated functions Imports ...
38.700099
215
0.497575
38,440
0.986374
0
0
0
0
0
0
21,681
0.556337
1c0d361e8337d02f5fbc92a1db2b014025d1f86f
943
py
Python
scripts/upsampling_demo.py
always-newbie161/pyprobml
eb70c84f9618d68235ef9ba7da147c009b2e4a80
[ "MIT" ]
2
2021-02-26T04:36:10.000Z
2021-02-26T04:36:24.000Z
scripts/upsampling_demo.py
always-newbie161/pyprobml
eb70c84f9618d68235ef9ba7da147c009b2e4a80
[ "MIT" ]
9
2021-03-31T20:18:21.000Z
2022-03-12T00:52:47.000Z
scripts/upsampling_demo.py
always-newbie161/pyprobml
eb70c84f9618d68235ef9ba7da147c009b2e4a80
[ "MIT" ]
1
2021-06-21T01:18:07.000Z
2021-06-21T01:18:07.000Z
# Illustrate upsampling in 2d # Code from Jason Brownlee # https://machinelearningmastery.com/generative_adversarial_networks/ import tensorflow as tf from tensorflow import keras from numpy import asarray #from keras.models import Sequential from tensorflow.keras.models import Sequential #from keras.layers import...
22.452381
74
0.709438
0
0
0
0
0
0
0
0
286
0.303287
1c1095f5f37cb41b6318b6beaf6df6c400bfad6c
17,334
py
Python
V2RaycSpider1225/src/BusinessCentralLayer/scaffold.py
njchj/V2RayCloudSpider
16154cf48c74fa2c8cf2f6792d2db3632501f5d6
[ "MIT" ]
1
2021-09-28T09:38:15.000Z
2021-09-28T09:38:15.000Z
V2RaycSpider1225/src/BusinessCentralLayer/scaffold.py
njchj/V2RayCloudSpider
16154cf48c74fa2c8cf2f6792d2db3632501f5d6
[ "MIT" ]
null
null
null
V2RaycSpider1225/src/BusinessCentralLayer/scaffold.py
njchj/V2RayCloudSpider
16154cf48c74fa2c8cf2f6792d2db3632501f5d6
[ "MIT" ]
1
2021-09-09T07:22:47.000Z
2021-09-09T07:22:47.000Z
__all__ = ['scaffold', 'command_set'] from gevent import monkey monkey.patch_all() import csv import os import sys import time import shutil from typing import List import gevent from src.BusinessCentralLayer.setting import logger, DEFAULT_POWER, CHROMEDRIVER_PATH, \ REDIS_MASTER, SERVER_DIR_DATABASE_CACHE, SE...
37.038462
119
0.546267
16,524
0.866401
0
0
9,949
0.521655
0
0
7,448
0.39052
1c10af158381d3bf41fbdb21d408b7a2f5c450b9
2,336
py
Python
python/swap_header.py
daniestevez/gr-csp
0a10e4d2e5cf4a51256e5dc72aa42f8d3d54c232
[ "Unlicense" ]
19
2016-05-27T15:12:31.000Z
2021-04-19T09:42:35.000Z
python/swap_header.py
daniestevez/gr-csp
0a10e4d2e5cf4a51256e5dc72aa42f8d3d54c232
[ "Unlicense" ]
null
null
null
python/swap_header.py
daniestevez/gr-csp
0a10e4d2e5cf4a51256e5dc72aa42f8d3d54c232
[ "Unlicense" ]
5
2017-04-26T22:48:40.000Z
2022-02-19T23:49:33.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2016 Daniel Estevez <daniel@destevez.net>. # # This is free and unencumbered software released into the public domain. # # Anyone is free to copy, modify, publish, use, compile, sell, or # distribute this software, either in source code form or as a compiled ...
36.5
90
0.704195
904
0.386986
0
0
0
0
0
0
1,472
0.630137
1c10ce60247554a61b0b5d48488c8c6ceac709b6
2,149
py
Python
start.py
gleenn/dfplayer
dd390a6f54b3bd8b2a3397fddd6caacfba01b29d
[ "MIT" ]
null
null
null
start.py
gleenn/dfplayer
dd390a6f54b3bd8b2a3397fddd6caacfba01b29d
[ "MIT" ]
null
null
null
start.py
gleenn/dfplayer
dd390a6f54b3bd8b2a3397fddd6caacfba01b29d
[ "MIT" ]
null
null
null
#!/usr/bin/python # # Start dfplayer. import argparse import os import shutil import subprocess import sys import time _PROJ_DIR = os.path.dirname(__file__) def main(): os.chdir(_PROJ_DIR) os.environ['LD_LIBRARY_PATH'] = '/lib:/usr/lib:/usr/local/lib' arg_parser = argparse.ArgumentParser(description='Star...
28.653333
76
0.68497
0
0
0
0
0
0
0
0
742
0.345277
1c1159a0a2497e7a180327354c47351ca070d2d1
176
py
Python
Game_Mechanics.py
Finnder/Console-Based-Story-Game
fe5341faf82783880872560d43d286e917f5e3d7
[ "Apache-2.0" ]
null
null
null
Game_Mechanics.py
Finnder/Console-Based-Story-Game
fe5341faf82783880872560d43d286e917f5e3d7
[ "Apache-2.0" ]
null
null
null
Game_Mechanics.py
Finnder/Console-Based-Story-Game
fe5341faf82783880872560d43d286e917f5e3d7
[ "Apache-2.0" ]
null
null
null
def attack(): pass def defend(): pass def pass_turn(): pass def use_ability_One(kit): pass def use_ability_Two(kit): pass def end_Of_Battle(): pass
10.352941
25
0.636364
0
0
0
0
0
0
0
0
0
0
1c1166ff6a3e4c18665f05d1beca5c764b5fda93
3,368
py
Python
AIY/voice/cloudspeech_demo.py
Pougnator/Prometheus
d7c59f3a97b4f60958f130741ccc16b81d65f505
[ "Apache-2.0" ]
null
null
null
AIY/voice/cloudspeech_demo.py
Pougnator/Prometheus
d7c59f3a97b4f60958f130741ccc16b81d65f505
[ "Apache-2.0" ]
null
null
null
AIY/voice/cloudspeech_demo.py
Pougnator/Prometheus
d7c59f3a97b4f60958f130741ccc16b81d65f505
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2017 Google Inc. # # 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...
37.010989
94
0.58462
0
0
0
0
0
0
0
0
1,202
0.356677
1c119d6282e07a22b49176d0f6616aca7099e5dc
3,159
py
Python
options/base_option.py
lime-j/YTMT-Strategy-1
aacc38c4e61b91e187cac81aa95500e0422d4d0f
[ "Apache-2.0" ]
26
2021-11-08T07:49:34.000Z
2022-03-28T14:09:27.000Z
options/base_option.py
lime-j/YTMT-Strategy-1
aacc38c4e61b91e187cac81aa95500e0422d4d0f
[ "Apache-2.0" ]
2
2021-10-22T02:53:10.000Z
2021-12-29T12:35:13.000Z
options/base_option.py
lime-j/YTMT-Strategy-1
aacc38c4e61b91e187cac81aa95500e0422d4d0f
[ "Apache-2.0" ]
1
2021-10-18T08:00:22.000Z
2021-10-18T08:00:22.000Z
import argparse import models model_names = sorted(name for name in models.__dict__ if name.islower() and not name.startswith("__") and callable(models.__dict__[name])) class BaseOptions(): def __init__(self): self.parser = argparse.ArgumentParser(formatter_class...
65.8125
174
0.652738
2,944
0.93194
0
0
0
0
0
0
1,292
0.40899
1c11a09e91a9f24c73ca32bb8e2bc358e52c7c63
2,277
py
Python
bookstore/__init__.py
JanhaviSoni/Book-Recommendation-Analysis
d2697e1f2eb9b9b4e0bafc0dd43d486ceb3d1707
[ "MIT" ]
23
2021-01-15T15:46:45.000Z
2021-11-16T12:26:58.000Z
bookstore/__init__.py
JanhaviSoni/Book-Recommendation-Analysis
d2697e1f2eb9b9b4e0bafc0dd43d486ceb3d1707
[ "MIT" ]
108
2021-01-13T11:02:31.000Z
2022-03-21T17:47:24.000Z
bookstore/__init__.py
JanhaviSoni/Book-Recommendation-Analysis
d2697e1f2eb9b9b4e0bafc0dd43d486ceb3d1707
[ "MIT" ]
46
2021-01-14T17:27:28.000Z
2022-03-20T10:12:24.000Z
from flask import Flask, Response from flask_basicauth import BasicAuth from flask_cors import CORS, cross_origin import os #from flask_admin import Admin,AdminIndexView #from flask_admin.contrib.sqla import ModelView from flask_sqlalchemy import SQLAlchemy as _BaseSQLAlchemy from flask_migrate import Migrate, Migr...
25.021978
104
0.798858
727
0.31928
0
0
0
0
0
0
1,123
0.493193
1c11dc94f130a2807798806bad63a6da530e4ff6
8,438
py
Python
cobl/lexicon/management/commands/stats236.py
Bibiko/CoBL-public
5092a0d01b7a13565c7da6bf2f6c52d648a2debe
[ "BSD-2-Clause" ]
null
null
null
cobl/lexicon/management/commands/stats236.py
Bibiko/CoBL-public
5092a0d01b7a13565c7da6bf2f6c52d648a2debe
[ "BSD-2-Clause" ]
null
null
null
cobl/lexicon/management/commands/stats236.py
Bibiko/CoBL-public
5092a0d01b7a13565c7da6bf2f6c52d648a2debe
[ "BSD-2-Clause" ]
1
2020-04-30T11:02:51.000Z
2020-04-30T11:02:51.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.core.management import BaseCommand from cobl.lexicon.models import LanguageList, \ MeaningList, \ Meaning, \ Lexeme, \ ...
48.494253
79
0.508059
7,948
0.941929
1,484
0.175871
0
0
0
0
1,057
0.125267
1c13e64266dfbb7d662d8dc0ddfc5df3b7bd9dd2
1,809
py
Python
collation/test2.py
enabling-languages/dinka
981ffd07e7468f692c4d17472083a3c5485987f8
[ "MIT" ]
1
2018-11-13T13:34:58.000Z
2018-11-13T13:34:58.000Z
collation/test2.py
enabling-languages/dinka
981ffd07e7468f692c4d17472083a3c5485987f8
[ "MIT" ]
6
2018-07-18T23:50:31.000Z
2021-08-24T06:57:49.000Z
collation/test2.py
enabling-languages/dinka
981ffd07e7468f692c4d17472083a3c5485987f8
[ "MIT" ]
null
null
null
import pandas as pd from icu import Collator, Locale, RuleBasedCollator ddf = pd.read_csv("../word_frequency/unilex/din.txt", sep='\t', skiprows = range(2,5)) collator = Collator.createInstance(Locale('en_AU.UTF-8')) # https://stackoverflow.com/questions/13838405/custom-sorting-in-pandas-dataframe/27009771#27009771 ...
37.6875
459
0.655611
0
0
0
0
0
0
0
0
953
0.49817
1c154cd85ac8501efc488d575c2d366b73815f35
3,495
py
Python
pkgs/ops-pkg/src/genie/libs/ops/dot1x/ios/tests/test_dot1x.py
jbronikowski/genielibs
200a34e5fe4838a27b5a80d5973651b2e34ccafb
[ "Apache-2.0" ]
94
2018-04-30T20:29:15.000Z
2022-03-29T13:40:31.000Z
pkgs/ops-pkg/src/genie/libs/ops/dot1x/ios/tests/test_dot1x.py
jbronikowski/genielibs
200a34e5fe4838a27b5a80d5973651b2e34ccafb
[ "Apache-2.0" ]
67
2018-12-06T21:08:09.000Z
2022-03-29T18:00:46.000Z
pkgs/ops-pkg/src/genie/libs/ops/dot1x/ios/tests/test_dot1x.py
jbronikowski/genielibs
200a34e5fe4838a27b5a80d5973651b2e34ccafb
[ "Apache-2.0" ]
49
2018-06-29T18:59:03.000Z
2022-03-10T02:07:59.000Z
# Python import unittest from copy import deepcopy from unittest.mock import Mock # ATS from pyats.topology import Device # Genie from genie.libs.ops.dot1x.ios.dot1x import Dot1X from genie.libs.ops.dot1x.ios.tests.dot1x_output import Dot1xOutput # Parser from genie.libs.parser.ios.show_dot1x import ShowDot1xAllDeta...
30.657895
74
0.58083
2,915
0.834049
0
0
0
0
0
0
570
0.16309
1c1603d1abab233380508e0466aae61f575bb066
5,218
py
Python
script/analysis/check_transformation_matrices.py
lanl/nubhlight
6c0f2abc05884538fe8e4e2e70a021b7c48a72c2
[ "BSD-3-Clause" ]
16
2020-02-05T22:59:21.000Z
2022-03-18T11:05:37.000Z
script/analysis/check_transformation_matrices.py
lanl/nubhlight
6c0f2abc05884538fe8e4e2e70a021b7c48a72c2
[ "BSD-3-Clause" ]
13
2020-03-06T02:10:48.000Z
2021-06-15T20:00:30.000Z
script/analysis/check_transformation_matrices.py
lanl/nubhlight
6c0f2abc05884538fe8e4e2e70a021b7c48a72c2
[ "BSD-3-Clause" ]
4
2020-02-21T04:59:44.000Z
2020-12-10T21:42:12.000Z
# ====================================================================== # copyright 2020. Triad National Security, LLC. All rights # reserved. This program was produced under U.S. Government contract # 89233218CNA000001 for Los Alamos National Laboratory (LANL), which # is operated by Triad National Security, LLC for ...
28.358696
77
0.593139
0
0
0
0
0
0
0
0
3,166
0.606746
1c16c296d9a00d573be4e9e818881918f7bcc86c
73
py
Python
holobot/discord/sdk/models/channel.py
rexor12/holobot
89b7b416403d13ccfeee117ef942426b08d3651d
[ "MIT" ]
1
2021-05-24T00:17:46.000Z
2021-05-24T00:17:46.000Z
holobot/discord/sdk/models/channel.py
rexor12/holobot
89b7b416403d13ccfeee117ef942426b08d3651d
[ "MIT" ]
41
2021-03-24T22:50:09.000Z
2021-12-17T12:15:13.000Z
holobot/discord/sdk/models/channel.py
rexor12/holobot
89b7b416403d13ccfeee117ef942426b08d3651d
[ "MIT" ]
null
null
null
from dataclasses import dataclass @dataclass class Channel: id: str
12.166667
33
0.767123
26
0.356164
0
0
37
0.506849
0
0
0
0
1c1762c8ad20949427e7a540afab16d1a42370e8
13,174
py
Python
pynet/models/braingengan.py
claireguichon/pynet
92706375e61fb5cb523548303b7d04769c9de134
[ "CECILL-B" ]
8
2020-06-23T16:30:52.000Z
2021-07-27T15:07:18.000Z
pynet/models/braingengan.py
claireguichon/pynet
92706375e61fb5cb523548303b7d04769c9de134
[ "CECILL-B" ]
8
2019-12-18T17:28:47.000Z
2021-02-12T09:10:58.000Z
pynet/models/braingengan.py
claireguichon/pynet
92706375e61fb5cb523548303b7d04769c9de134
[ "CECILL-B" ]
18
2019-08-19T14:17:48.000Z
2021-12-20T03:56:39.000Z
# -*- coding: utf-8 -*- ########################################################################## # NSAp - Copyright (C) CEA, 2020 # Distributed under the terms of the CeCILL-B license, as published by # the CEA-CNRS-INRIA. Refer to the LICENSE file or to # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html #...
37.214689
76
0.587141
12,000
0.910885
0
0
12,076
0.916654
0
0
3,111
0.236147
1c192652847b82c847977050650f6dd9bf312075
7,587
py
Python
research/object_detection/core/freezable_batch_norm_test.py
baranshad/models
aaf008855e9764f32d974e86f8e1f9cfddfafd9a
[ "Apache-2.0" ]
3
2019-12-15T18:05:04.000Z
2021-04-30T16:26:04.000Z
research/object_detection/core/freezable_batch_norm_test.py
baranshad/models
aaf008855e9764f32d974e86f8e1f9cfddfafd9a
[ "Apache-2.0" ]
10
2020-01-28T23:15:47.000Z
2022-03-12T00:11:34.000Z
research/object_detection/core/freezable_batch_norm_test.py
baranshad/models
aaf008855e9764f32d974e86f8e1f9cfddfafd9a
[ "Apache-2.0" ]
5
2020-06-02T09:14:45.000Z
2022-02-05T17:32:44.000Z
# Copyright 2018 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...
41.010811
80
0.63991
6,689
0.88164
0
0
0
0
0
0
1,761
0.232108
1c1a874f462704bb21b985ac2653cb99f9e8cd06
351
py
Python
offspect/gui/VWidgets/message.py
translationalneurosurgery/tool-offspect
011dafb697e8542fc7c3cf8af8523af3ff704a14
[ "MIT" ]
1
2022-02-23T12:26:45.000Z
2022-02-23T12:26:45.000Z
offspect/gui/VWidgets/message.py
neuromti/tool-offspect
011dafb697e8542fc7c3cf8af8523af3ff704a14
[ "MIT" ]
51
2020-03-15T14:52:36.000Z
2020-09-28T09:30:53.000Z
offspect/gui/VWidgets/message.py
neuromti/tool-offspect
011dafb697e8542fc7c3cf8af8523af3ff704a14
[ "MIT" ]
1
2020-03-24T07:35:30.000Z
2020-03-24T07:35:30.000Z
# from PyQt5.QtWidgets import QMessageBox # def raise_error(message: str = "DEFAULT:Error Description:More Information"): # box = QMessageBox() # kind, msg, info = message.split(":") # box.setIcon(QMessageBox.Critical) # box.setWindowTitle(kind + " Error") # box.setText(msg) # box.setInformati...
29.25
79
0.669516
0
0
0
0
0
0
0
0
340
0.968661
1c1a9dfbfb88778f3a6aa8f06f925295c99a8f4b
3,182
py
Python
Widen/LC759_Employee_Free_Time.py
crazywiden/Leetcode_daily_submit
15637e260ab547022ac0c828dd196337bd8d50a3
[ "MIT" ]
null
null
null
Widen/LC759_Employee_Free_Time.py
crazywiden/Leetcode_daily_submit
15637e260ab547022ac0c828dd196337bd8d50a3
[ "MIT" ]
null
null
null
Widen/LC759_Employee_Free_Time.py
crazywiden/Leetcode_daily_submit
15637e260ab547022ac0c828dd196337bd8d50a3
[ "MIT" ]
null
null
null
""" 759. Employee Free Time We are given a list schedule of employees, which represents the working time for each employee. Each employee has a list of non-overlapping Intervals, and these intervals are in sorted order. Return the list of finite intervals representing common, positive-length free time for all employe...
38.804878
309
0.634192
1,561
0.490572
0
0
0
0
0
0
1,636
0.514142
1c1aaaf29009692c2f76cb9c4300ce895525d07d
1,333
py
Python
storitch/config.py
thomaserlang/storitch
dbcf97af547d9cb1ae5c3994654e8db03e43a253
[ "MIT" ]
null
null
null
storitch/config.py
thomaserlang/storitch
dbcf97af547d9cb1ae5c3994654e8db03e43a253
[ "MIT" ]
1
2022-03-03T00:35:08.000Z
2022-03-03T00:35:08.000Z
storitch/config.py
thomaserlang/storitch
dbcf97af547d9cb1ae5c3994654e8db03e43a253
[ "MIT" ]
null
null
null
import os, yaml config = { 'debug': False, 'port': 5000, 'store_path': '/var/storitch', 'pool_size': 5, 'logging': { 'level': 'warning', 'path': None, 'max_size': 100 * 1000 * 1000,# ~ 95 mb 'num_backups': 10, }, 'image_exts': [ '.jpg', '.jpeg', '.png...
28.361702
72
0.487622
0
0
0
0
0
0
0
0
384
0.288072
1c1c06a5f2fd1746b831968ec2394fc2e3c54a63
3,727
py
Python
keras/lstm-securitai/model/pipeline_invoke_python.py
PipelineAI/models
d8df07877aa8b10ce9b84983bb440af75e84dca7
[ "Apache-2.0" ]
44
2017-11-17T06:19:05.000Z
2021-11-03T06:00:56.000Z
keras/lstm-securitai/model/pipeline_invoke_python.py
PipelineAI/models
d8df07877aa8b10ce9b84983bb440af75e84dca7
[ "Apache-2.0" ]
3
2018-08-09T14:28:17.000Z
2018-09-10T03:32:42.000Z
keras/lstm-securitai/model/pipeline_invoke_python.py
PipelineAI/models
d8df07877aa8b10ce9b84983bb440af75e84dca7
[ "Apache-2.0" ]
21
2017-11-18T15:12:12.000Z
2020-08-15T07:08:33.000Z
import io import os import numpy as np import pandas import json import logging #<== Optional. Log to console, file, kafka from pipeline_monitor import prometheus_monitor as monitor #<== Optional. Monitor runtime metrics from pipeline_logger import log import tenso...
38.822917
127
0.648779
0
0
0
0
0
0
0
0
1,214
0.325731
1c1cd0e44417cd753d2dd2376c6b05a4b1e765f1
9,465
py
Python
src/act/common/aCTReport.py
ATLASControlTower/aCT
fb841bddbe086db9f0d620167c4a11ae4634ef4f
[ "Apache-2.0" ]
null
null
null
src/act/common/aCTReport.py
ATLASControlTower/aCT
fb841bddbe086db9f0d620167c4a11ae4634ef4f
[ "Apache-2.0" ]
8
2019-12-12T14:41:50.000Z
2020-12-04T21:06:44.000Z
src/act/common/aCTReport.py
ATLASControlTower/aCT
fb841bddbe086db9f0d620167c4a11ae4634ef4f
[ "Apache-2.0" ]
4
2018-02-05T11:25:20.000Z
2018-07-19T09:53:13.000Z
import argparse import importlib import os import re import signal import subprocess import sys import time import logging from act.common import aCTLogger from act.common.aCTConfig import aCTConfigAPP from act.arc import aCTDBArc class aCTReport: '''Print summary info on jobs in DB. Use --web to print html that ...
32.979094
123
0.481247
8,477
0.895615
0
0
0
0
0
0
2,312
0.244268
1c1fc5837c8db7a7bfccee73b5ceb661f8e4a0b9
3,477
py
Python
unittests/test_apiv2_user.py
mtcolman/django-DefectDojo
76175aca446e077884bdb5e1d8e2a671a0840775
[ "BSD-3-Clause" ]
249
2016-09-06T21:04:40.000Z
2018-01-19T15:59:44.000Z
unittests/test_apiv2_user.py
mtcolman/django-DefectDojo
76175aca446e077884bdb5e1d8e2a671a0840775
[ "BSD-3-Clause" ]
275
2021-02-19T15:16:15.000Z
2022-03-31T21:09:29.000Z
unittests/test_apiv2_user.py
mtcolman/django-DefectDojo
76175aca446e077884bdb5e1d8e2a671a0840775
[ "BSD-3-Clause" ]
152
2016-09-06T21:04:54.000Z
2018-01-18T08:52:24.000Z
from rest_framework.test import APITestCase, APIClient from django.urls import reverse from rest_framework.authtoken.models import Token class UserTest(APITestCase): """ Test the User APIv2 endpoint. """ fixtures = ['dojo_testdata.json'] def setUp(self): token = Token.objects.get(user__us...
39.067416
100
0.581823
3,337
0.959735
0
0
0
0
0
0
937
0.269485
1c20efc185d3c6e0666c4268894d9c9ea652083d
371
py
Python
src/init.py
ankit-kushwaha-51/RESTful_API
4513e8a058cb0200b41d47830b93b8a23ea38d7b
[ "MIT" ]
null
null
null
src/init.py
ankit-kushwaha-51/RESTful_API
4513e8a058cb0200b41d47830b93b8a23ea38d7b
[ "MIT" ]
null
null
null
src/init.py
ankit-kushwaha-51/RESTful_API
4513e8a058cb0200b41d47830b93b8a23ea38d7b
[ "MIT" ]
null
null
null
from flask import Flask from src.models import db from . import config def create_app(): flask_app = Flask(__name__) flask_app.config['SQLALCHEMY_DATABASE_URI'] = config.DATABASE_CONNECTION_URI flask_app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False flask_app.app_context().push() db.init_app(f...
24.733333
80
0.752022
0
0
0
0
0
0
0
0
57
0.153639
1c234ce8283c844cd60cb5760e7b8e156d4ade05
310
py
Python
tests/helpers/examples/order/tasks.py
nicoddemus/dependencies
74180e2c6098d8ad03bc53c5703bdf8dc61c3ed9
[ "BSD-2-Clause" ]
null
null
null
tests/helpers/examples/order/tasks.py
nicoddemus/dependencies
74180e2c6098d8ad03bc53c5703bdf8dc61c3ed9
[ "BSD-2-Clause" ]
null
null
null
tests/helpers/examples/order/tasks.py
nicoddemus/dependencies
74180e2c6098d8ad03bc53c5703bdf8dc61c3ed9
[ "BSD-2-Clause" ]
null
null
null
from dependencies import Injector from dependencies import this from dependencies.contrib.celery import shared_task from examples.order.commands import ProcessOrder @shared_task class ProcessOrderTask(Injector): name = "process_order" run = ProcessOrder bind = True retry = this.task.retry
20.666667
51
0.783871
129
0.416129
0
0
142
0.458065
0
0
15
0.048387
1c23b751e4593238c12f386d607b9cb57efba768
115
py
Python
001 - 050/ex032.py
SocrammBR/Desafios-Python-CursoEmVideo
bd2454a24134500343ece91b936c169d3a66f89e
[ "MIT" ]
null
null
null
001 - 050/ex032.py
SocrammBR/Desafios-Python-CursoEmVideo
bd2454a24134500343ece91b936c169d3a66f89e
[ "MIT" ]
null
null
null
001 - 050/ex032.py
SocrammBR/Desafios-Python-CursoEmVideo
bd2454a24134500343ece91b936c169d3a66f89e
[ "MIT" ]
null
null
null
ano = int(input('Digite o ano: ')) if (ano%4) == 0: print ('Ele é bissexto') else: print ('Ele não é bissexto')
23
34
0.6
0
0
0
0
0
0
0
0
55
0.466102
1c245bb9f12c18581a3c0f8f320d7e2f0d45632a
42
py
Python
rn/__init__.py
vikneswaran20/rn
33e0bfaf58bb8a5ec54c6d010035693b35e9909d
[ "BSD-3-Clause" ]
null
null
null
rn/__init__.py
vikneswaran20/rn
33e0bfaf58bb8a5ec54c6d010035693b35e9909d
[ "BSD-3-Clause" ]
null
null
null
rn/__init__.py
vikneswaran20/rn
33e0bfaf58bb8a5ec54c6d010035693b35e9909d
[ "BSD-3-Clause" ]
null
null
null
__version__ = '0.0.1' __license__ = 'BSD'
14
21
0.666667
0
0
0
0
0
0
0
0
12
0.285714
1c25a6c39831217b32cbaed42c9755b9bd09bf27
7,655
py
Python
flexmeasures/cli/data_edit.py
FlexMeasures/flexmeasures
a4367976d37ac5721b8eb3ce8a2414595e52c678
[ "Apache-2.0" ]
12
2021-12-18T10:41:10.000Z
2022-03-29T23:00:29.000Z
flexmeasures/cli/data_edit.py
FlexMeasures/flexmeasures
a4367976d37ac5721b8eb3ce8a2414595e52c678
[ "Apache-2.0" ]
103
2021-12-07T08:51:15.000Z
2022-03-31T13:28:48.000Z
flexmeasures/cli/data_edit.py
FlexMeasures/flexmeasures
a4367976d37ac5721b8eb3ce8a2414595e52c678
[ "Apache-2.0" ]
3
2022-01-18T04:45:48.000Z
2022-03-14T09:48:22.000Z
from datetime import timedelta from typing import Union, List, Optional import click import pandas as pd from flask import current_app as app from flask.cli import with_appcontext from flexmeasures import Sensor from flexmeasures.data import db from flexmeasures.data.schemas.generic_assets import GenericAssetIdField ...
31.502058
189
0.679556
0
0
0
0
5,931
0.774788
0
0
2,172
0.283736
1c25d14605a86b5c88bbbc4dc7cdc7e4ecc3b9b3
216
py
Python
semana2/mail_settings.py
ArseniumGX/bluemer-modulo2
24e5071b734de362dc47ef9d402c191699d15b43
[ "MIT" ]
null
null
null
semana2/mail_settings.py
ArseniumGX/bluemer-modulo2
24e5071b734de362dc47ef9d402c191699d15b43
[ "MIT" ]
null
null
null
semana2/mail_settings.py
ArseniumGX/bluemer-modulo2
24e5071b734de362dc47ef9d402c191699d15b43
[ "MIT" ]
null
null
null
mail_settings = { "MAIL_SERVER": 'smtp.gmail.com', "MAIL_PORT": 465, "MAIL_USE_TLS": False, "MAIL_USE_SSL": True, "MAIL_USERNAME": 'c003.teste.jp@gmail.com', "MAIL_PASSWORD": 'C003.teste' }
27
47
0.625
0
0
0
0
0
0
0
0
135
0.625
1c25eef341ba86ac217ef07e6815f7ede8df615f
3,071
py
Python
frame/base/parser.py
dingjingmaster/blog_spider
7a0885bf886166eac0caca4471ee9f6424be2225
[ "MIT" ]
null
null
null
frame/base/parser.py
dingjingmaster/blog_spider
7a0885bf886166eac0caca4471ee9f6424be2225
[ "MIT" ]
null
null
null
frame/base/parser.py
dingjingmaster/blog_spider
7a0885bf886166eac0caca4471ee9f6424be2225
[ "MIT" ]
null
null
null
#!/usr/bin/env python3.6 # -*- encoding=utf8 -*- import pyquery """ 需求字段: 標題、發表日期、分類、標籤、內容、圖片 需要的字段信息 1. 网站根URL 2. 解析器名字 3. 解析器类型 1. PARSER_PASSAGE_URL 文章URL 2. PARSER_PASSAGE_TITLE 文章标题 3. PARSER_PASSAGE_DATE ...
31.659794
71
0.552914
2,510
0.780715
0
0
99
0.030793
0
0
732
0.227683
1c2623d238b3de2bae87d9eae327584f97cd5fb9
6,341
py
Python
tools/mkblocks.py
Commodore-Bench/u5remastered
02c7ed86055e368b97d3c3c5ca26622782bd564d
[ "Apache-2.0" ]
14
2020-02-07T06:55:40.000Z
2022-01-15T19:54:00.000Z
tools/mkblocks.py
Commodore-Bench/u5remastered
02c7ed86055e368b97d3c3c5ca26622782bd564d
[ "Apache-2.0" ]
1
2021-11-21T23:06:24.000Z
2021-11-21T23:06:24.000Z
tools/mkblocks.py
Commodore-Bench/u5remastered
02c7ed86055e368b97d3c3c5ca26622782bd564d
[ "Apache-2.0" ]
3
2020-02-22T13:48:18.000Z
2021-04-06T17:09:43.000Z
#!/usr/bin/env python3 # ---------------------------------------------------------------------------- # Copyright 2019 Drunella # # 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:/...
32.352041
109
0.598171
0
0
0
0
0
0
0
0
1,867
0.294433
1c27318c3cab57ef8dbbc5271fbb6a638278cdd3
5,079
py
Python
src/apetest/decode.py
boxingbeetle/apetest
c6dd7aaca014c64eec4bde7e755c4a3dec72404a
[ "BSD-3-Clause" ]
6
2019-04-01T09:42:31.000Z
2020-05-20T15:23:17.000Z
src/apetest/decode.py
boxingbeetle/apetest
c6dd7aaca014c64eec4bde7e755c4a3dec72404a
[ "BSD-3-Clause" ]
31
2019-02-04T11:38:32.000Z
2022-03-03T02:51:15.000Z
src/apetest/decode.py
boxingbeetle/apetest
c6dd7aaca014c64eec4bde7e755c4a3dec72404a
[ "BSD-3-Clause" ]
null
null
null
# SPDX-License-Identifier: BSD-3-Clause """ Text decode functions. These functions can be used to get Unicode strings from a series of bytes. """ from codecs import ( BOM_UTF8, BOM_UTF16_BE, BOM_UTF16_LE, BOM_UTF32_BE, BOM_UTF32_LE, CodecInfo, lookup as lookup_codec, ) from collections im...
30.596386
88
0.620398
0
0
0
0
0
0
0
0
2,541
0.500295
1c27cd5f5bfc380cd284613d082bf0df751fd64e
43,000
py
Python
utils.py
jiangycTarheel/Compositional-Auxseq
e4645a92c21c893cd320eb186c19d392bc147b43
[ "MIT" ]
8
2021-10-02T00:08:27.000Z
2022-02-15T17:23:14.000Z
utils.py
jiangycTarheel/compositional-auxseq
e4645a92c21c893cd320eb186c19d392bc147b43
[ "MIT" ]
null
null
null
utils.py
jiangycTarheel/compositional-auxseq
e4645a92c21c893cd320eb186c19d392bc147b43
[ "MIT" ]
null
null
null
import os import json import gzip from copy import deepcopy, copy import numpy as np import csv import torch import torch.nn as nn import torch.nn.functional as F from torch.utils.data import Dataset, DataLoader, RandomSampler from transformers.tokenization_utils import trim_batch class LabelSmoothingLoss(nn.Module)...
49.768519
158
0.548721
38,424
0.893581
0
0
790
0.018372
0
0
8,297
0.192953
1c27f0ef99cad37dbc55d60ec83e6ae7afff0829
3,484
py
Python
bridger/serializers/fields/related.py
intellineers/django-bridger
ed097984a99df7da40a4d01bd00c56e3c6083056
[ "BSD-3-Clause" ]
2
2020-03-17T00:53:23.000Z
2020-07-16T07:00:33.000Z
bridger/serializers/fields/related.py
intellineers/django-bridger
ed097984a99df7da40a4d01bd00c56e3c6083056
[ "BSD-3-Clause" ]
76
2019-12-05T01:15:57.000Z
2021-09-07T16:47:27.000Z
bridger/serializers/fields/related.py
intellineers/django-bridger
ed097984a99df7da40a4d01bd00c56e3c6083056
[ "BSD-3-Clause" ]
1
2020-02-05T15:09:47.000Z
2020-02-05T15:09:47.000Z
from typing import Dict from rest_framework import serializers from rest_framework.fields import empty from rest_framework.relations import ManyRelatedField from rest_framework.request import Request from .mixins import BridgerSerializerFieldMixin from .types import BridgerType, ReturnContentType class BridgerManyR...
34.156863
104
0.639208
3,175
0.911309
0
0
292
0.083812
0
0
778
0.223307
1c28644cccaa9b7ccc104007acdb7fe41da7c7ad
1,198
py
Python
python/graphscope/experimental/nx/tests/algorithms/forward/operators/test_product.py
wenyuanyu/GraphScope
a40ccaf70557e608d8b091eb25ab04477f99ce21
[ "Apache-2.0" ]
2
2020-12-15T08:42:10.000Z
2022-01-14T09:13:16.000Z
python/graphscope/experimental/nx/tests/algorithms/forward/operators/test_product.py
wenyuanyu/GraphScope
a40ccaf70557e608d8b091eb25ab04477f99ce21
[ "Apache-2.0" ]
1
2020-12-22T13:15:40.000Z
2020-12-22T13:15:40.000Z
python/graphscope/experimental/nx/tests/algorithms/forward/operators/test_product.py
wenyuanyu/GraphScope
a40ccaf70557e608d8b091eb25ab04477f99ce21
[ "Apache-2.0" ]
1
2021-11-23T03:40:43.000Z
2021-11-23T03:40:43.000Z
import networkx.algorithms.operators.tests.test_product import pytest from graphscope.experimental.nx.utils.compat import import_as_graphscope_nx import_as_graphscope_nx(networkx.algorithms.operators.tests.test_product, decorators=pytest.mark.usefixtures("graphscope_session")) def test_tenso...
27.860465
81
0.724541
0
0
0
0
190
0.158598
0
0
124
0.103506
1c29c6717099eef5374f68ca8190022df79ffc51
4,574
py
Python
Footy/UnsupportedBantzStrings.py
schleising/banter-bot
3e51453ae993d2c26dc51464a3cef3875a6be3c9
[ "Apache-2.0" ]
null
null
null
Footy/UnsupportedBantzStrings.py
schleising/banter-bot
3e51453ae993d2c26dc51464a3cef3875a6be3c9
[ "Apache-2.0" ]
2
2022-03-27T10:44:38.000Z
2022-03-28T19:24:39.000Z
Footy/UnsupportedBantzStrings.py
schleising/banter-bot
3e51453ae993d2c26dc51464a3cef3875a6be3c9
[ "Apache-2.0" ]
1
2022-03-28T11:45:47.000Z
2022-03-28T11:45:47.000Z
# {team} -> Name of team # {name} -> Name of person who supports team teamMatchStarted: list[str] = [ "{team} are shit", "{team} cunts", "Dirty {team}", "Dirty {team}, dirty {name}", ] drawing: list[str] = [ "{team} level, this is a shit match", "Boring old {team}", "Happy with how it's go...
34.390977
131
0.622868
0
0
0
0
0
0
0
0
3,638
0.795191
1c29cd725d84cf362de4c0b82dab4a78ea1506c5
128
py
Python
bench/fibrec.py
codr7/alisp
05ac47ab2c28683373af4ec80e5a94937390fa6c
[ "MIT" ]
8
2021-09-04T10:18:49.000Z
2022-01-10T01:05:13.000Z
bench/fibrec.py
codr7/alisp
05ac47ab2c28683373af4ec80e5a94937390fa6c
[ "MIT" ]
null
null
null
bench/fibrec.py
codr7/alisp
05ac47ab2c28683373af4ec80e5a94937390fa6c
[ "MIT" ]
2
2021-10-05T11:00:14.000Z
2021-10-11T05:54:59.000Z
from bench import bench print(bench(100, ''' def fib(n): return n if n < 2 else fib(n-1) + fib(n-2) ''', ''' fib(20) '''))
14.222222
44
0.546875
0
0
0
0
0
0
0
0
81
0.632813
1c2a4f856378f5f6862c783cf6cd99f449623c3f
3,271
py
Python
nlpir/native/classifier.py
NLPIR-team/nlpir-python
029f81e69ee561725fa017dce09cfd55acb34d20
[ "MIT" ]
18
2021-01-01T03:07:17.000Z
2022-03-20T11:25:46.000Z
nlpir/native/classifier.py
yangyaofei/nlpir-python
af7bca9e2c3ba5f07316364da8f5e46a2bbc7c52
[ "MIT" ]
23
2020-12-04T07:10:09.000Z
2022-03-10T09:39:26.000Z
nlpir/native/classifier.py
yangyaofei/nlpir-python
af7bca9e2c3ba5f07316364da8f5e46a2bbc7c52
[ "MIT" ]
13
2020-10-23T13:38:26.000Z
2022-03-18T12:10:10.000Z
# coding=utf-8 from nlpir.native.nlpir_base import NLPIRBase from ctypes import c_bool, c_char_p, c_int, POINTER, Structure, c_float class StDoc(Structure): __fields__ = [ ("sTitle", c_char_p), ("sContent", c_char_p), ("sAuthor", c_char_p), ("sBoard", c_char_p), ("sDatatype...
27.957265
112
0.597982
3,568
0.962503
0
0
3,284
0.885892
0
0
2,000
0.53952
1c2af8e5727d2303652df4218b453994acacde5b
1,875
py
Python
tests/param/get_param_type_spec_test.py
nickgaya/bravado-core
16e752963bfceb4adfa43724085bc4127eefcd59
[ "BSD-3-Clause" ]
122
2015-04-22T17:31:18.000Z
2021-11-08T10:29:57.000Z
tests/param/get_param_type_spec_test.py
nickgaya/bravado-core
16e752963bfceb4adfa43724085bc4127eefcd59
[ "BSD-3-Clause" ]
364
2015-04-10T22:19:23.000Z
2022-02-25T08:55:10.000Z
tests/param/get_param_type_spec_test.py
nickgaya/bravado-core
16e752963bfceb4adfa43724085bc4127eefcd59
[ "BSD-3-Clause" ]
118
2015-04-20T15:11:53.000Z
2021-12-09T10:03:34.000Z
# -*- coding: utf-8 -*- import pytest from mock import Mock from bravado_core.exception import SwaggerMappingError from bravado_core.operation import Operation from bravado_core.param import get_param_type_spec from bravado_core.param import Param from bravado_core.spec import Spec @pytest.fixture def body_param_spe...
31.25
76
0.678933
0
0
0
0
223
0.118933
0
0
319
0.170133
1c2b194566a9e96dba834338ec915a2289eb1837
682
py
Python
functions/markdown-to-html/markdown2html.py
truls/faas-profiler
d54ca0d9926f38c693f616ba4d08414aea823f51
[ "MIT" ]
null
null
null
functions/markdown-to-html/markdown2html.py
truls/faas-profiler
d54ca0d9926f38c693f616ba4d08414aea823f51
[ "MIT" ]
null
null
null
functions/markdown-to-html/markdown2html.py
truls/faas-profiler
d54ca0d9926f38c693f616ba4d08414aea823f51
[ "MIT" ]
null
null
null
# Copyright (c) 2019 Princeton University # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from markdown import markdown import base64 import json import base64 def main(params): try: md = json.loads(base64.decodebytes(params["__...
29.652174
108
0.690616
0
0
0
0
0
0
0
0
312
0.457478