hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
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
247
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
247
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
69cc9a1f6a639563622f0c9fe9107b2a2258bf9f
6,079
py
Python
img4.py
clayfreeman/img4
e2d8f05ca5ba4c9d445dff5f8a6b3b4cf48d3bf2
[ "MIT" ]
null
null
null
img4.py
clayfreeman/img4
e2d8f05ca5ba4c9d445dff5f8a6b3b4cf48d3bf2
[ "MIT" ]
null
null
null
img4.py
clayfreeman/img4
e2d8f05ca5ba4c9d445dff5f8a6b3b4cf48d3bf2
[ "MIT" ]
null
null
null
# SPDX-License-Identifier: MIT # Greetings to: # - https://www.theiphonewiki.com/wiki/IMG4_File_Format # - https://github.com/tihmstar/img4tool/ # - https://lapo.it/asn1js/ # - hexdump tool of choice import restruct if __name__ == '__main__': import argparse parser = argparse.ArgumentParser() parser....
29.225962
132
0.550584
# SPDX-License-Identifier: MIT # Greetings to: # - https://www.theiphonewiki.com/wiki/IMG4_File_Format # - https://github.com/tihmstar/img4tool/ # - https://lapo.it/asn1js/ # - hexdump tool of choice import functools from asn1crypto.core import ( Enumerated, Choice, Sequence, SequenceOf, SetOf, Integer, IA5Str...
0
0
0
2,092
0
58
0
151
504
9f9edf6016950ee307ec6bab15c4f6306ef09f36
2,328
py
Python
scripts/pughpore/plot_diff_ahem.py
jhwnkim/nanopores
98b3dbb5d36464fbdc03f59d224d38e4255324ce
[ "MIT" ]
null
null
null
scripts/pughpore/plot_diff_ahem.py
jhwnkim/nanopores
98b3dbb5d36464fbdc03f59d224d38e4255324ce
[ "MIT" ]
null
null
null
scripts/pughpore/plot_diff_ahem.py
jhwnkim/nanopores
98b3dbb5d36464fbdc03f59d224d38e4255324ce
[ "MIT" ]
null
null
null
# (c) 2017 Gregor Mitscha-Baude from matplotlib import pyplot as plt from nanopores.tools import fields fields.set_dir_dropbox() from nanopores.models.diffusion_ahem import diff_profile_z_ahem # params for precomputed diffusivity params = dict(dim=2, Nmax=1e5, h=.5, ahemqsuniform=True, rMolecule=0.11) #ap1 = 18 #ap2 ...
27.388235
85
0.693299
# (c) 2017 Gregor Mitscha-Baude from matplotlib import pyplot as plt import numpy as np import dolfin from nanopores.tools import fields fields.set_dir_dropbox() from nanopores.models.nanopore import Setup from nanopores.geometries.alphahempoly import poly from nanopores.geometries.alphahem import default from nanopore...
0
0
0
0
0
193
0
118
178
a417f4cdb25dac12c25d28f2f1b5f38a475ca13e
320
py
Python
codewars/src/multiples_digits_sum.py
wenima/math-series
60aa0b0c845bd859a1bf936c7e200f60ecfce026
[ "MIT" ]
null
null
null
codewars/src/multiples_digits_sum.py
wenima/math-series
60aa0b0c845bd859a1bf936c7e200f60ecfce026
[ "MIT" ]
null
null
null
codewars/src/multiples_digits_sum.py
wenima/math-series
60aa0b0c845bd859a1bf936c7e200f60ecfce026
[ "MIT" ]
1
2019-10-03T07:38:06.000Z
2019-10-03T07:38:06.000Z
"""This module solves kata https://www.codewars.com/kata/multiples-and-digit-sums/train/python.""" def procedure(i): """Return an integer derived by first finding all multiples of i up to 100, then summing all up digit sums of all multiples.""" return sum(int(d) for i in range(n, 101, n) for d in str(i))
40
98
0.7
"""This module solves kata https://www.codewars.com/kata/multiples-and-digit-sums/train/python.""" def procedure(i): """Return an integer derived by first finding all multiples of i up to 100, then summing all up digit sums of all multiples.""" return sum(int(d) for i in range(n, 101, n) for d in str(i))
0
0
0
0
0
0
0
0
0
36e541780526915a358b17b1f29530895478a06a
1,869
py
Python
tests/show_drive.py
jmscslgroup/privpurge
f21fa1e05c5e15ea9ed3b3f720aabb151afcc51e
[ "BSD-2-Clause" ]
null
null
null
tests/show_drive.py
jmscslgroup/privpurge
f21fa1e05c5e15ea9ed3b3f720aabb151afcc51e
[ "BSD-2-Clause" ]
4
2021-04-12T17:58:41.000Z
2021-08-01T12:35:57.000Z
tests/show_drive.py
jmscslgroup/privpurge
f21fa1e05c5e15ea9ed3b3f720aabb151afcc51e
[ "BSD-2-Clause" ]
null
null
null
import folium import os if __name__ == "__main__": cwd = os.getcwd() args = get_args() plot_privpurge( os.path.join(cwd, args.zonefile), os.path.join(cwd, args.directory), filename=args.output, )
26.7
86
0.579989
import json import folium import folium.plugins import tempfile import os import re def plot_privpurge(message, outdir, filename=None): if filename is None: filename = "~map_" + next(tempfile._get_candidate_names()) + ".html" my_map = folium.Map() for fl in [ f for f in os.listdir(outdi...
0
0
0
0
0
1,503
0
-34
157
b5646fff9a5543547a5f966f926aa2fd063a36b3
8,249
py
Python
autopycoin/utils/data_utils_test.py
AutocoinLab/autopycoin
d091292517c3429d5cc2dfeb513c644b506af9cf
[ "Apache-2.0" ]
3
2021-09-26T14:04:25.000Z
2022-02-10T09:52:00.000Z
autopycoin/utils/data_utils_test.py
AutocoinLab/autopycoin
d091292517c3429d5cc2dfeb513c644b506af9cf
[ "Apache-2.0" ]
24
2021-09-26T14:04:27.000Z
2022-02-11T13:32:06.000Z
autopycoin/utils/data_utils_test.py
AutocoinLab/autopycoin
d091292517c3429d5cc2dfeb513c644b506af9cf
[ "Apache-2.0" ]
null
null
null
# pylint: skip-file """ Unit test for data utils functions. """
30.439114
88
0.534731
# pylint: skip-file """ Unit test for data utils functions. """ import numpy as np import pandas as pd import pytest import tensorflow as tf from tensorflow import test from .data_utils import quantiles_handler, example_handler, fill_none from ..data import random_ts from ..dataset import WindowGenerator class Ch...
0
7,074
0
769
0
0
0
66
271
462a6cefdccfc40c9c840424ec8ddc04070744bd
12,923
py
Python
packages/adminrouter/extra/src/test-harness/modules/mocker/endpoints/generic.py
makkes/dcos
a6df70f3f58ead134c8c49af8fa1387b4f81c19c
[ "Apache-2.0" ]
1
2019-04-26T17:46:37.000Z
2019-04-26T17:46:37.000Z
packages/adminrouter/extra/src/test-harness/modules/mocker/endpoints/generic.py
makkes/dcos
a6df70f3f58ead134c8c49af8fa1387b4f81c19c
[ "Apache-2.0" ]
720
2017-02-08T04:04:19.000Z
2021-09-14T14:04:56.000Z
packages/adminrouter/extra/src/test-harness/modules/mocker/endpoints/generic.py
makkes/dcos
a6df70f3f58ead134c8c49af8fa1387b4f81c19c
[ "Apache-2.0" ]
14
2017-02-08T03:57:24.000Z
2019-10-28T12:14:49.000Z
# Copyright (C) Mesosphere, Inc. See LICENSE file for details. """ Shared code for DC/OS endpoints mocks used by AR instances, both EE and Open. """ import logging # pylint: disable=C0103 log = logging.getLogger(__name__) # Just a dict would be no good as we want to have threading lock initialization # as well. # p...
36.922857
108
0.630349
# Copyright (C) Mesosphere, Inc. See LICENSE file for details. """ Shared code for DC/OS endpoints mocks used by AR instances, both EE and Open. """ import abc import http.server import logging import os import socket import socketserver import ssl import threading # pylint: disable=C0103 log = logging.getLogger(__n...
0
207
0
11,970
0
0
0
-52
291
9ec35e51357b9666792505fb9f52a9e1ad10e223
24,247
py
Python
dspn/train.py
FlorianSchroevers/dspn
8bd2fe9b336099da8c18c9ce716c00e7cf1ca0b6
[ "MIT" ]
null
null
null
dspn/train.py
FlorianSchroevers/dspn
8bd2fe9b336099da8c18c9ce716c00e7cf1ca0b6
[ "MIT" ]
null
null
null
dspn/train.py
FlorianSchroevers/dspn
8bd2fe9b336099da8c18c9ce716c00e7cf1ca0b6
[ "MIT" ]
null
null
null
import torch import matplotlib matplotlib.use("Qt5Agg") if __name__ == "__main__": try: main() except KeyboardInterrupt: print("Process interrupted by user, emptying cache...") torch.cuda.empty_cache()
33.352132
79
0.479894
import os import argparse from datetime import datetime import time import torch import torch.nn.functional as F import torch.multiprocessing as mp import numpy as np import pandas as pd from tqdm import tqdm import matplotlib import matplotlib.pyplot as plt from tensorboardX import SummaryWriter import data import...
0
0
0
0
0
23,664
0
-12
356
8dce960a7b6703eb2654296841d98428d993d7fa
6,284
py
Python
classes/Math.py
lekevin42/discord_music_single
fcf30cf33f8bd5b8f2a16dba7f32600024700213
[ "MIT" ]
null
null
null
classes/Math.py
lekevin42/discord_music_single
fcf30cf33f8bd5b8f2a16dba7f32600024700213
[ "MIT" ]
1
2017-07-28T14:51:13.000Z
2017-07-28T20:27:46.000Z
classes/Math.py
lekevin42/discord_music_single
fcf30cf33f8bd5b8f2a16dba7f32600024700213
[ "MIT" ]
null
null
null
if __name__ == "__main__": main()
20.739274
106
0.60837
import math class Math: def __init__(self, eq): self.equation = eq self.equation_list = None def print_equation(self): print(self.equation) def remove_spaces(self): self.equation = self.equation.replace(" ", "") def split_equation(self): self.equation_list = self.equation.split(" ") def is_ope...
0
0
0
6,039
0
139
0
-10
69
07faafb2470cb4cfac7096981ce820ce593ba511
3,824
py
Python
examples/statistics.py
chiluf/visvis.dev
373846ea25044b7ca50f44c63dab4248e14deacd
[ "BSD-3-Clause" ]
null
null
null
examples/statistics.py
chiluf/visvis.dev
373846ea25044b7ca50f44c63dab4248e14deacd
[ "BSD-3-Clause" ]
null
null
null
examples/statistics.py
chiluf/visvis.dev
373846ea25044b7ca50f44c63dab4248e14deacd
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ This example a coupe of ways to visualize statistic data. As an example I took the monthly temperature in the region where I live (Twente, The Netherlands) over the period 1983-2010. This data was extracted from publicly available data obtained from the Royal Netherlands Meteorological Inst...
39.020408
77
0.656642
#!/usr/bin/env python """ This example a coupe of ways to visualize statistic data. As an example I took the monthly temperature in the region where I live (Twente, The Netherlands) over the period 1983-2010. This data was extracted from publicly available data obtained from the Royal Netherlands Meteorological Inst...
0
0
0
0
0
0
0
0
0
cdd3664562efc356638d927e7302539928cb2b06
1,320
py
Python
tests/terraform/checks/resource/gcp/test_CloudStorageLogging.py
kylelaker/checkov
6eada26030a87f397a6bf1831827b3dc6c5dad2d
[ "Apache-2.0" ]
4,013
2019-12-09T13:16:54.000Z
2022-03-31T14:31:01.000Z
tests/terraform/checks/resource/gcp/test_CloudStorageLogging.py
kylelaker/checkov
6eada26030a87f397a6bf1831827b3dc6c5dad2d
[ "Apache-2.0" ]
1,258
2019-12-17T09:55:51.000Z
2022-03-31T19:17:17.000Z
tests/terraform/checks/resource/gcp/test_CloudStorageLogging.py
kylelaker/checkov
6eada26030a87f397a6bf1831827b3dc6c5dad2d
[ "Apache-2.0" ]
638
2019-12-19T08:57:38.000Z
2022-03-30T21:38:37.000Z
import unittest if __name__ == '__main__': unittest.main()
33
82
0.625
import unittest import hcl2 from checkov.common.models.enums import CheckResult from checkov.terraform.checks.resource.gcp.CloudStorageLogging import check class TestCloudStorageLogging(unittest.TestCase): def test_failure(self): hcl_res = hcl2.loads(""" resource "google_storage_bucket" "loggin...
0
0
0
1,090
0
0
0
74
91
d3b5b655afd498b598dfe9266c76d3818cd93340
26,166
py
Python
models/cifar/resnet.py
HRanWang/imagenet_whr
fcfe830c7889a7239d3f791de192d6121f8c316f
[ "MIT" ]
1
2019-10-19T15:30:02.000Z
2019-10-19T15:30:02.000Z
models/cifar/resnet.py
HRanWang/imagenet_whr
fcfe830c7889a7239d3f791de192d6121f8c316f
[ "MIT" ]
null
null
null
models/cifar/resnet.py
HRanWang/imagenet_whr
fcfe830c7889a7239d3f791de192d6121f8c316f
[ "MIT" ]
null
null
null
from __future__ import absolute_import '''Resnet for cifar dataset. Ported form https://github.com/facebook/fb.resnet.torch and https://github.com/pytorch/vision/blob/master/torchvision/models/resnet.py (c) YANG, Wei ''' import torch.nn as nn __all__ = ['resnet','resnet50'] def conv3x3(in_planes, out_planes, stride=...
41.798722
150
0.613697
from __future__ import absolute_import '''Resnet for cifar dataset. Ported form https://github.com/facebook/fb.resnet.torch and https://github.com/pytorch/vision/blob/master/torchvision/models/resnet.py (c) YANG, Wei ''' import torch.nn as nn import math import torch import numpy as np __all__ = ['resnet','resnet50']...
0
0
0
24,637
0
529
0
-22
340
1c293d539578de6f1ef7fcad8bd8b118b92f8704
824
py
Python
src/python/misc/serifxml_round_trip.py
BBN-E/text-open
c508f6caeaa51a43cdb0bc27d8ed77e5750fdda9
[ "Apache-2.0" ]
2
2022-03-24T14:37:51.000Z
2022-03-24T19:56:45.000Z
src/python/misc/serifxml_round_trip.py
BBN-E/text-open
c508f6caeaa51a43cdb0bc27d8ed77e5750fdda9
[ "Apache-2.0" ]
null
null
null
src/python/misc/serifxml_round_trip.py
BBN-E/text-open
c508f6caeaa51a43cdb0bc27d8ed77e5750fdda9
[ "Apache-2.0" ]
null
null
null
# Read in serifxml then save it an make sure the files are # essentially identical import sys, os script_dir = os.path.dirname(os.path.realpath(__file__)) sys.path.append(os.path.join(script_dir, "..")) import serifxml3 if len(sys.argv) != 3: print("Usage: " + sys.argv[0] + " input-serifxml-file output-serifxml-...
21.684211
80
0.713592
# Read in serifxml then save it an make sure the files are # essentially identical import sys, os script_dir = os.path.dirname(os.path.realpath(__file__)) sys.path.append(os.path.join(script_dir, "..")) import serifxml3 if len(sys.argv) != 3: print("Usage: " + sys.argv[0] + " input-serifxml-file output-serifxml-...
0
0
0
0
0
0
0
0
0
8ae9ce3f0d275395b8f614a561a53d141570dcb2
707
py
Python
SeRe/tools/data_pre/filename2txt.py
Anny-Anny/SeRe
2483269c5b5b36673b8893bb026689d731226cb8
[ "MIT" ]
null
null
null
SeRe/tools/data_pre/filename2txt.py
Anny-Anny/SeRe
2483269c5b5b36673b8893bb026689d731226cb8
[ "MIT" ]
null
null
null
SeRe/tools/data_pre/filename2txt.py
Anny-Anny/SeRe
2483269c5b5b36673b8893bb026689d731226cb8
[ "MIT" ]
null
null
null
ROOT = '/home/xjw/Downloads/code/mmsegmentation-0.21.0/' def txt2filename(txt_path): """ @param txt_path: @return: """ data = [] with open(txt_path, 'r') as f: for ch in f.readlines(): data.append(ch.strip()) return data if __name__ == '__main__': filename2txt...
23.566667
98
0.592645
import os ROOT = '/home/xjw/Downloads/code/mmsegmentation-0.21.0/' def filename2txt(filepath, txt_path): with open(txt_path, 'w+') as f: for root, dirs, files in os.walk(filepath): for name in files: f.write(name.split(".")[0] + '\n') f.close() def txt2filename(txt_path)...
48
0
0
0
0
200
0
-12
45
e38cea4dfc6f41ac44fabb67e89d4f818b54bb37
1,013
py
Python
Python/Multiflex_set_binary_mode.py
Terabee/sample_codes
a58676f5e7fec1dfcacc5269515b3ef069b01ec7
[ "MIT" ]
13
2019-06-24T05:34:08.000Z
2022-01-16T08:37:37.000Z
Python/Multiflex_set_binary_mode.py
Terabee/sample_codes
a58676f5e7fec1dfcacc5269515b3ef069b01ec7
[ "MIT" ]
8
2019-08-28T17:30:23.000Z
2021-10-01T17:07:23.000Z
Python/Multiflex_set_binary_mode.py
Terabee/sample_codes
a58676f5e7fec1dfcacc5269515b3ef069b01ec7
[ "MIT" ]
10
2019-04-30T20:19:41.000Z
2021-02-10T19:32:39.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Example TeraRanger MultiFlex configuration script. For more information about how to use this script, please refer to this document: https://www.terabee.com/wp-content/uploads/2017/09/TR-MF-Python-ReadMe.pdf """ import sys import binascii import serial if __name__ ==...
26.657895
81
0.642646
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Example TeraRanger MultiFlex configuration script. For more information about how to use this script, please refer to this document: https://www.terabee.com/wp-content/uploads/2017/09/TR-MF-Python-ReadMe.pdf """ import sys import binascii import serial if __name__ ==...
0
0
0
0
0
0
0
0
0
aecbe0d40235ca0fe8d7b8b6e024663d65c7ef43
1,236
py
Python
homepage/migrations/0007_userprofile_follows.py
Andre-Azu/instagramclone
94906c7d2f88c24c156b19a96ab0edf619c67277
[ "Unlicense" ]
null
null
null
homepage/migrations/0007_userprofile_follows.py
Andre-Azu/instagramclone
94906c7d2f88c24c156b19a96ab0edf619c67277
[ "Unlicense" ]
null
null
null
homepage/migrations/0007_userprofile_follows.py
Andre-Azu/instagramclone
94906c7d2f88c24c156b19a96ab0edf619c67277
[ "Unlicense" ]
null
null
null
# Generated by Django 4.0 on 2021-12-15 07:28
38.625
146
0.615696
# Generated by Django 4.0 on 2021-12-15 07:28 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('homepage', '0006_image_comments_image_likes'), ] operations = [ migrations.CreateModel( name='Use...
0
0
0
1,091
0
0
0
30
68
5cbfbd355f1a6d92f9d29c7c9a4593dc242bdb15
5,347
py
Python
gateapi-python/gate_api/models/options_underlying_ticker.py
jarenmt/IEOPUMP
220f7f612d299f7305e82fe6c33661e6871f2d86
[ "MIT" ]
null
null
null
gateapi-python/gate_api/models/options_underlying_ticker.py
jarenmt/IEOPUMP
220f7f612d299f7305e82fe6c33661e6871f2d86
[ "MIT" ]
null
null
null
gateapi-python/gate_api/models/options_underlying_ticker.py
jarenmt/IEOPUMP
220f7f612d299f7305e82fe6c33661e6871f2d86
[ "MIT" ]
null
null
null
# coding: utf-8 """ Gate API v4 Welcome to Gate.io API APIv4 provides spot, margin and futures trading operations. There are public APIs to retrieve the real-time market statistics, and private APIs which needs authentication to trade on user's behalf. # noqa: E501 Contact: support@mail.gate.io Gen...
31.452941
239
0.616607
# coding: utf-8 """ Gate API v4 Welcome to Gate.io API APIv4 provides spot, margin and futures trading operations. There are public APIs to retrieve the real-time market statistics, and private APIs which needs authentication to trade on user's behalf. # noqa: E501 Contact: support@mail.gate.io Gen...
0
1,825
0
3,030
0
0
0
-4
128
f5b61b7592684510eb43bc9ae6e4136074f3f566
577
py
Python
accounts/admin.py
GermanMtzmx/mailtest
9ec3f51344e6968698f8313ef987fca4d2907cdf
[ "Xnet", "X11" ]
null
null
null
accounts/admin.py
GermanMtzmx/mailtest
9ec3f51344e6968698f8313ef987fca4d2907cdf
[ "Xnet", "X11" ]
null
null
null
accounts/admin.py
GermanMtzmx/mailtest
9ec3f51344e6968698f8313ef987fca4d2907cdf
[ "Xnet", "X11" ]
null
null
null
#admin.site.register(User, UserAdmin) #admin.site.register(SocialToken, SocialTokenAdmin)
19.896552
51
0.637782
from django.contrib import admin class UserAdmin(admin.ModelAdmin): """User admin""" exclude = ('renewed',) list_display = ('username', 'email', 'isActive', 'created', 'modified') list_filter = ('isActive',) search_fields = ('firstName', 'lastName', 'username', 'email') class...
0
0
0
402
0
0
0
11
68
13568121b4814c3d81c59418c50fdd6901e9fb77
379
py
Python
exercises/exercise26.py
djangojeng-e/TIL
bdbe1dfb6ebc48b89067fddda195227cca64b8dc
[ "MIT" ]
null
null
null
exercises/exercise26.py
djangojeng-e/TIL
bdbe1dfb6ebc48b89067fddda195227cca64b8dc
[ "MIT" ]
null
null
null
exercises/exercise26.py
djangojeng-e/TIL
bdbe1dfb6ebc48b89067fddda195227cca64b8dc
[ "MIT" ]
null
null
null
birthday_dictionary = { "Albert Einstein" : "1/12/1912", "Jeong Eun Kim" : "21/12/1983", "Djangojeng-e" : "18/12/1986", "Django": "01/01/2005" } name = input("Who's Birthday do you want to look up?") if name in birthday_dictionary: print(f'{name}s birthday is {birthday_dictionary[name]}') else...
21.055556
62
0.630607
birthday_dictionary = { "Albert Einstein" : "1/12/1912", "Jeong Eun Kim" : "21/12/1983", "Djangojeng-e" : "18/12/1986", "Django": "01/01/2005" } name = input("Who's Birthday do you want to look up?") if name in birthday_dictionary: print(f'{name}s birthday is {birthday_dictionary[name]}') else...
0
0
0
0
0
0
0
0
0
49d3502c205ec9a70b70b5cd9b2d3a0fa593abcc
1,621
py
Python
Dice Rolling Simulator/dice_game.py
Hongyanlee0614/Cool-Python-Projects
4e35822b696674221636ede1b86acc0793305c18
[ "MIT" ]
null
null
null
Dice Rolling Simulator/dice_game.py
Hongyanlee0614/Cool-Python-Projects
4e35822b696674221636ede1b86acc0793305c18
[ "MIT" ]
null
null
null
Dice Rolling Simulator/dice_game.py
Hongyanlee0614/Cool-Python-Projects
4e35822b696674221636ede1b86acc0793305c18
[ "MIT" ]
null
null
null
import tkinter # for GUI from PIL import Image, ImageTk # operation regarding image import random # toplevel widget which represents the main window of an application root = tkinter.Tk() root.geometry('400x400') root.title('Data Flair Roll the Dice') # Adding label into the frame. Here we skip a line l0 =...
30.018519
80
0.687847
import tkinter # for GUI from PIL import Image, ImageTk # operation regarding image import random # toplevel widget which represents the main window of an application root = tkinter.Tk() root.geometry('400x400') root.title('Data Flair Roll the Dice') # Adding label into the frame. Here we skip a line l0 =...
0
0
0
0
0
171
0
0
25
e1bc973a11687fa3e830c8942a5ed3120eac2208
197
py
Python
fetch_gitignore/__init__.py
clickyotomy/git-fetch-gitignore
f534abf491f15ac85540fcb6ff5c6a9837c9b14e
[ "MIT" ]
3
2016-09-16T12:19:36.000Z
2019-08-08T20:24:57.000Z
fetch_gitignore/__init__.py
clickyotomy/git-fetch-gitignore
f534abf491f15ac85540fcb6ff5c6a9837c9b14e
[ "MIT" ]
null
null
null
fetch_gitignore/__init__.py
clickyotomy/git-fetch-gitignore
f534abf491f15ac85540fcb6ff5c6a9837c9b14e
[ "MIT" ]
null
null
null
#! /usr/bin/env python2.7 ''' __init__ file for fetch_gitignore. ''' __author__ = "Srinidhi Kaushik" __license__ = "MIT" __version__ = "0.0.1" __email__ = "clickyotomy@users.noreply.github.com"
16.416667
50
0.715736
#! /usr/bin/env python2.7 ''' __init__ file for fetch_gitignore. ''' __author__ = "Srinidhi Kaushik" __license__ = "MIT" __version__ = "0.0.1" __email__ = "clickyotomy@users.noreply.github.com"
0
0
0
0
0
0
0
0
0
2a4e2a2f19d2573e61fe39bb7dc94a42dc9ed626
3,030
py
Python
lista07_listaEncadeada/pylista07_questao06.py
mayararysia/ESTD
65aa8816aa8773066201cb410b02c1cb72ad5611
[ "MIT" ]
null
null
null
lista07_listaEncadeada/pylista07_questao06.py
mayararysia/ESTD
65aa8816aa8773066201cb410b02c1cb72ad5611
[ "MIT" ]
null
null
null
lista07_listaEncadeada/pylista07_questao06.py
mayararysia/ESTD
65aa8816aa8773066201cb410b02c1cb72ad5611
[ "MIT" ]
null
null
null
""" 06. Escreva um mtodo show() para escrever toda a lista. Exemplo: lista = ListaOrdenada(); lista.append(3); lista.append(2); lista.show() imprime: [2,3] """ #Implementao da Classe Noh #Lista no ordenada: if __name__ == '__main__': minha_lista = ListaOrdenada() #exemplo de uso print(minha_lista.isEmpty()) mi...
23.129771
86
0.593729
""" 06. Escreva um método show() para escrever toda a lista. Exemplo: lista = ListaOrdenada(); lista.append(3); lista.append(2); lista.show() imprime: [2,3] """ #Implementação da Classe Noh class Noh: def __init__(self,valor_inicial): self._dados = valor_inicial self._proximo = None def getData(self): ...
8
0
0
2,496
0
0
0
0
44
b2524167a78952f075171b4993c8cca048abf2dd
901
py
Python
experiment/hyper-params-search/hps/common/Common.py
GyunHyukLee/GoldMine
93d765934cd8c4e152f12dc1a9677bd77ea64f28
[ "Apache-2.0" ]
13
2020-06-01T06:31:01.000Z
2021-03-08T04:57:01.000Z
experiment/hyper-params-search/hps/common/Common.py
GyunHyukLee/GoldMine
93d765934cd8c4e152f12dc1a9677bd77ea64f28
[ "Apache-2.0" ]
1
2020-10-13T08:56:38.000Z
2020-10-13T08:56:38.000Z
experiment/hyper-params-search/hps/common/Common.py
GyunHyukLee/GoldMine
93d765934cd8c4e152f12dc1a9677bd77ea64f28
[ "Apache-2.0" ]
7
2020-06-03T01:46:22.000Z
2021-03-08T04:57:04.000Z
# -*- coding: utf-8 -*- # Author : Jin Kim # e-mail : jinkim@seculayer.com # Powered by Seculayer 2020 Solution Development 2 Team, R&D Center. # class : Common
32.178571
93
0.7303
# -*- coding: utf-8 -*- # Author : Jin Kim # e-mail : jinkim@seculayer.com # Powered by Seculayer © 2020 Solution Development 2 Team, R&D Center. import os from hps.common.Constants import Constants from hps.utils.Singleton import Singleton from hps.utils.MPLogger import MPLogger from hps.utils.CommonUtils import Co...
2
0
0
531
0
0
0
71
134
57d9b30c8c5f267a7385f0b7589bbb8355313743
2,306
py
Python
posto/webhook/auth.py
tefra/posto
95cc39348f0c59339d9b7038d8640510849a2805
[ "MIT" ]
null
null
null
posto/webhook/auth.py
tefra/posto
95cc39348f0c59339d9b7038d8640510849a2805
[ "MIT" ]
1
2022-01-27T09:37:28.000Z
2022-01-27T09:40:50.000Z
posto/webhook/auth.py
tefra/posto
95cc39348f0c59339d9b7038d8640510849a2805
[ "MIT" ]
null
null
null
import hmac from typing import Callable from typing import Optional from flask import current_app from flask import request from werkzeug.exceptions import ServiceUnavailable def authorize_source() -> Callable: """Detect the source from the headers and authenticate by the config secret.""" return decorat...
25.622222
80
0.645707
import functools import hmac from typing import Any from typing import Callable from typing import Optional from flask import abort from flask import current_app from flask import request from werkzeug.exceptions import ServiceUnavailable def authorize_source() -> Callable: """Detect the source from the headers ...
0
419
0
0
0
73
0
-2
94
e509428d899feeca516dab5cb1e43ec7ec393808
15,280
py
Python
python/pysvso/optimizers/icp.py
mfkiwl/SEMANTIC_VISUAL_SUPPORTED_ODEMETRY
2249bf358f51b337eb52a347ea7d46bff0654576
[ "Apache-2.0" ]
191
2020-07-01T11:57:17.000Z
2022-03-23T12:40:43.000Z
python/pysvso/optimizers/icp.py
mfkiwl/SEMANTIC_VISUAL_SUPPORTED_ODEMETRY
2249bf358f51b337eb52a347ea7d46bff0654576
[ "Apache-2.0" ]
10
2020-07-06T12:41:51.000Z
2022-02-09T23:43:11.000Z
python/pysvso/optimizers/icp.py
mfkiwl/SEMANTIC_VISUAL_SUPPORTED_ODEMETRY
2249bf358f51b337eb52a347ea7d46bff0654576
[ "Apache-2.0" ]
45
2020-07-01T13:31:20.000Z
2022-02-03T07:21:42.000Z
import numpy as np # when point cloud is parse # see FLANN manual https://www.cs.ubc.ca/research/flann/uploads/FLANN/flann_manual-1.8.4.pdf # remember to run 2to3 upon root of the source when you complete downloading the codes! # used to build computation graph with import tensorflow.compat.v1 as tf tf.disable_v2_beh...
30.499002
142
0.532199
import numpy as np from enum import Enum from pysvso.lib.maths.rotation import Euler, Quaternion, rotation_matrix, dRx, dRy, dRz from scipy.optimize import fmin_bfgs from scipy.optimize import fmin from scipy.optimize import minimize from scipy.optimize import approx_fprime # when point cloud is parse from sklearn.nei...
3
0
0
14,065
0
0
0
146
312
7f93836e41dc7de37d20c9086ad3bdf24f6efdd0
938
py
Python
train.py
tfandkusu/food101-tflite
be09912a8b7c398a348eb86a1b216356e56cbe13
[ "Apache-2.0" ]
7
2019-05-12T22:44:37.000Z
2021-06-07T08:29:58.000Z
train.py
tfkeras/food101-tflite
be09912a8b7c398a348eb86a1b216356e56cbe13
[ "Apache-2.0" ]
null
null
null
train.py
tfkeras/food101-tflite
be09912a8b7c398a348eb86a1b216356e56cbe13
[ "Apache-2.0" ]
3
2019-06-04T12:08:43.000Z
2020-04-23T18:09:29.000Z
import tensorflow as tf import model import data # g = data.Data() # GPU config = tf.ConfigProto() config.gpu_options.allow_growth = True sess = tf.Session(config=config) tf.keras.backend.set_session(sess) # model = model.make(tflite=False) # optimizer = tf.keras.optimizers.Adam(lr=0.001) model.compile(optimizer=op...
26.8
66
0.749467
import tensorflow as tf import model import data # 訓練データ作成担当 g = data.Data() # GPUをすべて使わないオプション config = tf.ConfigProto() config.gpu_options.allow_growth = True sess = tf.Session(config=config) tf.keras.backend.set_session(sess) # モデルを作成 model = model.make(tflite=False) # 最適化を定義 optimizer = tf.keras.optimizers.Adam(lr...
210
0
0
113
0
0
0
0
22
511eaa58ab745f5d34d4945e2abfe854d6b5c2c5
1,305
py
Python
tools/ui2py.py
BYUCamachoLab/autogator
464d43d797c58a03263527bb7fdc737adb045c75
[ "MIT" ]
null
null
null
tools/ui2py.py
BYUCamachoLab/autogator
464d43d797c58a03263527bb7fdc737adb045c75
[ "MIT" ]
2
2021-05-04T15:46:46.000Z
2022-02-14T19:18:38.000Z
tools/ui2py.py
BYUCamachoLab/autogator
464d43d797c58a03263527bb7fdc737adb045c75
[ "MIT" ]
2
2019-09-09T20:33:02.000Z
2019-09-25T21:44:46.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- # # Copyright Autogator Project Contributors # Licensed under the terms of the MIT License # (see autogator/__init__.py for details) """ Tool that converts all .ui and .qrc files in the autogator.resources folder to python files in autogator.compiled. Usage: $ python3 u...
31.071429
85
0.616092
#! /usr/bin/env python # -*- coding: utf-8 -*- # # Copyright © Autogator Project Contributors # Licensed under the terms of the MIT License # (see autogator/__init__.py for details) """ Tool that converts all .ui and .qrc files in the autogator.resources folder to python files in autogator.compiled. Usage: $ python3 ...
2
0
0
0
0
0
0
-11
23
ae43fe8255d01b1bdd638bd84beb9976436c8118
1,117
py
Python
Resize.py
PENGsBIT/PIL-demo
36181d79ca6ab9fe177d734ab20ec093a9ba2246
[ "Apache-2.0" ]
null
null
null
Resize.py
PENGsBIT/PIL-demo
36181d79ca6ab9fe177d734ab20ec093a9ba2246
[ "Apache-2.0" ]
null
null
null
Resize.py
PENGsBIT/PIL-demo
36181d79ca6ab9fe177d734ab20ec093a9ba2246
[ "Apache-2.0" ]
null
null
null
# -*-coding:utf-8-*-
32.852941
97
0.617726
# -*-coding:utf-8-*- import numpy as np from PIL import Image from scipy import misc def resize(img): # img = Image.open(cirFileName) # w, h = img.size # # 去掉浮点,防报错 # w, h = round(w * 0.2), round(h * 0.2) img = img.resize((200, 200), Image.ANTIALIAS).convert("RGBA") return img def getResultA...
24
0
0
0
0
976
0
-2
112
f179ba977ded22d79e6b5ab337596e7134fe8e7c
2,023
py
Python
.ipynb_checkpoints/settings-checkpoint.py
dbbabcock/data_690_ai_the_toy_show
97614cdaa1d7204abd1c30b5463976578be6a67d
[ "MIT" ]
null
null
null
.ipynb_checkpoints/settings-checkpoint.py
dbbabcock/data_690_ai_the_toy_show
97614cdaa1d7204abd1c30b5463976578be6a67d
[ "MIT" ]
null
null
null
.ipynb_checkpoints/settings-checkpoint.py
dbbabcock/data_690_ai_the_toy_show
97614cdaa1d7204abd1c30b5463976578be6a67d
[ "MIT" ]
null
null
null
import torch import torchvision def load_stored_resnet_model(categories, file_path): '''Adapted from NVIDIA DLI Course Code: Getting Started with AI on Jetson Nano''' print("Loading stored classification model...") # If we're on the Jetson Nano use cuda, otherwise cpu: device = torch.device("cuda:0...
38.169811
92
0.638655
from datetime import datetime import torch import torchvision def __init__(): global toy_list, model_file_path, model, response_dict, computer_name, categories toy_list = ['Minnie Mouse', 'Tigger', 'Horse', 'White Bear', 'Flamingo', 'Tiger Puppet', 'Elephant Puppet', 'Oriole', 'Black ...
0
0
0
0
0
1,243
0
8
72
bfb54c2d2ea587f2eea3dd14e9aabadd7e86ef91
550
py
Python
utea_web/moduli/migrations/0009_auto_20181003_1248.py
arol-varesi/utea_web
36b04656b93b123d3805d25ee4e61c6ae68252ed
[ "MIT" ]
null
null
null
utea_web/moduli/migrations/0009_auto_20181003_1248.py
arol-varesi/utea_web
36b04656b93b123d3805d25ee4e61c6ae68252ed
[ "MIT" ]
null
null
null
utea_web/moduli/migrations/0009_auto_20181003_1248.py
arol-varesi/utea_web
36b04656b93b123d3805d25ee4e61c6ae68252ed
[ "MIT" ]
1
2021-10-02T11:45:34.000Z
2021-10-02T11:45:34.000Z
# Generated by Django 2.1.1 on 2018-10-03 10:48
22.916667
50
0.581818
# Generated by Django 2.1.1 on 2018-10-03 10:48 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('moduli', '0008_auto_20181002_2154'), ] operations = [ migrations.AlterField( model_name='sigla', name='descrizione',...
0
0
0
436
0
0
0
19
46
9f9d45af4cae398c88e5f196080679db57c797e3
540
py
Python
venv/lib/python3.8/site-packages/zif.py
Jn-mic/Projects-Portfolio
642b9e58b81e8d505cc7462370e80fbab2945fd9
[ "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/zif.py
Jn-mic/Projects-Portfolio
642b9e58b81e8d505cc7462370e80fbab2945fd9
[ "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/zif.py
Jn-mic/Projects-Portfolio
642b9e58b81e8d505cc7462370e80fbab2945fd9
[ "MIT" ]
null
null
null
import zipfile # # # file=zipfile.ZipFile('text.zip','w')#text.zip w # file.write("class.py")# # file.close() # # file=zipfile.ZipFile('text.zip','r')# # file.extractall(path="../")# # fileobj=open("pwd.txt","r")#txt for item in fileobj.readlines(): print(item.strip())#strip() newpwd=item.str...
25.714286
59
0.631481
import zipfile # #压缩 # file=zipfile.ZipFile('text.zip','w')#text.zip创建压缩包文件名 w读 # file.write("class.py")#压缩的文件名 # file.close() #解压缩 # file=zipfile.ZipFile('text.zip','r')#写 # file.extractall(path="../")#写到哪个路径下 创建到卓面 默认是在跟慕入下面 #暴力破解加密的压缩包 fileobj=open("pwd.txt","r")#新建一个txt文件 for item in fileobj.readline...
195
0
0
0
0
0
0
0
0
c8c11a61c01891c5110af5047097e53b2754d5ff
2,155
py
Python
feature_extraction/measurements/granularity.py
widoptimization-willett/feature-extraction
25e963e3383673aad6aedfd504e69a1df7f47f9a
[ "Apache-2.0" ]
null
null
null
feature_extraction/measurements/granularity.py
widoptimization-willett/feature-extraction
25e963e3383673aad6aedfd504e69a1df7f47f9a
[ "Apache-2.0" ]
null
null
null
feature_extraction/measurements/granularity.py
widoptimization-willett/feature-extraction
25e963e3383673aad6aedfd504e69a1df7f47f9a
[ "Apache-2.0" ]
null
null
null
# coding=utf-8
34.758065
117
0.706729
# coding=utf-8 import numpy as np import skimage import skimage.morphology as morph from . import Measurement from ..util.cleanup import cell_aoi_and_clip class Granularity(Measurement): default_options = { 'subsampling': 2, # 2x downsampling 'element_size': 20, 'spectrum_length': 16, # standard stuff '...
3
0
0
1,974
0
0
0
30
135
67995b2f86c3ae2b6a09815a02f81e478aa1eb27
12,847
py
Python
virtnet_conf.py
gizmoguy/faucet-gui
0055b29be284dfcc68e36f3f0f864c99c062376c
[ "Apache-2.0" ]
16
2018-08-31T02:17:55.000Z
2021-12-27T06:43:51.000Z
virtnet_conf.py
urantialife/faucet-gui
f9741a8c47da6fc6fb1a508c794e04bcb69cfef6
[ "Apache-2.0" ]
2
2018-08-31T04:02:09.000Z
2021-06-04T13:27:48.000Z
virtnet_conf.py
urantialife/faucet-gui
f9741a8c47da6fc6fb1a508c794e04bcb69cfef6
[ "Apache-2.0" ]
9
2019-01-06T17:58:48.000Z
2021-12-28T17:59:55.000Z
""" PROGRAM_NAME: virtnet_creator FILE_NAME: conf.py AUTHOR: Brendan Geoghegan PROGRAM_DESCRIPTION: This program is a GUI application for users to build or load network topologies that have a SDN controller at their center. The original code tied into a Xen loadout used to clone, startup, and operate VMs, but this ...
49.794574
120
0.592745
""" PROGRAM_NAME: virtnet_creator FILE_NAME: conf.py AUTHOR: Brendan Geoghegan PROGRAM_DESCRIPTION: This program is a GUI application for users to build or load network topologies that have a SDN controller at their center. The original code tied into a Xen loadout used to clone, startup, and operate VMs, but this ...
0
0
0
12,017
0
0
0
0
23
9630077f65b7d28eba7099895195d4d403635301
339
py
Python
StoryMap/apps/users/admin.py
LittleBai0606/StoryMap
1169e763031f92ee6da65829fa9cbce1ebd991ad
[ "MIT" ]
1
2021-11-01T05:58:25.000Z
2021-11-01T05:58:25.000Z
StoryMap/apps/users/admin.py
LittleBai0606/StoryMap
1169e763031f92ee6da65829fa9cbce1ebd991ad
[ "MIT" ]
null
null
null
StoryMap/apps/users/admin.py
LittleBai0606/StoryMap
1169e763031f92ee6da65829fa9cbce1ebd991ad
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import UserProfile # Register your models here. admin.site.register(UserProfile, UserProfileAdmin)
24.214286
92
0.722714
from django.contrib import admin from .models import UserProfile # Register your models here. class UserProfileAdmin(admin.ModelAdmin): fields = ['username', 'password', 'email', 'nickname', 'gender', 'birthday', 'avatar', ] list_display = ['username', 'email', 'nickname'] admin.site.register(UserProfile,...
0
0
0
168
0
0
0
0
23
df7a5da0ce6a0c9361b27bfdc4e070c0fb9fba67
2,013
py
Python
turn_classification/turn_classification.py
team8/outdoor-blind-navigation
78b99fe1a193161c4b809990c71940fbed719785
[ "MIT" ]
6
2021-05-18T16:46:04.000Z
2022-01-08T02:49:27.000Z
turn_classification/turn_classification.py
aoberai/outdoor-blind-navigation
78b99fe1a193161c4b809990c71940fbed719785
[ "MIT" ]
15
2021-05-19T23:40:50.000Z
2021-07-06T08:24:40.000Z
turn_classification/turn_classification.py
aoberai/outdoor-blind-navigation
78b99fe1a193161c4b809990c71940fbed719785
[ "MIT" ]
4
2021-05-26T02:10:43.000Z
2021-09-04T17:59:51.000Z
labels = ['Left Turn', 'No Turn', 'Right Turn'] model_path = "./turn_classification/turn_classification_model_final_v1.h5" readings_buffer_size = 20 image_preprocessing_dimens = (100, 100) detection_threshold = 0.5
38.711538
141
0.694983
import cv2 import threading import tensorflow as tf import numpy as np import time import capturer from utils.circularBuffer import CircularBuffer labels = ['Left Turn', 'No Turn', 'Right Turn'] model_path = "./turn_classification/turn_classification_model_final_v1.h5" readings_buffer_size = 20 image_preprocessing_dim...
0
0
0
1,627
0
0
0
-7
177
8a3a89d4511059d142d7dd9786e728c20d3522fe
8,071
py
Python
ardana_service/admin.py
ArdanaCLM/ardana-service
680099101de36fce893ef6d138b75d778f92f182
[ "Apache-2.0" ]
1
2017-07-20T01:04:21.000Z
2017-07-20T01:04:21.000Z
ardana_service/admin.py
GarySmith/ardana-service
680099101de36fce893ef6d138b75d778f92f182
[ "Apache-2.0" ]
null
null
null
ardana_service/admin.py
GarySmith/ardana-service
680099101de36fce893ef6d138b75d778f92f182
[ "Apache-2.0" ]
2
2017-08-02T17:18:47.000Z
2019-10-11T23:48:58.000Z
# (c) Copyright 2017-2019 SUSE LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
26.813953
79
0.638087
# (c) Copyright 2017-2019 SUSE LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
0
3,766
0
0
0
173
0
-34
406
3a3491b43a5a2b9285bd18407b12c00d9f4f6e46
8,549
py
Python
src/generate.py
josephnavarro/ascii-art-generator
9317aaff92b58ab68a9598fdb89c95699bea4927
[ "MIT" ]
null
null
null
src/generate.py
josephnavarro/ascii-art-generator
9317aaff92b58ab68a9598fdb89c95699bea4927
[ "MIT" ]
null
null
null
src/generate.py
josephnavarro/ascii-art-generator
9317aaff92b58ab68a9598fdb89c95699bea4927
[ "MIT" ]
null
null
null
#! usr/bin/env python3 """ : : Utility for generating ASCII art given an input image. : : """ UPPER = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" LOWER = "abcdefghijklmnopqrstuvwxyz" DIGIT = "0123456789" SYMBOL = "~!@#$%^&*()_+`-=[]{}|\\:;\"'<>?,./" #CHARACTERS = UPPER + LOWER + DIGIT + SYMBOL CHARACTERS ...
30.208481
118
0.601474
#! usr/bin/env python3 """ : : Utility for generating ASCII art given an input image. : : """ from src.ascii import * from src.luminosity import * UPPER = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" LOWER = "abcdefghijklmnopqrstuvwxyz" DIGIT = "0123456789" SYMBOL = "~!@#$%^&*()_+`-=[]{}|\\:;\"'<>?,./" ...
0
0
0
0
0
0
0
14
44
8feb772e81d2e7de2f57a541d565f8376b286c08
11,234
py
Python
app/admin.py
sedrof/not-phs
8f4031e220a7690c5304cebe310e3ef14d8e7424
[ "MIT" ]
null
null
null
app/admin.py
sedrof/not-phs
8f4031e220a7690c5304cebe310e3ef14d8e7424
[ "MIT" ]
null
null
null
app/admin.py
sedrof/not-phs
8f4031e220a7690c5304cebe310e3ef14d8e7424
[ "MIT" ]
null
null
null
from django.contrib import admin from django.contrib.auth.models import Group admin.site.unregister(Group) # Register the new Group ModelAdmin. admin.site.register(Group, GroupAdmin) admin.site.site_header = 'CRA Calculator' admin.site.index_title = 'CRA Calculator' admin.site.site_title = 'CRA Calculator' ...
32.847953
129
0.60673
from import_export.admin import ImportExportModelAdmin, ExportMixin from django.contrib import admin from master_data.models import * from centrelink.models import * from calculator.models import * from imports.models import * from django.utils.safestring import mark_safe from json2html import * from django.contrib.aut...
0
1,296
0
8,696
0
0
0
173
610
951b82e5411a16957eaeb5663362a43cd0c01672
1,555
py
Python
src/data/parse.py
samatix/ml-asset-managers
27c9c0b3f67fd0350e80c5fb2729e64a13dccbb8
[ "Apache-2.0" ]
2
2022-01-01T11:06:22.000Z
2022-02-19T03:19:18.000Z
src/data/parse.py
samatix/ml-asset-managers
27c9c0b3f67fd0350e80c5fb2729e64a13dccbb8
[ "Apache-2.0" ]
null
null
null
src/data/parse.py
samatix/ml-asset-managers
27c9c0b3f67fd0350e80c5fb2729e64a13dccbb8
[ "Apache-2.0" ]
2
2020-08-15T05:38:49.000Z
2022-03-05T07:31:11.000Z
# Copyright 2020 Ayoub ENNASSIRI # # 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 writi...
31.1
74
0.579421
# Copyright 2020 Ayoub ENNASSIRI # # 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 writi...
0
0
0
837
0
0
0
3
135
059cf7be37e442771a2a7e9542192e55afa38fe8
675
py
Python
pytup2019/bowler_queries/remove_debugger.py
lensvol/pytup2019
9fe2413a7fcb5e4a4631c42400daeebc2176fce1
[ "MIT" ]
1
2020-03-14T15:16:55.000Z
2020-03-14T15:16:55.000Z
pytup2019/bowler_queries/remove_debugger.py
lensvol/pytup2019
9fe2413a7fcb5e4a4631c42400daeebc2176fce1
[ "MIT" ]
null
null
null
pytup2019/bowler_queries/remove_debugger.py
lensvol/pytup2019
9fe2413a7fcb5e4a4631c42400daeebc2176fce1
[ "MIT" ]
null
null
null
#!/usr/bin/env python PATTERN = """ power < "ipdb" trailer < '.' 'set_trace' > trailer < '(' ')' > > | power < "breakpoint" trailer < "(" ")" > > """
22.5
87
0.62963
#!/usr/bin/env python import sys from bowler import Query, Filename, Capture, LN PATTERN = """ power < "ipdb" trailer < '.' 'set_trace' > trailer < '(' ')' > > | power < "breakpoint" trailer < "(" ")" > > """ def remove_debugger_statements(node: LN, capture: Capture, filename: Filename): parent_index...
0
0
0
0
0
405
0
15
92
d036b24263c3c6126474bf42a609edea5fe3d39d
1,679
py
Python
Web/testyummly.py
magmastonealex/InTheFridge
95b2e7127f259bd57afceb5759914621c6ab3e5b
[ "Apache-2.0" ]
1
2015-04-20T01:25:25.000Z
2015-04-20T01:25:25.000Z
Web/testyummly.py
magmapus/InTheFridge
95b2e7127f259bd57afceb5759914621c6ab3e5b
[ "Apache-2.0" ]
null
null
null
Web/testyummly.py
magmapus/InTheFridge
95b2e7127f259bd57afceb5759914621c6ab3e5b
[ "Apache-2.0" ]
null
null
null
import requests import urllib import json if __name__ == "__main__": y=Yummly() y.setup('d579507d','736c339e12b7a287c72c2de82313657e') ing=["fruit","milk"] print y.getAll(ing,"course^course-Beverages") y.getCourses() #todo
30.527273
152
0.645622
import requests import urllib import json class Yummly: s=requests.Session() base="http://api.yummly.com/v1/api/recipes" def setup(self,appid,appkey): self.s.headers.update({'X-Yummly-App-ID':appid,'X-Yummly-App-Key':appkey}) def qsearch(self,ing,course): pms=urllib.quote("allowedCourse[]")+"="+urllib.quote(cou...
0
0
0
1,429
0
0
0
0
22
b9544fa75fdfdd8216e4bbd3c9533a4f56740534
1,182
py
Python
data_storing/assets/tables/moving_average.py
marcellogoccia/deep-value-investing
4d45cc92c157246485b638d2052596a76975ec8a
[ "MIT" ]
null
null
null
data_storing/assets/tables/moving_average.py
marcellogoccia/deep-value-investing
4d45cc92c157246485b638d2052596a76975ec8a
[ "MIT" ]
null
null
null
data_storing/assets/tables/moving_average.py
marcellogoccia/deep-value-investing
4d45cc92c157246485b638d2052596a76975ec8a
[ "MIT" ]
null
null
null
from utilities.config import database table_name = database.name_table_moving_average
35.818182
103
0.725888
from utilities.config import database from utilities.common_methods import getDebugInfo from utilities import log from sqlalchemy import Column, ForeignKey from sqlalchemy.types import Integer, Float, Date, String from sqlalchemy.orm import relationship from data_storing.assets.base import Base table_name = database...
0
0
0
811
0
0
0
126
156
a96eca71d5759d02d2e44335fcb14f0c2dff7682
478
py
Python
src/exercise_one/scripts/data_processing.py
Ali-Elganzory/ARL-ROS
403c05d1332c3814ec7039b5ef733f708d845f8b
[ "MIT" ]
null
null
null
src/exercise_one/scripts/data_processing.py
Ali-Elganzory/ARL-ROS
403c05d1332c3814ec7039b5ef733f708d845f8b
[ "MIT" ]
null
null
null
src/exercise_one/scripts/data_processing.py
Ali-Elganzory/ARL-ROS
403c05d1332c3814ec7039b5ef733f708d845f8b
[ "MIT" ]
null
null
null
if __name__ == "__main__": data_processing()
22.761905
82
0.669456
import rospy from std_msgs.msg import String def process_clbk(raw_data: String): name, age, height = map(lambda x: x.split(": ")[1], raw_data.data.split(", ")) age = int(age) height = int(height) rospy.loginfo(f"\nname: {name}\nage: {age}\nheight: {height}") def data_processing(): rospy.init_nod...
0
0
0
0
0
333
0
1
90
2d0e162b87c63c828d5b570a15927ce895086357
14,969
py
Python
src/3_model/minlp/data_plots.py
akxen/rep-gep
ed470cd60ecba110e228ce54b8c471cb9cb0256d
[ "MIT" ]
null
null
null
src/3_model/minlp/data_plots.py
akxen/rep-gep
ed470cd60ecba110e228ce54b8c471cb9cb0256d
[ "MIT" ]
null
null
null
src/3_model/minlp/data_plots.py
akxen/rep-gep
ed470cd60ecba110e228ce54b8c471cb9cb0256d
[ "MIT" ]
null
null
null
"""Plot input traces to visualise data""" import os import sys import pandas as pd import matplotlib.pyplot as plt from matplotlib.ticker import MultipleLocator sys.path.append(os.path.join(os.path.dirname(__file__), 'utils')) from utils.data import ModelData def plot_coal_fuel_costs(): """Coal...
34.175799
121
0.636582
"""Plot input traces to visualise data""" import os import sys import pandas as pd import matplotlib.pyplot as plt from matplotlib.ticker import MultipleLocator sys.path.append(os.path.join(os.path.dirname(__file__), 'utils')) from utils.data import ModelData def plot_coal_fuel_costs(): """Coal...
0
0
0
0
0
0
0
0
0
98e8ef272f6ae099e91304a8f9b8a8b7b3ca7691
572
py
Python
app/mod_whatis/views.py
crtarsorg/glasomer.rs-v2
ac43e1ba30b80a4ba9ca67768680b6e79f1512f3
[ "CC0-1.0" ]
null
null
null
app/mod_whatis/views.py
crtarsorg/glasomer.rs-v2
ac43e1ba30b80a4ba9ca67768680b6e79f1512f3
[ "CC0-1.0" ]
54
2017-03-06T12:48:40.000Z
2017-04-20T08:33:09.000Z
app/mod_whatis/views.py
crtarsorg/glasomer.rs-v2
ac43e1ba30b80a4ba9ca67768680b6e79f1512f3
[ "CC0-1.0" ]
null
null
null
from flask import Blueprint mod_whatis = Blueprint('whatis', __name__, url_prefix='/sta-je-glasomer')
38.133333
108
0.758741
from flask import Blueprint, render_template from app import mongo_utils from bson import json_util import json mod_whatis = Blueprint('whatis', __name__, url_prefix='/sta-je-glasomer') @mod_whatis.route('/', methods=['GET']) def index(): year = "" project_enabled = mongo_utils.get_enabled_project() for pr...
0
363
0
0
0
0
0
18
89
629635c2446dffba0f7e84880658f4cf63855f95
1,388
py
Python
main-step-demo.py
cfalguiere/datalab-utils
cfa36030ce12efc8e4b5b7ad065ab59e763e0b78
[ "MIT" ]
null
null
null
main-step-demo.py
cfalguiere/datalab-utils
cfa36030ce12efc8e4b5b7ad065ab59e763e0b78
[ "MIT" ]
6
2018-03-13T10:52:45.000Z
2018-03-14T21:37:17.000Z
main-step-demo.py
cfalguiere/datalab-utils
cfa36030ce12efc8e4b5b7ad065ab59e763e0b78
[ "MIT" ]
null
null
null
#!/usr/bin/python #-*- coding: utf-8 -*- """Run Score Credit Habitat""" from __future__ import print_function import sys from easydatalab.common.app import AppContext from easydatalab.common.exceptions import ExecutionError def main(): """Main entry point for the script.""" cfgFile = 'easydatalab/tests/reso...
31.545455
77
0.627522
#!/usr/bin/python #-*- coding: utf-8 -*- """Run Score Credit Habitat""" from __future__ import print_function import sys import logging from easydatalab.common.app import AppContext from easydatalab.common.exceptions import ExecutionError def main(): """Main entry point for the script.""" cfgFile = 'easydat...
0
0
0
0
0
0
0
-7
22
2d0633efdab3a26a7e6897b19ca7b6bd561f2da7
697
py
Python
src/daemons/videod.py
schnema123/pydrive
287a9f83604470e6bd01d2a3d4f355559f8253d8
[ "MIT" ]
null
null
null
src/daemons/videod.py
schnema123/pydrive
287a9f83604470e6bd01d2a3d4f355559f8253d8
[ "MIT" ]
null
null
null
src/daemons/videod.py
schnema123/pydrive
287a9f83604470e6bd01d2a3d4f355559f8253d8
[ "MIT" ]
null
null
null
import socket # Send from replayd -> videod if __name__ == "__main__": """ context = zmq.Context() port = get_port("replayd") socket = create_sub_sock(context, port) """ videosocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) print("Connecting...") connected = False whil...
21.78125
67
0.637016
import socket import zmq from shared.daemon_ports import get_port from shared.messaging.sock import create_sub_sock # Send from replayd -> videod if __name__ == "__main__": """ context = zmq.Context() port = get_port("replayd") socket = create_sub_sock(context, port) """ videosocket = socke...
0
0
0
0
0
0
0
36
67
1dc5885e8b632bcad5a0b70c1b8d8c5702ffa110
1,820
py
Python
setup.py
bocadilloproject/bocadillo-cli
f11ec438504eb2edd3c4e8f5d2992e804b3da6b0
[ "MIT" ]
6
2019-04-17T17:07:46.000Z
2020-08-09T07:37:34.000Z
setup.py
bocadilloproject/bocadillo-cli
f11ec438504eb2edd3c4e8f5d2992e804b3da6b0
[ "MIT" ]
10
2019-04-17T21:27:46.000Z
2019-06-17T05:45:51.000Z
setup.py
bocadilloproject/bocadillo-cli
f11ec438504eb2edd3c4e8f5d2992e804b3da6b0
[ "MIT" ]
1
2019-05-12T17:32:45.000Z
2019-05-12T17:32:45.000Z
import os import setuptools description = "Standard development tooling for Bocadillo" with open("README.md", "r") as readme: long_description = readme.read() NAME = "bocadillo-cli" PACKAGE = "bocadillo_cli" GITHUB = "https://github.com/bocadilloproject/bocadillo-cli" CHANGELOG = f"{GITHUB}/blob/master/CHANGELOG...
33.090909
76
0.659341
import os import re import setuptools description = "Standard development tooling for Bocadillo" with open("README.md", "r") as readme: long_description = readme.read() NAME = "bocadillo-cli" PACKAGE = "bocadillo_cli" GITHUB = "https://github.com/bocadilloproject/bocadillo-cli" CHANGELOG = f"{GITHUB}/blob/master...
0
0
0
0
0
280
0
-12
45
dc155e623350a743adcb1fb509940559b7b8f2f2
1,396
py
Python
7_dynamic_programming/easy/knapsack_DP_easy.py
itsEmShoji/TCScurriculum
bd27c8c2b26032e9e6f92a50b40ec19d45301988
[ "MIT" ]
null
null
null
7_dynamic_programming/easy/knapsack_DP_easy.py
itsEmShoji/TCScurriculum
bd27c8c2b26032e9e6f92a50b40ec19d45301988
[ "MIT" ]
null
null
null
7_dynamic_programming/easy/knapsack_DP_easy.py
itsEmShoji/TCScurriculum
bd27c8c2b26032e9e6f92a50b40ec19d45301988
[ "MIT" ]
null
null
null
# TODO: imports # REQUIRES: num_items >= 0, capacity >= 0, # size of item_values >= num_items, # size of item_weights >= num_items, # item_values are all >= 0, item_weights are all >= 0 # EFFECTS: Computes the max value that can be obtained by picking # from a set of num_items items without exceed...
34.04878
81
0.657593
# TODO: imports # REQUIRES: num_items >= 0, capacity >= 0, # size of item_values >= num_items, # size of item_weights >= num_items, # item_values are all >= 0, item_weights are all >= 0 # EFFECTS: Computes the max value that can be obtained by picking # from a set of num_items items without exceed...
0
0
0
117
0
137
0
0
46
a0127677f968c02630c0e8876bdfc54172dc9051
4,858
py
Python
EDMScripts/OldScripts/SimpleEDMLoop.py
gautampk/EDMSuite
e7b67336b45e679d7903d527f6d81080c6846166
[ "MIT" ]
6
2017-02-02T17:54:23.000Z
2021-07-03T12:41:36.000Z
EDMScripts/OldScripts/SimpleEDMLoop.py
gautampk/EDMSuite
e7b67336b45e679d7903d527f6d81080c6846166
[ "MIT" ]
null
null
null
EDMScripts/OldScripts/SimpleEDMLoop.py
gautampk/EDMSuite
e7b67336b45e679d7903d527f6d81080c6846166
[ "MIT" ]
11
2015-03-19T18:23:38.000Z
2021-02-18T11:05:51.000Z
# Import a whole load of stuff
33.503448
109
0.735282
# Import a whole load of stuff from System.IO import * from System.Drawing import * from System.Runtime.Remoting import * from System.Threading import * from System.Windows.Forms import * from System.Xml.Serialization import * from System import * from DAQ.Environment import * from EDMConfig import * def saveBlockCon...
0
0
0
0
0
4,345
0
73
407
6a698ccac6fd0c7f76e5a8a4bb85aeca85cff63e
22,145
py
Python
mycroft/stt/__init__.py
NeonDaniel/HolmesV
ecf839156758d98d020f6272e4727aad60278004
[ "Apache-2.0" ]
9
2021-05-06T18:04:18.000Z
2022-02-23T21:59:49.000Z
mycroft/stt/__init__.py
NeonDaniel/HolmesV
ecf839156758d98d020f6272e4727aad60278004
[ "Apache-2.0" ]
5
2021-04-13T22:54:47.000Z
2021-04-18T14:24:25.000Z
mycroft/stt/__init__.py
HelloChatterbox/mycroft-lib
c417807d32eff629354ffe740da14caed2a1bee5
[ "Apache-2.0" ]
4
2021-09-11T04:02:10.000Z
2021-12-18T23:57:19.000Z
# Copyright 2017 Mycroft AI 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...
33.757622
79
0.603116
# Copyright 2017 Mycroft AI 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...
0
2,849
0
16,844
0
332
0
103
799
6af4692a61fa738f40f505d58ac7cde5a59bfad9
1,698
py
Python
sdk/ingestion/microsoft/bing/commerce/ingestion/models/transformation_tryout_response_py3.py
microsoft/bing-commerce-sdk-for-python
cf555ea0bb14792708617d2435dd5aab1c4cbe90
[ "MIT" ]
1
2020-05-04T09:58:07.000Z
2020-05-04T09:58:07.000Z
sdk/ingestion/microsoft/bing/commerce/ingestion/models/transformation_tryout_response_py3.py
microsoft/bing-commerce-sdk-for-python
cf555ea0bb14792708617d2435dd5aab1c4cbe90
[ "MIT" ]
2
2020-04-21T02:32:32.000Z
2020-04-21T19:37:54.000Z
sdk/ingestion/microsoft/bing/commerce/ingestion/models/transformation_tryout_response_py3.py
microsoft/bing-commerce-sdk-for-python
cf555ea0bb14792708617d2435dd5aab1c4cbe90
[ "MIT" ]
4
2020-07-31T10:39:22.000Z
2021-11-10T08:14:07.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. # coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. #...
39.488372
123
0.604829
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. # coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. #...
0
0
0
1,232
0
0
0
17
50
c94779c915148b6ad1bdd49ed67c0ea57c1425eb
789
py
Python
rucken_todo/serializers/TodoProjectSerializer.py
site15/rucken-todo-django
bf30d4ad43be22bd8383447e07b151d6dc99da72
[ "MIT" ]
3
2018-06-04T07:36:59.000Z
2019-10-07T05:33:56.000Z
rucken_todo/serializers/TodoProjectSerializer.py
site15/rucken-todo-django-example
bf30d4ad43be22bd8383447e07b151d6dc99da72
[ "MIT" ]
428
2017-11-24T20:19:39.000Z
2022-03-26T04:13:25.000Z
rucken_todo/serializers/TodoProjectSerializer.py
rucken/todo-django
bf30d4ad43be22bd8383447e07b151d6dc99da72
[ "MIT" ]
null
null
null
from __future__ import unicode_literals
35.863636
109
0.735108
from __future__ import unicode_literals from dynamic_rest.serializers import ( DynamicModelSerializer, DynamicRelationField ) from ..models import TodoProject from .ShortUserSerializer import ShortUserSerializer from .ShortTodoStatusSerializer import ShortTodoStatusSerializer class TodoProjectSerializer(Dyn...
0
0
0
478
0
0
0
157
113
e1e37ca4bd3f37516c74ca148f8f13300997a396
1,502
py
Python
quorapy/scraper.py
djunehor/quorapy
0496a362d7ecd0b2422288a26290a8503d562128
[ "MIT" ]
null
null
null
quorapy/scraper.py
djunehor/quorapy
0496a362d7ecd0b2422288a26290a8503d562128
[ "MIT" ]
null
null
null
quorapy/scraper.py
djunehor/quorapy
0496a362d7ecd0b2422288a26290a8503d562128
[ "MIT" ]
null
null
null
"""Module for scraping"""
28.339623
94
0.561252
"""Module for scraping""" from bs4 import BeautifulSoup import dateparser import datetime class Scraper: """Scraper class""" def __init__(self, html): self.html = html self.soup = BeautifulSoup(html, "lxml") print(f"[Scraper] Retrieved page") def get_urls(self): """Scrape...
2
0
0
1,387
0
0
0
-2
89
0320bc714098189f04667b3582a960eb0486b15d
5,128
py
Python
readinglistreader.py
treese/ReadingListReader
d9e56ec2225400994706ad9c2e9d4815fe4f509d
[ "MIT" ]
62
2015-01-08T03:22:03.000Z
2021-12-22T00:46:30.000Z
readinglistreader.py
treese/ReadingListReader
d9e56ec2225400994706ad9c2e9d4815fe4f509d
[ "MIT" ]
7
2015-02-16T14:12:02.000Z
2021-07-22T06:03:47.000Z
readinglistreader.py
treese/ReadingListReader
d9e56ec2225400994706ad9c2e9d4815fe4f509d
[ "MIT" ]
16
2015-04-19T22:15:24.000Z
2021-09-14T13:08:57.000Z
#!/usr/bin/env python import os import argparse import datetime from readinglistlib import ReadingListReader # Configure CLI fields = ['title', 'url', 'preview', 'date', 'added', 'viewed', 'uuid', 'synckey', 'syncserverid'] ap = argparse.ArgumentParser(description='This script outputs the contents of your Safari Rea...
61.783133
433
0.719189
#!/usr/bin/env python import os import argparse import datetime from readinglistlib import ReadingListReader # Configure CLI fields = ['title', 'url', 'preview', 'date', 'added', 'viewed', 'uuid', 'synckey', 'syncserverid'] ap = argparse.ArgumentParser(description='This script outputs the contents of your Safari Rea...
0
0
0
0
0
356
0
0
46
85890f25969655f8b43b5f8b0ea57d7e21d01c40
745
py
Python
exercicio_py/ex0004_conta_quantidade_caractere/main_v0.py
danielle8farias/Exercicios-Python-3
f2fe9b6ca63536df1d83fd10162cfc04de36b830
[ "MIT" ]
null
null
null
exercicio_py/ex0004_conta_quantidade_caractere/main_v0.py
danielle8farias/Exercicios-Python-3
f2fe9b6ca63536df1d83fd10162cfc04de36b830
[ "MIT" ]
null
null
null
exercicio_py/ex0004_conta_quantidade_caractere/main_v0.py
danielle8farias/Exercicios-Python-3
f2fe9b6ca63536df1d83fd10162cfc04de36b830
[ "MIT" ]
null
null
null
######## # autora: danielle8farias@gmail.com # repositrio: https://github.com/danielle8farias # Descrio: Usurio informa nome e sobrenome. # O programa retorna quantas letras o nome completo possui (excluindo espaos) # e quantas letras o primeiro nome possui. ######## nome_completo = input('Digite seu nome completo...
37.25
79
0.739597
######## # autora: danielle8farias@gmail.com # repositório: https://github.com/danielle8farias # Descrição: Usuário informa nome e sobrenome. # O programa retorna quantas letras o nome completo possui (excluindo espaços) # e quantas letras o primeiro nome possui. ######## nome_completo = input('Digite seu nome com...
20
0
0
0
0
0
0
0
0
67ce0d92034f71c96a8e965173c68e6445d1be29
31
py
Python
techrachit.py
eastmest/Termux-Megapackage
08f610d25539cfdc5992893996aa4c89630c9a07
[ "MIT" ]
null
null
null
techrachit.py
eastmest/Termux-Megapackage
08f610d25539cfdc5992893996aa4c89630c9a07
[ "MIT" ]
null
null
null
techrachit.py
eastmest/Termux-Megapackage
08f610d25539cfdc5992893996aa4c89630c9a07
[ "MIT" ]
null
null
null
print ("tech rachit are here")
15.5
30
0.709677
print ("tech rachit are here")
0
0
0
0
0
0
0
0
0
3fa62522c102c532d31c74e82903732fc572abac
390
py
Python
feedback/urls.py
asb29/Redundant
ee816fd41f9217610bd11f757cf9175288723c70
[ "MIT" ]
null
null
null
feedback/urls.py
asb29/Redundant
ee816fd41f9217610bd11f757cf9175288723c70
[ "MIT" ]
null
null
null
feedback/urls.py
asb29/Redundant
ee816fd41f9217610bd11f757cf9175288723c70
[ "MIT" ]
null
null
null
from django.conf.urls import url from . import views app_name = 'feedback' urlpatterns = [ url(r'^article/(?P<slug>[-\w]+)/comment$', views.comment, name='comment'), url(r'^reviewcomment/(?P<comment_id>[0-9]+)/$', views.reviewcomment, name='review-comment'), url(r'^article...
21.666667
51
0.561538
from django.conf.urls import url from . import views app_name = 'feedback' urlpatterns = [ url(r'^article/(?P<slug>[-\w]+)/comment$', views.comment, name='comment'), url(r'^reviewcomment/(?P<comment_id>[0-9]+)/$', views.reviewcomment, name='review-comment'), url(r'^article...
0
0
0
0
0
0
0
0
0
2fc23c16f3cf180ba3fd5c3369c888fc32045d14
27,933
py
Python
pref/webapp/views/property.py
ahampt/Pref
6a6b44c751da4358d97c7f170237b8fc0a4bc3d0
[ "MIT" ]
null
null
null
pref/webapp/views/property.py
ahampt/Pref
6a6b44c751da4358d97c7f170237b8fc0a4bc3d0
[ "MIT" ]
7
2015-08-02T20:58:23.000Z
2016-05-02T03:25:21.000Z
pref/webapp/views/property.py
ahampt/Pref
6a6b44c751da4358d97c7f170237b8fc0a4bc3d0
[ "MIT" ]
null
null
null
import logging property_logger = logging.getLogger('log.property') associate_logger = logging.getLogger('log.associate') # Display people list # Person tools including view, delete, edit, suggestion, and movie association tools (add, remove) # Display genre list # Genre tools including view, delete, edit, suggesti...
67.798544
315
0.666667
import logging, sys from django.conf import settings from django.core.exceptions import ObjectDoesNotExist, ValidationError from django.core.mail import send_mail from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.http import HttpResponse, Http404 from django.shortcuts import render_to...
0
0
0
0
0
26,854
0
426
286
a77e4ba1d9535c20aa67f0efe32a4d0cd4d16c2b
6,253
py
Python
src/motor/3rdparty/compute/CUDA/mak/build.py
motor-dev/Motor
98cb099fe1c2d31e455ed868cc2a25eae51e79f0
[ "BSD-3-Clause" ]
null
null
null
src/motor/3rdparty/compute/CUDA/mak/build.py
motor-dev/Motor
98cb099fe1c2d31e455ed868cc2a25eae51e79f0
[ "BSD-3-Clause" ]
null
null
null
src/motor/3rdparty/compute/CUDA/mak/build.py
motor-dev/Motor
98cb099fe1c2d31e455ed868cc2a25eae51e79f0
[ "BSD-3-Clause" ]
null
null
null
try: import cPickle as pickle except ImportError: template_kernel = """ _MOTOR_PLUGIN_EXPORT void _%(kernel)s(const u32 index, const u32 total, const minitl::array< minitl::weak<const Motor::KernelScheduler::IMemoryBuffer> >& /*argv*/) { motor_forceuse(index); motor_forceuse(t...
39.828025
237
0.611866
from waflib import Task from waflib.TaskGen import feature, before_method, taskgen_method, extension from waflib.Tools import c_preproc try: import cPickle as pickle except ImportError: import pickle template_kernel = """ _MOTOR_PLUGIN_EXPORT void _%(kernel)s(const u32 index, const u32 total, ...
0
2,847
0
2,173
0
109
0
62
207
773ebb715bc24daa595c7968a1ae63723535d201
1,023
py
Python
sols/1022.py
Paul11100/LeetCode
9896c579dff1812c0c76964db8d60603ee715e35
[ "MIT" ]
null
null
null
sols/1022.py
Paul11100/LeetCode
9896c579dff1812c0c76964db8d60603ee715e35
[ "MIT" ]
null
null
null
sols/1022.py
Paul11100/LeetCode
9896c579dff1812c0c76964db8d60603ee715e35
[ "MIT" ]
null
null
null
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right
31.96875
87
0.540567
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: # DFS and convert binary (Accepted), O(n) time and space def sumRootToLeaf(self, root: Optional[TreeNode...
0
0
0
809
0
0
0
0
22
82d289627c3ee9209ff2dfa6c1d190469fb034cb
286
py
Python
tests/__init__.py
sturmianseq/zenmake
44f1131c1ab677d8c3c930150c63a7dde4ef7de0
[ "BSD-3-Clause" ]
2
2019-10-14T05:05:34.000Z
2022-03-28T04:55:00.000Z
tests/__init__.py
sturmianseq/zenmake
44f1131c1ab677d8c3c930150c63a7dde4ef7de0
[ "BSD-3-Clause" ]
42
2020-08-25T07:59:32.000Z
2021-11-15T03:12:29.000Z
tests/__init__.py
sturmianseq/zenmake
44f1131c1ab677d8c3c930150c63a7dde4ef7de0
[ "BSD-3-Clause" ]
1
2021-08-13T13:59:51.000Z
2021-08-13T13:59:51.000Z
import sys from os import path ZENMAKE_DIR = path.dirname(path.abspath(__file__)) ZENMAKE_DIR = path.normpath(path.join(ZENMAKE_DIR, path.pardir, 'src', 'zenmake')) if ZENMAKE_DIR not in sys.path: sys.path.insert(1, ZENMAKE_DIR) # for test 'testLoadPyModule()' something = 'qaz'
23.833333
82
0.744755
import sys from os import path ZENMAKE_DIR = path.dirname(path.abspath(__file__)) ZENMAKE_DIR = path.normpath(path.join(ZENMAKE_DIR, path.pardir, 'src', 'zenmake')) if ZENMAKE_DIR not in sys.path: sys.path.insert(1, ZENMAKE_DIR) # for test 'testLoadPyModule()' something = 'qaz'
0
0
0
0
0
0
0
0
0
0a2c7252d45b9a2d213668ef67304ff04ab1a631
5,680
py
Python
Drivers/THINGSPEAK.py
bbaumg/Sensor
95eae629a7d36099cf0786e4d3a46c826ed93099
[ "MIT" ]
null
null
null
Drivers/THINGSPEAK.py
bbaumg/Sensor
95eae629a7d36099cf0786e4d3a46c826ed93099
[ "MIT" ]
null
null
null
Drivers/THINGSPEAK.py
bbaumg/Sensor
95eae629a7d36099cf0786e4d3a46c826ed93099
[ "MIT" ]
null
null
null
# Author: Barrett Baumgartner # # # 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 limitation the rights # to use, copy, modify, merge, publish, distr...
33.609467
85
0.687324
# Author: Barrett Baumgartner # # # 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 limitation the rights # to use, copy, modify, merge, publish, distr...
0
0
0
4,484
0
0
0
-13
68
623fad3932fdae3b4cc05b052d24851f20dc14b2
157
py
Python
server/app/services/device_data/views/_reports_type/__init__.py
goodfree/ActorCloud
e8db470830ea6f6f208ad43c2e56a2e8976bc468
[ "Apache-2.0" ]
173
2019-06-10T07:14:49.000Z
2022-03-31T08:42:36.000Z
server/app/services/device_data/views/_reports_type/__init__.py
zlyz12345/ActorCloud
9c34b371c23464981323ef9865d9913bde1fe09c
[ "Apache-2.0" ]
27
2019-06-12T08:25:29.000Z
2022-02-26T11:37:15.000Z
server/app/services/device_data/views/_reports_type/__init__.py
zlyz12345/ActorCloud
9c34b371c23464981323ef9865d9913bde1fe09c
[ "Apache-2.0" ]
67
2019-06-10T08:40:05.000Z
2022-03-09T03:43:56.000Z
from .aggr_events import devices_event_aggr_data __all__ = ['REPORTS_TYPE_FUNC'] REPORTS_TYPE_FUNC = { 'devicesEventAggr': devices_event_aggr_data }
15.7
48
0.789809
from .aggr_events import devices_event_aggr_data __all__ = ['REPORTS_TYPE_FUNC'] REPORTS_TYPE_FUNC = { 'devicesEventAggr': devices_event_aggr_data }
0
0
0
0
0
0
0
0
0
ba536605d96d30f13a42d4df687616345dedf4d2
6,657
py
Python
school/school/migrations/0001_initial.py
firemark/sample-school-django
3b9758ba62e4a37915e69e607d2a2948f1dc0204
[ "MIT" ]
null
null
null
school/school/migrations/0001_initial.py
firemark/sample-school-django
3b9758ba62e4a37915e69e607d2a2948f1dc0204
[ "MIT" ]
null
null
null
school/school/migrations/0001_initial.py
firemark/sample-school-django
3b9758ba62e4a37915e69e607d2a2948f1dc0204
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2016-09-18 23:26 from __future__ import unicode_literals
138.6875
4,712
0.700916
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2016-09-18 23:26 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.Create...
0
0
0
6,447
0
0
0
30
68
a3beca4cb5005e736958d53aabeebe0736bd64f0
108
py
Python
run.py
TinLe/fantasticsearch
dfd43f56d70c33738f69f08fd9d613401dbc5634
[ "Apache-2.0" ]
null
null
null
run.py
TinLe/fantasticsearch
dfd43f56d70c33738f69f08fd9d613401dbc5634
[ "Apache-2.0" ]
null
null
null
run.py
TinLe/fantasticsearch
dfd43f56d70c33738f69f08fd9d613401dbc5634
[ "Apache-2.0" ]
null
null
null
#!flask/bin/python from fantasticsearch import fantasticsearch fantasticsearch.run(debug=True, port=5001)
18
43
0.824074
#!flask/bin/python from fantasticsearch import fantasticsearch fantasticsearch.run(debug=True, port=5001)
0
0
0
0
0
0
0
0
0
2b0a3505c24baa750d6115f2ad0f6544ab52f9c6
201
py
Python
ci.py
arelemegha/python-programs
c9af116c0db45dcd13d97e80a32733df372fe2d4
[ "CC0-1.0" ]
null
null
null
ci.py
arelemegha/python-programs
c9af116c0db45dcd13d97e80a32733df372fe2d4
[ "CC0-1.0" ]
null
null
null
ci.py
arelemegha/python-programs
c9af116c0db45dcd13d97e80a32733df372fe2d4
[ "CC0-1.0" ]
null
null
null
p = float(input("Enter the principle amount : ")) r = float(input("Enter the rate : ")) t = int(input("Enter the time: ")) a = p * (pow((1 + r / 100), t)) ci = a-p print("compound interest is : ", ci)
28.714286
49
0.587065
p = float(input("Enter the principle amount : ")) r = float(input("Enter the rate : ")) t = int(input("Enter the time: ")) a = p * (pow((1 + r / 100), t)) ci = a-p print("compound interest is : ", ci)
0
0
0
0
0
0
0
0
0
034de1341e667b7696b2129e6182000c170e9094
73
py
Python
AnalyzeSystem/f0_test.py
keel-210/AutoSinger
c9a855570b9222befca11072f47632b4ddebe294
[ "MIT" ]
null
null
null
AnalyzeSystem/f0_test.py
keel-210/AutoSinger
c9a855570b9222befca11072f47632b4ddebe294
[ "MIT" ]
null
null
null
AnalyzeSystem/f0_test.py
keel-210/AutoSinger
c9a855570b9222befca11072f47632b4ddebe294
[ "MIT" ]
null
null
null
import pyworld as pyworld
24.333333
25
0.849315
import pyworld as pyworld import pysptk as sptk import pyreaper as reaper
0
0
0
0
0
0
0
4
44
f9ed84d75a8201857334c9dfb6e24601b014935d
1,622
py
Python
pages/themes/DBMS-Lecture2/examples/mongo_CRUD.py
WWWCourses/PythonCourseNetIT-Slides
78dbb5eb7695cc64042b71a1911d4ef3feddb074
[ "MIT" ]
null
null
null
pages/themes/DBMS-Lecture2/examples/mongo_CRUD.py
WWWCourses/PythonCourseNetIT-Slides
78dbb5eb7695cc64042b71a1911d4ef3feddb074
[ "MIT" ]
null
null
null
pages/themes/DBMS-Lecture2/examples/mongo_CRUD.py
WWWCourses/PythonCourseNetIT-Slides
78dbb5eb7695cc64042b71a1911d4ef3feddb074
[ "MIT" ]
null
null
null
import pymongo # ------------------------- Connect to MongoDB Server ------------------------ # # connect to MongoDB server: client = pymongo.MongoClient("mongodb://localhost:27017") # ----------------------- Switch context to a database ----------------------- # # get "python_course" database: db = client.python_cou...
36.044444
128
0.586313
import pymongo # ------------------------- Connect to MongoDB Server ------------------------ # # connect to MongoDB server: client = pymongo.MongoClient("mongodb://localhost:27017") # ----------------------- Switch context to a database ----------------------- # # get "python_course" database: db = client.python_cou...
0
0
0
0
0
0
0
0
0
d06ea409af79d80d23b209f9aa5dc10f5c6cf8f0
733
py
Python
molecule/blockbook/tests/test_chain.py
trustwallet/ansible-collection-blockchain
4ea4ae041dc4625ba914925cccafebefd99c672f
[ "MIT" ]
1
2022-03-24T21:27:27.000Z
2022-03-24T21:27:27.000Z
molecule/blockbook/tests/test_chain.py
trustwallet/ansible-collection-blockchain
4ea4ae041dc4625ba914925cccafebefd99c672f
[ "MIT" ]
null
null
null
molecule/blockbook/tests/test_chain.py
trustwallet/ansible-collection-blockchain
4ea4ae041dc4625ba914925cccafebefd99c672f
[ "MIT" ]
2
2022-03-19T17:34:56.000Z
2022-03-23T19:08:55.000Z
import os import testinfra.utils.ansible_runner testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
27.148148
63
0.768076
import os import pytest import testinfra.utils.ansible_runner from ansible.template import Templar from ansible.parsing.dataloader import DataLoader testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') @pytest.mark.chain("firo") def test_blockboo...
0
389
0
0
0
0
0
35
136
a131c678638de05ea4d2a12998c4a9866393a59c
1,008
py
Python
networks/spm.py
kamiLight/CADepth-master
8251f12f21393aae3261c3765218063cea1cae30
[ "MIT" ]
11
2022-01-03T14:56:40.000Z
2022-03-01T06:37:05.000Z
networks/spm.py
kamiLight/CADepth-master
8251f12f21393aae3261c3765218063cea1cae30
[ "MIT" ]
1
2022-03-23T01:28:56.000Z
2022-03-24T00:46:44.000Z
networks/spm.py
kamiLight/CADepth-master
8251f12f21393aae3261c3765218063cea1cae30
[ "MIT" ]
1
2022-01-14T08:25:50.000Z
2022-01-14T08:25:50.000Z
import torch.nn as nn
32.516129
84
0.5625
import torch import torch.nn as nn class SPM(nn.Module): """ Structure Perception Module """ def __init__(self, in_dim): super(SPM, self).__init__() self.chanel_in = in_dim self.softmax = nn.Softmax(dim=-1) def forward(self,x): """ inputs : x : i...
0
0
0
950
0
0
0
-9
45
d5ee6b368b0d4584ed1bd6908ed0752e007fd580
558
py
Python
examples/serialized_declare.py
jmptbl/puka
bc6e845c8a5f4319ffc54cc71959c56a8893edaf
[ "MIT" ]
81
2015-01-22T10:09:37.000Z
2022-01-25T04:38:29.000Z
examples/serialized_declare.py
ov7a/puka
d2a1a8747b417021d6f18df7ee73d336f670f5a9
[ "MIT" ]
17
2015-05-13T01:51:53.000Z
2021-03-05T04:01:39.000Z
examples/serialized_declare.py
ov7a/puka
d2a1a8747b417021d6f18df7ee73d336f670f5a9
[ "MIT" ]
25
2015-02-12T14:02:41.000Z
2020-05-15T14:08:43.000Z
#!/usr/bin/env python import sys sys.path.append("..") import logging FORMAT_CONS = '%(asctime)s %(name)-12s %(levelname)8s\t%(message)s' logging.basicConfig(level=logging.DEBUG, format=FORMAT_CONS) import puka client = puka.Client("amqp://localhost/") promise = client.connect() client.wait(promise) for i in ra...
19.241379
67
0.706093
#!/usr/bin/env python import sys sys.path.append("..") import logging FORMAT_CONS = '%(asctime)s %(name)-12s %(levelname)8s\t%(message)s' logging.basicConfig(level=logging.DEBUG, format=FORMAT_CONS) import puka client = puka.Client("amqp://localhost/") promise = client.connect() client.wait(promise) for i in ra...
0
0
0
0
0
0
0
0
0
21beef38496aa0556afe362af0fdf823475e15cb
3,065
py
Python
tssimul.py
jli05/CS229-TimeSeries-LSTM
366b87d81bbdfecd74c97ffb5387622c0d60d43d
[ "Apache-2.0" ]
null
null
null
tssimul.py
jli05/CS229-TimeSeries-LSTM
366b87d81bbdfecd74c97ffb5387622c0d60d43d
[ "Apache-2.0" ]
null
null
null
tssimul.py
jli05/CS229-TimeSeries-LSTM
366b87d81bbdfecd74c97ffb5387622c0d60d43d
[ "Apache-2.0" ]
null
null
null
''' Simulate ARIMA(p, 0, q) model ''' import numpy as np def simulate_eps(sigma, size, dist='normal', df=None): ''' Simulate innovation ''' n_samples, length_sample = size if dist.startswith('n'): eps = np.random.standard_normal(size) * sigma elif dist.startswith('t'): eps = np.random....
32.606383
78
0.604894
''' Simulate ARIMA(p, 0, q) model ''' import argparse import numpy as np from scipy import stats def simulate_eps(sigma, size, dist='normal', df=None): ''' Simulate innovation ''' n_samples, length_sample = size if dist.startswith('n'): eps = np.random.standard_normal(size) * sigma elif dist....
0
0
0
0
0
0
0
-4
45
c150f8cf6799b8c70596657c3001737e829dd448
24,931
py
Python
dm_alchemy/types/unity_python_conversion.py
locross93/dm_alchemy
35449de51d56c427959ae6a3be13d6c6ab738be5
[ "Apache-2.0" ]
182
2021-02-08T15:25:06.000Z
2022-03-31T00:46:23.000Z
dm_alchemy/types/unity_python_conversion.py
locross93/dm_alchemy
35449de51d56c427959ae6a3be13d6c6ab738be5
[ "Apache-2.0" ]
6
2021-02-12T10:42:51.000Z
2022-03-14T23:59:45.000Z
dm_alchemy/types/unity_python_conversion.py
locross93/dm_alchemy
35449de51d56c427959ae6a3be13d6c6ab738be5
[ "Apache-2.0" ]
18
2021-02-08T20:37:22.000Z
2022-03-15T20:54:14.000Z
# Lint as python3 # Copyright 2020 DeepMind Technologies Limited. 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 # # Un...
43.661996
80
0.740083
# Lint as python3 # Copyright 2020 DeepMind Technologies Limited. 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 # # Un...
0
0
0
1,249
0
2,738
0
56
320
3e437eb10c5579c54d13b48fb00dc5e65c50fb7b
8,319
py
Python
fastatomography/tomo/backends/astra_cpu.py
PhilippPelz/fasta-tomography
a75f0559c5912249d7c6e330b061ecad744556bf
[ "MIT" ]
1
2021-06-07T14:08:26.000Z
2021-06-07T14:08:26.000Z
fastatomography/tomo/backends/astra_cpu.py
PhilippPelz/fasta-tomography
a75f0559c5912249d7c6e330b061ecad744556bf
[ "MIT" ]
null
null
null
fastatomography/tomo/backends/astra_cpu.py
PhilippPelz/fasta-tomography
a75f0559c5912249d7c6e330b061ecad744556bf
[ "MIT" ]
null
null
null
# Copyright 2014-2017 The ODL contributors # # This file is part of ODL. # # This Source Code Form is subject to the terms of the Mozilla Public License, # v. 2.0. If a copy of the MPL was not distributed with this file, You can # obtain one at https://mozilla.org/MPL/2.0/. """Backend for ASTRA using CPU.""" from __f...
38.513889
78
0.63361
# Copyright 2014-2017 The ODL contributors # # This file is part of ODL. # # This Source Code Form is subject to the terms of the Mozilla Public License, # v. 2.0. If a copy of the MPL was not distributed with this file, You can # obtain one at https://mozilla.org/MPL/2.0/. """Backend for ASTRA using CPU.""" from __f...
0
0
0
0
0
0
0
9
0
2437b1fc5a17eb5303585ed2331bad10c365b40a
59
py
Python
src/qsiprep_analyses/utils/__init__.py
GalBenZvi/qsiprep_analyses
51512cffca218210f6b85e5eadd593b382963bbd
[ "Apache-2.0" ]
null
null
null
src/qsiprep_analyses/utils/__init__.py
GalBenZvi/qsiprep_analyses
51512cffca218210f6b85e5eadd593b382963bbd
[ "Apache-2.0" ]
6
2022-03-04T15:28:20.000Z
2022-03-30T09:37:12.000Z
src/qsiprep_analyses/utils/__init__.py
GalBenZvi/qsiprep_analyses
51512cffca218210f6b85e5eadd593b382963bbd
[ "Apache-2.0" ]
2
2022-03-13T11:07:48.000Z
2022-03-13T11:50:40.000Z
""" Utilities for the :mod:`qsiprep_analyses` package. """
14.75
50
0.694915
""" Utilities for the :mod:`qsiprep_analyses` package. """
0
0
0
0
0
0
0
0
0
5bca9217161ce91c534256d2d0103754755ea4e6
2,240
py
Python
My_Account/migrations/0001_initial.py
CHESyrian/Syrians
8376e9bed6e3a03f536d8aacd523d630f6bc4345
[ "MIT" ]
null
null
null
My_Account/migrations/0001_initial.py
CHESyrian/Syrians
8376e9bed6e3a03f536d8aacd523d630f6bc4345
[ "MIT" ]
null
null
null
My_Account/migrations/0001_initial.py
CHESyrian/Syrians
8376e9bed6e3a03f536d8aacd523d630f6bc4345
[ "MIT" ]
null
null
null
# Generated by Django 3.0.3 on 2020-04-22 21:23
44.8
133
0.612946
# Generated by Django 3.0.3 on 2020-04-22 21:23 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
0
0
0
2,060
0
0
0
41
90
d00702f8ce3921e21728a7927615308f95062ef8
3,279
py
Python
refresh.py
pwillworth/dfkreport
ae10226430a3a74ac3c07ae888cab14dde778db8
[ "Apache-2.0" ]
11
2022-01-18T17:36:12.000Z
2022-03-21T21:09:17.000Z
refresh.py
pwillworth/dfkreport
ae10226430a3a74ac3c07ae888cab14dde778db8
[ "Apache-2.0" ]
null
null
null
refresh.py
pwillworth/dfkreport
ae10226430a3a74ac3c07ae888cab14dde778db8
[ "Apache-2.0" ]
4
2022-01-18T18:37:48.000Z
2022-01-22T02:14:48.000Z
#!/usr/bin/env python3 import logging # Iterate through all transactions for account and run refresh actions # Update the gas transaction fee amount and value assuming tx is on Harmony if __name__ == "__main__": main()
43.72
175
0.655688
#!/usr/bin/env python3 import nets import db import contracts from web3 import Web3 import prices import logging import logging.handlers import jsonpickle def main(): handler = logging.handlers.RotatingFileHandler('../refresh.log', maxBytes=33554432, backupCount=10) logging.basicConfig(handlers=[handler], leve...
0
0
0
0
0
2,871
0
-37
221
d57b9bd1fceae16ab680d68d444523487314cf4c
5,908
py
Python
examples/research/ftt-nas/fixed_point_plugins/fixed_point_patch_new.py
Harald-R/aw_nas
8cf0cf48f7bcfd7893e6355dcc3ccbc83fd39783
[ "MIT" ]
195
2020-08-15T17:39:23.000Z
2022-02-28T07:48:03.000Z
examples/research/ftt-nas/fixed_point_plugins/fixed_point_patch_new.py
Harald-R/aw_nas
8cf0cf48f7bcfd7893e6355dcc3ccbc83fd39783
[ "MIT" ]
22
2020-08-16T01:44:48.000Z
2022-03-12T00:46:54.000Z
examples/research/ftt-nas/fixed_point_plugins/fixed_point_patch_new.py
Harald-R/aw_nas
8cf0cf48f7bcfd7893e6355dcc3ccbc83fd39783
[ "MIT" ]
27
2020-08-16T06:34:56.000Z
2022-03-06T18:16:52.000Z
#pylint: disable-all """ Script for patch SubCandidateNet/CNNGenotypeModel.forward """ from aw_nas.weights_manager.super_net import SubCandidateNet from aw_nas.final.cnn_model import CNNGenotypeModel BITWIDTH = 8 FIX_METHOD = 1 # auto_fix # ---- patch ---- ## Here do not patch forward, as activation is not quantized ...
48.826446
130
0.629824
#pylint: disable-all """ Script for patch SubCandidateNet/CNNGenotypeModel.forward """ from contextlib import contextmanager import six import numpy as np import torch from torch import nn from nics_fix_pt.quant import quantitize from aw_nas.weights_manager.super_net import SubCandidateNet from aw_nas.final.cnn_model...
0
1,549
0
0
0
1,754
0
11
270
eedd7919dde8c6f614677433f04639e63a253d58
2,942
py
Python
gland_classification/four_resolutions_model/model.py
onermustafaumit/MLNM
eef9a694fc616d68094c6dbf4d8fd4e45c842e2d
[ "MIT" ]
1
2022-02-07T06:41:43.000Z
2022-02-07T06:41:43.000Z
gland_classification/four_resolutions_model/model.py
onermustafaumit/MLNM
eef9a694fc616d68094c6dbf4d8fd4e45c842e2d
[ "MIT" ]
null
null
null
gland_classification/four_resolutions_model/model.py
onermustafaumit/MLNM
eef9a694fc616d68094c6dbf4d8fd4e45c842e2d
[ "MIT" ]
null
null
null
import torch.nn as nn
45.261538
119
0.71312
import torchvision import torch.nn as nn class ResNet(nn.Module): def __init__(self, pretrained=False, num_classes=2, num_intermediate_features=64): super().__init__() self.pretrained = pretrained self.num_classes = num_classes self.num_intermediate_features = num_intermedi...
0
0
0
2,837
0
0
0
-3
72
9dbbc46dc3ab82348e7ae0fc2b05ea58038bf2f9
5,019
py
Python
py/sym/messages/authz_pb2.py
symopsio/protobufs
5a33aa2c00116810e7e5a1d2b23f9134bb13eb10
[ "Apache-2.0" ]
null
null
null
py/sym/messages/authz_pb2.py
symopsio/protobufs
5a33aa2c00116810e7e5a1d2b23f9134bb13eb10
[ "Apache-2.0" ]
null
null
null
py/sym/messages/authz_pb2.py
symopsio/protobufs
5a33aa2c00116810e7e5a1d2b23f9134bb13eb10
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: sym/messages/authz.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from goo...
36.904412
397
0.75533
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: sym/messages/authz.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from goo...
0
0
0
0
0
0
0
0
0
65515bf65bebc383c9d94596460baa49da4a8f9c
2,506
py
Python
parser.py
winterYANGWT/STEFANN_PyTorch
bcee0ddbc286b4c83de0b2ea243091fb9c14fb90
[ "Apache-2.0" ]
1
2021-07-11T04:47:18.000Z
2021-07-11T04:47:18.000Z
parser.py
mathemusician/STEFANN_PyTorch
82941bc859af424babcf1f23a3d973764226263b
[ "Apache-2.0" ]
1
2021-08-11T16:37:02.000Z
2021-08-11T16:37:02.000Z
parser.py
mathemusician/STEFANN_PyTorch
82941bc859af424babcf1f23a3d973764226263b
[ "Apache-2.0" ]
1
2021-07-10T04:26:33.000Z
2021-07-10T04:26:33.000Z
import os.path as path FANNET_IMG_DIR='/mnt/Data/GoogleFontsSTEFANN/fannet' COLORNET_IMG_DIR='/mnt/Data/GoogleFontsSTEFANN/colornet' if __name__=='__main__': process_fannet(path.join(FANNET_IMG_DIR,'train'), './Data/STEFANN/fannet_train.csv') process_fannet(path.join(FANNET_IMG_DIR,'v...
31.721519
72
0.622107
import os import os.path as path import itertools import pandas as pd import glob import config import random FANNET_IMG_DIR='/mnt/Data/GoogleFontsSTEFANN/fannet' COLORNET_IMG_DIR='/mnt/Data/GoogleFontsSTEFANN/colornet' def process_fannet(img_dir,save_path): perms=itertools.product(os.listdir(img_dir), ...
0
0
0
0
0
1,762
0
-45
178
7b8242216757295d93bacc284fc1accdd444067f
1,084
py
Python
js_code.py
luoshenshen/LibrarySeats
c9fbd4fb7c26d380ee17b765cb4b83b1f3bbb78c
[ "MIT" ]
12
2021-06-03T03:26:45.000Z
2022-03-06T09:45:57.000Z
js_code.py
luoshenshen/LibrarySeats
c9fbd4fb7c26d380ee17b765cb4b83b1f3bbb78c
[ "MIT" ]
5
2021-11-06T07:35:00.000Z
2022-03-13T06:02:58.000Z
js_code.py
luoshenshen/LibrarySeats
c9fbd4fb7c26d380ee17b765cb4b83b1f3bbb78c
[ "MIT" ]
4
2021-06-07T09:46:31.000Z
2022-03-09T14:20:34.000Z
''' @ project: LibrarySeats @ file: test @ user: @ email: luoshenshen@buaa.edu.cn @ tool: PyCharm @ time: 2021/5/24 14:27 ''' import re import execjs def verify_code_get(jsname,cookie,time): '''js''' url = "https://static.wechat.laixuanzuo.com/template/theme2/cache/layout/" + jsname + ".js" pattern_js_b...
23.565217
95
0.654059
''' @ project: LibrarySeats @ file: test @ user: 罗申申 @ email: luoshenshen@buaa.edu.cn @ tool: PyCharm @ time: 2021/5/24 14:27 ''' import re import function import execjs import browser_tools def obtain_js(html): js = '<script src="(.*?)"' href = re.compile(js, re.S).findall(html) return href def verify_c...
57
0
0
0
0
195
0
-7
90
9faa68d2b05b4a33cebe4f7dd86018471e582c98
3,336
py
Python
var_caller_mt.py
shimbalama/friday_sessions_QIMR
5f5c65fdea98b22df845b09e3a72dbc7989e8ed1
[ "MIT" ]
null
null
null
var_caller_mt.py
shimbalama/friday_sessions_QIMR
5f5c65fdea98b22df845b09e3a72dbc7989e8ed1
[ "MIT" ]
null
null
null
var_caller_mt.py
shimbalama/friday_sessions_QIMR
5f5c65fdea98b22df845b09e3a72dbc7989e8ed1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from Bio import SeqIO import scipy.stats as stats def chunk_ref(args, chroms): ''' Split ref into chunks for threading ''' #make server mode where just takes one chrom and scatters with WDL chunks = [] size = 100000 #just for testing, put back to 1mb total_len = 0...
25.082707
121
0.555456
#!/usr/bin/env python3 from multiprocessing import Pool, TimeoutError from glob import glob import gzip import pysam from Bio import SeqIO from collections import Counter, defaultdict import scipy.stats as stats import operator import pandas as pd import argparse import cProfile import sys def main (): parser = a...
0
0
0
0
0
2,328
0
-2
266
dade49d1b215000562cd2d23b09812f5a692264c
713
py
Python
BOJ_Solved/BOJ-16928.py
CodingLeeSeungHoon/Python_Algorithm_TeamNote
1e92986999b45aa9951e12e67b23062e410e9b36
[ "MIT" ]
7
2021-11-19T14:50:59.000Z
2022-02-25T20:00:20.000Z
BOJ_Solved/BOJ-16928.py
CodingLeeSeungHoon/Python_Algorithm_TeamNote
1e92986999b45aa9951e12e67b23062e410e9b36
[ "MIT" ]
null
null
null
BOJ_Solved/BOJ-16928.py
CodingLeeSeungHoon/Python_Algorithm_TeamNote
1e92986999b45aa9951e12e67b23062e410e9b36
[ "MIT" ]
null
null
null
# coding=utf-8 """ 16928 : """ import sys input = sys.stdin.readline N, M = map(int, input().split()) graph = [*range(101)] visited = [-1] * 101 for _ in range(N + M): x, y = map(int, input().split()) graph[x] = y bfs(graph, 1, visited) print(visited[-1])
19.27027
63
0.504909
# coding=utf-8 """ 백준 16928번 : 뱀과 사다리 게임 """ import sys from collections import deque input = sys.stdin.readline def bfs(graph, start, visited): queue = deque([start]) visited[start] = 0 while queue: v = queue.popleft() for i in range(1, 7): y = v + i if y > 100...
30
0
0
0
0
376
0
8
45
b156fbcb3777c67bbda34c74c49e66b3b3d17cc7
4,001
py
Python
data/birthmark_xml_create.py
mitubaEX/MITUBASearcher
7d6eb92bcc608a27519d8e6e30b033dc784694f3
[ "Apache-2.0" ]
null
null
null
data/birthmark_xml_create.py
mitubaEX/MITUBASearcher
7d6eb92bcc608a27519d8e6e30b033dc784694f3
[ "Apache-2.0" ]
5
2017-09-12T15:41:33.000Z
2017-10-23T14:21:23.000Z
data/birthmark_xml_create.py
mitubaEX/MITUBASearcher
7d6eb92bcc608a27519d8e6e30b033dc784694f3
[ "Apache-2.0" ]
null
null
null
import glob import csv csv.field_size_limit(1000000000) # -*- coding: utf-8 -*- import codecs files = [] cvfv = codecs.open("./birth_cvfv.xml","w",'utf-8') fmc = codecs.open("./birth_fmc.xml","w",'utf-8') fuc = codecs.open("./birth_fuc.xml","w",'utf-8') _2gram = codecs.open("./birth_2gram.xml","w",'utf-8') _3gram = co...
43.021505
198
0.48038
import glob import os import sys import csv csv.field_size_limit(1000000000) # -*- coding: utf-8 -*- import codecs files = [] cvfv = codecs.open("./birth_cvfv.xml","w",'utf-8') fmc = codecs.open("./birth_fmc.xml","w",'utf-8') fuc = codecs.open("./birth_fuc.xml","w",'utf-8') _2gram = codecs.open("./birth_2gram.xml","w"...
0
0
0
0
0
1,249
0
-23
113
95964d33b38741eebab8192e62f19d04248c6675
1,170
py
Python
setup.py
AmidBidee/Robot-Arm
cfacfc779b2f025846e9748167bcfb15ce207923
[ "MIT" ]
1
2022-03-27T20:09:10.000Z
2022-03-27T20:09:10.000Z
setup.py
AmidBidee/Robot-Arm
cfacfc779b2f025846e9748167bcfb15ce207923
[ "MIT" ]
4
2022-03-25T03:45:10.000Z
2022-03-29T14:31:16.000Z
setup.py
AmidBidee/RobotArm
cfacfc779b2f025846e9748167bcfb15ce207923
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages with open("README.md", "r") as fh: long_description = fh.read() setup( name="robotarm", # Replace with your username version="0.0.4", author="<Aaron Ahmid Balogun>", author_email="<amidbidee@gmail.com>", description="<Template Setup.py package>"...
21.272727
106
0.620513
import setuptools from setuptools import setup, find_packages with open("README.md", "r") as fh: long_description = fh.read() setup( name="robotarm", # Replace with your username version="0.0.4", author="<Aaron Ahmid Balogun>", author_email="<amidbidee@gmail.com>", description="<Template ...
0
0
0
0
0
0
0
-4
22
51cb20a476045ed9a30f634816c937e0032634fa
5,628
py
Python
samples/snippets/publisher_test.py
deckikwok/python-pubsub
7e02bd8bc87676b0f38c90bc218dd4714f09f3a4
[ "Apache-2.0" ]
null
null
null
samples/snippets/publisher_test.py
deckikwok/python-pubsub
7e02bd8bc87676b0f38c90bc218dd4714f09f3a4
[ "Apache-2.0" ]
null
null
null
samples/snippets/publisher_test.py
deckikwok/python-pubsub
7e02bd8bc87676b0f38c90bc218dd4714f09f3a4
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Google 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 by applicable law or a...
29.621053
88
0.744314
# Copyright 2016 Google 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 by applicable law or a...
0
1,437
0
0
0
2,791
0
-1
547
7b2a91c84bc4cb09ca9e0267db05e2ac0ace93e9
3,354
py
Python
newsapp/models.py
Esther-Anyona/four-one-one
6a5e019b35710941a669c1b49e993b683c99d615
[ "MIT" ]
null
null
null
newsapp/models.py
Esther-Anyona/four-one-one
6a5e019b35710941a669c1b49e993b683c99d615
[ "MIT" ]
null
null
null
newsapp/models.py
Esther-Anyona/four-one-one
6a5e019b35710941a669c1b49e993b683c99d615
[ "MIT" ]
null
null
null
# CloudinaryImage("turtles.jpg").image(width=70, height=53, crop="scale") """ Models """
34.9375
173
0.720036
from django.db import models from django.contrib.auth.models import User from cloudinary.models import CloudinaryField # CloudinaryImage("turtles.jpg").image(width=70, height=53, crop="scale") """ Models """ class Neighbourhood(models.Model): neighbourhood_name = models.CharField(max_length=100) location = mo...
0
108
0
2,942
0
0
0
53
157
38bbd6e96323d1dc65e0352cdedb7d3a7f70fe9a
321
py
Python
setup.py
fiefdx/pytea
466f2e15506fc66e402437aa2cfeb8b2c9f19c64
[ "MIT" ]
1
2016-09-04T10:24:27.000Z
2016-09-04T10:24:27.000Z
setup.py
fiefdx/pytea
466f2e15506fc66e402437aa2cfeb8b2c9f19c64
[ "MIT" ]
null
null
null
setup.py
fiefdx/pytea
466f2e15506fc66e402437aa2cfeb8b2c9f19c64
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' Created on 2014-07-16 @summary: Trellis TEA use pure python @author: fiefdx ''' from distutils.core import setup setup(name='pytea', version='1.0.2', author = 'fiefdx', author_email = 'fiefdx@gmail.com', package_dir={'pytea': 'src'}, packages=['pytea'], ...
20.0625
40
0.595016
# -*- coding: utf-8 -*- ''' Created on 2014-07-16 @summary: Trellis TEA use pure python @author: fiefdx ''' from distutils.core import setup setup(name='pytea', version='1.0.2', author = 'fiefdx', author_email = 'fiefdx@gmail.com', package_dir={'pytea': 'src'}, packages=['pytea'], ...
0
0
0
0
0
0
0
0
0
6848d05c72fa374d993685eb4210477d11796461
1,006
py
Python
profiler/undecorate_for_profiling.py
co2meal/-bnpy-dev
74f69afde6c9dac8de4c074842df53ae87a15ac1
[ "BSD-3-Clause" ]
null
null
null
profiler/undecorate_for_profiling.py
co2meal/-bnpy-dev
74f69afde6c9dac8de4c074842df53ae87a15ac1
[ "BSD-3-Clause" ]
null
null
null
profiler/undecorate_for_profiling.py
co2meal/-bnpy-dev
74f69afde6c9dac8de4c074842df53ae87a15ac1
[ "BSD-3-Clause" ]
null
null
null
''' undecorate_for_profiling.py Explore all the python functions in the user-specified directory, and remove decoration @profile from appropriate functions ''' if __name__ == '__main__': import argparse parser = argparse.ArgumentParser() parser.add_argument('rootdir') args = parser.parse_args() m...
29.588235
69
0.624254
''' undecorate_for_profiling.py Explore all the python functions in the user-specified directory, and remove decoration @profile from appropriate functions ''' import os def main(bnpyrootdir): list_of_files = {} for (dirpath, contentdirs, contentfiles) in os.walk(bnpyrootdir): for fname in contentfil...
0
0
0
0
0
635
0
-12
45
e0006a8f256b6783c06d6c65cdca6a156de2c8d9
1,734
py
Python
Proxy/MachineLearn/classification.py
Crispae/BBPRED
226c6347d986da4b0f573f1b7a978b9418d0eeb4
[ "MIT" ]
null
null
null
Proxy/MachineLearn/classification.py
Crispae/BBPRED
226c6347d986da4b0f573f1b7a978b9418d0eeb4
[ "MIT" ]
null
null
null
Proxy/MachineLearn/classification.py
Crispae/BBPRED
226c6347d986da4b0f573f1b7a978b9418d0eeb4
[ "MIT" ]
null
null
null
## classification.py __all__ = ["Lazy",]
23.12
140
0.672434
## classification.py __all__ = ["Lazy",] from .lazy import LazyClassifier from .utils import * from sklearn.model_selection import train_test_split import pandas class Lazy: def _lazy_split(self,descriptors_data,test_size,random_state): if Data_frame_validator(descriptors_data): data...
0
0
0
1,442
0
0
0
33
182
9d438aadf58244488ff98e5078d8104573590578
3,099
py
Python
pkgs/sdk-pkg/src/genie/libs/sdk/libs/abstracted_libs/iosxr/subsection.py
jbronikowski/genielibs
200a34e5fe4838a27b5a80d5973651b2e34ccafb
[ "Apache-2.0" ]
94
2018-04-30T20:29:15.000Z
2022-03-29T13:40:31.000Z
pkgs/sdk-pkg/src/genie/libs/sdk/libs/abstracted_libs/iosxr/subsection.py
jbronikowski/genielibs
200a34e5fe4838a27b5a80d5973651b2e34ccafb
[ "Apache-2.0" ]
67
2018-12-06T21:08:09.000Z
2022-03-29T18:00:46.000Z
pkgs/sdk-pkg/src/genie/libs/sdk/libs/abstracted_libs/iosxr/subsection.py
jbronikowski/genielibs
200a34e5fe4838a27b5a80d5973651b2e34ccafb
[ "Apache-2.0" ]
49
2018-06-29T18:59:03.000Z
2022-03-10T02:07:59.000Z
# Python import logging # Abstract from genie.abstract import Lookup # Parser from genie.metaparser.util.exceptions import SchemaEmptyParserError # unicon from unicon.eal.dialogs import Statement, Dialog log = logging.getLogger(__name__) def save_device_information(device, **kwargs): """Install the commit pac...
26.042017
77
0.601162
# Python import logging from os import path # Abstract from genie.abstract import Lookup # Parser from genie.libs import parser from genie.metaparser.util.exceptions import SchemaEmptyParserError # unicon from unicon.eal.dialogs import Statement, Dialog log = logging.getLogger(__name__) def save_device_informatio...
0
0
0
0
0
0
0
6
44
fb43dcb45f5d7511c1b7ad5465521087e7f16242
3,879
py
Python
open_fmri/apps/dataset/migrations/0001_initial.py
rwblair/open_fmri
5e3052878b6d514553a074a6d9d44fe740daa034
[ "BSD-3-Clause" ]
5
2016-01-18T20:54:18.000Z
2021-02-10T10:43:59.000Z
open_fmri/apps/dataset/migrations/0001_initial.py
rwblair/open_fmri
5e3052878b6d514553a074a6d9d44fe740daa034
[ "BSD-3-Clause" ]
25
2015-12-02T17:37:45.000Z
2018-02-05T22:07:51.000Z
open_fmri/apps/dataset/migrations/0001_initial.py
rwblair/open_fmri
5e3052878b6d514553a074a6d9d44fe740daa034
[ "BSD-3-Clause" ]
6
2015-11-19T23:26:47.000Z
2021-02-10T10:44:01.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals
41.265957
224
0.565094
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import django.core.validators class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='Dataset', fields=[ ...
0
0
0
3,719
0
0
0
27
68
9fc19f32a9cf06da8897f17f045d1bb765cb8c81
2,849
py
Python
packages/core/minos-microservice-saga/tests/test_saga/test_executions/test_repositories/test_abc.py
minos-framework/minos-python
9a6ad6783361f3d8a497a088808b55ea7a938c6c
[ "MIT" ]
247
2022-01-24T14:55:30.000Z
2022-03-25T12:06:17.000Z
packages/core/minos-microservice-saga/tests/test_saga/test_executions/test_repositories/test_abc.py
minos-framework/minos-python
9a6ad6783361f3d8a497a088808b55ea7a938c6c
[ "MIT" ]
168
2022-01-24T14:54:31.000Z
2022-03-31T09:31:09.000Z
packages/core/minos-microservice-saga/tests/test_saga/test_executions/test_repositories/test_abc.py
minos-framework/minos-python
9a6ad6783361f3d8a497a088808b55ea7a938c6c
[ "MIT" ]
21
2022-02-06T17:25:58.000Z
2022-03-27T04:50:29.000Z
import unittest if __name__ == "__main__": unittest.main()
29.371134
69
0.692524
import unittest from unittest.mock import ( AsyncMock, call, ) from uuid import ( UUID, ) from minos.saga import ( SagaExecution, SagaExecutionRepository, ) from tests.utils import ( ADD_ORDER, SagaTestCase, ) class _SagaExecutionRepository(SagaExecutionRepository): async def _store(s...
0
0
2,210
62
0
0
0
134
376
25fcb95f8a4a06a86c76be9be03f3139ee47ed77
8,133
py
Python
samples/example_by.py
jokva/windrose
99a2f636a6558a29e7ded63d0d233f25dc7986b6
[ "CECILL-B", "BSD-3-Clause" ]
null
null
null
samples/example_by.py
jokva/windrose
99a2f636a6558a29e7ded63d0d233f25dc7986b6
[ "CECILL-B", "BSD-3-Clause" ]
null
null
null
samples/example_by.py
jokva/windrose
99a2f636a6558a29e7ded63d0d233f25dc7986b6
[ "CECILL-B", "BSD-3-Clause" ]
1
2020-10-04T18:48:35.000Z
2020-10-04T18:48:35.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function """ sample using "by" keyword """ # import matplotlib # matplotlib.use("Agg") # import matplotlib as mpl import matplotlib.cm as cm from windrose import (FIGSIZE_DEFAULT) S_FIGSIZE_DEFAULT = ",".join(map(str, FIGSIZE_DEFAULT)) ...
31.523256
110
0.624985
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function """ sample using "by" keyword """ import click # import matplotlib # matplotlib.use("Agg") # import matplotlib as mpl import matplotlib.pyplot as plt import matplotlib.cm as cm import numpy as np import pandas as pd from windrose ...
0
5,232
0
2,172
0
91
0
23
251
8aa086dfd06626e4b4e36485c4d38dd75160c536
8,316
py
Python
gt/reid.py
solapark/frcnn_keras_original
3561d1de18f41868efc9cec927761613d75a5dc3
[ "Apache-2.0" ]
null
null
null
gt/reid.py
solapark/frcnn_keras_original
3561d1de18f41868efc9cec927761613d75a5dc3
[ "Apache-2.0" ]
null
null
null
gt/reid.py
solapark/frcnn_keras_original
3561d1de18f41868efc9cec927761613d75a5dc3
[ "Apache-2.0" ]
null
null
null
import numpy as np import os, sys sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__)))) if __name__ == '__main__': from option import args import pickle with open('/home/sap/frcnn_keras/mv_train_two_reid.pickle', 'rb') as f: reid_pickle = pickle.load(f) pred_box, pred_box...
46.983051
162
0.641775
import numpy as np import os, sys sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__)))) import utility from epipolar import EPIPOLAR import cv2 class REID: def __init__(self, args): self.num_valid_cam = args.num_valid_cam self.num_nms = args.num_nms self.batch_size = ...
0
0
0
6,767
0
0
0
-10
89
869daa2374c26f25d0517f0a880b5bc63581fcf1
3,413
py
Python
dagflow/sdk.py
GodQ/autoflow
74954dafb9cdb16c29b9f3a7d081a3f3a12e808a
[ "Apache-2.0" ]
1
2019-06-20T15:31:13.000Z
2019-06-20T15:31:13.000Z
dagflow/sdk.py
GodQ/dagflow
74954dafb9cdb16c29b9f3a7d081a3f3a12e808a
[ "Apache-2.0" ]
null
null
null
dagflow/sdk.py
GodQ/dagflow
74954dafb9cdb16c29b9f3a7d081a3f3a12e808a
[ "Apache-2.0" ]
null
null
null
__author__ = 'godq' from dagflow.loader import get_DagRepo_Object dag_repo = get_DagRepo_Object()
31.601852
98
0.745971
__author__ = 'godq' import os import sys from dagflow.flow_operation import send_start_flow_msg as sdk_send_start_flow_msg, \ send_finish_step_msg as sdk_send_finish_step_msg from dagflow.loader import get_DagRepo_Object dag_repo = get_DagRepo_Object() def send_finish_step_msg(dag_name, dag_run_id, step_name, st...
0
0
0
0
0
2,844
0
93
366
39e69d64294449e607d3625ba49e9a9d1fcc26c9
3,965
py
Python
writer.py
MrBoogie27/PlagiarismPrograms
05564131c6849747a9a7b8c56961d488cb5a2755
[ "MIT" ]
null
null
null
writer.py
MrBoogie27/PlagiarismPrograms
05564131c6849747a9a7b8c56961d488cb5a2755
[ "MIT" ]
null
null
null
writer.py
MrBoogie27/PlagiarismPrograms
05564131c6849747a9a7b8c56961d488cb5a2755
[ "MIT" ]
null
null
null
TABLE_NAME='runs' TABLE_TEXT_MATCHES= 'text_matches' COLUMNS=('id', 'content', 'ASTHash') COLUMNS_MATCH=('first_runs_id', 'second_runs_id', 'match_AST_v1') PROBLEM_ID=3 COUNT_LIMIT = 100
38.495146
87
0.538462
from common import compare_array from prepare_hash import run_binary_hasher import psycopg2 import tempfile from psycopg2 import sql TABLE_NAME='runs' TABLE_TEXT_MATCHES= 'text_matches' COLUMNS=('id', 'content', 'ASTHash') COLUMNS_MATCH=('first_runs_id', 'second_runs_id', 'match_AST_v1') PROBLEM_ID=3 COUNT_LIMIT = 10...
0
0
0
0
0
3,505
0
23
248
5c92b9919c5b5d586563d3d52b13ac345250227f
262
py
Python
api/static.py
hartliddell/api
73d44d2271c01fe7540fedeee9174c4032cbbbc0
[ "MIT" ]
null
null
null
api/static.py
hartliddell/api
73d44d2271c01fe7540fedeee9174c4032cbbbc0
[ "MIT" ]
null
null
null
api/static.py
hartliddell/api
73d44d2271c01fe7540fedeee9174c4032cbbbc0
[ "MIT" ]
null
null
null
"""Define a custom static storage class."""
29.111111
73
0.79771
"""Define a custom static storage class.""" from django.contrib.staticfiles.storage import ManifestStaticFilesStorage class RyrManifestStaticFilesStorage(ManifestStaticFilesStorage): """Define a custom static storage class.""" manifest_strict = False
0
0
0
120
0
0
0
52
45
f3e92c79550d52d83e93cc3237d16de166bd98cb
4,394
py
Python
todos/tests.py
shiniao/todoz
4cb2cf492f6cfac5e037da6e7b3b674ef548e62a
[ "MIT" ]
1
2020-01-13T03:32:11.000Z
2020-01-13T03:32:11.000Z
todos/tests.py
shiniao/todoz
4cb2cf492f6cfac5e037da6e7b3b674ef548e62a
[ "MIT" ]
6
2021-05-10T19:58:23.000Z
2022-02-26T20:29:39.000Z
todos/tests.py
shiniao/todoz
4cb2cf492f6cfac5e037da6e7b3b674ef548e62a
[ "MIT" ]
null
null
null
# Create your tests here.
32.072993
85
0.574192
# Create your tests here. import json from django.contrib.auth.models import User from django.test import TestCase, Client from .models import Todo from django.utils import timezone import datetime class TestTodosModel(TestCase): """测试数据库model""" def test_is_past(self): # 未来土豆 future_date = ...
177
0
0
4,040
0
0
0
40
225