hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
302eecf90fe5fc460ada70d4c54a49c6462ba961
996
py
Python
bin/prep-data.py
aranjbar1313/PassGAN
bdc7a9b311c03e53cb8fa4c35f1c918045c539f5
[ "MIT" ]
819
2017-12-20T02:04:08.000Z
2022-03-25T08:38:53.000Z
bin/prep-data.py
aranjbar1313/PassGAN
bdc7a9b311c03e53cb8fa4c35f1c918045c539f5
[ "MIT" ]
16
2017-12-25T23:05:21.000Z
2022-01-05T06:53:33.000Z
bin/prep-data.py
aranjbar1313/PassGAN
bdc7a9b311c03e53cb8fa4c35f1c918045c539f5
[ "MIT" ]
190
2017-12-20T04:36:34.000Z
2022-03-25T21:50:36.000Z
import sys import random random.seed(1337) # run "python make-rockyou-full.py > data/rockyou-full.txt" to create this file # if it doesn't already exist with open('../data/rockyou-full.txt', 'r') as f: # we can't line buffer because we need everything to randomize lines = f.readlines() # filter only pas...
33.2
109
0.643574
f3996a6ee11ca10b0c97ca4ea7e53bf4995fad30
54
py
Python
src/models/_imports.py
SamuelSchmidgall/RodentNavigation
2ec49c5f43aa456ba648d1117a1b76241ad7a946
[ "MIT" ]
2
2021-01-03T17:41:02.000Z
2022-02-28T22:37:48.000Z
solver/utils.py
JackFram/Neural-Flow
83cea7aa933fa9650b42271ba4205208814d047b
[ "Apache-2.0" ]
null
null
null
solver/utils.py
JackFram/Neural-Flow
83cea7aa933fa9650b42271ba4205208814d047b
[ "Apache-2.0" ]
1
2022-02-28T22:37:48.000Z
2022-02-28T22:37:48.000Z
import numpy as np import torch import torch.nn as nn
13.5
21
0.796296
8ed44341439cc4a4aaecf06a89192b810f1f5c73
9,734
py
Python
contrib/devtools/symbol-check.py
shaavan/gui-qml
bbb3112dcd456c0ce920e3cc44c4b163fe7fdc1d
[ "MIT" ]
32
2021-06-03T14:45:26.000Z
2022-02-28T09:36:24.000Z
contrib/devtools/symbol-check.py
shaavan/gui-qml
bbb3112dcd456c0ce920e3cc44c4b163fe7fdc1d
[ "MIT" ]
63
2021-06-03T15:56:41.000Z
2022-01-23T13:34:25.000Z
contrib/devtools/symbol-check.py
shaavan/gui-qml
bbb3112dcd456c0ce920e3cc44c4b163fe7fdc1d
[ "MIT" ]
19
2021-06-03T14:40:39.000Z
2022-03-28T19:27:11.000Z
#!/usr/bin/env python3 # Copyright (c) 2014 Wladimir J. van der Laan # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' A script to check that release executables only contain certain symbols and are only linked against allowed li...
32.66443
113
0.672694
dc006ce91a5aa814b32dbd6370ccc8031dea840e
1,115
py
Python
scripts/AlignOrientedReads.py
jeizenga/shasta
0948628124ba5c3dd9dcd071e88017ee453b4c54
[ "MIT" ]
null
null
null
scripts/AlignOrientedReads.py
jeizenga/shasta
0948628124ba5c3dd9dcd071e88017ee453b4c54
[ "MIT" ]
null
null
null
scripts/AlignOrientedReads.py
jeizenga/shasta
0948628124ba5c3dd9dcd071e88017ee453b4c54
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import shasta import GetConfig import sys helpMessage = """ This computes a marker alignment of two oriented reads. Invoke with four arguments: readId0, strand0, readId1, strand1. """ # Get the arguments. if not len(sys.argv) == 5: print(helpMessage) exit(1) readId0 = int(sys.argv[1]); st...
24.777778
74
0.724664
47d35052049f0c94aeaba81bf4b40b2d0493a73c
2,234
py
Python
fuzzinator/call/regex_filter.py
akosthekiss/fuzzinator
194e199bb0efea26b857ad05f381f72e7a9b8f66
[ "BSD-3-Clause" ]
null
null
null
fuzzinator/call/regex_filter.py
akosthekiss/fuzzinator
194e199bb0efea26b857ad05f381f72e7a9b8f66
[ "BSD-3-Clause" ]
null
null
null
fuzzinator/call/regex_filter.py
akosthekiss/fuzzinator
194e199bb0efea26b857ad05f381f72e7a9b8f66
[ "BSD-3-Clause" ]
1
2018-06-28T05:21:21.000Z
2018-06-28T05:21:21.000Z
# Copyright (c) 2016-2021 Renata Hodovan, Akos Kiss. # # Licensed under the BSD 3-Clause License # <LICENSE.rst or https://opensource.org/licenses/BSD-3-Clause>. # This file may not be copied, modified, or distributed except # according to those terms. import re from ..config import as_list from .call_decorator impor...
35.460317
125
0.621307
8e80130dcbb531c16a5b1a0fad5b7db6b1d3fc8e
6,970
py
Python
entities/test_parsers.py
acdh-oeaw/apisbaseproject
bb3a6ec280cb431e6252c4595f425261b6c551c9
[ "MIT" ]
null
null
null
entities/test_parsers.py
acdh-oeaw/apisbaseproject
bb3a6ec280cb431e6252c4595f425261b6c551c9
[ "MIT" ]
6
2018-06-13T15:05:30.000Z
2021-06-10T20:15:37.000Z
entities/test_parsers.py
acdh-oeaw/metarita
de7484adc689fcb461cbe0abe40672e05e78e37e
[ "MIT" ]
null
null
null
from django.test import TestCase from django.contrib.auth.models import User, Group from .models import Person, Place, Institution, Work, Event from metainfo.models import Text, Collection, Source, Uri, UriCandidate from vocabularies.models import PersonPlaceRelation from labels.models import Label from relations.mode...
48.402778
150
0.646341
be9a888b81c67e05af8f2bd626ac2a130593c429
5,245
py
Python
ChoreographyHive/choreography/choreos/air_show.py
jeroen11dijk/Choreography
aadafb86fb86445489afed4535c852801097168e
[ "MIT" ]
null
null
null
ChoreographyHive/choreography/choreos/air_show.py
jeroen11dijk/Choreography
aadafb86fb86445489afed4535c852801097168e
[ "MIT" ]
null
null
null
ChoreographyHive/choreography/choreos/air_show.py
jeroen11dijk/Choreography
aadafb86fb86445489afed4535c852801097168e
[ "MIT" ]
null
null
null
from typing import List from rlbot.utils.structures.game_data_struct import GameTickPacket from rlbot.utils.structures.game_interface import GameInterface from choreography.choreography_main import Choreography from choreography.drone import Drone from choreography.group_step import BlindBehaviorStep, StateSettingSte...
28.198925
100
0.648808
7259ec90bc7cfd0ca14b601673312d8dbc8654fc
7,112
py
Python
Course5-Sequence Models/Week1/Jazz Improvisation with LSTM/data_utils.py
savnani5/Deep-Learning-Specialization-Coursera
865469a1f20a1878674f98e0a7043f7c753575df
[ "BSD-Source-Code" ]
15
2021-11-03T04:33:22.000Z
2022-03-30T18:24:57.000Z
Sequence Models/week1/w1a3/data_utils.py
got69/Deep-Learning-Specialization-Coursera
8ae1bc70bda5374facdb91dca62f0258a34c16a6
[ "Apache-2.0" ]
null
null
null
Sequence Models/week1/w1a3/data_utils.py
got69/Deep-Learning-Specialization-Coursera
8ae1bc70bda5374facdb91dca62f0258a34c16a6
[ "Apache-2.0" ]
21
2021-11-03T04:34:11.000Z
2022-03-22T10:17:06.000Z
from music_utils import * from preprocess import * from tensorflow.keras.utils import to_categorical from collections import defaultdict from mido import MidiFile from pydub import AudioSegment from pydub.generators import Sine import math #chords, abstract_grammars = get_musical_data('data/original_metheny.mid') #...
39.076923
170
0.655371
542aece556cdb41b231223c47fbb1adc5acea1bd
1,921
py
Python
source/interprocedural_analyses/taint/test/integration/model_query_transitive_extends.py
joehendrix/pyre-check
23693455b1e0b4a7287efba9337be6bbfe23ada4
[ "MIT" ]
1
2022-02-10T10:51:32.000Z
2022-02-10T10:51:32.000Z
source/interprocedural_analyses/taint/test/integration/model_query_transitive_extends.py
joehendrix/pyre-check
23693455b1e0b4a7287efba9337be6bbfe23ada4
[ "MIT" ]
null
null
null
source/interprocedural_analyses/taint/test/integration/model_query_transitive_extends.py
joehendrix/pyre-check
23693455b1e0b4a7287efba9337be6bbfe23ada4
[ "MIT" ]
null
null
null
# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from builtins import _test_sink, _test_source class Test1_C: attribute = ... def __init__(self): self.instance = ... cl...
15.368
65
0.651744
7aab357b135ead6a16ea11c000719157fb86522b
847
py
Python
examples/example10.py
Freakwill/pyrimidine
ff05998f110a69a002180d0dae2ae514a5807cfb
[ "MIT" ]
1
2021-03-04T17:03:14.000Z
2021-03-04T17:03:14.000Z
examples/example10.py
Freakwill/pyrimidine
ff05998f110a69a002180d0dae2ae514a5807cfb
[ "MIT" ]
null
null
null
examples/example10.py
Freakwill/pyrimidine
ff05998f110a69a002180d0dae2ae514a5807cfb
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from pyrimidine import MonoBinaryIndividual from pyrimidine.population import * from pyrimidine.benchmarks.optimization import * n = 50 _evaluate = Knapsack.random(n) class MyIndividual(MonoBinaryIndividual): def _fitness(self): return _evaluate(self.chromo...
23.527778
84
0.726092
3874c2cf95674e03bfd1b00014dfaaf0e0a9a84e
628
py
Python
python/data-wrangling-components/tests/engine/test_difference.py
microsoft/data-wrangling-components
4be99ceb3a0d64ff7cac69d4eb1b7c81b1da9aff
[ "MIT" ]
4
2021-12-16T01:43:36.000Z
2022-03-26T22:28:59.000Z
python/data-wrangling-components/tests/engine/test_difference.py
microsoft/data-wrangling-components
4be99ceb3a0d64ff7cac69d4eb1b7c81b1da9aff
[ "MIT" ]
5
2022-02-08T21:12:44.000Z
2022-03-15T23:42:56.000Z
python/data-wrangling-components/tests/engine/test_difference.py
microsoft/data-wrangling-components
4be99ceb3a0d64ff7cac69d4eb1b7c81b1da9aff
[ "MIT" ]
3
2022-02-14T17:46:25.000Z
2022-03-25T20:38:25.000Z
# # Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. See LICENSE file in the project. # from data_wrangling_components.engine.verbs.difference import difference from data_wrangling_components.types import Step, Verb from tests.engine.test_store import get_test_store def test_...
25.12
73
0.671975
b18fe412ed939214bb14b30d9a31104389dc68c7
7,533
py
Python
packnet_sfm/utils/image.py
wbkit/packnet-sfm
21e62ed163587f5b1538b8bb4f6e669b9c4e2804
[ "MIT" ]
null
null
null
packnet_sfm/utils/image.py
wbkit/packnet-sfm
21e62ed163587f5b1538b8bb4f6e669b9c4e2804
[ "MIT" ]
null
null
null
packnet_sfm/utils/image.py
wbkit/packnet-sfm
21e62ed163587f5b1538b8bb4f6e669b9c4e2804
[ "MIT" ]
null
null
null
# Copyright 2020 Toyota Research Institute. All rights reserved. import cv2 import torch import torch.nn.functional as funct from functools import lru_cache from PIL import Image from packnet_sfm.utils.misc import same_shape def load_image(path): """ Read an image using PIL Parameters ---------- ...
26.431579
120
0.550909
c30de5c8fe3bfea15bd9e7d5897b07e64ee9e2dd
3,310
py
Python
watson_developer_cloud/natural_language_understanding_v1.py
anjchatt/Watson1
49836fe537e0437947e00ab9dd824acc1709774f
[ "Apache-2.0" ]
9
2017-05-09T14:22:57.000Z
2018-04-25T11:48:54.000Z
Message_delivery_Kafka/query/virtualenv/lib/python2.7/site-packages/watson_developer_cloud/natural_language_understanding_v1.py
RickeyBoy/HACKxSJTU_ChatAssistant
12768c8b6710adb582aec6c3b40613eedc3dfeb2
[ "Apache-2.0" ]
null
null
null
Message_delivery_Kafka/query/virtualenv/lib/python2.7/site-packages/watson_developer_cloud/natural_language_understanding_v1.py
RickeyBoy/HACKxSJTU_ChatAssistant
12768c8b6710adb582aec6c3b40613eedc3dfeb2
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 IBM All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
38.941176
78
0.623867
49724d19d8cf285bb5f2b4b1ce285a5cdcea5853
6,026
py
Python
util/command_util.py
CantSayIHave/OllieBotCore_v3
bec7b8bcfbd550bec11a85bfcead8478605998af
[ "MIT" ]
4
2018-01-16T10:08:49.000Z
2019-07-28T07:48:08.000Z
util/command_util.py
CantSayIHave/OllieBotCore
bec7b8bcfbd550bec11a85bfcead8478605998af
[ "MIT" ]
null
null
null
util/command_util.py
CantSayIHave/OllieBotCore
bec7b8bcfbd550bec11a85bfcead8478605998af
[ "MIT" ]
null
null
null
import re from enum import Enum import discord from PIL import Image, ImageDraw, ImageOps from discord.ext import commands from util import global_util class ArgumentType(Enum): MEMBER = USER = 0 CHANNEL = 1 COLOUR = COLOR = 2 ROLE = 3 GAME = 4 INVITE = 5 ...
29.684729
112
0.578493
413476790cb586587a12d86bc3701a112205dd15
5,268
py
Python
v0/aia_eis_v0/playground/laiZhaoGui/goa/visualize_res_0.py
DreamBoatOve/aia_eis
458b4d29846669b10db4da1b3e86c0b394614ceb
[ "MIT" ]
1
2022-03-02T12:57:19.000Z
2022-03-02T12:57:19.000Z
v0/aia_eis_v0/playground/laiZhaoGui/goa/visualize_res_0.py
DreamBoatOve/aia_eis
458b4d29846669b10db4da1b3e86c0b394614ceb
[ "MIT" ]
null
null
null
v0/aia_eis_v0/playground/laiZhaoGui/goa/visualize_res_0.py
DreamBoatOve/aia_eis
458b4d29846669b10db4da1b3e86c0b394614ceb
[ "MIT" ]
null
null
null
from utils.file_utils.filename_utils import get_date_prefix from playground.laiZhaoGui.goa.get_lai_manual_fitting_res import read_lai_manual_fitting_res, read_lai_test_coordinate, pack_lai_manual_fitting_res, wrap_lai_data_4_contour from playground.laiZhaoGui.goa.get_GOAs_fitting_res import get_GOAs_best_fitting_res, p...
56.645161
172
0.654708
390209bad79adc0dc28937438d068518a194cf7a
3,638
py
Python
raw/day22/newpart2.py
aesdeef/advent-of-code-2021
4561bcf12ac03d360f5b28c48ef80134f97613b9
[ "MIT" ]
2
2021-12-03T06:18:27.000Z
2021-12-06T11:28:33.000Z
raw/day22/newpart2.py
aesdeef/advent-of-code-2021
4561bcf12ac03d360f5b28c48ef80134f97613b9
[ "MIT" ]
null
null
null
raw/day22/newpart2.py
aesdeef/advent-of-code-2021
4561bcf12ac03d360f5b28c48ef80134f97613b9
[ "MIT" ]
null
null
null
import re from collections import Counter, defaultdict, deque from functools import cache from itertools import ( chain, combinations, combinations_with_replacement, count, cycle, permutations, product, ) # READ THE ENTIRE DESCRIPTION FIRST INPUT_FILE = "../../input/22.txt" # INPUT_FILE = ...
26.362319
83
0.538758
db5cf01a71259307e365e8aa9324c3ecb9d95359
4,035
py
Python
build/lib/iemlav/lib/antivirus/scanner/scanner_engine.py
GouravRDutta/IemLabsAV
8d397a3d59e067176269c5e84d73bf53951b7b3f
[ "MIT" ]
null
null
null
build/lib/iemlav/lib/antivirus/scanner/scanner_engine.py
GouravRDutta/IemLabsAV
8d397a3d59e067176269c5e84d73bf53951b7b3f
[ "MIT" ]
null
null
null
build/lib/iemlav/lib/antivirus/scanner/scanner_engine.py
GouravRDutta/IemLabsAV
8d397a3d59e067176269c5e84d73bf53951b7b3f
[ "MIT" ]
1
2021-07-02T12:29:10.000Z
2021-07-02T12:29:10.000Z
from iemlav.lib.antivirus.scanner.hash_scanner import HashScanner from iemlav.lib.antivirus.scanner.yara_scanner import YaraScanner from iemlav.lib.antivirus.scanner.clamav_scanner import ClamAVScanner from iemlav.lib.antivirus.antivirus_logger import AntiVirusLogger import multiprocessing import sys class Scanner...
34.487179
97
0.55316
18de44d582491e8cd7d0cfe03667fa7d1c996202
1,778
py
Python
liquid_node/jsonapi.py
thifranc/node
ffdd75056ca9d9a6e9b6f3fb4a0b2bda6af11d14
[ "MIT" ]
4
2020-03-18T06:51:52.000Z
2021-08-09T20:17:57.000Z
liquid_node/jsonapi.py
thifranc/node
ffdd75056ca9d9a6e9b6f3fb4a0b2bda6af11d14
[ "MIT" ]
120
2019-02-08T05:55:44.000Z
2021-11-24T09:34:14.000Z
liquid_node/jsonapi.py
thifranc/node
ffdd75056ca9d9a6e9b6f3fb4a0b2bda6af11d14
[ "MIT" ]
9
2019-01-25T12:35:28.000Z
2022-01-11T15:40:05.000Z
import json import logging from urllib.error import HTTPError from urllib.request import Request, urlopen log = logging.getLogger(__name__) class JsonApi: def __init__(self, endpoint): self.endpoint = endpoint def request(self, method, url, data=None, headers=None): """Makes a request agai...
27.78125
80
0.556805
3804fc638c870d15f64436f4a9fee407822af4b1
8,138
py
Python
dovpanda/base.py
avisherwood/DovPandaDev
fd8f30b6dd243bdc1b3a4f3dbeab2b9f52c4f553
[ "BSD-3-Clause" ]
null
null
null
dovpanda/base.py
avisherwood/DovPandaDev
fd8f30b6dd243bdc1b3a4f3dbeab2b9f52c4f553
[ "BSD-3-Clause" ]
null
null
null
dovpanda/base.py
avisherwood/DovPandaDev
fd8f30b6dd243bdc1b3a4f3dbeab2b9f52c4f553
[ "BSD-3-Clause" ]
null
null
null
import functools import inspect import re import sys from collections import defaultdict, deque from contextlib import contextmanager from dovpanda import config try: # If user runs from notebook they will have this from IPython.display import display except (ModuleNotFoundError, ImportError): pa...
31.789063
119
0.577415
409c804f90140534f97c54184d5624c0fb3fb5df
412
py
Python
Desafios/Desafio009.py
AlestanAlves/Curso-Em-Video
0b21b5c6777dfc6c2a559e5a43eedb3813343384
[ "MIT" ]
1
2019-08-16T03:12:21.000Z
2019-08-16T03:12:21.000Z
Desafios/Desafio009.py
AlestanAlves/Curso-Em-Video
0b21b5c6777dfc6c2a559e5a43eedb3813343384
[ "MIT" ]
null
null
null
Desafios/Desafio009.py
AlestanAlves/Curso-Em-Video
0b21b5c6777dfc6c2a559e5a43eedb3813343384
[ "MIT" ]
null
null
null
n = int(input('Insert number: ')) n0 = n * 0 n1 = n * 1 n2 = n * 2 n3 = n * 3 n4 = n * 4 n5 = n * 5 n6 = n * 6 n7 = n * 7 n8 = n * 8 n9 = n * 9 n10 = n * 10 print ('Table of {} \n {} x 0 = {} \n {} x 1 = {} \n {} x 2 = {} \n {} x 3 = {} \n {} x 4 = {} \n {} x 5 = {} \n {} x 6 = {} \n {} x 7 = {} \n {} x 8 = {} \n {} ...
27.466667
253
0.373786
7fdbb811e613f212edffc43c00df1d702d175723
7,042
py
Python
ckanext/archiver/model.py
ckan/ckanext-archiver
faf097c58f310b1cd187b2ef1150360d3ab09faf
[ "MIT" ]
16
2016-01-11T14:42:41.000Z
2022-03-18T03:20:15.000Z
ckanext/archiver/model.py
ckan/ckanext-archiver
faf097c58f310b1cd187b2ef1150360d3ab09faf
[ "MIT" ]
49
2015-03-23T14:47:37.000Z
2021-05-27T06:27:55.000Z
ckanext/archiver/model.py
ckan/ckanext-archiver
faf097c58f310b1cd187b2ef1150360d3ab09faf
[ "MIT" ]
30
2015-01-08T09:04:31.000Z
2021-06-22T13:53:21.000Z
import itertools from builtins import str from builtins import object import uuid from datetime import datetime from sqlalchemy import Column, MetaData from sqlalchemy import types from sqlalchemy.ext.declarative import declarative_base import ckan.model as model import ckan.plugins as p from ckan.lib import dictiza...
32.906542
99
0.638313
70b61891ebb868df693b73050c4c07bf5b8b9b2c
7,446
py
Python
source/capacity_quantiles.py
othuxley1/capacity_mismatch_paper
9e2753629d775606966c3b940a37d1b68f2c8851
[ "MIT" ]
null
null
null
source/capacity_quantiles.py
othuxley1/capacity_mismatch_paper
9e2753629d775606966c3b940a37d1b68f2c8851
[ "MIT" ]
null
null
null
source/capacity_quantiles.py
othuxley1/capacity_mismatch_paper
9e2753629d775606966c3b940a37d1b68f2c8851
[ "MIT" ]
null
null
null
""" A script to select boxplot quantile data from the capacity results and re-run the site list variation code to regenerate each site list permutation. - First authored: 2020-04-30 - Owen Huxley <othuxley1@sheffield.ac.uk> """ import pandas as pd from site_list_variation import SiteListVariation from dbconnector...
43.040462
147
0.585415
fd0b7309f5faf20e8bac7e806d940ca97271e408
26,655
py
Python
venv/lib/python3.6/site-packages/ansible_collections/community/grafana/plugins/modules/grafana_datasource.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/community/grafana/plugins/modules/grafana_datasource.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/community/grafana/plugins/modules/grafana_datasource.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2017, Thierry Sallé (@seuf) # GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = ''' module: grafana_datasource auth...
35.072368
147
0.64003
bd5fb92a2d29450c371c9f6740e916c6e9b80e8e
2,084
py
Python
wordspotting/att/emb_atts.py
cwiep/query-by-online-handwriting
d38178b1c558f11f6bc2bae2840737fb6c8ea89a
[ "Apache-2.0" ]
3
2016-09-29T08:28:23.000Z
2022-01-24T17:19:38.000Z
wordspotting/att/emb_atts.py
cwiep/query-by-online-handwriting
d38178b1c558f11f6bc2bae2840737fb6c8ea89a
[ "Apache-2.0" ]
null
null
null
wordspotting/att/emb_atts.py
cwiep/query-by-online-handwriting
d38178b1c558f11f6bc2bae2840737fb6c8ea89a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ @author: Christian Wieprecht @license: Apache License, Version 2.0 Building Attribute SVMS as described in "Word Spotting and Recognition with Embedded Attributes" by Almazan et al. """ import numpy as np import platt import tools.logging as log import svm class AttributesSVMGenerator():...
32.5625
96
0.642514
a68d46e8a6c1502bc89dad4ae22b9a7ac6f8e4a1
15,684
py
Python
pandas/tests/io/parser/test_dtypes.py
LauraCollard/pandas
b1c3a9031569334cafc4e8d45d35408421f7dea4
[ "BSD-3-Clause" ]
2
2019-12-02T11:24:30.000Z
2021-02-28T12:13:54.000Z
pandas/tests/io/parser/test_dtypes.py
ivan-vasilev/pandas
4071dde86e33434e1bee8304fa62074949f813cc
[ "BSD-3-Clause" ]
1
2019-10-31T08:19:49.000Z
2019-10-31T08:19:49.000Z
pandas/tests/io/parser/test_dtypes.py
ivan-vasilev/pandas
4071dde86e33434e1bee8304fa62074949f813cc
[ "BSD-3-Clause" ]
4
2019-10-09T07:52:08.000Z
2021-07-12T02:37:59.000Z
""" Tests dtype specification during parsing for all of the parsers defined in parsers.py """ from io import StringIO import os import numpy as np import pytest from pandas.errors import ParserWarning from pandas.core.dtypes.dtypes import CategoricalDtype import pandas as pd from pandas import Categorical, DataFram...
28.361664
88
0.604756
987b271e2006b3f32f112a845e30fd8b94f4903e
847
py
Python
8_leader.py
alexey-ernest/codility
8545d9d15531cb7d3592e872b9324b72f5ef150f
[ "MIT" ]
null
null
null
8_leader.py
alexey-ernest/codility
8545d9d15531cb7d3592e872b9324b72f5ef150f
[ "MIT" ]
null
null
null
8_leader.py
alexey-ernest/codility
8545d9d15531cb7d3592e872b9324b72f5ef150f
[ "MIT" ]
null
null
null
""" Fast leader search algorithm: O(n) Leader is a number which occurs more than n/2 times """ def leader(A): n = len(A) size = 0 value = None for i in xrange(n): if size == 0: # push first element to the stack size += 1 value = A[i] else: if value != A[i]: # remove to ...
18.822222
84
0.565525
5297ba5aaf1755ebb3f9fa9dc60b9bc4d2cbd20a
16,329
py
Python
triggers/storages/base.py
todofixthis/triggers
f02c28d95ff094023c9bebe431ad166c912cdabf
[ "MIT" ]
2
2018-01-02T00:46:58.000Z
2018-05-20T05:10:45.000Z
triggers/storages/base.py
todofixthis/triggers
f02c28d95ff094023c9bebe431ad166c912cdabf
[ "MIT" ]
null
null
null
triggers/storages/base.py
todofixthis/triggers
f02c28d95ff094023c9bebe431ad166c912cdabf
[ "MIT" ]
2
2018-02-19T19:46:00.000Z
2019-08-14T20:09:47.000Z
# coding=utf-8 from __future__ import absolute_import, division, print_function, \ unicode_literals from abc import ABCMeta, abstractmethod as abstract_method from collections import defaultdict from contextlib import contextmanager as context_manager from typing import Any, Dict, Iterable, Mapping, MutableMapping...
30.071823
110
0.580623
d64625336c49ddec40a4ab86ec56bc8581c935b2
5,398
py
Python
hummingbot/connector/exchange/altmarkets/altmarkets_in_flight_order.py
pecuniafinance/hummingbot
2cbb19c187a429d3e6000dc938617ca2a1f9f357
[ "Apache-2.0" ]
542
2021-12-17T22:34:31.000Z
2022-03-31T14:36:23.000Z
hummingbot/connector/exchange/altmarkets/altmarkets_in_flight_order.py
pecuniafinance/hummingbot
2cbb19c187a429d3e6000dc938617ca2a1f9f357
[ "Apache-2.0" ]
291
2021-12-17T20:07:53.000Z
2022-03-31T11:07:23.000Z
hummingbot/connector/exchange/altmarkets/altmarkets_in_flight_order.py
pecuniafinance/hummingbot
2cbb19c187a429d3e6000dc938617ca2a1f9f357
[ "Apache-2.0" ]
220
2021-12-17T12:41:23.000Z
2022-03-31T23:03:22.000Z
import asyncio from decimal import Decimal from typing import ( Any, Dict, Optional, ) from hummingbot.connector.in_flight_order_base import InFlightOrderBase from hummingbot.core.data_type.common import OrderType, TradeType from .altmarkets_constants import Constants s_decimal_0 = Decimal(0) class Altm...
36.228188
95
0.589292
0099ebe6a752563f875ebc48c7bacab0636072ed
72,314
py
Python
Dictator_service/auto_commands.py
FurqanKhan1/Dictator
74e29c12a8f92292ab3275661622c0632cdd0a7b
[ "Unlicense" ]
5
2019-03-14T10:17:22.000Z
2019-10-23T14:04:12.000Z
Dictator_service/auto_commands.py
FurqanKhan1/Dictator
74e29c12a8f92292ab3275661622c0632cdd0a7b
[ "Unlicense" ]
null
null
null
Dictator_service/auto_commands.py
FurqanKhan1/Dictator
74e29c12a8f92292ab3275661622c0632cdd0a7b
[ "Unlicense" ]
14
2019-03-14T10:34:02.000Z
2021-10-31T17:34:13.000Z
""" @Author :Furqan Khan @Email :furqankhan08@gmail.com @Date :12/30/2016 Objective : The purpose of this file /module /Class is to actually execute the external scripts for vulnerability assessment and scanning.It runs metasploit modules ,external python ,ruby,bash,shell,java class files and some perl as w...
40.832298
386
0.681237
871b82296825c92346e4ea94e4ffb6f380763fe7
16,174
py
Python
identification.py
DUTLiuKevin/starch
285b1e4c9a2332e82acec4a4f08ebded6c1d77a4
[ "MIT" ]
1
2022-01-13T20:24:52.000Z
2022-01-13T20:24:52.000Z
identification.py
DUTLiuKevin/starch
285b1e4c9a2332e82acec4a4f08ebded6c1d77a4
[ "MIT" ]
null
null
null
identification.py
DUTLiuKevin/starch
285b1e4c9a2332e82acec4a4f08ebded6c1d77a4
[ "MIT" ]
null
null
null
# The storm identifier that labels individual storms with unique label at each time step of precipitation data. # The almost-connected labeling algorithm in the code, which is the method "identify" is from # Storm Tracking and Evaluation Protocol (https://github.com/DUTLiuKevin/STEP, author: Alex Rittler) and paper: # ...
56.355401
120
0.705144
a6d2706f4f1c1bd089620606c3e525a056e58e45
2,716
py
Python
tests/test_printers_prettification.py
fentik/pglast
c4652b3a6098faf26fa8d3a8fd054f23acd72f9c
[ "PostgreSQL" ]
179
2018-07-06T19:43:02.000Z
2022-03-25T10:46:50.000Z
tests/test_printers_prettification.py
fentik/pglast
c4652b3a6098faf26fa8d3a8fd054f23acd72f9c
[ "PostgreSQL" ]
90
2018-06-16T09:55:05.000Z
2022-02-28T15:11:45.000Z
tests/test_printers_prettification.py
fentik/pglast
c4652b3a6098faf26fa8d3a8fd054f23acd72f9c
[ "PostgreSQL" ]
32
2019-01-08T09:16:57.000Z
2022-03-30T05:27:25.000Z
# -*- coding: utf-8 -*- # :Project: pglast -- Assert printers emit beautiful code # :Created: dom 17 mar 2019 10:46:03 CET # :Author: Lele Gaifax <lele@metapensiero.it> # :License: GNU General Public License version 3 or later # :Copyright: © 2019, 2020, 2021 Lele Gaifax # from ast import literal_eval from pa...
28.291667
92
0.645803
257185fad01e2783e1852be4c753a3174937ab82
2,515
py
Python
files_treatment_new/fasta_contigs_NCBI.py
diogo1790team/inphinity_DM
b20d75ee0485e1f406a25efcf5f2855631166c38
[ "MIT" ]
1
2019-03-11T12:59:37.000Z
2019-03-11T12:59:37.000Z
files_treatment_new/fasta_contigs_NCBI.py
diogo1790team/inphinity_DM
b20d75ee0485e1f406a25efcf5f2855631166c38
[ "MIT" ]
21
2018-10-17T14:52:30.000Z
2019-06-03T12:43:58.000Z
files_treatment_new/fasta_contigs_NCBI.py
diogo1790team/inphinity_DM
b20d75ee0485e1f406a25efcf5f2855631166c38
[ "MIT" ]
6
2019-02-28T07:40:14.000Z
2019-09-23T13:31:54.000Z
# -*- coding: utf-8 -*- """ Created on Tur Jan 11 15:39:15 2018 @author: Diogo """ from files_treatment_new.generic_fasta_file import _generic_fasta_file from objects_new.Contigs_new import * import numpy as np class FastaContigsNCBI(_generic_fasta_file): """ Class specified in the treatment of the fasta RA...
30.670732
191
0.655666
db48058c7c22155d1a21830122562d960d74c8b8
562
py
Python
ecommerce/src/products/migrations/0010_product_timestamp.py
khalildh/ecommerce-django
48ac2be8677bd87ccfb959a9cdcd62db1ead258f
[ "MIT" ]
null
null
null
ecommerce/src/products/migrations/0010_product_timestamp.py
khalildh/ecommerce-django
48ac2be8677bd87ccfb959a9cdcd62db1ead258f
[ "MIT" ]
5
2021-02-08T20:20:05.000Z
2022-03-11T23:16:40.000Z
ecommerce/src/products/migrations/0010_product_timestamp.py
khalildh/ecommerce-django
48ac2be8677bd87ccfb959a9cdcd62db1ead258f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2017-11-28 01:21 from __future__ import unicode_literals from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('products', '0009_auto_20171127_2050'), ] operations = ...
24.434783
93
0.647687
e5aeb4aeb444673cccb8bbcee201d8e22d5c4b65
5,193
py
Python
loss/modules/pose_modules.py
youansheng/PyTorchCV
3a51b2f209639e58620676bf19b3564ef8c92a75
[ "Apache-2.0" ]
68
2019-01-10T09:16:39.000Z
2022-03-20T18:23:52.000Z
loss/modules/pose_modules.py
youdonny/torchcv
c7e717fe301ba338b3e9dbea70b51f3e2cd5dabe
[ "Apache-2.0" ]
4
2019-01-10T11:47:09.000Z
2019-01-21T15:04:52.000Z
loss/modules/pose_modules.py
youdonny/torchcv
c7e717fe301ba338b3e9dbea70b51f3e2cd5dabe
[ "Apache-2.0" ]
13
2019-01-11T06:13:40.000Z
2021-05-22T03:09:52.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- # Author: Donny You(youansheng@gmail.com) # Loss function for Pose Estimation. from __future__ import absolute_import from __future__ import division from __future__ import print_function import torch import torch.nn as nn from torch.autograd import Variable class OPMse...
36.0625
117
0.546505
70964ccd78bcf835b90027bdb9a476e61585b3c1
6,789
py
Python
novaagent/common/password.py
gtmanfred/novaagent
ef2e22bfd7583cefcdcf7b8b3471c9c4c60b204e
[ "Apache-2.0" ]
2
2017-08-08T21:46:02.000Z
2018-01-24T21:40:15.000Z
novaagent/common/password.py
gtmanfred/novaagent
ef2e22bfd7583cefcdcf7b8b3471c9c4c60b204e
[ "Apache-2.0" ]
27
2017-08-07T13:51:51.000Z
2021-05-22T23:46:57.000Z
novaagent/common/password.py
gtmanfred/novaagent
ef2e22bfd7583cefcdcf7b8b3471c9c4c60b204e
[ "Apache-2.0" ]
13
2017-09-16T12:12:05.000Z
2021-03-04T21:41:16.000Z
# # Copyright (c) 2011 Openstack, LLC. # 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 # # Unl...
28.766949
79
0.605538
922112c81b4b7767d5c1d630e8a10f114d0b165a
406
py
Python
onlinecourse/migrations/0003_choice_course.py
HilbertSpecs/onlinecourse-app
ad7175c0eb6906d36ac9339b7f2cdf28d12c74de
[ "Apache-2.0" ]
null
null
null
onlinecourse/migrations/0003_choice_course.py
HilbertSpecs/onlinecourse-app
ad7175c0eb6906d36ac9339b7f2cdf28d12c74de
[ "Apache-2.0" ]
null
null
null
onlinecourse/migrations/0003_choice_course.py
HilbertSpecs/onlinecourse-app
ad7175c0eb6906d36ac9339b7f2cdf28d12c74de
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.3 on 2021-12-01 22:59 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('onlinecourse', '0002_auto_20211201_2115'), ] operations = [ migrations.AddField( model_name='choice', name='course',...
21.368421
67
0.610837
98b20d87a120e8073cb7b71756fbb634e804ef2e
747
py
Python
tests/test_jedi_ast_tools.py
ajylee/call_map
21e7684b0814eae6f16cd4bc75597dc4e9239ec0
[ "BSD-2-Clause" ]
20
2017-12-24T00:19:15.000Z
2021-11-15T07:42:25.000Z
tests/test_jedi_ast_tools.py
ajylee/call_map
21e7684b0814eae6f16cd4bc75597dc4e9239ec0
[ "BSD-2-Clause" ]
1
2017-10-22T21:03:41.000Z
2017-12-24T04:26:22.000Z
tests/test_jedi_ast_tools.py
ajylee/call_map
21e7684b0814eae6f16cd4bc75597dc4e9239ec0
[ "BSD-2-Clause" ]
2
2017-11-04T10:06:59.000Z
2019-08-01T22:24:49.000Z
import jedi import call_map.jedi_ast_tools as jat import toolz as tz import textwrap def test_get_called_functions(): test_script = """ import call_map.jedi_ast_tools as jat def thunk(): print('hi') def ff(node): aa = jat.get_called_functions(node) thunk() """ t...
22.636364
121
0.689424
07f0e110fe7a2a70c7f2992e8d5b001d124947eb
5,338
py
Python
gprm/utils/wrapping_tools.py
siwill22/GPlatesClassStruggle
713a87ff4f054d3a493ec09e5f310aa3036d3bc5
[ "MIT" ]
7
2020-05-04T03:05:09.000Z
2022-01-28T13:52:53.000Z
gprm/utils/wrapping_tools.py
siwill22/GPlatesClassStruggle
713a87ff4f054d3a493ec09e5f310aa3036d3bc5
[ "MIT" ]
null
null
null
gprm/utils/wrapping_tools.py
siwill22/GPlatesClassStruggle
713a87ff4f054d3a493ec09e5f310aa3036d3bc5
[ "MIT" ]
3
2021-05-23T01:53:52.000Z
2021-09-14T12:21:53.000Z
# # Functions for wrapping geometries to dateline before returning request geojson # import pygplates def wrap_polylines(polylines,lon0=0,tesselate_degrees=1): data = {"type": "FeatureCollection"} data["features"] = [] for polyline in polylines: if lon0 is not None: wrapper = pygpla...
40.135338
139
0.586737
2a712e14c9b90e37db647cd0169aae9dd1f95685
7,473
py
Python
muddery/server/utils/utils.py
dongwudanci/muddery
669fbbdb394d04995470e32e94f10d42f3387996
[ "BSD-3-Clause" ]
null
null
null
muddery/server/utils/utils.py
dongwudanci/muddery
669fbbdb394d04995470e32e94f10d42f3387996
[ "BSD-3-Clause" ]
null
null
null
muddery/server/utils/utils.py
dongwudanci/muddery
669fbbdb394d04995470e32e94f10d42f3387996
[ "BSD-3-Clause" ]
null
null
null
""" General helper functions that don't fit neatly under any given category. They provide some useful string and conversion methods that might be of use when designing your own game. """ import os, re, inspect import importlib from pkgutil import iter_modules from django.conf import settings from muddery.launcher im...
27.677778
98
0.532718
ab7e406a181ed7d5f250b91edc059bbe1a329770
714
py
Python
CursoPython/ex115/lib/interface/__init__.py
jesterwanderer/curso-python-cursoemvideo
b5d6d4acda10b064f89c7175391307d1b8ccac20
[ "MIT" ]
null
null
null
CursoPython/ex115/lib/interface/__init__.py
jesterwanderer/curso-python-cursoemvideo
b5d6d4acda10b064f89c7175391307d1b8ccac20
[ "MIT" ]
null
null
null
CursoPython/ex115/lib/interface/__init__.py
jesterwanderer/curso-python-cursoemvideo
b5d6d4acda10b064f89c7175391307d1b8ccac20
[ "MIT" ]
null
null
null
def leiaInt(msg): while True: try: n = int(input(msg)) except (ValueError, TypeError): print('\033[0;31mErro! Digite um número inteiro válido.\033[m') continue except (KeyboardInterrupt): print('\033[0;31mErro! O Arrombado preferiu não digitar ...
21.636364
85
0.532213
3171a43ecd0f226b53f82a8a0810d5237ba0861e
41,450
py
Python
Incident-Response/Tools/grr/grr/server/grr_response_server/gui/api_plugins/vfs.py
sn0b4ll/Incident-Playbook
cf519f58fcd4255674662b3620ea97c1091c1efb
[ "MIT" ]
1
2021-07-24T17:22:50.000Z
2021-07-24T17:22:50.000Z
Incident-Response/Tools/grr/grr/server/grr_response_server/gui/api_plugins/vfs.py
sn0b4ll/Incident-Playbook
cf519f58fcd4255674662b3620ea97c1091c1efb
[ "MIT" ]
2
2022-02-28T03:40:31.000Z
2022-02-28T03:40:52.000Z
Incident-Response/Tools/grr/grr/server/grr_response_server/gui/api_plugins/vfs.py
sn0b4ll/Incident-Playbook
cf519f58fcd4255674662b3620ea97c1091c1efb
[ "MIT" ]
2
2022-02-25T08:34:51.000Z
2022-03-16T17:29:44.000Z
#!/usr/bin/env python """API handlers for dealing with files in a client's virtual file system.""" from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals import itertools import os import re import zipfile from grr_response_core import config from grr_response_...
32.484326
106
0.707986
c66368ea61eae3262a14053e00a423b6b83ad28d
12,008
py
Python
built-in/TensorFlow/Research/recommendation/Wide&Deep_for_TensorFlow/widedeep/WideDeep_fp16_huifeng.py
Huawei-Ascend/modelzoo
df51ed9c1d6dbde1deef63f2a037a369f8554406
[ "Apache-2.0" ]
null
null
null
built-in/TensorFlow/Research/recommendation/Wide&Deep_for_TensorFlow/widedeep/WideDeep_fp16_huifeng.py
Huawei-Ascend/modelzoo
df51ed9c1d6dbde1deef63f2a037a369f8554406
[ "Apache-2.0" ]
3
2021-03-31T20:15:40.000Z
2022-02-09T23:50:46.000Z
built-in/TensorFlow/Research/recommendation/Wide&Deep_for_TensorFlow/widedeep/WideDeep_fp16_huifeng.py
Huawei-Ascend/modelzoo
df51ed9c1d6dbde1deef63f2a037a369f8554406
[ "Apache-2.0" ]
null
null
null
"""DeepFM related model""" from __future__ import print_function import os import sys import pickle import tensorflow as tf from widedeep.tf_util import build_optimizer, init_var_map, \ get_field_index, get_field_num, split_mask, split_param, sum_multi_hot, \ activate from npu_bridge.estimator import npu_ops fr...
54.09009
128
0.592522
e8a0337c0dbed5a7be9fce9315c04724c42e1edd
3,946
py
Python
tasks/cluster_agent.py
kaarolch/datadog-agent
88d2d9bdc262f3dba3f2b222557f67026bc6f59b
[ "Apache-2.0" ]
null
null
null
tasks/cluster_agent.py
kaarolch/datadog-agent
88d2d9bdc262f3dba3f2b222557f67026bc6f59b
[ "Apache-2.0" ]
null
null
null
tasks/cluster_agent.py
kaarolch/datadog-agent
88d2d9bdc262f3dba3f2b222557f67026bc6f59b
[ "Apache-2.0" ]
null
null
null
""" Cluster Agent tasks """ import glob import os import shutil from invoke import task from invoke.exceptions import Exit from .build_tags import get_build_tags, get_default_build_tags from .cluster_agent_helpers import build_common, clean_common, refresh_assets_common, version_common from .go import deps # consta...
29.669173
119
0.665484
1f5bd65c1a5af1d5fe5be81fad946965372b7ce0
906
py
Python
sdk/python/pulumi_aws_native/elasticache/__init__.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
29
2021-09-30T19:32:07.000Z
2022-03-22T21:06:08.000Z
sdk/python/pulumi_aws_native/elasticache/__init__.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
232
2021-09-30T19:26:26.000Z
2022-03-31T23:22:06.000Z
sdk/python/pulumi_aws_native/elasticache/__init__.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
4
2021-11-10T19:42:01.000Z
2022-02-05T10:15:49.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** from .. import _utilities import typing # Export this package's modules as members: from ._enums import * from .cache_cluster import * from .get_cache_...
31.241379
80
0.782561
6bb742ab017fc66f54a0717021ebff5ce16a1a66
1,529
py
Python
examples/gen-2/q3_b.py
sesajad/numeric
4aab3642f8311b43fb06535df258246b7ab93f16
[ "MIT" ]
null
null
null
examples/gen-2/q3_b.py
sesajad/numeric
4aab3642f8311b43fb06535df258246b7ab93f16
[ "MIT" ]
null
null
null
examples/gen-2/q3_b.py
sesajad/numeric
4aab3642f8311b43fb06535df258246b7ab93f16
[ "MIT" ]
null
null
null
from numexpr import * from numexpr.math import sin, e #false position method min = -5 max = -3 expr = lambda x : 2*sin(x) - e**x/4 - 1 print('\\[ f(x) = ', expr(Number(1, name='x')) , ' \\]\n\n') print('\\[ \\begin{cases} ') x_min = Number(min, name='x_{\\text{min}}') t_expr = expr(x_min) print('f(x_\\text{min}) = ...
37.292683
95
0.522564
10eb7e74aa28cf0b6d385124a19edde0a7e06490
7,680
py
Python
test/functional/mining_prioritisetransaction.py
Techcoingithub/techcoin
6914faea0496d16d85f4f11fc1ae2ba05e9143b8
[ "MIT" ]
null
null
null
test/functional/mining_prioritisetransaction.py
Techcoingithub/techcoin
6914faea0496d16d85f4f11fc1ae2ba05e9143b8
[ "MIT" ]
1
2021-11-30T18:41:44.000Z
2022-01-17T17:55:26.000Z
test/functional/mining_prioritisetransaction.py
Techcoingithub/techcoin
6914faea0496d16d85f4f11fc1ae2ba05e9143b8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the prioritisetransaction mining RPC.""" import time from test_framework.messages import COIN, M...
48.607595
266
0.679818
edefc77c4fd53b875f45db4783c8e2f028af81ee
916
py
Python
azure/mgmt/network/v2016_09_01/models/bgp_peer_status_list_result.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
azure/mgmt/network/v2016_09_01/models/bgp_peer_status_list_result.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
azure/mgmt/network/v2016_09_01/models/bgp_peer_status_list_result.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # C...
32.714286
77
0.567686
4631743ac6190439c98aa3cfc0e0750e5c6f5a39
9,214
py
Python
scripts/docs_csat.py
olgaromashko/docs
c6d639f146ac8299981e4a026defa4a917e7ef90
[ "CC-BY-4.0", "BSD-3-Clause" ]
1
2021-02-14T07:51:38.000Z
2021-02-14T07:51:38.000Z
scripts/docs_csat.py
rainleander/docs
34b94b4ca65100c8f4239681ebd307d0907d387e
[ "CC-BY-4.0", "BSD-3-Clause" ]
54
2021-04-26T20:00:15.000Z
2021-05-12T21:55:53.000Z
scripts/docs_csat.py
rainleander/docs
34b94b4ca65100c8f4239681ebd307d0907d387e
[ "CC-BY-4.0", "BSD-3-Clause" ]
null
null
null
""" Calculate docs CSAT based on "Was this page helpful?" feedback submissions and unique pageviews, as tracked via Google Analytics; and generate a graph plotting docs pages based on their negative and positive votes, with dot size indicating number of unique pageviews. Help: python3 docs-csat.py --help Requirements...
28.79375
111
0.493488
fdc4de386bbc3be7739b8fc2f46cdf7859a484ed
439
py
Python
output/models/nist_data/atomic/name/schema_instance/nistschema_sv_iv_atomic_name_max_length_3_xsd/nistschema_sv_iv_atomic_name_max_length_3.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/nist_data/atomic/name/schema_instance/nistschema_sv_iv_atomic_name_max_length_3_xsd/nistschema_sv_iv_atomic_name_max_length_3.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/nist_data/atomic/name/schema_instance/nistschema_sv_iv_atomic_name_max_length_3_xsd/nistschema_sv_iv_atomic_name_max_length_3.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field __NAMESPACE__ = "NISTSchema-SV-IV-atomic-Name-maxLength-3-NS" @dataclass class NistschemaSvIvAtomicNameMaxLength3: class Meta: name = "NISTSchema-SV-IV-atomic-Name-maxLength-3" namespace = "NISTSchema-SV-IV-atomic-Name-maxLength-3-NS" value: str = fie...
23.105263
65
0.628702
438b524a74e34f66b26e2b409a5d132979fad49d
14,258
py
Python
keras_retinanet_3D/utils/anchors.py
arangesh/Ground-Plane-Polling
ad58ab712a1275c263b4f0a50c5c909401d9a99b
[ "MIT" ]
12
2019-02-23T21:48:21.000Z
2022-02-01T06:05:07.000Z
keras_retinanet_3D/utils/anchors.py
arangesh/Ground-Plane-Polling
ad58ab712a1275c263b4f0a50c5c909401d9a99b
[ "MIT" ]
2
2019-05-27T08:45:43.000Z
2021-06-11T02:41:45.000Z
keras_retinanet_3D/utils/anchors.py
arangesh/Ground-Plane-Polling
ad58ab712a1275c263b4f0a50c5c909401d9a99b
[ "MIT" ]
4
2019-02-13T08:34:53.000Z
2020-01-26T13:42:57.000Z
""" Copyright 2017-2018 Fizyr (https://fizyr.com) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in w...
39.17033
209
0.639781
c275aeed93b6241373b403f0b7bb52a2678450ed
12,073
py
Python
v2.5.7/toontown/parties/PartyLoader.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
4
2019-07-01T15:46:43.000Z
2021-07-23T16:26:48.000Z
v2.5.7/toontown/parties/PartyLoader.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
1
2019-06-29T03:40:05.000Z
2021-06-13T01:15:16.000Z
v2.5.7/toontown/parties/PartyLoader.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
4
2019-07-28T21:18:46.000Z
2021-02-25T06:37:25.000Z
import math, random from direct.directnotify import DirectNotifyGlobal from direct.interval.IntervalGlobal import * from direct.fsm import ClassicFSM, State from panda3d.core import * from panda3d.core import NodePath from toontown.toonbase.ToontownGlobals import * from toontown.safezone import SafeZoneLoader from toon...
40.513423
177
0.638946
b2dc7a9d1d2e3de25994b9ce7d85434696efedc9
2,780
py
Python
install.py
douglashowroyd/wallpaper-manager
cec056f15365deb9cb7a6c330d5cab6561341940
[ "MIT" ]
null
null
null
install.py
douglashowroyd/wallpaper-manager
cec056f15365deb9cb7a6c330d5cab6561341940
[ "MIT" ]
null
null
null
install.py
douglashowroyd/wallpaper-manager
cec056f15365deb9cb7a6c330d5cab6561341940
[ "MIT" ]
null
null
null
#ask for main path with warnings and all #sort folder #run random wallpaper once and record resulting image in txt file #place wallpaper_manager file as exe in startup folder (google this) # To run on setup in general: (This just puts a bat file in startup folder saying run this script) # import getpass # U...
26.226415
171
0.671223
75d35e6c604361dcc994eec0b9fcd391322f65d2
5,119
py
Python
test/functional/wallet-accounts.py
BayerTM/DraftCoinZ
217db2822a320d278d93dda4d3cd5dc4d01764f2
[ "MIT" ]
3
2021-03-13T23:51:40.000Z
2021-07-09T19:15:32.000Z
test/functional/wallet-accounts.py
BayerTM/DraftCoinZ
217db2822a320d278d93dda4d3cd5dc4d01764f2
[ "MIT" ]
null
null
null
test/functional/wallet-accounts.py
BayerTM/DraftCoinZ
217db2822a320d278d93dda4d3cd5dc4d01764f2
[ "MIT" ]
1
2021-04-27T21:33:59.000Z
2021-04-27T21:33:59.000Z
#!/usr/bin/env python3 # Copyright (c) 2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test account RPCs. RPCs tested are: - getaccountaddress - getaddressesbyaccount - listaddressgr...
37.639706
78
0.622387
4d01d3dda86c232dfa4dc0e8edbf5e620b1158ce
1,431
py
Python
pylibftdi/util.py
wrigby/pylibftdi
4662ebe069eefd5a89709d4165e3be808cad636c
[ "MIT" ]
14
2016-12-30T09:50:03.000Z
2022-02-11T11:07:15.000Z
pylibftdi/util.py
wrigby/pylibftdi
4662ebe069eefd5a89709d4165e3be808cad636c
[ "MIT" ]
7
2018-10-29T16:49:26.000Z
2022-01-20T22:57:59.000Z
pylibftdi/util.py
wrigby/pylibftdi
4662ebe069eefd5a89709d4165e3be808cad636c
[ "MIT" ]
8
2016-06-30T15:16:36.000Z
2022-01-31T12:36:37.000Z
""" pylibftdi - python wrapper for libftdi Copyright (c) 2010-2014 Ben Bass <benbass@codedstructure.net> See LICENSE file for details and (absence of) warranty pylibftdi: https://github.com/codedstructure/pylibftdi """ # The Bus descriptor class is probably useful outside of # pylibftdi. It tries to be to Python w...
32.522727
70
0.663871
92cf15cf512bf2cdec3f2e8a3d941b54c5133f3e
187
py
Python
1064.py
heltonricardo/URI
160cca22d94aa667177c9ebf2a1c9864c5e55b41
[ "MIT" ]
6
2021-04-13T00:33:43.000Z
2022-02-10T10:23:59.000Z
1064.py
heltonricardo/URI
160cca22d94aa667177c9ebf2a1c9864c5e55b41
[ "MIT" ]
null
null
null
1064.py
heltonricardo/URI
160cca22d94aa667177c9ebf2a1c9864c5e55b41
[ "MIT" ]
3
2021-03-23T18:42:24.000Z
2022-02-10T10:24:07.000Z
s = 0 q = 0 for i in range(6): n = float(input()) if n > 0: q += 1 s += n if q != 0: m = s / q else: m = 0 print(q, 'valores positivos') print('{:.1f}'.format(m))
15.583333
29
0.449198
de79ea6b2b2da5fd58421b3b66dc93895810a488
36
py
Python
pystock/storage/__init__.py
svdh2/PyStock
d5b36bcf78f94b527d3ea27a3ce1652652bb73e5
[ "MIT" ]
null
null
null
pystock/storage/__init__.py
svdh2/PyStock
d5b36bcf78f94b527d3ea27a3ce1652652bb73e5
[ "MIT" ]
null
null
null
pystock/storage/__init__.py
svdh2/PyStock
d5b36bcf78f94b527d3ea27a3ce1652652bb73e5
[ "MIT" ]
null
null
null
print("init module storage engine")
18
35
0.777778
93d2ddfba5d048f826f7b200f6dd53df31184afc
690,318
py
Python
Lib/pydoc_data/topics.py
zyxue/cpython
ce23914d8e9b6133fd87b82c8f44ea677afb4d7d
[ "0BSD" ]
2
2017-02-27T05:22:39.000Z
2019-02-27T08:07:04.000Z
Lib/pydoc_data/topics.py
zyxue/cpython
ce23914d8e9b6133fd87b82c8f44ea677afb4d7d
[ "0BSD" ]
16
2020-10-23T21:31:06.000Z
2022-03-01T05:00:45.000Z
Lib/pydoc_data/topics.py
zyxue/cpython
ce23914d8e9b6133fd87b82c8f44ea677afb4d7d
[ "0BSD" ]
1
2021-02-23T13:37:48.000Z
2021-02-23T13:37:48.000Z
# -*- coding: utf-8 -*- # Autogenerated by Sphinx on Mon Jan 4 17:25:50 2021 topics = {'assert': 'The "assert" statement\n' '**********************\n' '\n' 'Assert statements are a convenient way to insert debugging ' 'assertions\n' 'into a program:\n' ...
48.896303
118
0.436748
d663482835e339ca596e0d3b4f84a4e536851ea5
604
py
Python
aorist/setup.py
Vibrant-Planet/aorist
067e119ef4d0d40802ce74a8e47d882e557ce195
[ "MIT" ]
16
2021-08-14T10:20:16.000Z
2022-03-31T04:19:26.000Z
aorist/setup.py
scie-nz/aorist
ac1e31251af7d851c4491a310b417de880b79d09
[ "MIT" ]
5
2021-08-15T23:19:10.000Z
2021-09-26T20:50:41.000Z
aorist/setup.py
Vibrant-Planet/aorist
067e119ef4d0d40802ce74a8e47d882e557ce195
[ "MIT" ]
1
2022-01-06T01:26:24.000Z
2022-01-06T01:26:24.000Z
import sys import os from setuptools import setup from setuptools_rust import Binding, RustExtension # We set a specific cargo build target in windows if os.name == "nt": os.environ["CARGO_BUILD_TARGET"] = "x86_64-pc-windows-gnu" setup( name="aorist", version="0.0.1", rust_extensions=[RustExtension("a...
26.26087
76
0.718543
8e03fc8c87969afca5a90a106b5aad347203cbc8
1,527
py
Python
src/dq.py
Tannex/TSP
4b6b4187dda18da068572a2dd852eadef0d0f185
[ "MIT" ]
null
null
null
src/dq.py
Tannex/TSP
4b6b4187dda18da068572a2dd852eadef0d0f185
[ "MIT" ]
null
null
null
src/dq.py
Tannex/TSP
4b6b4187dda18da068572a2dd852eadef0d0f185
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Feb 15 18:38:45 2018 @author: marco """ from data import * def dq_tsp(cities): """Find a tour by divide and conquer: if number of cities is 3 or less, any tour is optimal. Otherwise, split the cities in half, solve each half recursively, ...
32.489362
85
0.645711
38b79f759d28b3f817ed5eba64aaaf9a8046373c
2,471
py
Python
src/9.py
t0a5ted/aoc-2021
c94791d2f78ef89636a462f266cf7daead0e54cb
[ "MIT" ]
null
null
null
src/9.py
t0a5ted/aoc-2021
c94791d2f78ef89636a462f266cf7daead0e54cb
[ "MIT" ]
null
null
null
src/9.py
t0a5ted/aoc-2021
c94791d2f78ef89636a462f266cf7daead0e54cb
[ "MIT" ]
null
null
null
""" See: https://adventofcode.com/2021/day/9 """ from typing import * from functools import reduce def parse_input() -> List[List[int]]: data: List[List[int]] = [] with open('input/9.txt', 'r') as file: contents = file.read() for line in contents.split("\n"): data.append([int(char) ...
27.764045
90
0.519628
4ffe9662302a69143eb34299d63d01d8cbabecd1
1,502
py
Python
pontoon/terminology/admin.py
desmosinc/pontoon
63733f320b9b6a7462b5b04f3b7bfb3e765a565f
[ "BSD-3-Clause" ]
1
2021-04-15T18:56:19.000Z
2021-04-15T18:56:19.000Z
pontoon/terminology/admin.py
desmosinc/pontoon
63733f320b9b6a7462b5b04f3b7bfb3e765a565f
[ "BSD-3-Clause" ]
7
2019-11-17T21:51:37.000Z
2020-06-26T14:59:49.000Z
pontoon/terminology/admin.py
desmosinc/pontoon
63733f320b9b6a7462b5b04f3b7bfb3e765a565f
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from django import forms from pontoon.terminology.models import Term, TermTranslation from pontoon.base.models import Locale class TermAdmin(admin.ModelAdmin): search_fields = [ "text", "part_of_speech", "definition", "usage", "notes", ...
24.622951
76
0.624501
98f49c7bcab0e797920f863ae7ce6e14930b7dee
4,313
py
Python
keystone_tempest_plugin/services/identity/v3/identity_providers_client.py
ilay09/keystone
e45049dfd46ab7d3e4c6aa48a3046f622f4a3b1e
[ "Apache-2.0" ]
null
null
null
keystone_tempest_plugin/services/identity/v3/identity_providers_client.py
ilay09/keystone
e45049dfd46ab7d3e4c6aa48a3046f622f4a3b1e
[ "Apache-2.0" ]
1
2019-08-18T09:25:49.000Z
2019-08-18T09:25:49.000Z
keystone_tempest_plugin/services/identity/v3/identity_providers_client.py
ilay09/keystone
e45049dfd46ab7d3e4c6aa48a3046f622f4a3b1e
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Red Hat, 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 agreed to in writin...
41.873786
77
0.667517
b6a79e42df1dd15c58701889ffa59fc6a6b613b9
599
py
Python
start.py
bmuchemi/Pitches
daa80d5b16d0b7aa2879dac29b7aa75abe19e461
[ "MIT" ]
null
null
null
start.py
bmuchemi/Pitches
daa80d5b16d0b7aa2879dac29b7aa75abe19e461
[ "MIT" ]
null
null
null
start.py
bmuchemi/Pitches
daa80d5b16d0b7aa2879dac29b7aa75abe19e461
[ "MIT" ]
null
null
null
from app import create_app, db from app.models import User, Pitches from flask_script import Manager, Server from flask_migrate import Migrate, MigrateCommand app = create_app('dev') manager = Manager(app) manager.add_command('server', Server) migrate = Migrate(app,db) manager.add_command('db', MigrateCommand) @man...
23.96
51
0.751252
37fde1c9636e623021470a2132f67e54ae411678
526
py
Python
Study-Basic/001_study_print.py
Cpaul777/Script-Archive
2c2d99d41206d98486d9aebdf1acbb0c06b4513d
[ "MIT" ]
4
2021-01-28T12:01:08.000Z
2021-01-28T14:04:45.000Z
Study-Basic/001_study_print.py
Xzlaynveir-Deirdre/Script-Archive
e937129466ebd15272c23df76d3b8a459e62a51d
[ "MIT" ]
null
null
null
Study-Basic/001_study_print.py
Xzlaynveir-Deirdre/Script-Archive
e937129466ebd15272c23df76d3b8a459e62a51d
[ "MIT" ]
1
2021-12-18T11:17:51.000Z
2021-12-18T11:17:51.000Z
"""Link to the source https://youtu.be/k9TUPpGqYTo""" LINER = '\n-----\n' TEXT = "I am studying python that is taught by Corey in his video" print(TEXT) print(LINER + 'This is called slicing' + LINER) print(TEXT[20]) print(LINER) print(TEXT[20:30]) print(LINER) print(TEXT[9:]) print(LINER + 'This is called Methods' + ...
22.869565
66
0.692015
6553385170466067bcde4572d25228e177e43455
630
py
Python
var/spack/repos/builtin/packages/r-miniui/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
11
2015-10-04T02:17:46.000Z
2018-02-07T18:23:00.000Z
var/spack/repos/builtin/packages/r-miniui/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
22
2017-08-01T22:45:10.000Z
2022-03-10T07:46:31.000Z
var/spack/repos/builtin/packages/r-miniui/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
4
2016-06-10T17:57:39.000Z
2018-09-11T04:59:38.000Z
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class RMiniui(RPackage): """Shiny UI Widgets for Small Screens. Provides UI widget and layo...
30
97
0.719048
8c5b150c841d1ad2adaa4a0cd7eeed74dbd44243
750
py
Python
book/migrations/0001_initial.py
nightlyds/library-basic-authentication-server
80a5aabe91c0c406459ebd51bfdcb510b8d1e842
[ "MIT" ]
null
null
null
book/migrations/0001_initial.py
nightlyds/library-basic-authentication-server
80a5aabe91c0c406459ebd51bfdcb510b8d1e842
[ "MIT" ]
null
null
null
book/migrations/0001_initial.py
nightlyds/library-basic-authentication-server
80a5aabe91c0c406459ebd51bfdcb510b8d1e842
[ "MIT" ]
1
2021-07-04T14:21:08.000Z
2021-07-04T14:21:08.000Z
# Generated by Django 3.2.4 on 2021-06-29 09:09 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('author', '0001_initial'), ] operations = [ migrations.CreateModel( name='Book', fields=[ ...
28.846154
114
0.573333
0a0eba80ad2d5c80be53c05a649d174d52553ce0
3,814
py
Python
libraries/linters/tn_linter.py
mondele/tx-manager
ddbbeeae5990a327ffc14b42c478d3ea435c0533
[ "MIT" ]
3
2017-03-17T02:25:21.000Z
2017-05-18T22:18:20.000Z
libraries/linters/tn_linter.py
mondele/tx-manager
ddbbeeae5990a327ffc14b42c478d3ea435c0533
[ "MIT" ]
184
2016-10-13T02:56:16.000Z
2021-03-25T21:27:20.000Z
libraries/linters/tn_linter.py
mondele/tx-manager
ddbbeeae5990a327ffc14b42c478d3ea435c0533
[ "MIT" ]
16
2016-09-15T23:34:19.000Z
2019-07-25T07:06:32.000Z
from __future__ import print_function, unicode_literals import os import re from libraries.app.app import App from libraries.door43_tools.bible_books import BOOK_NUMBERS from libraries.general_tools import file_utils from libraries.linters.markdown_linter import MarkdownLinter class TnLinter(MarkdownLinter): # m...
40.147368
111
0.566072
c8d69b50bcffb488bb9b4899469404cb7e30e909
6,077
py
Python
dxf_stuff/dxf_plugins.py
trevorpeacock/kicad_mmccoo
3f0efb38549f8de1daf2face6a15377084c5cde6
[ "Apache-2.0" ]
1
2021-11-18T11:59:50.000Z
2021-11-18T11:59:50.000Z
dxf_stuff/dxf_plugins.py
trevorpeacock/kicad_mmccoo
3f0efb38549f8de1daf2face6a15377084c5cde6
[ "Apache-2.0" ]
null
null
null
dxf_stuff/dxf_plugins.py
trevorpeacock/kicad_mmccoo
3f0efb38549f8de1daf2face6a15377084c5cde6
[ "Apache-2.0" ]
null
null
null
import pcbnew import wx import os import sys import inspect import pdb from . import dxf_utils from ..simpledialog import DialogUtils import os.path from .dxf_utils import zone_actions from .dxf_utils import segment_actions from .dxf_utils import orient_actions from .dxf_utils import mounting_actions from .dxf_util...
34.140449
109
0.586474
6e7398e4d68af320da23447b52f58de5107598e5
258
py
Python
src/djrtime/tests/wsgi.py
amitu/rtime
6e23a2f86a2cae4399932879f0d157f8e63a8358
[ "BSD-3-Clause" ]
2
2017-04-01T14:05:58.000Z
2017-04-02T07:57:56.000Z
src/djrtime/tests/wsgi.py
amitu/rtime
6e23a2f86a2cae4399932879f0d157f8e63a8358
[ "BSD-3-Clause" ]
3
2016-11-08T08:00:08.000Z
2016-11-08T08:15:20.000Z
src/djrtime/tests/wsgi.py
amitu/rtime
6e23a2f86a2cae4399932879f0d157f8e63a8358
[ "BSD-3-Clause" ]
null
null
null
import os import django from djrtime.handlers import TimeItHandler os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'tests.settings') if django.VERSION >= (1, 10): django.setup(set_prefix=False) else: django.setup() application = TimeItHandler()
17.2
65
0.755814
92f9140d89e34d8f1bc8e3a2abacbb1b8c332179
673
py
Python
userbot/modules/heroku.py
sanakek/OpenUserBot
aae1238a9ee4aff7c617554b4ed2ad73f812c246
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/heroku.py
sanakek/OpenUserBot
aae1238a9ee4aff7c617554b4ed2ad73f812c246
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/heroku.py
sanakek/OpenUserBot
aae1238a9ee4aff7c617554b4ed2ad73f812c246
[ "Naumen", "Condor-1.1", "MS-PL" ]
3
2020-02-25T10:49:04.000Z
2020-03-29T02:16:33.000Z
# Copyright (C) 2020 Adek Maulana. # All rights reserved. """ Heroku manager for your userbot """ import heroku3 from userbot import CMD_HELP, LOGS, HEROKU_APP_NAME, HEROKU_API_KEY from userbot.events import register Heroku = heroku3.from_key(HEROKU_API_KEY) @register(outgoing=True, pattern=r"^.heroku(?: |$)(.*...
23.206897
76
0.710253
02aa4e3dba89af70439a3b3d26b84a05666e637e
644
py
Python
python/list_examples.py
matheuskiser/pdx_code_guild
49a5c62fb468253eb4d9a1fb11166df79bb10873
[ "MIT" ]
null
null
null
python/list_examples.py
matheuskiser/pdx_code_guild
49a5c62fb468253eb4d9a1fb11166df79bb10873
[ "MIT" ]
null
null
null
python/list_examples.py
matheuskiser/pdx_code_guild
49a5c62fb468253eb4d9a1fb11166df79bb10873
[ "MIT" ]
null
null
null
# Assign list of careers careers = ['Developer', 'Cook', 'Server', 'Doctor'] # Assign list of user inputs user_input = ['Chef', 'Principal', 'Developer', 'Doctor'] # Finds the index of each item for i in careers: print "Index of " + i + " is: " + str(careers.index(i)) # Checks to see if item is in list print "\n...
24.769231
59
0.670807
c033ffce2757918dff987c80009bdcccf07f6b63
963
py
Python
settings/migrations/0002_setting_region.py
stanwood/traidoo-api
83e8599f2eb54352988bac27e2d4acd30734816d
[ "MIT" ]
3
2020-05-05T12:12:09.000Z
2020-05-08T08:48:16.000Z
settings/migrations/0002_setting_region.py
stanwood/traidoo-api
83e8599f2eb54352988bac27e2d4acd30734816d
[ "MIT" ]
160
2020-05-19T13:03:43.000Z
2022-03-12T00:35:28.000Z
settings/migrations/0002_setting_region.py
stanwood/traidoo-api
83e8599f2eb54352988bac27e2d4acd30734816d
[ "MIT" ]
null
null
null
# Generated by Django 2.2.4 on 2020-02-06 09:11 from django.db import migrations, models import django.db.models.deletion def apply_region(apps, schema_editor): db_alias = schema_editor.connection.alias RegionModel = apps.get_model("common", "Region") region, _ = RegionModel.objects.using(db_alias).get_...
30.09375
149
0.682243
93228aa0edc9c8d46056e83a03a203a67fa587fc
700
py
Python
tests/test_issue34_errorlevel.py
dbajar/segno
f7d5669537b12d3ebb914ae6d0a0a1e14f8d25f5
[ "BSD-3-Clause" ]
254
2016-09-25T21:32:00.000Z
2022-03-30T09:56:14.000Z
tests/test_issue34_errorlevel.py
dbajar/segno
f7d5669537b12d3ebb914ae6d0a0a1e14f8d25f5
[ "BSD-3-Clause" ]
102
2016-08-04T12:18:44.000Z
2022-03-23T09:09:51.000Z
tests/test_issue34_errorlevel.py
dbajar/segno
f7d5669537b12d3ebb914ae6d0a0a1e14f8d25f5
[ "BSD-3-Clause" ]
34
2016-09-25T21:34:42.000Z
2022-03-30T08:19:03.000Z
# -*- coding: utf-8 -*- # # Copyright (c) 2016 - 2020 -- Lars Heuer # All rights reserved. # # License: BSD License # """\ Tests against issue 34 <https://github.com/heuer/segno/issues/34> """ from __future__ import absolute_import, unicode_literals import pytest import segno try: from .tutils import read_matrix # ...
22.580645
56
0.708571
d7a2632ad36ad45358c281be5066a7eb916359e6
6,852
py
Python
python_msx_sdk/model/smart_account_user_role.py
CiscoDevNet/python-msx-sdk
d7e0a08c656504b4f4551d263e67c671a2a04b3f
[ "MIT" ]
null
null
null
python_msx_sdk/model/smart_account_user_role.py
CiscoDevNet/python-msx-sdk
d7e0a08c656504b4f4551d263e67c671a2a04b3f
[ "MIT" ]
null
null
null
python_msx_sdk/model/smart_account_user_role.py
CiscoDevNet/python-msx-sdk
d7e0a08c656504b4f4551d263e67c671a2a04b3f
[ "MIT" ]
null
null
null
""" MSX SDK MSX SDK client. # noqa: E501 The version of the OpenAPI document: 1.0.9 Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from python_msx_sdk.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, Mod...
39.606936
110
0.584063
1bda6513c1244df9aa4e23c26bae3a097d90874e
974
py
Python
metaspace/engine/sm/engine/annotation/mzml_parser.py
METASPACE2020/METASPACE
e1acd9a409f84a78eed7ca9713258c09b0e137ca
[ "Apache-2.0" ]
32
2018-08-13T15:49:42.000Z
2022-01-17T18:32:19.000Z
metaspace/engine/sm/engine/annotation/mzml_parser.py
METASPACE2020/METASPACE
e1acd9a409f84a78eed7ca9713258c09b0e137ca
[ "Apache-2.0" ]
624
2018-07-02T15:18:22.000Z
2022-03-30T08:10:35.000Z
metaspace/engine/sm/engine/annotation/mzml_parser.py
METASPACE2020/METASPACE
e1acd9a409f84a78eed7ca9713258c09b0e137ca
[ "Apache-2.0" ]
6
2021-01-10T22:24:30.000Z
2022-03-16T19:14:37.000Z
class MzMLParser: def __init__(self, filename): self.experiment = self.read_ms1_experiment(filename) self.coordinates = [(i, 1, 1) for i in range(1, self.experiment.size() + 1)] @staticmethod def read_ms1_experiment(filepath): # pylint: disable=import-outside-toplevel,no-name-in-mod...
38.96
84
0.678645
365f0bb4410ff4058f2d49104c0747f32513d9ab
3,482
py
Python
autotest/t052_test.py
hansonmcoombs/flopy
49398983c36d381992621d5bf698ea7f78fc0014
[ "CC0-1.0", "BSD-3-Clause" ]
null
null
null
autotest/t052_test.py
hansonmcoombs/flopy
49398983c36d381992621d5bf698ea7f78fc0014
[ "CC0-1.0", "BSD-3-Clause" ]
null
null
null
autotest/t052_test.py
hansonmcoombs/flopy
49398983c36d381992621d5bf698ea7f78fc0014
[ "CC0-1.0", "BSD-3-Clause" ]
null
null
null
import os import numpy as np import pymake from ci_framework import FlopyTestSetup, base_test_dir import flopy base_dir = base_test_dir(__file__, rel_path="temp", verbose=True) exe_name = "mf2005" v = flopy.which(exe_name) run = True if v is None: run = False def test_binary_well(): model_ws = f"{base_di...
26.378788
79
0.598794
2430e453c4dfe138e2cbf8708b71534d27d336a0
8,013
py
Python
AppServer/google/net/proto2/python/public/service.py
loftwah/appscale
586fc1347ebc743d7a632de698f4dbfb09ae38d6
[ "Apache-2.0" ]
790
2015-01-03T02:13:39.000Z
2020-05-10T19:53:57.000Z
AppServer/google/net/proto2/python/public/service.py
nlake44/appscale
6944af660ca4cb772c9b6c2332ab28e5ef4d849f
[ "Apache-2.0" ]
1,361
2015-01-08T23:09:40.000Z
2020-04-14T00:03:04.000Z
AppServer/google/net/proto2/python/public/service.py
nlake44/appscale
6944af660ca4cb772c9b6c2332ab28e5ef4d849f
[ "Apache-2.0" ]
155
2015-01-08T22:59:31.000Z
2020-04-08T08:01:53.000Z
#!/usr/bin/env python # # Copyright 2007 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 o...
37.097222
79
0.738425
94f5ff25e00f9c63ae1daaeb4de325ae6ecba14e
1,101
py
Python
graspologic/utils/__init__.py
vmdhhh/graspologic
1ffd88ec2ee3f1cfb1061185758e43eda7433b41
[ "MIT" ]
1
2021-09-08T18:04:02.000Z
2021-09-08T18:04:02.000Z
graspologic/utils/__init__.py
vmdhhh/graspologic
1ffd88ec2ee3f1cfb1061185758e43eda7433b41
[ "MIT" ]
null
null
null
graspologic/utils/__init__.py
vmdhhh/graspologic
1ffd88ec2ee3f1cfb1061185758e43eda7433b41
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation and contributors. # Licensed under the MIT License. from .ptr import pass_to_ranks from .utils import ( augment_diagonal, binarize, cartesian_product, fit_plug_in_variance_estimator, import_edgelist, import_graph, is_almost_symmetric, is_fully_conne...
21.588235
55
0.701181
c9059c5fb96dcd2328afeeef45d09a818190abae
508
py
Python
authentication/views.py
mushahid54/feedback_survey
a568008f0717b52649010286e55e242f083734be
[ "MIT" ]
null
null
null
authentication/views.py
mushahid54/feedback_survey
a568008f0717b52649010286e55e242f083734be
[ "MIT" ]
null
null
null
authentication/views.py
mushahid54/feedback_survey
a568008f0717b52649010286e55e242f083734be
[ "MIT" ]
null
null
null
from django.shortcuts import render # Create your views here. from oauth2_provider.ext.rest_framework import permissions, OAuth2Authentication from rest_framework import viewsets from authentication.models import User from authentication.serializers import UserCreateSerializer #from chatapp.utils import CustomMetaData...
29.882353
80
0.809055
eb8c879ca533bf304ed6ef956628a19364f2976f
25,321
py
Python
pyctcdecode/tests/test_decoder.py
kensho-technologies/pyctcdecode
c33f94bce283ea9af79d30e2b815e3bf34a137c9
[ "Apache-2.0" ]
203
2021-06-08T22:49:56.000Z
2022-03-31T11:55:21.000Z
pyctcdecode/tests/test_decoder.py
kensho-technologies/pyctcdecode
c33f94bce283ea9af79d30e2b815e3bf34a137c9
[ "Apache-2.0" ]
40
2021-06-11T20:58:07.000Z
2022-03-23T10:58:27.000Z
pyctcdecode/tests/test_decoder.py
kensho-technologies/pyctcdecode
c33f94bce283ea9af79d30e2b815e3bf34a137c9
[ "Apache-2.0" ]
39
2021-06-09T21:03:35.000Z
2022-03-26T13:14:23.000Z
# Copyright 2021-present Kensho Technologies, LLC. import json import math import multiprocessing import os import unittest from hypothesis import given, settings from hypothesis import strategies as st import kenlm # type: ignore import numpy as np from ..alphabet import BPE_TOKEN, UNK_BPE_TOKEN, Alphabet from ..de...
38.955385
99
0.619604
012e617ee0d7b6763d4f140e9f6dd9d1d9cc76e9
506
py
Python
tests/pipeline/test_vignette_corrector.py
moi90/morphocut
fda36b6681331911b7a2592329a7df5e1ce2065c
[ "MIT" ]
1
2020-05-10T09:15:17.000Z
2020-05-10T09:15:17.000Z
tests/pipeline/test_vignette_corrector.py
moi90/morphocut
fda36b6681331911b7a2592329a7df5e1ce2065c
[ "MIT" ]
null
null
null
tests/pipeline/test_vignette_corrector.py
moi90/morphocut
fda36b6681331911b7a2592329a7df5e1ce2065c
[ "MIT" ]
null
null
null
import glob import os.path from morphocut.pipeline.vignette_corrector import VignetteCorrector from skimage.io import imread def test_vignette_corrector_no_channel(image_fns): vignette_corrector = VignetteCorrector("input", "output") inp = ( { "facets": { "input": { ...
20.24
67
0.581028
52e1c8d8517c8889d6e4cb828762b1c7a4ef61ae
607
py
Python
test/widgets/conftest.py
g--o/Lavinder
a31092c452be769b7aeb6a1a80a6e57cc4625829
[ "MIT" ]
1
2019-06-18T07:44:04.000Z
2019-06-18T07:44:04.000Z
test/widgets/conftest.py
g--o/Lavinder
a31092c452be769b7aeb6a1a80a6e57cc4625829
[ "MIT" ]
22
2019-02-23T23:56:05.000Z
2019-09-04T21:35:24.000Z
test/widgets/conftest.py
g--o/Lavinder
a31092c452be769b7aeb6a1a80a6e57cc4625829
[ "MIT" ]
4
2019-02-22T23:26:00.000Z
2022-01-03T17:46:54.000Z
import pytest import os @pytest.fixture(scope='function') def fake_bar(): from liblavinder.bar import Bar height = 24 b = Bar([], height) b.height = height return b TEST_DIR = os.path.dirname(os.path.abspath(__file__)) DATA_DIR = os.path.join(os.path.dirname(TEST_DIR), 'data') @pytest.fixture(...
22.481481
58
0.691928
44fdee0045ae5b1058077429e353e35f2d408283
943
py
Python
dutils/templatetags/google_analytics.py
dsclementsen/django-dutils
ff4720eb0c800291cde56050667e48e6782bb0ab
[ "Unlicense" ]
null
null
null
dutils/templatetags/google_analytics.py
dsclementsen/django-dutils
ff4720eb0c800291cde56050667e48e6782bb0ab
[ "Unlicense" ]
null
null
null
dutils/templatetags/google_analytics.py
dsclementsen/django-dutils
ff4720eb0c800291cde56050667e48e6782bb0ab
[ "Unlicense" ]
null
null
null
from django import template from django.template import Template from django.conf import settings from django.utils.safestring import mark_safe register = template.Library() @register.simple_tag def google_analytics(): google_tracking_str = "" if (hasattr(settings, 'GOOGLE_ANALYTICS_TRACKING_ID') and ...
32.517241
84
0.709438
01452d8b394a7ee3ea2f85fe8b6bbe39d380b190
3,062
py
Python
homeassistant/components/fibaro/sensor.py
shanbs/home-assistant
818776d2b4f11e4f51992dc88bc0a6f9055833b2
[ "Apache-2.0" ]
1
2019-02-18T03:16:32.000Z
2019-02-18T03:16:32.000Z
homeassistant/components/fibaro/sensor.py
shanbs/home-assistant
818776d2b4f11e4f51992dc88bc0a6f9055833b2
[ "Apache-2.0" ]
3
2021-09-08T03:29:36.000Z
2022-03-12T00:59:48.000Z
homeassistant/components/fibaro/sensor.py
shanbs/home-assistant
818776d2b4f11e4f51992dc88bc0a6f9055833b2
[ "Apache-2.0" ]
1
2019-09-28T07:06:08.000Z
2019-09-28T07:06:08.000Z
"""Support for Fibaro sensors.""" import logging from homeassistant.const import ( DEVICE_CLASS_TEMPERATURE, DEVICE_CLASS_HUMIDITY, DEVICE_CLASS_ILLUMINANCE, TEMP_CELSIUS, TEMP_FAHRENHEIT) from homeassistant.helpers.entity import Entity from homeassistant.components.sensor import ENTITY_ID_FORMAT from homeassi...
32.231579
75
0.625408
04df009ba17cb449d0cacd1fa8527b5edf167aff
2,355
py
Python
mds/authent/oauthlib_utils.py
Polyconseil/django-mds
964655d3f17d51e74e67ae4c7b62b446435b5506
[ "MIT" ]
15
2019-01-02T13:44:29.000Z
2020-09-03T16:39:46.000Z
mds/authent/oauthlib_utils.py
Polyconseil/django-mds
964655d3f17d51e74e67ae4c7b62b446435b5506
[ "MIT" ]
44
2018-11-30T11:04:03.000Z
2020-01-21T17:21:39.000Z
mds/authent/oauthlib_utils.py
Polyconseil/midas
964655d3f17d51e74e67ae4c7b62b446435b5506
[ "MIT" ]
5
2019-04-23T16:22:49.000Z
2021-03-21T07:45:38.000Z
import datetime import oauthlib.oauth2 import oauthlib.oauth2.rfc6749.tokens import oauth2_provider.models import oauth2_provider.oauth2_validators from oauth2_provider.scopes import BaseScopes from oauth2_provider.settings import oauth2_settings from . import generators def signed_token_generator(request): to...
32.708333
87
0.676858
f408819123863113b94e531577816ea8347f01e9
199
py
Python
airflow/plugins/airflow_config.py
billhuang56/job-miner
472945be442b3ab5080a28bbcdc8e57653cd2af0
[ "MIT" ]
null
null
null
airflow/plugins/airflow_config.py
billhuang56/job-miner
472945be442b3ab5080a28bbcdc8e57653cd2af0
[ "MIT" ]
null
null
null
airflow/plugins/airflow_config.py
billhuang56/job-miner
472945be442b3ab5080a28bbcdc8e57653cd2af0
[ "MIT" ]
null
null
null
import os AWS_ACCESS_KEY_ID = os.environ.get("AWS_ACCESS_KEY_ID") AWS_SECRET_ACCESS_KEY = os.environ.get("AWS_SECRET_ACCESS_KEY") SCRAPPED_BUCKET = 'jd-scrapped' SCRAPPED_LOG = '_dice_scrapped.log'
28.428571
63
0.81407
e1c940672a35b0352ebc61c566957a2be2706063
2,839
py
Python
venv/Lib/site-packages/keystoneauth1/extras/kerberos/_loading.py
prasoon-uta/IBM-coud-storage
82a6876316715efbd0b492d0d467dde0ab26a56b
[ "Apache-2.0" ]
48
2015-05-02T16:19:10.000Z
2021-12-17T19:01:17.000Z
venv/Lib/site-packages/keystoneauth1/extras/kerberos/_loading.py
prasoon-uta/IBM-coud-storage
82a6876316715efbd0b492d0d467dde0ab26a56b
[ "Apache-2.0" ]
1
2019-12-04T13:48:10.000Z
2019-12-04T13:48:10.000Z
venv/Lib/site-packages/keystoneauth1/extras/kerberos/_loading.py
prasoon-uta/IBM-coud-storage
82a6876316715efbd0b492d0d467dde0ab26a56b
[ "Apache-2.0" ]
46
2015-05-23T14:04:35.000Z
2022-02-17T12:33:50.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
33.797619
77
0.624163
622060b78828f544335b1034cc60fecb312cd599
10,981
py
Python
CS1_BostonCollege/HW5_CS1/main.py
gonzalosc2/LearningPython
0210d4cbbb5e154f12007b8e8f825fd3d0022be0
[ "MIT" ]
null
null
null
CS1_BostonCollege/HW5_CS1/main.py
gonzalosc2/LearningPython
0210d4cbbb5e154f12007b8e8f825fd3d0022be0
[ "MIT" ]
null
null
null
CS1_BostonCollege/HW5_CS1/main.py
gonzalosc2/LearningPython
0210d4cbbb5e154f12007b8e8f825fd3d0022be0
[ "MIT" ]
null
null
null
# author: Gonzalo Salazar # assigment: Homework #5 # name: employment analysis in the U.S. # description: main .py file with a series of functions # This code generates a set of figures summarizing the employment # in the U.S. This is done taking into account political parties and # ...
33.787692
107
0.616884
3ba5cb2f730c3ddd33d31df0752ffa07aec75230
2,142
py
Python
src/gfl/gfl/generator.py
mingt2019/GFL
b8e027d2e8cdcc27c85a00744f8790d6db3cc4a3
[ "MIT" ]
123
2020-06-05T13:30:38.000Z
2022-03-30T08:39:43.000Z
src/gfl/gfl/generator.py
GalaxyLearning/PFL
b8e027d2e8cdcc27c85a00744f8790d6db3cc4a3
[ "MIT" ]
13
2020-06-19T13:09:47.000Z
2021-12-22T03:09:24.000Z
src/gfl/gfl/generator.py
GalaxyLearning/GFL
b8e027d2e8cdcc27c85a00744f8790d6db3cc4a3
[ "MIT" ]
35
2020-06-08T15:52:21.000Z
2022-03-25T11:52:42.000Z
__all__ = [ "DatasetGenerator", "JobGenerator" ] import abc import time import uuid from gfl.core.manager.node import GflNode from gfl.core.config import * from gfl.core.data import JobMetadata, DatasetMetadata, Job, Dataset from gfl.utils import TimeUtils class Generator(object): def __init__(self, mo...
29.342466
76
0.619514
18a8aa97d34006a13fa73c4bb6a7d70a711c9b6f
4,306
py
Python
nim.py
nim65s/nIM
81de0a1ab2141dad6fd366b3af2fdaea4a99ac8b
[ "BSD-2-Clause" ]
null
null
null
nim.py
nim65s/nIM
81de0a1ab2141dad6fd366b3af2fdaea4a99ac8b
[ "BSD-2-Clause" ]
null
null
null
nim.py
nim65s/nIM
81de0a1ab2141dad6fd366b3af2fdaea4a99ac8b
[ "BSD-2-Clause" ]
1
2018-07-18T14:22:14.000Z
2018-07-18T14:22:14.000Z
#!/usr/bin/env python3 import asyncio import logging import urwid from settings import * from matrix import Matrix from system import System logging.basicConfig(filename='nim.log', level=logging.INFO) class Input(urwid.Edit): def __init__(self, main): self.main = main super().__init__() d...
32.37594
95
0.584301
0e815b9cd105a3a5a403eef902910eccade40195
383
py
Python
geo/bms/bms/asgi.py
Tamlyn78/geo
dd63372acdd1fe8b744c05eca5ad23836e6a1604
[ "MIT" ]
null
null
null
geo/bms/bms/asgi.py
Tamlyn78/geo
dd63372acdd1fe8b744c05eca5ad23836e6a1604
[ "MIT" ]
null
null
null
geo/bms/bms/asgi.py
Tamlyn78/geo
dd63372acdd1fe8b744c05eca5ad23836e6a1604
[ "MIT" ]
null
null
null
""" ASGI config for bms project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETTINGS_...
22.529412
78
0.780679
5b701ff79fe75ed3fa6b71db2f0e6c658075267e
930
py
Python
hummingbot/core/api_throttler/fixed_rate_api_throttler.py
coreydemarse/hummingbot
48dd45b103622b198ca8e833ed9de7d0ad573ed9
[ "Apache-2.0" ]
2
2022-02-10T05:03:14.000Z
2022-03-09T08:29:00.000Z
hummingbot/core/api_throttler/fixed_rate_api_throttler.py
coreydemarse/hummingbot
48dd45b103622b198ca8e833ed9de7d0ad573ed9
[ "Apache-2.0" ]
null
null
null
hummingbot/core/api_throttler/fixed_rate_api_throttler.py
coreydemarse/hummingbot
48dd45b103622b198ca8e833ed9de7d0ad573ed9
[ "Apache-2.0" ]
1
2021-07-30T08:44:01.000Z
2021-07-30T08:44:01.000Z
from typing import Deque from hummingbot.core.api_throttler.api_request_context_base import APIRequestContextBase from hummingbot.core.api_throttler.api_throttler_base import APIThrottlerBase from hummingbot.core.api_throttler.data_types import ( RateLimit, TaskLog, DEFAULT_PATH, ) class FixedRateThrottl...
31
88
0.747312
2d180de7d03878766613c8f7db20e515621b4954
1,474
py
Python
slothql/django/queryset.py
karol-gruszczyk/sloth-gql
7972adb761b60f14409c2f734473c0a04b8db63c
[ "MIT" ]
2
2018-01-07T08:51:27.000Z
2018-01-23T16:25:56.000Z
slothql/django/queryset.py
karol-gruszczyk/sloth-gql
7972adb761b60f14409c2f734473c0a04b8db63c
[ "MIT" ]
3
2018-01-28T03:41:33.000Z
2018-01-28T03:55:00.000Z
slothql/django/queryset.py
karol-gruszczyk/slothql
7972adb761b60f14409c2f734473c0a04b8db63c
[ "MIT" ]
null
null
null
from typing import Iterable, Type from django.db import models from slothql.selections import selections_to_dict, Selections from .utils.model import get_selectable_relations, get_relations def get_selects(model: Type[models.Model], root_selections: Selections) -> Iterable[str]: forward_relations = get_selectab...
39.837838
110
0.740163
d93abbc2e9dd1b943f689c26e79544dbf9943595
7,797
py
Python
core/domain/rule_domain.py
Himanshu1495/oppia
8a3a4d6ff633aca12bbd043648a2d45ccdd583e9
[ "Apache-2.0" ]
null
null
null
core/domain/rule_domain.py
Himanshu1495/oppia
8a3a4d6ff633aca12bbd043648a2d45ccdd583e9
[ "Apache-2.0" ]
null
null
null
core/domain/rule_domain.py
Himanshu1495/oppia
8a3a4d6ff633aca12bbd043648a2d45ccdd583e9
[ "Apache-2.0" ]
1
2021-09-22T10:37:34.000Z
2021-09-22T10:37:34.000Z
# coding: utf-8 # # Copyright 2014 The Oppia 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 requi...
32.4875
80
0.659997
c4ca0c0bb9de934815d9f0378df5150e1beb4c53
411
py
Python
tracker/migrations/0029_auto_20190916_1346.py
shapeshift-legacy/watchtower
c9cd5150f8549145f7de9b1ea820d548959350fe
[ "MIT" ]
null
null
null
tracker/migrations/0029_auto_20190916_1346.py
shapeshift-legacy/watchtower
c9cd5150f8549145f7de9b1ea820d548959350fe
[ "MIT" ]
null
null
null
tracker/migrations/0029_auto_20190916_1346.py
shapeshift-legacy/watchtower
c9cd5150f8549145f7de9b1ea820d548959350fe
[ "MIT" ]
null
null
null
# Generated by Django 2.0.7 on 2019-09-16 19:46 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('tracker', '0028_xpub_updated_at'), ] operations = [ migrations.AlterField( model_name='balancechange', name='amount'...
21.631579
71
0.615572
4250cb72de9a9807f602bd24143425fc23146c0b
614
py
Python
takeprofit/main.py
metaperl/apiary-support
bd09c22a8dbd94d310e638ef70e0fa09a239b5c0
[ "MIT" ]
1
2015-12-23T03:34:41.000Z
2015-12-23T03:34:41.000Z
takeprofit/main.py
metaperl/apiary-support
bd09c22a8dbd94d310e638ef70e0fa09a239b5c0
[ "MIT" ]
null
null
null
takeprofit/main.py
metaperl/apiary-support
bd09c22a8dbd94d310e638ef70e0fa09a239b5c0
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function # core import logging import decimal # pypi import argh # local logging.basicConfig( format='%(lineno)s %(message)s', level=logging.WARN ) one_percent = 1.0 / 100.0 two_percent = 2.0 / 100.0 decimal.getcontext().prec = 8 def main(entry, percen...
16.157895
75
0.666124
5b9f78801f136fffa8c2f8e992911be380664e71
42,109
py
Python
app/default_prefs.py
fsx950223/ci_edit
c0158bae9a776ad31fcadb213ab14726ef5c00c4
[ "Apache-2.0" ]
1
2020-11-24T16:59:40.000Z
2020-11-24T16:59:40.000Z
app/default_prefs.py
fsx950223/ci_edit
c0158bae9a776ad31fcadb213ab14726ef5c00c4
[ "Apache-2.0" ]
null
null
null
app/default_prefs.py
fsx950223/ci_edit
c0158bae9a776ad31fcadb213ab14726ef5c00c4
[ "Apache-2.0" ]
null
null
null
# 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 agreed to in writing, ...
32.022053
82
0.44221
4bf846dddbd49fdef0284b6fadc82561f6d5fe57
745
py
Python
test/nnUNetV1/network_training/nnUNetTrainer_DiceTopK10.py
jianhuasong/medical-image-segmentation2
cd13caeff4b583b30ee85df340e877463fcadd06
[ "Apache-2.0" ]
2,774
2019-05-31T02:32:52.000Z
2022-03-31T02:03:10.000Z
test/nnUNetV1/network_training/nnUNetTrainer_DiceTopK10.py
shenlong95/SegLoss
f3c1188ab32a0920be9f871e99418bc3a4f02291
[ "Apache-2.0" ]
36
2019-08-21T00:50:43.000Z
2022-02-17T12:12:50.000Z
test/nnUNetV1/network_training/nnUNetTrainer_DiceTopK10.py
shenlong95/SegLoss
f3c1188ab32a0920be9f871e99418bc3a4f02291
[ "Apache-2.0" ]
497
2019-08-02T09:23:23.000Z
2022-03-30T12:54:44.000Z
from nnunet.training.loss_functions.dice_loss import DC_and_topk_loss # from nnunet.training.network_training import nnUNetTrainerCE from nnunet.training.network_training.nnUNetTrainer import nnUNetTrainer class nnUNetTrainer_DiceTopK10(nnUNetTrainer): def __init__(self, plans_file, fold, output_folder=None, data...
53.214286
113
0.710067
7759602e39823db83bbfd61ecf84eff47e7d5995
11,490
py
Python
ottr/base/template.py
Callidon/pyOTTR
4bd7bdbf0674e285cf939e8da4cc4e7e2b7a419c
[ "MIT" ]
3
2019-11-20T09:15:00.000Z
2021-04-16T15:46:28.000Z
ottr/base/template.py
Callidon/pyOTTR
4bd7bdbf0674e285cf939e8da4cc4e7e2b7a419c
[ "MIT" ]
null
null
null
ottr/base/template.py
Callidon/pyOTTR
4bd7bdbf0674e285cf939e8da4cc4e7e2b7a419c
[ "MIT" ]
null
null
null
# template.py # Author: Thomas MINIER - MIT License 2019 from abc import ABC, abstractmethod from typing import Any, Dict, Iterable, List, Optional, Tuple from rdflib import BNode, Literal, URIRef, Variable from rdflib.namespace import RDFS from ottr.base.argument import InstanceArgument from ottr.base.utils import O...
45.96
180
0.645431
b48fc9deda586cf351c371a5c3fd44d06a3a600f
1,751
py
Python
src/500coScraper.py
AlexanderProschek/company-email-sender
3e3ba86f4ff830bb20c6f691c28ce0f9d31291bf
[ "MIT" ]
null
null
null
src/500coScraper.py
AlexanderProschek/company-email-sender
3e3ba86f4ff830bb20c6f691c28ce0f9d31291bf
[ "MIT" ]
null
null
null
src/500coScraper.py
AlexanderProschek/company-email-sender
3e3ba86f4ff830bb20c6f691c28ce0f9d31291bf
[ "MIT" ]
null
null
null
#!python3 import requests import re from bs4 import BeautifulSoup from tqdm import tqdm import json # Prefixes in case script cannot find an email on companies website prefixes = ['info', 'team', 'support', 'hello', 'sales', 'contact', 'help', 'marketing', 'social', 'business'] # Base URL to query the emails url = '...
30.719298
110
0.544832