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
b5dde242388a3c0b90abd4420143d4c4d72acbeb
914
py
Python
docker_retag/utils/auth_helper.py
aiopsclub/docker_retag
0019917b0cdd7860c7ff79afdb78101878f5c1b1
[ "MIT" ]
null
null
null
docker_retag/utils/auth_helper.py
aiopsclub/docker_retag
0019917b0cdd7860c7ff79afdb78101878f5c1b1
[ "MIT" ]
null
null
null
docker_retag/utils/auth_helper.py
aiopsclub/docker_retag
0019917b0cdd7860c7ff79afdb78101878f5c1b1
[ "MIT" ]
null
null
null
#!/usr/bin/env python import requests def kv2dict(kvinfo): kv = {} for item in kvinfo.split(","): item_list = item.split("=") kv[item_list[0]] = item_list[1].strip('"') return kv def get_service_realm(registry_url): registry_api_url = ( registry_url if registry_url.endswith("...
26.114286
80
0.682713
0
0
0
0
0
0
0
0
97
0.106127
b5de2f232c7693a7a9e178d8efeaacaaaf172cb4
1,081
py
Python
app/__init__.py
SomeoneLixin/api-dock
3958a3a3286ae7f8802df9aba5ece2908ca4361e
[ "MIT" ]
4
2018-05-07T15:39:17.000Z
2019-07-03T21:28:10.000Z
app/__init__.py
SomeoneLixin/api-dock
3958a3a3286ae7f8802df9aba5ece2908ca4361e
[ "MIT" ]
4
2020-09-05T10:57:19.000Z
2021-05-09T16:01:22.000Z
app/__init__.py
SomeoneLixin/api-dock
3958a3a3286ae7f8802df9aba5ece2908ca4361e
[ "MIT" ]
1
2018-05-09T07:57:03.000Z
2018-05-09T07:57:03.000Z
from flask import Flask, g from flask_cors import CORS from flask_jwt_extended import JWTManager from config import config from app.models import db, ma from app.models.RevokedToken import RevokedToken def create_app(config_name): app = Flask(__name__) CORS(app, resources={r"/api/*": {"origins": "*"}}) ap...
29.216216
80
0.719704
0
0
0
0
286
0.26457
0
0
206
0.190564
b5df02ad3bc4934c674cd77a38e8acef0d4d0b9f
730
py
Python
Snippets/auto_scroll.py
ColinShark/Pyrogram-Snippets
50ede9ca9206bd6d66c6877217b4a80b4f845294
[ "WTFPL" ]
59
2021-01-07T16:19:48.000Z
2022-02-22T06:56:36.000Z
Snippets/auto_scroll.py
Mrvishal2k2/Pyrogram-Snippets
d4e66876f6aff1252dfb88423fedd66e18057446
[ "WTFPL" ]
4
2019-10-14T14:02:38.000Z
2020-11-06T11:47:03.000Z
Snippets/auto_scroll.py
ColinShark/Pyrogram-Snippets
50ede9ca9206bd6d66c6877217b4a80b4f845294
[ "WTFPL" ]
26
2021-03-02T14:31:51.000Z
2022-03-23T21:19:14.000Z
# Send .autoscroll in any chat to automatically read all sent messages until you call # .autoscroll again. This is useful if you have Telegram open on another screen. from pyrogram import Client, filters from pyrogram.types import Message app = Client("my_account") f = filters.chat([]) @app.on_message(f) def auto_...
25.172414
85
0.710959
0
0
0
0
422
0.578082
0
0
238
0.326027
b5e13346685449cfbebc7876faf4f41723fbe5c9
2,977
py
Python
_demos/paint.py
imdaveho/intermezzo
3fe4824a747face996e301ca5190caec0cb0a6fd
[ "MIT" ]
8
2018-02-26T16:24:07.000Z
2021-06-30T07:40:52.000Z
_demos/paint.py
imdaveho/intermezzo
3fe4824a747face996e301ca5190caec0cb0a6fd
[ "MIT" ]
null
null
null
_demos/paint.py
imdaveho/intermezzo
3fe4824a747face996e301ca5190caec0cb0a6fd
[ "MIT" ]
null
null
null
from intermezzo import Intermezzo as mzo curCol = [0] curRune = [0] backbuf = [] bbw, bbh = 0, 0 runes = [' ', '░', '▒', '▓', '█'] colors = [ mzo.color("Black"), mzo.color("Red"), mzo.color("Green"), mzo.color("Yellow"), mzo.color("Blue"), mzo.color("Magenta"), mzo.color("Cyan"), mzo.c...
29.186275
88
0.518979
0
0
0
0
0
0
0
0
296
0.099162
b5e16df4333ead8fee7050f33874cfa2a8d52eb0
1,896
py
Python
amt/media_reader_cli.py
lsxta/amt
7dcff9b1ce570abe103d0d8c50fd334f2c93af7d
[ "MIT" ]
5
2021-12-22T08:49:23.000Z
2022-02-22T12:38:40.000Z
amt/media_reader_cli.py
lsxta/amt
7dcff9b1ce570abe103d0d8c50fd334f2c93af7d
[ "MIT" ]
1
2022-01-30T00:51:05.000Z
2022-02-03T04:59:42.000Z
amt/media_reader_cli.py
lsxta/amt
7dcff9b1ce570abe103d0d8c50fd334f2c93af7d
[ "MIT" ]
1
2022-01-29T09:38:16.000Z
2022-01-29T09:38:16.000Z
import logging from .media_reader import MediaReader from .util.media_type import MediaType class MediaReaderCLI(MediaReader): auto_select = False def print_results(self, results): for i, media_data in enumerate(results): print("{:4}| {}\t{} {} ({})".format(i, media_data.global_id, media...
38.693878
188
0.642405
1,800
0.949367
0
0
0
0
0
0
154
0.081224
b5e250ffeccc9fb9e0d710d9d521ebecc7097405
1,272
py
Python
src/webapi/libs/deps/__init__.py
VisionTale/StreamHelper
29a5e5d5c68401f2c1d1b9cf54a7c68fb41d623a
[ "MIT" ]
null
null
null
src/webapi/libs/deps/__init__.py
VisionTale/StreamHelper
29a5e5d5c68401f2c1d1b9cf54a7c68fb41d623a
[ "MIT" ]
37
2020-12-16T06:30:22.000Z
2022-03-28T03:04:28.000Z
src/webapi/libs/deps/__init__.py
VisionTale/StreamHelper
29a5e5d5c68401f2c1d1b9cf54a7c68fb41d623a
[ "MIT" ]
null
null
null
""" Dependency management package. """ def debug_print(message: str, verbose: bool): """ Print if verbose is set to true. :param message: message to print :param verbose: whether to print :return: """ if verbose: print(message) def download_and_unzip_archive(url: str, zip_file_f...
30.285714
122
0.677673
0
0
0
0
0
0
0
0
663
0.521226
b5e3ba2877ce6a63efd56ee6ed3e28f80e3fe47d
1,096
py
Python
fixture/soap.py
DiastroniX/python_training_mantis
86f145285bea716246788d7967e1de7c23661bae
[ "Apache-2.0" ]
null
null
null
fixture/soap.py
DiastroniX/python_training_mantis
86f145285bea716246788d7967e1de7c23661bae
[ "Apache-2.0" ]
null
null
null
fixture/soap.py
DiastroniX/python_training_mantis
86f145285bea716246788d7967e1de7c23661bae
[ "Apache-2.0" ]
null
null
null
from suds.client import Client from suds import WebFault from model.project import Project class SoapHelper: def __init__(self, app): self.app = app def can_login(self, username, password): client = Client("http://localhost/mantisbt-1.2.20/api/soap/mantisconnect.php?wsdl") try: ...
34.25
117
0.588504
1,003
0.915146
0
0
0
0
0
0
172
0.156934
b5e50a13752cec91e8412a4602fb057eaceaa6b0
1,113
py
Python
demos/runner/validate.py
Tanbobobo/DL-starter
be4678171bd51ae9e4f61079fa6422e3378d7ce4
[ "Apache-2.0" ]
null
null
null
demos/runner/validate.py
Tanbobobo/DL-starter
be4678171bd51ae9e4f61079fa6422e3378d7ce4
[ "Apache-2.0" ]
null
null
null
demos/runner/validate.py
Tanbobobo/DL-starter
be4678171bd51ae9e4f61079fa6422e3378d7ce4
[ "Apache-2.0" ]
null
null
null
import torch import wandb def val( criterion=None, metric=None, loader=None, model=None, device=None ): r''' Args: criterion: a differentiable function to provide gratitude for backward metric: a score to save best model loader: a ...
27.146341
98
0.574124
0
0
0
0
0
0
0
0
391
0.351303
b5e65e7ea71fdd5c4688f420edd49d985bd3eb75
89
py
Python
coding/calculate-5-6/code.py
mowshon/python-quiz
215fb23dbb0fa42b438f988e49172b87b48bade3
[ "MIT" ]
2
2020-07-17T21:08:26.000Z
2020-08-16T03:12:07.000Z
coding/calculate-5-6/code.py
mowshon/python-quiz
215fb23dbb0fa42b438f988e49172b87b48bade3
[ "MIT" ]
2
2021-06-08T22:04:35.000Z
2022-01-13T03:03:32.000Z
coding/calculate-5-6/code.py
mowshon/python-quiz
215fb23dbb0fa42b438f988e49172b87b48bade3
[ "MIT" ]
null
null
null
def calculate(num1, num2=4): res = num1 * num2 print(res) print(calculate(5, 6))
17.8
28
0.629213
0
0
0
0
0
0
0
0
0
0
b5e76e091ee3230443db9902e3df57b4dbeb04c4
4,428
py
Python
plot_fig07e_varying.py
victorcroisfelt/cf-ra-spatial-separability
60611c85079dd13848c70e3192331ea2a9f55138
[ "MIT" ]
null
null
null
plot_fig07e_varying.py
victorcroisfelt/cf-ra-spatial-separability
60611c85079dd13848c70e3192331ea2a9f55138
[ "MIT" ]
null
null
null
plot_fig07e_varying.py
victorcroisfelt/cf-ra-spatial-separability
60611c85079dd13848c70e3192331ea2a9f55138
[ "MIT" ]
2
2022-01-08T12:18:43.000Z
2022-02-23T07:59:18.000Z
######################################## # plot_fig07d_anaa_practical.py # # Description. Script used to actually plot Fig. 07 (d) of the paper. # # Author. @victorcroisfelt # # Date. December 29, 2021 # # This code is part of the code package used to generate the numeric results # of the paper: # # Crois...
30.537931
124
0.630759
0
0
0
0
0
0
0
0
1,722
0.38845
b5e97f4578877e1fcf5bd928b8d18930e062681c
6,697
py
Python
Meters/IEC/Datasets/get_time.py
Runamook/PyCharmProjects
1b1a063345e052451f00e3fdea82e31bdd2a0cae
[ "MIT" ]
null
null
null
Meters/IEC/Datasets/get_time.py
Runamook/PyCharmProjects
1b1a063345e052451f00e3fdea82e31bdd2a0cae
[ "MIT" ]
null
null
null
Meters/IEC/Datasets/get_time.py
Runamook/PyCharmProjects
1b1a063345e052451f00e3fdea82e31bdd2a0cae
[ "MIT" ]
null
null
null
import datetime from time import sleep import re import pytz # try: # from .emhmeter import MeterBase, create_input_vars, logger # except ModuleNotFoundError: # from emhmeter import MeterBase, create_input_vars, logger # TODO: Not working class GetTime: def __init__(self, input_vars): self.inpu...
31.441315
102
0.551441
5,479
0.818128
0
0
1,978
0.295356
0
0
2,091
0.312229
b5ea159a84e98d9a3984e6fe5b31678efa676891
143
py
Python
References/Geovana Neves/TCC_Geovana_Neves_GitHub/SUAVE_modifications/SUAVE-feature-constant_throttle_EAS/trunk/SUAVE/Analyses/Results.py
Vinicius-Tanigawa/Undergraduate-Research-Project
e92372f07882484b127d7affe305eeec2238b8a9
[ "MIT" ]
null
null
null
References/Geovana Neves/TCC_Geovana_Neves_GitHub/SUAVE_modifications/SUAVE-feature-constant_throttle_EAS/trunk/SUAVE/Analyses/Results.py
Vinicius-Tanigawa/Undergraduate-Research-Project
e92372f07882484b127d7affe305eeec2238b8a9
[ "MIT" ]
null
null
null
References/Geovana Neves/TCC_Geovana_Neves_GitHub/SUAVE_modifications/SUAVE-feature-constant_throttle_EAS/trunk/SUAVE/Analyses/Results.py
Vinicius-Tanigawa/Undergraduate-Research-Project
e92372f07882484b127d7affe305eeec2238b8a9
[ "MIT" ]
null
null
null
# Results.py # # Created: Jan 2015, T. Lukacyzk # Modified: Feb 2016, T. MacDonald from SUAVE.Core import Data class Results(Data): pass
15.888889
34
0.699301
29
0.202797
0
0
0
0
0
0
80
0.559441
b5ea1cb63e2208d12c4791c91ece989cd820bf44
3,889
py
Python
instagrapi/direct.py
chaulaode1257/instagrapi
cfb8cb53d3a63092c0146f3a0b7a086c760908c9
[ "MIT" ]
11
2021-01-09T22:52:30.000Z
2022-03-22T18:33:38.000Z
instagrapi/direct.py
chaulaode1257/instagrapi
cfb8cb53d3a63092c0146f3a0b7a086c760908c9
[ "MIT" ]
null
null
null
instagrapi/direct.py
chaulaode1257/instagrapi
cfb8cb53d3a63092c0146f3a0b7a086c760908c9
[ "MIT" ]
4
2020-12-26T06:14:53.000Z
2022-01-05T05:00:16.000Z
import re from typing import List from .utils import dumps from .types import DirectThread, DirectMessage from .exceptions import ClientNotFoundError, DirectThreadNotFound from .extractors import extract_direct_thread, extract_direct_message class Direct: def direct_threads(self, amount: int = 20) -> List[Direc...
35.678899
108
0.558498
3,643
0.936745
0
0
0
0
0
0
789
0.20288
b5eee5ae8e8ac24bba961d0d4420546bd6f06e1d
26,090
py
Python
src/main/python/cybercaptain/visualization/bar.py
FHNW-CyberCaptain/CyberCaptain
07c989190e997353fbf57eb7a386947d6ab8ffd5
[ "MIT" ]
1
2018-10-01T10:59:55.000Z
2018-10-01T10:59:55.000Z
src/main/python/cybercaptain/visualization/bar.py
FHNW-CyberCaptain/CyberCaptain
07c989190e997353fbf57eb7a386947d6ab8ffd5
[ "MIT" ]
null
null
null
src/main/python/cybercaptain/visualization/bar.py
FHNW-CyberCaptain/CyberCaptain
07c989190e997353fbf57eb7a386947d6ab8ffd5
[ "MIT" ]
1
2021-11-01T00:09:00.000Z
2021-11-01T00:09:00.000Z
""" This module contains the visualization bar class. """ import glob import os import re import numpy as np import matplotlib.pyplot as plt import matplotlib.colors as colors import matplotlib.cm as cmx from mpl_toolkits.mplot3d import Axes3D from matplotlib.ticker import FuncFormatter from cybercaptain.utils.exceptio...
41.086614
175
0.617555
25,568
0.979992
0
0
0
0
0
0
10,475
0.401495
b5f0389774cedeaa041026bfccf255de23607efa
3,560
py
Python
app/profiles/schemas/update.py
MrPeker/acikkaynak-service
21c3f2faaa84342d2fa95709293bc84d1e2a23ae
[ "Apache-2.0" ]
5
2021-02-28T22:29:13.000Z
2021-11-29T00:24:28.000Z
app/profiles/schemas/update.py
MrPeker/acikkaynak-service
21c3f2faaa84342d2fa95709293bc84d1e2a23ae
[ "Apache-2.0" ]
null
null
null
app/profiles/schemas/update.py
MrPeker/acikkaynak-service
21c3f2faaa84342d2fa95709293bc84d1e2a23ae
[ "Apache-2.0" ]
3
2021-03-03T19:56:30.000Z
2021-03-06T22:10:35.000Z
import graphene from app.common.library import graphql from app.common.models import City from ..models import Profile from .queries import ProfileNode # queries class Query(graphene.ObjectType): pass # mutations class ProfileUpdateMutation(graphene.Mutation): Output = ProfileNode class Arguments: ...
31.504425
85
0.601404
3,373
0.947472
0
0
2,611
0.733427
0
0
555
0.155899
b5f1bcd8c2a8c9268b813650480c225371c73233
7,401
py
Python
kubevirt/models/v1_generation_status.py
ansijain/client-python
444ab92a68371c1ccd89314753fa7ab5c4ac9bbe
[ "Apache-2.0" ]
21
2018-02-21T23:59:28.000Z
2021-12-08T05:47:37.000Z
kubevirt/models/v1_generation_status.py
ansijain/client-python
444ab92a68371c1ccd89314753fa7ab5c4ac9bbe
[ "Apache-2.0" ]
47
2018-02-01T15:35:01.000Z
2022-02-11T07:45:54.000Z
kubevirt/models/v1_generation_status.py
ansijain/client-python
444ab92a68371c1ccd89314753fa7ab5c4ac9bbe
[ "Apache-2.0" ]
19
2018-04-03T09:20:52.000Z
2021-06-01T06:07:28.000Z
# coding: utf-8 """ KubeVirt API This is KubeVirt API an add-on for Kubernetes. OpenAPI spec version: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class V1Genera...
27.411111
125
0.580327
7,094
0.958519
0
0
4,100
0.553979
0
0
4,117
0.556276
b5f230d3037e9e1528cdc347b55ec3805c78a481
3,352
py
Python
scripts/plot_fits.py
trichter/robust_earthquake_spectra
ef816e30944293e27c0d5da4d31ec2184e6d187b
[ "MIT" ]
8
2021-07-23T13:01:29.000Z
2022-03-27T17:57:36.000Z
scripts/plot_fits.py
trichter/robust_earthquake_spectra
ef816e30944293e27c0d5da4d31ec2184e6d187b
[ "MIT" ]
null
null
null
scripts/plot_fits.py
trichter/robust_earthquake_spectra
ef816e30944293e27c0d5da4d31ec2184e6d187b
[ "MIT" ]
null
null
null
# Copyright 2021 Tom Eulenfeld, MIT license import matplotlib as mpl import matplotlib.gridspec as gridspec import matplotlib.pyplot as plt import numpy as np import pickle from qopen.core import get_pair, Gsmooth from qopen.rt import G as G_func def set_gridlabels(ax, i, n, N, xlabel='frequency (Hz)', ylabel=None):...
34.204082
77
0.568019
0
0
0
0
0
0
0
0
361
0.107697
b5f35bed476c5278cc37b5eb93da2b3545e9bfe8
957
py
Python
magmango/tests/test_potcar.py
nimalec/Magno
016bed1c2fb8275ac76ece3d0b7f39c4ebc45551
[ "MIT" ]
1
2021-01-08T18:22:13.000Z
2021-01-08T18:22:13.000Z
magmango/tests/test_potcar.py
nimalec/Magno
016bed1c2fb8275ac76ece3d0b7f39c4ebc45551
[ "MIT" ]
null
null
null
magmango/tests/test_potcar.py
nimalec/Magno
016bed1c2fb8275ac76ece3d0b7f39c4ebc45551
[ "MIT" ]
null
null
null
import unittest import os import numpy as np from pymatgen import Structure from magmango.calculation.potcar import PotcarSettings # # class PotcarSettingsTest(unittest.TestCase): # def setUp(self): # self.potcar_file_path = "data/potcar_pto" # #self.structure = Structure.from_file(self.poscar_file_pa...
35.444444
76
0.736677
0
0
0
0
0
0
0
0
805
0.84117
b5f407423805cba0b85dc8b97c1c27b8ba3da9b6
225
py
Python
answers/Aryan Goyal/Day 10/Que 1.py
arc03/30-DaysOfCode-March-2021
6d6e11bf70280a578113f163352fa4fa8408baf6
[ "MIT" ]
22
2021-03-16T14:07:47.000Z
2021-08-13T08:52:50.000Z
answers/Aryan Goyal/Day 10/Que 1.py
arc03/30-DaysOfCode-March-2021
6d6e11bf70280a578113f163352fa4fa8408baf6
[ "MIT" ]
174
2021-03-16T21:16:40.000Z
2021-06-12T05:19:51.000Z
answers/Aryan Goyal/Day 10/Que 1.py
arc03/30-DaysOfCode-March-2021
6d6e11bf70280a578113f163352fa4fa8408baf6
[ "MIT" ]
135
2021-03-16T16:47:12.000Z
2021-06-27T14:22:38.000Z
def pangram(s): a = "abcdefghijklmnopqrstuvwxyz" for i in a: if i not in s.lower(): return False return True # main string1 = input() if(pangram(string1) == True): print("Yes") else: print("No")
17.307692
35
0.6
0
0
0
0
0
0
0
0
43
0.191111
b5f4eae105a3ccda0bbf32f61e4d9bc409056d85
773
py
Python
website/addons/dropbox/tests/test_serializer.py
DanielSBrown/osf.io
98dda2ac237377197acacce78274bc0a4ce8f303
[ "Apache-2.0" ]
null
null
null
website/addons/dropbox/tests/test_serializer.py
DanielSBrown/osf.io
98dda2ac237377197acacce78274bc0a4ce8f303
[ "Apache-2.0" ]
13
2020-03-24T15:29:41.000Z
2022-03-11T23:15:28.000Z
website/addons/dropbox/tests/test_serializer.py
DanielSBrown/osf.io
98dda2ac237377197acacce78274bc0a4ce8f303
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Serializer tests for the Dropbox addon.""" from nose.tools import * # noqa (PEP8 asserts) from website.addons.base.testing.serializers import StorageAddonSerializerTestSuiteMixin from website.addons.dropbox.tests.utils import MockDropbox from website.addons.dropbox.tests.factories import Dr...
32.208333
88
0.798189
302
0.390686
0
0
0
0
0
0
98
0.126779
b5f7ed8a0664870db210f6051f62a7c08134ae57
9,357
py
Python
tumblrlikes.py
cesarmiquel/Tumblr-Likes
3a96e979dbb420553535dd73320f3e7206bcbbfc
[ "MIT" ]
1
2017-03-09T23:47:19.000Z
2017-03-09T23:47:19.000Z
tumblrlikes.py
cesarmiquel/Tumblr-Likes
3a96e979dbb420553535dd73320f3e7206bcbbfc
[ "MIT" ]
null
null
null
tumblrlikes.py
cesarmiquel/Tumblr-Likes
3a96e979dbb420553535dd73320f3e7206bcbbfc
[ "MIT" ]
null
null
null
import os import urllib import json import pprint from google.appengine.api import users from google.appengine.ext import ndb from google.appengine.api import urlfetch import jinja2 import webapp2 JINJA_ENVIRONMENT = jinja2.Environment( loader = jinja2.FileSystemLoader(os.path.dirname(__file__) + '/templates'),...
36.267442
167
0.578284
8,507
0.909159
0
0
0
0
0
0
1,769
0.189056
b5f8afd3209dc9c313d59f605ef9e611cf525951
9,348
py
Python
tests/test_reliable_redis_backend.py
thread/django-lightweight-queue
2c67eb13a454fa1a02f8445c26915b6e9261fdad
[ "BSD-3-Clause" ]
23
2015-04-29T04:47:02.000Z
2022-03-11T12:43:01.000Z
tests/test_reliable_redis_backend.py
thread/django-lightweight-queue
2c67eb13a454fa1a02f8445c26915b6e9261fdad
[ "BSD-3-Clause" ]
23
2015-02-27T14:30:47.000Z
2021-12-02T14:18:34.000Z
tests/test_reliable_redis_backend.py
thread/django-lightweight-queue
2c67eb13a454fa1a02f8445c26915b6e9261fdad
[ "BSD-3-Clause" ]
1
2015-08-18T12:27:08.000Z
2015-08-18T12:27:08.000Z
import datetime import unittest import contextlib import unittest.mock from typing import Any, Dict, Tuple, Mapping, Iterator, Optional import fakeredis from django_lightweight_queue.job import Job from django_lightweight_queue.types import QueueName from django_lightweight_queue.backends.reliable_redis import ( R...
28.5
81
0.578947
8,940
0.956354
346
0.037013
377
0.040329
0
0
1,553
0.166132
b5f91ae2a0e4966e6263d4fa5ec3616c068ac79a
653
py
Python
src/waldur_slurm/migrations/0019_fill_allocation_user_usage.py
geant-multicloud/MCMS-mastermind
81333180f5e56a0bc88d7dad448505448e01f24e
[ "MIT" ]
26
2017-10-18T13:49:58.000Z
2021-09-19T04:44:09.000Z
src/waldur_slurm/migrations/0019_fill_allocation_user_usage.py
geant-multicloud/MCMS-mastermind
81333180f5e56a0bc88d7dad448505448e01f24e
[ "MIT" ]
14
2018-12-10T14:14:51.000Z
2021-06-07T10:33:39.000Z
src/waldur_slurm/migrations/0019_fill_allocation_user_usage.py
geant-multicloud/MCMS-mastermind
81333180f5e56a0bc88d7dad448505448e01f24e
[ "MIT" ]
32
2017-09-24T03:10:45.000Z
2021-10-16T16:41:09.000Z
from django.db import migrations def fill_allocation_user_usage(apps, schema_editor): AllocationUserUsage = apps.get_model('waldur_slurm', 'AllocationUserUsage') for item in AllocationUserUsage.objects.all(): item.allocation = item.allocation_usage.allocation item.year = item.allocation_usage...
28.391304
79
0.715161
210
0.321593
0
0
0
0
0
0
106
0.162328
b5fd2934ba1f4d9447596711eac5fb882a9d016a
2,430
py
Python
SBGCobraTools.py
dsanleo/SBGCobraTools
2cc3a012e1d398ec9185de6ed0d6fa94526afc85
[ "MIT" ]
null
null
null
SBGCobraTools.py
dsanleo/SBGCobraTools
2cc3a012e1d398ec9185de6ed0d6fa94526afc85
[ "MIT" ]
null
null
null
SBGCobraTools.py
dsanleo/SBGCobraTools
2cc3a012e1d398ec9185de6ed0d6fa94526afc85
[ "MIT" ]
null
null
null
# Get all carbon sources and return the objective flux. It can be normalized by the carbon input def get_carbon_sources(model,carbon_uptake=-10,normalize=True,original_source='EX_glc__D_e',carbon_source_list=[]): cobra.io.write_sbml_model(model,"tmp.xml") if len(carbon_source_list)==0: for reaction in m...
69.428571
168
0.637037
0
0
0
0
0
0
0
0
424
0.174486
b5fe08cd114c3ed382e1d1703c6401c43f46dc9b
17,970
py
Python
Testing/test_StableMotifs.py
jcrozum/StableMotifs
8a9d640d3e8b074e0f05e9b45b8ef8bef8d8b5c7
[ "MIT" ]
9
2020-04-03T14:18:06.000Z
2021-05-18T12:08:20.000Z
Testing/test_StableMotifs.py
jcrozum/StableMotifs
8a9d640d3e8b074e0f05e9b45b8ef8bef8d8b5c7
[ "MIT" ]
30
2020-04-06T16:08:45.000Z
2021-06-14T15:15:41.000Z
Testing/test_StableMotifs.py
jcrozum/StableMotifs
8a9d640d3e8b074e0f05e9b45b8ef8bef8d8b5c7
[ "MIT" ]
2
2021-01-14T15:21:51.000Z
2021-05-18T12:04:17.000Z
import sys sys.path.append('../') import unittest import sys sys.path.insert(0,"C:/Users/jcroz/github/StableMotifs") import pystablemotifs as sm import pyboolnet.file_exchange class test_StableMotifs(unittest.TestCase): rules='''A*=B B*=A C*=A or not D D*=C E*=B and F F*=E ''' rules_pbn = sm.format.booleanne...
63.723404
134
0.420701
17,743
0.987368
0
0
0
0
0
0
4,496
0.250195
b5ffeb36473c0df68ff9596c309080a9ed5b0766
4,584
py
Python
environments/env_locust.py
jwallnoefer/projectivesimulation
b8f7b3d7d492b5d5f6df7f9f0802bead33c946ca
[ "Apache-2.0" ]
14
2018-02-13T17:39:58.000Z
2021-07-06T18:09:28.000Z
environments/env_locust.py
jwallnoefer/projectivesimulation
b8f7b3d7d492b5d5f6df7f9f0802bead33c946ca
[ "Apache-2.0" ]
null
null
null
environments/env_locust.py
jwallnoefer/projectivesimulation
b8f7b3d7d492b5d5f6df7f9f0802bead33c946ca
[ "Apache-2.0" ]
8
2018-03-22T04:12:31.000Z
2021-01-31T19:14:28.000Z
# -*- coding: utf-8 -*- """ Copyright 2018 Alexey Melnikov and Katja Ried. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. Please acknowledge the authors when re-using this code and maintain this notice intact. Code written by Katja Ried...
49.290323
128
0.695681
3,742
0.816318
0
0
0
0
0
0
2,469
0.538613
bd0162bf0a28c31d37370edf04366759674e96cb
1,174
py
Python
masktools/superskims/slit.py
adwasser/masktools
c96c8f375f0e94ee2791466d0ce6d31007f58022
[ "MIT" ]
null
null
null
masktools/superskims/slit.py
adwasser/masktools
c96c8f375f0e94ee2791466d0ce6d31007f58022
[ "MIT" ]
null
null
null
masktools/superskims/slit.py
adwasser/masktools
c96c8f375f0e94ee2791466d0ce6d31007f58022
[ "MIT" ]
null
null
null
from __future__ import (absolute_import, division, print_function, unicode_literals) class Slit: def __init__(self, x, y, length, width, pa, name): ''' Representation of a slit in a mask. Coordinates are relative to the mask, so that the x-axis is along the lon...
39.133333
98
0.581772
1,063
0.905451
0
0
0
0
0
0
711
0.605622
bd0183d07de9ad7a1f13f37bb28f41e2ff5b5a7b
1,940
py
Python
gemmforge/instructions/builders/alloctor_builder.py
ravil-mobile/gemmforge
6381584c2d1ce77eaa938de02bc4f130f19cb2e4
[ "MIT" ]
null
null
null
gemmforge/instructions/builders/alloctor_builder.py
ravil-mobile/gemmforge
6381584c2d1ce77eaa938de02bc4f130f19cb2e4
[ "MIT" ]
2
2021-02-01T16:31:22.000Z
2021-05-05T13:44:43.000Z
gemmforge/instructions/builders/alloctor_builder.py
ravil-mobile/gemmforge
6381584c2d1ce77eaa938de02bc4f130f19cb2e4
[ "MIT" ]
null
null
null
from .abstract_builder import AbstractBuilder from gemmforge.symbol_table import SymbolType, Symbol from gemmforge.basic_types import RegMemObject, ShrMemObject from gemmforge.instructions import RegisterAlloc, ShrMemAlloc from gemmforge.basic_types import GeneralLexicon from abc import abstractmethod class AbstractA...
28.955224
72
0.723196
1,628
0.839175
0
0
54
0.027835
0
0
91
0.046907
bd04f09ba2aeaba23212f09a5a18c36cfe707aa2
1,104
py
Python
solutions/LeetCode/Python3/1049.py
timxor/leetcode-journal
5f1cb6bcc44a5bc33d88fb5cdb4126dfc6f4232a
[ "MIT" ]
854
2018-11-09T08:06:16.000Z
2022-03-31T06:05:53.000Z
solutions/LeetCode/Python3/1049.py
timxor/leetcode-journal
5f1cb6bcc44a5bc33d88fb5cdb4126dfc6f4232a
[ "MIT" ]
29
2019-06-02T05:02:25.000Z
2021-11-15T04:09:37.000Z
solutions/LeetCode/Python3/1049.py
timxor/leetcode-journal
5f1cb6bcc44a5bc33d88fb5cdb4126dfc6f4232a
[ "MIT" ]
347
2018-12-23T01:57:37.000Z
2022-03-12T14:51:21.000Z
__________________________________________________________________________________________________ sample 32 ms submission class Solution: def lastStoneWeightII(self, stones: List[int]) -> int: total = sum(stones) sums = {0} for s in stones: sums |= {s + i for i in sums} ...
39.428571
104
0.673007
733
0.663949
0
0
0
0
0
0
0
0
bd0555b1790f397fc8d762146f856a6acab0847d
3,043
py
Python
Python3/809.expressive-words.py
610yilingliu/leetcode
30d071b3685c2131bd3462ba77c6c05114f3f227
[ "MIT" ]
null
null
null
Python3/809.expressive-words.py
610yilingliu/leetcode
30d071b3685c2131bd3462ba77c6c05114f3f227
[ "MIT" ]
null
null
null
Python3/809.expressive-words.py
610yilingliu/leetcode
30d071b3685c2131bd3462ba77c6c05114f3f227
[ "MIT" ]
null
null
null
# # @lc app=leetcode id=809 lang=python3 # # [809] Expressive Words # # https://leetcode.com/problems/expressive-words/description/ # # algorithms # Medium (46.84%) # Likes: 320 # Dislikes: 823 # Total Accepted: 45.2K # Total Submissions: 96.2K # Testcase Example: '"heeellooo"\n["hello", "hi", "helo"]' # # Somet...
29.833333
141
0.57049
1,175
0.384615
0
0
0
0
0
0
1,871
0.612439
bd068843b439a58814f27d16075e43744d08bd52
1,601
py
Python
settings/Microscope_settings.py
bopopescu/Lauecollect
60ae2b05ea8596ba0decf426e37aeaca0bc8b6be
[ "MIT" ]
null
null
null
settings/Microscope_settings.py
bopopescu/Lauecollect
60ae2b05ea8596ba0decf426e37aeaca0bc8b6be
[ "MIT" ]
1
2019-10-22T21:28:31.000Z
2019-10-22T21:39:12.000Z
settings/Microscope_settings.py
bopopescu/Lauecollect
60ae2b05ea8596ba0decf426e37aeaca0bc8b6be
[ "MIT" ]
2
2019-06-06T15:06:46.000Z
2020-07-20T02:03:22.000Z
Size = (1255, 1160) Position = (39, 26) ScaleFactor = 1.0 ZoomLevel = 32.0 Orientation = 0 Mirror = False NominalPixelSize = 0.125 filename = 'Z:\\All Projects\\Crystallization\\2018.08.27.caplilary with crystals inspection\\2018.08.27 CypA 2.jpg' ImageWindow.Center = (649, 559) ImageWindow.ViewportCenter = (2.41796875...
37.232558
116
0.775141
0
0
0
0
0
0
0
0
109
0.068082
bd07434502bfcaa7d1b29853452ba88cedddad3e
3,259
py
Python
model_rocke3d.py
projectcuisines/gcm_ana
cd9f7d47dd4a9088bcd7556b4955d9b8e09b9741
[ "MIT" ]
1
2021-09-29T18:03:56.000Z
2021-09-29T18:03:56.000Z
model_rocke3d.py
projectcuisines/thai_trilogy_code
cd9f7d47dd4a9088bcd7556b4955d9b8e09b9741
[ "MIT" ]
null
null
null
model_rocke3d.py
projectcuisines/thai_trilogy_code
cd9f7d47dd4a9088bcd7556b4955d9b8e09b9741
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Utilities for the ROCKE3D output.""" import dask.array as da import xarray as xr from grid import reverse_along_dim, roll_da_to_pm180 from model_um import calc_um_rel from names import rocke3d __all__ = ("adjust_rocke3d_grid", "calc_rocke3d_rei", "calc_rocke3d_rel") calc_rocke3d_rel = calc...
30.745283
83
0.666769
0
0
0
0
0
0
0
0
1,989
0.61031
bd080979389c4fa7ca1e77a7f150acdec97764c3
4,090
py
Python
models/wordcloud.py
mcxwx123/RecGFI
6e872c3b8c5398959b119e5ba14e665bbb45c56b
[ "MIT" ]
9
2022-01-28T14:24:35.000Z
2022-01-30T05:05:03.000Z
models/wordcloud.py
mcxwx123/RecGFI
6e872c3b8c5398959b119e5ba14e665bbb45c56b
[ "MIT" ]
null
null
null
models/wordcloud.py
mcxwx123/RecGFI
6e872c3b8c5398959b119e5ba14e665bbb45c56b
[ "MIT" ]
1
2022-01-28T14:24:41.000Z
2022-01-28T14:24:41.000Z
from wordcloud import WordCloud,STOPWORDS import matplotlib.pyplot as plt import numpy as np import pandas as pd import re import multidict as multidict from collections import Counter import json import datetime import os plt.switch_backend('agg') def removePunctuation(text): text = re.sub(r'[{}]+'.format('!,;:?`"...
29.854015
138
0.596822
311
0.075928
0
0
0
0
0
0
436
0.106445
bd08ddc4c6e6b83523aa9e949593219788ab5e5c
2,996
py
Python
favorites_updater.py
techonerd/moepoi
6440f39653bc3560e39429570bd25b7c564b7f54
[ "MIT" ]
36
2020-07-21T16:19:48.000Z
2022-03-21T15:31:02.000Z
favorites_updater.py
gaesant/moepoi
cd478ca00afa5140bb8057c7d37b1ccb2fcbe3b6
[ "MIT" ]
1
2022-02-18T07:41:14.000Z
2022-02-18T07:41:14.000Z
favorites_updater.py
gaesant/moepoi
cd478ca00afa5140bb8057c7d37b1ccb2fcbe3b6
[ "MIT" ]
176
2020-07-22T19:24:14.000Z
2022-03-30T23:42:58.000Z
from python_graphql_client import GraphqlClient import pathlib import re import os root = pathlib.Path(__file__).parent.resolve() client = GraphqlClient(endpoint="https://graphql.anilist.co") TOKEN = os.environ.get("ANILIST_TOKEN", "") def replace_chunk(content, marker, chunk, inline=False): r = re.compile( ...
23.046154
94
0.502003
0
0
0
0
0
0
0
0
1,350
0.450601
bd0a67b7badc84d9a3a79ed71754a0226bee9e55
844
py
Python
moistmaster/analytics/migrations/0001_initial.py
benjohnsonnlp/robosquirt
f96c58421532f9b956cec2277b7978022c7c1d80
[ "BSD-3-Clause" ]
null
null
null
moistmaster/analytics/migrations/0001_initial.py
benjohnsonnlp/robosquirt
f96c58421532f9b956cec2277b7978022c7c1d80
[ "BSD-3-Clause" ]
7
2020-02-12T00:56:32.000Z
2022-02-10T09:57:40.000Z
moistmaster/analytics/migrations/0001_initial.py
benjohnsonnlp/robosquirt
f96c58421532f9b956cec2277b7978022c7c1d80
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.0.6 on 2019-07-10 03:56 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='WateringSession', fields=[ ('identifier', m...
28.133333
99
0.535545
751
0.88981
0
0
0
0
0
0
186
0.220379
bd0c339764aca9d1b1dc4bb3784afbd33f7e553d
30,324
py
Python
stcloud/api/apps_api.py
sematext/sematext-api-client-python
16e025cd3d32aa58deb70fc5930ae4165afebe97
[ "Apache-2.0" ]
1
2020-05-01T12:15:52.000Z
2020-05-01T12:15:52.000Z
stcloud/api/apps_api.py
sematext/sematext-api-client-python
16e025cd3d32aa58deb70fc5930ae4165afebe97
[ "Apache-2.0" ]
null
null
null
stcloud/api/apps_api.py
sematext/sematext-api-client-python
16e025cd3d32aa58deb70fc5930ae4165afebe97
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Sematext Cloud API API Explorer provides access and documentation for Sematext REST API. The REST API requires the API Key to be sent as part of `Authorization` header. E.g.: `Authorization : apiKey e5f18450-205a-48eb-8589-7d49edaea813`. # noqa: E501 OpenAPI spec version: v3 ...
38.777494
236
0.614991
29,766
0.981599
0
0
0
0
0
0
15,252
0.502968
bd0df2e5d3c7a33e0c8bc13d1922de1d4da4a323
3,706
py
Python
app_startup4/views.py
konjing/django_sme_award
840ed3685299c77be8516acf1e8a0123930dd63d
[ "MIT" ]
null
null
null
app_startup4/views.py
konjing/django_sme_award
840ed3685299c77be8516acf1e8a0123930dd63d
[ "MIT" ]
5
2021-03-19T02:32:48.000Z
2021-06-10T19:01:30.000Z
app_startup4/views.py
konjing/django_sme_award
840ed3685299c77be8516acf1e8a0123930dd63d
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from django.http import HttpResponse from django.contrib import messages from app_startup4.models import StartupCompetition def registerListView(request): """ จัดการข้อมูลและพิจารณา ผู้สมัครที่ส่งข้อมูลเข้ามา """ queryset = StartupCompetition.objects.filter(s...
40.282609
120
0.674582
0
0
0
0
0
0
0
0
2,291
0.495244
bd101452c6ae5bad47e4c2d957dbf69805a1b869
3,462
py
Python
SRC/common/IO/GUI/DIR.py
usnistgov/OOF3D
4fd423a48aea9c5dc207520f02de53ae184be74c
[ "X11" ]
31
2015-04-01T15:59:36.000Z
2022-03-18T20:21:47.000Z
SRC/common/IO/GUI/DIR.py
usnistgov/OOF3D
4fd423a48aea9c5dc207520f02de53ae184be74c
[ "X11" ]
3
2015-02-06T19:30:24.000Z
2017-05-25T14:14:31.000Z
SRC/common/IO/GUI/DIR.py
usnistgov/OOF3D
4fd423a48aea9c5dc207520f02de53ae184be74c
[ "X11" ]
7
2015-01-23T15:19:22.000Z
2021-06-09T09:03:59.000Z
# -*- python -*- # This software was produced by NIST, an agency of the U.S. government, # and by statute is not subject to copyright in the United States. # Recipients of this software assume all responsibilities associated # with its operation, modification and maintenance. However, to # facilitate maintenance we ...
25.455882
75
0.624783
0
0
0
0
0
0
0
0
2,117
0.611496
bd12daa2d90f5e59ee73aa4f239e4f3eb0699f08
4,366
py
Python
chapter_01/main_chapter01_00.py
couldbebetter/simulations_radar_systems_design
fcb23964e10c7ebb9cb1beabadc257e970a2c1de
[ "MIT" ]
20
2018-02-02T06:46:14.000Z
2022-01-05T21:25:50.000Z
chapter_01/main_chapter01_00.py
couldbebetter/simulations_radar_systems_design
fcb23964e10c7ebb9cb1beabadc257e970a2c1de
[ "MIT" ]
null
null
null
chapter_01/main_chapter01_00.py
couldbebetter/simulations_radar_systems_design
fcb23964e10c7ebb9cb1beabadc257e970a2c1de
[ "MIT" ]
5
2018-05-31T16:42:07.000Z
2020-07-30T22:29:43.000Z
# -*- coding: utf-8 -*- """ Created on 21 October 2017 implements Listing 1.2. MATLAB Program “fig1_12.m” in Mahafza radar book @author: Ashiv Dhondea """ import numpy as np import RadarBasics as RB import RadarConstants as RC import RadarEquations as RE # Importing what's needed for nice plots. import matplotlib...
40.803738
113
0.682776
0
0
0
0
0
0
0
0
1,267
0.289931
bd12efd43b17ceb7fdeb18d7ab015b7b17528841
4,770
py
Python
core/views.py
edwildson/djangosecommerce
22541d24af52cd6f2d51196116a101583389b945
[ "CC0-1.0" ]
1
2021-11-05T20:35:00.000Z
2021-11-05T20:35:00.000Z
core/views.py
edwildson/djangosecommerce
22541d24af52cd6f2d51196116a101583389b945
[ "CC0-1.0" ]
null
null
null
core/views.py
edwildson/djangosecommerce
22541d24af52cd6f2d51196116a101583389b945
[ "CC0-1.0" ]
null
null
null
# coding=utf-8 import functools import warnings from django.shortcuts import render from .forms import ContactForm from catalog.views import Product from django.views.generic import View, TemplateView, CreateView from django.contrib.auth import get_user_model from django.contrib import messages # Sobrecarga da classe...
32.896552
89
0.637945
297
0.062199
0
0
2,353
0.492775
0
0
902
0.188901
bd133f9bc78502bb6dd771b9750d4b772d62e105
96
py
Python
venv/lib/python3.8/site-packages/jedi/inference/compiled/mixed.py
GiulianaPola/select_repeats
17a0d053d4f874e42cf654dd142168c2ec8fbd11
[ "MIT" ]
2
2022-03-13T01:58:52.000Z
2022-03-31T06:07:54.000Z
venv/lib/python3.8/site-packages/jedi/inference/compiled/mixed.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
19
2021-11-20T04:09:18.000Z
2022-03-23T15:05:55.000Z
venv/lib/python3.8/site-packages/jedi/inference/compiled/mixed.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
null
null
null
/home/runner/.cache/pip/pool/d9/2c/a4/7718a956dd946c833114214fec833728fef3062ae858a03a9d82cf9dc7
96
96
0.895833
0
0
0
0
0
0
0
0
0
0
bd14232c1edf5c76909d75642903193968483bbc
1,087
py
Python
tests/jekpost_tests.py
arjunkrishnababu96/jekpost
2ddcb337e98c534426d83f1bd6fbde1f45f59225
[ "MIT" ]
1
2018-10-05T16:53:02.000Z
2018-10-05T16:53:02.000Z
tests/jekpost_tests.py
arjunkrishnababu96/jekpost
2ddcb337e98c534426d83f1bd6fbde1f45f59225
[ "MIT" ]
null
null
null
tests/jekpost_tests.py
arjunkrishnababu96/jekpost
2ddcb337e98c534426d83f1bd6fbde1f45f59225
[ "MIT" ]
null
null
null
import unittest import jekpost.jekpost_create as jek from datetime import date class JekpostTests(unittest.TestCase): def test_date_gets_formatted(self): """ Check 31-DEC-2016 (2016-12-31) 1-NOV-2015 (2015-11-01) 11-JAN-2015 (2015-01-11) """ sam...
31.970588
68
0.580497
957
0.880405
0
0
0
0
0
0
230
0.211592
bd14aa72ec4ce2f35a4d3b6757b556fa6efbf5d2
2,636
py
Python
ESMF/src/addon/ESMPy/examples/mesh_locstream_regrid.py
joeylamcy/gchp
0e1676300fc91000ecb43539cabf1f342d718fb3
[ "NCSA", "Apache-2.0", "MIT" ]
1
2018-07-05T16:48:58.000Z
2018-07-05T16:48:58.000Z
ESMF/src/addon/ESMPy/examples/mesh_locstream_regrid.py
joeylamcy/gchp
0e1676300fc91000ecb43539cabf1f342d718fb3
[ "NCSA", "Apache-2.0", "MIT" ]
1
2022-03-04T16:12:02.000Z
2022-03-04T16:12:02.000Z
ESMF/src/addon/ESMPy/examples/mesh_locstream_regrid.py
joeylamcy/gchp
0e1676300fc91000ecb43539cabf1f342d718fb3
[ "NCSA", "Apache-2.0", "MIT" ]
null
null
null
# This example demonstrates how to regrid between a mesh and a locstream. import ESMF import numpy import ESMF.util.helpers as helpers import ESMF.api.constants as constants # This call enables debug logging # ESMF.Manager(debug=True) from ESMF.util.mesh_utilities import mesh_create_5, mesh_create_5_parallel from E...
35.621622
118
0.727238
0
0
0
0
0
0
0
0
757
0.287178
bd14fe29205fb7db4613505f3b8655a44fae871a
36
py
Python
workPEMSBAY/Param_HistoricalAverage.py
deepkashiwa20/DeepTraffic
6ac66258ef9fa9bbe7dcd7c4750cb24946eba58c
[ "MIT" ]
35
2021-06-18T01:03:16.000Z
2022-03-31T02:16:37.000Z
workPEMSBAY/Param_HistoricalAverage.py
yuanxw5/DL-Traff-Graph
63f3d81ce3a750e43645c61089c5ca219bfcbfd3
[ "MIT" ]
null
null
null
workPEMSBAY/Param_HistoricalAverage.py
yuanxw5/DL-Traff-Graph
63f3d81ce3a750e43645c61089c5ca219bfcbfd3
[ "MIT" ]
12
2021-06-17T02:54:48.000Z
2022-03-25T05:21:43.000Z
HISTORYDAY = 7 DAYTIMESTEP = 24 * 12
18
21
0.722222
0
0
0
0
0
0
0
0
0
0
bd15c472f906d140ef00546b94634b33eb43240f
714
py
Python
topy/__init__.py
TarcisioLOliveira/topy
060da675e6494fee63fa5547befcb1f8ecc39fdc
[ "MIT" ]
1
2021-01-25T00:13:34.000Z
2021-01-25T00:13:34.000Z
topy/__init__.py
TarcisioLOliveira/topy
060da675e6494fee63fa5547befcb1f8ecc39fdc
[ "MIT" ]
null
null
null
topy/__init__.py
TarcisioLOliveira/topy
060da675e6494fee63fa5547befcb1f8ecc39fdc
[ "MIT" ]
null
null
null
""" # ============================================================================== # ToPy -- Topology optimization with Python. # Copyright (C) 2012, 2015, 2016, 2017 William Hunter. # Copyright (C) 2020, 2021, Tarcísio L. de Oliveira # ============================================================================== "...
26.444444
80
0.560224
0
0
0
0
0
0
0
0
354
0.493724
bd1639f542971f0b9d004e950fd65037d1434c94
4,788
py
Python
data/fidt_generate.py
PPGod95/FIDTM
b5582c5cc485496d85af2043ffd6e4266f354f3b
[ "MIT" ]
null
null
null
data/fidt_generate.py
PPGod95/FIDTM
b5582c5cc485496d85af2043ffd6e4266f354f3b
[ "MIT" ]
null
null
null
data/fidt_generate.py
PPGod95/FIDTM
b5582c5cc485496d85af2043ffd6e4266f354f3b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ @Project : @FileName: @Author :penghr @Time :2021/11/xx xx:xx @Desc : FIDTM-train/dataset/FIDTM/ ├── test │ ├── gt_fidt_map │ │ └── IMG_8.h5 │ ├── g...
33.71831
131
0.539474
0
0
0
0
0
0
0
0
2,083
0.403369
bd166a19a710f2d8a3cb312cb57d84d5ce6d3bb6
356
py
Python
tests/urls.py
maykinmedia/djadyen
8bde7172c72d68975d4a77c7ef6bed73412619dc
[ "BSD-3-Clause" ]
3
2018-10-19T06:57:50.000Z
2020-11-12T11:20:37.000Z
tests/urls.py
maykinmedia/djadyen
8bde7172c72d68975d4a77c7ef6bed73412619dc
[ "BSD-3-Clause" ]
16
2017-02-14T12:37:58.000Z
2019-04-25T07:55:42.000Z
tests/urls.py
maykinmedia/djadyen
8bde7172c72d68975d4a77c7ef6bed73412619dc
[ "BSD-3-Clause" ]
2
2018-05-16T10:08:34.000Z
2019-09-29T23:31:04.000Z
try: from django.urls import path, include except: from django.conf.urls import url as path, include from django.contrib import admin urlpatterns = [ path(r'^admin/', admin.site.urls), path(r'^app/', include('tests.app.urls')), path(r'^adyen/notifications/', include('djadyen.notifications.urls', n...
27.384615
107
0.702247
0
0
0
0
0
0
0
0
107
0.300562
bd167da504ac1a51b81416178b209b951582f2de
583
py
Python
cpc/type/__init__.py
U-Ar/Cpresto
f723458fb237c9e3e8bc8a6afdf7c81858a65363
[ "BSD-3-Clause" ]
1
2021-05-09T07:10:19.000Z
2021-05-09T07:10:19.000Z
cpc/type/__init__.py
U-Ar/Cpresto
f723458fb237c9e3e8bc8a6afdf7c81858a65363
[ "BSD-3-Clause" ]
null
null
null
cpc/type/__init__.py
U-Ar/Cpresto
f723458fb237c9e3e8bc8a6afdf7c81858a65363
[ "BSD-3-Clause" ]
null
null
null
from .ArrayType import * from .ArrayTypeRef import * from .CompositeType import * from .FunctionType import * from .FunctionTypeRef import * from .IntegerType import * from .IntegerTypeRef import * from .NamedType import * from .ParamTypes import * from .PointerType import * from .PointerTypeRef import * from .StructTy...
26.5
30
0.7753
0
0
0
0
0
0
0
0
0
0
bd16c8b39601a36ca38158d3199f58ce464da6a0
41
py
Python
packages/speex.py
mhutch/bockbuild
0d989e2d0259d17d41a195f8d28b3844a4652e7b
[ "MIT" ]
null
null
null
packages/speex.py
mhutch/bockbuild
0d989e2d0259d17d41a195f8d28b3844a4652e7b
[ "MIT" ]
null
null
null
packages/speex.py
mhutch/bockbuild
0d989e2d0259d17d41a195f8d28b3844a4652e7b
[ "MIT" ]
null
null
null
XiphPackage ('speex', 'speex', '1.2rc1')
20.5
40
0.634146
0
0
0
0
0
0
0
0
22
0.536585
bd1785dbb7815b9bfadbb18331b534590567b760
2,105
py
Python
Python Tutorial Django/pac/pac/main/views.py
PaulPan00/donkey_wrapper
a03cf0f42f65625fbce792b06c98acd153c5d6c8
[ "MIT" ]
6
2021-03-26T01:42:31.000Z
2021-04-11T16:17:42.000Z
Python Tutorial Django/pac/pac/main/views.py
packetsss/Python
a03cf0f42f65625fbce792b06c98acd153c5d6c8
[ "MIT" ]
null
null
null
Python Tutorial Django/pac/pac/main/views.py
packetsss/Python
a03cf0f42f65625fbce792b06c98acd153c5d6c8
[ "MIT" ]
7
2021-04-06T06:55:22.000Z
2021-05-03T11:26:38.000Z
# Create by Packetsss # Personal use is allowed # Commercial use is prohibited from django.shortcuts import render # Create your views here. from django.http import HttpResponse, HttpResponseRedirect from .models import ToDoList, Item from .forms import Create_list def index(response, id): lst = ToDoList.objects...
30.071429
74
0.56152
0
0
0
0
0
0
0
0
593
0.28171
bd17b046c9a2e0dbd7f153a5a1f41fd0257f99eb
5,610
py
Python
src/Commands.py
rkpop/kokobot
d19d68e12a7e6c0a25373ae5404e46632d59c40f
[ "MIT" ]
3
2018-07-25T23:55:58.000Z
2018-10-17T05:50:18.000Z
src/Commands.py
rkpop/kokobot
d19d68e12a7e6c0a25373ae5404e46632d59c40f
[ "MIT" ]
null
null
null
src/Commands.py
rkpop/kokobot
d19d68e12a7e6c0a25373ae5404e46632d59c40f
[ "MIT" ]
1
2018-12-01T05:18:48.000Z
2018-12-01T05:18:48.000Z
import asyncio from discord.ext import commands from src.BaseCog import BaseCog from src.DB import DB from src.Reasons import Reasons class Commands(BaseCog): def __init__(self, bot, config): super().__init__(bot, config) self.reasons = Reasons() HELP_MESSAGE = """ Command: `/kkb <action>...
31.166667
86
0.587344
5,473
0.975579
0
0
3,326
0.59287
3,177
0.56631
1,400
0.249554
bd184a22649fd3e0a64f5b17ec6b9f8201e73eaa
2,981
py
Python
src/lur/grade.py
qlurkin/lur_python
39564f276b3c03a073d4922627634b67c3af2052
[ "MIT" ]
null
null
null
src/lur/grade.py
qlurkin/lur_python
39564f276b3c03a073d4922627634b67c3af2052
[ "MIT" ]
null
null
null
src/lur/grade.py
qlurkin/lur_python
39564f276b3c03a073d4922627634b67c3af2052
[ "MIT" ]
null
null
null
from cmath import nan from sqlite3 import DatabaseError import pandas as pd import numpy as np import json def load_from_csv(path): dt = pd.read_csv(path, sep=';', dtype={'matricule': object}) return dt.set_index('matricule') def fix_matricule(matricule): if matricule.startswith('195'): return '19...
31.378947
101
0.606172
0
0
0
0
0
0
0
0
629
0.210791
bd1a64b8faa4b7589ee4783d56ea7df4ceeadc17
201
py
Python
website/canvas/storage.py
bopopescu/canvas
2dfd6009eaecd8dac64ccc6125084e65305fb5d0
[ "BSD-3-Clause" ]
61
2015-11-10T17:13:46.000Z
2021-08-06T17:58:30.000Z
website/canvas/storage.py
bopopescu/canvas
2dfd6009eaecd8dac64ccc6125084e65305fb5d0
[ "BSD-3-Clause" ]
13
2015-11-11T07:49:41.000Z
2021-06-09T03:45:31.000Z
website/canvas/storage.py
bopopescu/canvas
2dfd6009eaecd8dac64ccc6125084e65305fb5d0
[ "BSD-3-Clause" ]
18
2015-11-11T04:50:04.000Z
2021-08-20T00:57:11.000Z
from compressor.storage import CompressorFileStorage class CanvasFileStorage(CompressorFileStorage): def url(self, path): return "//canvas-dynamic-assets.s3.amazonaws.com/static/" + path
28.714286
72
0.766169
145
0.721393
0
0
0
0
0
0
50
0.248756
bd1ac0aae6302168adf0c1a01d9c3dda3ee533a8
6,104
py
Python
prettytype/__init__.py
stuglaser/prettytype
af31de6017dad56b1f6ba37225f0b17d35a69bd4
[ "MIT" ]
1
2021-01-06T17:37:40.000Z
2021-01-06T17:37:40.000Z
prettytype/__init__.py
stuglaser/prettytype
af31de6017dad56b1f6ba37225f0b17d35a69bd4
[ "MIT" ]
null
null
null
prettytype/__init__.py
stuglaser/prettytype
af31de6017dad56b1f6ba37225f0b17d35a69bd4
[ "MIT" ]
null
null
null
import numbers class NoneT(object): def __repr__(self): return 'NoneT()' def __str__(self): return 'None' def msct(self, other): if isinstance(other, NoneT): return self return MaybeT(other) class MaybeT(object): def __init__(self, childT): self....
23.750973
78
0.548984
4,965
0.813401
0
0
0
0
0
0
265
0.043414
bd1bc728b1d732bdeadd112c3709dd6ba324fe1b
5,705
py
Python
simulate_position_covariance_data.py
ronniyjoseph/Hybrid-Calibration
7f24a8a5f67d647a47d4559566f7461cb3be57ac
[ "AFL-3.0" ]
null
null
null
simulate_position_covariance_data.py
ronniyjoseph/Hybrid-Calibration
7f24a8a5f67d647a47d4559566f7461cb3be57ac
[ "AFL-3.0" ]
9
2019-10-23T03:30:33.000Z
2020-02-19T05:25:27.000Z
simulate_position_covariance_data.py
ronniyjoseph/Hybrid-Calibration
7f24a8a5f67d647a47d4559566f7461cb3be57ac
[ "AFL-3.0" ]
null
null
null
import os import numpy import copy import argparse from matplotlib import pyplot from src.radiotelescope import RadioTelescope from src.radiotelescope import BaselineTable from src.skymodel import SkyRealisation from simulate_beam_covariance_data import compute_baseline_covariance from simulate_beam_covariance_data im...
46.382114
117
0.713234
0
0
0
0
0
0
0
0
1,137
0.199299
bd1c3ef16239b0d584d630e4d1b4df484eba30ba
371
py
Python
wspay/migrations/0004_remove_wspayrequest_transactions.py
pinkdroids/django-wspay
19b52cb19539577c812e512062ffb239f2d89190
[ "MIT" ]
null
null
null
wspay/migrations/0004_remove_wspayrequest_transactions.py
pinkdroids/django-wspay
19b52cb19539577c812e512062ffb239f2d89190
[ "MIT" ]
null
null
null
wspay/migrations/0004_remove_wspayrequest_transactions.py
pinkdroids/django-wspay
19b52cb19539577c812e512062ffb239f2d89190
[ "MIT" ]
null
null
null
# Generated by Django 4.0.1 on 2022-01-20 15:12 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('wspay', '0003_rename_wspaytransaction_transactionhistory_and_more'), ] operations = [ migrations.RemoveField( model_name='wspayrequest',...
20.611111
78
0.638814
286
0.770889
0
0
0
0
0
0
140
0.377358
bd1d6496d7db8cd8d21e423c19bb1534688474e4
24,456
py
Python
anthill/event/admin.py
anthill-services/anthill-event
3c303f33e4c150ce2dfed4f3534ec40e935ecfb8
[ "MIT" ]
null
null
null
anthill/event/admin.py
anthill-services/anthill-event
3c303f33e4c150ce2dfed4f3534ec40e935ecfb8
[ "MIT" ]
null
null
null
anthill/event/admin.py
anthill-services/anthill-event
3c303f33e4c150ce2dfed4f3534ec40e935ecfb8
[ "MIT" ]
1
2017-12-03T22:03:10.000Z
2017-12-03T22:03:10.000Z
from anthill.common.validate import validate from anthill.common import admin as a, update from . model.event import EventNotFound, CategoryNotFound, EventFlags, EventEndAction import ujson import collections EVENT_END_ACTION_DESCRIPTION = """ <b>Send Message</b><br>A message with detailed information about event ...
36.392857
124
0.5294
23,006
0.94071
0
0
4,629
0.189279
8,936
0.365391
6,729
0.275147
bd1d74e5ac367e134c8e0a19a4b10cfe4ee5fb88
15,704
py
Python
main.py
opt12/gym-jsbsim-eee
fa61d0d4679fd65b5736fc562fe268714b4e08d8
[ "MIT" ]
7
2020-11-10T07:33:40.000Z
2021-06-23T07:25:43.000Z
main.py
opt12/gym-jsbsim-eee
fa61d0d4679fd65b5736fc562fe268714b4e08d8
[ "MIT" ]
null
null
null
main.py
opt12/gym-jsbsim-eee
fa61d0d4679fd65b5736fc562fe268714b4e08d8
[ "MIT" ]
5
2020-07-12T00:10:59.000Z
2021-06-22T09:13:13.000Z
import sys, os # sys.path.append(os.path.join(os.path.dirname(__file__)) #TODO: Is this a good idea? Dunno! It works! # print(os.path.join(os.path.dirname(__file__))) import argparse import markov_pilot.environment.properties as prp from markov_pilot.environment.environment import NoFGJsbSimEnv_multi, J...
59.037594
219
0.707972
0
0
0
0
0
0
0
0
6,657
0.423905
bd1d8b232aa33e6da7911055afde86063303f3d6
19,781
py
Python
atm/core.py
HDI-Project/ATM
dde454a95e963a460843a61bbb44d18982984b17
[ "MIT" ]
554
2017-12-19T06:43:11.000Z
2022-03-26T04:24:55.000Z
atm/core.py
BTHUNTERCN/ATM
dde454a95e963a460843a61bbb44d18982984b17
[ "MIT" ]
128
2017-12-19T21:30:32.000Z
2021-04-19T17:03:39.000Z
atm/core.py
BTHUNTERCN/ATM
dde454a95e963a460843a61bbb44d18982984b17
[ "MIT" ]
140
2017-12-20T03:47:04.000Z
2022-03-17T01:50:24.000Z
# -*- coding: utf-8 -*- """Core ATM module. This module contains the ATM class, which is the one responsible for executing and orchestrating the main ATM functionalities. """ import logging import random import time from datetime import datetime, timedelta from operator import attrgetter from tqdm import tqdm from...
40.954451
95
0.547495
19,250
0.973156
0
0
0
0
0
0
10,091
0.510136
bd225009cbeb540acf88e600f37e2294b3fa16ce
742
py
Python
dbcollection/datasets/leeds_sports_pose/leeds_sports_pose/__init__.py
dbcollection/dbcollection
a36f57a11bc2636992e26bba4406914162773dd9
[ "MIT" ]
23
2017-09-20T19:23:26.000Z
2022-01-09T16:18:11.000Z
dbcollection/datasets/leeds_sports_pose/leeds_sports_pose/__init__.py
dbcollection/dbcollection
a36f57a11bc2636992e26bba4406914162773dd9
[ "MIT" ]
148
2017-07-23T14:28:28.000Z
2022-01-13T00:35:17.000Z
dbcollection/datasets/leeds_sports_pose/leeds_sports_pose/__init__.py
dbcollection/dbcollection
a36f57a11bc2636992e26bba4406914162773dd9
[ "MIT" ]
6
2018-01-12T15:47:57.000Z
2021-02-09T06:32:39.000Z
""" Leeds Sports Pose (LSP) Dataset download/process functions. """ from dbcollection.datasets import BaseDataset from .keypoints import Keypoints, KeypointsOriginal urls = ( 'http://sam.johnson.io/research/lsp_dataset_original.zip', { 'url': 'http://sam.johnson.io/research/lsp_dataset.zip', ...
24.733333
78
0.699461
196
0.264151
0
0
0
0
0
0
371
0.5
bd25018110a4f497d278f0c5fcc41f39296d2cf6
3,505
py
Python
flydra_analysis/flydra_analysis/a2/check_mainbrain_h5_contiguity.py
elhananby/flydra
09b86859b1863700cdea0bbcdd4758da6c83930b
[ "Apache-2.0", "MIT" ]
45
2017-08-25T06:46:56.000Z
2021-08-29T16:42:49.000Z
flydra_analysis/flydra_analysis/a2/check_mainbrain_h5_contiguity.py
elhananby/flydra
09b86859b1863700cdea0bbcdd4758da6c83930b
[ "Apache-2.0", "MIT" ]
7
2017-10-16T10:46:20.000Z
2020-12-03T16:42:55.000Z
flydra_analysis/flydra_analysis/a2/check_mainbrain_h5_contiguity.py
elhananby/flydra
09b86859b1863700cdea0bbcdd4758da6c83930b
[ "Apache-2.0", "MIT" ]
21
2018-04-11T09:06:40.000Z
2021-12-26T23:38:40.000Z
#!/usr/bin/env python from __future__ import print_function import tables import argparse import numpy as np import sys def check_mainbrain_h5_contiguity( filename, slow_but_less_ram=False, shortcircuit=False, verbose=False ): failed_obj_ids = [] if verbose: print("opening %r" % filename) with...
33.066038
90
0.575178
0
0
0
0
0
0
0
0
728
0.207703
bd2629883944c343ab1a2e4d82cafb22e7d45e13
2,304
py
Python
reader.py
Birdulon/html-mangareader
dbdbbaa454125896b9de2d918f2ab59a3c06adc2
[ "MIT" ]
1
2021-05-08T14:58:17.000Z
2021-05-08T14:58:17.000Z
reader.py
Birdulon/html-mangareader
dbdbbaa454125896b9de2d918f2ab59a3c06adc2
[ "MIT" ]
null
null
null
reader.py
Birdulon/html-mangareader
dbdbbaa454125896b9de2d918f2ab59a3c06adc2
[ "MIT" ]
null
null
null
import sys import traceback import webbrowser from argparse import ArgumentParser, Namespace from os import path from tkinter import Tk, messagebox, filedialog from mangareader.mangarender import extract_render from mangareader import templates from time import sleep def parse_args() -> Namespace: parser = Argume...
34.909091
100
0.631076
0
0
0
0
0
0
0
0
436
0.189236
bd29d7f8357ca28a05195118a23e7f338eea17aa
483
py
Python
Qemu/power_on_qemu.py
I-Rinka/Virtualization-Difference
7727215f5b5cdb8bf18d91ef76685ccd3489e760
[ "MIT" ]
null
null
null
Qemu/power_on_qemu.py
I-Rinka/Virtualization-Difference
7727215f5b5cdb8bf18d91ef76685ccd3489e760
[ "MIT" ]
null
null
null
Qemu/power_on_qemu.py
I-Rinka/Virtualization-Difference
7727215f5b5cdb8bf18d91ef76685ccd3489e760
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import socket import os import time import threading def power_on(): os.system("sudo bash ./start_vm.sh") if __name__ == "__main__": n=os.fork() if n>0: os.system("sleep 2") os.system("sudo ip addr add 172.19.0.1/24 dev tap1") os.system("...
18.576923
64
0.52588
0
0
0
0
0
0
0
0
180
0.372671
bd2a739ca5325c09ff24414f0ce30e0bab1eacb7
381
py
Python
tests/unit/python/execution_tree/dynamic_init.py
frzfrsfra4/phylanx
001fe7081f3a24e56157cdb21b2d126b8953ff5d
[ "BSL-1.0" ]
83
2017-08-27T15:09:13.000Z
2022-01-18T17:03:41.000Z
tests/unit/python/execution_tree/dynamic_init.py
frzfrsfra4/phylanx
001fe7081f3a24e56157cdb21b2d126b8953ff5d
[ "BSL-1.0" ]
808
2017-08-27T15:35:01.000Z
2021-12-14T17:30:50.000Z
tests/unit/python/execution_tree/dynamic_init.py
frzfrsfra4/phylanx
001fe7081f3a24e56157cdb21b2d126b8953ff5d
[ "BSL-1.0" ]
55
2017-08-27T15:09:22.000Z
2022-03-25T12:07:34.000Z
# Copyright (c) 2018 R. Tohid # # Distributed under the Boost Software License, Version 1.0. (See accompanying # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) from phylanx import Phylanx, PhylanxSession @Phylanx def foo(): a = 2 return a def main(): assert (2 == foo()) if _...
17.318182
79
0.671916
0
0
0
0
42
0.110236
0
0
192
0.503937
bd2af34a041fa744101d9895d1374416d6964a87
1,073
py
Python
indexStackexchange.py
o19s/semantic-search-course
ebe15eaa65c5009fa2d526b4df72bf8dbfb8630f
[ "Apache-2.0" ]
6
2016-03-07T18:41:52.000Z
2016-12-22T20:45:17.000Z
indexStackexchange.py
o19s/semantic-search-course
ebe15eaa65c5009fa2d526b4df72bf8dbfb8630f
[ "Apache-2.0" ]
1
2016-03-07T19:09:19.000Z
2016-03-07T19:09:19.000Z
indexStackexchange.py
o19s/semantic-search-course
ebe15eaa65c5009fa2d526b4df72bf8dbfb8630f
[ "Apache-2.0" ]
null
null
null
import requests import json def openPosts(): data = "" try: f = open("scifi_stackexchange.json") data = f.read() except IOError: stackExchangeData ="https://storage.googleapis.com/quepid-sample-datasets/elasticsearch/scifi_stackexchange.json" resp = requests.get(stackExchan...
26.825
121
0.587139
0
0
354
0.329916
0
0
0
0
296
0.275862
bd2bf016c3e6797feee09cab8b88dd0593ba10a9
332
py
Python
hackathonbaobab2020/tests/__init__.py
baobabsoluciones/hackathonbaobab2020
ada30525cca061daad4bd420aa45dd4cfc7b790e
[ "MIT" ]
null
null
null
hackathonbaobab2020/tests/__init__.py
baobabsoluciones/hackathonbaobab2020
ada30525cca061daad4bd420aa45dd4cfc7b790e
[ "MIT" ]
2
2020-12-03T22:37:45.000Z
2021-01-28T19:43:42.000Z
hackathonbaobab2020/tests/__init__.py
baobabsoluciones/hackathonbaobab2020
ada30525cca061daad4bd420aa45dd4cfc7b790e
[ "MIT" ]
5
2020-11-20T15:37:58.000Z
2021-01-29T10:22:07.000Z
import os import zipfile from ..core import Instance def get_test_instance(zip, filename): directory = os.path.dirname(__file__) zip_path = os.path.join(directory, zip) zip_obj = zipfile.ZipFile(zip_path) data = zip_obj.read(filename) return Instance.from_mm(path=None, content=data.decode().splitl...
27.666667
78
0.740964
0
0
0
0
0
0
0
0
0
0
bd2c89f3c83b146173c4e02b15272145ff176687
1,634
py
Python
Lab01_Introduction/exercise-4.py
rodrigoc-silva/Python-course
327b20738a4b383510faddc0ec26a54be1bbd717
[ "MIT" ]
null
null
null
Lab01_Introduction/exercise-4.py
rodrigoc-silva/Python-course
327b20738a4b383510faddc0ec26a54be1bbd717
[ "MIT" ]
null
null
null
Lab01_Introduction/exercise-4.py
rodrigoc-silva/Python-course
327b20738a4b383510faddc0ec26a54be1bbd717
[ "MIT" ]
null
null
null
#This program shows the amount of each ingredient needed for a numbers of cookies. #constants sugar = 1.5 butter = 1 flour = 2.75 cookies = 48 #input numOfCookies = int(input('Enter the number of cookies:')) #calculation amtSugar = sugar / cookies * numOfCookies amtButter = butter / cookies * numOfCookies amtFlour ...
18.155556
82
0.660343
0
0
0
0
0
0
0
0
1,235
0.755814
bd2cd6efeb3ab12f89218d4758f64e6ad10fe52a
3,778
py
Python
tests/test_versions.py
jaleskovec/reqcheck
ffc13cd28127f751617cdd29f7003866341fca58
[ "MIT" ]
null
null
null
tests/test_versions.py
jaleskovec/reqcheck
ffc13cd28127f751617cdd29f7003866341fca58
[ "MIT" ]
2
2021-01-27T12:22:11.000Z
2021-01-31T03:32:08.000Z
tests/test_versions.py
jaleskovec/reqcheck
ffc13cd28127f751617cdd29f7003866341fca58
[ "MIT" ]
null
null
null
import unittest from datetime import datetime, timedelta from pkg_resources import parse_version import reqcheck.versions as versions class GetBehindNumVersionsTest(unittest.TestCase): def setUp(self): self.versions = [ {'version': parse_version('1.0.1')}, {'version': parse_versi...
49.064935
129
0.642139
3,631
0.961091
0
0
0
0
0
0
607
0.160667
bd2df4074244dd69e6875bd543777ca99a678244
2,437
py
Python
seoaudit/config.py
Guber/seoaudit
e38bc453629643f0282cdf9324e4f1db81f57f7f
[ "Apache-2.0" ]
7
2019-12-10T17:05:14.000Z
2020-11-10T10:10:45.000Z
seoaudit/config.py
Guber/seoaudit
e38bc453629643f0282cdf9324e4f1db81f57f7f
[ "Apache-2.0" ]
3
2020-10-23T09:19:19.000Z
2021-12-13T20:28:03.000Z
seoaudit/config.py
Guber/seoaudit
e38bc453629643f0282cdf9324e4f1db81f57f7f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from seoaudit.checks.element import ElementCheck from seoaudit.checks.page import PageCheck from seoaudit.checks.site import SiteCheck page_tests = [(PageCheck.TEXT_TO_CODE_RATIO, {"min_ratio": 0.1}), (PageCheck.DOM_SIZE, {"max_size": 1500}), [PageCheck.ELEMENTS_SIMILA...
50.770833
115
0.588839
0
0
0
0
0
0
0
0
1,278
0.524415
bd2e2477ed8bfb390dc1b2799ff2c5a263416a72
3,822
py
Python
utils/certificate/tools.py
sr-gi/paysense
e896191b42c97009d56a23d54518569561064c42
[ "BSD-3-Clause" ]
2
2015-11-30T19:05:19.000Z
2017-02-04T08:31:59.000Z
utils/certificate/tools.py
sr-gi/paysense
e896191b42c97009d56a23d54518569561064c42
[ "BSD-3-Clause" ]
null
null
null
utils/certificate/tools.py
sr-gi/paysense
e896191b42c97009d56a23d54518569561064c42
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) <2015> <Sergi Delgado Segura> # Distributed under the BSD software license, see the accompanying file LICENSE from pyasn1.codec.der import encoder, decoder from pyasn1_modules.rfc2459 import Certificate from Crypto.PublicKey import RSA from M2Crypto import X509 from hashlib import sha256 from os import...
34.745455
176
0.715856
0
0
0
0
0
0
0
0
2,478
0.648352
bd2ee870e5845b50e43bca14345288b03bd674b2
1,340
py
Python
zombie_infection.py
schana/random-hacking
5eeda2f05681ce9f56f1b9114255c2392e92ee9a
[ "Apache-2.0" ]
null
null
null
zombie_infection.py
schana/random-hacking
5eeda2f05681ce9f56f1b9114255c2392e92ee9a
[ "Apache-2.0" ]
null
null
null
zombie_infection.py
schana/random-hacking
5eeda2f05681ce9f56f1b9114255c2392e92ee9a
[ "Apache-2.0" ]
null
null
null
import random import sys sys.setrecursionlimit(15000) count_columns = 50 count_rows = 40 matrix = [[random.randint(0, 1) for i in range(count_columns)] for j in range(count_rows)] matrix = [[0] * count_columns for _ in range(count_rows)] for _ in range(10): matrix[random.randint(0, count_rows - 1)][random.randin...
24.363636
90
0.590299
0
0
0
0
0
0
0
0
109
0.081343
bd2f0d561dd6a11311d27d509b7dfde5f4ee84a5
114
py
Python
portabletext_html/__init__.py
otovo/python-sanity-html
e445dd9d0f05f8cfe424112e568f37c36e663096
[ "Apache-2.0" ]
13
2021-04-14T11:19:20.000Z
2021-11-26T11:56:39.000Z
portabletext_html/__init__.py
otovo/python-sanity-html
e445dd9d0f05f8cfe424112e568f37c36e663096
[ "Apache-2.0" ]
25
2021-04-14T12:48:50.000Z
2021-11-29T08:11:14.000Z
portabletext_html/__init__.py
otovo/python-portabletext-html
31718a70db58afd143976bf0edfb42239f1800dc
[ "Apache-2.0" ]
null
null
null
from portabletext_html.renderer import PortableTextRenderer, render __all__ = ['PortableTextRenderer', 'render']
28.5
67
0.824561
0
0
0
0
0
0
0
0
30
0.263158
bd32c31d868cb38b20ce13d60b0f31a73b04c464
309
py
Python
dad.py
1234borkowskip/WD151280
273d8a5b655e60eed1195125420462e1e11161cf
[ "MIT" ]
null
null
null
dad.py
1234borkowskip/WD151280
273d8a5b655e60eed1195125420462e1e11161cf
[ "MIT" ]
null
null
null
dad.py
1234borkowskip/WD151280
273d8a5b655e60eed1195125420462e1e11161cf
[ "MIT" ]
null
null
null
def cg(n, a1=1, q=2): n = n - 1 while n > 0: a1 = a1 * q n = n - 1 return a1 print("{} wyraz ciagu geometrycznego gdzie a1 = {}, q = {} wynosi {}".format(4, 1, 5, cg(4, 1, 5))) print("{} wyraz ciagu geometrycznego gdzie a1 = {}, q = {} wynosi {}".format(7, 1, 2, cg(7)))
30.9
100
0.482201
0
0
0
0
0
0
0
0
126
0.407767
bd33d681a6be39dde7d89c1d2456e4e15b7cbc67
296
py
Python
src/code42cli/cmds/shell.py
maddie-vargo/code42cli
fde4a70d4810923b668e8ca2d8d00af75c567dd1
[ "MIT" ]
14
2020-07-15T13:55:53.000Z
2022-02-24T19:09:50.000Z
src/code42cli/cmds/shell.py
maddie-vargo/code42cli
fde4a70d4810923b668e8ca2d8d00af75c567dd1
[ "MIT" ]
213
2020-07-16T14:21:00.000Z
2022-03-29T16:08:08.000Z
src/code42cli/cmds/shell.py
maddie-vargo/code42cli
fde4a70d4810923b668e8ca2d8d00af75c567dd1
[ "MIT" ]
11
2020-07-15T13:58:09.000Z
2022-03-29T17:33:51.000Z
import click import IPython from code42cli import BANNER from code42cli.options import sdk_options @click.command() @sdk_options() def shell(state): """Open an IPython shell with py42 initialized as `sdk`.""" IPython.embed(colors="Neutral", banner1=BANNER, user_ns={"sdk": state.sdk})
22.769231
79
0.743243
0
0
0
0
193
0.652027
0
0
73
0.246622
bd347bef874fe2b7fd02a07a979e78547511f381
216
py
Python
src/Main.py
Yee172/Memory_Revival
e9bf4598564546ada3b9d9bfce7bf35fad348850
[ "MIT" ]
null
null
null
src/Main.py
Yee172/Memory_Revival
e9bf4598564546ada3b9d9bfce7bf35fad348850
[ "MIT" ]
null
null
null
src/Main.py
Yee172/Memory_Revival
e9bf4598564546ada3b9d9bfce7bf35fad348850
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'Yee_172' __date__ = '2017/12/03' import sys PATH = sys.path[0][:-4] sys.path.append(PATH) from src.Func import * win = MainWin() sys.exit(app.exec_())
14.4
23
0.648148
0
0
0
0
0
0
0
0
66
0.305556
bd34863190099e5a1deaa0f914751c6c45b7892c
1,191
py
Python
tools/protonvpn-ips/main.py
alessandrobasi/basi-warninglist
995d3cd94e1dc7afdc09eff11bc1baa352b225e9
[ "MIT" ]
null
null
null
tools/protonvpn-ips/main.py
alessandrobasi/basi-warninglist
995d3cd94e1dc7afdc09eff11bc1baa352b225e9
[ "MIT" ]
null
null
null
tools/protonvpn-ips/main.py
alessandrobasi/basi-warninglist
995d3cd94e1dc7afdc09eff11bc1baa352b225e9
[ "MIT" ]
null
null
null
import requests, os dir_name = os.path.basename(os.path.dirname(os.path.realpath(__file__))) save_path = "../../lists/"+dir_name+"/" def main(): ips = set() with open(save_path+"all.txt","r",encoding="UTF-8") as f: for line in f: ips.add(line[:-1]) url_ = 'https://api.protonmail.c...
31.342105
191
0.577666
0
0
0
0
0
0
0
0
352
0.29555
bd3567ec2bb0a247f32f1485e666f3eac6f7dc19
2,809
py
Python
dakota/sobol/sobol.py
arfc/dcwrapper
82226f601580be464668fa63df64f037962db57e
[ "BSD-3-Clause" ]
1
2020-03-26T14:09:30.000Z
2020-03-26T14:09:30.000Z
dakota/sobol/sobol.py
mehmeturkmen/dcwrapper
82226f601580be464668fa63df64f037962db57e
[ "BSD-3-Clause" ]
10
2019-10-08T18:46:36.000Z
2019-11-14T19:23:05.000Z
dakota/sobol/sobol.py
mehmeturkmen/dcwrapper
82226f601580be464668fa63df64f037962db57e
[ "BSD-3-Clause" ]
3
2019-10-29T19:23:44.000Z
2020-09-18T13:09:49.000Z
# Dakota Python Driving Script # necessary python modules import dakota.interfacing as di import subprocess import sys import os import multiprocessing sys.path.append('../../scripts') import input as inp import output as oup import external_cym cycdir = '../../cyclus-files/sobol/' # -----------------...
25.770642
62
0.555714
0
0
0
0
0
0
0
0
799
0.284443
bd36b9e0da9470a5e37a78543606857028eee2e2
873
py
Python
basic linear reg.py
recurshawn/Basic-Linear-Regression
e0ee45f58d45911d34a854f015ea196b159a2f8a
[ "MIT" ]
2
2018-08-12T06:09:04.000Z
2019-05-06T07:03:26.000Z
basic linear reg.py
recurshawn/Basic-Linear-Regression
e0ee45f58d45911d34a854f015ea196b159a2f8a
[ "MIT" ]
null
null
null
basic linear reg.py
recurshawn/Basic-Linear-Regression
e0ee45f58d45911d34a854f015ea196b159a2f8a
[ "MIT" ]
2
2018-07-19T14:35:46.000Z
2018-08-12T06:13:43.000Z
""" BASIC LINEAR REGRESSION CODE Consider this my first application of what I understood about ML/DL so far. I wrote this to check my understanding of the basic concepts. It's pretty simple but I needed to get my feet wet with code. Any suggestions for modifications are welcome! """ #x and y data...
28.16129
128
0.634593
0
0
0
0
0
0
0
0
536
0.613975
bd3a8db83a92cdd76c21b817a1af0e0151e6c4ab
5,690
py
Python
app/hide-and-seek/common/computils/debug.py
loramf/mlforhealthlabpub
aa5a42a4814cf69c8223f27c21324ee39d43c404
[ "BSD-3-Clause" ]
171
2021-02-12T10:23:19.000Z
2022-03-29T01:58:52.000Z
app/hide-and-seek/common/computils/debug.py
loramf/mlforhealthlabpub
aa5a42a4814cf69c8223f27c21324ee39d43c404
[ "BSD-3-Clause" ]
4
2021-06-01T08:18:33.000Z
2022-02-20T13:37:30.000Z
app/hide-and-seek/common/computils/debug.py
loramf/mlforhealthlabpub
aa5a42a4814cf69c8223f27c21324ee39d43c404
[ "BSD-3-Clause" ]
93
2021-02-10T03:21:59.000Z
2022-03-30T19:10:37.000Z
""" Debug helpers. """ import io import logging from typing import Union, Optional, Callable import numpy as np import pandas as pd _printt_log_method = print def set_log_method(log_method: Optional[Callable] = None) -> None: global _printt_log_method # pylint: disable=global-statement if log_method is no...
30.10582
110
0.618102
0
0
0
0
0
0
0
0
2,232
0.392267
bd3b0f2c14b30cd87e31089661c02ceeb62af81c
3,862
py
Python
setup.py
jacklinke/django-directed
8ef8cd8a71e9a03a8628dce6465351f676f542ff
[ "Apache-2.0" ]
2
2022-02-09T10:15:40.000Z
2022-02-22T14:11:03.000Z
setup.py
jacklinke/django-directed
8ef8cd8a71e9a03a8628dce6465351f676f542ff
[ "Apache-2.0" ]
1
2022-02-20T14:49:37.000Z
2022-02-20T14:49:37.000Z
setup.py
jacklinke/django-directed
8ef8cd8a71e9a03a8628dce6465351f676f542ff
[ "Apache-2.0" ]
null
null
null
import os import re import sys from collections import defaultdict try: from setuptools import setup except ImportError: from distutils.core import setup def get_version(*file_paths): """Retrieves the version from django_directed/__init__.py""" filename = os.path.join(os.path.dirname(__file__), *file...
33.877193
108
0.634645
0
0
0
0
0
0
0
0
1,759
0.455463
bd3b1d81b7abc114bb78bcdb8316981a6a5efeb1
2,050
py
Python
cv_utils/object_detection/dataset/utils.py
fadamsyah/cv_utils
487fc65fe4a71f05dd03df31cde21d866968c0b4
[ "MIT" ]
null
null
null
cv_utils/object_detection/dataset/utils.py
fadamsyah/cv_utils
487fc65fe4a71f05dd03df31cde21d866968c0b4
[ "MIT" ]
1
2021-11-01T06:10:29.000Z
2021-11-09T12:47:48.000Z
cv_utils/object_detection/dataset/utils.py
fadamsyah/cv_utils
487fc65fe4a71f05dd03df31cde21d866968c0b4
[ "MIT" ]
null
null
null
import json import os import shutil from copy import deepcopy from pathlib import Path def create_and_overwrite_dir(path_dir): # Create the directory Path(path_dir).mkdir(parents=True, exist_ok=True) # Overwrite the directory for path in os.listdir(path_dir): try: os.remove(os.path.join(p...
25.308642
85
0.632683
0
0
0
0
0
0
0
0
689
0.336098
bd3b2ec0d2c9b53564b73ae83d10294a44c47243
269
py
Python
datos_modelar/clean_data.py
alexvaca0/EquipoGamma
6999cb2d24104c9cabdbfbddcb3d2746f395b0ba
[ "MIT" ]
null
null
null
datos_modelar/clean_data.py
alexvaca0/EquipoGamma
6999cb2d24104c9cabdbfbddcb3d2746f395b0ba
[ "MIT" ]
null
null
null
datos_modelar/clean_data.py
alexvaca0/EquipoGamma
6999cb2d24104c9cabdbfbddcb3d2746f395b0ba
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Feb 6 23:26:38 2019 @author: avaca """ import pandas as pd import numpy as np from sklearn.model_selection import GridSearchCV complete_data = pd.read_csv('', encoding = 'utf-8') vars_categ = ['HY_provincia', 'HY_tipo']
16.8125
51
0.69145
0
0
0
0
0
0
0
0
114
0.423792
bd4090b02cae8881961d07fc8983d1d1780b62bf
1,326
py
Python
python/extracting/findPrimer.py
csiu/tokens
8a7f865d921d91aae4019e43677435ad78a8a703
[ "MIT" ]
null
null
null
python/extracting/findPrimer.py
csiu/tokens
8a7f865d921d91aae4019e43677435ad78a8a703
[ "MIT" ]
1
2015-04-20T03:28:48.000Z
2015-04-20T03:40:44.000Z
python/extracting/findPrimer.py
csiu/tokens
8a7f865d921d91aae4019e43677435ad78a8a703
[ "MIT" ]
null
null
null
import re inputfile = '/Users/csiu/project/webCrawler/extractPrimer/test.txt' primerStart = """5'""" primerEnd = """3'""" nucleotides = '[ATGCN]' linePrimerEnding = re.compile(nucleotides + '$') linePrimerStarting = re.compile('^' + nucleotides) with open(inputfile, 'r') as f: for line in f: if primerSt...
30.136364
74
0.534691
0
0
0
0
0
0
0
0
216
0.162896
bd41247422955c2bec8c75c3f52048f4b0c6d343
1,213
py
Python
app/core/admin.py
crocodundee/news-board-api-app
380e6e75f9263a068200a723c04568a9f2261ecc
[ "MIT" ]
null
null
null
app/core/admin.py
crocodundee/news-board-api-app
380e6e75f9263a068200a723c04568a9f2261ecc
[ "MIT" ]
null
null
null
app/core/admin.py
crocodundee/news-board-api-app
380e6e75f9263a068200a723c04568a9f2261ecc
[ "MIT" ]
null
null
null
from django.contrib import admin from django.contrib.auth.admin import UserAdmin as BaseUserAdmin from django.contrib.auth.models import User from django.utils.translation import gettext as _ from core import models class UserAdmin(BaseUserAdmin): """Admin panel configuration for User model""" list_display ...
28.880952
79
0.659522
826
0.680956
0
0
0
0
0
0
417
0.343776
bd41d6fca25f541134f0afce1961c06f85b0df9b
1,806
py
Python
tests/fixtures.py
DNXLabs/ssm-loader
eae0257794126247584150eeb1b74ae05f4fcaf5
[ "Apache-2.0" ]
null
null
null
tests/fixtures.py
DNXLabs/ssm-loader
eae0257794126247584150eeb1b74ae05f4fcaf5
[ "Apache-2.0" ]
2
2020-07-31T05:32:10.000Z
2020-09-07T10:38:24.000Z
tests/fixtures.py
DNXLabs/ssm-loader
eae0257794126247584150eeb1b74ae05f4fcaf5
[ "Apache-2.0" ]
null
null
null
import pytest import os import json import boto3 from click.testing import CliRunner from moto import mock_ssm @pytest.fixture def runner(): return CliRunner() @pytest.fixture(scope='function') def aws_credentials(): """Mocked AWS Credentials for moto.""" os.environ['AWS_ACCESS_KEY_ID'] = 'test' os...
22.860759
75
0.593577
0
0
105
0.05814
1,673
0.926357
0
0
558
0.30897
bd42f92ac6de47d16f3dec018fcdc491713b5ba6
5,656
py
Python
scripts/plotting/create_num_demos_plots.py
Learning-and-Intelligent-Systems/predicators
0b2e71cacf86ba2bfdc1d9059c3a78016d0a4d7e
[ "MIT" ]
24
2021-11-20T16:35:41.000Z
2022-03-30T03:49:52.000Z
scripts/plotting/create_num_demos_plots.py
Learning-and-Intelligent-Systems/predicators
0b2e71cacf86ba2bfdc1d9059c3a78016d0a4d7e
[ "MIT" ]
214
2021-10-12T01:17:50.000Z
2022-03-31T20:18:36.000Z
scripts/plotting/create_num_demos_plots.py
Learning-and-Intelligent-Systems/predicators
0b2e71cacf86ba2bfdc1d9059c3a78016d0a4d7e
[ "MIT" ]
1
2022-02-15T20:24:17.000Z
2022-02-15T20:24:17.000Z
"""Create plots for learning from varying numbers of demonstrations.""" import os import matplotlib import matplotlib.pyplot as plt import pandas as pd from predicators.scripts.analyze_results_directory import create_dataframes, \ get_df_for_entry pd.options.mode.chained_assignment = None # default='warn' # pl...
37.456954
79
0.572313
0
0
0
0
0
0
0
0
2,310
0.408416
bd43a1e72c9d194feac6f21f795a8c2f2065d1a1
85,638
py
Python
pyaedt/modeler/stackup_3d.py
pyansys/pyaedt
c7b045fede6bc707fb20a8db7d5680c66d8263f6
[ "MIT" ]
38
2021-10-01T23:15:26.000Z
2022-03-30T18:14:41.000Z
pyaedt/modeler/stackup_3d.py
pyansys/pyaedt
c7b045fede6bc707fb20a8db7d5680c66d8263f6
[ "MIT" ]
362
2021-09-30T17:11:55.000Z
2022-03-31T13:36:20.000Z
pyaedt/modeler/stackup_3d.py
pyansys/pyaedt
c7b045fede6bc707fb20a8db7d5680c66d8263f6
[ "MIT" ]
15
2021-09-30T20:21:02.000Z
2022-02-21T20:22:03.000Z
import os from collections import OrderedDict try: import joblib except ImportError: pass try: import numpy as np except ImportError: pass from pyaedt import constants from pyaedt.generic.general_methods import generate_unique_name from pyaedt.generic.general_methods import pyaedt_function_handler fro...
33.91604
119
0.574768
84,717
0.989245
0
0
57,409
0.670368
0
0
29,088
0.339662
bd463c23420373bb21cbb94033d3aa58f68f33b2
1,119
py
Python
lib/retainn/curl.py
cellularmitosis/retainn
9e59024f3b35d4bb0bdf675b9f29369569e2080b
[ "MIT" ]
1
2021-06-05T08:40:44.000Z
2021-06-05T08:40:44.000Z
lib/retainn/curl.py
cellularmitosis/retainn
9e59024f3b35d4bb0bdf675b9f29369569e2080b
[ "MIT" ]
null
null
null
lib/retainn/curl.py
cellularmitosis/retainn
9e59024f3b35d4bb0bdf675b9f29369569e2080b
[ "MIT" ]
1
2021-10-14T12:28:32.000Z
2021-10-14T12:28:32.000Z
"""Retainn web-fetching functions.""" try: # Python 3 from urllib.request import Request, urlopen except ImportError: # Python 2 from urllib2 import Request, urlopen def http_get_deck_and_etag(gist_url): """Download the markdown and etag of a deck URL.""" response = urlopen(gist_url + "/raw")...
28.692308
67
0.680071
83
0.074173
0
0
0
0
0
0
252
0.225201
bd47557928bc51ca7d2e89e0a88949b5b7b0aaa5
1,511
py
Python
data/train/python/bd47557928bc51ca7d2e89e0a88949b5b7b0aaa5urls.py
harshp8l/deep-learning-lang-detection
2a54293181c1c2b1a2b840ddee4d4d80177efb33
[ "MIT" ]
84
2017-10-25T15:49:21.000Z
2021-11-28T21:25:54.000Z
data/train/python/bd47557928bc51ca7d2e89e0a88949b5b7b0aaa5urls.py
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
5
2018-03-29T11:50:46.000Z
2021-04-26T13:33:18.000Z
data/train/python/bd47557928bc51ca7d2e89e0a88949b5b7b0aaa5urls.py
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
24
2017-11-22T08:31:00.000Z
2022-03-27T01:22:31.000Z
from django.conf.urls.defaults import * urlpatterns = patterns('clwmail.admin.views', (r'user/manage/page/(?P<page_num>\d{1,})/$' ,'usermanage'), (r'user/manage/page/$' ,'usermanage'), (r'user/add/$' ,'useradd'), (r'user/...
65.695652
77
0.420913
0
0
0
0
0
0
0
0
861
0.569821
bd481775933800ff7697945131e21bcfb7859fdc
670
py
Python
tutorials2/data_loading_tutorial.py
xuanyuyt/pytorch-tutorial
92076ac56d42da98ea61ce06708bb8c537a49af0
[ "MIT" ]
null
null
null
tutorials2/data_loading_tutorial.py
xuanyuyt/pytorch-tutorial
92076ac56d42da98ea61ce06708bb8c537a49af0
[ "MIT" ]
null
null
null
tutorials2/data_loading_tutorial.py
xuanyuyt/pytorch-tutorial
92076ac56d42da98ea61ce06708bb8c537a49af0
[ "MIT" ]
null
null
null
import os import torch import pandas as pd from skimage import io, transform import numpy as np import matplotlib.pyplot as plt from torch.utils.data import Dataset, DataLoader from torchvision import transforms, utils # Ignore waring import warnings warnings.filterwarnings('ignore') plt.ion() landmarks_frame = pd.r...
29.130435
75
0.770149
0
0
0
0
0
0
0
0
134
0.2
bd48e2bd368062575f8e3c68c1ab5aaaace702be
6,020
py
Python
run_validation.py
sr9000/stepik_code_task_baking
60a5197f659db1734132eeb9d82624f1b7aaeb3f
[ "MIT" ]
null
null
null
run_validation.py
sr9000/stepik_code_task_baking
60a5197f659db1734132eeb9d82624f1b7aaeb3f
[ "MIT" ]
null
null
null
run_validation.py
sr9000/stepik_code_task_baking
60a5197f659db1734132eeb9d82624f1b7aaeb3f
[ "MIT" ]
null
null
null
import logging as log import sys from extra.introspection import collect_datasets, collect_wrong_solutions from implementation.checker import output_reader, checker as check from implementation.solver import input_reader, solver as solve, hinter as get_hint from pre_definition.solve_caller import call_with_args from p...
34.797688
120
0.670598
169
0.028073
1,961
0.325748
0
0
0
0
1,385
0.230066
bd498e34fef15d05b6f453bd45dc8caf7869dd9c
139
py
Python
accounts/schemas/validators/__init__.py
aobcvr/rpg_quest_accounts
960772a159618194ea26e81d6d874e5f69fbbec7
[ "MIT" ]
2
2021-08-15T14:27:37.000Z
2021-09-14T10:55:38.000Z
accounts/schemas/validators/__init__.py
aobcvr/rpg_quest_accounts
960772a159618194ea26e81d6d874e5f69fbbec7
[ "MIT" ]
1
2021-09-12T12:30:11.000Z
2021-09-12T12:30:11.000Z
accounts/schemas/validators/__init__.py
aobcvr/rpg_quest_accounts
960772a159618194ea26e81d6d874e5f69fbbec7
[ "MIT" ]
null
null
null
from .locale import LocaleValidator from .timezone import TimezoneValidator __all__ = ( 'LocaleValidator', 'TimezoneValidator', )
17.375
39
0.755396
0
0
0
0
0
0
0
0
36
0.258993
bd49a1d92154f5da9b36b624b1f7c5c860a48554
346
py
Python
remove_duplicates_from_sorted_array.py
lutianming/leetcode
848c7470ff5fd23608cc954be23732f60488ed8a
[ "MIT" ]
null
null
null
remove_duplicates_from_sorted_array.py
lutianming/leetcode
848c7470ff5fd23608cc954be23732f60488ed8a
[ "MIT" ]
null
null
null
remove_duplicates_from_sorted_array.py
lutianming/leetcode
848c7470ff5fd23608cc954be23732f60488ed8a
[ "MIT" ]
null
null
null
class Solution: # @param a list of integers # @return an integer def removeDuplicates(self, A): length = len(A) if length <= 1: return length index = 1 for i in range(1, length): if A[i] != A[i-1]: A[index] = A[i] index ...
24.714286
34
0.459538
345
0.99711
0
0
0
0
0
0
47
0.135838
bd49b8155e5a08f5ca5bd991e7606c828ebf1c3d
421
py
Python
apps/algorithms/migrations/0003_auto_20190201_0136.py
ScorpioDoctor/StudyAiD1
fd37a400a61dc1ae7a3ef6b1273afc3f0daea3e4
[ "Apache-2.0" ]
null
null
null
apps/algorithms/migrations/0003_auto_20190201_0136.py
ScorpioDoctor/StudyAiD1
fd37a400a61dc1ae7a3ef6b1273afc3f0daea3e4
[ "Apache-2.0" ]
null
null
null
apps/algorithms/migrations/0003_auto_20190201_0136.py
ScorpioDoctor/StudyAiD1
fd37a400a61dc1ae7a3ef6b1273afc3f0daea3e4
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.0.10 on 2019-02-01 01:36 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('algorithms', '0002_auto_20190201_0013'), ] operations = [ migrations.RemoveField( model_name='algorithmimage', name='algori...
20.047619
50
0.589074
335
0.795724
0
0
0
0
0
0
128
0.304038
bd49d7f152ceeb7bc9bb00c813b8cb8af0d1c6dc
3,704
py
Python
visan/plot/datasetattributespanel.py
ercumentaksoy/visan
57c9257d80622fc0ab03591db48cc2155bd12f1b
[ "MIT", "BSD-3-Clause" ]
7
2020-04-09T05:21:03.000Z
2022-01-23T18:39:02.000Z
visan/plot/datasetattributespanel.py
ercumentaksoy/visan
57c9257d80622fc0ab03591db48cc2155bd12f1b
[ "MIT", "BSD-3-Clause" ]
7
2020-01-05T19:19:20.000Z
2020-05-27T09:41:49.000Z
visan/plot/datasetattributespanel.py
ercumentaksoy/visan
57c9257d80622fc0ab03591db48cc2155bd12f1b
[ "MIT", "BSD-3-Clause" ]
4
2020-04-18T14:11:22.000Z
2021-11-10T02:27:49.000Z
# Copyright (C) 2002-2021 S[&]T, The Netherlands. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of condi...
38.583333
105
0.660907
1,762
0.475702
0
0
0
0
0
0
1,764
0.476242
bd49f05f95bdcec75ece665e2dc35ecf557cf5b9
3,473
py
Python
iscc_registry/observe.py
titusz/iscc-registry
def03f420e671ec470070bb09b6a78099f7827da
[ "MIT" ]
3
2020-07-06T16:01:54.000Z
2020-08-06T11:03:25.000Z
iscc_registry/observe.py
titusz/iscc-registry
def03f420e671ec470070bb09b6a78099f7827da
[ "MIT" ]
null
null
null
iscc_registry/observe.py
titusz/iscc-registry
def03f420e671ec470070bb09b6a78099f7827da
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Watching for registration events""" import time from dataclasses import dataclass, asdict import iscc_registry from loguru import logger as log import iscc from iscc_registry.conn import db_client from iscc_registry.publish import get_live_contract from iscc_registry import tools from iscc_re...
30.734513
104
0.657357
132
0.038007
0
0
143
0.041175
0
0
658
0.189462
bd4bc561fda1c42a4d4d120ce2ef72e50322b064
2,670
py
Python
examples/active_replication/flux_egress_operator.py
yujialuo/erdos
7a631b55895f1a473b0f4d38a0d6053851e65b5d
[ "Apache-2.0" ]
null
null
null
examples/active_replication/flux_egress_operator.py
yujialuo/erdos
7a631b55895f1a473b0f4d38a0d6053851e65b5d
[ "Apache-2.0" ]
null
null
null
examples/active_replication/flux_egress_operator.py
yujialuo/erdos
7a631b55895f1a473b0f4d38a0d6053851e65b5d
[ "Apache-2.0" ]
null
null
null
from erdos.data_stream import DataStream from erdos.message import Message from erdos.op import Op from erdos.timestamp import Timestamp from erdos.utils import setup_logging import flux_utils from flux_utils import is_control_stream, is_not_control_stream from flux_buffer import Buffer import threading class FluxEg...
37.083333
75
0.648689
2,362
0.884644
0
0
571
0.213858
0
0
329
0.123221
bd4c2d2d1aecd9d7ef7769f96a47de90c8225163
6,400
py
Python
src/CNN_models/train_model.py
ChrisPedder/Medieval_Manuscripts
40bfcf9c273385cfd8aa66e63b2fb80078fef33b
[ "MIT" ]
null
null
null
src/CNN_models/train_model.py
ChrisPedder/Medieval_Manuscripts
40bfcf9c273385cfd8aa66e63b2fb80078fef33b
[ "MIT" ]
5
2020-12-28T15:28:35.000Z
2022-02-10T03:26:44.000Z
src/CNN_models/train_model.py
ChrisPedder/Medieval_Manuscripts
40bfcf9c273385cfd8aa66e63b2fb80078fef33b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Aug 10 11:07:05 2018 @author: chrispedder To train the model, run from the top-level dir as: python3 -m src.CNN_models.train_model --args ... """ import numpy as np import os import argparse import json import tensorflow as tf from abc import ABC, ...
33.333333
85
0.621563
4,207
0.657344
0
0
364
0.056875
0
0
1,369
0.213906
bd4e4bb56c05d5afc00c0ccb424743f1c99a0f0b
8,063
py
Python
pfb_exporter/transform/sqla.py
znatty22/pfb-edu
24e606895c192b92493c0808d00a10fdf6f5ffa4
[ "Apache-2.0" ]
null
null
null
pfb_exporter/transform/sqla.py
znatty22/pfb-edu
24e606895c192b92493c0808d00a10fdf6f5ffa4
[ "Apache-2.0" ]
null
null
null
pfb_exporter/transform/sqla.py
znatty22/pfb-edu
24e606895c192b92493c0808d00a10fdf6f5ffa4
[ "Apache-2.0" ]
null
null
null
""" Transform SQLAlchemy Models to PFB Schema """ import os import logging import inspect import subprocess from collections import defaultdict import timeit from pprint import pformat from sqlalchemy.dialects.postgresql import UUID from sqlalchemy.inspection import inspect as sqla_inspect from sqlalchemy.orm.properti...
34.60515
79
0.583902
7,171
0.88893
0
0
0
0
0
0
3,101
0.384406
bd4f4238a7747d65be7c026c2c3ecfe16032b5fb
104
py
Python
diofant/printing/pretty/__init__.py
project-kotinos/diofant___diofant
882549ac3a4dac238695aa620c02fce6ca33f9d3
[ "BSD-3-Clause" ]
1
2021-08-22T09:34:15.000Z
2021-08-22T09:34:15.000Z
diofant/printing/pretty/__init__.py
project-kotinos/diofant___diofant
882549ac3a4dac238695aa620c02fce6ca33f9d3
[ "BSD-3-Clause" ]
null
null
null
diofant/printing/pretty/__init__.py
project-kotinos/diofant___diofant
882549ac3a4dac238695aa620c02fce6ca33f9d3
[ "BSD-3-Clause" ]
null
null
null
"""ASCII-ART 2D pretty-printer""" from .pretty import pprint, pprint_use_unicode, pretty, pretty_print
26
68
0.778846
0
0
0
0
0
0
0
0
33
0.317308