hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
14911714ce686af966b277b1e70139fd1fd7f793
597
py
Python
notify.py
MoveOnOrg/merkle
764351cf6a21bb718343ae7488735f077aee3afe
[ "MIT" ]
null
null
null
notify.py
MoveOnOrg/merkle
764351cf6a21bb718343ae7488735f077aee3afe
[ "MIT" ]
50
2019-08-15T16:10:19.000Z
2021-06-25T15:20:44.000Z
notify.py
MoveOnOrg/merkle
764351cf6a21bb718343ae7488735f077aee3afe
[ "MIT" ]
null
null
null
import os import sys import slackweb from pywell.entry_points import run_from_cli DESCRIPTION = 'Send notification to Slack.' ARG_DEFINITIONS = { 'SLACK_WEBHOOK': 'Web hook URL for Slack.', 'SLACK_CHANNEL': 'Slack channel to send to.', 'TEXT': 'Text to send.' } REQUIRED_ARGS = [ 'SLACK_WEBHOOK', '...
21.321429
69
0.716918
0
0
0
0
0
0
0
0
178
0.298157
14913f5e91c0397a0cf3445e632e873adf524250
4,203
py
Python
src/lib/earlystopping.py
dreizehnutters/pcapae
d436e5a8d74656875918d612d1700e063ec08bbb
[ "MIT" ]
null
null
null
src/lib/earlystopping.py
dreizehnutters/pcapae
d436e5a8d74656875918d612d1700e063ec08bbb
[ "MIT" ]
null
null
null
src/lib/earlystopping.py
dreizehnutters/pcapae
d436e5a8d74656875918d612d1700e063ec08bbb
[ "MIT" ]
null
null
null
from os import path, makedirs, walk ,remove, scandir, unlink from numpy import inf from torch import save as t_save from lib.utils import sort_human, BOLD, CLR class EarlyStopping: def __init__(self, log_path, patience=7, model=None, verbose=False, exp_tag=""): """Early stops the training if validation ...
38.209091
114
0.546039
4,038
0.960742
0
0
0
0
0
0
1,387
0.330002
149261fa7cc26a67d1e1edf484e1fa0b7d33452a
97
py
Python
ldapauthenticator/__init__.py
jbmarcille/ldapauthenticator
f6037d72bd8c76317b8741d96de1c7b1dee26298
[ "BSD-3-Clause" ]
null
null
null
ldapauthenticator/__init__.py
jbmarcille/ldapauthenticator
f6037d72bd8c76317b8741d96de1c7b1dee26298
[ "BSD-3-Clause" ]
null
null
null
ldapauthenticator/__init__.py
jbmarcille/ldapauthenticator
f6037d72bd8c76317b8741d96de1c7b1dee26298
[ "BSD-3-Clause" ]
null
null
null
from ldapauthenticator.ldapauthenticator import LDAPAuthenticator __all__ = [LDAPAuthenticator]
24.25
65
0.876289
0
0
0
0
0
0
0
0
0
0
14938eb4c17ff96d22edd6168c88c690385d934d
2,207
py
Python
tests/test_tc100.py
radoering/flake8-type-checking
02c2af870e8098d0c5bd623591c5b184c0614213
[ "BSD-3-Clause" ]
19
2021-04-21T14:12:24.000Z
2022-03-13T07:42:26.000Z
tests/test_tc100.py
radoering/flake8-type-checking
02c2af870e8098d0c5bd623591c5b184c0614213
[ "BSD-3-Clause" ]
29
2021-04-21T14:31:12.000Z
2022-03-26T08:57:54.000Z
tests/test_tc100.py
sondrelg/flake8-typing-only-imports
d27ffece2cdd5b57a529c8d9f45ba2173c29066f
[ "BSD-3-Clause" ]
2
2021-04-08T08:04:44.000Z
2021-04-14T11:00:18.000Z
""" This file tests the TC100 error: >> Missing 'from __future__ import annotations' import The idea is that we should raise one of these errors if a file contains any type-checking imports and one is missing. One thing to note: futures imports should always be at the top of a file, so we only need to check one ...
46.957447
117
0.670594
0
0
0
0
167
0.075668
0
0
1,636
0.741278
1493af77067165c908670ab195f77e6b1342b801
6,628
py
Python
scripts/plot_sorting.py
t1mm3/fluid_coprocessing
2cec71e1b9cb52cccf6c29ccf7193b845e67bc48
[ "BSD-3-Clause" ]
2
2019-07-01T14:38:55.000Z
2021-03-16T14:05:26.000Z
scripts/plot_sorting.py
t1mm3/fluid_coprocessing
2cec71e1b9cb52cccf6c29ccf7193b845e67bc48
[ "BSD-3-Clause" ]
null
null
null
scripts/plot_sorting.py
t1mm3/fluid_coprocessing
2cec71e1b9cb52cccf6c29ccf7193b845e67bc48
[ "BSD-3-Clause" ]
1
2019-11-28T07:25:03.000Z
2019-11-28T07:25:03.000Z
#!/bin/env python2 import matplotlib as mpl mpl.use('pgf') pgf_with_pgflatex = { "pgf.texsystem": "pdflatex", "pgf.rcfonts": False, "pgf.preamble": [ r"\usepackage[utf8x]{inputenc}", r"\usepackage[T1]{fontenc}", # r"\usepackage{cmbright}", ] } mpl.rcParams.update(pgf_wit...
39.218935
178
0.650875
0
0
0
0
0
0
0
0
2,458
0.370851
1493c59c1b444ee2035222130759f4547fe142d3
5,272
py
Python
morf-python-api/build/lib/morf/utils/caching.py
jpgard/morf
f17afcacef68929a5ce9e7714208be1002a42418
[ "MIT" ]
14
2018-06-27T13:15:46.000Z
2021-08-30T08:24:38.000Z
morf-python-api/build/lib/morf/utils/caching.py
jpgard/morf
f17afcacef68929a5ce9e7714208be1002a42418
[ "MIT" ]
58
2018-02-03T15:31:15.000Z
2019-10-15T02:12:05.000Z
morf-python-api/build/lib/morf/utils/caching.py
jpgard/morf
f17afcacef68929a5ce9e7714208be1002a42418
[ "MIT" ]
7
2018-03-29T14:47:34.000Z
2021-06-22T01:34:52.000Z
# Copyright (c) 2018 The Regents of the University of Michigan # and the University of Pennsylvania # # 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 li...
41.1875
150
0.75588
0
0
0
0
0
0
0
0
2,792
0.52959
149847bd740c757e149d66da0c573d0fe5e56850
91
py
Python
tests/basic/lambda4.py
Slater-Victoroff/pyjaco
89c4e3c46399c5023b0e160005d855a01241c58a
[ "MIT" ]
38
2015-01-01T18:08:59.000Z
2022-02-18T08:57:27.000Z
tests/basic/lambda4.py
dusty-phillips/pyjaco
066895ae38d1828498e529c1875cb88df6cbc54d
[ "MIT" ]
1
2020-07-15T13:30:32.000Z
2020-07-15T13:30:32.000Z
tests/basic/lambda4.py
Slater-Victoroff/pyjaco
89c4e3c46399c5023b0e160005d855a01241c58a
[ "MIT" ]
12
2016-03-07T09:30:49.000Z
2021-09-05T20:38:47.000Z
la = [] for x in range(5): la.append(lambda x: (lambda q: q + x)(x)) print la[3](1)
11.375
45
0.527473
0
0
0
0
0
0
0
0
0
0
14989b6b36688f784980d216d72aa340a8737398
153
py
Python
python/ctypes/hello_rust/hello_rust_ctypes.py
JamesMcGuigan/ecosystem-research
bfd98bd5b0a2165f449eb36b368b54fe972374fe
[ "MIT" ]
1
2019-01-01T02:04:27.000Z
2019-01-01T02:04:27.000Z
python/ctypes/hello_rust/hello_rust_ctypes.py
JamesMcGuigan/ecosystem-research
bfd98bd5b0a2165f449eb36b368b54fe972374fe
[ "MIT" ]
1
2020-03-09T17:51:00.000Z
2020-03-09T17:51:00.000Z
python/ctypes/hello_rust/hello_rust_ctypes.py
JamesMcGuigan/ecosystem-research
bfd98bd5b0a2165f449eb36b368b54fe972374fe
[ "MIT" ]
null
null
null
from ctypes import * rust = cdll.LoadLibrary("./target/debug/libhello_rust.dylib") answer = rust.times2(64) print('rust.times2(64)', rust.times2(64))
25.5
63
0.72549
0
0
0
0
0
0
0
0
53
0.346405
1498ede07d931cf49daf4b8c46bbfef73eb7fec5
2,323
py
Python
black_jack.py
brynpatel/Deck-of-cards
4d775940895d32fcb9ae25db17adc865c7e8befe
[ "MIT" ]
null
null
null
black_jack.py
brynpatel/Deck-of-cards
4d775940895d32fcb9ae25db17adc865c7e8befe
[ "MIT" ]
null
null
null
black_jack.py
brynpatel/Deck-of-cards
4d775940895d32fcb9ae25db17adc865c7e8befe
[ "MIT" ]
null
null
null
from deck_of_cards import * def check(card1, card2): if card1.number == card2.number: check = True #Add special cards elif card1.suit == card2.suit: check = True else: check = False return check def turn(myCard, myHand, opponentsHand, deck): cardplayed = False w...
29.405063
85
0.577701
0
0
0
0
0
0
0
0
355
0.15282
1499d3b358461ba8ac5bf3d7291f9f342918734a
674
py
Python
dashboard/settings.py
hosseinmoghimi/instamarket
6f2f557843ff3105c6ca62a8b85311f0de79a2fe
[ "MIT" ]
3
2020-08-14T20:17:57.000Z
2020-09-15T19:35:40.000Z
dashboard/settings.py
hosseinmoghimi/instamarket
6f2f557843ff3105c6ca62a8b85311f0de79a2fe
[ "MIT" ]
5
2020-08-16T21:47:12.000Z
2020-08-17T03:18:10.000Z
dashboard/settings.py
hosseinmoghimi/instamarket
6f2f557843ff3105c6ca62a8b85311f0de79a2fe
[ "MIT" ]
null
null
null
from instamarket import settings ON_SERVER=settings.ON_SERVER ON_HEROKU=settings.ON_HEROKU ON_MAGGIE=settings.ON_MAGGIE REMOTE_MEDIA=settings.REMOTE_MEDIA ON_SERVER=settings.ON_SERVER DEBUG=settings.DEBUG BASE_DIR=settings.BASE_DIR COMING_SOON=settings.COMING_SOON MYSQL=settings.MYSQL TIME_ZONE=settings.TIME_ZONE STA...
22.466667
50
0.876855
0
0
0
0
0
0
0
0
57
0.08457
1499e05f9e701f51c62ae9adf1ada191425c6e1e
326
py
Python
mindpile/Utility/memo.py
MelbourneHighSchoolRobotics/Mindpile
9dd0a14ee336810c2b62826afff4da8719455ba0
[ "BSD-3-Clause" ]
2
2021-02-16T22:21:36.000Z
2021-02-17T03:16:30.000Z
mindpile/Utility/memo.py
MelbourneHighSchoolRobotics/Mindpile
9dd0a14ee336810c2b62826afff4da8719455ba0
[ "BSD-3-Clause" ]
2
2021-02-17T03:20:24.000Z
2021-04-30T06:46:02.000Z
mindpile/Utility/memo.py
MelbourneHighSchoolRobotics/mindpile
9dd0a14ee336810c2b62826afff4da8719455ba0
[ "BSD-3-Clause" ]
null
null
null
import functools def memoise(func): @functools.wraps(func) def wrapper(*args, **kwargs): if not wrapper.hasResult: wrapper.result = func(*args, **kwargs) wrapper.hasResult = True return wrapper.result wrapper.result = None wrapper.hasResult = False return wr...
23.285714
50
0.628834
0
0
0
0
208
0.638037
0
0
0
0
149d6e3aa3b814bd2610d018aafdae3c04933009
348
py
Python
tests/__init__.py
UOC/dlkit
a9d265db67e81b9e0f405457464e762e2c03f769
[ "MIT" ]
2
2018-02-23T12:16:11.000Z
2020-10-08T17:54:24.000Z
tests/__init__.py
UOC/dlkit
a9d265db67e81b9e0f405457464e762e2c03f769
[ "MIT" ]
87
2017-04-21T18:57:15.000Z
2021-12-13T19:43:57.000Z
tests/__init__.py
UOC/dlkit
a9d265db67e81b9e0f405457464e762e2c03f769
[ "MIT" ]
1
2018-03-01T16:44:25.000Z
2018-03-01T16:44:25.000Z
# Pytest fixtures to get different DLKit configs during tests # Implemented from documentation here: # https://docs.pytest.org/en/latest/unittest.html import pytest @pytest.fixture(scope="class", params=['TEST_SERVICE', 'TEST_SERVICE_FUNCTIONAL']) def dlkit_service_config(request): request.cls....
29
67
0.747126
0
0
0
0
177
0.508621
0
0
196
0.563218
149df9e3f7439d9013fa722d9aa4c7ae4e678566
1,432
py
Python
dataloaders.py
mrubio-chavarria/project_2
c78d5e4048af193770d52efb2c5a132f6eb6370c
[ "MIT" ]
null
null
null
dataloaders.py
mrubio-chavarria/project_2
c78d5e4048af193770d52efb2c5a132f6eb6370c
[ "MIT" ]
null
null
null
dataloaders.py
mrubio-chavarria/project_2
c78d5e4048af193770d52efb2c5a132f6eb6370c
[ "MIT" ]
null
null
null
#!/venv/bin python """ DESCRIPTION: This file contains wrappers and variations on DataLoader. """ # Libraries import os from random import shuffle import torch import numpy as np from torch.utils.data import Dataset from resquiggle_utils import parse_resquiggle, window_resquiggle from torch import nn class Combined...
22.730159
93
0.639665
1,111
0.775838
162
0.113128
0
0
0
0
253
0.176676
149ef58d13dd8a52e0e9a53ee7b6bc88f4c88418
405
py
Python
setup.py
bkanchan6/high-res-stereo
80eb23ce0fe532f4cd238f25b4c3fced249269e3
[ "MIT" ]
null
null
null
setup.py
bkanchan6/high-res-stereo
80eb23ce0fe532f4cd238f25b4c3fced249269e3
[ "MIT" ]
null
null
null
setup.py
bkanchan6/high-res-stereo
80eb23ce0fe532f4cd238f25b4c3fced249269e3
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages import os version = "0.0.1" if "VERSION" in os.environ: version = os.environ["VERSION"] setup( name="high-res-stereo", version=version, description="high-res-stereo", author="Jariullah Safi", author_email="safijari@isu.edu", packages=find_packag...
22.5
76
0.68642
0
0
0
0
0
0
0
0
139
0.34321
149f1595ee377a7f0c819fd8202bd1c39fe66ec2
7,169
py
Python
main.py
tokudaek/image-viewer
262e2ccb165824b3edbb275cc981650487ed8cf4
[ "MIT" ]
null
null
null
main.py
tokudaek/image-viewer
262e2ccb165824b3edbb275cc981650487ed8cf4
[ "MIT" ]
1
2017-03-28T15:23:07.000Z
2017-03-28T15:23:07.000Z
main.py
tokudaek/image-viewer
262e2ccb165824b3edbb275cc981650487ed8cf4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Image viewer based on Tkinter and integrated to the database. """ ##########################################################IMPORTS import argparse import os import tkinter import tkinter.messagebox import tkinter.filedialog import tkinter.font import PIL import PIL.Image import PIL.ImageTk i...
32.004464
87
0.594644
5,045
0.703724
0
0
0
0
0
0
984
0.137258
149fdd39d511ea3e1c778093005d088b6ec5befd
1,882
py
Python
ozellikler/tarih.py
ny4rlk0/nyarlko
e4224ed11647ffbbdf86d9e7c7834e2d5dc2966c
[ "MIT" ]
null
null
null
ozellikler/tarih.py
ny4rlk0/nyarlko
e4224ed11647ffbbdf86d9e7c7834e2d5dc2966c
[ "MIT" ]
null
null
null
ozellikler/tarih.py
ny4rlk0/nyarlko
e4224ed11647ffbbdf86d9e7c7834e2d5dc2966c
[ "MIT" ]
null
null
null
import datetime as suan def al(text): try: zaman=suan.datetime.now() saat=zaman.strftime("%H") dakika=zaman.strftime("%M") saniye=zaman.strftime("%S") gun=zaman.strftime("%A") ay=zaman.strftime("%B") yil=zaman.strftime("%Y") if gun=="Monday...
30.852459
94
0.463337
0
0
0
0
0
0
0
0
469
0.246972
14a1226bd39340b0ae889c9808fb6bb548a8f7b1
10,467
py
Python
examples/xlnet/utils/processor.py
qinzzz/texar-pytorch
d66258a599a291418004170e62864b001b650926
[ "Apache-2.0" ]
746
2019-06-09T12:38:52.000Z
2022-03-23T12:40:55.000Z
examples/xlnet/utils/processor.py
qinzzz/texar-pytorch
d66258a599a291418004170e62864b001b650926
[ "Apache-2.0" ]
247
2019-06-11T18:32:44.000Z
2022-02-17T20:12:04.000Z
examples/xlnet/utils/processor.py
qinzzz/texar-pytorch
d66258a599a291418004170e62864b001b650926
[ "Apache-2.0" ]
143
2019-06-10T19:38:30.000Z
2022-03-13T09:43:10.000Z
# Copyright 2019 The Texar Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
35.361486
80
0.602369
9,168
0.875896
0
0
5,259
0.502436
0
0
2,568
0.245343
14a2c2afb9c59044a6c39bbd0a8f0ba276f110ad
4,110
py
Python
src/pyhf_benchmark/plot.py
pyhf/pyhf-benchmark
bc0f91253e8d6d4dbc7205cabf0ec7a9d5402dcf
[ "Apache-2.0" ]
3
2020-05-22T22:50:22.000Z
2020-06-02T16:28:37.000Z
src/pyhf_benchmark/plot.py
pyhf/pyhf-benchmark
bc0f91253e8d6d4dbc7205cabf0ec7a9d5402dcf
[ "Apache-2.0" ]
30
2020-06-02T16:22:27.000Z
2020-08-20T04:55:59.000Z
src/pyhf_benchmark/plot.py
pyhf/pyhf-benchmark
bc0f91253e8d6d4dbc7205cabf0ec7a9d5402dcf
[ "Apache-2.0" ]
1
2020-07-28T02:32:58.000Z
2020-07-28T02:32:58.000Z
import json import pandas as pd import time import matplotlib.pyplot as plt ylabels = [ "CPU Utilization (%)", "Disk I/O Utilization (%)", "Process CPU Threads In Use", "Network Traffic (bytes)", "System Memory Utilization (%)", "Process Memory Available (non-swap) (MB)", "Process Memory In...
29.568345
84
0.605596
0
0
0
0
0
0
0
0
1,131
0.275049
14a5b4ceef7a61b358d2f461acdd1773fb472818
3,045
py
Python
serial.py
Tythos/SeRes
724dcfff8a4fbeb77090cb6e6cf0bd101abe70e4
[ "MIT" ]
null
null
null
serial.py
Tythos/SeRes
724dcfff8a4fbeb77090cb6e6cf0bd101abe70e4
[ "MIT" ]
null
null
null
serial.py
Tythos/SeRes
724dcfff8a4fbeb77090cb6e6cf0bd101abe70e4
[ "MIT" ]
null
null
null
"""Serial objects are responsible for: * Maintaining specific catalogues of Format and Protocol parsers * Serializing and deserializing Python objects to and from dictionary equivalents Eventually, the second item will need to support more complex types, such as user-defined enumerations. For now, the following f...
32.393617
133
0.7133
0
0
0
0
0
0
0
0
1,666
0.547126
14a6ef3b95c24784d64e5d97515f9bb8133b3f76
3,893
py
Python
Scraper.py
Warthog710/FFXIV-Alert-API
5264eeae2c67cb3e0bfe09169a207d9ec63012ce
[ "MIT" ]
null
null
null
Scraper.py
Warthog710/FFXIV-Alert-API
5264eeae2c67cb3e0bfe09169a207d9ec63012ce
[ "MIT" ]
null
null
null
Scraper.py
Warthog710/FFXIV-Alert-API
5264eeae2c67cb3e0bfe09169a207d9ec63012ce
[ "MIT" ]
null
null
null
import requests import atexit from apscheduler.schedulers.background import BackgroundScheduler from bs4 import BeautifulSoup class lodeStoneScraper: def __init__(self): self.__URL = 'https://na.finalfantasyxiv.com/lodestone/worldstatus/' self.__statistics = {} self.update_page() ...
37.432692
123
0.624454
3,765
0.96712
0
0
0
0
0
0
1,085
0.278705
14a796965ec7f09f47a00c7f1ad7492a84deaf81
1,078
py
Python
carmesi/nucleo/tests/constant.py
RedGranatum/Carmesi
bde1d4dd104401ba08e7ba2f3de5b9d5f537dd94
[ "MIT" ]
null
null
null
carmesi/nucleo/tests/constant.py
RedGranatum/Carmesi
bde1d4dd104401ba08e7ba2f3de5b9d5f537dd94
[ "MIT" ]
null
null
null
carmesi/nucleo/tests/constant.py
RedGranatum/Carmesi
bde1d4dd104401ba08e7ba2f3de5b9d5f537dd94
[ "MIT" ]
null
null
null
TOKEN_PREALTA_CLIENTE = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbWFpbCI6InJhdWx0ckBnbWFpbC5jb20iLCJleHAiOjQ3MzM1MTA0MDAsIm93bmVyX25hbWUiOiJSYXVsIEVucmlxdWUgVG9ycmVzIFJleWVzIiwidHlwZSI6ImVtYWlsX2NvbmZpcm1hdGlvbl9uZXdfY2xpZW50In0.R-nXh1nXvlBABfEdV1g81mdIzJqMFLvFV7FAP7PQRCM' TOKEN_PREALTA_CLIENTE_CADUCO = 'eyJ0eXAiOiJ...
119.777778
299
0.963822
0
0
0
0
0
0
0
0
969
0.898887
14a905270cca517cd153387fad1257a23aa0b010
275
py
Python
futbol-news/backend/app/app/models/search_term.py
davidespicolomina/proyecto-personal
807445546d493f9c092720e18e5fefa3281da4c9
[ "Apache-2.0" ]
null
null
null
futbol-news/backend/app/app/models/search_term.py
davidespicolomina/proyecto-personal
807445546d493f9c092720e18e5fefa3281da4c9
[ "Apache-2.0" ]
null
null
null
futbol-news/backend/app/app/models/search_term.py
davidespicolomina/proyecto-personal
807445546d493f9c092720e18e5fefa3281da4c9
[ "Apache-2.0" ]
null
null
null
from sqlalchemy import Column, Integer, String from app.db.base_class import Base class SearchTerm(Base): id = Column(Integer, primary_key=True, index=True) term = Column(String, nullable=False, comment="Término de búsqueda para filtros", unique=True, index=True)
30.555556
110
0.76
191
0.689531
0
0
0
0
0
0
36
0.129964
14abdb3685da3455677e3f4bfa4490aa74a6ac0c
2,565
py
Python
trufimonitor/configParser.py
trufi-association/trufi-monitor-backend
8974a061debe3582605a6e6ec63e4116fe7ef60b
[ "MIT" ]
null
null
null
trufimonitor/configParser.py
trufi-association/trufi-monitor-backend
8974a061debe3582605a6e6ec63e4116fe7ef60b
[ "MIT" ]
null
null
null
trufimonitor/configParser.py
trufi-association/trufi-monitor-backend
8974a061debe3582605a6e6ec63e4116fe7ef60b
[ "MIT" ]
null
null
null
""" It converts Strings in the format # to deactivate commands just comment them out by putting a # to the beginning of the line # optional commands can be deactivated by putting a # to the lines' beginning and activated by removing # from the beginning # replace 'example.com' with the hostname or ip address of the se...
40.078125
131
0.727096
795
0.309579
0
0
0
0
0
0
1,977
0.76986
14ac2d2492de50193750cbad1ef4a4ffc1cccf0a
618
py
Python
app/core/serializers.py
jblanquicett92/django_celery_app
5b0069905ec721cc1632611f08c733a5b93d20d8
[ "MIT" ]
null
null
null
app/core/serializers.py
jblanquicett92/django_celery_app
5b0069905ec721cc1632611f08c733a5b93d20d8
[ "MIT" ]
null
null
null
app/core/serializers.py
jblanquicett92/django_celery_app
5b0069905ec721cc1632611f08c733a5b93d20d8
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import Event, Notification class EventSerializer(serializers.ModelSerializer): class Meta: model = Event exclude = ('id', 'moved_to', 'received_timestamp',) class EventExcludeIDSerializer(serializers.ModelSerializer): class Meta: mode...
25.75
77
0.669903
505
0.817152
0
0
0
0
0
0
90
0.145631
14ae087d34a01217e2efdb31229417cab63aa812
3,458
py
Python
modules/plugin_tablecheckbox.py
jredrejo/sqlabs
2cf39ff924579e72bc0092f2a6d65214dafd4bfe
[ "MIT" ]
1
2017-12-01T22:46:33.000Z
2017-12-01T22:46:33.000Z
modules/plugin_tablecheckbox.py
jredrejo/sqlabs
2cf39ff924579e72bc0092f2a6d65214dafd4bfe
[ "MIT" ]
null
null
null
modules/plugin_tablecheckbox.py
jredrejo/sqlabs
2cf39ff924579e72bc0092f2a6d65214dafd4bfe
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # This plugins is licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php # Authors: Kenji Hosoda <hosoda@s-cubism.jp> from gluon import * class TableCheckbox(FORM): def __init__(self, id_getter=lambda row: row.id, tablecheckbox_var='tablech...
45.5
109
0.589647
3,265
0.944187
0
0
0
0
0
0
1,355
0.391845
14b1286bb9090e5e7de52578dcf3d83c33bdb3b1
2,781
py
Python
src/py_dss_interface/models/Sensors/SensorsV.py
davilamds/py_dss_interface
a447c97787aeac962381db88dd622ccb235eef4b
[ "MIT" ]
8
2020-08-15T12:56:03.000Z
2022-01-04T15:51:14.000Z
src/py_dss_interface/models/Sensors/SensorsV.py
rodolfoplondero/py_dss_interface
cb6771b34ed322a5df7ef1cc194611e794f26441
[ "MIT" ]
24
2021-04-24T18:33:19.000Z
2021-11-13T14:59:54.000Z
src/py_dss_interface/models/Sensors/SensorsV.py
rodolfoplondero/py_dss_interface
cb6771b34ed322a5df7ef1cc194611e794f26441
[ "MIT" ]
7
2020-08-15T12:56:04.000Z
2021-10-04T16:14:30.000Z
# -*- encoding: utf-8 -*- """ Created by eniocc at 11/10/2020 """ import ctypes from py_dss_interface.models import Bridge from py_dss_interface.models.Base import Base from py_dss_interface.models.Sensors.SensorsS import SensorsS from py_dss_interface.models.Text.Text import Text class SensorsV(Base): """ ...
44.142857
115
0.703344
2,494
0.8968
0
0
0
0
0
0
1,211
0.435455
14b28f425c17976ebe25adcac758c6934615dd00
25,967
py
Python
netapp/santricity/models/v2/__init__.py
NetApp/santricity-webapi-pythonsdk
1d3df4a00561192f4cdcdd1890f4d27547ed2de2
[ "BSD-3-Clause-Clear" ]
5
2016-08-23T17:52:22.000Z
2019-05-16T08:45:30.000Z
netapp/santricity/models/v2/__init__.py
NetApp/santricity-webapi-pythonsdk
1d3df4a00561192f4cdcdd1890f4d27547ed2de2
[ "BSD-3-Clause-Clear" ]
2
2016-11-10T05:30:21.000Z
2019-04-05T15:03:37.000Z
netapp/santricity/models/v2/__init__.py
NetApp/santricity-webapi-pythonsdk
1d3df4a00561192f4cdcdd1890f4d27547ed2de2
[ "BSD-3-Clause-Clear" ]
7
2016-08-25T16:11:44.000Z
2021-02-22T05:31:25.000Z
from __future__ import absolute_import # import models into model package from netapp.santricity.models.v2.access_volume_ex import AccessVolumeEx from netapp.santricity.models.v2.add_batch_cg_members_request import AddBatchCGMembersRequest from netapp.santricity.models.v2.add_consistency_group_member_request impo...
85.69967
129
0.89606
0
0
0
0
0
0
0
0
35
0.001348
14b3ea58e56ed94f8934f892735450dec9e7e14d
629
py
Python
config/wsgi.py
e2718281/template_test
3d47741e657138b1ccfee7af19476a796a099b2b
[ "MIT" ]
null
null
null
config/wsgi.py
e2718281/template_test
3d47741e657138b1ccfee7af19476a796a099b2b
[ "MIT" ]
null
null
null
config/wsgi.py
e2718281/template_test
3d47741e657138b1ccfee7af19476a796a099b2b
[ "MIT" ]
null
null
null
""" WSGI config for test_project project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/ """ import os import sys from django.core.wsgi import get_wsgi_application # This allows easy...
27.347826
78
0.779014
0
0
0
0
0
0
0
0
379
0.602544
14b53da5ae7dc9a0ddd6d2cbcafa9f97c4f9a304
747
py
Python
app/app/migrations/0001_initial.py
poornachandrakashi/covid-cough-prediction
3466d21c1e9e9931484db486116afe8f591e6ab8
[ "MIT" ]
3
2020-04-05T21:09:07.000Z
2022-02-15T15:23:37.000Z
app/app/migrations/0001_initial.py
poornachandrakashi/covid-cough-prediction
3466d21c1e9e9931484db486116afe8f591e6ab8
[ "MIT" ]
2
2020-06-06T01:42:31.000Z
2021-06-10T22:43:54.000Z
app/app/migrations/0001_initial.py
poornachandrakashi/covid-cough-prediction
3466d21c1e9e9931484db486116afe8f591e6ab8
[ "MIT" ]
3
2020-04-08T12:53:47.000Z
2021-08-10T11:10:32.000Z
# Generated by Django 2.1.1 on 2020-04-05 06:12 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Response', fields=[ ('id', models.AutoField...
28.730769
114
0.570281
654
0.875502
0
0
0
0
0
0
110
0.147256
14b6e3bd8ac3a7eb4e7e8620a55ce89ce7b5721c
1,534
py
Python
apps/brew/settings.py
martync/zython
e008bbb33e212f0856e85b8594003402e0a635c0
[ "Beerware" ]
null
null
null
apps/brew/settings.py
martync/zython
e008bbb33e212f0856e85b8594003402e0a635c0
[ "Beerware" ]
5
2020-06-05T21:26:16.000Z
2022-01-13T01:21:27.000Z
apps/brew/settings.py
martync/zython
e008bbb33e212f0856e85b8594003402e0a635c0
[ "Beerware" ]
null
null
null
SRM_TO_HEX = { "0": "#FFFFFF", "1": "#F3F993", "2": "#F5F75C", "3": "#F6F513", "4": "#EAE615", "5": "#E0D01B", "6": "#D5BC26", "7": "#CDAA37", "8": "#C1963C", "9": "#BE8C3A", "10": "#BE823A", "11": "#C17A37", "12": "#BF7138", "13": "#BC6733", "14": "#B26033", ...
22.895522
46
0.468057
0
0
0
0
0
0
0
0
1,000
0.65189
14b757978821b5341ed6a4a277fcfd2e75bc9742
107
py
Python
egs/codeswitching/asr/local_yzl23/test_libsndfile.py
luyizhou4/espnet
a408b9372df3f57ef33b8a378a8d9abc7f872cf5
[ "Apache-2.0" ]
null
null
null
egs/codeswitching/asr/local_yzl23/test_libsndfile.py
luyizhou4/espnet
a408b9372df3f57ef33b8a378a8d9abc7f872cf5
[ "Apache-2.0" ]
null
null
null
egs/codeswitching/asr/local_yzl23/test_libsndfile.py
luyizhou4/espnet
a408b9372df3f57ef33b8a378a8d9abc7f872cf5
[ "Apache-2.0" ]
null
null
null
from ctypes.util import find_library as _find_library print(_find_library('sndfile')) print('test fine')
17.833333
53
0.794393
0
0
0
0
0
0
0
0
20
0.186916
14b9762b78c281460ee5ec96e6878f3d8ee83597
561
py
Python
tests/test_utils.py
vnmabus/incense
6542c7cb082e313f4caa77fdb04be65ebc15bc65
[ "MIT" ]
78
2019-01-23T10:50:18.000Z
2022-03-26T15:17:18.000Z
tests/test_utils.py
vnmabus/incense
6542c7cb082e313f4caa77fdb04be65ebc15bc65
[ "MIT" ]
59
2018-12-31T18:13:13.000Z
2021-08-25T15:24:28.000Z
tests/test_utils.py
vnmabus/incense
6542c7cb082e313f4caa77fdb04be65ebc15bc65
[ "MIT" ]
6
2019-06-25T18:48:00.000Z
2021-04-12T18:51:38.000Z
from incense import utils def test_find_differing_config_keys(loader): assert utils.find_differing_config_keys(loader.find_by_ids([1, 2])) == {"epochs"} assert utils.find_differing_config_keys(loader.find_by_ids([1, 3])) == {"optimizer"} assert utils.find_differing_config_keys(loader.find_by_ids([2, 3])) ...
40.071429
98
0.727273
0
0
0
0
0
0
0
0
101
0.180036
14b9e8b4dcb1e20a307af26c71e8f867c0782a0d
285
py
Python
tdd/run.py
LarsAsplund/vunit_tdd
db16c32968675abdacc9939e3573f37a2cbaf431
[ "MIT" ]
10
2020-08-12T22:27:15.000Z
2022-03-31T13:34:12.000Z
tdd/run.py
LarsAsplund/vunit_tdd
db16c32968675abdacc9939e3573f37a2cbaf431
[ "MIT" ]
7
2021-09-06T05:30:07.000Z
2021-09-08T02:25:41.000Z
tdd/run.py
LarsAsplund/vunit_tdd
db16c32968675abdacc9939e3573f37a2cbaf431
[ "MIT" ]
3
2021-05-27T11:31:45.000Z
2021-05-28T07:22:08.000Z
#!/usr/bin/env python3 """VUnit run script.""" from pathlib import Path from vunit import VUnit prj = VUnit.from_argv() lib = prj.add_library("lib") root = Path(__file__).parent lib.add_source_files(root / "src" / "*.vhd") lib.add_source_files(root / "test" / "*.vhd") prj.main()
17.8125
45
0.687719
0
0
0
0
0
0
0
0
75
0.263158
14bc1271077b75e0d1cf036fe2b3bbfce7418f99
6,420
py
Python
tests/test_regular.py
atiqm/adapt
af9833cb7e698bdcb722941622d67c06f04822f7
[ "BSD-2-Clause" ]
null
null
null
tests/test_regular.py
atiqm/adapt
af9833cb7e698bdcb722941622d67c06f04822f7
[ "BSD-2-Clause" ]
null
null
null
tests/test_regular.py
atiqm/adapt
af9833cb7e698bdcb722941622d67c06f04822f7
[ "BSD-2-Clause" ]
null
null
null
""" Test functions for regular module. """ import pytest import numpy as np from sklearn.linear_model import LinearRegression, LogisticRegression from sklearn.base import clone import tensorflow as tf from tensorflow.keras import Sequential, Model from tensorflow.keras.layers import Dense from tensorflow.keras.optimiz...
32.923077
84
0.634579
0
0
0
0
0
0
0
0
222
0.034579
14bd6078e39ef46714d7bb697f11da50734262f2
1,810
py
Python
tests/test_env_var.py
sfelix-martins/laradock-up-env
7e7e3e513083afedf724a9b4e2dd8c6ff0b9eb71
[ "MIT" ]
2
2020-10-06T15:40:43.000Z
2020-11-27T12:13:10.000Z
tests/test_env_var.py
sfelix-martins/laradock-up-env
7e7e3e513083afedf724a9b4e2dd8c6ff0b9eb71
[ "MIT" ]
5
2019-11-10T12:08:35.000Z
2019-11-10T13:34:54.000Z
tests/test_env_var.py
sfelix-martins/laradock-multiple-env
7e7e3e513083afedf724a9b4e2dd8c6ff0b9eb71
[ "MIT" ]
1
2020-11-27T12:13:13.000Z
2020-11-27T12:13:13.000Z
import unittest from multienv.config import Config from multienv.env_var import EnvVar from multienv.exceptions import InvalidYamlFileException, \ EnvVarContainerBuildNotFoundException class EnvVarTestCase(unittest.TestCase): def test_get_containers_to_rebuild_with_existent_env_var(self): config = Co...
39.347826
79
0.649724
1,568
0.866298
0
0
0
0
0
0
275
0.151934
14bd7f91251b03987f5221c2978864b319af6c5c
3,097
py
Python
Payload_Type/apollo/mythic/agent_functions/assembly_inject.py
n0pe-sled/Apollo
cfc5804d163e1b47f6614321434a717b2bd2066f
[ "BSD-3-Clause" ]
null
null
null
Payload_Type/apollo/mythic/agent_functions/assembly_inject.py
n0pe-sled/Apollo
cfc5804d163e1b47f6614321434a717b2bd2066f
[ "BSD-3-Clause" ]
null
null
null
Payload_Type/apollo/mythic/agent_functions/assembly_inject.py
n0pe-sled/Apollo
cfc5804d163e1b47f6614321434a717b2bd2066f
[ "BSD-3-Clause" ]
null
null
null
from mythic_payloadtype_container.MythicCommandBase import * import json from uuid import uuid4 from os import path from mythic_payloadtype_container.MythicRPC import * import base64 import donut class AssemblyInjectArguments(TaskArguments): def __init__(self, command_line): super().__init__(command_line)...
41.293333
164
0.638037
2,887
0.932192
0
0
0
0
1,704
0.55021
643
0.20762
14bdf9d8a47eb3b241902145e3f586e258032f0c
6,211
py
Python
Lab_Week_05_-_Value_Functions,_Policies_and_Policy_Iteration/Solutions/recycling_robot/recycling_robot_environment.py
annasu1225/COMP0037-21_22
e98e8d278b35ee0550e6c09b35ab08b23e60ca82
[ "Apache-2.0" ]
null
null
null
Lab_Week_05_-_Value_Functions,_Policies_and_Policy_Iteration/Solutions/recycling_robot/recycling_robot_environment.py
annasu1225/COMP0037-21_22
e98e8d278b35ee0550e6c09b35ab08b23e60ca82
[ "Apache-2.0" ]
null
null
null
Lab_Week_05_-_Value_Functions,_Policies_and_Policy_Iteration/Solutions/recycling_robot/recycling_robot_environment.py
annasu1225/COMP0037-21_22
e98e8d278b35ee0550e6c09b35ab08b23e60ca82
[ "Apache-2.0" ]
null
null
null
''' Created on 4 Feb 2022 @author: ucacsjj ''' import random from enum import Enum import numpy as np from gym import Env, spaces from .robot_states_and_actions import * # This environment affords a much lower level control of the robot than the # battery environment. It is partially inspired by the AI Gymn Frozen...
33.572973
84
0.555144
5,853
0.94236
0
0
0
0
0
0
1,380
0.222186
14c105a1705141babfa862aab74d81e82f18db15
753
py
Python
arc/queues.py
arc-repos/arc-functions-python
796e7661afa069c3a2f7bc609fd0c0af512244cb
[ "Apache-2.0" ]
4
2020-05-21T04:55:02.000Z
2020-12-22T02:17:30.000Z
arc/queues.py
arc-repos/arc-functions-python
796e7661afa069c3a2f7bc609fd0c0af512244cb
[ "Apache-2.0" ]
10
2020-02-04T02:00:47.000Z
2021-06-25T15:34:47.000Z
arc/queues.py
arc-repos/arc-functions-python
796e7661afa069c3a2f7bc609fd0c0af512244cb
[ "Apache-2.0" ]
3
2020-03-02T22:17:18.000Z
2021-03-11T09:50:52.000Z
import boto3 import json import urllib.request import os from . import reflect def publish(name, payload): if os.environ.get("NODE_ENV") == "testing": try: dump = json.dumps({"name": name, "payload": payload}) data = bytes(dump.encode()) handler = urllib.request.urlope...
28.961538
82
0.584329
0
0
0
0
0
0
0
0
124
0.164675
1ad1eb88994e214fd47ed40845356d1110f90028
1,927
py
Python
format_database.py
CS3244-Group10/NameABird
e41c1c5a38b062943b1f6c0d8b51afe80b13c4ca
[ "MIT" ]
null
null
null
format_database.py
CS3244-Group10/NameABird
e41c1c5a38b062943b1f6c0d8b51afe80b13c4ca
[ "MIT" ]
null
null
null
format_database.py
CS3244-Group10/NameABird
e41c1c5a38b062943b1f6c0d8b51afe80b13c4ca
[ "MIT" ]
2
2018-04-08T12:04:59.000Z
2018-04-13T05:25:09.000Z
import os import numpy as np from scipy.misc import imread, imresize def load_image_labels(dataset_path=''): labels = {} with open(os.path.join(dataset_path, 'image_class_labels.txt')) as f: for line in f: pieces = line.strip().split() image_id = pieces[0] class_i...
29.19697
121
0.626362
0
0
0
0
0
0
0
0
71
0.036845
1ad2c6a11db3d3af3b1a5dc0792859101e67bf90
1,964
py
Python
tools/tflitefile_tool/parser/tflite_parser.py
YongseopKim/ONE
65d4a582621deb0a594343d9cc40ec777ad77e57
[ "Apache-2.0" ]
null
null
null
tools/tflitefile_tool/parser/tflite_parser.py
YongseopKim/ONE
65d4a582621deb0a594343d9cc40ec777ad77e57
[ "Apache-2.0" ]
36
2020-06-17T04:48:55.000Z
2022-02-07T12:04:10.000Z
tools/tflitefile_tool/parser/tflite_parser.py
YongseopKim/ONE
65d4a582621deb0a594343d9cc40ec777ad77e57
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2021 Samsung Electronics Co., Ltd. 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...
33.862069
78
0.67057
1,177
0.599287
0
0
0
0
0
0
816
0.415479
1ad2ef9f07071572275789fdd3c3da196769692b
6,857
py
Python
modules/text/text_generation/plato2_en_base/module.py
AK391/PaddleHub
a51ab7447e089776766becb3297e560dfed98573
[ "Apache-2.0" ]
8,360
2019-01-18T10:46:45.000Z
2022-03-31T14:50:02.000Z
modules/text/text_generation/plato2_en_base/module.py
dwuping/PaddleHub
9a3b23295947e22149cc85c17cb4cf23c03f9e06
[ "Apache-2.0" ]
1,158
2019-04-11T09:22:43.000Z
2022-03-31T12:12:09.000Z
modules/text/text_generation/plato2_en_base/module.py
dwuping/PaddleHub
9a3b23295947e22149cc85c17cb4cf23c03f9e06
[ "Apache-2.0" ]
1,677
2019-04-09T15:07:40.000Z
2022-03-31T06:41:10.000Z
# coding:utf-8 # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License" # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
37.883978
151
0.648972
4,949
0.721744
426
0.062126
5,244
0.764766
0
0
2,596
0.378591
1ad42eeaa6ca55779055e15041fcb384578133d5
929
py
Python
Uncuffed/web/routes.py
WckdAwe/Uncuffed
c86c2ef33c689d7895ff45e9ba6108a9f7831c2d
[ "MIT" ]
2
2021-09-16T09:17:34.000Z
2021-11-18T12:44:34.000Z
Uncuffed/web/routes.py
WckdAwe/Uncuffed
c86c2ef33c689d7895ff45e9ba6108a9f7831c2d
[ "MIT" ]
null
null
null
Uncuffed/web/routes.py
WckdAwe/Uncuffed
c86c2ef33c689d7895ff45e9ba6108a9f7831c2d
[ "MIT" ]
null
null
null
# ------ [ API ] ------ API = '/api' # ---------- [ BLOCKCHAIN ] ---------- API_BLOCKCHAIN = f'{API}/blockchain' API_BLOCKCHAIN_LENGTH = f'{API_BLOCKCHAIN}/length' API_BLOCKCHAIN_BLOCKS = f'{API_BLOCKCHAIN}/blocks' # ---------- [ BROADCASTS ] ---------- API_BROADCASTS = f'{API}/broadcasts' API_BROADCASTS_NEW_BLOCK =...
27.323529
68
0.652314
0
0
0
0
0
0
0
0
550
0.592034
1ad46089871178a892672859920709ee5db5e62e
1,748
py
Python
autumn/infrastructure/tasks/utils.py
emmamcbryde/AuTuMN-1
b1e7de15ac6ef6bed95a80efab17f0780ec9ff6f
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
autumn/infrastructure/tasks/utils.py
emmamcbryde/AuTuMN-1
b1e7de15ac6ef6bed95a80efab17f0780ec9ff6f
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
autumn/infrastructure/tasks/utils.py
emmamcbryde/AuTuMN-1
b1e7de15ac6ef6bed95a80efab17f0780ec9ff6f
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
import logging import logging.config import socket import os from autumn.core.utils.runs import read_run_id from autumn.core.project import Project, get_project def get_project_from_run_id(run_id: str) -> Project: app_name, region_name, _, _ = read_run_id(run_id) return get_project(app_name, region_name) d...
28.193548
81
0.548627
0
0
0
0
0
0
0
0
428
0.244851
1ad6a9afd46eb178c8ea9b62b017c639613e7aef
6,433
py
Python
lib/datasets/wider_face.py
thesuperorange/face-faster-rcnn.pytorch
cfc11e792f87fb132674680f34db193996ea6890
[ "MIT" ]
14
2018-04-16T13:02:04.000Z
2020-05-09T15:33:20.000Z
faster-RCNN/lib/datasets/wider_face.py
thesuperorange/deepMI3
ddc502c831d2f12325157d7503e1e39a218ebe21
[ "MIT" ]
null
null
null
faster-RCNN/lib/datasets/wider_face.py
thesuperorange/deepMI3
ddc502c831d2f12325157d7503e1e39a218ebe21
[ "MIT" ]
5
2018-08-06T13:48:59.000Z
2022-01-14T05:57:27.000Z
# -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick and Xinlei Chen # -------------------------------------------------------- from __future__ import absolute_import from __future__ i...
38.065089
112
0.581222
5,880
0.914037
0
0
0
0
0
0
1,822
0.283227
1ad8a215b26ac1fc0fb1060b601d1debf1dc679f
573
py
Python
locale/pot/api/core/_autosummary/pyvista-ExplicitStructuredGrid-compute_implicit_distance-1.py
tkoyama010/pyvista-doc-translations
23bb813387b7f8bfe17e86c2244d5dd2243990db
[ "MIT" ]
4
2020-08-07T08:19:19.000Z
2020-12-04T09:51:11.000Z
locale/pot/api/core/_autosummary/pyvista-UnstructuredGrid-compute_implicit_distance-1.py
tkoyama010/pyvista-doc-translations
23bb813387b7f8bfe17e86c2244d5dd2243990db
[ "MIT" ]
19
2020-08-06T00:24:30.000Z
2022-03-30T19:22:24.000Z
locale/pot/api/core/_autosummary/pyvista-StructuredGrid-compute_implicit_distance-1.py
tkoyama010/pyvista-doc-translations
23bb813387b7f8bfe17e86c2244d5dd2243990db
[ "MIT" ]
1
2021-03-09T07:50:40.000Z
2021-03-09T07:50:40.000Z
# Compute the distance between all the points on a sphere and a # plane. # import pyvista as pv sphere = pv.Sphere() plane = pv.Plane() _ = sphere.compute_implicit_distance(plane, inplace=True) dist = sphere['implicit_distance'] type(dist) # Expected: ## <class 'numpy.ndarray'> # # Plot these distances as a heatmap # p...
26.045455
64
0.734729
0
0
0
0
0
0
0
0
308
0.537522
1ad93b581be550c1b778274bfd4d391d94cbf882
1,953
py
Python
web_Project/Data_Predict/predict_lead.py
mscenter1/pigpriceML
d51f645a590cebd65126e867d6ef0d3d437e9bc7
[ "MIT" ]
8
2019-02-02T11:41:28.000Z
2022-03-10T14:15:09.000Z
web_Project/Data_Predict/predict_lead.py
mscenter1/pigpriceML
d51f645a590cebd65126e867d6ef0d3d437e9bc7
[ "MIT" ]
2
2019-02-01T07:57:57.000Z
2021-03-01T06:16:35.000Z
web_Project/Data_Predict/predict_lead.py
mscenter1/pigpriceML
d51f645a590cebd65126e867d6ef0d3d437e9bc7
[ "MIT" ]
6
2019-02-01T07:17:38.000Z
2021-12-28T02:37:29.000Z
# -*- coding: utf-8 -*- # 系统模块 import sys # 数据处理模块 import pandas as pd # 引入外部模块 # 整理数据 from predict_prepare import Predict_Prepare as Prepare # 获取价格预测结果 from predict_predict import Predict_Predict as Predict class Predict_Lead: def __init__(self): pass # 其他包调用的函数 def predict_result(self): ...
35.509091
206
0.729647
2,249
0.891399
0
0
0
0
0
0
1,063
0.421324
1ada20acc9ce4a88cc954468b6dae92540d23e52
4,255
py
Python
aerforge/text.py
Aermoss/AerForge
1f57ff69f3b2f8052a2a266d3e5c04cfa4ec0e99
[ "MIT" ]
2
2021-09-24T12:57:07.000Z
2022-01-14T00:47:43.000Z
aerforge/text.py
Aermoss/AerForge
1f57ff69f3b2f8052a2a266d3e5c04cfa4ec0e99
[ "MIT" ]
null
null
null
aerforge/text.py
Aermoss/AerForge
1f57ff69f3b2f8052a2a266d3e5c04cfa4ec0e99
[ "MIT" ]
null
null
null
import pygame from aerforge.color import * from aerforge.error import * class Text: def __init__(self, window, text, font_size = 24, font_file = None, font_name = "arial", bold = False, italic = False, underline = False, color = Color(240, 240, 240), x = 0, y = 0, parent = None, add_to_objects = True): ...
26.93038
224
0.568038
4,176
0.981434
0
0
0
0
0
0
14
0.00329
1ada715fb82ce5567b931b5b4c65641a0f3234b9
47
py
Python
xchange/__init__.py
jrgparkinson/ouccc
36824cd944620b6e28795f43a24e17e648b1f0bb
[ "MIT" ]
null
null
null
xchange/__init__.py
jrgparkinson/ouccc
36824cd944620b6e28795f43a24e17e648b1f0bb
[ "MIT" ]
5
2020-06-06T00:19:41.000Z
2022-02-13T18:49:17.000Z
xchange/__init__.py
jrgparkinson/ouccc
36824cd944620b6e28795f43a24e17e648b1f0bb
[ "MIT" ]
null
null
null
default_app_config = 'webapp.apps.WebAppConfig'
47
47
0.851064
0
0
0
0
0
0
0
0
26
0.553191
1adbac124bbaf8f82229656776f6cf0f6360b65e
500
py
Python
setup.py
ruivieira/python-als
c98914991a0812084c85e0ded621334c24866b54
[ "Apache-2.0" ]
2
2021-03-02T04:44:08.000Z
2021-08-25T09:42:06.000Z
setup.py
ruivieira/python-als
c98914991a0812084c85e0ded621334c24866b54
[ "Apache-2.0" ]
null
null
null
setup.py
ruivieira/python-als
c98914991a0812084c85e0ded621334c24866b54
[ "Apache-2.0" ]
1
2019-05-19T10:51:53.000Z
2019-05-19T10:51:53.000Z
from distutils.core import setup setup( name='als', packages=['als'], version='0.0.2', description='Python library for Alternating Least Squares (ALS)', author='Rui Vieira', author_email='ruidevieira@googlemail.com', url='https://github.com/ruivieira/python-als', download_url='https://g...
31.25
83
0.652
0
0
0
0
0
0
0
0
273
0.546
1adbb705c738a912188b371ea95988590ae0bd44
8,274
py
Python
echolab2/instruments/util/bottom_data.py
iambaim/pyEcholab
6e165ad1a947e62fc233467631c445fe9ebcdad2
[ "MIT" ]
null
null
null
echolab2/instruments/util/bottom_data.py
iambaim/pyEcholab
6e165ad1a947e62fc233467631c445fe9ebcdad2
[ "MIT" ]
null
null
null
echolab2/instruments/util/bottom_data.py
iambaim/pyEcholab
6e165ad1a947e62fc233467631c445fe9ebcdad2
[ "MIT" ]
null
null
null
# coding=utf-8 # National Oceanic and Atmospheric Administration (NOAA) # Alaskan Fisheries Science Center (AFSC) # Resource Assessment and Conservation Engineering (RACE) # Midwater Assessment and Conservation Engineering (MACE) # THIS SOFTWARE AND ITS DOCUMENTATION ARE CONSIDERED TO BE IN THE PUBLI...
37.780822
98
0.634155
7,147
0.86379
0
0
0
0
0
0
5,234
0.632584
1adbdfb4bc66d95866bcc5ed925f8780b4dac055
318
py
Python
npy2f32.py
shaun95/LPCNet
117214c3a63d4f43cf5741b299c497e85c983327
[ "BSD-3-Clause" ]
null
null
null
npy2f32.py
shaun95/LPCNet
117214c3a63d4f43cf5741b299c497e85c983327
[ "BSD-3-Clause" ]
1
2020-06-17T12:07:27.000Z
2020-06-17T12:07:27.000Z
npy2f32.py
shaun95/LPCNet
117214c3a63d4f43cf5741b299c497e85c983327
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import argparse import sys import os dir_name = os.path.dirname(os.path.realpath(__file__)) npy_data = np.load(os.path.join(dir_name, sys.argv[1])) npy_data = npy_data.astype(np.float32) npy_data = npy_data.reshape((-1,)) npy_data.tofile(os.path.join(dir_name, sys.argv[1].split(".")[0] + ".f32"))
28.909091
75
0.732704
0
0
0
0
0
0
0
0
9
0.028302
1adc3dc40aa2436be842596159a801f5a7ff9623
15,448
py
Python
scripts/generator/filter_domains.py
kcappieg/metronome
65601b0993550a86843fa2b2f116fcd663118b2c
[ "MIT" ]
null
null
null
scripts/generator/filter_domains.py
kcappieg/metronome
65601b0993550a86843fa2b2f116fcd663118b2c
[ "MIT" ]
null
null
null
scripts/generator/filter_domains.py
kcappieg/metronome
65601b0993550a86843fa2b2f116fcd663118b2c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import sys from shutil import copyfile, move import argparse from glob import glob sys.path.append(os.path.dirname(os.path.dirname(os.path.realpath(__file__)))) from Metronome import distributed_execution def generate_astar_configs(domain_paths, domain_type): config_list = [] ...
39.408163
120
0.621051
0
0
0
0
0
0
0
0
4,239
0.274404
1ae21a526218223ed04c6372b03062ed8240aa78
1,671
py
Python
Controller/controleTelas.py
IuriBritoDev/TKINO
3c689788324bd5badc84c7969f331b076046c211
[ "MIT" ]
null
null
null
Controller/controleTelas.py
IuriBritoDev/TKINO
3c689788324bd5badc84c7969f331b076046c211
[ "MIT" ]
null
null
null
Controller/controleTelas.py
IuriBritoDev/TKINO
3c689788324bd5badc84c7969f331b076046c211
[ "MIT" ]
null
null
null
from View import telaRelatorio, telaNovoProjeto, telaAbrirProjeto, telaCadastro, telaConfigura, telaConexao, telaEditarControle, telaPopUp from View.Painel import painelSensores, painelControladores, painelConexao from View.Conexao import telaConAnalogAnalog, telaConAnalogDigit, telaConDigitAnalog, telaConDigitDigit ...
24.217391
138
0.79234
0
0
0
0
0
0
0
0
172
0.102564
1ae3b0d4623fb39afa8ccdec2cd3e21e3a3da924
109
py
Python
paul_analysis/Python/util/hdf5lib_param.py
lzkelley/arepo-mbh-sims_analysis
f14519552cedd39a040b53e6d7cc538b5b8f38a3
[ "MIT" ]
null
null
null
paul_analysis/Python/util/hdf5lib_param.py
lzkelley/arepo-mbh-sims_analysis
f14519552cedd39a040b53e6d7cc538b5b8f38a3
[ "MIT" ]
null
null
null
paul_analysis/Python/util/hdf5lib_param.py
lzkelley/arepo-mbh-sims_analysis
f14519552cedd39a040b53e6d7cc538b5b8f38a3
[ "MIT" ]
null
null
null
#tables or h5py libname="h5py" #tables" #libname="tables" def setlib(name): global libname libname = name
13.625
23
0.724771
0
0
0
0
0
0
0
0
46
0.422018
1ae48f79b3cd5943abe896aa004066a2e8e41b32
2,914
py
Python
setup_project.py
WindfallLabs/setup_project
fe87ef0fa9d2152a877c94465b3038ecf092463a
[ "MIT" ]
1
2021-01-29T03:44:06.000Z
2021-01-29T03:44:06.000Z
setup_project.py
WindfallLabs/setup_project
fe87ef0fa9d2152a877c94465b3038ecf092463a
[ "MIT" ]
null
null
null
setup_project.py
WindfallLabs/setup_project
fe87ef0fa9d2152a877c94465b3038ecf092463a
[ "MIT" ]
1
2021-01-29T03:44:16.000Z
2021-01-29T03:44:16.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ setup_project.py -- GIS Project Setup Utility Garin Wally; May 2014/May 2016 This script creates a project folder-environment for GIS projects as follows: <project_name>/ data/ raw/ <project_name>.gdb design/ fonts/ images/ ...
26.017857
79
0.555251
0
0
0
0
0
0
0
0
1,534
0.526424
1ae51ac2c341ebe5300267cfbe20cb5e5c501fda
1,816
py
Python
tests/format_directory_test.py
garysb/dismantle
b2aeed5916f980c20852d99ae379b0dc1da5a135
[ "MIT" ]
2
2021-06-02T12:37:13.000Z
2021-06-08T07:13:20.000Z
tests/format_directory_test.py
garysb/dismantle
b2aeed5916f980c20852d99ae379b0dc1da5a135
[ "MIT" ]
5
2021-06-29T09:56:15.000Z
2021-07-12T09:41:19.000Z
tests/format_directory_test.py
area28technologies/dismantle
b2aeed5916f980c20852d99ae379b0dc1da5a135
[ "MIT" ]
1
2021-12-12T06:17:27.000Z
2021-12-12T06:17:27.000Z
import os from pathlib import Path import pytest from dismantle.package import DirectoryPackageFormat, PackageFormat def test_inherits() -> None: assert issubclass(DirectoryPackageFormat, PackageFormat) is True def test_grasp_exists(datadir: Path) -> None: src = datadir.join('directory_src') assert Dire...
32.428571
68
0.740639
0
0
0
0
0
0
0
0
288
0.15859
1ae5744d76fd5fe30712a3dceb1ec7d3ea37f9e1
1,394
py
Python
labour/helpers.py
darkismus/kompassi
35dea2c7af2857a69cae5c5982b48f01ba56da1f
[ "CC-BY-3.0" ]
13
2015-11-29T12:19:12.000Z
2021-02-21T15:42:11.000Z
labour/helpers.py
darkismus/kompassi
35dea2c7af2857a69cae5c5982b48f01ba56da1f
[ "CC-BY-3.0" ]
23
2015-04-29T19:43:34.000Z
2021-02-10T05:50:17.000Z
labour/helpers.py
darkismus/kompassi
35dea2c7af2857a69cae5c5982b48f01ba56da1f
[ "CC-BY-3.0" ]
11
2015-09-20T18:59:00.000Z
2020-02-07T08:47:34.000Z
from functools import wraps from django.contrib import messages from django.shortcuts import get_object_or_404, redirect from access.cbac import default_cbac_required from core.models import Event from .views.admin_menu_items import labour_admin_menu_items def labour_admin_required(view_func): @wraps(view_func...
30.304348
94
0.691535
0
0
0
0
1,017
0.723843
0
0
191
0.135943
1ae6b0af984b4e774a2ea4fe2177c6d38cd7328b
411
py
Python
mnist/knows.py
huangjunxiong11/TF2
6de61c28c59ef34be7e53762b3a759da152642f7
[ "MIT" ]
null
null
null
mnist/knows.py
huangjunxiong11/TF2
6de61c28c59ef34be7e53762b3a759da152642f7
[ "MIT" ]
null
null
null
mnist/knows.py
huangjunxiong11/TF2
6de61c28c59ef34be7e53762b3a759da152642f7
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np a = np.arange(15) out = a.reshape(5, 3) c = np.arange(15) / 2 y_onehot = c.reshape(5, 3) out_tensor = tf.convert_to_tensor(out, dtype=tf.float32) y_onehot_tensor = tf.convert_to_tensor(y_onehot, dtype=tf.float32) # y_onehot = tf.one_hot(y_onehot_tensor, depth=3) # one-hot...
22.833333
66
0.737226
0
0
0
0
0
0
0
0
66
0.159036
1ae7b7205eff654470b26ae16a62edb36fffcde1
632
py
Python
belady.py
EstebanGS13/operating-system-algorithms
4f9ec10bb3c57e56816329c19971df71a75f4216
[ "MIT" ]
null
null
null
belady.py
EstebanGS13/operating-system-algorithms
4f9ec10bb3c57e56816329c19971df71a75f4216
[ "MIT" ]
null
null
null
belady.py
EstebanGS13/operating-system-algorithms
4f9ec10bb3c57e56816329c19971df71a75f4216
[ "MIT" ]
null
null
null
if __name__ == "__main__": pages = [5, 4, 3, 2, 1, 4, 3, 5, 4, 3, 2, 1, 5] faults = {3: 0, 4: 0} for frames in faults: memory = [] for page in pages: out = None if page not in memory: if len(memory) == frames: out =...
24.307692
66
0.457278
0
0
0
0
0
0
0
0
149
0.235759
1ae930f6ba395d300d3bc1a025005ce82d81ccc0
247
py
Python
dictvaluesortt.py
Srinivassan-Ramamurthy/python_programs
53b390669c7e88532c67d80b758a9199d6fde8cf
[ "bzip2-1.0.6" ]
null
null
null
dictvaluesortt.py
Srinivassan-Ramamurthy/python_programs
53b390669c7e88532c67d80b758a9199d6fde8cf
[ "bzip2-1.0.6" ]
null
null
null
dictvaluesortt.py
Srinivassan-Ramamurthy/python_programs
53b390669c7e88532c67d80b758a9199d6fde8cf
[ "bzip2-1.0.6" ]
null
null
null
a={'a':'hello','b':'1','c':'jayalatha','d':[1,2]} d={} val=list(a.values()) val.sort(key=len) print(val) for i in val: for j in a: if(i==a[j]): d.update({j:a[j]}) print(d)
13.722222
49
0.384615
0
0
0
0
0
0
0
0
33
0.133603
1aea758ba84a554dd7667811c068380137ca1b62
2,419
py
Python
papermerge/core/urls.py
ebdavison/papermerge
d177f1af331214e0f62407624e7029ce4953bd9b
[ "Apache-2.0" ]
null
null
null
papermerge/core/urls.py
ebdavison/papermerge
d177f1af331214e0f62407624e7029ce4953bd9b
[ "Apache-2.0" ]
null
null
null
papermerge/core/urls.py
ebdavison/papermerge
d177f1af331214e0f62407624e7029ce4953bd9b
[ "Apache-2.0" ]
null
null
null
from django.urls import path, include from django.contrib.auth.decorators import login_required from papermerge.core.views import documents as doc_views from papermerge.core.views import access as access_views from papermerge.core.views import api as api_views document_patterns = [ path( '<int:id>/previe...
22.820755
72
0.56759
0
0
0
0
0
0
0
0
675
0.279041
1aeac0d09b1ffbcde4dd4b8e81ad05b4d31e9264
4,773
py
Python
Ene-Jun-2021/flores-fernandez-fernando/Primer Parcial/Ejercicio 2/Ejercicio_2.py
bryanbalderas/DAS_Sistemas
1e31f088c0de7134471025a5730b0abfc19d936e
[ "MIT" ]
41
2017-09-26T09:36:32.000Z
2022-03-19T18:05:25.000Z
Ene-Jun-2021/flores-fernandez-fernando/Primer Parcial/Ejercicio 2/Ejercicio_2.py
bryanbalderas/DAS_Sistemas
1e31f088c0de7134471025a5730b0abfc19d936e
[ "MIT" ]
67
2017-09-11T05:06:12.000Z
2022-02-14T04:44:04.000Z
Ene-Jun-2021/flores-fernandez-fernando/Primer Parcial/Ejercicio 2/Ejercicio_2.py
bryanbalderas/DAS_Sistemas
1e31f088c0de7134471025a5730b0abfc19d936e
[ "MIT" ]
210
2017-09-01T00:10:08.000Z
2022-03-19T18:05:12.000Z
import abc #inteface Component creamos la funcion buscador que es la que buscara alguna PaginaWeb en el SitioWeb class ISitioWebComponent(metaclass=abc.ABCMeta): @abc.abstractmethod def buscador(self): pass # Concrete Component class SitioWebConcreteComponent(ISitioWebComponent): def __init__(s...
44.194444
122
0.577415
2,558
0.535931
0
0
120
0.025141
0
0
2,502
0.524199
1aec3c2b4298503556aef1b8d4f0b2abb934f5fa
2,003
py
Python
DeBERTa/data/data_sampler.py
tirkarthi/DeBERTa
c558ad99373dac695128c9ec45f39869aafd374e
[ "MIT" ]
7
2021-02-04T01:26:55.000Z
2021-11-23T00:38:47.000Z
DeBERTa/data/data_sampler.py
tirkarthi/DeBERTa
c558ad99373dac695128c9ec45f39869aafd374e
[ "MIT" ]
1
2021-03-18T00:23:17.000Z
2022-01-05T15:36:48.000Z
src/LASER/data/data_sampler.py
BigBird01/LASER
57143200814583410acdd0c5ac0a0f8bab8a1f7e
[ "MIT" ]
null
null
null
# # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # # Author: Pengcheng He (penhe@microsoft.com) # Date: 05/15/2019 # import os import numpy as np import math import sys from torch.utils.data import Sampler __all__=['BatchSampler', 'Distribut...
26.012987
89
0.683974
1,621
0.809286
685
0.341987
0
0
0
0
260
0.129805
1aef2eb7ef26d06658597d29156fcd62d72c7d03
85
py
Python
full_simulation/my_code/physics.py
kvmu/KURRI-workterm
275f73bdbd8e5ecd7689715f0adc9e824c7ee720
[ "MIT" ]
null
null
null
full_simulation/my_code/physics.py
kvmu/KURRI-workterm
275f73bdbd8e5ecd7689715f0adc9e824c7ee720
[ "MIT" ]
1
2015-11-11T05:06:27.000Z
2015-11-11T05:06:27.000Z
full_simulation/my_code/physics.py
kvmu/KURRI-workterm
275f73bdbd8e5ecd7689715f0adc9e824c7ee720
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Nov 04 17:37:37 2015 @author: Kevin """
10.625
35
0.564706
0
0
0
0
0
0
0
0
82
0.964706
1aef5c7a0e77fccf10468e703c0a3cb229409069
2,336
py
Python
tests/__init__.py
contentstack/contentstack-utils-python
3c7bb445dc77e5a2ab18ceac6f87a35d37b52186
[ "MIT" ]
null
null
null
tests/__init__.py
contentstack/contentstack-utils-python
3c7bb445dc77e5a2ab18ceac6f87a35d37b52186
[ "MIT" ]
null
null
null
tests/__init__.py
contentstack/contentstack-utils-python
3c7bb445dc77e5a2ab18ceac6f87a35d37b52186
[ "MIT" ]
null
null
null
# pytest --html=tests/report/test-report.html # above command runs tests and test reports generates in tests/report location. # nosetests --with-coverage --cover-html # clean all the .pyc files # find . -name \*.pyc -delete # nosetests --with-coverage --cover-html # pytest --cov=contentstack_utils # pytest -v --cov=co...
44.075472
99
0.81036
0
0
0
0
0
0
0
0
392
0.167808
1af00cd12e0385425fbe7be77246922d83387198
584
py
Python
sorting/builtin.py
umd-coding-workshop/algorithms
49ea6f39167b627a0a3d2e9e4bf249e3e828f4e5
[ "Apache-2.0" ]
null
null
null
sorting/builtin.py
umd-coding-workshop/algorithms
49ea6f39167b627a0a3d2e9e4bf249e3e828f4e5
[ "Apache-2.0" ]
null
null
null
sorting/builtin.py
umd-coding-workshop/algorithms
49ea6f39167b627a0a3d2e9e4bf249e3e828f4e5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 ''' Use the python built-in sort for comparison against other implementations.''' import sys def merge(a, b): sorted = [] while len(a) > 0 and len(b) > 0: if a[0] < b[0]: sorted.append(a.pop(0)) else: sorted.append(b.pop(0)) if len(a) > ...
21.62963
78
0.568493
0
0
0
0
0
0
0
0
115
0.196918
1af1ba1f73d50b880d12d443416c0d5ee955fd4e
1,160
bzl
Python
moq4/repo.bzl
tomaszstrejczek/rules_dotnet_3rd_party
09f29f062d5250fe7cdc45be872ce9bd1562c60b
[ "Apache-2.0" ]
1
2021-10-10T17:17:27.000Z
2021-10-10T17:17:27.000Z
moq4/repo.bzl
tomaszstrejczek/rules_dotnet_3rd_party
09f29f062d5250fe7cdc45be872ce9bd1562c60b
[ "Apache-2.0" ]
null
null
null
moq4/repo.bzl
tomaszstrejczek/rules_dotnet_3rd_party
09f29f062d5250fe7cdc45be872ce9bd1562c60b
[ "Apache-2.0" ]
null
null
null
load("@io_bazel_rules_dotnet//dotnet:defs.bzl", "core_library", "core_resx", "core_xunit_test") core_resx( name = "core_resource", src = ":src/Moq/Properties/Resources.resx", identifier = "Moq.Properties.Resources.resources", ) core_library( name = "Moq.dll", srcs = glob(["src/Moq/**/*.cs"]), ...
25.217391
95
0.563793
0
0
0
0
0
0
0
0
633
0.54569
1af777d49fa7d0ed5d696c94bf1c6cab8fc64d57
8,160
py
Python
soaplib/core/test/type/test_clazz.py
divaliu1408/overfit
083dcfaa758391092933e19544462cd831e73ef0
[ "Apache-2.0" ]
null
null
null
soaplib/core/test/type/test_clazz.py
divaliu1408/overfit
083dcfaa758391092933e19544462cd831e73ef0
[ "Apache-2.0" ]
null
null
null
soaplib/core/test/type/test_clazz.py
divaliu1408/overfit
083dcfaa758391092933e19544462cd831e73ef0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # soaplib - Copyright (C) Soaplib contributors. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any late...
29.458484
81
0.634436
6,612
0.810294
0
0
0
0
0
0
1,091
0.133701
1af789c7e288cbf0b52eef2ee02059ff894ca5b5
2,097
py
Python
code/strats/npctt.py
yasirroni/PrisonersDilemmaTournament
ce3de71ff2ccb647aa00129473ff60f985e16e17
[ "MIT" ]
null
null
null
code/strats/npctt.py
yasirroni/PrisonersDilemmaTournament
ce3de71ff2ccb647aa00129473ff60f985e16e17
[ "MIT" ]
null
null
null
code/strats/npctt.py
yasirroni/PrisonersDilemmaTournament
ce3de71ff2ccb647aa00129473ff60f985e16e17
[ "MIT" ]
null
null
null
from decimal import Decimal import numpy def strategy(history, memory): """ Nice Patient Comparative Tit for Tat (NPCTT): 1. Nice: Never initiate defection, else face the wrath of the Grudge. 2. Patient: Respond to defection with defection, unless it was in possibly response to my ...
36.789474
96
0.664759
0
0
0
0
0
0
0
0
990
0.472103
1af865cf794ffe9926668927a099faebe449cba9
1,202
py
Python
onadata/apps/api/tests/permissions/test_permissions.py
childhelpline/myhelpline
d72120ee31b6713cbaec79f299f5ee8bcb7ea429
[ "BSD-3-Clause" ]
1
2018-07-15T13:13:43.000Z
2018-07-15T13:13:43.000Z
onadata/apps/api/tests/permissions/test_permissions.py
aondiaye/myhelpline
d72120ee31b6713cbaec79f299f5ee8bcb7ea429
[ "BSD-3-Clause" ]
14
2018-07-10T12:48:46.000Z
2022-03-11T23:24:51.000Z
onadata/apps/api/tests/permissions/test_permissions.py
aondiaye/myhelpline
d72120ee31b6713cbaec79f299f5ee8bcb7ea429
[ "BSD-3-Clause" ]
5
2018-07-04T07:59:14.000Z
2020-01-28T07:50:18.000Z
from django.contrib.auth.models import User from mock import MagicMock from onadata.apps.main.tests.test_base import TestBase from onadata.apps.logger.models import Instance, XForm from onadata.apps.api.permissions import MetaDataObjectPermissions class TestPermissions(TestBase): def setUp(self): self.vi...
36.424242
66
0.69218
950
0.790349
0
0
0
0
0
0
59
0.049085
1afafdaa5a55f840c140378943d38c4159a3e9db
610
py
Python
Exercicios - Mundo3/Ex109/teste.py
BrianMath/ExerciciosPythonCeV
4960f1a58d281b32afd5dfd6ea65e0ae5ad48b4f
[ "MIT" ]
null
null
null
Exercicios - Mundo3/Ex109/teste.py
BrianMath/ExerciciosPythonCeV
4960f1a58d281b32afd5dfd6ea65e0ae5ad48b4f
[ "MIT" ]
null
null
null
Exercicios - Mundo3/Ex109/teste.py
BrianMath/ExerciciosPythonCeV
4960f1a58d281b32afd5dfd6ea65e0ae5ad48b4f
[ "MIT" ]
null
null
null
import moeda preco = float(input("Digite o preço: R$")) por100 = float(input("Digite a porcentagem: ")) formatar = str(input("Deseja formatar como moeda [S/N]? ")).upper() if "S" in formatar: formatado = True else: formatado = False print(f"\nA metade de {moeda.moeda(preco)} é {moeda.metade(preco, formatado)...
38.125
104
0.701639
0
0
0
0
0
0
0
0
420
0.685155
1afb4e419b6e7623430e399ba3b927cbbb015ac9
132
py
Python
api/companies/urls.py
anjaekk/CRM-internship-
94eab9401a7336ebbb11046a77c59b1d07e2bf68
[ "MIT" ]
1
2021-09-10T09:11:08.000Z
2021-09-10T09:11:08.000Z
api/companies/urls.py
anjaekk/CRM-site-project
94eab9401a7336ebbb11046a77c59b1d07e2bf68
[ "MIT" ]
null
null
null
api/companies/urls.py
anjaekk/CRM-site-project
94eab9401a7336ebbb11046a77c59b1d07e2bf68
[ "MIT" ]
null
null
null
from django.urls import path, include from .views import CompanyAPIView # urlpatterns = [ # path("",include(router.urls)), # ]
18.857143
37
0.69697
0
0
0
0
0
0
0
0
56
0.424242
1afcc354de4e4e1ba67d59086c2b25d41157da44
2,681
py
Python
src/waldur_auth_saml2/utils.py
geant-multicloud/MCMS-mastermind
81333180f5e56a0bc88d7dad448505448e01f24e
[ "MIT" ]
26
2017-10-18T13:49:58.000Z
2021-09-19T04:44:09.000Z
src/waldur_auth_saml2/utils.py
geant-multicloud/MCMS-mastermind
81333180f5e56a0bc88d7dad448505448e01f24e
[ "MIT" ]
14
2018-12-10T14:14:51.000Z
2021-06-07T10:33:39.000Z
src/waldur_auth_saml2/utils.py
geant-multicloud/MCMS-mastermind
81333180f5e56a0bc88d7dad448505448e01f24e
[ "MIT" ]
32
2017-09-24T03:10:45.000Z
2021-10-16T16:41:09.000Z
from django.conf import settings from django.core.exceptions import ObjectDoesNotExist from djangosaml2.conf import get_config from djangosaml2.utils import available_idps from saml2.attribute_converter import ac_factory from saml2.mdstore import InMemoryMetaData, MetaDataFile from saml2.mdstore import name as get_idp_...
33.5125
91
0.697128
346
0.129056
0
0
0
0
0
0
313
0.116747
1afe05c194caa5c442bb47f534efb7a249603873
3,846
py
Python
pvcontrol/__main__.py
stephanme/pv-control
f6aab9800c154492f3b9e5b2cd21c7a87cf92e16
[ "Apache-2.0" ]
null
null
null
pvcontrol/__main__.py
stephanme/pv-control
f6aab9800c154492f3b9e5b2cd21c7a87cf92e16
[ "Apache-2.0" ]
null
null
null
pvcontrol/__main__.py
stephanme/pv-control
f6aab9800c154492f3b9e5b2cd21c7a87cf92e16
[ "Apache-2.0" ]
null
null
null
import logging # configure logging before initializing further modules logging.basicConfig(level=logging.DEBUG, format="%(asctime)s [%(levelname)s] %(name)s - %(message)s") logging.getLogger("urllib3.connectionpool").setLevel(logging.INFO) import argparse import json import flask import flask_compress from werkzeug.m...
46.337349
139
0.788612
0
0
0
0
0
0
0
0
1,185
0.308112
1afe4a291ef32854b9631bb218506f1799a820c8
1,274
py
Python
Python/binary-trees-with-factors.py
xiaohalo/LeetCode
68211ba081934b21bb1968046b7e3c1459b3da2d
[ "MIT" ]
9
2019-06-30T07:15:18.000Z
2022-02-10T20:13:40.000Z
Python/binary-trees-with-factors.py
pnandini/LeetCode
e746c3298be96dec8e160da9378940568ef631b1
[ "MIT" ]
1
2018-07-10T03:28:43.000Z
2018-07-10T03:28:43.000Z
Python/binary-trees-with-factors.py
pnandini/LeetCode
e746c3298be96dec8e160da9378940568ef631b1
[ "MIT" ]
9
2019-01-16T22:16:49.000Z
2022-02-06T17:33:41.000Z
# Time: O(n^2) # Space: O(n) # Given an array of unique integers, each integer is strictly greater than 1. # We make a binary tree using these integers and each number may be used for # any number of times. # Each non-leaf node's value should be equal to the product of the values of # it's children. # How many binary...
26
77
0.505495
470
0.368917
0
0
0
0
0
0
772
0.605965
1afff1ccdcfcf884da6805c728defb7d5049e9b8
424
py
Python
jtr/load/embeddings/__init__.py
mitchelljeff/SUMMAD4.3
33bb3a74cff16a7aa699660a08d98ddcd662cad5
[ "MIT" ]
1
2017-09-15T14:06:07.000Z
2017-09-15T14:06:07.000Z
jtr/load/embeddings/__init__.py
mitchelljeff/SUMMAD4.3
33bb3a74cff16a7aa699660a08d98ddcd662cad5
[ "MIT" ]
null
null
null
jtr/load/embeddings/__init__.py
mitchelljeff/SUMMAD4.3
33bb3a74cff16a7aa699660a08d98ddcd662cad5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from jtr.load.embeddings.embeddings import Embeddings, load_embeddings from jtr.load.embeddings.word_to_vec import load_word2vec, get_word2vec_vocabulary from jtr.load.embeddings.glove import load_glove from jtr.load.embeddings.vocabulary import Vocabulary __all__ = [ 'Embeddings', 'lo...
26.5
82
0.761792
0
0
0
0
0
0
0
0
116
0.273585
210025e5881047a75dc28e56284192add56bd13d
9,466
py
Python
src/account/models.py
opnfv/laas
35b9f39178cc502a5283a1b37a65f7dd0838ae05
[ "Apache-2.0" ]
2
2020-10-31T15:03:20.000Z
2021-03-22T16:29:15.000Z
src/account/models.py
opnfv/laas
35b9f39178cc502a5283a1b37a65f7dd0838ae05
[ "Apache-2.0" ]
13
2019-12-04T23:29:42.000Z
2022-03-02T04:53:53.000Z
src/account/models.py
opnfv/laas
35b9f39178cc502a5283a1b37a65f7dd0838ae05
[ "Apache-2.0" ]
null
null
null
############################################################################## # Copyright (c) 2016 Max Breitenfeldt and others. # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, and is avai...
33.214035
119
0.648109
8,684
0.917389
0
0
295
0.031164
0
0
3,194
0.337418
2100b09455195ab5c430875e8b35fbf6511f1a48
1,513
py
Python
Chapter06/Blurring_Sharpening.py
AzureCloudMonk/Raspberry-Pi-3-Cookbook-for-Python-Programmers-Third-Edition
26b4b3859fa7ce471fea3ba3b016922b7bd1629e
[ "MIT" ]
22
2018-05-04T01:15:12.000Z
2021-12-19T17:14:53.000Z
Chapter06/Blurring_Sharpening.py
AzureCloudMonk/Raspberry-Pi-3-Cookbook-for-Python-Programmers-Third-Edition
26b4b3859fa7ce471fea3ba3b016922b7bd1629e
[ "MIT" ]
1
2021-02-20T12:50:08.000Z
2021-02-24T06:40:07.000Z
Chapter06/Blurring_Sharpening.py
PacktPublishing/Raspberry-Pi-3-Cookbook-for-Python-Programmers-Third-Edition
ffaa7e324bda7ad8f7c752092609f48c8335ea39
[ "MIT" ]
20
2018-07-07T17:20:18.000Z
2021-04-22T17:31:18.000Z
# Blurring and Sharpening Images # Import Computer Vision package - cv2 import cv2 # Import Numerical Python package - numpy as np import numpy as np # Read the image using imread built-in function image = cv2.imread('image_6.jpg') # Display original image using imshow built-in function cv2.imshow("Orig...
28.54717
84
0.66887
0
0
0
0
0
0
0
0
1,070
0.707204
21016a21d5882a186ec10f492251ce61d6a1d407
10,887
py
Python
webapp/python/isuda.py
akawashiro/isucon6-qualify
ec51c51a5a43f3d1aa192c1404e5e121c087c5d0
[ "MIT" ]
null
null
null
webapp/python/isuda.py
akawashiro/isucon6-qualify
ec51c51a5a43f3d1aa192c1404e5e121c087c5d0
[ "MIT" ]
null
null
null
webapp/python/isuda.py
akawashiro/isucon6-qualify
ec51c51a5a43f3d1aa192c1404e5e121c087c5d0
[ "MIT" ]
null
null
null
from flask import Flask, request, jsonify, abort, render_template, redirect, session, url_for import MySQLdb.cursors import hashlib import html import json import math import os import pathlib import random import re import string import urllib import sys from werkzeug.contrib.profiler import ProfilerMiddleware, MergeS...
28.877984
126
0.6381
0
0
0
0
4,967
0.456232
0
0
2,716
0.249472
2102482614cbfec0280843f4652b4c092440bef6
80
py
Python
todo/apps.py
arthtyagi/gettit
26047f85a7cf0a5f380cde4e18f9bcc88bb27db6
[ "MIT" ]
6
2020-05-30T18:10:08.000Z
2021-11-30T14:39:41.000Z
todo/apps.py
arthtyagi/gettit
26047f85a7cf0a5f380cde4e18f9bcc88bb27db6
[ "MIT" ]
18
2020-06-21T12:04:47.000Z
2022-01-13T02:57:16.000Z
todo/apps.py
arthtyagi/gettit
26047f85a7cf0a5f380cde4e18f9bcc88bb27db6
[ "MIT" ]
1
2020-08-30T01:42:54.000Z
2020-08-30T01:42:54.000Z
from django.apps import AppConfig class TodoConfig(AppConfig): name = 'todo'
13.333333
33
0.7625
43
0.5375
0
0
0
0
0
0
6
0.075
21052d838f3c6f1bc317c7615a2db829dddf4cec
299
py
Python
Segundo nivel - condicionales/4.py
OscarPalominoC/RetosPlatziProgramaci-n
cd0c32254e8dd0dc35dda91ad50f5d8e6f013c08
[ "MIT" ]
null
null
null
Segundo nivel - condicionales/4.py
OscarPalominoC/RetosPlatziProgramaci-n
cd0c32254e8dd0dc35dda91ad50f5d8e6f013c08
[ "MIT" ]
null
null
null
Segundo nivel - condicionales/4.py
OscarPalominoC/RetosPlatziProgramaci-n
cd0c32254e8dd0dc35dda91ad50f5d8e6f013c08
[ "MIT" ]
null
null
null
def run(): animal = str(input('¿Cuál es tu animal favorito? ')) if animal.lower() == 'tortuga' or animal.lower() == 'tortugas': print('También me gustan las tortugas.') else: print('Ese animal es genial, pero prefiero las tortugas.') if __name__ == '__main__': run()
33.222222
67
0.615385
0
0
0
0
0
0
0
0
147
0.486755
2108113aa55ab74979a849198e4a5b50f03a9738
1,153
py
Python
data-structure/registration_with_binary_tree/src/Registration.py
gvalves/unifesp
f0572419f963fe063be56ae34b572a0130246d2f
[ "MIT" ]
null
null
null
data-structure/registration_with_binary_tree/src/Registration.py
gvalves/unifesp
f0572419f963fe063be56ae34b572a0130246d2f
[ "MIT" ]
null
null
null
data-structure/registration_with_binary_tree/src/Registration.py
gvalves/unifesp
f0572419f963fe063be56ae34b572a0130246d2f
[ "MIT" ]
null
null
null
from enum import Enum class Registration(Enum): ID_SERVIDOR_PORTAL = 1 NOME = 2 CPF = 3 MATRICULA = 4 DESCRICAO_CARGO = 5 CLASSE_CARGO = 6 REFERENCIA_CARGO = 7 PADRAO_CARGO = 8 NIVEL_CARGO = 9 SIGLA_FUNCAO = 10 NIVEL_FUNCAO = 11 FUNCAO = 12 CODIGO_ATIVIDADE = 13 ...
24.531915
45
0.699046
1,128
0.978317
0
0
0
0
0
0
0
0
21086d29a3c48a77d90c32973849ccb037435414
1,269
py
Python
repos/system_upgrade/el7toel8/actors/checkacpid/actor.py
sm00th/leapp-repository
1c171ec3a5f9260a3c6f84a9b15cad78a875ac61
[ "Apache-2.0" ]
21
2018-11-20T15:58:39.000Z
2022-03-15T19:57:24.000Z
repos/system_upgrade/el7toel8/actors/checkacpid/actor.py
sm00th/leapp-repository
1c171ec3a5f9260a3c6f84a9b15cad78a875ac61
[ "Apache-2.0" ]
732
2018-11-21T18:33:26.000Z
2022-03-31T16:16:24.000Z
repos/system_upgrade/el7toel8/actors/checkacpid/actor.py
sm00th/leapp-repository
1c171ec3a5f9260a3c6f84a9b15cad78a875ac61
[ "Apache-2.0" ]
85
2018-11-20T17:55:00.000Z
2022-03-29T09:40:31.000Z
from leapp.actors import Actor from leapp.models import InstalledRedHatSignedRPM from leapp.libraries.common.rpms import has_package from leapp.reporting import Report, create_report from leapp import reporting from leapp.tags import ChecksPhaseTag, IPUWorkflowTag class CheckAcpid(Actor): """ Check if acpid i...
40.935484
104
0.662727
1,001
0.78881
0
0
0
0
0
0
375
0.295508
2108fb3332b187529421f27204509d2d0565250f
831
py
Python
crypto_config/cryptoconfigparser.py
x-ware-ltd/CryptoConfig
59f38ca73194e5663b4c8ea48a2ae73514502664
[ "BSD-3-Clause" ]
1
2021-11-24T16:24:36.000Z
2021-11-24T16:24:36.000Z
crypto_config/cryptoconfigparser.py
x-ware-ltd/CryptoConfig
59f38ca73194e5663b4c8ea48a2ae73514502664
[ "BSD-3-Clause" ]
2
2021-08-13T15:13:53.000Z
2021-08-13T15:57:18.000Z
crypto_config/cryptoconfigparser.py
x-ware-ltd/CryptoConfig
59f38ca73194e5663b4c8ea48a2ae73514502664
[ "BSD-3-Clause" ]
1
2021-08-12T15:35:04.000Z
2021-08-12T15:35:04.000Z
from crypto_config import (ConfigParser, ParsingError, Crypt) import re class CryptoConfigParser(ConfigParser): def __init__(self, *args, **kwargs): key = kwargs.pop('crypt_key', None) if key != None: self.crypt_key = key else: self.crypt_key = None Config...
33.24
74
0.610108
758
0.912154
0
0
0
0
0
0
25
0.030084
2109cd83cd9e5d9e5a9ceb4961c452b330afafb7
9,888
py
Python
networks/multiclass/CNN2D/InceptionNet/multiclass_InceptionNet.py
so2liu/CNNArt
9d91bf08a044e7d5068f8446663726411d2236dd
[ "Apache-2.0" ]
22
2018-04-27T21:28:46.000Z
2021-12-24T06:44:55.000Z
networks/multiclass/CNN2D/InceptionNet/multiclass_InceptionNet.py
so2liu/CNNArt
9d91bf08a044e7d5068f8446663726411d2236dd
[ "Apache-2.0" ]
81
2017-11-09T17:23:15.000Z
2020-01-28T22:54:13.000Z
networks/multiclass/CNN2D/InceptionNet/multiclass_InceptionNet.py
so2liu/CNNArt
9d91bf08a044e7d5068f8446663726411d2236dd
[ "Apache-2.0" ]
18
2017-11-13T16:12:17.000Z
2020-08-27T10:17:34.000Z
import os.path import scipy.io as sio import numpy as np # for algebraic operations, matrices import keras.models from keras.models import Sequential from keras.layers.core import Dense, Activation, Flatten, Dropout # , Layer, Flatten # from keras.layers import containers from keras.models import model_from_json,Mode...
46.641509
201
0.731493
0
0
0
0
0
0
0
0
2,000
0.202265
2109ddcd358b814ece6800aa2ba9a800fb0b2400
856
py
Python
python/sort_list_by_multiple_keys.py
julianespinel/trainning
23e07c954e5bf03f1cd117e388eed7da4a3e8f63
[ "MIT" ]
null
null
null
python/sort_list_by_multiple_keys.py
julianespinel/trainning
23e07c954e5bf03f1cd117e388eed7da4a3e8f63
[ "MIT" ]
null
null
null
python/sort_list_by_multiple_keys.py
julianespinel/trainning
23e07c954e5bf03f1cd117e388eed7da4a3e8f63
[ "MIT" ]
null
null
null
class reversor: def __init__(self, value): self.value = value def __eq__(self, other): return self.value == other.value def __lt__(self, other): """ Inverted it to be able to sort in descending order. """ return self.value >= other.value if __name__ == '__...
31.703704
87
0.511682
299
0.349299
0
0
0
0
0
0
260
0.303738
210a6d8521d591e2b68bc2a7a3a7e44846716c28
501
py
Python
labs-code/python/standard-product-track/get_followers.py
aod2004/getting-started-with-the-twitter-api-v2-for-academic-research
43f90984297427a6c48a39407185240f5782966b
[ "Apache-2.0" ]
282
2021-06-24T17:30:54.000Z
2022-03-29T17:18:03.000Z
labs-code/python/standard-product-track/get_followers.py
arshamalh/getting-started-with-the-twitter-api-v2-for-academic-research
9e894096a38a44bd54f852f2d14e4ed7bc2e1ba5
[ "Apache-2.0" ]
7
2021-06-26T22:03:31.000Z
2022-01-18T10:35:24.000Z
labs-code/python/standard-product-track/get_followers.py
arshamalh/getting-started-with-the-twitter-api-v2-for-academic-research
9e894096a38a44bd54f852f2d14e4ed7bc2e1ba5
[ "Apache-2.0" ]
63
2021-06-24T19:46:50.000Z
2022-03-24T14:53:41.000Z
from twarc import Twarc2, expansions import json # Replace your bearer token below client = Twarc2(bearer_token="XXXXX") def main(): # The followers function gets followers for specified user followers = client.followers(user="twitterdev") for page in followers: result = expansions.flatten(page) ...
25.05
76
0.682635
0
0
0
0
0
0
0
0
184
0.367265
210ce5a109662e3af414b660e816005c84a91241
1,091
py
Python
machine-learning/QiWei-Python-Chinese/function/function_02.py
yw-fang/MLreadingnotes
3522497e6fb97427c54f4267d9c410064818c357
[ "Apache-2.0" ]
2
2020-07-09T22:21:57.000Z
2021-03-20T15:30:31.000Z
machine-learning/QiWei-Python-Chinese/function/function_02.py
yw-fang/MLreadingnotes
3522497e6fb97427c54f4267d9c410064818c357
[ "Apache-2.0" ]
37
2018-04-17T06:40:54.000Z
2022-03-22T09:06:01.000Z
machine-learning/QiWei-Python-Chinese/function/function_02.py
yw-fang/MLreadingnotes
3522497e6fb97427c54f4267d9c410064818c357
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = 'Yue-Wen FANG' __maintainer__ = "Yue-Wen FANG" __email__ = 'fyuewen@gmail.com' __license__ = 'Apache License 2.0' __creation_date__= 'Dec. 25, 2018' """ This example shows the functionality of positional arguments and keyword ONLY arguments. The positional a...
27.974359
100
0.656279
0
0
0
0
0
0
0
0
614
0.562786
210ce5a3d930e858c4ed3d0c31e56cdd73aec402
1,999
py
Python
Python/Problem#8.py
Wolfy7/DailyCodingProblem
dcca0da51bf42413c2eeff122dbb653e73ab5d83
[ "MIT" ]
null
null
null
Python/Problem#8.py
Wolfy7/DailyCodingProblem
dcca0da51bf42413c2eeff122dbb653e73ab5d83
[ "MIT" ]
null
null
null
Python/Problem#8.py
Wolfy7/DailyCodingProblem
dcca0da51bf42413c2eeff122dbb653e73ab5d83
[ "MIT" ]
null
null
null
""" A unival tree (which stands for "universal value") is a tree where all nodes under it have the same value. Given the root to a binary tree, count the number of unival subtrees. For example, the following tree has 5 unival subtrees: 0 / \ 1 0 / \ 1 0 / \ 1 1 """ class Node...
21.728261
107
0.57979
121
0.06053
0
0
0
0
0
0
425
0.212606
210d783c232f4ecb3f5661577b36de0f31d8a2b4
2,327
py
Python
Prefixr.py
tribhuvanesh/dyna-snip
ac2c902f3dcbced5e8f6f6aad74826e5178ed9fe
[ "MIT" ]
1
2015-02-06T13:17:56.000Z
2015-02-06T13:17:56.000Z
Prefixr.py
tribhuvanesh/dyna-snip
ac2c902f3dcbced5e8f6f6aad74826e5178ed9fe
[ "MIT" ]
null
null
null
Prefixr.py
tribhuvanesh/dyna-snip
ac2c902f3dcbced5e8f6f6aad74826e5178ed9fe
[ "MIT" ]
null
null
null
import sublime import sublime_plugin import urllib import urllib2 import threading import re from dyna_snip_helpers import get_snippet_list, inc_snippet_object COMMENT_MARKER_JAVA = '//' COMMENT_MARKER_PYTHON = "#" class PrefixrCommand(sublime_plugin.TextCommand): def run(self, edit): self.edit = edit ...
41.553571
112
0.594327
2,108
0.905887
0
0
0
0
0
0
631
0.271165
210e8623af2b83c3331b035c74ce32e4c79cb05e
2,735
py
Python
zeus/common/ipc/uni_comm.py
wnov/vega
bf51cbe389d41033c4ae4bc02e5078c3c247c845
[ "MIT" ]
6
2020-11-13T15:44:47.000Z
2021-12-02T08:14:06.000Z
zeus/common/ipc/uni_comm.py
JacobLee121/vega
19256aca4d047bfad3b461f0a927e1c2abb9eb03
[ "MIT" ]
null
null
null
zeus/common/ipc/uni_comm.py
JacobLee121/vega
19256aca4d047bfad3b461f0a927e1c2abb9eb03
[ "MIT" ]
2
2021-06-25T09:42:32.000Z
2021-08-06T18:00:09.000Z
# Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to us...
35.986842
79
0.677514
1,495
0.546618
0
0
90
0.032907
0
0
1,490
0.54479
210ef2ae872b4a00dd69a05f6c0a2cbd5afb971f
269
py
Python
srv/tools/import_lemuria.py
Nekohime/lemuria
0e6ca20522547026e4b20bb8cd8caa23633c171c
[ "MIT" ]
13
2021-02-12T23:44:06.000Z
2022-03-05T16:59:08.000Z
srv/tools/import_lemuria.py
Nekohime/lemuria
0e6ca20522547026e4b20bb8cd8caa23633c171c
[ "MIT" ]
3
2021-03-16T18:28:54.000Z
2022-03-25T17:58:42.000Z
srv/tools/import_lemuria.py
Nekohime/lemuria
0e6ca20522547026e4b20bb8cd8caa23633c171c
[ "MIT" ]
5
2021-03-04T17:56:54.000Z
2022-01-24T19:31:22.000Z
#!/usr/bin/env python3 # encoding: utf-8 """Easily create ../app.db and import ../lemuria.json""" import asyncio from db_tools import init_db from db_tools import import_world asyncio.run(init_db()) asyncio.run(import_world('../atlemuria.txt', '../proplemuria.txt'))
24.454545
67
0.736059
0
0
0
0
0
0
0
0
133
0.494424
210f4c2d01b5f97c01acae66b6369a2579242949
2,517
py
Python
Handwritten_Numeral_Image_Classification.py
yjnanan/lab3
9e93361b46adb47953b89ddc40ded74e445684cf
[ "Apache-2.0" ]
1
2021-11-24T17:37:00.000Z
2021-11-24T17:37:00.000Z
Handwritten_Numeral_Image_Classification.py
yjnanan/lab3
9e93361b46adb47953b89ddc40ded74e445684cf
[ "Apache-2.0" ]
null
null
null
Handwritten_Numeral_Image_Classification.py
yjnanan/lab3
9e93361b46adb47953b89ddc40ded74e445684cf
[ "Apache-2.0" ]
null
null
null
import numpy as np import random import matplotlib.pyplot as plt from load_data import loadLabel,loadImage def der_activation_function(x,type): if type==1: return 1 - np.power(np.tanh(x), 2) elif type==2: return (1/(1+np.exp(-x)))*(1-1/(1+np.exp(-x))) else: x[x<=0]=0.25 x[x>...
33.56
79
0.630115
0
0
0
0
0
0
0
0
215
0.085419
21104b0f0ae3daac360c6b5e66284e9070501a16
586
py
Python
catalog/bindings/gmd/cylindrical_cs.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/gmd/cylindrical_cs.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/gmd/cylindrical_cs.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass from bindings.gmd.cylindrical_cstype import CylindricalCstype __NAMESPACE__ = "http://www.opengis.net/gml" @dataclass class CylindricalCs(CylindricalCstype): """gml:CylindricalCS is a three-dimensional coordinate system consisting of a polar coordinate system extended by a s...
30.842105
79
0.755973
430
0.733788
0
0
441
0.75256
0
0
360
0.614334
2110e7d97dede9538a971bfc28f0a5ada650b926
4,800
py
Python
preprocessing.py
tjiho/PoemesProfonds
ede1b32df153254e826cd9779f971fe72d6bd3eb
[ "MIT" ]
6
2020-09-19T14:43:31.000Z
2021-10-10T22:13:30.000Z
preprocessing.py
tjiho/PoemesProfonds
ede1b32df153254e826cd9779f971fe72d6bd3eb
[ "MIT" ]
1
2021-01-16T19:06:34.000Z
2021-04-14T20:02:28.000Z
preprocessing.py
tjiho/PoemesProfonds
ede1b32df153254e826cd9779f971fe72d6bd3eb
[ "MIT" ]
1
2021-04-11T23:13:33.000Z
2021-04-11T23:13:33.000Z
import pandas as pd from collections import Counter def import_lexique_as_df(path=r".\lexique3832.xlsx"): """importe le lexique :param path: lexique3832.xlsx chemin du fichier :return pd.dataframe """ df = pd.read_excel(path) df.iloc[:, 0] = df.iloc[:, 0].fillna(value="nan") # transforme Na...
36.090226
119
0.64
0
0
0
0
0
0
0
0
2,163
0.449875
211256a01de1489d0a1b59d2986c7fda716eda8d
25,517
py
Python
src/mlpy-3.5.0/mlpy/dimred.py
xuanxiaoliqu/CRC4Docker
5ee26f9a590b727693202d8ad3b6460970304bd9
[ "MIT" ]
1
2020-10-26T12:02:08.000Z
2020-10-26T12:02:08.000Z
src/mlpy-3.5.0/mlpy/dimred.py
TonyZPW/CRC4Docker
e52a6e88d4469284a071c0b96d009f6684dbb2ea
[ "MIT" ]
null
null
null
src/mlpy-3.5.0/mlpy/dimred.py
TonyZPW/CRC4Docker
e52a6e88d4469284a071c0b96d009f6684dbb2ea
[ "MIT" ]
null
null
null
## This code is written by Davide Albanese, <albanese@fbk.eu>. ## (C) 2011 mlpy Developers. ## This program is free software: you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation, either version 3 of the License, or ## (at y...
30.197633
80
0.535604
14,886
0.583376
0
0
0
0
0
0
12,886
0.504997
2114b6575b25531e65cb62deff849490987110cc
9,695
py
Python
polls/views.py
Parth-Shah-99/Polling-Project
b9d1548dc801a0b02d1fd8b925276d9349bb10fe
[ "MIT" ]
1
2021-06-23T11:24:01.000Z
2021-06-23T11:24:01.000Z
polls/views.py
Parth-Shah-99/Polling-Project
b9d1548dc801a0b02d1fd8b925276d9349bb10fe
[ "MIT" ]
null
null
null
polls/views.py
Parth-Shah-99/Polling-Project
b9d1548dc801a0b02d1fd8b925276d9349bb10fe
[ "MIT" ]
null
null
null
from django.shortcuts import render, get_object_or_404 from django.http import HttpResponse, HttpResponseRedirect, JsonResponse from django.contrib.auth.forms import UserCreationForm from django.contrib import messages from django.urls import reverse from .forms import UserSignupForm, CreatePollForm, UserUpdateForm fro...
37.432432
139
0.665188
4,697
0.484477
0
0
0
0
0
0
1,434
0.147911
211508cef478fb4f72770257d50ec1792235097e
1,355
py
Python
src/katas/alphabet_position.py
Thavarshan/python-code-katas
496d9224bbef3ee83a0e94f3a27b8e03159f84c5
[ "MIT" ]
14
2020-08-03T05:29:13.000Z
2021-08-07T09:53:18.000Z
src/katas/alphabet_position.py
Thavarshan/python-code-katas
496d9224bbef3ee83a0e94f3a27b8e03159f84c5
[ "MIT" ]
null
null
null
src/katas/alphabet_position.py
Thavarshan/python-code-katas
496d9224bbef3ee83a0e94f3a27b8e03159f84c5
[ "MIT" ]
null
null
null
import re class AlphabetPosition: alphabet = { 'a': 1, 'b': 2, 'c': 3, 'd': 4, 'e': 5, 'f': 6, 'g': 7, 'h': 8, 'i': 9, 'j': 10, 'k': 11, 'l': 12, 'm': 13, 'n': 14, 'o': 15, 'p': 16, ...
26.057692
79
0.487823
1,342
0.990406
0
0
0
0
0
0
497
0.36679
21160771a6aab5b0c62e80306c257ce5f76ec26d
300
py
Python
FreeCodeCamp/Scientific Computing with Python/Python for Everybody/09.py
saulpaiva/Code
3c6591da52ccf40565ed0a4e857e83e7f643b72d
[ "MIT" ]
1
2021-09-29T01:26:29.000Z
2021-09-29T01:26:29.000Z
FreeCodeCamp/Scientific Computing with Python/Python for Everybody/09.py
saulpaiva/Code
3c6591da52ccf40565ed0a4e857e83e7f643b72d
[ "MIT" ]
null
null
null
FreeCodeCamp/Scientific Computing with Python/Python for Everybody/09.py
saulpaiva/Code
3c6591da52ccf40565ed0a4e857e83e7f643b72d
[ "MIT" ]
null
null
null
# Iterations: Definite Loops ''' Use the 'for' word there is a iteration variable like 'i' or 'friend' ''' # for i in [5, 4, 3, 2, 1] : # print(i) # print('Blastoff!') # friends = ['matheus', 'wataru', 'mogli'] # for friend in friends : # print('happy new year:', friend) # print('Done!')
18.75
50
0.596667
0
0
0
0
0
0
0
0
288
0.96
211608a19d7eb2aa30ebb283349f2fda6915bba2
5,008
py
Python
keras-version/main.py
bzantium/EA-LSTM
ddd318d3f622c1d3c99976b334f5b00df5767578
[ "BSD-3-Clause" ]
16
2020-01-14T08:53:12.000Z
2021-12-18T05:30:12.000Z
keras-version/main.py
bzantium/EA-LSTM
ddd318d3f622c1d3c99976b334f5b00df5767578
[ "BSD-3-Clause" ]
1
2020-06-30T06:39:00.000Z
2020-07-01T00:12:03.000Z
keras-version/main.py
bzantium/EA-LSTM
ddd318d3f622c1d3c99976b334f5b00df5767578
[ "BSD-3-Clause" ]
5
2020-01-04T05:51:23.000Z
2021-05-16T08:14:24.000Z
from utils import (load_data, data_to_series_features, apply_weight, is_minimum) from algorithm import (initialize_weights, individual_to_key, pop_to_weights, select, reconstruct_population) from sklearn.metrics import mean_squared_error, mean_absolute_error from tensorflow.ker...
50.08
117
0.673123
0
0
0
0
0
0
0
0
742
0.148163