hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
1c5991b76428f8e371850a08ec3d3697d676045b
5,095
py
Python
src/beefore/checks/eslint.py
jacebrowning/beefore
76a43cfa3fb83cfa3b3301277636f1beca35aee7
[ "BSD-3-Clause" ]
null
null
null
src/beefore/checks/eslint.py
jacebrowning/beefore
76a43cfa3fb83cfa3b3301277636f1beca35aee7
[ "BSD-3-Clause" ]
null
null
null
src/beefore/checks/eslint.py
jacebrowning/beefore
76a43cfa3fb83cfa3b3301277636f1beca35aee7
[ "BSD-3-Clause" ]
null
null
null
########################################################################### # Check if any of the Javascript files touched by the commit have # code style problems. ########################################################################### import json import os.path import re import subprocess import yaml from beefo...
33.519737
109
0.534446
1c59949295f197d2bf6db5a832ef7bfa33fbc59d
4,777
py
Python
sudoku_solver/solver/two_string_kite.py
stopwhispering/comprehensible-sudoku-solver
2591293255c549e270debb95bc602efb7d0a94c3
[ "MIT" ]
null
null
null
sudoku_solver/solver/two_string_kite.py
stopwhispering/comprehensible-sudoku-solver
2591293255c549e270debb95bc602efb7d0a94c3
[ "MIT" ]
null
null
null
sudoku_solver/solver/two_string_kite.py
stopwhispering/comprehensible-sudoku-solver
2591293255c549e270debb95bc602efb7d0a94c3
[ "MIT" ]
null
null
null
import itertools from typing import List, Sequence from sudoku_solver.board.board import Board from sudoku_solver.board.cell import Cell from sudoku_solver.shared.preview import Preview, IndicatorLevel, HighlightedPosition from sudoku_solver.shared.puzzle import ValuePosition from sudoku_solver.solver.decorators impor...
48.744898
118
0.642453
1c59b8a0a4e5981d3ca3c8be65ae3212468aabd0
5,427
py
Python
samples/report_test_metacat_async.py
ivmfnal/metacat
9eeea5f5e7867395c7203b8a7789607d3bdbd903
[ "BSD-3-Clause" ]
1
2022-03-18T19:01:29.000Z
2022-03-18T19:01:29.000Z
samples/report_test_metacat_async.py
ivmfnal/metacat
9eeea5f5e7867395c7203b8a7789607d3bdbd903
[ "BSD-3-Clause" ]
null
null
null
samples/report_test_metacat_async.py
ivmfnal/metacat
9eeea5f5e7867395c7203b8a7789607d3bdbd903
[ "BSD-3-Clause" ]
null
null
null
import os,time,sys,datetime, glob, fnmatch,string,subprocess, json, threading from metacat.webapi import MetaCatClient #server_url = "https://dbdata0vm.fnal.gov:9443/dune_meta_demo/app" server_url = "http://localhost:8080" client = MetaCatClient(server_url) month = sys.argv[1] first = sys.argv[1] last = sys.argv[2] ...
33.5
99
0.571034
1c5a2c50a08fa9266a0b15d45b73e7e0a0e78616
4,319
py
Python
model.py
andersteele/Cell-labelling
e20119f8855c3268a8e15fb7796837afc53446cb
[ "MIT" ]
null
null
null
model.py
andersteele/Cell-labelling
e20119f8855c3268a8e15fb7796837afc53446cb
[ "MIT" ]
null
null
null
model.py
andersteele/Cell-labelling
e20119f8855c3268a8e15fb7796837afc53446cb
[ "MIT" ]
null
null
null
from keras.models import Sequential from keras.layers.convolutional import Conv2D, Convolution2DTranspose, UpSampling2D from keras.layers.pooling import MaxPool2D from keras import metrics from keras.layers import Input from keras.layers.merge import concatenate from keras.models import Model from keras.applications im...
41.133333
107
0.681639
1c5a4186c27307a6022ab52bc458cf21ecf4bf4f
320
py
Python
mapusaurus/mapping/urls.py
mehtadev17/mapusaurus
ad49c45f375ace9b8271f27aca64f2f81e23a4bd
[ "CC0-1.0" ]
6
2015-01-05T21:11:20.000Z
2019-06-01T02:03:50.000Z
mapusaurus/mapping/urls.py
DalavanCloud/mapusaurus
673b43dc9e5570fc1b428fa9f96ece62304a7d0a
[ "CC0-1.0" ]
112
2015-01-05T14:25:35.000Z
2019-10-30T14:48:40.000Z
mapusaurus/mapping/urls.py
DalavanCloud/mapusaurus
673b43dc9e5570fc1b428fa9f96ece62304a7d0a
[ "CC0-1.0" ]
19
2015-01-22T19:18:06.000Z
2021-07-14T17:44:39.000Z
from django.conf.urls import patterns, url urlpatterns = patterns( '', url(r'^$', 'mapping.views.map', {'template':'map.html'}, name='map'), url(r'^print/', 'mapping.views.map', {'template' :'print_map.html'}, name='printmap'), url(r'^faq/', 'mapping.views.map', {'template' :'faq.html'}, name='faq') )
35.555556
90
0.6125
1c5a44455a7a9400d0c9f0a9ca67e2b3af8df1ae
8,876
py
Python
examples/time_series/ts_forecasting_composing.py
rozlana-g/FEDOT
a909d6c0ef481cc1cf7a5f10f7b1292d8d2def5c
[ "BSD-3-Clause" ]
358
2020-06-11T09:34:53.000Z
2022-03-31T12:56:22.000Z
examples/time_series/ts_forecasting_composing.py
rozlana-g/FEDOT
a909d6c0ef481cc1cf7a5f10f7b1292d8d2def5c
[ "BSD-3-Clause" ]
467
2020-06-11T13:49:45.000Z
2022-03-31T14:19:48.000Z
examples/time_series/ts_forecasting_composing.py
rozlana-g/FEDOT
a909d6c0ef481cc1cf7a5f10f7b1292d8d2def5c
[ "BSD-3-Clause" ]
48
2020-07-13T14:50:45.000Z
2022-03-26T09:37:13.000Z
import datetime import warnings import matplotlib.pyplot as plt import numpy as np import pandas as pd from sklearn.metrics import mean_absolute_error, mean_squared_error from fedot.core.composer.gp_composer.gp_composer import \ GPComposerBuilder, GPComposerRequirements from fedot.core.composer.gp_composer.specif...
37.294118
100
0.67215
1c5a6ded409d3c22c163f51d94a3a08d726a7bf3
4,481
py
Python
filterdesigner/FIRDesign/_kaiserord.py
Yuki-F-HCU/filterdesigner
bb735d507da0338b2925f84e54df091ce1c32f95
[ "BSD-3-Clause" ]
2
2020-09-15T07:22:35.000Z
2021-10-17T08:50:17.000Z
filterdesigner/FIRDesign/_kaiserord.py
Yuki-F-HCU/filterdesigner
bb735d507da0338b2925f84e54df091ce1c32f95
[ "BSD-3-Clause" ]
null
null
null
filterdesigner/FIRDesign/_kaiserord.py
Yuki-F-HCU/filterdesigner
bb735d507da0338b2925f84e54df091ce1c32f95
[ "BSD-3-Clause" ]
2
2020-09-15T07:23:24.000Z
2021-05-03T10:03:32.000Z
import numpy as np import scipy.signal as signal import scipy.interpolate as ip from typing import Tuple def kaiserord(f:np.ndarray, a:np.ndarray, dev:np.ndarray, fs:float=2)->Tuple: """Kaiser window FIR filter design estimation parameters Parameters ---------- f : ndarray Band edge...
32.471014
89
0.536711
1c5a8d5727371b7d8720562addbdd3ce76203dfe
3,458
py
Python
torchtext/experimental/datasets/raw/sequence_tagging.py
dongreenberg/text
77c732ab816a41f52259e72430aa837910cc6948
[ "BSD-3-Clause" ]
1
2021-05-06T15:49:58.000Z
2021-05-06T15:49:58.000Z
torchtext/experimental/datasets/raw/sequence_tagging.py
dongreenberg/text
77c732ab816a41f52259e72430aa837910cc6948
[ "BSD-3-Clause" ]
null
null
null
torchtext/experimental/datasets/raw/sequence_tagging.py
dongreenberg/text
77c732ab816a41f52259e72430aa837910cc6948
[ "BSD-3-Clause" ]
1
2021-07-14T21:06:11.000Z
2021-07-14T21:06:11.000Z
from torchtext.utils import download_from_url, extract_archive from torchtext.experimental.datasets.raw.common import RawTextIterableDataset URLS = { "UDPOS": 'https://bitbucket.org/sivareddyg/public/downloads/en-ud-v2.zip', "CoNLL2000Chunking": [ 'https://www.clips.uantwerpen.be/conll2000/chunking...
30.60177
94
0.622903
1c5a9097ce6ea1c5e7e25921be625257d2f29998
439
py
Python
data/shuffle.py
yuagnun/HauntedTweet
04b31ac23cb52e68aa60f7d22e5ae0da96c35646
[ "MIT" ]
2
2020-01-28T07:45:40.000Z
2020-02-22T11:41:02.000Z
data/shuffle.py
Sidus-smg/HauntedTweet
04b31ac23cb52e68aa60f7d22e5ae0da96c35646
[ "MIT" ]
4
2019-09-29T06:59:58.000Z
2019-11-26T15:01:39.000Z
data/shuffle.py
yuagnun/HauntedTweet
04b31ac23cb52e68aa60f7d22e5ae0da96c35646
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys, os import random with open(os.path.join(os.path.dirname(sys.argv[0]), 'tweets_tokenized2.txt'), "r", encoding='utf8') as f: with open(os.path.join(os.path.dirname(sys.argv[0]), 'tweets_tokenized_shuffled.txt'), 'w', encoding='utf8') as fw: lines = f.readlines() f.s...
33.769231
119
0.626424
1c5ab1bced660ae9d023173b2ad2a19a45d8319c
6,714
py
Python
classifier/trainer.py
Koomook/nsmc
64fb83769072be3822f663383d0855dd66c92855
[ "CC0-1.0" ]
null
null
null
classifier/trainer.py
Koomook/nsmc
64fb83769072be3822f663383d0855dd66c92855
[ "CC0-1.0" ]
null
null
null
classifier/trainer.py
Koomook/nsmc
64fb83769072be3822f663383d0855dd66c92855
[ "CC0-1.0" ]
null
null
null
import tensorflow as tf import numpy as np import os, json import logging from datetime import datetime from tensorflow.python.tools import freeze_graph class StepBasedTrainer(): """A optimizer that takes batch generator Attibutes: optimizer: A optimizer produced by a optimizer loss: model's...
38.147727
114
0.558088
1c5ab2ec0a447784d173e8e958595851371118f2
2,015
py
Python
tap_list_providers/example.py
danroberts728/hsvdotbeer
5b977bf4a7aab149ad56564b3adbb09424500308
[ "Apache-2.0" ]
18
2018-12-06T01:46:37.000Z
2021-10-17T10:37:17.000Z
tap_list_providers/example.py
danroberts728/hsvdotbeer
5b977bf4a7aab149ad56564b3adbb09424500308
[ "Apache-2.0" ]
194
2018-11-04T12:50:49.000Z
2022-01-06T22:43:43.000Z
tap_list_providers/example.py
danroberts728/hsvdotbeer
5b977bf4a7aab149ad56564b3adbb09424500308
[ "Apache-2.0" ]
7
2019-03-18T05:36:06.000Z
2020-12-25T03:27:29.000Z
import json import logging from beers.models import Manufacturer from taps.models import Tap from .base import BaseTapListProvider LOG = logging.getLogger(__name__) class ExampleTapListProvider(BaseTapListProvider): """File-based tap list provider""" provider_name = "test" def __init__(self, json_fil...
35.350877
79
0.583127
1c5ab6f6fb42b04bc749e2ae0ecb0b9c47bc3660
40,414
py
Python
escape/escape/adapt/adapters.py
5GExchange/escape
eb35d460597a0386b18dd5b6a5f62a3f30eed5fa
[ "Apache-2.0" ]
10
2016-11-16T16:26:16.000Z
2021-04-26T17:20:28.000Z
escape/escape/adapt/adapters.py
5GExchange/escape
eb35d460597a0386b18dd5b6a5f62a3f30eed5fa
[ "Apache-2.0" ]
3
2017-04-20T11:29:17.000Z
2017-11-06T17:12:12.000Z
escape/escape/adapt/adapters.py
5GExchange/escape
eb35d460597a0386b18dd5b6a5f62a3f30eed5fa
[ "Apache-2.0" ]
10
2017-03-27T13:58:52.000Z
2020-06-24T22:42:51.000Z
# Copyright 2017 Janos Czentye # # 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, s...
34.54188
80
0.654031
1c5ac1de18f078a2c321be53715c8a125466af69
17,462
py
Python
lib/streamlit/elements/data_frame_proto.py
dwiel/streamlit
74ae7f30cc3d95948aff311371449963f8eaf29e
[ "Apache-2.0" ]
1
2020-01-04T06:45:37.000Z
2020-01-04T06:45:37.000Z
lib/streamlit/elements/data_frame_proto.py
yutiansut/streamlit
929942f755ca40f859a03d905ffcbf743f45dffa
[ "Apache-2.0" ]
null
null
null
lib/streamlit/elements/data_frame_proto.py
yutiansut/streamlit
929942f755ca40f859a03d905ffcbf743f45dffa
[ "Apache-2.0" ]
1
2020-06-26T14:41:01.000Z
2020-06-26T14:41:01.000Z
# -*- coding: utf-8 -*- # Copyright 2018-2019 Streamlit 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 applicabl...
36.762105
86
0.652044
1c5b00ee6fe547151eed698be63e3823ea1198ad
5,137
py
Python
froi/widgets/labelmanagedialog.py
sunshineDrizzle/FreeROI
e2bae1a19835667988e9dbe4a1a88e5b2778d819
[ "BSD-3-Clause" ]
13
2016-02-12T05:10:23.000Z
2021-01-13T01:40:12.000Z
froi/widgets/labelmanagedialog.py
sunshineDrizzle/FreeROI
e2bae1a19835667988e9dbe4a1a88e5b2778d819
[ "BSD-3-Clause" ]
14
2015-05-04T05:56:45.000Z
2021-01-24T11:49:13.000Z
froi/widgets/labelmanagedialog.py
sunshineDrizzle/FreeROI
e2bae1a19835667988e9dbe4a1a88e5b2778d819
[ "BSD-3-Clause" ]
8
2016-03-07T06:29:51.000Z
2017-10-30T13:59:27.000Z
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: import os import glob from PyQt4.QtCore import * from PyQt4.QtGui import * from drawsettings import DrawSettings from labeleditdialog import LabelEditDialog from ..core.labelconfig import LabelConfig from...
39.821705
98
0.636169
1c5b0ef2fa0cd677407d046da3b477432b398bf5
13,700
py
Python
electrum/synchronizer.py
particl/electrum
f1b8c13636c9ffcf6fd37a03340d4eff2d7f0354
[ "MIT" ]
null
null
null
electrum/synchronizer.py
particl/electrum
f1b8c13636c9ffcf6fd37a03340d4eff2d7f0354
[ "MIT" ]
null
null
null
electrum/synchronizer.py
particl/electrum
f1b8c13636c9ffcf6fd37a03340d4eff2d7f0354
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Electrum - lightweight Bitcoin client # Copyright (C) 2014 Thomas Voegtlin # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation files # (the "Software"), to deal in the Software without restriction, # including without...
43.492063
122
0.665182
1c5b389c77cc94343664b9b15432433c1b565414
443
py
Python
higher-lower/art.py
Rekid46/Python-Games
7b4897ad5c6eccf855bb8c1f3bfa6d9e6596fc63
[ "Apache-2.0" ]
1
2021-07-15T08:15:51.000Z
2021-07-15T08:15:51.000Z
higher-lower/art.py
Rekid46/Python-Games
7b4897ad5c6eccf855bb8c1f3bfa6d9e6596fc63
[ "Apache-2.0" ]
null
null
null
higher-lower/art.py
Rekid46/Python-Games
7b4897ad5c6eccf855bb8c1f3bfa6d9e6596fc63
[ "Apache-2.0" ]
null
null
null
logo=""" __ ___ __ / / / (_)___ _/ /_ ___ _____ / /_/ / / __ `/ __ \/ _ \/ ___/ / __ / / /_/ / / / / __/ / /_/ /_/_/\__, /_/ /_/\___/_/ / / /____/_ _____ _____ / / / __ \ | /| / / _ \/ ___/ / /___/ /_/ / |/ |/ / __/ / /_____/\____/|__/|__/\___/_/ ...
27.6875
41
0.268623
1c5b6a2fce7e35d1aee9d8676840ae210b9c3169
2,911
py
Python
apps/platforms/mac/safari/safari.py
nriley/knausj_talon
fe7791fa868be5eb0f6471fc0b0f1f10f25a369b
[ "MIT" ]
2
2021-04-08T04:37:03.000Z
2022-03-16T20:40:52.000Z
apps/platforms/mac/safari/safari.py
nriley/knausj_talon
fe7791fa868be5eb0f6471fc0b0f1f10f25a369b
[ "MIT" ]
null
null
null
apps/platforms/mac/safari/safari.py
nriley/knausj_talon
fe7791fa868be5eb0f6471fc0b0f1f10f25a369b
[ "MIT" ]
1
2020-12-04T21:05:12.000Z
2020-12-04T21:05:12.000Z
from talon import ctrl, ui, Module, Context, actions, clip, app from talon.mac import applescript ctx = Context() mod = Module() apps = mod.apps mod.apps.safari = """ os: mac and app.bundle: com.apple.Safari """ ctx.matches = r""" app: safari """ ctx.tags = ['browser', 'user.tabs'] def safari_app(): return ui.ap...
28.262136
90
0.577465
1c5b77a54cd0339332f54715163ba66aa2e803be
843
py
Python
tests/p2p/conftest.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
137
2017-03-17T11:37:51.000Z
2022-03-07T07:51:28.000Z
tests/p2p/conftest.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
102
2017-04-07T10:43:03.000Z
2018-11-11T18:01:56.000Z
tests/p2p/conftest.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
39
2017-03-17T11:38:52.000Z
2021-02-18T23:05:17.000Z
import pytest """ # Uncomment the following lines to globally change the logging level for all # `p2p` namespaced loggers. Useful for debugging failing tests in async code # when the only output you get is a timeout or something else which doens't # indicate where things failed. import pytest @pytest.fixture(autous...
22.184211
77
0.72242
1c5b8f8b1829682a4be11cacd0d303b1dff6cadd
473
py
Python
testing/ouia/test_button.py
rsnyman/widgetastic.patternfly4
3d7c3c5921e278bf103965c7016b836844bd45ef
[ "Apache-2.0" ]
1
2019-05-07T14:48:46.000Z
2019-05-07T14:48:46.000Z
testing/ouia/test_button.py
rsnyman/widgetastic.patternfly4
3d7c3c5921e278bf103965c7016b836844bd45ef
[ "Apache-2.0" ]
24
2019-02-01T11:42:20.000Z
2019-05-27T17:37:55.000Z
testing/ouia/test_button.py
rsnyman/widgetastic.patternfly4
3d7c3c5921e278bf103965c7016b836844bd45ef
[ "Apache-2.0" ]
7
2018-12-11T10:55:47.000Z
2019-06-12T08:35:48.000Z
import pytest from widgetastic.widget import View from widgetastic_patternfly4.ouia import Button TESTING_PAGE_URL = "https://patternfly-docs-ouia.netlify.app/documentation/react/components/button" @pytest.fixture def view(browser): class TestView(View): ROOT = ".//div[@id='ws-react-c-button-ouia']" ...
22.52381
99
0.733615
1c5b9c5699a3a51b9efbcf11eceb589242a272bd
162
py
Python
lib/dataset/__init__.py
vedrusss/Deformable-ConvNets
88bc920abffb4d0efe2b6dd8ce959ed134482f6f
[ "MIT" ]
null
null
null
lib/dataset/__init__.py
vedrusss/Deformable-ConvNets
88bc920abffb4d0efe2b6dd8ce959ed134482f6f
[ "MIT" ]
null
null
null
lib/dataset/__init__.py
vedrusss/Deformable-ConvNets
88bc920abffb4d0efe2b6dd8ce959ed134482f6f
[ "MIT" ]
null
null
null
from imdb import IMDB from arlo_like_pascal_voc import Arlo_Like_PascalVOC from pascal_voc import PascalVOC from cityscape import CityScape from coco import coco
27
52
0.876543
1c5bac5ef25fe8fbeb86e15c48fdcbf133834c31
10,378
py
Python
conans/test/functional/remote/rest_api_test.py
NewProggie/conan
6ec73ac2b4be98e1ab4e5ee797008b50ca2d7424
[ "MIT" ]
null
null
null
conans/test/functional/remote/rest_api_test.py
NewProggie/conan
6ec73ac2b4be98e1ab4e5ee797008b50ca2d7424
[ "MIT" ]
null
null
null
conans/test/functional/remote/rest_api_test.py
NewProggie/conan
6ec73ac2b4be98e1ab4e5ee797008b50ca2d7424
[ "MIT" ]
null
null
null
import os import platform import unittest import requests from nose.plugins.attrib import attr from conans import DEFAULT_REVISION_V1 from conans.client.rest.rest_client import RestApiClient from conans.client.rest.rest_client_v1 import complete_url from conans.model.info import ConanInfo from conans.model.manifest i...
36.542254
97
0.642995
1c5be16756037133c36b32a8f5701a3de6c675c6
10,928
py
Python
pyscf/cc/renorm_ccsd_t_slow.py
seunghoonlee89/pyscf-ecCC-TCC
2091566fb83c1474e40bf74f271be2ce4611f60c
[ "Apache-2.0" ]
2
2021-09-17T06:10:17.000Z
2022-01-22T23:37:22.000Z
pyscf/cc/renorm_ccsd_t_slow.py
seunghoonlee89/pyscf-ecCC-TCC
2091566fb83c1474e40bf74f271be2ce4611f60c
[ "Apache-2.0" ]
null
null
null
pyscf/cc/renorm_ccsd_t_slow.py
seunghoonlee89/pyscf-ecCC-TCC
2091566fb83c1474e40bf74f271be2ce4611f60c
[ "Apache-2.0" ]
2
2021-09-16T23:37:42.000Z
2021-10-14T23:00:39.000Z
#!/usr/bin/env python # Copyright 2014-2018 The PySCF Developers. 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 # # U...
40.029304
74
0.494327
1c5c2f1558f3b08174f188257cf3cd81844d65ea
1,122
py
Python
lemur/migrations/versions/e3691fc396e9_.py
x-lhan/lemur
1d8aaa4a242af610363e961167bc31691b358773
[ "Apache-2.0" ]
null
null
null
lemur/migrations/versions/e3691fc396e9_.py
x-lhan/lemur
1d8aaa4a242af610363e961167bc31691b358773
[ "Apache-2.0" ]
2
2020-04-03T09:28:20.000Z
2020-04-04T04:56:35.000Z
lemur/migrations/versions/e3691fc396e9_.py
x-lhan/lemur
1d8aaa4a242af610363e961167bc31691b358773
[ "Apache-2.0" ]
null
null
null
"""Adding logging database tables. Revision ID: e3691fc396e9 Revises: 932525b82f1a Create Date: 2016-11-28 13:15:46.995219 """ # revision identifiers, used by Alembic. revision = 'e3691fc396e9' down_revision = '932525b82f1a' from alembic import op import sqlalchemy as sa import sqlalchemy_utils def upgrade(): ...
31.166667
118
0.692513
1c5c393619b6bfd68f1941c94e894de6ad5a5da2
10,549
py
Python
djangopeople/djangopeople/models.py
timgraham/djangopeople
de595ac8d7e8540871c282294a332a835ac0c177
[ "MIT" ]
null
null
null
djangopeople/djangopeople/models.py
timgraham/djangopeople
de595ac8d7e8540871c282294a332a835ac0c177
[ "MIT" ]
null
null
null
djangopeople/djangopeople/models.py
timgraham/djangopeople
de595ac8d7e8540871c282294a332a835ac0c177
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from django.contrib.contenttypes import generic from django.core.urlresolvers import reverse from django.db import models from django.utils.html import escape from django.utils.safestring import mark_safe from django.utils.translation import ugettext_lazy as _ import tagging...
36.628472
79
0.641862
1c5c53e6025a850d26b8cd18f2d1acf454fab0e4
10,361
py
Python
speech_dia_@/src/pyannote_xxx/core/feature.py
NgvTue/test2
d475cb2fed16b46185adbe50b4179d5299c791cb
[ "MIT" ]
1
2022-02-23T08:46:10.000Z
2022-02-23T08:46:10.000Z
speech_dia_@/src/pyannote_xxx/core/feature.py
NgvTue/test2
d475cb2fed16b46185adbe50b4179d5299c791cb
[ "MIT" ]
null
null
null
speech_dia_@/src/pyannote_xxx/core/feature.py
NgvTue/test2
d475cb2fed16b46185adbe50b4179d5299c791cb
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 # The MIT License (MIT) # Copyright (c) 2014-2019 CNRS # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limita...
34.768456
82
0.612586
1c5c59182982f35198089759d2eeeecf314c0dc1
14,032
py
Python
tests/test_menus.py
webbyfox/djangocms-versioning
a466ff0f8d109a22ec2f567cace6ef69d332180c
[ "BSD-3-Clause" ]
null
null
null
tests/test_menus.py
webbyfox/djangocms-versioning
a466ff0f8d109a22ec2f567cace6ef69d332180c
[ "BSD-3-Clause" ]
null
null
null
tests/test_menus.py
webbyfox/djangocms-versioning
a466ff0f8d109a22ec2f567cace6ef69d332180c
[ "BSD-3-Clause" ]
null
null
null
from django.contrib.auth.models import AnonymousUser from django.template import Context, Template from django.test import RequestFactory from django.test.utils import override_settings from cms import constants as cms_constants from cms.cms_menus import CMSMenu from cms.test_utils.testcases import CMSTestCase from cm...
39.638418
91
0.663626
1c5c62e2dad9ddb231e8c4650478d62890936423
57
py
Python
base/__init__.py
mintpancake/2d-collision-net
0ca4d36b2623c703d87d58ce2031a226a0b64df8
[ "MIT" ]
9
2020-09-15T06:36:50.000Z
2021-09-08T11:13:06.000Z
base/__init__.py
mintpancake/2d-collision-net
0ca4d36b2623c703d87d58ce2031a226a0b64df8
[ "MIT" ]
null
null
null
base/__init__.py
mintpancake/2d-collision-net
0ca4d36b2623c703d87d58ce2031a226a0b64df8
[ "MIT" ]
1
2021-09-02T22:46:46.000Z
2021-09-02T22:46:46.000Z
from .base_model import * from .base_pc_trainer import *
19
30
0.789474
1c5c7321b198cc9c978218404c4384b07ffc7f16
3,711
py
Python
test.py
Calvin-Ruiz/entitylib2
8a8d6142628a91c24dd7c9d3e7c3c52eda20ca30
[ "MIT" ]
1
2018-11-19T17:45:48.000Z
2018-11-19T17:45:48.000Z
test.py
Calvin-Ruiz/entitylib2
8a8d6142628a91c24dd7c9d3e7c3c52eda20ca30
[ "MIT" ]
null
null
null
test.py
Calvin-Ruiz/entitylib2
8a8d6142628a91c24dd7c9d3e7c3c52eda20ca30
[ "MIT" ]
null
null
null
from entitylib2 import * mur = Static("default", (128, 16), "bmp") class obs(Obstacle): live=100 size=(32, 32) class ent(Entity): dmg=2 xp=10 size=(32, 32) class Zombie(IA): img_format = (4,4,"png") dmg=2 xp = 10 delay = 12000 size=(16, 32) sound="blast.wav...
35.009434
114
0.521692
1c5c888c07ec122e978aadcc8314547831324d0a
697
py
Python
04-function-basics/03s-solution-functions-basic-practice.py
Tebs-Lab/python-for-scripting-workshop
8e3aeb99f95112143701926aa7ab495358c4e3ee
[ "Unlicense" ]
null
null
null
04-function-basics/03s-solution-functions-basic-practice.py
Tebs-Lab/python-for-scripting-workshop
8e3aeb99f95112143701926aa7ab495358c4e3ee
[ "Unlicense" ]
null
null
null
04-function-basics/03s-solution-functions-basic-practice.py
Tebs-Lab/python-for-scripting-workshop
8e3aeb99f95112143701926aa7ab495358c4e3ee
[ "Unlicense" ]
null
null
null
## Part 1: Standalone Functions ### Mean def mean(input_list): return sum(input_list) / len(input_list) # Provided test, you should add more. numbers = [5, 10, 15] m = mean(numbers) print(m) # 10 ### Median def median(input_list): n = len(input_list) sorted_list = sorted(input_list) # No elements,...
20.5
79
0.593974
1c5cb9a871b8be814d4c8f603a48365591dabed0
5,544
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/os_disk_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/os_disk_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/os_disk_py3.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.000Z
# 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. # Changes ...
53.307692
257
0.686688
1c5cd495611134964aedd4a496a5d3ac1696387d
3,486
py
Python
tartangan/explore/info_encode.py
awentzonline/tartangan
2d36a81fa0ae91fe6b9b4e1f26763285630837fb
[ "MIT" ]
null
null
null
tartangan/explore/info_encode.py
awentzonline/tartangan
2d36a81fa0ae91fe6b9b4e1f26763285630837fb
[ "MIT" ]
null
null
null
tartangan/explore/info_encode.py
awentzonline/tartangan
2d36a81fa0ae91fe6b9b4e1f26763285630837fb
[ "MIT" ]
null
null
null
import glob import os from more_itertools import ichunked from PIL import Image import torch from torchvision import transforms import tqdm from tartangan.utils.fs import maybe_makedirs from tartangan.trainers.utils import set_device_from_args from .base import GOutputApp class InfoGANEncodeImage(GOutputApp): "...
32.579439
76
0.595525
1c5cf28fa3c95f7823e9e6987733e6bf3509d765
4,242
py
Python
build-support/bin/generate_user_list.py
xyzst/pants
d6a357fe67ee7e8e1aefeae625e107f5609f1717
[ "Apache-2.0" ]
null
null
null
build-support/bin/generate_user_list.py
xyzst/pants
d6a357fe67ee7e8e1aefeae625e107f5609f1717
[ "Apache-2.0" ]
6
2022-01-25T15:49:26.000Z
2022-02-09T11:21:13.000Z
build-support/bin/generate_user_list.py
thejcannon/pants
7c24f42cb78cc462b63698cef736eda7a85c40e0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2021 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import pkgutil from dataclasses import dataclass import chevron """Generates the custom HTML/CSS block in https://www.pantsbuild.org/docs/who-uses-pants . To add ...
32.883721
100
0.643564
1c5d08cde81b1572ae1174effa6a8e93bcd0caf4
8,517
py
Python
gedcomx/models.py
dekoza/pyGedcomX
3500f9b8a401ff06ba72f3d53644207b06a8c91b
[ "Apache-2.0" ]
1
2021-09-03T10:03:16.000Z
2021-09-03T10:03:16.000Z
gedcomx/models.py
dekoza/pyGedcomX
3500f9b8a401ff06ba72f3d53644207b06a8c91b
[ "Apache-2.0" ]
null
null
null
gedcomx/models.py
dekoza/pyGedcomX
3500f9b8a401ff06ba72f3d53644207b06a8c91b
[ "Apache-2.0" ]
null
null
null
import re from datetime import datetime from typing import List, Optional, Union import language_tags from pydantic import AnyUrl, BaseModel, HttpUrl from .date import DateFormat from .enums import ( Confidence, DocumentType, EventType, FactType, GedcomXIdentifier, GenderType, IdentifierTy...
25.123894
87
0.707761
1c5d0aa7d572ff4c4f890116c9c9f799579ee541
15,405
py
Python
pyprof2html/core.py
hhatto/pyprof2html
dcc66fe5272c1f12401669ebaef45c26f3595854
[ "BSD-3-Clause" ]
null
null
null
pyprof2html/core.py
hhatto/pyprof2html
dcc66fe5272c1f12401669ebaef45c26f3595854
[ "BSD-3-Clause" ]
null
null
null
pyprof2html/core.py
hhatto/pyprof2html
dcc66fe5272c1f12401669ebaef45c26f3595854
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """pyprof2html - Profile data convert to HTML. """ import codecs import hashlib import os import re import time try: from hotshot import log, stats except ImportError: pass # TODO: xxx from pstats import Stats, func_std_string import pyprof2html from pyprof2html._compat import PY2 from...
37.850123
84
0.523791
1c5d1e837316849b6b10a2bb9158f3e5dcd757eb
1,823
py
Python
rlkit/envs/images/env_renderer.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
11
2020-01-24T17:16:42.000Z
2022-01-30T23:07:06.000Z
rlkit/envs/images/env_renderer.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
rlkit/envs/images/env_renderer.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
3
2020-04-13T09:17:25.000Z
2021-10-16T08:03:10.000Z
import numpy as np from PIL import Image from rlkit.envs.images import Renderer class EnvRenderer(Renderer): # TODO: switch to env.render interface def __init__( self, init_camera=None, normalize_image=True, # most gym envs output uint8 create_image_format='HW...
30.383333
78
0.634668
1c5d3e6d2a043382d4d7344ebd43c94681272b74
3,846
py
Python
3.byom-objdetection-from-public-component/artifacts/inference.py
daekeun-ml/ggv2-cv-mlops-workshop
a0b6a9e6f47c6c9ca3b2ec2d345cf918e169fc4d
[ "MIT" ]
3
2021-06-15T03:09:47.000Z
2021-12-29T12:58:08.000Z
3.byom-objdetection-from-public-component/artifacts/inference.py
daekeun-ml/ggv2-cv-mlops-workshop
a0b6a9e6f47c6c9ca3b2ec2d345cf918e169fc4d
[ "MIT" ]
null
null
null
3.byom-objdetection-from-public-component/artifacts/inference.py
daekeun-ml/ggv2-cv-mlops-workshop
a0b6a9e6f47c6c9ca3b2ec2d345cf918e169fc4d
[ "MIT" ]
null
null
null
import threading import time from os import path import config_utils import IPCUtils as ipc_utils import prediction_utils def set_configuration(config): r""" Sets a new config object with the combination of updated and default configuration as applicable. Calls inference code with the new config and indi...
37.339806
112
0.710868
1c5d55260ebe0f8c8f91172565ed3e5624386ec1
2,943
py
Python
dploy/tasks/virtualenv.py
h3/fabric-contrib-dploy
82e96385a46d07938d3e079fc502fca7d433db4b
[ "MIT" ]
2
2018-03-21T17:45:08.000Z
2022-03-07T20:55:39.000Z
dploy/tasks/virtualenv.py
h3/fabric-contrib-dploy
82e96385a46d07938d3e079fc502fca7d433db4b
[ "MIT" ]
null
null
null
dploy/tasks/virtualenv.py
h3/fabric-contrib-dploy
82e96385a46d07938d3e079fc502fca7d433db4b
[ "MIT" ]
2
2018-03-09T09:11:43.000Z
2018-06-20T09:31:34.000Z
import os import fabtools from fabtools import require from fabtools.python import virtualenv as _virtualenv from fabric.contrib import files from fabric.api import task, env, execute, cd from fabric.colors import cyan from dploy.context import ctx, get_project_dir @task def install_requirements(upgrade=False): ...
39.24
78
0.652056
1c5d977e1635ed623086e2cbefd40775f7771d38
3,044
py
Python
src/compas_fab/backends/ros/planner_backend.py
yijiangh/compas_fab
d4e8e630d4daeb8981200456f2ef6b6a09ac88a8
[ "MIT" ]
1
2019-08-15T17:34:43.000Z
2019-08-15T17:34:43.000Z
src/compas_fab/backends/ros/planner_backend.py
yijiangh/compas_fab
d4e8e630d4daeb8981200456f2ef6b6a09ac88a8
[ "MIT" ]
3
2019-07-30T13:50:51.000Z
2019-07-30T14:27:27.000Z
src/compas_fab/backends/ros/planner_backend.py
yijiangh/compas_fab
d4e8e630d4daeb8981200456f2ef6b6a09ac88a8
[ "MIT" ]
null
null
null
""" Interface definition for planner backend implementations. This is only internal, these interfaces and their implementations are managed internally by the RosClient class. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from roslibpy import Service f...
30.138614
100
0.604139
1c5d9d3a3ece1f5203b292a9a6f71a3d2a87fb1d
2,107
py
Python
WP3/Task3.2/spark/jobs/injest_openaire/__init__.py
on-merrit/ON-MERRIT
a21324a54a6365f2f769b5952b0cf5347a97d480
[ "MIT" ]
2
2019-12-10T13:10:58.000Z
2019-12-13T10:11:41.000Z
WP3/Task3.2/spark/jobs/injest_openaire/__init__.py
on-merrit/ON-MERRIT
a21324a54a6365f2f769b5952b0cf5347a97d480
[ "MIT" ]
4
2020-03-31T12:13:45.000Z
2020-04-15T15:59:17.000Z
WP3/Task3.2/spark/jobs/injest_openaire/__init__.py
on-merrit/ON-MERRIT
a21324a54a6365f2f769b5952b0cf5347a97d480
[ "MIT" ]
1
2020-02-26T08:52:39.000Z
2020-02-26T08:52:39.000Z
""" This script takes a sample of papers from climate, health and agriculture for further inspection. """ import sys import logging from pyspark.sql.functions import col, explode def analyze(ss, cfg): """ Run job :param ss: SparkSession :param cfg: app configuration :return: None """ lo...
31.924242
97
0.666825
1c5dca6e47da9d1d1e08d791ba6ba68fa4dafd8a
1,167
py
Python
excal/config.py
neocryses/excal
191720d0b071121dc4f1ac85f4308c15c363ff4d
[ "MIT" ]
null
null
null
excal/config.py
neocryses/excal
191720d0b071121dc4f1ac85f4308c15c363ff4d
[ "MIT" ]
null
null
null
excal/config.py
neocryses/excal
191720d0b071121dc4f1ac85f4308c15c363ff4d
[ "MIT" ]
null
null
null
""" Module which holds configuration related functions. """ import os import shutil import sys import yaml from . import exceptions as ex ROOT_PATH = os.path.abspath(os.path.dirname(__file__)) DEFAULT_CONFIG_PATH = os.path.join(ROOT_PATH, "calendar.yml") CWD = os.getcwd() def generate_config_file(): """ G...
25.369565
72
0.695801
1c5dd68479f1ac55b30701a4181931edea4ea1c9
28,368
py
Python
geoq/maps/models.py
kaydoh/geoq
6f10818d0cc3cef4ba8113e8b047d27e79b2f8b0
[ "MIT" ]
471
2015-01-05T15:16:26.000Z
2022-03-28T05:06:11.000Z
geoq/maps/models.py
kaydoh/geoq
6f10818d0cc3cef4ba8113e8b047d27e79b2f8b0
[ "MIT" ]
109
2015-01-06T20:00:58.000Z
2022-03-11T23:17:53.000Z
geoq/maps/models.py
kaydoh/geoq
6f10818d0cc3cef4ba8113e8b047d27e79b2f8b0
[ "MIT" ]
100
2015-01-05T15:16:39.000Z
2021-12-01T12:13:13.000Z
# -*- coding: utf-8 -*- # This technical data was produced for the U. S. Government under Contract No. W15P7T-13-C-F600, and # is subject to the Rights in Technical Data-Noncommercial Items clause at DFARS 252.227-7013 (FEB 2012) import types import json from geoq.core.models import AOI, Job, Project, Setting from geo...
45.754839
308
0.625564
1c5de9db332e753cd3eceab9d4dfaa6e22e4f800
287
py
Python
mmcv/runner/hooks/logger/__init__.py
Ixuanzhang/mmdet
a8f8397e49e3091f23262f8ace9641ee2c6be746
[ "Apache-2.0" ]
null
null
null
mmcv/runner/hooks/logger/__init__.py
Ixuanzhang/mmdet
a8f8397e49e3091f23262f8ace9641ee2c6be746
[ "Apache-2.0" ]
null
null
null
mmcv/runner/hooks/logger/__init__.py
Ixuanzhang/mmdet
a8f8397e49e3091f23262f8ace9641ee2c6be746
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Open-MMLab. All rights reserved. from .base import LoggerHook from .tensorboard import TensorboardLoggerHook from .text import TextLoggerHook from .wandb import WandbLoggerHook __all__ = [ 'LoggerHook', 'TextLoggerHook', 'TensorboardLoggerHook', 'WandbLoggerHook' ]
28.7
78
0.790941
1c5df3403c7f99b7d7e388ff47b451f9f5c3c37d
13,622
py
Python
2018/tools/makeprogram.py
ygrange/ADASSProceedings
61502d4ba827845c65e98588d84c69d3596ae958
[ "MIT" ]
1
2019-09-18T08:10:25.000Z
2019-09-18T08:10:25.000Z
2018/tools/makeprogram.py
ygrange/ADASSProceedings
61502d4ba827845c65e98588d84c69d3596ae958
[ "MIT" ]
10
2019-09-29T13:55:38.000Z
2021-12-27T16:23:49.000Z
2018/tools/makeprogram.py
ygrange/ADASSProceedings
61502d4ba827845c65e98588d84c69d3596ae958
[ "MIT" ]
3
2020-10-05T19:10:22.000Z
2021-12-25T09:51:07.000Z
#!/usr/bin/env python from astropy.table import Table import pandas as pd import codecs import re from pathlib import Path from html.entities import codepoint2name class Program(object): def __init__(self,infile,format): self._file = infile self._t = Table.read(infile,format=format) self._df = self._t....
56.758333
1,152
0.567097
1c5dfb5e797b0b344f07ecfcafcb75c7c644cafe
5,037
py
Python
test/IECoreMaya/FromMayaParticleConverterTest.py
lucienfostier/cortex
b9916ee4c0392e41934df0e6d4e4b696c0e857ab
[ "BSD-3-Clause" ]
1
2018-09-02T13:05:18.000Z
2018-09-02T13:05:18.000Z
test/IECoreMaya/FromMayaParticleConverterTest.py
lucienfostier/cortex
b9916ee4c0392e41934df0e6d4e4b696c0e857ab
[ "BSD-3-Clause" ]
1
2018-11-07T19:40:15.000Z
2018-11-07T19:40:15.000Z
test/IECoreMaya/FromMayaParticleConverterTest.py
noizfactory/cortex
c2b5bd154d9d7919a0c498f865c5e40a7687e1ce
[ "BSD-3-Clause" ]
null
null
null
########################################################################## # # Copyright (c) 2008-2013, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redis...
46.211009
118
0.72702
1c5e36d02549890041051f4f0557ea9b65ac9176
19,480
py
Python
tests/app/test_utils.py
cds-snc/notification-admin
d4056798bf889ad29893667bbb67ead2f8e466e4
[ "MIT" ]
16
2019-11-05T21:35:49.000Z
2022-01-12T15:00:32.000Z
tests/app/test_utils.py
cds-snc/notification-admin
d4056798bf889ad29893667bbb67ead2f8e466e4
[ "MIT" ]
509
2019-07-11T22:03:19.000Z
2022-03-30T15:19:26.000Z
tests/app/test_utils.py
cds-snc/notification-admin
d4056798bf889ad29893667bbb67ead2f8e466e4
[ "MIT" ]
8
2020-02-21T20:19:29.000Z
2022-03-31T14:17:02.000Z
from collections import OrderedDict from csv import DictReader from io import StringIO from pathlib import Path import pytest from flask import current_app, request from freezegun import freeze_time from app import format_datetime_relative from app.utils import ( Spreadsheet, documentation_url, email_safe...
30.969793
110
0.573357
1c5e67510613766396010f547e69882393a74794
1,970
py
Python
openpnm/topotools/__init__.py
Eravalord/OpenPNM
505bc37318a3ba40d8343f89cd347d0073dd9d14
[ "MIT" ]
null
null
null
openpnm/topotools/__init__.py
Eravalord/OpenPNM
505bc37318a3ba40d8343f89cd347d0073dd9d14
[ "MIT" ]
null
null
null
openpnm/topotools/__init__.py
Eravalord/OpenPNM
505bc37318a3ba40d8343f89cd347d0073dd9d14
[ "MIT" ]
null
null
null
r""" **openpnm.topotools** ---- This module contains a selection of functions that deal specifically with network topology. """ from .topotools import add_boundary_pores from .topotools import clone_pores from .topotools import connect_pores from .topotools import dimensionality from .topotools import extend from...
30.78125
73
0.856853
1c5e93b45d44e62b9ae11c876624331eb0c6e831
3,127
py
Python
hashicorp_vault_client/hashicorp_vault_client/models/body110.py
drewmullen/HAC
fb185804fd244366f8f8d01df22835b3d96e7512
[ "Apache-2.0" ]
null
null
null
hashicorp_vault_client/hashicorp_vault_client/models/body110.py
drewmullen/HAC
fb185804fd244366f8f8d01df22835b3d96e7512
[ "Apache-2.0" ]
2
2019-09-30T20:56:41.000Z
2019-10-02T00:22:07.000Z
hashicorp_vault_client/hashicorp_vault_client/models/body110.py
drewmullen/HAC
fb185804fd244366f8f8d01df22835b3d96e7512
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ HashiCorp Vault API HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. # noqa: E501 OpenAPI spec version: 1.2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class...
27.429825
104
0.545891
1c5ee4a2d39e322e70a8ef8a0168f8bbb3fcb6f9
3,668
py
Python
intersight/models/iam_ldap_validation_task_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/iam_ldap_validation_task_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/iam_ldap_validation_task_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Intersight REST API This is Intersight REST API OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class IamLdapValidationTaskRef(object): """ NOTE: T...
24.453333
77
0.5488
1c5f190cfd9e56a606a27bf1b10651d8b7eba799
1,058
py
Python
vultr/v1_iso.py
nickruhl/python-vultr
de920c8b62d63a546a26afeb070dd2fc959121e9
[ "MIT" ]
117
2015-06-27T04:50:25.000Z
2022-03-20T15:20:56.000Z
vultr/v1_iso.py
nickruhl/python-vultr
de920c8b62d63a546a26afeb070dd2fc959121e9
[ "MIT" ]
30
2015-03-21T22:09:11.000Z
2021-08-10T13:51:31.000Z
vultr/v1_iso.py
wonseok0403/rain
d2c947932824e4b5060c05374a8de1b9ac9bce05
[ "MIT" ]
45
2015-03-17T08:11:45.000Z
2021-11-26T11:11:15.000Z
'''Partial class to handle Vultr ISO API calls''' from .utils import VultrBase, update_params class VultrISO(VultrBase): '''Handles Vultr ISO API calls''' def __init__(self, api_key): VultrBase.__init__(self, api_key) def list(self, params=None): ''' /v1/iso/list GET - account ...
31.117647
70
0.620983
1c5f24a252f8c0d8f6b9b8549fc6873f5b9db419
12,278
py
Python
troveclient/tests/test_instances.py
hrnciar/python-troveclient
e41d08d24325a61a213592934b508bf77ce67dac
[ "Apache-2.0" ]
46
2015-01-14T12:26:24.000Z
2021-01-05T12:54:03.000Z
troveclient/tests/test_instances.py
hrnciar/python-troveclient
e41d08d24325a61a213592934b508bf77ce67dac
[ "Apache-2.0" ]
3
2015-05-22T19:58:11.000Z
2021-04-30T06:12:21.000Z
troveclient/tests/test_instances.py
hrnciar/python-troveclient
e41d08d24325a61a213592934b508bf77ce67dac
[ "Apache-2.0" ]
34
2015-01-21T12:33:53.000Z
2021-10-13T00:29:35.000Z
# Copyright 2011 OpenStack Foundation # Copyright 2013 Rackspace Hosting # Copyright 2013 Hewlett-Packard Development Company, L.P. # 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 co...
39.863636
79
0.633002
1c5f2d9770f8ff0e281e71e4fc1052707f7435fd
2,149
py
Python
fiepipedesktoplib/legalentity/registry/shell/gitlabserver.py
leith-bartrich/fiepipe_desktop
5136141d67a59e9a2afb79f368a6a02f2d61d2da
[ "MIT" ]
null
null
null
fiepipedesktoplib/legalentity/registry/shell/gitlabserver.py
leith-bartrich/fiepipe_desktop
5136141d67a59e9a2afb79f368a6a02f2d61d2da
[ "MIT" ]
null
null
null
fiepipedesktoplib/legalentity/registry/shell/gitlabserver.py
leith-bartrich/fiepipe_desktop
5136141d67a59e9a2afb79f368a6a02f2d61d2da
[ "MIT" ]
null
null
null
import typing from fiepipedesktoplib.gitlabserver.shell import GitLabServerShell from fiepipedesktoplib.gitlabserver.shell import LocalManagedUserTypeCommand, \ LocalManagedGroupTypeCommand, T from fiepipelib.legalentity.registry.routines.gitlabserver import RegisteredEntityGitLabManagedTypeInteractiveRoutines c...
46.717391
131
0.768264
1c5f62de09aa7d7e38c5b9bd51e4ef0265a1058d
34,184
py
Python
tests/test_shell.py
glotzerlab/signac
a03a6d05d0f994ac9c4d5353533883e49cf6b386
[ "BSD-3-Clause" ]
100
2019-01-31T01:37:20.000Z
2022-03-29T10:35:34.000Z
tests/test_shell.py
glotzerlab/signac
a03a6d05d0f994ac9c4d5353533883e49cf6b386
[ "BSD-3-Clause" ]
607
2019-01-31T14:08:17.000Z
2022-03-31T21:51:48.000Z
tests/test_shell.py
glotzerlab/signac
a03a6d05d0f994ac9c4d5353533883e49cf6b386
[ "BSD-3-Clause" ]
31
2019-01-31T14:36:50.000Z
2022-03-14T03:48:32.000Z
# Copyright (c) 2017 The Regents of the University of Michigan # All rights reserved. # This software is licensed under the BSD 3-Clause License. import json import os import shutil import subprocess import sys from tempfile import TemporaryDirectory import pytest import signac from signac.common import config try: ...
38.625989
90
0.553388
1c5f9ebae40276bbbafd353ee7548df9785caf41
5,011
py
Python
mfutil/layerapi2.py
moas/mfutil
6c6deb0f4b70a6e8b34d666a4ee16e431d88265f
[ "BSD-3-Clause" ]
null
null
null
mfutil/layerapi2.py
moas/mfutil
6c6deb0f4b70a6e8b34d666a4ee16e431d88265f
[ "BSD-3-Clause" ]
null
null
null
mfutil/layerapi2.py
moas/mfutil
6c6deb0f4b70a6e8b34d666a4ee16e431d88265f
[ "BSD-3-Clause" ]
null
null
null
"""Utility functions around layerapi2.""" import six from mfutil.glib2 import Glib2Wrapper, GSListPointer from ctypes import cdll, c_char_p, POINTER, c_char, cast, c_int, c_bool, \ Structure class _CLayer(Structure): _fields_ = [("loaded", c_int), ("home", c_char_p), ("label", c_char_p), ("d...
33.406667
79
0.637996
1c5fbcedc3702f0e799651eb4d8f8fd97cd3c2d4
277
py
Python
definitions/__init__.py
jakobwoegerbauer/kagglebirds2020
4c3212c95d2bb11bdde659ee5ad44e00c71492a6
[ "MIT" ]
4
2020-12-27T04:59:52.000Z
2021-03-27T00:56:35.000Z
definitions/__init__.py
jakobwoegerbauer/kagglebirds2020
4c3212c95d2bb11bdde659ee5ad44e00c71492a6
[ "MIT" ]
null
null
null
definitions/__init__.py
jakobwoegerbauer/kagglebirds2020
4c3212c95d2bb11bdde659ee5ad44e00c71492a6
[ "MIT" ]
3
2021-01-30T20:03:04.000Z
2021-08-01T13:58:45.000Z
# -*- coding: utf-8 -*- """ Definitions to plug together for an experiment. Author: Jan Schlüter """ from .datasets import get_dataset, get_dataloader from .models import get_model from .metrics import get_metrics, get_loss_from_metrics from .optimizers import get_optimizer
23.083333
55
0.783394
1c5fc12bf891d79d8d7231f6dac540c1bb2221d0
166
py
Python
datastructures/pycollections/most_common/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
3
2017-05-02T10:28:13.000Z
2019-02-06T09:10:11.000Z
datastructures/pycollections/most_common/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2017-06-21T20:39:14.000Z
2020-02-25T10:28:57.000Z
datastructures/pycollections/most_common/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2016-07-29T04:35:22.000Z
2017-01-18T17:05:36.000Z
from collections import Counter, OrderedDict class OrderCounter(Counter, OrderedDict): pass [print(*c) for c in OrderCounter(sorted(input())).most_common(3)]
18.444444
65
0.753012
1c5ff6085ed4766ac9281b8b5ab759175c0f91ef
174
py
Python
documentation_generator/examples/basic_notebook.py
jkedmiston/pandas-examples
615b91b73f65b3d9c37b10e108c92a08e4aedabf
[ "MIT" ]
null
null
null
documentation_generator/examples/basic_notebook.py
jkedmiston/pandas-examples
615b91b73f65b3d9c37b10e108c92a08e4aedabf
[ "MIT" ]
null
null
null
documentation_generator/examples/basic_notebook.py
jkedmiston/pandas-examples
615b91b73f65b3d9c37b10e108c92a08e4aedabf
[ "MIT" ]
null
null
null
#markdown #Hello #endmarkdown #code x = 5 import pandas #endcode exec(open('documentation_generator/examples/jupyter_notebook_cells/basic_execfile_contents.py').read()) #
13.384615
103
0.798851
1c603de00c810991636e74037a6118475d81e0b9
4,071
py
Python
squid/datadog_checks/squid/squid.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
1
2020-08-08T02:01:01.000Z
2020-08-08T02:01:01.000Z
squid/datadog_checks/squid/squid.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
1
2018-08-15T05:50:17.000Z
2018-08-15T05:50:17.000Z
squid/datadog_checks/squid/squid.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
1
2018-08-15T05:45:42.000Z
2018-08-15T05:45:42.000Z
# (C) Datadog, Inc. 2010-2016 # All rights reserved # Licensed under Simplified BSD License (see LICENSE) import requests # project from datadog_checks.checks import AgentCheck EVENT_TYPE = SOURCE_TYPE_NAME = 'squid' METRIC_PREFIX = "squid.cachemgr" SERVICE_CHECK = "squid.can_connect" SQUID_COUNTERS = [ "client...
30.840909
101
0.62368
1c60899d20b63b22065c92e4219fb40b0e510996
1,023
py
Python
huobi/model/accountsupdateevent.py
xiaohuid/huobi_Python
ebc84b2fc560f77fd77457f36ff91906c43646e3
[ "Apache-2.0" ]
1
2020-12-28T07:04:45.000Z
2020-12-28T07:04:45.000Z
huobi/model/accountsupdateevent.py
xiaohuid/huobi_Python
ebc84b2fc560f77fd77457f36ff91906c43646e3
[ "Apache-2.0" ]
null
null
null
huobi/model/accountsupdateevent.py
xiaohuid/huobi_Python
ebc84b2fc560f77fd77457f36ff91906c43646e3
[ "Apache-2.0" ]
1
2022-03-27T10:36:04.000Z
2022-03-27T10:36:04.000Z
from huobi.model.accountsupdate import AccountsUpdate class AccountsUpdateEvent: """ subscribe for account balance change. :member action: here only support sub ch: subscribe topic, such as "accounts.update#0" data: return data, type is AccountsUpdate """ def __init__(sel...
31
98
0.664712
1c60912097110b335104243fd592c502a588b631
585
py
Python
multivimbroker/multivimbroker/pub/utils/enumutil.py
onap/multicloud-framework
091e2b38db978bceffcd3534f797fd6fa25fa970
[ "Apache-2.0", "CC-BY-4.0" ]
1
2020-06-17T07:02:08.000Z
2020-06-17T07:02:08.000Z
multivimbroker/multivimbroker/pub/utils/enumutil.py
onap/multicloud-framework
091e2b38db978bceffcd3534f797fd6fa25fa970
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
multivimbroker/multivimbroker/pub/utils/enumutil.py
onap/multicloud-framework
091e2b38db978bceffcd3534f797fd6fa25fa970
[ "Apache-2.0", "CC-BY-4.0" ]
2
2018-03-07T08:53:29.000Z
2020-09-30T15:41:33.000Z
# Copyright (c) 2017 Wind River Systems, Inc. # Copyright (c) 2017-2018 VMware, 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 # # Un...
36.5625
74
0.723077
1c60aae8f7a3fc11c55c9eff666b62257cbb8441
5,857
py
Python
im2spec/utils.py
ziatdinovmax/im2spec
60fa6f44db6c0d69e7c6f1d608553b574190e704
[ "MIT" ]
null
null
null
im2spec/utils.py
ziatdinovmax/im2spec
60fa6f44db6c0d69e7c6f1d608553b574190e704
[ "MIT" ]
null
null
null
im2spec/utils.py
ziatdinovmax/im2spec
60fa6f44db6c0d69e7c6f1d608553b574190e704
[ "MIT" ]
null
null
null
from typing import Tuple, Type, Union import numpy as np import torch from shapely.geometry import Polygon from sklearn.mixture import GaussianMixture def predict(model, feature_arr: Union[np.ndarray, torch.Tensor]) -> np.ndarray: """ Makes a prediction with a trained NN """ device = "cuda" if torch....
35.932515
79
0.650333
1c60acc48d711ab00dd9eb36c926ff089f2f8ad7
2,051
py
Python
przekazniki.py
TomaszHorak/Proszkowska10
ed163721006aeaac2b5508838fab264add248c72
[ "MIT" ]
null
null
null
przekazniki.py
TomaszHorak/Proszkowska10
ed163721006aeaac2b5508838fab264add248c72
[ "MIT" ]
null
null
null
przekazniki.py
TomaszHorak/Proszkowska10
ed163721006aeaac2b5508838fab264add248c72
[ "MIT" ]
null
null
null
# import RPi.GPIO as GPIO import time from threading import Thread class przekazniki: # procedur do inicjowania stanu GPIO na poczatku def __init__(self, numery_pinow): # tabela pin definiuje numery pinow pod numer przekaznika, wedlug kolejnosci wystepowania w tablicy # druga kolumna w tabeli o...
34.183333
107
0.606046
1c60cd3d6a4b6af85531741b81d29b52a211cb71
3,569
py
Python
intersight/models/firmware_eula_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/firmware_eula_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/firmware_eula_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Intersight REST API This is Intersight REST API OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class FirmwareEulaRef(object): """ NOTE: This class...
23.793333
77
0.536285
1c6105c88286d054e9bb8302e4d30c0fea058db6
2,751
py
Python
scraper/forex_webscraper/spiders/dailyfx_webscraper.py
CheranMahalingam/Forex_Sentiment_Analysis
3c5d91d21bd908e6bc0585c50583fa9f0bd4939c
[ "MIT" ]
6
2021-05-16T22:04:53.000Z
2022-02-02T16:45:01.000Z
scraper/forex_webscraper/spiders/dailyfx_webscraper.py
bytjn1416124/Forex_Technical_Analysis_Platform
3c5d91d21bd908e6bc0585c50583fa9f0bd4939c
[ "MIT" ]
null
null
null
scraper/forex_webscraper/spiders/dailyfx_webscraper.py
bytjn1416124/Forex_Technical_Analysis_Platform
3c5d91d21bd908e6bc0585c50583fa9f0bd4939c
[ "MIT" ]
6
2021-04-27T04:30:42.000Z
2022-02-06T08:46:25.000Z
import scrapy from scrapy.loader import ItemLoader from forex_data.items import DailyFXItem class DailyFXHistoricalSpider(scrapy.Spider): name = "dailyfx_data" allowed_domains = ["www.dailyfx.com"] start_urls = ["https://www.dailyfx.com/archive/2018/01", "https://www.dailyfx.com/archive/20...
52.903846
173
0.572883
1c61373f63b4ae3af8ce4d0f70863b2a233cd7f9
1,831
py
Python
src/purge.py
embo-press/traxiv
61f09fc670f618ec8e6f198eedb727c6e9551e64
[ "MIT" ]
1
2021-10-02T23:25:34.000Z
2021-10-02T23:25:34.000Z
src/purge.py
embo-press/traxiv
61f09fc670f618ec8e6f198eedb727c6e9551e64
[ "MIT" ]
1
2019-09-20T21:21:51.000Z
2019-09-24T16:36:09.000Z
src/purge.py
embo-press/traxiv
61f09fc670f618ec8e6f198eedb727c6e9551e64
[ "MIT" ]
null
null
null
""" Removes all the hypothes.is posts linked to a user and group and purges the collection in the MongoDB database. """ import argparse import os from . import HYPO, HYPOTHESIS_USER from .utils import progress, get_groupid def purge(user, groupid: str, limit: int): """ A simple function to remove posts in a ...
35.211538
146
0.682687
1c613accba77e054715f7079232ff63943e9b1a9
1,758
py
Python
tests/objects/test__interface.py
vladimirs-git/fortigate-api
7059fa1375feaa53ffcc19c7f48869727b854857
[ "MIT" ]
1
2022-01-31T02:07:49.000Z
2022-01-31T02:07:49.000Z
tests/objects/test__interface.py
vladimirs-git/fortigate-api
7059fa1375feaa53ffcc19c7f48869727b854857
[ "MIT" ]
null
null
null
tests/objects/test__interface.py
vladimirs-git/fortigate-api
7059fa1375feaa53ffcc19c7f48869727b854857
[ "MIT" ]
1
2022-02-17T07:04:50.000Z
2022-02-17T07:04:50.000Z
"""unittest objects/interface.py""" from __future__ import annotations import unittest from fortigate_api.interface import Interface from tests.helper__tst import NAME1, NAME2, NAME3 from tests.mock_fortigate import MockFortigate class Test(MockFortigate): """unittest objects/interface.py""" def setUp(sel...
29.3
76
0.571672
1c619d82636dc8a27989c5cf8d123ace540dfe7b
17,608
py
Python
models/vae/auxtoy.py
lim0606/pytorch-ardae-vae
52f460a90fa5822692031ab7dcca39fa9168988e
[ "MIT" ]
11
2020-06-11T03:01:46.000Z
2021-06-17T02:59:39.000Z
models/vae/auxtoy.py
lim0606/pytorch-ardae-vae
52f460a90fa5822692031ab7dcca39fa9168988e
[ "MIT" ]
1
2020-06-18T00:59:24.000Z
2020-06-19T22:55:14.000Z
models/vae/auxtoy.py
lim0606/pytorch-ardae-vae
52f460a90fa5822692031ab7dcca39fa9168988e
[ "MIT" ]
null
null
null
import math import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from torch import autograd from models.layers import Identity, MLP from models.reparam import NormalDistributionLinear from utils import loss_kld_gaussian, loss_kld_gaussian_vs_gaussian, loss_recon_gaussian, normal_energ...
40.853828
180
0.629827
1c61a377bd2b5960f0c0701e1001173018231f16
2,919
py
Python
test/hummingbot/strategy/dev_4_twap/test_dev_4_twap.py
subchap/hummingbot
de1ed87977c45a72425bb9708e707230fe117b99
[ "Apache-2.0" ]
2
2021-06-17T13:09:25.000Z
2021-06-17T13:09:29.000Z
test/hummingbot/strategy/dev_4_twap/test_dev_4_twap.py
petioptrv/hummingbot
09ed7628acdb358c0bb281d7e5e8a98f7e6d0026
[ "Apache-2.0" ]
null
null
null
test/hummingbot/strategy/dev_4_twap/test_dev_4_twap.py
petioptrv/hummingbot
09ed7628acdb358c0bb281d7e5e8a98f7e6d0026
[ "Apache-2.0" ]
1
2021-06-02T09:34:13.000Z
2021-06-02T09:34:13.000Z
import time from unittest import TestCase from hummingbot.core.clock import ( Clock, ClockMode) from hummingbot.strategy.dev_4_twap import Dev4TwapTradeStrategy from hummingbot.strategy.market_trading_pair_tuple import MarketTradingPairTuple from test.hummingbot.strategy.dev_4_twap.dev_4_twap_test_support im...
37.909091
116
0.683111
1c61ce5b19e3c680a80d486be27a9ea276e3c829
7,227
py
Python
ngsutils/fastq/t/test_filter.py
bgruening/ngsutils
417e90dc1918fb553dd84990f2c54bd8cea8f44d
[ "BSD-3-Clause" ]
57
2015-03-09T01:26:45.000Z
2022-02-22T07:26:01.000Z
ngsutils/fastq/t/test_filter.py
bgruening/ngsutils
417e90dc1918fb553dd84990f2c54bd8cea8f44d
[ "BSD-3-Clause" ]
33
2015-02-03T23:24:46.000Z
2022-03-16T20:08:10.000Z
ngsutils/fastq/t/test_filter.py
bgruening/ngsutils
417e90dc1918fb553dd84990f2c54bd8cea8f44d
[ "BSD-3-Clause" ]
33
2015-01-18T16:47:47.000Z
2022-02-22T07:28:09.000Z
#!/usr/bin/env python ''' Tests for fastqutils filter ''' import unittest import StringIO import ngsutils.fastq.filter from ngsutils.fastq import FASTQ class FilterTest(unittest.TestCase): def testFilterNull(self): fq = StringIO.StringIO('''\ @foo comment ACGTACGT + ;;;;;;;; @bar ACGTACGT + ;;;;;;;; '''...
18.530769
100
0.601079
1c61d8bc72e982a543cf82d44f4b0168fc941ac1
18,767
py
Python
tools/giws/classRepresentation/objectGiws.py
sguazt/prometheus
03cdf3ccb283ed69c6fb84f18d89118abf95f837
[ "Apache-2.0" ]
null
null
null
tools/giws/classRepresentation/objectGiws.py
sguazt/prometheus
03cdf3ccb283ed69c6fb84f18d89118abf95f837
[ "Apache-2.0" ]
null
null
null
tools/giws/classRepresentation/objectGiws.py
sguazt/prometheus
03cdf3ccb283ed69c6fb84f18d89118abf95f837
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python -u # Copyright or Copr. INRIA/Scilab - Sylvestre LEDRU # # Sylvestre LEDRU - <sylvestre.ledru@inria.fr> <sylvestre@ledru.info> # # This software is a computer program whose purpose is to generate C++ wrapper # for Java objects/methods. # # This software is governed by the CeCILL license under French ...
38.144309
473
0.603773
1c61f2ff4bd3ebc85e580b26aec86218675a6468
2,061
py
Python
tools/generate_eval_ques.py
soumye/dialog_without_dialog
9f95d6fb457659f9007445d9036b94e639bddd8b
[ "MIT" ]
3
2020-09-08T23:19:51.000Z
2021-07-21T11:12:48.000Z
tools/generate_eval_ques.py
soumye/dialog_without_dialog
9f95d6fb457659f9007445d9036b94e639bddd8b
[ "MIT" ]
2
2021-01-08T02:08:09.000Z
2021-11-15T23:51:02.000Z
tools/generate_eval_ques.py
soumye/dialog_without_dialog
9f95d6fb457659f9007445d9036b94e639bddd8b
[ "MIT" ]
2
2020-11-10T15:53:03.000Z
2020-12-11T03:24:00.000Z
import os import gc import random import pprint from six.moves import range from time import gmtime, strftime from timeit import default_timer as timer import numpy as np import time import h5py import numpy as np import torch import random import json import pdb import pickle def generate_eval_anno(imageid2ques, i...
30.761194
121
0.692868
1c61f9f652983255eb46121003f54299a20f5461
7,252
py
Python
std/huggingface/xlate.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
std/huggingface/xlate.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
std/huggingface/xlate.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
# Copyright 2021 Quantapix Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
36.812183
112
0.599007
1c62056ccae60959775f5b1f008d89e673ac5be3
126
py
Python
ims/upload/__init__.py
imsweb/ims.upload
b1143ed231b1a9a22f3f53596c0c8b90bda1a0d0
[ "MIT" ]
null
null
null
ims/upload/__init__.py
imsweb/ims.upload
b1143ed231b1a9a22f3f53596c0c8b90bda1a0d0
[ "MIT" ]
null
null
null
ims/upload/__init__.py
imsweb/ims.upload
b1143ed231b1a9a22f3f53596c0c8b90bda1a0d0
[ "MIT" ]
null
null
null
from zope.i18nmessageid import MessageFactory _ = MessageFactory('ims.upload') QUIET_UPLOAD = True # for printing log info
21
45
0.785714
1c623894284483243ed8c7a55f69a6f12a9ad2fc
13,562
py
Python
python/old_experiments/npoints_gradientdescent_repro_error.py
Oilgrim/ivs_sim
95dc017ef2aec32173e73dc397ba00177d4f92ce
[ "MIT" ]
null
null
null
python/old_experiments/npoints_gradientdescent_repro_error.py
Oilgrim/ivs_sim
95dc017ef2aec32173e73dc397ba00177d4f92ce
[ "MIT" ]
null
null
null
python/old_experiments/npoints_gradientdescent_repro_error.py
Oilgrim/ivs_sim
95dc017ef2aec32173e73dc397ba00177d4f92ce
[ "MIT" ]
1
2019-08-07T03:16:47.000Z
2019-08-07T03:16:47.000Z
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Fri Aug 4 11:52:11 2017 @author: lracuna """ import autograd.numpy as np from vision.rt_matrix import R_matrix_from_euler_t from vision.camera import Camera from vision.plane import Plane from vision.circular_plane import CircularPlane import error_functi...
33.403941
126
0.741778
1c623fcfeb410a3122e2294ae85a910d1f71fbd2
525
py
Python
spacex_api/users/urls.py
SantiR38/trello-api
a3bbbf6ab07169511819d0d6c1eee11d5f474542
[ "MIT" ]
null
null
null
spacex_api/users/urls.py
SantiR38/trello-api
a3bbbf6ab07169511819d0d6c1eee11d5f474542
[ "MIT" ]
null
null
null
spacex_api/users/urls.py
SantiR38/trello-api
a3bbbf6ab07169511819d0d6c1eee11d5f474542
[ "MIT" ]
null
null
null
"""Users urls.""" # Django from django.urls import path # Views from spacex_api.users.views.default import ( user_detail_view, user_redirect_view, user_update_view, ) from spacex_api.users.views import sign_up app_name = "users" urlpatterns = [ path('sign-up/', sign_up.SignUpView.as_view(), name='s...
22.826087
67
0.700952
1c624aa1de8d181fffaf57133c7841196182f5d8
856
py
Python
test/test_scenario_run_container_artifact.py
Cosmo-Tech/cosmotech-api-python-client
49ef58784605da8dd6b290cab15b363671991d8e
[ "MIT" ]
null
null
null
test/test_scenario_run_container_artifact.py
Cosmo-Tech/cosmotech-api-python-client
49ef58784605da8dd6b290cab15b363671991d8e
[ "MIT" ]
null
null
null
test/test_scenario_run_container_artifact.py
Cosmo-Tech/cosmotech-api-python-client
49ef58784605da8dd6b290cab15b363671991d8e
[ "MIT" ]
null
null
null
""" Cosmo Tech Plaform API Cosmo Tech Platform API # noqa: E501 The version of the OpenAPI document: 0.0.11-SNAPSHOT Contact: platform@cosmotech.com Generated by: https://openapi-generator.tech """ import sys import unittest import cosmotech_api from cosmotech_api.model.scenario_run_container_...
23.135135
92
0.719626
1c6284a97540d3b58995e4d2fe9e4f50c094630d
800
py
Python
client/paddleflow/run/__init__.py
qiaoshuangshuang/PaddleFlow
15155a553587f18b09d4edfc604cb64a1fbe01a7
[ "Apache-2.0" ]
23
2021-12-31T02:36:13.000Z
2022-03-29T07:38:43.000Z
client/paddleflow/run/__init__.py
qiaoshuangshuang/PaddleFlow
15155a553587f18b09d4edfc604cb64a1fbe01a7
[ "Apache-2.0" ]
10
2022-01-05T08:47:37.000Z
2022-03-29T11:59:43.000Z
client/paddleflow/run/__init__.py
qiaoshuangshuang/PaddleFlow
15155a553587f18b09d4edfc604cb64a1fbe01a7
[ "Apache-2.0" ]
19
2021-12-30T14:37:24.000Z
2022-03-23T03:30:32.000Z
""" Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserve. 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 agre...
34.782609
72
0.78875
1c6294ec28c1c2ff6d45ee25acfa059a5abd0f90
1,260
py
Python
setup.py
deeplearningtoolkit/theano-ctc
31660d462ed569093801b69dc6700db0e12b34f7
[ "BSD-3-Clause" ]
null
null
null
setup.py
deeplearningtoolkit/theano-ctc
31660d462ed569093801b69dc6700db0e12b34f7
[ "BSD-3-Clause" ]
null
null
null
setup.py
deeplearningtoolkit/theano-ctc
31660d462ed569093801b69dc6700db0e12b34f7
[ "BSD-3-Clause" ]
null
null
null
# Always prefer setuptools over distutils from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.abspath(path.dirname(__file__)) # Get the long description from the README file with open(path.join(here, 'README.md'), encoding='utf-8') as f: ...
24.705882
69
0.652381
1c62ad41b9e4f8c84499941846c4bd5b47db0da1
628
py
Python
data/global-configuration/packs/scaleway/collectors/collector_scaleway.py
naparuba/opsbro
98618a002cd47250d21e7b877a24448fc95fec80
[ "MIT" ]
32
2017-08-29T08:57:16.000Z
2021-04-21T08:53:04.000Z
data/global-configuration/packs/scaleway/collectors/collector_scaleway.py
naparuba/opsbro
98618a002cd47250d21e7b877a24448fc95fec80
[ "MIT" ]
108
2017-09-04T19:59:28.000Z
2022-03-31T08:12:07.000Z
data/global-configuration/packs/scaleway/collectors/collector_scaleway.py
naparuba/kunai
98618a002cd47250d21e7b877a24448fc95fec80
[ "MIT" ]
8
2015-02-03T12:30:53.000Z
2017-07-29T19:43:54.000Z
from opsbro.collector import Collector from opsbro.hostingdrivermanager import get_hostingdrivermgr class Scaleway(Collector): def launch(self): # We are active only if the hosting driver is scaleway hostingctxmgr = get_hostingdrivermgr() if not hostingctxmgr.is_driver_active('scaleway'): ...
33.052632
74
0.670382
1c62af7c5bab8e61e1ce15086108c4e1c97dbdd9
1,738
py
Python
bitcrc_python/crcmod.py
devast8a/bitcrc_python
efab94740240fdddcfd8634ce58829e6bf59e74c
[ "MIT" ]
null
null
null
bitcrc_python/crcmod.py
devast8a/bitcrc_python
efab94740240fdddcfd8634ce58829e6bf59e74c
[ "MIT" ]
2
2016-02-27T03:46:04.000Z
2016-02-27T03:48:00.000Z
bitcrc_python/crcmod.py
devast8a/bitcrc_python
efab94740240fdddcfd8634ce58829e6bf59e74c
[ "MIT" ]
null
null
null
# This file provides support for BitCrc to act as a drop-in replacement for # crcmod from BitCrc import BitCrc import math import bits import struct def mkGenerator(poly, initCrc=None, rev=True, xorOut=0): # Find order and unset leading bit order = bits.find_last_set(poly) - 1 poly ^= 1 << order # cr...
25.558824
75
0.614499
1c62af9195c389fb3feb3592eb2742f87657dbe3
24,527
py
Python
allcoin/client.py
sammchardy/python-allcoin
320460f887e4f69aa7d7faf44ad80f289028f058
[ "MIT" ]
3
2018-07-04T14:10:00.000Z
2021-12-28T00:15:41.000Z
allcoin/client.py
sammchardy/python-allcoin
320460f887e4f69aa7d7faf44ad80f289028f058
[ "MIT" ]
4
2018-04-23T13:09:26.000Z
2019-10-22T17:51:27.000Z
allcoin/client.py
sammchardy/python-allcoin
320460f887e4f69aa7d7faf44ad80f289028f058
[ "MIT" ]
4
2018-06-27T11:22:39.000Z
2021-09-05T21:10:23.000Z
# coding=utf-8 import hashlib import requests import json from operator import itemgetter from .exceptions import AllcoinAPIException, AllcoinRequestException class Client(object): API_URL = 'https://api.allcoin.com/api' API_VERSION = 'v1' ORDER_STATUS_UNFILLED = 0 ORDER_STATUS_PARTIALLY_FILLED = 1...
28.855294
135
0.454927
1c62df4a016213abf360880b807069a4160b7afb
858
py
Python
abc/219/C.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
2
2022-01-22T07:56:58.000Z
2022-01-24T00:29:37.000Z
abc/219/C.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
abc/219/C.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
import sys from collections import defaultdict sys.setrecursionlimit(10 ** 6) stdin = sys.stdin def main(): ni = lambda: int(ns()) na = lambda: list(map(int, stdin.readline().split())) ns = lambda: stdin.readline().strip() X = ns() alpha_to_custom = defaultdict() custom_to_alpha = defaultdic...
22
57
0.561772
1c62e623d2a9e57c17e9c07ee2f68a401637c442
4,521
py
Python
API/src/main/resources/Lib/robot/running/outputcapture.py
TagExpress/SikuliX1
de9da11794dd94b3821eddc5c01b534d3f2fe828
[ "MIT" ]
null
null
null
API/src/main/resources/Lib/robot/running/outputcapture.py
TagExpress/SikuliX1
de9da11794dd94b3821eddc5c01b534d3f2fe828
[ "MIT" ]
null
null
null
API/src/main/resources/Lib/robot/running/outputcapture.py
TagExpress/SikuliX1
de9da11794dd94b3821eddc5c01b534d3f2fe828
[ "MIT" ]
null
null
null
# Copyright (c) 2010-2020, sikuli.org, sikulix.com - MIT license # # 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 b...
33
79
0.648971
1c62e7d9e596c5a1b26f3b39d2e30df3f1ebda9d
10,786
py
Python
src/python/pants/option/custom_types.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
src/python/pants/option/custom_types.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
src/python/pants/option/custom_types.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import absolute_import, division, print_function, unicode_literals import re import six from pants.option.errors import ParseError from pants.util.eval im...
35.019481
100
0.688392
1c630f74307d8c71773e185a6ccabc0c58a4f6aa
1,041
py
Python
setup.py
un1tz3r0/ytmusicapi
433f3dca289842498bc9dfc0daf9609f547af825
[ "MIT" ]
3
2021-01-16T05:16:00.000Z
2021-10-16T02:49:43.000Z
setup.py
un1tz3r0/ytmusicapi
433f3dca289842498bc9dfc0daf9609f547af825
[ "MIT" ]
null
null
null
setup.py
un1tz3r0/ytmusicapi
433f3dca289842498bc9dfc0daf9609f547af825
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages import re VERSIONFILE = 'ytmusicapi/_version.py' version_line = open(VERSIONFILE).read() version_re = r"^__version__ = ['\"]([^'\"]*)['\"]" match = re.search(version_re, version_line, re.M) if match: version = match.group(1) else: raise RuntimeError("Could not find ...
34.7
138
0.654179
1c631fc6c11ffe0b2e00890b58d10062df7e329e
269
py
Python
src/oscar/apps/dashboard/promotions/config.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
src/oscar/apps/dashboard/promotions/config.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
src/oscar/apps/dashboard/promotions/config.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
from django.apps import AppConfig from django.utils.translation import ugettext_lazy as _ class PromotionsDashboardConfig(AppConfig): label = 'promotions_dashboard' name = 'oscar.apps.dashboard.promotions' verbose_name = _('Promotions dashboard')
29.888889
56
0.762082
1c63356d315d02151afee97b9c9526e9bc43b041
498
py
Python
examples/lossFunctionFig.py
Duane321/pyprobml
6d0ba29f22dc7fec9dfc73788bc5520e97663bdb
[ "MIT" ]
null
null
null
examples/lossFunctionFig.py
Duane321/pyprobml
6d0ba29f22dc7fec9dfc73788bc5520e97663bdb
[ "MIT" ]
null
null
null
examples/lossFunctionFig.py
Duane321/pyprobml
6d0ba29f22dc7fec9dfc73788bc5520e97663bdb
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Plots loss functions of form |x|**q import matplotlib.pyplot as pl import numpy as np from scipy.stats import t, laplace, norm from utils.util import save_fig x = np.linspace(-4, 4, 100) pl.title('|x|^0.2') pl.plot(x, np.absolute(x)**.2) save_fig('lossFunctionFig_01.png') pl.figure() pl.tit...
19.92
40
0.702811
1c633e2aa30d572d3e1214933ad446397cbc6ed7
176
py
Python
TP1/fibo.py
cedced19/tp-mpsi
bc1b57b6af63aa3db6e4f019b44ce3b872939b85
[ "MIT" ]
null
null
null
TP1/fibo.py
cedced19/tp-mpsi
bc1b57b6af63aa3db6e4f019b44ce3b872939b85
[ "MIT" ]
null
null
null
TP1/fibo.py
cedced19/tp-mpsi
bc1b57b6af63aa3db6e4f019b44ce3b872939b85
[ "MIT" ]
null
null
null
#!/usr/bin/python3 n=int(input("Indice du terme à calculer\n")) u, v = 0, 1 for i in range(0,n): u, v=v, u+v print("le nombre de Fibonacci d'indice {} est {}".format(n,u))
19.555556
63
0.619318
1c63555223e6bc4a80f64cce21aaf955f5f02a24
6,514
py
Python
python/akg/ops/nn/ascend/batch_norm_ad.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
python/akg/ops/nn/ascend/batch_norm_ad.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
python/akg/ops/nn/ascend/batch_norm_ad.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
#!/usr/bin/env python3 # coding: utf-8 # Copyright 2019-2021 Huawei Technologies Co., Ltd # # 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 # # Un...
44.616438
117
0.49739
1c636cbcd97c0ac545092c843ecc548b7b413dff
9,097
py
Python
selection_windows_common_gui.py
yu-efremov/ViscoIndent
b9658509fdf9ed232cf682cb554f668572735e4d
[ "MIT" ]
3
2020-12-02T16:19:46.000Z
2021-12-21T13:26:53.000Z
selection_windows_common_gui.py
yu-efremov/ViscoIndent
b9658509fdf9ed232cf682cb554f668572735e4d
[ "MIT" ]
null
null
null
selection_windows_common_gui.py
yu-efremov/ViscoIndent
b9658509fdf9ed232cf682cb554f668572735e4d
[ "MIT" ]
1
2022-03-03T15:17:58.000Z
2022-03-03T15:17:58.000Z
# -*- coding: utf-8 -*- """ @author: Yuri """ import sys from PyQt5.QtWidgets import QMainWindow, QApplication, QWidget, \ QVBoxLayout, QHBoxLayout, QLabel,\ QPushButton, QFileDialog import numpy as np from Pars_class import Pars_gen from import_AFM_data import Bruker_import from import_ARDF im...
39.211207
166
0.605584
1c636f07afb3dd7aec8bc2cb295df2a7e97ef189
750
py
Python
test/agent_test.py
saheerb/mbed-fastmodel-agent
ff123ac6227cf036e2124666c5c9b313f1eed03c
[ "Apache-2.0" ]
1
2020-09-07T23:14:23.000Z
2020-09-07T23:14:23.000Z
test/agent_test.py
saheerb/mbed-fastmodel-agent
ff123ac6227cf036e2124666c5c9b313f1eed03c
[ "Apache-2.0" ]
null
null
null
test/agent_test.py
saheerb/mbed-fastmodel-agent
ff123ac6227cf036e2124666c5c9b313f1eed03c
[ "Apache-2.0" ]
1
2018-08-10T09:11:16.000Z
2018-08-10T09:11:16.000Z
from unittest import TestCase import fm_agent class TestFastmodelAgent(TestCase): def test_check_configs_true(self): s = fm_agent.create().check_config_exist("MPS2.conf") self.assertTrue(s) def test_check_configs_false(self): s = fm_agent.create().check_config_exist("THISFILENOTEXIST.c...
35.714286
73
0.697333
1c637043876b6e75881fe9db6e2700d6e0c9b3f4
8,385
py
Python
act/act_cell_orig.py
iganichev/scratch
e570f77abb855a21ec4ef893b5cfc97d331d0ce5
[ "MIT" ]
null
null
null
act/act_cell_orig.py
iganichev/scratch
e570f77abb855a21ec4ef893b5cfc97d331d0ce5
[ "MIT" ]
null
null
null
act/act_cell_orig.py
iganichev/scratch
e570f77abb855a21ec4ef893b5cfc97d331d0ce5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import division from __future__ import print_function import tensorflow as tf from tensorflow.contrib.rnn import RNNCell from tensorflow.contrib.rnn import static_rnn from tensorflow.python.ops import variable_scope as vs class ACTCell(RNNCell): """ A...
43.900524
132
0.681813
1c638a2826b6e51c08d26bbe52bd73d39edabe2e
2,634
py
Python
cinder/api/contrib/used_limits.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/api/contrib/used_limits.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
2
2018-10-25T13:04:01.000Z
2019-08-17T13:15:24.000Z
cinder/api/contrib/used_limits.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
2
2018-10-17T13:32:50.000Z
2018-11-08T08:39:39.000Z
# Copyright 2012 OpenStack Foundation # # 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 ...
37.628571
78
0.642369
1c63bad6b10ac60824db6819a5eb2346a242aa6b
9,973
py
Python
pystratis/nodes/interfluxnodes.py
madrazzl3/pystratis
8b78552e753ae1d12f2afb39e9a322a270fbb7b3
[ "MIT" ]
null
null
null
pystratis/nodes/interfluxnodes.py
madrazzl3/pystratis
8b78552e753ae1d12f2afb39e9a322a270fbb7b3
[ "MIT" ]
null
null
null
pystratis/nodes/interfluxnodes.py
madrazzl3/pystratis
8b78552e753ae1d12f2afb39e9a322a270fbb7b3
[ "MIT" ]
null
null
null
from typing import Union from .basenode import BaseNode from pystratis.core.networks import CirrusMain, CirrusTest, CirrusRegTest, StraxTest, StraxRegTest, StraxMain from pystratis.api.collateral import Collateral from pystratis.api.collateralvoting import CollateralVoting from pystratis.api.federationgateway import Fe...
36.00361
137
0.686955
1c63c00a372a8ac3026bbaf5a43a69a4ed0df013
18,049
py
Python
tests/unit/test_ssh.py
kkltcjk/kklt
5388eb439616a442dde496ef77ba6b71169369e0
[ "Apache-2.0" ]
null
null
null
tests/unit/test_ssh.py
kkltcjk/kklt
5388eb439616a442dde496ef77ba6b71169369e0
[ "Apache-2.0" ]
null
null
null
tests/unit/test_ssh.py
kkltcjk/kklt
5388eb439616a442dde496ef77ba6b71169369e0
[ "Apache-2.0" ]
null
null
null
# Copyright 2013: Mirantis Inc. # 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 b...
44.7866
79
0.649454
1c63d552bcf4df3014712f8d2d9e8ad06da71e40
1,067
py
Python
portal/apps/core/migrations/0018_auto_20211215_1409.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
null
null
null
portal/apps/core/migrations/0018_auto_20211215_1409.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
null
null
null
portal/apps/core/migrations/0018_auto_20211215_1409.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.29 on 2021-12-15 14:09 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0017_auto_20211203_1142'), ] operations =...
35.566667
141
0.612933
1c63d6789418c73f5c9236bad01386d353383c49
4,021
py
Python
python3/pandas/Pandas_Option&Settings.py
Nahid-Hassan/code-snippets
24bd4b81564887822a0801a696001fcbeb6a7a75
[ "MIT" ]
2
2020-09-29T04:09:41.000Z
2020-10-18T13:33:36.000Z
python3/pandas/Pandas_Option&Settings.py
Nahid-Hassan/code-snippets
24bd4b81564887822a0801a696001fcbeb6a7a75
[ "MIT" ]
null
null
null
python3/pandas/Pandas_Option&Settings.py
Nahid-Hassan/code-snippets
24bd4b81564887822a0801a696001fcbeb6a7a75
[ "MIT" ]
1
2021-12-26T04:55:55.000Z
2021-12-26T04:55:55.000Z
import pandas as pd import numpy as np print(pd.options.display.max_rows) #by default it is 60 pd.options.display.max_rows = 5 print(pd.options.display.max_rows) #Now it is 10 df = pd.read_csv('/media/nahid/New Volume/GitHub/Pandas/sample.csv') print(df) ''' company numEmps category ... state fundedDate r...
32.427419
90
0.557324
1c63f1707b42f153320aab320d3d0a31a1b23e6d
3,200
py
Python
utilities/data.py
viktor40/HammerBotPython
84b3cbc8fbba05666d81b442078e2281a1e766b1
[ "MIT" ]
3
2020-10-29T15:15:55.000Z
2020-10-29T21:42:58.000Z
utilities/data.py
viktor40/HammerBotPython
84b3cbc8fbba05666d81b442078e2281a1e766b1
[ "MIT" ]
null
null
null
utilities/data.py
viktor40/HammerBotPython
84b3cbc8fbba05666d81b442078e2281a1e766b1
[ "MIT" ]
2
2020-07-14T13:42:47.000Z
2020-10-25T16:42:09.000Z
# HammerBotPython # utilities module # data.py """ All non sensitive data used in functions is stored here. Sensitive data like the bot token and server IP is stored in the .env file which is in the gitignore. Final is used to show that the variables are constant, and should not be changed. """ import discord from ty...
39.506173
114
0.677813
1c63f54e6a0b211e46b2c1734cfbfa8464d7a98c
2,651
py
Python
sanity/management/commands/register_img.py
TIBHannover/arxiv_preserver
aefdacaa9d1c4c13b51e1812e6218c0025ab0a11
[ "MIT" ]
null
null
null
sanity/management/commands/register_img.py
TIBHannover/arxiv_preserver
aefdacaa9d1c4c13b51e1812e6218c0025ab0a11
[ "MIT" ]
null
null
null
sanity/management/commands/register_img.py
TIBHannover/arxiv_preserver
aefdacaa9d1c4c13b51e1812e6218c0025ab0a11
[ "MIT" ]
null
null
null
from django.core.management.base import BaseCommand, CommandError from django.db.utils import IntegrityError import sanity.models as models import sanity.utils as utils import re import time import datetime import os from django.db.models import Max from django.db import transaction import sanity.arxiv.download as a...
34.881579
113
0.584308
1c642732caa571ca77c211fca6ee4d07c32d04fb
2,831
py
Python
paminco/tests/test_base.py
paminco/paminco
2b8da7cc83adde3c72af5150cf6d7294ff6fd29e
[ "MIT" ]
4
2021-12-30T06:25:09.000Z
2022-01-06T17:28:57.000Z
paminco/tests/test_base.py
paminco/paminco
2b8da7cc83adde3c72af5150cf6d7294ff6fd29e
[ "MIT" ]
9
2021-12-13T07:38:13.000Z
2021-12-21T16:43:15.000Z
paminco/tests/test_base.py
paminco/paminco
2b8da7cc83adde3c72af5150cf6d7294ff6fd29e
[ "MIT" ]
null
null
null
import tempfile import pytest import numpy as np from paminco import load_sioux, Network from paminco._base import ParametricSolution from paminco.algo.mca import MCA def sioux(): sioux = load_sioux() sioux.set_demand(("20", "3", 100000)) sioux.cost.integrate(inplace=True) mca_ue = MCA(sioux) mc...
33.305882
133
0.548569
1c6432dcf4007400f4aba930d86fdaa3859fbecf
536
py
Python
snm/otps/models.py
sparesnmechs/sparesnmechs
44a7178fcfd0c89004d9f31734405c8d0fd5cd97
[ "MIT" ]
null
null
null
snm/otps/models.py
sparesnmechs/sparesnmechs
44a7178fcfd0c89004d9f31734405c8d0fd5cd97
[ "MIT" ]
9
2021-02-27T13:13:38.000Z
2021-06-04T11:57:12.000Z
snm/otps/models.py
sparesnmechs/sparesnmechs
44a7178fcfd0c89004d9f31734405c8d0fd5cd97
[ "MIT" ]
null
null
null
"""OTPs app models.""" from django.db import models from phonenumber_field.validators import validate_international_phonenumber from snm.common.models import AbstractBase class Otp(AbstractBase): """OTP data model.""" phone_number = models.CharField( max_length=15, validators=[validate_inter...
26.8
75
0.720149