hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
75f1dd73285bc1c583f36fa5211e973c274857a4
8,602
py
Python
savu/tomo_recon.py
malte-storm/Savu
16291e8a22464c50c511af01fbc648860c1236e6
[ "Apache-2.0" ]
1
2021-04-18T09:30:54.000Z
2021-04-18T09:30:54.000Z
savu/tomo_recon.py
malte-storm/Savu
16291e8a22464c50c511af01fbc648860c1236e6
[ "Apache-2.0" ]
null
null
null
savu/tomo_recon.py
malte-storm/Savu
16291e8a22464c50c511af01fbc648860c1236e6
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Diamond Light Source Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
37.4
79
0.663567
5f36c331ee1d56db346a9f28e5fe53ef24a4600a
1,960
py
Python
tempest/api_schema/compute/v3/availability_zone.py
rcbops-qe/tempest
88960aa32c473b64072671541a136dbae41b1d4c
[ "Apache-2.0" ]
null
null
null
tempest/api_schema/compute/v3/availability_zone.py
rcbops-qe/tempest
88960aa32c473b64072671541a136dbae41b1d4c
[ "Apache-2.0" ]
null
null
null
tempest/api_schema/compute/v3/availability_zone.py
rcbops-qe/tempest
88960aa32c473b64072671541a136dbae41b1d4c
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 NEC Corporation. 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 ...
36.296296
78
0.533673
55bb629bbc3a53f25ab8581535fe1e74529f9312
14,343
py
Python
flopy/mf6/modflow/mfgwfwel.py
hansonmcoombs/flopy
49398983c36d381992621d5bf698ea7f78fc0014
[ "CC0-1.0", "BSD-3-Clause" ]
null
null
null
flopy/mf6/modflow/mfgwfwel.py
hansonmcoombs/flopy
49398983c36d381992621d5bf698ea7f78fc0014
[ "CC0-1.0", "BSD-3-Clause" ]
null
null
null
flopy/mf6/modflow/mfgwfwel.py
hansonmcoombs/flopy
49398983c36d381992621d5bf698ea7f78fc0014
[ "CC0-1.0", "BSD-3-Clause" ]
null
null
null
# DO NOT MODIFY THIS FILE DIRECTLY. THIS FILE MUST BE CREATED BY # mf6/utils/createpackages.py # FILE created on December 22, 2021 17:36:26 UTC from .. import mfpackage from ..data.mfdatautil import ListTemplateGenerator class ModflowGwfwel(mfpackage.MFPackage): """ ModflowGwfwel defines a wel package within...
36.776923
79
0.571429
8d9bb0b2df94b0ae2d6ce456be8967d71ad89c86
51
py
Python
torchtraining/functional/metrics/__init__.py
szymonmaszke/torchtraining
1ddf169325b7239d6d6686b20072a406b69a0180
[ "MIT" ]
3
2020-08-26T06:11:58.000Z
2020-08-27T08:11:15.000Z
torchtraining/metrics/__init__.py
klaudiapalasz/torchtraining
7ac54009eea2fd84aa635b6f3cbfe306f317d087
[ "MIT" ]
1
2020-08-25T19:19:43.000Z
2020-08-25T19:19:43.000Z
torchtraining/metrics/__init__.py
klaudiapalasz/torchtraining
7ac54009eea2fd84aa635b6f3cbfe306f317d087
[ "MIT" ]
1
2021-04-15T18:55:57.000Z
2021-04-15T18:55:57.000Z
from . import classification, distance, regression
25.5
50
0.823529
2d48d7cd829ea6d840d4f54a0c19c58b4e552344
18,058
py
Python
labs/lab10/editor/formatter.py
jjllzhang/CS61A
57b68c7c06999210d96499f6d84e4ec99085d396
[ "MIT" ]
8
2020-07-28T11:10:49.000Z
2021-05-29T15:27:17.000Z
34-Distributed Data(optional)/lab12/lab12/editor/formatter.py
ericchen12377/CS61A_LearningDoc
31f23962b0e2834795bf61eeb0f4884cc5da1809
[ "MIT" ]
59
2019-02-16T10:36:51.000Z
2019-04-02T21:50:29.000Z
34-Distributed Data(optional)/lab12/lab12/editor/formatter.py
ericchen12377/CS61A_LearningDoc
31f23962b0e2834795bf61eeb0f4884cc5da1809
[ "MIT" ]
1
2019-04-19T21:20:59.000Z
2019-04-19T21:20:59.000Z
from abc import ABC from functools import lru_cache from typing import List, Tuple, Type, Union import lexer as lexer from format_parser import FormatAtom, FormatComment, FormatList, Formatted, get_expression LINE_LENGTH = 50 MAX_EXPR_COUNT = 10 MAX_EXPR_LEN = 30 INDENT = 4 DEFINE_VALS = ["define", "define-macro"] D...
33.502783
120
0.622328
15672cf7391b56a02ae52c4b872faff8c5e2b1c1
4,741
py
Python
spec/test/stored_queries/test_ws.py
dakotablair/relation_engine
afd0a65fbf9e5da80a63264762111e8ee679795c
[ "MIT" ]
null
null
null
spec/test/stored_queries/test_ws.py
dakotablair/relation_engine
afd0a65fbf9e5da80a63264762111e8ee679795c
[ "MIT" ]
null
null
null
spec/test/stored_queries/test_ws.py
dakotablair/relation_engine
afd0a65fbf9e5da80a63264762111e8ee679795c
[ "MIT" ]
null
null
null
""" Tests for workspace stored queries under the ws* namespace These tests run within the re_api docker image, and require access to the ArangoDB, auth, and workspace images. """ import unittest import json import requests from spec.test.helpers import get_config, create_test_docs, check_spec_test_env _CONF = get_co...
43.1
111
0.593968
72d095e100b4fdc7bb5236094f57f1b329d633dc
176
py
Python
mall/apps/orders/urls.py
DanaLee1990/meiduo
a2342cfd35829b7ef40ef3c1f1731eb95658d3e8
[ "MIT" ]
null
null
null
mall/apps/orders/urls.py
DanaLee1990/meiduo
a2342cfd35829b7ef40ef3c1f1731eb95658d3e8
[ "MIT" ]
null
null
null
mall/apps/orders/urls.py
DanaLee1990/meiduo
a2342cfd35829b7ef40ef3c1f1731eb95658d3e8
[ "MIT" ]
null
null
null
from django.conf.urls import url from . import views urlpatterns = [ url(r'^places/$',views.OrderSettlementView.as_view()), url(r'^$', views.OrderView.as_view()), ]
17.6
58
0.676136
1d40362f2c426a0320ab9da41875c03522df29ca
1,486
py
Python
leetcode/0840_magic_squares_in_grid.py
chaosWsF/Python-Practice
ff617675b6bcd125933024bb4c246b63a272314d
[ "BSD-2-Clause" ]
null
null
null
leetcode/0840_magic_squares_in_grid.py
chaosWsF/Python-Practice
ff617675b6bcd125933024bb4c246b63a272314d
[ "BSD-2-Clause" ]
null
null
null
leetcode/0840_magic_squares_in_grid.py
chaosWsF/Python-Practice
ff617675b6bcd125933024bb4c246b63a272314d
[ "BSD-2-Clause" ]
null
null
null
""" A 3 x 3 magic square is a 3 x 3 grid filled with distinct numbers from 1 to 9 such that each row, column, and both diagonals all have the same sum. Given an grid of integers, how many 3 x 3 "magic square" subgrids are there? (Each subgrid is contiguous). Example 1: Input: [[4,3,8,4], [9,5,1,9], ...
32.304348
129
0.466353
ec449aae4e9d54b4ed82b7aab8e4cca5345aa412
23,418
py
Python
isilon_capacity_calc_py3.py
adamgweeks/Isilon-PowerScale-capacity-calculator
04df4604677e9f3faf409d27b2c55d40aec91b53
[ "MIT" ]
null
null
null
isilon_capacity_calc_py3.py
adamgweeks/Isilon-PowerScale-capacity-calculator
04df4604677e9f3faf409d27b2c55d40aec91b53
[ "MIT" ]
1
2020-11-10T13:12:23.000Z
2020-11-10T13:12:23.000Z
isilon_capacity_calc_py3.py
adamgweeks/Isilon-PowerScale-capacity-calculator
04df4604677e9f3faf409d27b2c55d40aec91b53
[ "MIT" ]
null
null
null
# Python script to calc Isilon file space usage # written by Adam.Weeks@dell.com # unofficial and NOT supported by Dell Technologies/EMC/Isilon! # example useage: python isilon_space_calc_py2.py /Users/user1/Documents/ -s 9 -p N+2 # see https://github.com/adamgweeks/Isilon-capacity-calculator # # for Python 2! from...
38.264706
217
0.747246
23f6b00cb880239c782e34076625c18593e18c16
747
py
Python
tbx/core/migrations/0115_delete_tshirt_page.py
elviva404/wagtail-torchbox
718d9e2c4337073f010296932d369c726a01dbd3
[ "MIT" ]
103
2015-02-24T17:58:21.000Z
2022-03-23T08:08:58.000Z
tbx/core/migrations/0115_delete_tshirt_page.py
elviva404/wagtail-torchbox
718d9e2c4337073f010296932d369c726a01dbd3
[ "MIT" ]
145
2015-01-13T17:13:43.000Z
2022-03-29T12:56:20.000Z
tbx/core/migrations/0115_delete_tshirt_page.py
elviva404/wagtail-torchbox
718d9e2c4337073f010296932d369c726a01dbd3
[ "MIT" ]
57
2015-01-03T12:00:37.000Z
2022-02-09T13:11:30.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.16 on 2019-01-21 13:53 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("wagtailredirects", "0006_redirect_increase_max_length"), ("wagtailforms", "0003_capitalizev...
32.478261
76
0.69344
bd36e2b5687d8d39b195e56b44653f4ec0abdb74
16,651
py
Python
ResearchPlanner/GUI.py
anderskm/Robotti-Research-Planner
7008f6e4b55bc065d80812d076084baa8a65cd82
[ "MIT" ]
1
2021-02-09T20:53:21.000Z
2021-02-09T20:53:21.000Z
ResearchPlanner/GUI.py
anderskm/Robotti-Research-Planner
7008f6e4b55bc065d80812d076084baa8a65cd82
[ "MIT" ]
null
null
null
ResearchPlanner/GUI.py
anderskm/Robotti-Research-Planner
7008f6e4b55bc065d80812d076084baa8a65cd82
[ "MIT" ]
null
null
null
#!/usr/bin/env python from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas from matplotlib.backends.backend_qt4agg import NavigationToolbar2QT as NavigationToolbar from matplotlib.figure import Figure from PyQt5 import QtGui from PyQt5.QtCore import Qt from PyQt5 import QtCore from PyQt5.Qt...
40.711491
275
0.639902
29ade526c99b280f6298295415b97875ddfd14e0
5,838
py
Python
round1a/python/scoring_harness/challenge_config.py
allaway/IDG-DREAM-Drug-Kinase-Challenge
9f75cb27fa927880f61fccc46860e7e12f8da29e
[ "Apache-2.0" ]
null
null
null
round1a/python/scoring_harness/challenge_config.py
allaway/IDG-DREAM-Drug-Kinase-Challenge
9f75cb27fa927880f61fccc46860e7e12f8da29e
[ "Apache-2.0" ]
null
null
null
round1a/python/scoring_harness/challenge_config.py
allaway/IDG-DREAM-Drug-Kinase-Challenge
9f75cb27fa927880f61fccc46860e7e12f8da29e
[ "Apache-2.0" ]
null
null
null
""" config for drug target challenge. """ import pandas as pd import os import sys import evaluation_metrics_python2 as eval CHALLENGE_SYN_ID = "syn15667962" CHALLENGE_NAME = "IDG-DREAM Drug-Kinase Binding Prediction Challenge" ADMIN_USER_IDS = [3360851] REQUIRED_COLUMNS = [ "Compound_SMILES", "Compound_InchiKeys...
36.949367
114
0.667866
24227590c10899a3b989346bf539625f5f5fdd89
840
py
Python
gitlist.py
cloudmesh/cloudmesh-notebook
106c489f8e0ec82b97dec935d2684d40e2e79452
[ "Apache-2.0" ]
null
null
null
gitlist.py
cloudmesh/cloudmesh-notebook
106c489f8e0ec82b97dec935d2684d40e2e79452
[ "Apache-2.0" ]
null
null
null
gitlist.py
cloudmesh/cloudmesh-notebook
106c489f8e0ec82b97dec935d2684d40e2e79452
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from IPython.core.display import display, HTML display(HTML("<style>.container { width:100% !important; }</style>")) import requests from pprint import pprint from cloudmesh.common.Printer import Printer order=["full_name", "description", "open_issues", "created_at", "updated_at"] def re...
21
91
0.634524
0925068f4eb6201f3863521c17c647cfdac1d45d
1,537
py
Python
tests/model/generated/endpoint/test_draft_share_invite_bank.py
luisriverag/sdk_python
8cb9f77da5e1306110706518417e4ddc65c6207f
[ "MIT" ]
88
2017-08-01T18:39:46.000Z
2022-02-21T12:34:16.000Z
tests/model/generated/endpoint/test_draft_share_invite_bank.py
luisriverag/sdk_python
8cb9f77da5e1306110706518417e4ddc65c6207f
[ "MIT" ]
136
2017-08-02T13:54:41.000Z
2021-04-25T20:31:08.000Z
tests/model/generated/endpoint/test_draft_share_invite_bank.py
luisriverag/sdk_python
8cb9f77da5e1306110706518417e4ddc65c6207f
[ "MIT" ]
30
2017-08-15T09:35:42.000Z
2021-05-06T12:42:06.000Z
from datetime import datetime from datetime import timedelta from bunq.sdk.model.generated.endpoint import DraftShareInviteBank from bunq.sdk.model.generated.endpoint import DraftShareInviteBankQrCodeContent from bunq.sdk.model.generated.object_ import DraftShareInviteEntry from bunq.sdk.model.generated.object_ import...
34.155556
91
0.743006
a98c287341e106c75909ab81631bdad6fcf09ae1
12,063
py
Python
tests/targets/test_android.py
fullbuffer/buildozer
459807465ade35fca1fdd71edfe49b157b3b1f42
[ "MIT" ]
null
null
null
tests/targets/test_android.py
fullbuffer/buildozer
459807465ade35fca1fdd71edfe49b157b3b1f42
[ "MIT" ]
null
null
null
tests/targets/test_android.py
fullbuffer/buildozer
459807465ade35fca1fdd71edfe49b157b3b1f42
[ "MIT" ]
null
null
null
import os import tempfile from unittest import mock import pytest from buildozer.targets.android import TargetAndroid from tests.targets.utils import ( init_buildozer, patch_buildozer, patch_buildozer_checkbin, patch_buildozer_cmd, patch_buildozer_file_exists, ) def patch_buildozer_cmd_expect():...
40.076412
121
0.615353
ca871205bd4316882721a6cb9e5c8296689ec886
6,921
py
Python
test/test_constraints.py
pyro-ppl/pyroed
c549bd9dc9511e2199ff55fb2c86f84226b9b1c2
[ "Apache-2.0" ]
12
2022-03-15T16:27:06.000Z
2022-03-25T09:14:45.000Z
test/test_constraints.py
broadinstitute/pyroed
c549bd9dc9511e2199ff55fb2c86f84226b9b1c2
[ "Apache-2.0" ]
2
2022-03-22T17:42:28.000Z
2022-03-22T17:43:30.000Z
test/test_constraints.py
pyro-ppl/pyroed
c549bd9dc9511e2199ff55fb2c86f84226b9b1c2
[ "Apache-2.0" ]
1
2022-03-17T17:02:40.000Z
2022-03-17T17:02:40.000Z
from collections import OrderedDict from typing import List, Optional from pyroed.api import encode_design from pyroed.constraints import ( AllDifferent, And, Function, Iff, IfThen, Not, Or, TakesValue, TakesValues, Xor, ) from pyroed.typing import Schema def stringify(bools: ...
31.175676
86
0.527669
a54cc4f81911648f430ffce3330e19c1d8a1d872
1,283
py
Python
roulette.py
rivcah/shecodes_python
8d907833e5793e0362df1207a1515f590c9a0642
[ "Unlicense" ]
null
null
null
roulette.py
rivcah/shecodes_python
8d907833e5793e0362df1207a1515f590c9a0642
[ "Unlicense" ]
null
null
null
roulette.py
rivcah/shecodes_python
8d907833e5793e0362df1207a1515f590c9a0642
[ "Unlicense" ]
null
null
null
##This function was written as an exercise for the SheCodes' Python track. ##The first function works with Python's random library. def roulette(): import random as r ##I import the random library. ##I chose 'import ... as ...' because in Python you have to ##call the library before you call its specific function...
34.675676
88
0.694466
6be08dcb64cd2360f381e3677b71d7ed1b039993
274
py
Python
draw.py
lemolatoon/CartPoleDQN
c5a2d0fb8e14cd45fb8c6f0267d9d16c7c475f14
[ "MIT" ]
null
null
null
draw.py
lemolatoon/CartPoleDQN
c5a2d0fb8e14cd45fb8c6f0267d9d16c7c475f14
[ "MIT" ]
null
null
null
draw.py
lemolatoon/CartPoleDQN
c5a2d0fb8e14cd45fb8c6f0267d9d16c7c475f14
[ "MIT" ]
null
null
null
import pandas as pd import matplotlib.pyplot as plt rewards = pd.read_pickle("rewards.pkl") plt.plot(range(len(rewards)), rewards) plt.plot([0, 400], [195, 195], "--", color="darkred") plt.xlabel("episodes") plt.ylabel("Total Reward") plt.savefig("rewards_fig.jpg")
30.444444
54
0.70073
b54d9a723933f527d4b5126722997be1cdff1e65
24,138
py
Python
CLSciSumm_2020_Evaluation/18-NLP-PINGAN-TECH/setup/run_sembert_top3/program/task1_eval.py
yolochai/scisumm-corpus
3aa7f89afbe051d7202575b46e8f7449f7a088b0
[ "CC-BY-4.0" ]
198
2015-05-03T06:35:05.000Z
2022-03-21T19:12:20.000Z
CLSciSumm_2020_Evaluation/18-NLP-PINGAN-TECH/setup/run_sembert_top3/program/task1_eval.py
yolochai/scisumm-corpus
3aa7f89afbe051d7202575b46e8f7449f7a088b0
[ "CC-BY-4.0" ]
24
2016-03-05T17:28:14.000Z
2021-07-28T08:14:57.000Z
CLSciSumm_2020_Evaluation/18-NLP-PINGAN-TECH/setup/run_sembert_top3/program/task1_eval.py
yolochai/scisumm-corpus
3aa7f89afbe051d7202575b46e8f7449f7a088b0
[ "CC-BY-4.0" ]
89
2015-04-01T14:19:19.000Z
2022-03-19T18:47:56.000Z
import os import sys import json, csv from bs4 import BeautifulSoup import xml.etree.ElementTree as ET from copy import copy def dictify(r,root=True): if root: return {r.tag : dictify(r, False)} d=copy(r.attrib) if r.text: d["_text"]=r.text for x in r.findall("./*"): if x.tag n...
47.422397
182
0.579335
ddd91633678a6ec96de6416dad9a34b839e6b84a
10,086
py
Python
sdk/formrecognizer/azure-ai-formrecognizer/tests/test_content_from_url_async.py
winest/azure-sdk-for-python
5557136179aa3df49ab9c4abfd3b6d1a9a38975c
[ "MIT" ]
null
null
null
sdk/formrecognizer/azure-ai-formrecognizer/tests/test_content_from_url_async.py
winest/azure-sdk-for-python
5557136179aa3df49ab9c4abfd3b6d1a9a38975c
[ "MIT" ]
null
null
null
sdk/formrecognizer/azure-ai-formrecognizer/tests/test_content_from_url_async.py
winest/azure-sdk-for-python
5557136179aa3df49ab9c4abfd3b6d1a9a38975c
[ "MIT" ]
null
null
null
# coding=utf-8 # ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ import pytest import functools from azure.core.exceptions import HttpResponseError, ServiceRequestError, ClientAuthenticationError from azure.core.creden...
45.026786
116
0.705632
09250aa318544ad98c244eff2e3eb954ab131659
13,331
py
Python
stringlifier/modules/stringc2.py
atreyamaj/stringlifier
97bc8bd01cbb87ec910112809d2a65d73f57d2fc
[ "ECL-2.0", "Apache-2.0" ]
130
2020-08-20T17:57:43.000Z
2022-03-11T07:18:43.000Z
stringlifier/modules/stringc2.py
atreyamaj/stringlifier
97bc8bd01cbb87ec910112809d2a65d73f57d2fc
[ "ECL-2.0", "Apache-2.0" ]
14
2020-08-26T06:18:13.000Z
2021-08-03T01:52:59.000Z
stringlifier/modules/stringc2.py
atreyamaj/stringlifier
97bc8bd01cbb87ec910112809d2a65d73f57d2fc
[ "ECL-2.0", "Apache-2.0" ]
15
2020-08-24T17:43:24.000Z
2021-11-04T08:42:36.000Z
# # Copyright (c) 2020 Adobe Systems Incorporated. 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 a...
34.716146
117
0.586378
547b053d3833ccfa4e0dd3740fa460f6665dcaa6
1,037
py
Python
attribute_filter/base.py
DragonDriver/ann-benchmarks
25be1cf05e7513b3a89c3bca11184629457e60bc
[ "MIT" ]
null
null
null
attribute_filter/base.py
DragonDriver/ann-benchmarks
25be1cf05e7513b3a89c3bca11184629457e60bc
[ "MIT" ]
null
null
null
attribute_filter/base.py
DragonDriver/ann-benchmarks
25be1cf05e7513b3a89c3bca11184629457e60bc
[ "MIT" ]
2
2020-08-15T08:51:26.000Z
2020-09-27T06:45:34.000Z
from __future__ import absolute_import import psutil class BaseANN(object): def done(self): pass def get_memory_usage(self): """Return the current memory usage of this algorithm instance (in kilobytes), or None if this information is not available.""" # return in kB for backw...
21.604167
72
0.619094
ab09a251bcf209d7678219416f7b846df4ee6782
923
py
Python
test/views.py
seanchon/django-health-monitor
ac53757d29b161bdb4bc5ff7db0fe61323a27e94
[ "Apache-2.0" ]
6
2017-04-27T19:27:49.000Z
2020-06-04T05:46:53.000Z
test/views.py
seanchon/django-health-monitor
ac53757d29b161bdb4bc5ff7db0fe61323a27e94
[ "Apache-2.0" ]
6
2017-06-05T21:00:20.000Z
2020-06-30T03:49:00.000Z
test/views.py
seanchon/django-health-monitor
ac53757d29b161bdb4bc5ff7db0fe61323a27e94
[ "Apache-2.0" ]
3
2017-12-07T01:53:41.000Z
2019-12-04T03:43:02.000Z
""" Copyright 2017 Gracenote 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...
30.766667
76
0.774648
552255b693ceb03c9a00e98f5f5da8d8bacaca73
10,322
py
Python
discpy/ui/button.py
AryamanSrii/DiscPy
0ba89da9ca184f0dfaebeedd4e9b7bc3099a0353
[ "MIT" ]
null
null
null
discpy/ui/button.py
AryamanSrii/DiscPy
0ba89da9ca184f0dfaebeedd4e9b7bc3099a0353
[ "MIT" ]
null
null
null
discpy/ui/button.py
AryamanSrii/DiscPy
0ba89da9ca184f0dfaebeedd4e9b7bc3099a0353
[ "MIT" ]
null
null
null
""" The MIT License (MIT) Copyright (c) 2021 The DiscPy Developers Copyright (c) 2015-2021 Rapptz 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...
34.871622
97
0.63912
ff3b5c0cd6d7164031311a083b869861ccfa41d5
96
py
Python
ml_toolkit/webtools/__init__.py
TSPereira/support_toolkit
d9b0488d69dccc38b73cd67ea33f4f53983cf77f
[ "MIT" ]
4
2021-01-05T14:03:54.000Z
2021-01-29T14:48:09.000Z
ml_toolkit/webtools/__init__.py
TSPereira/support_toolkit
d9b0488d69dccc38b73cd67ea33f4f53983cf77f
[ "MIT" ]
null
null
null
ml_toolkit/webtools/__init__.py
TSPereira/support_toolkit
d9b0488d69dccc38b73cd67ea33f4f53983cf77f
[ "MIT" ]
null
null
null
from .url_parsers import LinkParser, parse_url_page __all__ = ['LinkParser', 'parse_url_page']
24
51
0.791667
ec660d0667b2243a875f9bb51f41e6a814730179
2,497
py
Python
portional-web/recipe/tests/conftest.py
davidhousedev/portional
b9a8efab0554d6b1c19aa8b510f3f5a45c91986f
[ "Apache-2.0" ]
null
null
null
portional-web/recipe/tests/conftest.py
davidhousedev/portional
b9a8efab0554d6b1c19aa8b510f3f5a45c91986f
[ "Apache-2.0" ]
5
2021-03-08T23:42:47.000Z
2022-02-26T08:29:09.000Z
portional-web/recipe/tests/conftest.py
davidhousedev/portional
b9a8efab0554d6b1c19aa8b510f3f5a45c91986f
[ "Apache-2.0" ]
1
2019-01-30T19:09:19.000Z
2019-01-30T19:09:19.000Z
import pytest from django.contrib.auth.models import User from django.conf import settings from ..models import ( Recipe, RecipeIngredient, Ingredient, Instruction ) BEEF_KEY = 'beef' BUN_KEY = 'bun' INGREDIENT_MAP = { BEEF_KEY: 'Beef', BUN_KEY: 'Bun', } @pytest.fixture def ingredients(db): ings = {...
23.336449
76
0.619543
9769ba4e6bc1d11779ca221b5221a9bcced05722
1,491
py
Python
assignments/assignment1/metrics.py
iptkachev/dlcourse_ai
bf4d8c7639fa0597580130ae65e1dea0f26d1b4a
[ "MIT" ]
null
null
null
assignments/assignment1/metrics.py
iptkachev/dlcourse_ai
bf4d8c7639fa0597580130ae65e1dea0f26d1b4a
[ "MIT" ]
null
null
null
assignments/assignment1/metrics.py
iptkachev/dlcourse_ai
bf4d8c7639fa0597580130ae65e1dea0f26d1b4a
[ "MIT" ]
null
null
null
def binary_classification_metrics(prediction, ground_truth): ''' Computes metrics for binary classification Arguments: prediction, np array of bool (num_samples) - model predictions ground_truth, np array of bool (num_samples) - true labels Returns: precision, recall, f1, accuracy - classi...
29.235294
66
0.667337
0a7ae6d658a971121b0c2a3f11b5bbd220484bf8
467
py
Python
dictionary.py
joeysal/astr-119-hw-2
cb63f577370e5835c8ae027e624ad2459e71c3cb
[ "MIT" ]
null
null
null
dictionary.py
joeysal/astr-119-hw-2
cb63f577370e5835c8ae027e624ad2459e71c3cb
[ "MIT" ]
1
2020-10-11T23:17:55.000Z
2020-10-17T01:03:17.000Z
dictionary.py
joeysal/astr-119-hw-2
cb63f577370e5835c8ae027e624ad2459e71c3cb
[ "MIT" ]
null
null
null
#define a dictionary data structure #dictionaries have key:valyue pairs for the elements example_dict = { "class" : "ASTR 119", "prof" : "Brant", "awesomeness" : 10 } print ("The type of example_dict is ", type(example_dict)) #get value via key course = example_dict["class"] print(course) example_dict["awesomene...
19.458333
58
0.732334
6788b9b0b7a2d97ad274650bae05a0610728d0c2
14,569
py
Python
kubernetes/test/test_infrastructure_cluster_xk8s_io_v1alpha4_api.py
mariusgheorghies/python
68ac7e168963d8b5a81dc493b1973d29e903a15b
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_infrastructure_cluster_xk8s_io_v1alpha4_api.py
mariusgheorghies/python
68ac7e168963d8b5a81dc493b1973d29e903a15b
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_infrastructure_cluster_xk8s_io_v1alpha4_api.py
mariusgheorghies/python
68ac7e168963d8b5a81dc493b1973d29e903a15b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1.20.7 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unitte...
24.861775
139
0.689272
58a43d7f61e046ec644507c3f9d06ebbaa574b13
8,964
py
Python
PwdGen.py
KrVignesh/PasswordGenerator
f6bfdff96f84a1007e1598bc0e2727e3b1d2aab1
[ "MIT" ]
null
null
null
PwdGen.py
KrVignesh/PasswordGenerator
f6bfdff96f84a1007e1598bc0e2727e3b1d2aab1
[ "MIT" ]
null
null
null
PwdGen.py
KrVignesh/PasswordGenerator
f6bfdff96f84a1007e1598bc0e2727e3b1d2aab1
[ "MIT" ]
null
null
null
from tkinter import * from tkinter import messagebox from pathlib import Path import random import webbrowser # -----FUNCTIONS def disptotal(): global charCount global gp global character global number global symbol gp = "" total = charCount.get() lett = ("0123456789abcdefghijklmnopqrstuvwxyzABCD...
41.88785
218
0.671575
61dae00b1191af31aa31bf7dd39913fb1d556cdd
1,363
py
Python
Lib/test/test_osx_env.py
sireliah/polish-python
605df4944c2d3bc25f8bf6964b274c0a0d297cc3
[ "PSF-2.0" ]
1
2018-06-21T18:21:24.000Z
2018-06-21T18:21:24.000Z
Lib/test/test_osx_env.py
sireliah/polish-python
605df4944c2d3bc25f8bf6964b274c0a0d297cc3
[ "PSF-2.0" ]
null
null
null
Lib/test/test_osx_env.py
sireliah/polish-python
605df4944c2d3bc25f8bf6964b274c0a0d297cc3
[ "PSF-2.0" ]
null
null
null
""" Test suite dla OS X interpreter environment variables. """ z test.support zaimportuj EnvironmentVarGuard zaimportuj subprocess zaimportuj sys zaimportuj sysconfig zaimportuj unittest @unittest.skipUnless(sys.platform == 'darwin' oraz sysconfig.get_config_var('WITH_NEXT_FRAMEWORK'), ...
38.942857
92
0.630961
9fac272ee6df9bc6681c02b6a0fa34ecb5889f55
4,358
py
Python
django/bossingest/test/int_test_ingest_manager.py
ArnaudGallardo/boss
c0d3bbca31575ac5442822b8d7f962def32d9072
[ "Apache-2.0" ]
20
2016-05-16T21:08:13.000Z
2021-11-16T11:50:19.000Z
django/bossingest/test/int_test_ingest_manager.py
ArnaudGallardo/boss
c0d3bbca31575ac5442822b8d7f962def32d9072
[ "Apache-2.0" ]
31
2016-10-28T17:51:11.000Z
2022-02-10T08:07:31.000Z
django/bossingest/test/int_test_ingest_manager.py
ArnaudGallardo/boss
c0d3bbca31575ac5442822b8d7f962def32d9072
[ "Apache-2.0" ]
12
2016-10-28T17:47:01.000Z
2021-05-18T23:47:06.000Z
# Copyright 2016 The Johns Hopkins University Applied Physics Laboratory # # 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 ...
38.22807
116
0.70927
cd4badd17a3a9b8f6d77ddf5c71744c1d16eda63
1,080
py
Python
athemesasl.py
PonyChat/docker-hosted-znc
a8e0e429fe5b4ce148914d748a3d1e394cc8c985
[ "CC0-1.0" ]
3
2016-06-30T04:15:25.000Z
2016-07-30T19:00:53.000Z
athemesasl.py
PonyChat/docker-hosted-znc
a8e0e429fe5b4ce148914d748a3d1e394cc8c985
[ "CC0-1.0" ]
null
null
null
athemesasl.py
PonyChat/docker-hosted-znc
a8e0e429fe5b4ce148914d748a3d1e394cc8c985
[ "CC0-1.0" ]
null
null
null
import base64 import os import znc class athemesasl(znc.Module): module_types = [znc.CModInfo.UserModule] def __init__(self): self.description = "Atheme SASL" def OnServerCapAvailable(self, scap): self.cookie = self.getCookie() self.username = self.GetUser().GetUserName() ...
32.727273
122
0.600926
198c30a663d3e236957b0b2f548d7e50f41bffc4
2,581
py
Python
python/convergdb/locking.py
ray-pan-bci/convergdb
d12730d801200a0a084038dc214c23c2d8adf69b
[ "MIT" ]
10
2018-04-19T16:09:11.000Z
2020-04-15T03:43:28.000Z
python/convergdb/locking.py
ray-pan-bci/convergdb
d12730d801200a0a084038dc214c23c2d8adf69b
[ "MIT" ]
13
2020-04-09T13:56:38.000Z
2020-04-15T03:27:02.000Z
python/convergdb/locking.py
ray-pan-bci/convergdb
d12730d801200a0a084038dc214c23c2d8adf69b
[ "MIT" ]
4
2018-08-31T09:15:27.000Z
2020-04-28T01:24:17.000Z
import boto3 import os import time import uuid from convergdb_logging import * from functools import wraps def dynamodb_client(): if os.environ.has_key('AWS_GLUE_REGION'): return boto3.client('dynamodb', region_name=os.environ['AWS_GLUE_REGION']) else: return boto3.client('dynamodb') lock_table = os.envi...
27.752688
109
0.567222
d5c84effc8f324ca8040a7a285b73f25aa607fbf
696
py
Python
testing/cache/property_pickled.py
xapple/plumbing
47a0a85c5367a01385e8ff30ed658bc34cf0ce2a
[ "MIT" ]
null
null
null
testing/cache/property_pickled.py
xapple/plumbing
47a0a85c5367a01385e8ff30ed658bc34cf0ce2a
[ "MIT" ]
null
null
null
testing/cache/property_pickled.py
xapple/plumbing
47a0a85c5367a01385e8ff30ed658bc34cf0ce2a
[ "MIT" ]
1
2015-08-26T08:53:19.000Z
2015-08-26T08:53:19.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Script to test the functionality of the property_pickled decorator. Written by Lucas Sinclair. MIT Licensed. Call it like this: $ ipython3 -i ~/repos/plumbing/test/cache/property_pickled.py """ # Internal modules # from plumbing.cache import property_pickled ...
24
79
0.525862
43e4392078e272cb35a45f16f67f418930d593c0
4,918
py
Python
src/models/nn/gate.py
dumpmemory/state-spaces
2a85503cb3e9e86cc05753950d4a249df9a0fffb
[ "Apache-2.0" ]
513
2021-11-03T23:08:23.000Z
2022-03-31T16:29:18.000Z
src/models/nn/gate.py
dumpmemory/state-spaces
2a85503cb3e9e86cc05753950d4a249df9a0fffb
[ "Apache-2.0" ]
18
2021-11-05T12:42:59.000Z
2022-03-27T19:49:55.000Z
src/models/nn/gate.py
MikeOwino/state-spaces
b6672bca994b6a36347f414faa59761e42b1e2b1
[ "Apache-2.0" ]
47
2021-11-04T01:32:54.000Z
2022-03-30T18:24:26.000Z
""" Defines flexible gating mechanisms based on ideas from LSSL paper and UR-LSTM paper https://arxiv.org/abs/1910.09890 """ import torch import torch.nn as nn class Gate(nn.Module): """ Implements gating mechanisms. TODO update this with more detailed description with reference to LSSL paper when it's on arxiv ...
37.541985
133
0.524807
8ede58498aa9449244e7b3fddd85f7d06e44c1a7
1,136
py
Python
heart_disease/config/__init__.py
victor-iyi/heart-disease
06540b582e8752d2bb6a32366077872d32d7c0e4
[ "MIT" ]
1
2021-06-20T09:08:26.000Z
2021-06-20T09:08:26.000Z
heart_disease/config/__init__.py
victor-iyi/heart-disease
06540b582e8752d2bb6a32366077872d32d7c0e4
[ "MIT" ]
null
null
null
heart_disease/config/__init__.py
victor-iyi/heart-disease
06540b582e8752d2bb6a32366077872d32d7c0e4
[ "MIT" ]
null
null
null
# Copyright 2021 Victor I. Afolabi # # 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 wri...
29.128205
74
0.732394
a4aa2d57a299c48c35117da629858819aa4eb7b6
3,368
py
Python
bokeh/sphinxext/bokeh_prop.py
timelyportfolio/bokeh
a976a85535cf137c6238ce9e90b41ab14ae8ce22
[ "BSD-3-Clause" ]
1
2015-07-17T13:57:01.000Z
2015-07-17T13:57:01.000Z
bokeh/sphinxext/bokeh_prop.py
evidation-health/bokeh
2c580d93419033b962d36e3c46d7606cc2f24606
[ "BSD-3-Clause" ]
null
null
null
bokeh/sphinxext/bokeh_prop.py
evidation-health/bokeh
2c580d93419033b962d36e3c46d7606cc2f24606
[ "BSD-3-Clause" ]
1
2021-08-01T08:38:53.000Z
2021-08-01T08:38:53.000Z
""" Thoroughly document Bokeh property attributes. The ``bokeh-prop`` directive generates useful type information for the property attribute, including cross links to the relevant property types. Additionally, any per-attribute docstrings are also displayed. Usage ----- This directive takes the path to an attribute ...
26.730159
78
0.656176
5539ed8e2089c11e61964850537c439b5a5bdbd2
1,936
py
Python
lib/googlecloudsdk/api_lib/storage/patch_gcs_messages.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
2
2019-11-10T09:17:07.000Z
2019-12-18T13:44:08.000Z
lib/googlecloudsdk/api_lib/storage/patch_gcs_messages.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/api_lib/storage/patch_gcs_messages.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
1
2020-07-25T01:40:19.000Z
2020-07-25T01:40:19.000Z
# -*- coding: utf-8 -*- # # Copyright 2020 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
36.528302
79
0.789256
b4ceb86771d48481b16daa755a9bf1d40b4c2b4b
5,442
py
Python
build/plugins/pyx.py
Kim2212/catboost
b9ad3b0dac6269c2638e8ee4e7bb85662677a921
[ "Apache-2.0" ]
null
null
null
build/plugins/pyx.py
Kim2212/catboost
b9ad3b0dac6269c2638e8ee4e7bb85662677a921
[ "Apache-2.0" ]
null
null
null
build/plugins/pyx.py
Kim2212/catboost
b9ad3b0dac6269c2638e8ee4e7bb85662677a921
[ "Apache-2.0" ]
null
null
null
import os import re import _common import _import_wrapper as iw INCLUDE_PATTERN = re.compile('(include *"([^"]+)")|(include *\'([^\']+)\')') CIMPORT_PATTERN = re.compile('cimport +([^#]+)') FROM_CIMPORT_PATTERN = re.compile('from +(\S+) +cimport +([^#]+)') INDUCED_PATTERN = re.compile('cdef +extern +from +["\']<?([^...
37.531034
130
0.527563
42fd18b2747b21c8b7ba6990e90564fc2faf30ed
730
py
Python
ap_cli/main.py
monty5811/apostello-docker-cli
80bf49897b8bb5f27c94768c142c6b3fbd6d36bf
[ "MIT" ]
null
null
null
ap_cli/main.py
monty5811/apostello-docker-cli
80bf49897b8bb5f27c94768c142c6b3fbd6d36bf
[ "MIT" ]
null
null
null
ap_cli/main.py
monty5811/apostello-docker-cli
80bf49897b8bb5f27c94768c142c6b3fbd6d36bf
[ "MIT" ]
null
null
null
import os import subprocess from datetime import datetime import click from ap_cli import apostello from ap_cli import build from ap_cli import config from ap_cli import db from ap_cli import dev from ap_cli import init from ap_cli import upgrade @click.group() def cli(): """Setup, configure, and deploy an inst...
18.25
64
0.79589
7872ef9c750361ded12ce5059305f793d6795e34
2,108
py
Python
src/mds/api/contrib/smslib/clickatell.py
m-socha/sana.mds
4d3b71b7ba939c91570fee4f60444cf07035bd51
[ "BSD-3-Clause" ]
2
2016-05-19T02:32:13.000Z
2017-09-06T07:06:25.000Z
src/mds/api/contrib/smslib/clickatell.py
m-socha/sana.mds
4d3b71b7ba939c91570fee4f60444cf07035bd51
[ "BSD-3-Clause" ]
6
2015-07-19T17:40:49.000Z
2016-12-20T21:54:59.000Z
src/mds/api/contrib/smslib/clickatell.py
m-socha/sana.mds
4d3b71b7ba939c91570fee4f60444cf07035bd51
[ "BSD-3-Clause" ]
14
2015-10-30T09:50:21.000Z
2019-06-15T13:07:37.000Z
''' Created on Aug 11, 2012 :author: Sana Development Team :version: 2.0 ''' try: import json as simplejson except ImportError, e: import simplejson import logging import urllib from django.conf import settings def send_clickatell_notification(message_body, phoneId,formatter=None): return Clickatell...
29.277778
94
0.54222
8738ece7270371ecd161f339300520bfdd641234
1,930
py
Python
scons/scons-local-2.5.0/SCons/Tool/DCommon.py
emamanto/Soar
72d2bc095068dd87ac78dad4f48938f6edc0353a
[ "BSD-2-Clause" ]
72
2020-06-12T06:33:41.000Z
2021-03-22T03:15:56.000Z
scons/scons-local-2.5.0/SCons/Tool/DCommon.py
emamanto/Soar
72d2bc095068dd87ac78dad4f48938f6edc0353a
[ "BSD-2-Clause" ]
9
2020-07-02T09:36:49.000Z
2021-03-25T23:54:00.000Z
scons/scons-local-2.5.0/SCons/Tool/DCommon.py
emamanto/Soar
72d2bc095068dd87ac78dad4f48938f6edc0353a
[ "BSD-2-Clause" ]
14
2020-06-12T03:08:03.000Z
2021-02-03T11:43:09.000Z
"""SCons.Tool.DCommon Common code for the various D tools. Coded by Russel Winder (russel@winder.org.uk) 2012-09-06 """ # # Copyright (c) 2001 - 2016 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Soft...
33.859649
106
0.714508
1d01890ceb33c9a214d1b92cca57cad014bea51e
3,064
py
Python
src/waldur_core/structure/management/commands/dumpusers.py
geant-multicloud/MCMS-mastermind
81333180f5e56a0bc88d7dad448505448e01f24e
[ "MIT" ]
26
2017-10-18T13:49:58.000Z
2021-09-19T04:44:09.000Z
src/waldur_core/structure/management/commands/dumpusers.py
geant-multicloud/MCMS-mastermind
81333180f5e56a0bc88d7dad448505448e01f24e
[ "MIT" ]
14
2018-12-10T14:14:51.000Z
2021-06-07T10:33:39.000Z
src/waldur_core/structure/management/commands/dumpusers.py
geant-multicloud/MCMS-mastermind
81333180f5e56a0bc88d7dad448505448e01f24e
[ "MIT" ]
32
2017-09-24T03:10:45.000Z
2021-10-16T16:41:09.000Z
from collections import OrderedDict import prettytable from django.contrib.auth import get_user_model from django.core.management.base import BaseCommand from waldur_core.structure import models User = get_user_model() USER_COLUMNS = OrderedDict( [ # (Column name, User fields) ('Full name, Civil...
30.949495
115
0.598238
b7dd7ea6ea2c6f190b4c4795b2014cdf0ba59f84
3,393
py
Python
get_ttid.py
CCNU-internship-Dec2020/Scrape-IMDb-By-Searching-Name
4262727e68a0120c3ce6918acb74103e56ad977d
[ "MIT" ]
null
null
null
get_ttid.py
CCNU-internship-Dec2020/Scrape-IMDb-By-Searching-Name
4262727e68a0120c3ce6918acb74103e56ad977d
[ "MIT" ]
null
null
null
get_ttid.py
CCNU-internship-Dec2020/Scrape-IMDb-By-Searching-Name
4262727e68a0120c3ce6918acb74103e56ad977d
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding:utf-8 -*- # Copyright © 2021 - wwyqianqian <wwyqianqian@mails.ccnu.edu.com> from bs4 import BeautifulSoup import json import requests import re import os movieid = list() title = list() search_mov_url = list() genres = list() for line in open("movies.dat", encoding = "ISO-8859-1")...
29.25
200
0.587681
e6d5bebff426aad31ae2f1f437150bffea7de45d
257
py
Python
homeassistant/components/sensibo/const.py
PiotrMachowski/core
b9d7d0cae2ccd2d88e90e49cc09e154a27ed809b
[ "Apache-2.0" ]
1
2018-08-01T02:37:08.000Z
2018-08-01T02:37:08.000Z
homeassistant/components/sensibo/const.py
PiotrMachowski/core
b9d7d0cae2ccd2d88e90e49cc09e154a27ed809b
[ "Apache-2.0" ]
18
2021-11-24T06:26:13.000Z
2022-03-31T06:25:15.000Z
homeassistant/components/sensibo/const.py
PiotrMachowski/core
b9d7d0cae2ccd2d88e90e49cc09e154a27ed809b
[ "Apache-2.0" ]
3
2021-11-14T13:29:33.000Z
2021-12-27T17:05:22.000Z
"""Constants for Sensibo.""" import logging from homeassistant.const import Platform LOGGER = logging.getLogger(__package__) DEFAULT_SCAN_INTERVAL = 60 DOMAIN = "sensibo" PLATFORMS = [Platform.CLIMATE] ALL = ["all"] DEFAULT_NAME = "Sensibo" TIMEOUT = 8
17.133333
40
0.754864
b6bb31f979b17496ca0d2c805dde9260f9a07552
4,536
py
Python
gui/kivy/uix/dialogs/fee_dialog.py
OleksandrBlack/electrum-safecoin
71a383635f9f2c3b50649376daabb6ba610431c2
[ "MIT" ]
null
null
null
gui/kivy/uix/dialogs/fee_dialog.py
OleksandrBlack/electrum-safecoin
71a383635f9f2c3b50649376daabb6ba610431c2
[ "MIT" ]
null
null
null
gui/kivy/uix/dialogs/fee_dialog.py
OleksandrBlack/electrum-safecoin
71a383635f9f2c3b50649376daabb6ba610431c2
[ "MIT" ]
1
2020-01-31T22:01:23.000Z
2020-01-31T22:01:23.000Z
from kivy.app import App from kivy.factory import Factory from kivy.properties import ObjectProperty from kivy.lang import Builder from electrum_safecoin_gui.kivy.i18n import _ Builder.load_string(''' <FeeDialog@Popup> id: popup title: _('Transaction Fees') size_hint: 0.8, 0.8 pos_hint: {'top':0.9} ...
34.363636
145
0.544533
b0f125d80fb7ade450d606b59202f6efdb882560
256
py
Python
delete_table.py
1021ky/try_dynamodb
6d254c139a62f578761639dd7deab2c7c44ab6a9
[ "MIT" ]
2
2020-03-23T18:24:44.000Z
2020-03-25T21:25:52.000Z
delete_table.py
1021ky/try_dynamodb
6d254c139a62f578761639dd7deab2c7c44ab6a9
[ "MIT" ]
2
2021-08-05T11:44:53.000Z
2021-08-05T11:44:59.000Z
delete_table.py
1021ky/try_dynamodb
6d254c139a62f578761639dd7deab2c7c44ab6a9
[ "MIT" ]
1
2020-03-23T18:24:52.000Z
2020-03-23T18:24:52.000Z
import boto3 client = boto3.client('dynamodb', region_name='us-east-1') try: resp = client.delete_table( TableName="Books", ) print("Table deleted successfully!") except Exception as e: print("Error deleting table:") print(e)
19.692308
58
0.660156
1e2d6f4d5f1601dfb52b9e477027b27c35f26274
1,294
py
Python
polls/migrations/0001_initial.py
armonkahil/djangoPolls
e610b8e3c123d064020c592f1cdf29ccfec3fdc4
[ "MIT" ]
null
null
null
polls/migrations/0001_initial.py
armonkahil/djangoPolls
e610b8e3c123d064020c592f1cdf29ccfec3fdc4
[ "MIT" ]
null
null
null
polls/migrations/0001_initial.py
armonkahil/djangoPolls
e610b8e3c123d064020c592f1cdf29ccfec3fdc4
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-05-03 11:26 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...
35.944444
118
0.613601
ebdcf5be8c31a69cd6cb0c1e20cada28056f92c1
5,405
py
Python
rl_memory/tests/test_dqn.py
Unique-Divine/test-repo
e7f82e8007df7cc210c35ffaf0f11855c8327c2f
[ "MIT" ]
null
null
null
rl_memory/tests/test_dqn.py
Unique-Divine/test-repo
e7f82e8007df7cc210c35ffaf0f11855c8327c2f
[ "MIT" ]
1
2021-11-12T01:20:30.000Z
2021-11-12T01:20:30.000Z
rl_memory/tests/test_dqn.py
Unique-Divine/test-repo
e7f82e8007df7cc210c35ffaf0f11855c8327c2f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Test module for all classes related to Deep Q-Learning, Deep Q-Network (DQN), and Double DQN. See module `rl_memory.rl_algos.dqn`. """ import os import sys import torch import random import pytest import warnings; warnings.filterwarnings("ignore") from rl_memory.rlm_env import environment fr...
33.571429
80
0.633673
59c23900fa9d77270082f0a2e8b06ca5cc723500
13
py
Python
helloworld.py
rock304/pythonExamples
71635bfa402cf7092361d5f1dfed532ed4513e2d
[ "Apache-2.0" ]
3
2020-03-21T04:37:50.000Z
2021-08-14T07:31:13.000Z
helloworld.py
rock304/pythonExamples
71635bfa402cf7092361d5f1dfed532ed4513e2d
[ "Apache-2.0" ]
null
null
null
helloworld.py
rock304/pythonExamples
71635bfa402cf7092361d5f1dfed532ed4513e2d
[ "Apache-2.0" ]
3
2020-02-04T13:28:47.000Z
2020-06-10T01:34:19.000Z
print "hello"
13
13
0.769231
43d74a2993cea0d977a99bf0ec7f485be635dc9f
26,430
py
Python
yolov5/utils/general.py
brekkanegg/vinbigdata-cxr
e52658d250d973ef3385d8e55ae3c4f236052eca
[ "MIT" ]
null
null
null
yolov5/utils/general.py
brekkanegg/vinbigdata-cxr
e52658d250d973ef3385d8e55ae3c4f236052eca
[ "MIT" ]
null
null
null
yolov5/utils/general.py
brekkanegg/vinbigdata-cxr
e52658d250d973ef3385d8e55ae3c4f236052eca
[ "MIT" ]
null
null
null
# YOLOv5 general utils import glob import logging import math import os import platform import random import re import subprocess import time from pathlib import Path import cv2 import numpy as np import torch import torchvision import yaml from utils.google_utils import gsutil_getsize from utils.metrics import fitn...
33.32913
118
0.536625
f3d3e6658a457335b640f8787eb39222e7b07a95
1,299
py
Python
src/test.py
candYgene/pbg-ld
7f502c44d21c4ecda3fed6d3b531d4c98fdedde6
[ "Apache-2.0" ]
1
2020-07-22T07:39:50.000Z
2020-07-22T07:39:50.000Z
src/test.py
candYgene/pbg-ld
7f502c44d21c4ecda3fed6d3b531d4c98fdedde6
[ "Apache-2.0" ]
45
2017-07-12T07:19:08.000Z
2019-09-02T12:44:38.000Z
src/test.py
candYgene/pbg-ld
7f502c44d21c4ecda3fed6d3b531d4c98fdedde6
[ "Apache-2.0" ]
4
2017-07-12T07:12:16.000Z
2019-07-09T09:34:29.000Z
from __future__ import print_function from SPARQLWrapper import SPARQLWrapper, JSON import sys infile = sys.argv[1] if len(sys.argv) > 1 else "graphs.txt" endpoint = sys.argv[2] if len(sys.argv) > 2 else "http://localhost:8890/sparql" graphs = dict() try: with open(infile, "r") as fin: for line in fin: ...
25.470588
87
0.585835
afffe5e3fac9ddff7a7c35ae0dd8c2b800b27d05
2,882
py
Python
populous/inlines/models.py
caiges/populous
d07094f9d6b2528d282ed99af0063002480bc00b
[ "BSD-3-Clause" ]
2
2016-05-09T01:17:08.000Z
2017-07-18T23:35:01.000Z
populous/inlines/models.py
caiges/populous
d07094f9d6b2528d282ed99af0063002480bc00b
[ "BSD-3-Clause" ]
null
null
null
populous/inlines/models.py
caiges/populous
d07094f9d6b2528d282ed99af0063002480bc00b
[ "BSD-3-Clause" ]
null
null
null
from django.db import models from django.contrib.contenttypes.models import ContentType from django.contrib.sites.models import Site from django.template.defaultfilters import capfirst from populous.inlines.managers import RegisteredInlineManager, RegisteredInlineFieldManager from populous.inlines.utils import get_abs...
34.309524
91
0.696044
5873a39b0334c765605e178044e052cf95dfcd91
3,452
py
Python
openstack_dashboard/contrib/trove/content/database_clusters/tabs.py
Tesora-Release/tesora-horizon
4b0f26d48551783c1fe3ae362d1f8d27570195a9
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/contrib/trove/content/database_clusters/tabs.py
Tesora-Release/tesora-horizon
4b0f26d48551783c1fe3ae362d1f8d27570195a9
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/contrib/trove/content/database_clusters/tabs.py
Tesora-Release/tesora-horizon
4b0f26d48551783c1fe3ae362d1f8d27570195a9
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2014 eBay Software Foundation # Copyright 2015 HP Software, LLC # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.o...
37.521739
78
0.635284
41c2dd92b49e317be5383432d364b5a8675bcc62
24
py
Python
IMP Units/08 ----.py
andrestelex/Impallari-Fontlab-Macros
ed9f57715dd376b513ce1a7ddb4d683e893a849b
[ "Apache-2.0" ]
10
2015-02-25T11:38:56.000Z
2020-11-19T22:47:08.000Z
IMP Units/08 ----.py
andrestelex/Impallari-Fontlab-Macros
ed9f57715dd376b513ce1a7ddb4d683e893a849b
[ "Apache-2.0" ]
3
2015-06-24T05:03:06.000Z
2016-07-28T00:37:31.000Z
IMP Units/08 ----.py
andrestelex/Impallari-Fontlab-Macros
ed9f57715dd376b513ce1a7ddb4d683e893a849b
[ "Apache-2.0" ]
5
2017-04-20T11:09:47.000Z
2021-05-19T22:17:53.000Z
#FLM: -------- pass
6
15
0.291667
eb7ab5f9055209ab40d8122acb7da5e53fcf587c
2,199
py
Python
guild/__init__.py
flamato/guildai
cd6ad6a6b45ea4ff7561318b222888aeb1a22942
[ "Apache-2.0" ]
1
2019-05-31T14:44:07.000Z
2019-05-31T14:44:07.000Z
guild/__init__.py
flamato/guildai
cd6ad6a6b45ea4ff7561318b222888aeb1a22942
[ "Apache-2.0" ]
null
null
null
guild/__init__.py
flamato/guildai
cd6ad6a6b45ea4ff7561318b222888aeb1a22942
[ "Apache-2.0" ]
null
null
null
# Copyright 2017-2019 TensorHub, 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 writ...
29.716216
77
0.65075
6931f789025c3a2955a885ac200628a869cf89f2
6,414
py
Python
SoftLayer/CLI/core.py
briancline/softlayer-python
679fb62ba2db095f0177f9d9488ff4a80c3b7387
[ "MIT" ]
null
null
null
SoftLayer/CLI/core.py
briancline/softlayer-python
679fb62ba2db095f0177f9d9488ff4a80c3b7387
[ "MIT" ]
null
null
null
SoftLayer/CLI/core.py
briancline/softlayer-python
679fb62ba2db095f0177f9d9488ff4a80c3b7387
[ "MIT" ]
null
null
null
""" SoftLayer.CLI.core ~~~~~~~~~~~~~~~~~~ Core for the SoftLayer CLI :license: MIT, see LICENSE for more details. """ from __future__ import print_function import logging import sys import types import SoftLayer from SoftLayer.CLI import environment from SoftLayer.CLI import exceptions from SoftLayer....
31.441176
79
0.605239
4e53f43c38ab2defe49bb29209da753dc1ae5733
811
py
Python
pesados_el_norte/core_app/urls.py
leohakim/new_pesados
624616b17c2d7ddaf71b67890a218213cab580f0
[ "MIT" ]
null
null
null
pesados_el_norte/core_app/urls.py
leohakim/new_pesados
624616b17c2d7ddaf71b67890a218213cab580f0
[ "MIT" ]
null
null
null
pesados_el_norte/core_app/urls.py
leohakim/new_pesados
624616b17c2d7ddaf71b67890a218213cab580f0
[ "MIT" ]
null
null
null
from django.urls import path from django.views.generic import TemplateView from django.contrib.auth.decorators import login_required from pesados_el_norte.core_app.views.caja import CajaListView # from pesados_el_norte.users.views import ( # user_detail_view, # user_redirect_view, # user_update_view, # ) ...
27.965517
77
0.675709
404c0d67cc6f7672d10ce3ae29e9770491c05282
631
py
Python
examples/sharepoint/files/download_file_from_url.py
rikeshtailor/Office365-REST-Python-Client
ca7bfa1b22212137bb4e984c0457632163e89a43
[ "MIT" ]
null
null
null
examples/sharepoint/files/download_file_from_url.py
rikeshtailor/Office365-REST-Python-Client
ca7bfa1b22212137bb4e984c0457632163e89a43
[ "MIT" ]
null
null
null
examples/sharepoint/files/download_file_from_url.py
rikeshtailor/Office365-REST-Python-Client
ca7bfa1b22212137bb4e984c0457632163e89a43
[ "MIT" ]
null
null
null
import os import tempfile from office365.sharepoint.files.file import File from tests import test_client_credentials, test_site_url abs_file_url = "{site_url}sites/team/Shared Documents/big_buck_bunny.mp4".format(site_url=test_site_url) with tempfile.TemporaryDirectory() as local_path: file_name = os.path.basenam...
48.538462
121
0.795563
2455c6c1aefd34aed0f73f88927404a14b076ca4
1,484
py
Python
py_grpc_profile/aio/server/interceptor.py
fossabot/py-grpc-profile
c68540891efb06b3bb8d6beb54238bd9e03c40c8
[ "Apache-2.0" ]
null
null
null
py_grpc_profile/aio/server/interceptor.py
fossabot/py-grpc-profile
c68540891efb06b3bb8d6beb54238bd9e03c40c8
[ "Apache-2.0" ]
2
2021-03-23T23:49:14.000Z
2022-02-11T03:38:44.000Z
py_grpc_profile/aio/server/interceptor.py
fossabot/py-grpc-profile
c68540891efb06b3bb8d6beb54238bd9e03c40c8
[ "Apache-2.0" ]
1
2021-03-23T23:47:17.000Z
2021-03-23T23:47:17.000Z
from typing import Awaitable, Callable, Optional import grpc from py_grpc_profile.adapter import Adapter, CProfileAdapter from py_grpc_profile.server.interceptor import get_rcp_handler, split_method_call class ProfileInterceptor(grpc.aio.ServerInterceptor): def __init__(self, profiler: Optional[Adapter] = None)...
32.977778
81
0.644879
ccdba954e8bb6b6df62b2a814980b832b2610c22
3,604
py
Python
apps/hbase/src/hbase/management/commands/hbase_setup.py
yetsun/hue
2e48f0cc70e233ee0e1b40733d4b2a18d8836c66
[ "Apache-2.0" ]
5,079
2015-01-01T03:39:46.000Z
2022-03-31T07:38:22.000Z
apps/hbase/src/hbase/management/commands/hbase_setup.py
yetsun/hue
2e48f0cc70e233ee0e1b40733d4b2a18d8836c66
[ "Apache-2.0" ]
1,623
2015-01-01T08:06:24.000Z
2022-03-30T19:48:52.000Z
apps/hbase/src/hbase/management/commands/hbase_setup.py
yetsun/hue
2e48f0cc70e233ee0e1b40733d4b2a18d8836c66
[ "Apache-2.0" ]
2,033
2015-01-04T07:18:02.000Z
2022-03-28T19:55:47.000Z
#!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
37.936842
157
0.711432
3343c7294d763f6a4adfdecfa2ee71a822372855
13,948
py
Python
tests/test_toast_load.py
nad-dch/sotodlib
1a88233ea1be1a5bdebe08df057574e4cfe95298
[ "MIT" ]
null
null
null
tests/test_toast_load.py
nad-dch/sotodlib
1a88233ea1be1a5bdebe08df057574e4cfe95298
[ "MIT" ]
null
null
null
tests/test_toast_load.py
nad-dch/sotodlib
1a88233ea1be1a5bdebe08df057574e4cfe95298
[ "MIT" ]
null
null
null
# Copyright (c) 2018-2020 Simons Observatory. # Full license can be found in the top level "LICENSE" file. """Test toast data loading. """ from glob import glob import sys import os import numpy as np from numpy.testing import ( assert_equal, assert_array_almost_equal, assert_array_equal, assert_allclose, ) from ...
32.287037
94
0.567967
fe20d87c94a55c020e7e37619c4c270e35f43415
903
py
Python
web3/apps/sites/management/commands/import_web2.py
anonymoose2/director
c73c0e106372031ffe84bf044d8a88137518635c
[ "MIT" ]
10
2017-03-20T14:40:56.000Z
2020-04-07T17:03:42.000Z
web3/apps/sites/management/commands/import_web2.py
anonymoose2/director
c73c0e106372031ffe84bf044d8a88137518635c
[ "MIT" ]
50
2017-05-23T01:26:26.000Z
2020-06-05T17:13:25.000Z
web3/apps/sites/management/commands/import_web2.py
anonymoose2/director
c73c0e106372031ffe84bf044d8a88137518635c
[ "MIT" ]
9
2017-03-18T01:23:38.000Z
2020-08-17T20:50:07.000Z
# -*- coding: utf-8 -*- from django.core.management.base import BaseCommand from web3.apps.sites.models import Site from web3.apps.sites.helpers import create_site_users, make_site_dirs, create_config_files, reload_services import shutil import os class Command(BaseCommand): help = "Import websites from web2 (...
33.444444
114
0.638981
b4d72d1d499a511bd353b8a3765a5240f33b5b34
3,702
py
Python
calliope/core/util/observed_dict.py
FraSanvit/calliope
9d588fa98ec8eb11065ebb43bcc90d07657b0d43
[ "Apache-2.0" ]
180
2015-02-04T20:03:58.000Z
2022-03-25T05:32:03.000Z
calliope/core/util/observed_dict.py
FraSanvit/calliope
9d588fa98ec8eb11065ebb43bcc90d07657b0d43
[ "Apache-2.0" ]
363
2015-11-23T16:36:05.000Z
2022-03-29T17:03:58.000Z
calliope/core/util/observed_dict.py
FraSanvit/calliope
9d588fa98ec8eb11065ebb43bcc90d07657b0d43
[ "Apache-2.0" ]
73
2016-06-07T09:34:07.000Z
2022-03-22T17:28:14.000Z
""" Copyright (C) since 2013 Calliope contributors listed in AUTHORS. Licensed under the Apache 2.0 License (see LICENSE file). """ from collections.abc import Mapping from calliope.core.attrdict import AttrDict class ObservedDict(dict): """ Dictionary subclass which updates UpdateObserverDict when there is...
33.351351
87
0.632631
6bc6db85603b6a0d500d25a740dcea2150be6c9d
1,762
py
Python
salt/output/virt_query.py
dr4Ke/salt
8ffa4903c9ed10c81e1a6c7b967dc9532f320c0b
[ "Apache-2.0" ]
2
2017-09-17T21:10:35.000Z
2019-08-26T03:00:12.000Z
salt/output/virt_query.py
dr4Ke/salt
8ffa4903c9ed10c81e1a6c7b967dc9532f320c0b
[ "Apache-2.0" ]
null
null
null
salt/output/virt_query.py
dr4Ke/salt
8ffa4903c9ed10c81e1a6c7b967dc9532f320c0b
[ "Apache-2.0" ]
3
2021-02-23T08:12:48.000Z
2021-02-23T08:13:13.000Z
# -*- coding: utf-8 -*- ''' virt.query outputter ==================== Used to display the output from the :mod:`virt.query <salt.runners.virt.query>` runner. ''' def output(data): ''' Display output for the salt-run virt.query function ''' out = '' for id_ in data: out += '{0}\n'.format(i...
40.045455
129
0.435301
c2cb76add1c5cacee5863d445a8086220b0771e4
19,169
py
Python
src/web/main.py
supernifty/NiftyWrite
8bca013675c16e3095e1a661bfa9eb23f70b8542
[ "BSD-3-Clause" ]
null
null
null
src/web/main.py
supernifty/NiftyWrite
8bca013675c16e3095e1a661bfa9eb23f70b8542
[ "BSD-3-Clause" ]
9
2019-01-22T06:51:14.000Z
2021-12-09T00:02:21.000Z
src/web/main.py
supernifty/NiftyWrite
8bca013675c16e3095e1a661bfa9eb23f70b8542
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python ''' main application defines available views ''' import base64 import datetime import flask import flask_mail import io import json import mimetypes import os import urllib.parse import zipfile from PIL import Image import sqlalchemy import flask_sqlalchemy import auth import config import mo...
44.892272
230
0.668162
4128cb0701a1d2fb2d96b398323856ff47e4137b
923
py
Python
sidekick/models/__init__.py
cybera/netbox-sidekick
ec5e2080513d088e2604d8755f34b1d2592b95dd
[ "Apache-2.0" ]
3
2020-09-07T12:14:31.000Z
2021-11-11T11:46:43.000Z
sidekick/models/__init__.py
cybera/netbox-sidekick
ec5e2080513d088e2604d8755f34b1d2592b95dd
[ "Apache-2.0" ]
null
null
null
sidekick/models/__init__.py
cybera/netbox-sidekick
ec5e2080513d088e2604d8755f34b1d2592b95dd
[ "Apache-2.0" ]
null
null
null
from .accounting import AccountingSource # noqa: F401 from .accounting import AccountingSourceCounter # noqa: F401 from .accounting import AccountingProfile # noqa: F401 from .accounting import BandwidthProfile # noqa: F401 from .contact import ContactType, Co...
65.928571
70
0.666306
c57aaa287e955382c331c011fc04fd0864e20fd6
755
py
Python
medium/Q8_StringToInteger.py
Kaciras/leetcode
d203aecd1afe1af13a0384a9c657c8424aab322d
[ "MIT" ]
null
null
null
medium/Q8_StringToInteger.py
Kaciras/leetcode
d203aecd1afe1af13a0384a9c657c8424aab322d
[ "MIT" ]
null
null
null
medium/Q8_StringToInteger.py
Kaciras/leetcode
d203aecd1afe1af13a0384a9c657c8424aab322d
[ "MIT" ]
null
null
null
class Solution: def myAtoi(self, str): """ :type str: str :rtype: int """ str = str.lstrip() if len(str) == 0: return 0 i, r, signum = 0, 0, 1 if str[0] == "-": i, signum = 1, -1 elif str[0] == "+": i = 1 while i < len(str): v = ord(str[i]) - 48 # 48换为ord("0")更可读 if not 0 <= v < 10...
19.358974
44
0.528477
f3eaff6cf0f8520ae0e47532990f9c0f59601d01
218
py
Python
moengage/exceptions.py
Deepanshu07/moengage
1beb08b89411d931391dee48ebdf59f872edc6e4
[ "MIT" ]
1
2022-01-01T17:11:37.000Z
2022-01-01T17:11:37.000Z
moengage/exceptions.py
Deepanshu07/moengage
1beb08b89411d931391dee48ebdf59f872edc6e4
[ "MIT" ]
null
null
null
moengage/exceptions.py
Deepanshu07/moengage
1beb08b89411d931391dee48ebdf59f872edc6e4
[ "MIT" ]
null
null
null
class MoengageAPIException(Exception): def __init__(self, message): super().__init__(message) class MoengageWrapperException(Exception): def __init__(self, message): super().__init__(message)
24.222222
42
0.715596
0a548711bb6f746ee91a29e0c54517079b57954d
1,386
py
Python
demosys/opengl/projection.py
Contraz/demosys-py
0479e0f3b0a3901f601bffd2d11e155f97b47555
[ "0BSD" ]
70
2017-03-31T12:01:41.000Z
2022-01-05T06:30:57.000Z
demosys/opengl/projection.py
Contraz/demosys-py
0479e0f3b0a3901f601bffd2d11e155f97b47555
[ "0BSD" ]
69
2017-06-18T22:37:46.000Z
2020-01-23T04:02:22.000Z
demosys/opengl/projection.py
Contraz/demosys-py
0479e0f3b0a3901f601bffd2d11e155f97b47555
[ "0BSD" ]
9
2017-05-13T21:13:02.000Z
2020-10-01T18:09:49.000Z
from pyrr import Matrix44 class Projection: """ Represent a projection matrix and its various properties including tools. """ def __init__(self, aspect_ratio=9 / 16, fov=75, near=1, far=100): self.aspect_ratio = aspect_ratio self.fov = fov self.near = near self.far ...
31.5
103
0.621934
ec4d31aa60e95c47083cd76a6e493ca356411b63
597
py
Python
amundsenatlastypes/client.py
stswn/amundsen-atlas-types
99a650b4930ae0674636173fc3bec4b1e6880e42
[ "Apache-2.0" ]
19
2019-11-06T01:14:09.000Z
2021-07-26T12:06:49.000Z
amundsenatlastypes/client.py
stswn/amundsen-atlas-types
99a650b4930ae0674636173fc3bec4b1e6880e42
[ "Apache-2.0" ]
11
2019-11-05T11:37:47.000Z
2021-06-13T16:13:09.000Z
amundsenatlastypes/client.py
stswn/amundsen-atlas-types
99a650b4930ae0674636173fc3bec4b1e6880e42
[ "Apache-2.0" ]
13
2019-08-16T10:12:44.000Z
2021-09-22T06:12:55.000Z
import os from atlasclient.client import Atlas class AtlasClient: host = os.environ.get('ATLAS_HOST', 'localhost') port = os.environ.get('ATLAS_PORT', 21000) user = os.environ.get('ATLAS_USERNAME', 'admin') password = os.environ.get('ATLAS_PASSWORD', 'admin') timeout = os.environ.get('ATLAS_REQUE...
27.136364
57
0.60804
11ec8705cc0f0824475d2fbdf4171fa509aa8738
409
py
Python
expenses_report/visualizations/i_visualization.py
kircher-sw/expenses-tracker
afd9550616a79f54dd119d91cec209c7748e9689
[ "BSD-3-Clause" ]
2
2019-07-24T16:01:12.000Z
2021-07-21T01:51:33.000Z
expenses_report/visualizations/i_visualization.py
kircher-sw/expenses-tracker
afd9550616a79f54dd119d91cec209c7748e9689
[ "BSD-3-Clause" ]
null
null
null
expenses_report/visualizations/i_visualization.py
kircher-sw/expenses-tracker
afd9550616a79f54dd119d91cec209c7748e9689
[ "BSD-3-Clause" ]
null
null
null
import plotly.graph_objects as go from expenses_report.preprocessing.data_provider import DataProvider class IVisualization: """""" def prepare_data(self, data: DataProvider): """""" pass def build_visualization(self) -> go.Figure: """""" pass def build(self, data: ...
20.45
68
0.647922
29220550568510ab527ca675a6ceac4b61e88808
7,683
py
Python
python/http_client/v1/polyaxon_sdk/models/v1_grid_search.py
polyaxon/client
1beaf78b0aa9fabc37b42a253d5e29c0623d8b16
[ "Apache-2.0" ]
null
null
null
python/http_client/v1/polyaxon_sdk/models/v1_grid_search.py
polyaxon/client
1beaf78b0aa9fabc37b42a253d5e29c0623d8b16
[ "Apache-2.0" ]
null
null
null
python/http_client/v1/polyaxon_sdk/models/v1_grid_search.py
polyaxon/client
1beaf78b0aa9fabc37b42a253d5e29c0623d8b16
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2018-2022 Polyaxon, 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 ...
27.537634
159
0.591566
14fcc7b7d83a9e95f73604f895712296ebcf1317
588
py
Python
tests/test_docs.py
koaning/icepickle
f6692e334ceebe8390d8b4960a56eb661236edd3
[ "MIT" ]
8
2022-02-14T20:20:30.000Z
2022-03-08T10:03:13.000Z
tests/test_docs.py
koaning/icepickle
f6692e334ceebe8390d8b4960a56eb661236edd3
[ "MIT" ]
1
2022-02-20T08:40:42.000Z
2022-02-20T15:02:58.000Z
tests/test_docs.py
koaning/icepickle
f6692e334ceebe8390d8b4960a56eb661236edd3
[ "MIT" ]
null
null
null
import pytest from mktestdocs import check_docstring, check_md_file from icepickle.pipeline import ( PartialPipeline, PartialFeatureUnion, make_partial_pipeline, make_partial_union, ) components = [ PartialPipeline, PartialFeatureUnion, make_partial_pipeline, make_partial_union, ] @...
20.275862
73
0.732993
9b409f1804c5fc1cb2ebf8681820456ccd4d543d
1,916
py
Python
CS224d_assignment1/q1_softmax.py
Darktex/CS224d
ea31492e4be8563189aed44cdde7bb66eb424a68
[ "MIT" ]
1
2017-05-01T10:07:02.000Z
2017-05-01T10:07:02.000Z
CS224d_assignment1/q1_softmax.py
Darktex/CS224d
ea31492e4be8563189aed44cdde7bb66eb424a68
[ "MIT" ]
null
null
null
CS224d_assignment1/q1_softmax.py
Darktex/CS224d
ea31492e4be8563189aed44cdde7bb66eb424a68
[ "MIT" ]
1
2018-09-29T10:12:00.000Z
2018-09-29T10:12:00.000Z
import numpy as np import random def softmax(x): """ Compute the softmax function for each row of the input x. It is crucial that this function is optimized for speed because it will be used frequently in later code. You might find numpy functions np.exp, np.sum, np.reshape, np.max, and numpy ...
29.030303
71
0.655532
e849e16d51847a346670d07af2621cc1070f5659
28,879
py
Python
Lib/distutils/msvc9compiler.py
deadsnakes/python3.1
88d77610a7873c5161bfc15cd69557fc7697b1a3
[ "PSF-2.0" ]
null
null
null
Lib/distutils/msvc9compiler.py
deadsnakes/python3.1
88d77610a7873c5161bfc15cd69557fc7697b1a3
[ "PSF-2.0" ]
null
null
null
Lib/distutils/msvc9compiler.py
deadsnakes/python3.1
88d77610a7873c5161bfc15cd69557fc7697b1a3
[ "PSF-2.0" ]
null
null
null
"""distutils.msvc9compiler Contains MSVCCompiler, an implementation of the abstract CCompiler class for the Microsoft Visual Studio 2008. The module is compatible with VS 2005 and VS 2008. You can find legacy support for older versions of VS in distutils.msvccompiler. """ # Written by Perry Stoll # hacked by Robin B...
38.250331
99
0.55639
6ab637da8fc90bedf5a46481d9d6a270c4c01895
21,957
py
Python
qa/rpc-tests/replace-by-fee.py
infertux/bitcoinclassic
e744f27b6c6375749ce81aa395fb82445b40af49
[ "MIT" ]
null
null
null
qa/rpc-tests/replace-by-fee.py
infertux/bitcoinclassic
e744f27b6c6375749ce81aa395fb82445b40af49
[ "MIT" ]
null
null
null
qa/rpc-tests/replace-by-fee.py
infertux/bitcoinclassic
e744f27b6c6375749ce81aa395fb82445b40af49
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # Copyright (c) 2014-2015 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Test replace by fee code # from test_framework.test_framework import BitcoinTestFramework from test_...
37.405451
105
0.5999
4ba4ada7a8c4e582c2de1d2c8a1305b8826c5d4a
32,422
py
Python
sdk/storage/azure-storage-blob/azure/storage/blob/_generated/aio/operations_async/_append_blob_operations_async.py
kushan2018/azure-sdk-for-python
08a9296207281f4e90e23cf7a30173863accc867
[ "MIT" ]
null
null
null
sdk/storage/azure-storage-blob/azure/storage/blob/_generated/aio/operations_async/_append_blob_operations_async.py
kushan2018/azure-sdk-for-python
08a9296207281f4e90e23cf7a30173863accc867
[ "MIT" ]
1
2020-03-06T05:57:16.000Z
2020-03-06T05:57:16.000Z
sdk/storage/azure-storage-blob/azure/storage/blob/_generated/aio/operations_async/_append_blob_operations_async.py
kushan2018/azure-sdk-for-python
08a9296207281f4e90e23cf7a30173863accc867
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
60.152134
384
0.690426
74c9a12db05d3ffa65f01dcef3dc71bc26e24d14
5,439
py
Python
sanaviron/src/3rd/pycha/tests/pie.py
StetHD/sanaviron
dcb5d3ac6725771942e669a29961ba3f811b7fd4
[ "Apache-2.0" ]
null
null
null
sanaviron/src/3rd/pycha/tests/pie.py
StetHD/sanaviron
dcb5d3ac6725771942e669a29961ba3f811b7fd4
[ "Apache-2.0" ]
null
null
null
sanaviron/src/3rd/pycha/tests/pie.py
StetHD/sanaviron
dcb5d3ac6725771942e669a29961ba3f811b7fd4
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2007-2008 by Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com> # # This file is part of PyCha. # # PyCha 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 3 of the License...
36.75
81
0.578415
1d9d88b663109da891d5283e0a8aedbe27592fcb
4,333
py
Python
notebooks/src/combined_nn.py
arunparayatham/voxceleb_enrichment_age_gender
f13c06f852178dbd543caedd53a9909052a5fdbc
[ "MIT" ]
12
2021-04-06T13:45:40.000Z
2022-03-24T18:03:03.000Z
notebooks/src/combined_nn.py
arunparayatham/voxceleb_enrichment_age_gender
f13c06f852178dbd543caedd53a9909052a5fdbc
[ "MIT" ]
1
2021-10-05T10:18:22.000Z
2022-03-29T12:24:49.000Z
notebooks/src/combined_nn.py
arunparayatham/voxceleb_enrichment_age_gender
f13c06f852178dbd543caedd53a9909052a5fdbc
[ "MIT" ]
4
2021-04-02T06:20:00.000Z
2022-03-15T05:37:21.000Z
from tensorflow.keras.layers import Conv1D, Conv2D, MaxPooling1D, MaxPooling2D, Flatten, BatchNormalization, Dense, Dropout, Input, LSTM, GlobalAveragePooling1D, GlobalAveragePooling2D, AveragePooling1D from tensorflow.keras import Sequential from tensorflow.keras.callbacks import EarlyStopping, ReduceLROnPlateau from ...
36.108333
202
0.60697
3e62e8ab90995c63c9b6014302f136774284ce7a
600
py
Python
math/pascal.py
jcarreiro/jmc-python
979c67ca489d4e80e6be96d23f8bcecacabbee59
[ "MIT" ]
null
null
null
math/pascal.py
jcarreiro/jmc-python
979c67ca489d4e80e6be96d23f8bcecacabbee59
[ "MIT" ]
null
null
null
math/pascal.py
jcarreiro/jmc-python
979c67ca489d4e80e6be96d23f8bcecacabbee59
[ "MIT" ]
null
null
null
# Generates Pascal's Triangle # # 1 # 1 1 # 1 2 1 # 1 3 3 1 # # etc... from numeric import * # This is an iterative solution. def pascals_triangle(n): for r in range(0, n): for c in range(0, r+1): print n_choose_k(r, c), print # This is a tree recursi...
19.354839
40
0.5
1fd13242cf2b9251931fdaeaae321df99d3af874
1,274
py
Python
tasks/task5/5_3.py
eweilow/si1336-simulation-and-modeling
98a8f4e8067a82584e8d6e4aa3b8c7bee6b0dc2b
[ "MIT" ]
null
null
null
tasks/task5/5_3.py
eweilow/si1336-simulation-and-modeling
98a8f4e8067a82584e8d6e4aa3b8c7bee6b0dc2b
[ "MIT" ]
null
null
null
tasks/task5/5_3.py
eweilow/si1336-simulation-and-modeling
98a8f4e8067a82584e8d6e4aa3b8c7bee6b0dc2b
[ "MIT" ]
1
2020-11-05T08:07:06.000Z
2020-11-05T08:07:06.000Z
import matplotlib from matplotlib import patheffects import matplotlib.pyplot as plt import numpy as np import struct maxStepSizes = [] means = [] cVs = [] ratios = [] temperatures = [] averageDistances = [] structFormat = struct.Struct("dddddd") with open("./5_3/data.bin", "rb") as f: count, = struct.unpack("I"...
27.106383
95
0.709576
7646dc35449c0e7099462a0fed2ca45427a5c577
940
py
Python
xsrc/nqbp/tests/workspace1/PkgA/scripts/example_preprocessing_base.py
johnttaylor/foxtail
86e4e1d19d5e8f9c1d1064cf0939f4bf62615400
[ "BSD-3-Clause" ]
null
null
null
xsrc/nqbp/tests/workspace1/PkgA/scripts/example_preprocessing_base.py
johnttaylor/foxtail
86e4e1d19d5e8f9c1d1064cf0939f4bf62615400
[ "BSD-3-Clause" ]
null
null
null
xsrc/nqbp/tests/workspace1/PkgA/scripts/example_preprocessing_base.py
johnttaylor/foxtail
86e4e1d19d5e8f9c1d1064cf0939f4bf62615400
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python3 #--------------------------------------------------------------------------- # This is example of the 'single instance' NQBP pre-processing script # where <arg7> <arg8> ... are project specific arguments passed to the # <preprocess-script.py> script when it is # ...
34.814815
77
0.471277
d6c76e83d469c4705a5d79868b6a7b55ab6ce3dd
4,087
py
Python
driller/local_callback.py
xiaosatianyu/driller-y
cb83d8169de73b9ba05da416fc6076946c64e2d0
[ "BSD-2-Clause" ]
null
null
null
driller/local_callback.py
xiaosatianyu/driller-y
cb83d8169de73b9ba05da416fc6076946c64e2d0
[ "BSD-2-Clause" ]
null
null
null
driller/local_callback.py
xiaosatianyu/driller-y
cb83d8169de73b9ba05da416fc6076946c64e2d0
[ "BSD-2-Clause" ]
null
null
null
import os import sys import signal import logging import driller #pylint:disable=relative-import,unused-import import subprocess import multiprocessing l = logging.getLogger("local_callback") def _run_drill(drill, fuzz, _path_to_input_to_drill): _binary_path = fuzz.binary_path _fuzzer_out_dir = fuzz.out_dir ...
36.168142
131
0.656472
6dc31a42a84d68378d38da0963f575d3fcc858ee
179,104
py
Python
tensorflow/python/keras/backend.py
khanhlvg/tensorflow
a59b74ccaafae59d616ecf08204d63023ff6f49c
[ "Apache-2.0" ]
2
2019-06-28T17:43:04.000Z
2019-06-28T17:43:07.000Z
tensorflow/python/keras/backend.py
khanhlvg/tensorflow
a59b74ccaafae59d616ecf08204d63023ff6f49c
[ "Apache-2.0" ]
null
null
null
tensorflow/python/keras/backend.py
khanhlvg/tensorflow
a59b74ccaafae59d616ecf08204d63023ff6f49c
[ "Apache-2.0" ]
1
2021-02-27T07:40:01.000Z
2021-02-27T07:40:01.000Z
# Copyright 2015 The TensorFlow 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 applica...
31.44382
117
0.663949
e1056c0a037cd2805456217874f7a93ac3ac489f
1,877
py
Python
src/ebay_rest/api/buy_deal/__init__.py
gbm001/ebay_rest
077d3478423ccd80ff35e0361821d6a11180bc54
[ "MIT" ]
3
2021-12-12T04:28:03.000Z
2022-03-10T03:29:18.000Z
src/ebay_rest/api/buy_deal/__init__.py
jdavv/ebay_rest
20fc88c6aefdae9ab90f9c1330e79abddcd750cd
[ "MIT" ]
33
2021-06-16T20:44:36.000Z
2022-03-30T14:55:06.000Z
src/ebay_rest/api/buy_deal/__init__.py
jdavv/ebay_rest
20fc88c6aefdae9ab90f9c1330e79abddcd750cd
[ "MIT" ]
7
2021-06-03T09:30:23.000Z
2022-03-08T19:51:33.000Z
# coding: utf-8 # flake8: noqa """ Deal API <span class=\"tablenote\"><b>Note:</b> This is a <a href=\"https://developer.ebay.com/api-docs/static/versioning.html#limited\" target=\"_blank\"> <img src=\"/cms/img/docs/partners-api.svg\" class=\"legend-icon partners-icon\" title=\"Limited Release\" alt=\"Limit...
48.128205
569
0.793287
bad674d791a12a7c5d94db5634342e03ce304f62
2,312
py
Python
tests/test_matcher.py
davidz627/AmazonSyncForYNAB
57620a4664ac7a2df686c991f1e1b55198a240fb
[ "MIT" ]
14
2020-05-07T21:44:00.000Z
2021-07-31T19:15:10.000Z
tests/test_matcher.py
davidz627/AmazonSyncForYNAB
57620a4664ac7a2df686c991f1e1b55198a240fb
[ "MIT" ]
9
2020-05-07T07:48:09.000Z
2020-10-03T19:39:17.000Z
tests/test_matcher.py
davidz627/AmazonSyncForYNAB
57620a4664ac7a2df686c991f1e1b55198a240fb
[ "MIT" ]
2
2020-09-14T02:19:00.000Z
2020-09-27T19:26:08.000Z
from context import matcher from context import util import re # TODO: Fix up these tests. def testmatchAmazonTransactions(): tests = { "simple": { "items": [("a", 200), ("b", 600), ("c", 1253), ("d", 112), ("e", 325), ("f", 823)], "transactions": [112, 925, 2276], "expM...
37.290323
95
0.462803
cc23e9c1c3390c89e468434ce5d793364cd568ed
6,235
py
Python
real_time_face_recognition.py
hazbiy97/SAC
4202fcf4e91264b755d46ef011b283bb2bf8e7f0
[ "MIT" ]
null
null
null
real_time_face_recognition.py
hazbiy97/SAC
4202fcf4e91264b755d46ef011b283bb2bf8e7f0
[ "MIT" ]
null
null
null
real_time_face_recognition.py
hazbiy97/SAC
4202fcf4e91264b755d46ef011b283bb2bf8e7f0
[ "MIT" ]
null
null
null
# ----------------------------------------------------------------------------------------- # Code taken from https://github.com/davidsandberg/facenet with modifications # ----------------------------------------------------------------------------------------- # coding=utf-8 """Performs face detection in realtime. B...
32.989418
112
0.60417
2f18f2bbba51eb959a7da022afe24a3dde1d905b
14,208
py
Python
src/tests/google/appengine/ext/datastore_admin/utils.py
cooljeanius/cauliflowervest
a9bc209b610a927083bf16274d8451c6c45227bf
[ "Apache-2.0" ]
1
2020-10-13T19:53:04.000Z
2020-10-13T19:53:04.000Z
src/tests/google/appengine/ext/datastore_admin/utils.py
cooljeanius/cauliflowervest
a9bc209b610a927083bf16274d8451c6c45227bf
[ "Apache-2.0" ]
null
null
null
src/tests/google/appengine/ext/datastore_admin/utils.py
cooljeanius/cauliflowervest
a9bc209b610a927083bf16274d8451c6c45227bf
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
28.246521
80
0.702914
9689bc6da35cffb0c0d072d6be4ba536ce3dd535
98,994
py
Python
pyuvdata/tests/test_uvbeam.py
ntk688/pyuvdata
96be086324ba8f35815dd590429c6415411c15ea
[ "BSD-2-Clause" ]
null
null
null
pyuvdata/tests/test_uvbeam.py
ntk688/pyuvdata
96be086324ba8f35815dd590429c6415411c15ea
[ "BSD-2-Clause" ]
null
null
null
pyuvdata/tests/test_uvbeam.py
ntk688/pyuvdata
96be086324ba8f35815dd590429c6415411c15ea
[ "BSD-2-Clause" ]
null
null
null
# -*- mode: python; coding: utf-8 -* # Copyright (c) 2018 Radio Astronomy Software Group # Licensed under the 2-clause BSD License """Tests for uvbeam object. """ from __future__ import absolute_import, division, print_function import os import copy import numpy as np from astropy import units from astropy.coordina...
48.813609
116
0.634776
9ea09c29adba3bedefbdfbaa8ea2b295d98d220c
3,682
py
Python
restalchemy/validators.py
restalchemy/restalchemy
dcbe5312832f35ad4fa7262516c32579e0acd214
[ "0BSD" ]
1
2019-01-16T18:40:01.000Z
2019-01-16T18:40:01.000Z
restalchemy/validators.py
restalchemy/restalchemy
dcbe5312832f35ad4fa7262516c32579e0acd214
[ "0BSD" ]
null
null
null
restalchemy/validators.py
restalchemy/restalchemy
dcbe5312832f35ad4fa7262516c32579e0acd214
[ "0BSD" ]
null
null
null
from datetime import datetime from pyramid.config import Configurator from restalchemy.exceptions import AttributeWrong from sqlalchemy import DECIMAL, DateTime, Enum, Float, Integer, String, event from .model import RestalchemyBase def validate_int(column, value): if isinstance(value, str): try: ...
30.941176
100
0.652091
115b60349ef93e835e9186c49a97c3d5585d1abe
2,788
py
Python
tests/test_metadata.py
adrien-berchet/sphinx-bluebrain-theme
8ecab402e8ba09da45dd423de9395173ddca7337
[ "MIT" ]
2
2020-08-08T18:47:51.000Z
2021-07-23T13:56:51.000Z
tests/test_metadata.py
adrien-berchet/sphinx-bluebrain-theme
8ecab402e8ba09da45dd423de9395173ddca7337
[ "MIT" ]
15
2020-04-09T13:24:12.000Z
2022-03-29T08:24:45.000Z
tests/test_metadata.py
adrien-berchet/sphinx-bluebrain-theme
8ecab402e8ba09da45dd423de9395173ddca7337
[ "MIT" ]
2
2021-04-22T08:15:13.000Z
2021-12-22T08:23:37.000Z
"""Tests for metadata generation utilities.""" from contextlib import contextmanager import json import os import shutil import sys import tempfile from nose import tools as nt # pylint: disable=import-error from sphinx_bluebrain_theme.utils import metadata @contextmanager def setup_tempdir(prefix): """Create...
27.067961
80
0.624821
178649b04ee976918cde7294b93c9476e15e6ba6
1,858
py
Python
core/migrations/0002_auto_20170524_1929.py
zarathon/gddmaker
58e185e6baa10bdcb863acdf3b946297adeb65c8
[ "MIT" ]
2
2017-09-25T18:12:55.000Z
2018-05-25T09:48:29.000Z
core/migrations/0002_auto_20170524_1929.py
zarathon/gddmaker
58e185e6baa10bdcb863acdf3b946297adeb65c8
[ "MIT" ]
null
null
null
core/migrations/0002_auto_20170524_1929.py
zarathon/gddmaker
58e185e6baa10bdcb863acdf3b946297adeb65c8
[ "MIT" ]
1
2019-09-25T23:25:27.000Z
2019-09-25T23:25:27.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-05-24 19:29 from __future__ import unicode_literals import ckeditor.fields from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0001_initial'), ] operations = [ migrations.Al...
27.731343
51
0.542519
fe6cb8ccbe6293f6e11d2e3e9d068fb53f98e712
92
py
Python
web2py/parameters_8000.py
seadsystem/website
d7e8110c012d94c494895fde9951eef728266798
[ "MIT" ]
5
2016-03-20T07:07:17.000Z
2018-04-12T16:34:12.000Z
web2py/parameters_8000.py
grant523/website
1b5351e638a15a1c0c68e55f9162d1b8e62974bb
[ "MIT" ]
22
2015-11-04T23:11:41.000Z
2016-05-19T00:08:54.000Z
web2py/parameters_8000.py
grant523/website
1b5351e638a15a1c0c68e55f9162d1b8e62974bb
[ "MIT" ]
4
2015-10-29T01:46:44.000Z
2018-04-09T22:05:28.000Z
password="pbkdf2(1000,20,sha512)$b5e8c23b5f1c9ac6$cb4563c5e0260d493a465ee1d135ac554457f37a"
46
91
0.891304
1fcdf014094af7ce40dd66580466ddb36f4de759
3,722
py
Python
rl/core/oracles/oracles.py
gtrll/librl
39709c3e485e232865b3e08b7211cd9d871c666a
[ "MIT" ]
5
2020-07-14T23:01:53.000Z
2020-12-09T08:11:29.000Z
rl/core/oracles/oracles.py
chinganc/mamba
e8adf0cf91660aed2c025508137a14f9d062248c
[ "MIT" ]
1
2022-03-27T04:43:31.000Z
2022-03-27T04:43:31.000Z
rl/core/oracles/oracles.py
chinganc/mamba
e8adf0cf91660aed2c025508137a14f9d062248c
[ "MIT" ]
4
2020-08-05T14:13:26.000Z
2022-02-26T00:46:03.000Z
# Copyright (c) 2019 Georgia Tech Robot Learning Lab # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import numpy as np from rl.core.function_approximators.normalizers import NormalizerStd, Normalizer from rl.core.oracles import Oracle class LikelihoodRatioOracle(Oracle)...
36.851485
92
0.60129
526c8dec06be0ef4de222fa539f2e1e1f27c9280
2,213
py
Python
external_data_clean.py
temilaj/computer-vision-network
c1fa83690172226d663d8e1be61f2282792db7c2
[ "MIT" ]
1
2020-11-12T12:30:13.000Z
2020-11-12T12:30:13.000Z
external_data_clean.py
temilaj/computer-vision-network
c1fa83690172226d663d8e1be61f2282792db7c2
[ "MIT" ]
null
null
null
external_data_clean.py
temilaj/computer-vision-network
c1fa83690172226d663d8e1be61f2282792db7c2
[ "MIT" ]
1
2020-11-12T12:28:59.000Z
2020-11-12T12:28:59.000Z
import os import pandas as pd def intersection(lst1, lst2): return list(set(lst1) & set(lst2)) def find_img_index(iname, emotion_list): return emotion_list.index(iname) PATH_to_DIR = os.getcwd() df = pd.read_csv(PATH_to_DIR + '/data/legend.csv') # del df['user.id'] # # emotions = dict.fromkeys(df['emoti...
26.035294
89
0.645278
d604fa35feebd58c5fdb31bfcdc77405693f7deb
3,869
py
Python
tests/testapp/tests/test_views.py
fossabot/django-renderpdf
13ea0d0eb6e14e31a5973c1ee52adcc769e52482
[ "ISC" ]
null
null
null
tests/testapp/tests/test_views.py
fossabot/django-renderpdf
13ea0d0eb6e14e31a5973c1ee52adcc769e52482
[ "ISC" ]
null
null
null
tests/testapp/tests/test_views.py
fossabot/django-renderpdf
13ea0d0eb6e14e31a5973c1ee52adcc769e52482
[ "ISC" ]
null
null
null
from unittest.mock import call, patch from django.test import RequestFactory, TestCase from testapp import views factory = RequestFactory() class PromptDownloadTestCase(TestCase): def test_prompt_download(self): request = factory.get('/some_view') response = views.PromptDownloadView.as_view()(...
33.938596
79
0.642802
dfb26c4e18c8120ddbf26648330c30f2b7a97eae
2,175
py
Python
asreview/entry_points/algorithms.py
BartJanBoverhof/asreview
33894ebebf7bda2c552b707c3725c0287ac00369
[ "Apache-2.0" ]
null
null
null
asreview/entry_points/algorithms.py
BartJanBoverhof/asreview
33894ebebf7bda2c552b707c3725c0287ac00369
[ "Apache-2.0" ]
null
null
null
asreview/entry_points/algorithms.py
BartJanBoverhof/asreview
33894ebebf7bda2c552b707c3725c0287ac00369
[ "Apache-2.0" ]
null
null
null
# Copyright 2019-2020 The ASReview 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 appl...
29.794521
74
0.673563
44d7bbdebddeee4f015b6e2360c1152711ada554
9,753
py
Python
venv/Lib/site-packages/olefile/README.html.py
roshanba/mangal
f7b428811dc07214009cc33f0beb665ead402038
[ "bzip2-1.0.6", "MIT" ]
null
null
null
venv/Lib/site-packages/olefile/README.html.py
roshanba/mangal
f7b428811dc07214009cc33f0beb665ead402038
[ "bzip2-1.0.6", "MIT" ]
null
null
null
venv/Lib/site-packages/olefile/README.html.py
roshanba/mangal
f7b428811dc07214009cc33f0beb665ead402038
[ "bzip2-1.0.6", "MIT" ]
null
null
null
XXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXX XXXXXXXXXXXXXXXXXX XXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXX XXXXXXX XXXXXX XX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXX...
145.567164
772
0.887829