hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
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
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
1a47e1847565ef50632f11f2b4b0ff97bac7713a
2,313
py
Python
app/logic/benchmark/migrations/0001_initial.py
imvu/bluesteel
ab52133249a693b3cd2d8593c5d47408a3b0fce6
[ "MIT" ]
10
2017-01-13T06:28:04.000Z
2020-11-18T13:00:26.000Z
app/logic/benchmark/migrations/0001_initial.py
imvu/bluesteel
ab52133249a693b3cd2d8593c5d47408a3b0fce6
[ "MIT" ]
null
null
null
app/logic/benchmark/migrations/0001_initial.py
imvu/bluesteel
ab52133249a693b3cd2d8593c5d47408a3b0fce6
[ "MIT" ]
2
2018-03-29T14:10:53.000Z
2019-11-20T08:21:57.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('gitrepo', '0002_gitbranchtrailentry_order'), ('commandrepo', '0004_commandgroupentry_user'), ('bluesteel', '0007_remove_blues...
47.204082
133
0.618677
1c7dfc2337fa37762df11c1c2d9bcda21b30be59
9,387
py
Python
src/tox/_quickstart.py
telepuzer51/tox
c91c53a2c50633e842a5560f920d368eaf228722
[ "MIT" ]
1
2021-04-15T06:17:29.000Z
2021-04-15T06:17:29.000Z
src/tox/_quickstart.py
telepuzer51/tox
c91c53a2c50633e842a5560f920d368eaf228722
[ "MIT" ]
20
2021-05-03T18:02:23.000Z
2022-03-12T12:01:04.000Z
src/tox/_quickstart.py
telepuzer51/tox
c91c53a2c50633e842a5560f920d368eaf228722
[ "MIT" ]
3
2021-04-15T06:17:40.000Z
2021-09-14T04:17:59.000Z
# -*- coding: utf-8 -*- """ tox._quickstart ~~~~~~~~~~~~~~~~~ Command-line script to quickly setup a configuration for a Python project This file was heavily inspired by and uses code from ``sphinx-quickstart`` in the BSD-licensed `Sphinx project`_. .. Sphinx project_: http://sphinx.pocoo.org...
32.821678
96
0.605625
1706a4b5cbb42430323aa249f126f25d8190a812
4,304
py
Python
tests/xml/test_responseElement.py
vaibhav-plivo/plivo-python
e4ae7559ba4647ac0e1af523c94d49a3fd6a24ca
[ "MIT" ]
null
null
null
tests/xml/test_responseElement.py
vaibhav-plivo/plivo-python
e4ae7559ba4647ac0e1af523c94d49a3fd6a24ca
[ "MIT" ]
2
2021-03-31T19:11:07.000Z
2021-12-13T20:02:07.000Z
tests/xml/test_responseElement.py
vaibhav-plivo/plivo-python
e4ae7559ba4647ac0e1af523c94d49a3fd6a24ca
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from unittest import TestCase from plivo import plivoxml class ResponseElementTest(TestCase): def test_create_response(self): self.assertEqual(plivoxml.ResponseElement().to_string(), '<Response></Response>\n') def test_add_conference(self): c...
39.127273
245
0.612918
0fd13e1f901e32a6d4802679baca04e11bd68954
502
py
Python
bot/data/phrases/pre_intents.py
kebasyaty/chatik
cd1212a7c6887a4d081302cb4fe8398df68fc3b6
[ "MIT" ]
null
null
null
bot/data/phrases/pre_intents.py
kebasyaty/chatik
cd1212a7c6887a4d081302cb4fe8398df68fc3b6
[ "MIT" ]
null
null
null
bot/data/phrases/pre_intents.py
kebasyaty/chatik
cd1212a7c6887a4d081302cb4fe8398df68fc3b6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # intent:предварительные_намерения PRE_INTENTS = { 'samples': [ 'как ты думаешь', 'я вот что подумал', 'неужели ты так считаешь', 'ты знаешь, было бы неплохо', 'но есть одно "но"', 'есть одно "но"', 'если бы это было возможно', ...
22.818182
43
0.50996
5129d22b7b57c1639c19ad1a9614cd9c79878d60
3,668
py
Python
flarestack/analyses/ccsn/stasik_2017/shared_ccsn.py
grburgess/flarestack
6f94b9493d5470539e2705e473c84683720122cc
[ "MIT" ]
1
2021-04-19T06:26:03.000Z
2021-04-19T06:26:03.000Z
flarestack/analyses/ccsn/stasik_2017/shared_ccsn.py
Raimer/flarestack
60659d368db93ead7b53addf3af9f1e8ac3a52bc
[ "MIT" ]
null
null
null
flarestack/analyses/ccsn/stasik_2017/shared_ccsn.py
Raimer/flarestack
60659d368db93ead7b53addf3af9f1e8ac3a52bc
[ "MIT" ]
1
2022-03-01T06:11:46.000Z
2022-03-01T06:11:46.000Z
from __future__ import print_function import os import logging import numpy as np import pickle as Pickle from scipy.interpolate import interp1d from flarestack.shared import limit_output_path, limits_dir from astropy import units as u from astropy.table import Table ccsn_dir = os.path.abspath(os.path.dirname(__file__...
23.818182
82
0.591058
2ae1866f1b3d53ebd6cdac4ef6f029e8562de0db
3,844
py
Python
intake/cli/client/tests/test_local_integration.py
ah-/intake
1c971a9e579a18be603b4a74a71dbc111afbcb0c
[ "BSD-2-Clause" ]
null
null
null
intake/cli/client/tests/test_local_integration.py
ah-/intake
1c971a9e579a18be603b4a74a71dbc111afbcb0c
[ "BSD-2-Clause" ]
null
null
null
intake/cli/client/tests/test_local_integration.py
ah-/intake
1c971a9e579a18be603b4a74a71dbc111afbcb0c
[ "BSD-2-Clause" ]
null
null
null
import os.path import subprocess import tempfile import shutil import pytest TEST_CATALOG_YAML = os.path.join(os.path.dirname(__file__), 'catalog1.yml') def test_list(): cmd = ['python', '-m', 'intake.cli.client', 'list', TEST_CATALOG_YAML] process = subprocess.Popen(cmd, stdout=subprocess.PIPE) out, _ ...
28.686567
88
0.651145
ef6121118bcde00129d57bd9e404060f41cdca27
662
py
Python
housekeeping/filter_challenges.py
sheecegardezi/govhack2019
0d3aaf68eac7e5abacabca938b4590bcb190e4be
[ "Apache-2.0" ]
1
2019-09-12T05:15:18.000Z
2019-09-12T05:15:18.000Z
housekeeping/filter_challenges.py
sheecegardezi/govhack2019
0d3aaf68eac7e5abacabca938b4590bcb190e4be
[ "Apache-2.0" ]
null
null
null
housekeeping/filter_challenges.py
sheecegardezi/govhack2019
0d3aaf68eac7e5abacabca938b4590bcb190e4be
[ "Apache-2.0" ]
null
null
null
import os import urllib.request import shutil import re import pandas as pd url = "https://hackerspace.govhack.org/challenges.csv" pattern = "[A-Z|a-z]*.csv$" challenges_file_name = re.search(pattern, url).group() if not os.path.isfile(challenges_file_name): # Download the file from `url` and save it locally un...
27.583333
95
0.761329
076611c58202495f23cd8d610c353d87c079b37a
677
py
Python
manage.py
JustDeWitt8485/ApisInNutshell
be37f248207d4f1d65c65402246c0f62be35dbef
[ "MIT" ]
null
null
null
manage.py
JustDeWitt8485/ApisInNutshell
be37f248207d4f1d65c65402246c0f62be35dbef
[ "MIT" ]
null
null
null
manage.py
JustDeWitt8485/ApisInNutshell
be37f248207d4f1d65c65402246c0f62be35dbef
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'django_rest_framework.settings') try: from django.core.management import execute_from_command_line ...
29.434783
85
0.685377
cf715e04ae94e502446b30c4e153539d407bc344
3,340
py
Python
etl.py
pjloveshiphop/postgres_ETL
30f56a93cd1955491401e2d029475e69378f3be6
[ "MIT" ]
null
null
null
etl.py
pjloveshiphop/postgres_ETL
30f56a93cd1955491401e2d029475e69378f3be6
[ "MIT" ]
null
null
null
etl.py
pjloveshiphop/postgres_ETL
30f56a93cd1955491401e2d029475e69378f3be6
[ "MIT" ]
null
null
null
import os import glob import psycopg2 import pandas as pd from sql_queries import * #load data from a song_data to song, artist tbls def process_song_file(cur, conn, filepath): all_files=[] for root, dirs, files in os.walk(filepath): files = glob.glob(os.path.join(root, '*.json')) for f in file...
35.531915
145
0.59521
b1f5fb56cf316b4e2b68e93747e2186ffed67384
2,217
py
Python
flash_examples/integrations/fiftyone/image_classification.py
Isaac-Flath/lightning-flash
320f87707587d92a13c8831778864b33af4fe421
[ "Apache-2.0" ]
2
2021-05-25T20:06:10.000Z
2022-02-13T22:08:59.000Z
flash_examples/integrations/fiftyone/image_classification.py
Isaac-Flath/lightning-flash
320f87707587d92a13c8831778864b33af4fe421
[ "Apache-2.0" ]
1
2021-06-16T14:46:06.000Z
2021-06-16T14:46:06.000Z
flash_examples/integrations/fiftyone/image_classification.py
Isaac-Flath/lightning-flash
320f87707587d92a13c8831778864b33af4fe421
[ "Apache-2.0" ]
3
2021-06-03T10:03:04.000Z
2021-08-08T21:49:16.000Z
# Copyright The PyTorch Lightning team. # # 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 i...
34.640625
116
0.785295
1a7b209e41350dfb9524d9cbd38f254a55ce2fc3
2,931
py
Python
conans/test/functional/require_override_test.py
zhongpan/conan
c2cc667af6cf9e10428681d68ca5c4ca473a9a39
[ "MIT" ]
null
null
null
conans/test/functional/require_override_test.py
zhongpan/conan
c2cc667af6cf9e10428681d68ca5c4ca473a9a39
[ "MIT" ]
null
null
null
conans/test/functional/require_override_test.py
zhongpan/conan
c2cc667af6cf9e10428681d68ca5c4ca473a9a39
[ "MIT" ]
null
null
null
import unittest from conans.test.utils.tools import TestClient base_conanfile = """ from conans import ConanFile class ChatConan(ConanFile): name = "%s" version = "%s" build_policy = "missing" requires = %s """ base_conanfile_method = """ from conans import ConanFile class ChatConan(ConanFile): ...
36.6375
93
0.531559
56f9b4fc5421e4783ce082efef326c3192cb864d
888
py
Python
OpenCV/17. image gradient.py
Devanshu-singh-VR/OpenCV_mine
c5b2bb0caae636f9acdf47ef2aab2129c4543075
[ "MIT" ]
null
null
null
OpenCV/17. image gradient.py
Devanshu-singh-VR/OpenCV_mine
c5b2bb0caae636f9acdf47ef2aab2129c4543075
[ "MIT" ]
null
null
null
OpenCV/17. image gradient.py
Devanshu-singh-VR/OpenCV_mine
c5b2bb0caae636f9acdf47ef2aab2129c4543075
[ "MIT" ]
null
null
null
''' image gradient is directional change in intensity and color of an image generally use as (edge detector) ''' import cv2 import matplotlib.pyplot as plt import numpy as np img = cv2.imread('njr.jpg',0) img = cv2.cvtColor(img,cv2.COLOR_BGR2RGB) lap = cv2.Laplacian(img,cv2.CV_64F,ksize=3) # img , datatype ...
28.645161
105
0.689189
5c770dfc45a0fd5aa8fccd45d2ef99cfda309d05
804
py
Python
MovieRecommendation-DataHandler/DBHandler/UserHandler.py
pengchenyu111/MovieRecommendation
31f4f8dfa2ee387e45ef8e30a1121a83d6114233
[ "Apache-2.0" ]
5
2021-01-06T02:23:11.000Z
2022-03-19T08:43:51.000Z
MovieRecommendation-DataHandler/DBHandler/UserHandler.py
pengchenyu111/MovieRecommendation
31f4f8dfa2ee387e45ef8e30a1121a83d6114233
[ "Apache-2.0" ]
null
null
null
MovieRecommendation-DataHandler/DBHandler/UserHandler.py
pengchenyu111/MovieRecommendation
31f4f8dfa2ee387e45ef8e30a1121a83d6114233
[ "Apache-2.0" ]
null
null
null
from DBHandler.database import connection # 从评论表中往用户表中插入数据 def insert_data(): sql = ''' INSERT INTO movie_user ( user_unique_name, user_name, user_head_portrait_url, user_url ) SELECT any_value ( user_unique_name ) AS user_unique_name, any_value ( user_name ) AS user_name, any_value ( user_head_po...
25.935484
99
0.660448
f6d77c59d1fe3f4b10f8242640c4f392a07a687b
251
py
Python
contests/leetcode-171/a.py
Nightwish-cn/my_leetcode
40f206e346f3f734fb28f52b9cde0e0041436973
[ "MIT" ]
23
2020-03-30T05:44:56.000Z
2021-09-04T16:00:57.000Z
contests/leetcode-171/a.py
Nightwish-cn/my_leetcode
40f206e346f3f734fb28f52b9cde0e0041436973
[ "MIT" ]
1
2020-05-10T15:04:05.000Z
2020-06-14T01:21:44.000Z
contests/leetcode-171/a.py
Nightwish-cn/my_leetcode
40f206e346f3f734fb28f52b9cde0e0041436973
[ "MIT" ]
6
2020-03-30T05:45:04.000Z
2020-08-13T10:01:39.000Z
class Solution: def getNoZeroIntegers(self, n: int) -> List[int]: for i in range(1, n): s1, s2 = str(i), str(n - i) if '0' in s1 or '0' in s2: continue return [i, n - i] return []
31.375
53
0.442231
1be59471e262936158256838831b0fd8258d9afd
11,760
py
Python
gpxtrackposter/poster.py
jmetzz/GpxTrackPoster
dd82482435a9b6e071a0e7dcdcf48b2691718194
[ "MIT" ]
262
2016-01-10T17:01:00.000Z
2022-03-29T09:16:16.000Z
gpxtrackposter/poster.py
yihong0618/GpxTrackPoster
8e6038927b37fc4d527c032e4acb00a4de778a84
[ "MIT" ]
75
2016-01-10T20:23:42.000Z
2022-01-10T10:59:18.000Z
gpxtrackposter/poster.py
yihong0618/GpxTrackPoster
8e6038927b37fc4d527c032e4acb00a4de778a84
[ "MIT" ]
53
2017-01-04T21:12:06.000Z
2022-01-31T02:39:41.000Z
"""Create a poster from track data.""" # Copyright 2016-2021 Florian Pigorsch & Contributors. All rights reserved. # # Use of this source code is governed by a MIT-style # license that can be found in the LICENSE file. from collections import defaultdict import gettext import locale import logging import typing impor...
36.07362
109
0.575255
b8756de8e55a4b30ef0c28b452842e71f14e81b3
231
py
Python
higher_lvl_func/class_decorator.py
0xdomyz/python_collection
1b383ce44a14b69a11178b2bda992ca3f20a9a72
[ "MIT" ]
1
2022-02-19T03:31:48.000Z
2022-02-19T03:31:48.000Z
higher_lvl_func/class_decorator.py
0xdomyz/python_collection
1b383ce44a14b69a11178b2bda992ca3f20a9a72
[ "MIT" ]
null
null
null
higher_lvl_func/class_decorator.py
0xdomyz/python_collection
1b383ce44a14b69a11178b2bda992ca3f20a9a72
[ "MIT" ]
null
null
null
from dataclasses import dataclass import functools @dataclass class PlayingCard: """ Examples ----------- card = PlayingCard("ace", "black") """ rank: str suit: str if __name__ == "__main__": 1
12.157895
38
0.580087
5875ca743b23520e2ef81eefebb225d189164a61
4,744
py
Python
tsut/tests/test_json_reader.py
JimSEvans/user_tools
8a0e084c26305d631a0eab15b10e7d5d8fb66977
[ "MIT" ]
3
2020-04-28T15:43:03.000Z
2021-01-07T23:04:28.000Z
tsut/tests/test_json_reader.py
JimSEvans/user_tools
8a0e084c26305d631a0eab15b10e7d5d8fb66977
[ "MIT" ]
3
2019-10-21T16:03:19.000Z
2021-01-21T01:26:40.000Z
tsut/tests/test_json_reader.py
JimSEvans/user_tools
8a0e084c26305d631a0eab15b10e7d5d8fb66977
[ "MIT" ]
4
2019-09-30T19:49:32.000Z
2021-04-22T18:49:17.000Z
import unittest import os from tsut.api import UGJsonReader from tsut.model import UsersAndGroups, User, Group, Visibility """ Copyright 2018 ThoughtSpot 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 S...
36.492308
120
0.625211
cf125503bef15b9db540cf045d3dc62cbe430c8c
8,712
py
Python
tests/models_tests/prediction_tests/test_classifier.py
jo7ueb/chainer-chemistry
74286aef6b53f272d1677b8e226bb7200a3922a8
[ "MIT" ]
null
null
null
tests/models_tests/prediction_tests/test_classifier.py
jo7ueb/chainer-chemistry
74286aef6b53f272d1677b8e226bb7200a3922a8
[ "MIT" ]
null
null
null
tests/models_tests/prediction_tests/test_classifier.py
jo7ueb/chainer-chemistry
74286aef6b53f272d1677b8e226bb7200a3922a8
[ "MIT" ]
null
null
null
import mock import numpy import pytest import chainer from chainer import cuda from chainer import functions from chainer import links from chainer import reporter from chainer_chemistry.models.prediction import Classifier # testing.parameterize takes a list of dictionaries. # Currently, we cannot set a function to...
32.147601
77
0.620294
03fe6156220b75b268438cd8cb2166765fd0aae7
776
py
Python
demo/djangoproject/urls.py
fbernhart/xhtml2pdf
0e7462c75e640799eddd944631b23c41822e8086
[ "Apache-2.0" ]
null
null
null
demo/djangoproject/urls.py
fbernhart/xhtml2pdf
0e7462c75e640799eddd944631b23c41822e8086
[ "Apache-2.0" ]
1
2020-10-07T15:40:17.000Z
2020-10-07T15:40:17.000Z
demo/djangoproject/urls.py
fbernhart/xhtml2pdf
0e7462c75e640799eddd944631b23c41822e8086
[ "Apache-2.0" ]
null
null
null
"""xhtml URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-base...
32.333333
79
0.693299
ec3017240ef5baf2c9a771300a19b80e8d0a862f
4,576
py
Python
diff_cover/tests/test_diff_quality_main.py
altendky/diff_cover
fc86e8045c9b7822c0c87f79d430f1ebcef6e706
[ "Apache-2.0" ]
null
null
null
diff_cover/tests/test_diff_quality_main.py
altendky/diff_cover
fc86e8045c9b7822c0c87f79d430f1ebcef6e706
[ "Apache-2.0" ]
null
null
null
diff_cover/tests/test_diff_quality_main.py
altendky/diff_cover
fc86e8045c9b7822c0c87f79d430f1ebcef6e706
[ "Apache-2.0" ]
null
null
null
import unittest from unittest.mock import patch from diff_cover.diff_quality_tool import parse_quality_args, main class ParseQualityArgsTest(unittest.TestCase): def test_parse_with_html_report(self): argv = ["--violations", "pycodestyle", "--html-report", "diff_cover.html"] arg_dict = parse_qua...
35.2
87
0.620629
1a708f772cbae29c51fbbc4618b1747d47e8307e
1,462
py
Python
xc/common/utils/vivado_create_sim.py
bl0x/symbiflow-arch-defs
5fa5e71526e443d589971f2649d8b189df982d72
[ "ISC" ]
183
2017-12-29T12:08:32.000Z
2022-02-15T03:29:07.000Z
xc/common/utils/vivado_create_sim.py
bl0x/symbiflow-arch-defs
5fa5e71526e443d589971f2649d8b189df982d72
[ "ISC" ]
1,832
2017-12-29T14:47:27.000Z
2022-02-18T06:30:43.000Z
xc/common/utils/vivado_create_sim.py
bl0x/symbiflow-arch-defs
5fa5e71526e443d589971f2649d8b189df982d72
[ "ISC" ]
96
2017-12-30T12:00:45.000Z
2022-02-17T09:03:46.000Z
""" Utility for generating TCL script to launch simulation on Vivado """ import argparse def create_sim(f_out, args): print(""" launch_simulation """, file=f_out) clock_pins = args.clock_pins.split(';') clock_periods = args.clock_periods.split(';') assert len(clock_pins) == len(clock_periods) for...
24.779661
94
0.603283
e12fec9540f9cfd1d4dc8e63e1fe7b12e2024abc
4,349
py
Python
gromics/viz/distribution.py
ratschlab/tools-omicstools
830c9a1634a88e5ab127e79d1756b5e81fe6d77d
[ "MIT" ]
1
2021-01-24T09:52:17.000Z
2021-01-24T09:52:17.000Z
gromics/viz/distribution.py
ratschlab/tools-omicstools
830c9a1634a88e5ab127e79d1756b5e81fe6d77d
[ "MIT" ]
1
2021-06-17T06:29:25.000Z
2021-06-17T06:29:25.000Z
gromics/viz/distribution.py
ratschlab/tools-omicstools
830c9a1634a88e5ab127e79d1756b5e81fe6d77d
[ "MIT" ]
null
null
null
import scipy as sp from scipy.stats import gaussian_kde import matplotlib import matplotlib.pyplot as plt def violin_plot(ax, data, pos, bp=False, fc='b'): ''' create violin plots on an axis ''' dist = max(pos)-min(pos) w = min(0.15*max(dist,1.0),0.5) i = -1 for d,p in zip(data,pos): ...
33.453846
152
0.59232
7bc95a7980606d771eb33f9c1972959f6631fff0
9,987
py
Python
adspy_shared_utilities.py
aixpact/machine-learning
72033bd689ab764c1d3d1d6f3cde937a49699b23
[ "MIT" ]
null
null
null
adspy_shared_utilities.py
aixpact/machine-learning
72033bd689ab764c1d3d1d6f3cde937a49699b23
[ "MIT" ]
null
null
null
adspy_shared_utilities.py
aixpact/machine-learning
72033bd689ab764c1d3d1d6f3cde937a49699b23
[ "MIT" ]
null
null
null
# version 1.1 import numpy import pandas as pd import seaborn as sn import matplotlib.pyplot as plt import matplotlib.cm as cm from matplotlib.colors import ListedColormap, BoundaryNorm from sklearn import neighbors import matplotlib.patches as mpatches import graphviz from sklearn.tree import export_graphviz import m...
37.829545
140
0.650245
1120c5a62da9abe4881f407dd2a21107fc190d30
28,867
py
Python
_build/jupyter_execute/lectures/lecture3.py
hfboyce/tableau_course
1480600c711bfa91d2169e999bbf194dd0332088
[ "MIT" ]
null
null
null
_build/jupyter_execute/lectures/lecture3.py
hfboyce/tableau_course
1480600c711bfa91d2169e999bbf194dd0332088
[ "MIT" ]
null
null
null
_build/jupyter_execute/lectures/lecture3.py
hfboyce/tableau_course
1480600c711bfa91d2169e999bbf194dd0332088
[ "MIT" ]
null
null
null
# Baseline, k-Nearest Neighbours *Hayley Boyce, April 26th, 2021* # Importing our libraries import pandas as pd import altair as alt import numpy as np from sklearn.tree import DecisionTreeClassifier from sklearn.dummy import DummyClassifier from sklearn.neighbors import KNeighborsClassifier, KNeighborsRegressor fro...
34.081464
328
0.728617
f85efa11027c8915cf7f9e225d70937a096e394a
2,010
py
Python
biobb_chemistry/test/unitests/test_acpype/test_acpype_params_ac_container.py
bioexcel/biobb_chemistry
86b37fa073a813b64f28874ab6002171b8080eca
[ "Apache-2.0" ]
null
null
null
biobb_chemistry/test/unitests/test_acpype/test_acpype_params_ac_container.py
bioexcel/biobb_chemistry
86b37fa073a813b64f28874ab6002171b8080eca
[ "Apache-2.0" ]
3
2019-12-10T11:26:28.000Z
2021-04-26T10:01:31.000Z
biobb_chemistry/test/unitests/test_acpype/test_acpype_params_ac_container.py
bioexcel/biobb_chemistry
86b37fa073a813b64f28874ab6002171b8080eca
[ "Apache-2.0" ]
2
2019-11-03T22:58:18.000Z
2021-01-09T12:57:59.000Z
from biobb_common.tools import test_fixtures as fx from biobb_chemistry.acpype.acpype_params_ac import acpype_params_ac class TestAcpypeParamsACDocker(): def setUp(self): fx.test_setup(self,'acpype_params_ac_docker') def tearDown(self): fx.test_teardown(self) pass def test_params...
47.857143
103
0.731343
0f33ec6ce658a8c0c0191b70c54e7ebba8a35f57
34,098
py
Python
zerver/tests/test_realm.py
carpecodeum/zulip
78646074ac9700987a89c47eeb29ba523d065464
[ "Apache-2.0" ]
2
2019-05-27T08:19:30.000Z
2020-02-06T13:56:32.000Z
zerver/tests/test_realm.py
shivaniamborkar/zulip
a06f35182d45c540a51190fe6d3466c68319786c
[ "Apache-2.0" ]
null
null
null
zerver/tests/test_realm.py
shivaniamborkar/zulip
a06f35182d45c540a51190fe6d3466c68319786c
[ "Apache-2.0" ]
1
2020-02-06T13:56:40.000Z
2020-02-06T13:56:40.000Z
import datetime import ujson import re import mock from email.utils import parseaddr from django.conf import settings from typing import Any, Dict, List, Mapping from zerver.lib.actions import ( do_change_is_admin, do_change_realm_subdomain, do_set_realm_property, do_deactivate_realm, do_deactivat...
47.4242
118
0.674145
552ef03aac392cf55c78061623aeb99225295d95
542
py
Python
negociant/trader/app/ctaStrategy/lkIndicators.py
XilinJia/Negociant
53a0c0b4f40bd6d3ea1955745360f78dacfc71c1
[ "MIT" ]
null
null
null
negociant/trader/app/ctaStrategy/lkIndicators.py
XilinJia/Negociant
53a0c0b4f40bd6d3ea1955745360f78dacfc71c1
[ "MIT" ]
null
null
null
negociant/trader/app/ctaStrategy/lkIndicators.py
XilinJia/Negociant
53a0c0b4f40bd6d3ea1955745360f78dacfc71c1
[ "MIT" ]
null
null
null
''' Project: Negociant Copyright (c) 2017 Xilin Jia <https://github.com/XilinJia> This software is released under the MIT license https://opensource.org/licenses/MIT ''' import numpy as np def trueRange(op, hi, lo, cl) : truehigh = hi[-1] if hi[-1]>cl[-2] else cl[-2] truelow = lo[-1] if lo[-1]<cl[-2] else cl[...
22.583333
58
0.603321
18090959281f602682994ffe894f81bde33e2b8e
887
py
Python
urbanmediator/run_server.py
rnd0101/urbanmediator
af3b19aefc09ebd1969cbb8f6ebfae0279183511
[ "BSD-3-Clause" ]
null
null
null
urbanmediator/run_server.py
rnd0101/urbanmediator
af3b19aefc09ebd1969cbb8f6ebfae0279183511
[ "BSD-3-Clause" ]
null
null
null
urbanmediator/run_server.py
rnd0101/urbanmediator
af3b19aefc09ebd1969cbb8f6ebfae0279183511
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """ This file is part of Urban Mediator software. Copyright (c) 2008 University of Art and Design Helsinki See the file LICENSE.txt for copying permission. Main file to run the Urban Mediator server. """ import os, sys current_dir = os.getcwd() import urba...
21.634146
66
0.657272
1267c6eeeaf3b5b59333278cbe2734ff8b54291a
7,522
py
Python
tests/unit/states/test_boto_elb.py
jubrad/salt
7960334fb726cfde45e6409da79a65535c626685
[ "Apache-2.0" ]
1
2021-08-14T13:48:38.000Z
2021-08-14T13:48:38.000Z
tests/unit/states/test_boto_elb.py
jubrad/salt
7960334fb726cfde45e6409da79a65535c626685
[ "Apache-2.0" ]
3
2015-03-31T14:44:05.000Z
2015-06-18T19:02:24.000Z
tests/unit/states/test_boto_elb.py
jubrad/salt
7960334fb726cfde45e6409da79a65535c626685
[ "Apache-2.0" ]
1
2020-01-02T09:03:24.000Z
2020-01-02T09:03:24.000Z
# -*- coding: utf-8 -*- ''' :codeauthor: :email:`Jayesh Kariya <jayeshk@saltstack.com>` ''' # Import Python libs from __future__ import absolute_import import copy # Import Salt Testing Libs from tests.support.mixins import LoaderModuleMockMixin from tests.support.unit import skipIf, TestCase from tests.support.mo...
42.022346
124
0.53297
7ecda8300d969bb05b1fa75f16a969734815c67d
3,398
py
Python
autogluon/task/text_classification/dataset.py
zhanghang1989/autogluon-legacy
8638fb6a71947161bdd4f6876cc7ad035229c95b
[ "Apache-2.0" ]
4
2019-12-11T02:44:22.000Z
2020-02-22T06:44:43.000Z
autogluon/task/text_classification/dataset.py
zhanghang1989/autogluon-legacy
8638fb6a71947161bdd4f6876cc7ad035229c95b
[ "Apache-2.0" ]
null
null
null
autogluon/task/text_classification/dataset.py
zhanghang1989/autogluon-legacy
8638fb6a71947161bdd4f6876cc7ad035229c95b
[ "Apache-2.0" ]
null
null
null
import multiprocessing from typing import AnyStr import gluonnlp as nlp from mxnet import gluon from .transforms import TextDataTransform, BERTDataTransform __all__ = ['get_dataset', 'transform', 'get_train_data_lengths', 'get_batchify_fn', 'get_batch_sampler', 'get_transform_train_fn', 'get_transform_val...
38.613636
114
0.650971
2efadd4a330096ef47d1b346550f2c1d64a74690
1,796
py
Python
qtawesome/tests/test_icon_browser.py
doudz/qtawesome
83607df93c5cebe3351376c2c37874c938628edc
[ "MIT" ]
null
null
null
qtawesome/tests/test_icon_browser.py
doudz/qtawesome
83607df93c5cebe3351376c2c37874c938628edc
[ "MIT" ]
null
null
null
qtawesome/tests/test_icon_browser.py
doudz/qtawesome
83607df93c5cebe3351376c2c37874c938628edc
[ "MIT" ]
null
null
null
""" Tests for QtAwesome Icon Browser. """ import pytest from qtpy import QtCore, QtWidgets from qtawesome.icon_browser import IconBrowser @pytest.fixture def browser(qtbot): browser = IconBrowser() qtbot.add_widget(browser) browser.show() return browser def test_browser_init(browser): """ ...
23.324675
96
0.698218
2db8e4592bcdb9d2c026d8bf313f22573f534890
612
py
Python
src/djanban/apps/charts/migrations/0006_auto_20161017_2006.py
diegojromerolopez/djanban
6451688d49cf235d03c604b19a6a8480b33eed87
[ "MIT" ]
33
2017-06-14T18:04:25.000Z
2021-06-15T07:07:56.000Z
src/djanban/apps/charts/migrations/0006_auto_20161017_2006.py
diegojromerolopez/djanban
6451688d49cf235d03c604b19a6a8480b33eed87
[ "MIT" ]
1
2017-05-10T08:45:55.000Z
2017-05-10T08:45:55.000Z
src/djanban/apps/charts/migrations/0006_auto_20161017_2006.py
diegojromerolopez/djanban
6451688d49cf235d03c604b19a6a8480b33eed87
[ "MIT" ]
8
2017-08-27T11:14:25.000Z
2021-03-03T12:11:16.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2016-10-17 18:06 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('charts', '0005_auto_20161017_1934'), ] operations = ...
27.818182
177
0.668301
8f8d5682acf82e4e1af762a87ca56eced894f84a
105
py
Python
cred.py
SDRAST/support
ebe081692fc8c892c1389156e979d5baa7f8f0e6
[ "Apache-2.0" ]
null
null
null
cred.py
SDRAST/support
ebe081692fc8c892c1389156e979d5baa7f8f0e6
[ "Apache-2.0" ]
null
null
null
cred.py
SDRAST/support
ebe081692fc8c892c1389156e979d5baa7f8f0e6
[ "Apache-2.0" ]
null
null
null
username = "tams.dsn" password = "watermasersarecool" birthdate= "14/02/1950" # karl janksy's death date
26.25
50
0.742857
c283f737d0e90daf68d597f3df29df3a356f0600
148
py
Python
tests/model_control/detailed/transf_None/model_control_one_enabled_None_MovingMedian_NoCycle_MLP.py
shaido987/pyaf
b9afd089557bed6b90b246d3712c481ae26a1957
[ "BSD-3-Clause" ]
377
2016-10-13T20:52:44.000Z
2022-03-29T18:04:14.000Z
tests/model_control/detailed/transf_None/model_control_one_enabled_None_MovingMedian_NoCycle_MLP.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
160
2016-10-13T16:11:53.000Z
2022-03-28T04:21:34.000Z
tests/model_control/detailed/transf_None/model_control_one_enabled_None_MovingMedian_NoCycle_MLP.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
63
2017-03-09T14:51:18.000Z
2022-03-27T20:52:57.000Z
import tests.model_control.test_ozone_custom_models_enabled as testmod testmod.build_model( ['None'] , ['MovingMedian'] , ['NoCycle'] , ['MLP'] );
37
75
0.736486
a6238c5b44831569eb6a01eb9cc9bb5f11be6ed2
1,129
py
Python
lab/09_superpowered_dht/tasks.py
mfranzil/unitn-m-ds2
e762ab5fcf67a853f85ca0132ff9c82534a54fc8
[ "MIT" ]
1
2021-11-29T09:49:22.000Z
2021-11-29T09:49:22.000Z
lab/09_superpowered_dht/tasks.py
mfranzil/unitn-m-ds2
e762ab5fcf67a853f85ca0132ff9c82534a54fc8
[ "MIT" ]
1
2021-09-26T13:25:48.000Z
2021-09-26T13:25:48.000Z
lab/09_superpowered_dht/tasks.py
mfranzil-unitn/unitn-m-ds2
e762ab5fcf67a853f85ca0132ff9c82534a54fc8
[ "MIT" ]
1
2021-11-29T09:18:41.000Z
2021-11-29T09:18:41.000Z
from subprocess import Popen from time import sleep from invoke import task from dht.util import Process IP = 'localhost' @task(default=True) def boot(ctx): print("Booting a network with two hard-wired nodes...") p1 = Process(IP, 10001, 'PROC10001') p2 = Process(IP, 10002, 'PROC10002') startProces...
23.040816
84
0.63419
13e54235a2452b0417e59c5107b423431d514a8f
44,490
py
Python
nova/api/openstack/compute/servers.py
usc-isi/extra-specs
4e5fee4a6830f337f02ca1ec1069285a68629979
[ "Apache-2.0" ]
null
null
null
nova/api/openstack/compute/servers.py
usc-isi/extra-specs
4e5fee4a6830f337f02ca1ec1069285a68629979
[ "Apache-2.0" ]
1
2020-07-24T14:14:13.000Z
2020-07-24T14:14:13.000Z
nova/api/openstack/compute/servers.py
usc-isi/extra-specs
4e5fee4a6830f337f02ca1ec1069285a68629979
[ "Apache-2.0" ]
1
2020-07-24T10:40:59.000Z
2020-07-24T10:40:59.000Z
# Copyright 2010 OpenStack LLC. # Copyright 2011 Piston Cloud Computing, Inc # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/...
38.221649
79
0.618229
18d2e6951faf81d24d2b9cabe6c2231b6725f433
9,235
py
Python
build/dart/tools/dart_pkg.py
ryansong/engine
5e569095132e0438551784a99ef682bf701d0fd9
[ "BSD-3-Clause" ]
13
2020-08-09T10:30:50.000Z
2021-09-06T18:26:05.000Z
build/dart/tools/dart_pkg.py
shoryukenn/engine
0dc86cda19d55aba8b719231c11306eeaca4b798
[ "BSD-3-Clause" ]
6
2019-02-01T04:52:46.000Z
2019-12-09T03:38:27.000Z
build/dart/tools/dart_pkg.py
shoryukenn/engine
0dc86cda19d55aba8b719231c11306eeaca4b798
[ "BSD-3-Clause" ]
9
2021-03-11T04:52:17.000Z
2021-12-17T09:19:06.000Z
#!/usr/bin/env python # # Copyright 2013 The Flutter Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Utility for dart_pkg and dart_pkg_app rules""" import argparse import errno import json import os import shutil import subprocess ...
30.989933
78
0.644613
f241463bb438c83f7c2566469f15148ed82173eb
17,899
py
Python
graphdebugger/Graph.py
zacharyh211/GraphDebugger
5bf32c8eba2be85c42c772178d033c6f05e84684
[ "MIT" ]
null
null
null
graphdebugger/Graph.py
zacharyh211/GraphDebugger
5bf32c8eba2be85c42c772178d033c6f05e84684
[ "MIT" ]
null
null
null
graphdebugger/Graph.py
zacharyh211/GraphDebugger
5bf32c8eba2be85c42c772178d033c6f05e84684
[ "MIT" ]
null
null
null
from PyQt5.QtWidgets import * from PyQt5.QtGui import * from PyQt5.QtCore import * from enum import Enum import math import json class Color(Enum): RED = 1 BLACK = 2 CYAN = 3 BLUE = 4 GRAY = 5 WHITE = 6 color_to_qt = { Color.RED : Qt.red, Color.BLACK : Qt.black, Color.CYAN : Qt.cyan, Color.BLUE : Q...
25.643266
115
0.686295
a1dfa4e3f34e04882fe668ab58f4e9aa8f51c87e
10,750
py
Python
pytorch/pytorchcv/models/shakedropresnet_cifar.py
naviocean/imgclsmob
f2993d3ce73a2f7ddba05da3891defb08547d504
[ "MIT" ]
2,649
2018-08-03T14:18:00.000Z
2022-03-31T08:08:17.000Z
pytorch/pytorchcv/models/shakedropresnet_cifar.py
naviocean/imgclsmob
f2993d3ce73a2f7ddba05da3891defb08547d504
[ "MIT" ]
95
2018-08-13T01:46:03.000Z
2022-03-13T08:38:14.000Z
pytorch/pytorchcv/models/shakedropresnet_cifar.py
naviocean/imgclsmob
f2993d3ce73a2f7ddba05da3891defb08547d504
[ "MIT" ]
549
2018-08-06T08:09:22.000Z
2022-03-31T08:08:21.000Z
""" ShakeDrop-ResNet for CIFAR/SVHN, implemented in PyTorch. Original paper: 'ShakeDrop Regularization for Deep Residual Learning,' https://arxiv.org/abs/1802.02375. """ __all__ = ['CIFARShakeDropResNet', 'shakedropresnet20_cifar10', 'shakedropresnet20_cifar100', 'shakedropresnet20_svhn'] import os import tor...
32.674772
119
0.601953
081420f68f4aba522c9e1581927fb6d567d5d9ff
3,648
py
Python
avatar/MapGenerator.py
arnaudcoj/m2s3_sci_tp3_avatar
7662392495d4c458c2537e7f6151c2693ddb055f
[ "MIT" ]
1
2016-12-06T08:44:00.000Z
2016-12-06T08:44:00.000Z
avatar/MapGenerator.py
arnaudcoj/m2s3_sci_tp3_avatar
7662392495d4c458c2537e7f6151c2693ddb055f
[ "MIT" ]
null
null
null
avatar/MapGenerator.py
arnaudcoj/m2s3_sci_tp3_avatar
7662392495d4c458c2537e7f6151c2693ddb055f
[ "MIT" ]
null
null
null
import random class MapGenerator(): def __init__(self, environment): self.environment = environment self.width = self.environment.getNbCol() self.height = self.environment.getNbRow() self.birthLimit = self.environment.data["birthLimit"] self.deathLimit = self.environment.data["deathLimit"] self.chanceToSt...
26.627737
103
0.650493
268326b238a69a6b09567f945148b18cc3f27ea4
1,205
py
Python
schema.py
dlavery/dotfive
8d7035ad8d0605504a49fca1228ff997b10e1f4d
[ "MIT" ]
null
null
null
schema.py
dlavery/dotfive
8d7035ad8d0605504a49fca1228ff997b10e1f4d
[ "MIT" ]
null
null
null
schema.py
dlavery/dotfive
8d7035ad8d0605504a49fca1228ff997b10e1f4d
[ "MIT" ]
null
null
null
from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import Column, Integer, String, Sequence, ForeignKey from sqlalchemy.orm import relationship Base = declarative_base() class Category(Base): __tablename__ = 'category' id = Column(Integer, Sequence('user_id_seq'), primary_key=True) na...
36.515152
97
0.726141
8bc06bc56469125b5ecb589684eaf3770af91d41
35,513
py
Python
software/glasgow/applet/debug/mips/__init__.py
FFY00/glasgow
bfaf93312c2336b4f71df947a0162e99a02bbbb3
[ "Apache-2.0", "0BSD" ]
null
null
null
software/glasgow/applet/debug/mips/__init__.py
FFY00/glasgow
bfaf93312c2336b4f71df947a0162e99a02bbbb3
[ "Apache-2.0", "0BSD" ]
null
null
null
software/glasgow/applet/debug/mips/__init__.py
FFY00/glasgow
bfaf93312c2336b4f71df947a0162e99a02bbbb3
[ "Apache-2.0", "0BSD" ]
null
null
null
# Ref: MIPS® EJTAG Specification # Document Number: MD00047 Revision 6.10 # Accession: G00007 import struct import logging import asyncio from ....support.aobject import * from ....support.endpoint import * from ....support.bits import * from ....support.pyrepl import * from ....arch.mips import * from ....protocol.g...
40.037204
98
0.585025
1f781111c06ddc730faa56f231dbb55d4340d84b
1,836
py
Python
mod/fips.py
mattiasljungstrom/fips
8775e299f710ae5b977d49dc0672b607f2a10378
[ "MIT" ]
429
2015-01-06T18:44:20.000Z
2022-03-19T22:22:11.000Z
mod/fips.py
mattiasljungstrom/fips
8775e299f710ae5b977d49dc0672b607f2a10378
[ "MIT" ]
254
2015-01-01T18:11:57.000Z
2022-03-22T09:55:51.000Z
mod/fips.py
mattiasljungstrom/fips
8775e299f710ae5b977d49dc0672b607f2a10378
[ "MIT" ]
102
2015-01-17T11:41:16.000Z
2022-02-24T23:47:30.000Z
"""fips main module""" VERSION = '0.0.1' from colorama import init init() import yaml from mod import log, verb, util #------------------------------------------------------------------------------- def show_help(args) : """show help text""" if len(args) > 0 : # show help for one verb verb_...
32.785714
85
0.519608
cde9c2b1175f56e1f021535b38e99fe20450b002
7,363
py
Python
app/job/rest.py
LouisStAmour/notifications-api
16734595e70113d85fb10689017b2c30bab61fb3
[ "MIT" ]
null
null
null
app/job/rest.py
LouisStAmour/notifications-api
16734595e70113d85fb10689017b2c30bab61fb3
[ "MIT" ]
1
2021-04-30T21:09:42.000Z
2021-04-30T21:09:42.000Z
app/job/rest.py
LouisStAmour/notifications-api
16734595e70113d85fb10689017b2c30bab61fb3
[ "MIT" ]
null
null
null
import dateutil from flask import ( Blueprint, jsonify, request, current_app ) from app.aws.s3 import get_job_metadata_from_s3 from app.dao.jobs_dao import ( dao_create_job, dao_update_job, dao_get_job_by_service_id_and_job_id, dao_get_jobs_by_service_id, dao_get_future_scheduled_jo...
33.316742
117
0.709493
c8246b2abcdc9878117888421e83a2aa64709d61
6,157
py
Python
contrib/experimental/great_expectations_experimental/expectations/expect_column_values_url_hostname_match_with_cert.py
mmi333/great_expectations
cc9df78596610002c24e2d46f737179e04f31d29
[ "Apache-2.0" ]
1
2022-03-17T08:05:44.000Z
2022-03-17T08:05:44.000Z
contrib/experimental/great_expectations_experimental/expectations/expect_column_values_url_hostname_match_with_cert.py
Tchibo/great_expectations
27220336190039148ab91138cb2fd489d2159183
[ "Apache-2.0" ]
null
null
null
contrib/experimental/great_expectations_experimental/expectations/expect_column_values_url_hostname_match_with_cert.py
Tchibo/great_expectations
27220336190039148ab91138cb2fd489d2159183
[ "Apache-2.0" ]
null
null
null
""" This is a template for creating custom ColumnMapExpectations. For detailed instructions on how to use it, please see: https://docs.greatexpectations.io/docs/guides/expectations/creating_custom_expectations/how_to_create_custom_column_map_expectations """ import datetime import json import socket import ssl from...
36.868263
136
0.626766
05303f4bf915dd0c675e87a90decf587c2e05062
558
py
Python
graphgallery/utils/misc.py
mengliu1998/GraphGallery
025ac09e883f3e1e1b02000e086830c935884a6e
[ "MIT" ]
1
2020-10-31T07:24:59.000Z
2020-10-31T07:24:59.000Z
graphgallery/utils/misc.py
mengliu1998/GraphGallery
025ac09e883f3e1e1b02000e086830c935884a6e
[ "MIT" ]
null
null
null
graphgallery/utils/misc.py
mengliu1998/GraphGallery
025ac09e883f3e1e1b02000e086830c935884a6e
[ "MIT" ]
null
null
null
try: import texttable except ImportError: texttable = None def print_table(paras): assert texttable, "Please install `texttable` package!" if not isinstance(paras, dict): raise TypeError("The input should be the instance of `dict`.") t = texttable.Texttable() paras = paras.c...
31
72
0.62724
fbdfc6737ce925eea96f527108b797f2b3334a43
1,647
py
Python
integrations/tensorflow/e2e/linspace_test.py
EmperorYP7/iree
fffa1f3e33bc1031c790583166ce82c91dd8b3e7
[ "Apache-2.0" ]
2
2021-01-03T04:45:05.000Z
2021-01-03T04:45:08.000Z
integrations/tensorflow/e2e/linspace_test.py
EmperorYP7/iree
fffa1f3e33bc1031c790583166ce82c91dd8b3e7
[ "Apache-2.0" ]
null
null
null
integrations/tensorflow/e2e/linspace_test.py
EmperorYP7/iree
fffa1f3e33bc1031c790583166ce82c91dd8b3e7
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
30.5
74
0.729812
856cb1a4ba767289c128af3e65595cef5794feb0
597
py
Python
tasks/pylon/apps/__init__.py
vladcorneci/golden-gate
fab6e11c4df942c6a915328d805d3265f9ccc8e0
[ "Apache-2.0" ]
262
2020-05-05T21:25:17.000Z
2022-03-22T09:11:15.000Z
tasks/pylon/apps/__init__.py
vladcorneci/golden-gate
fab6e11c4df942c6a915328d805d3265f9ccc8e0
[ "Apache-2.0" ]
22
2020-05-07T21:20:42.000Z
2022-02-25T02:44:50.000Z
tasks/pylon/apps/__init__.py
vladcorneci/golden-gate
fab6e11c4df942c6a915328d805d3265f9ccc8e0
[ "Apache-2.0" ]
18
2020-05-06T07:21:43.000Z
2022-02-08T09:49:23.000Z
# Copyright 2017-2020 Fitbit, Inc # SPDX-License-Identifier: Apache-2.0 """Tasks to build apps for Pylon""" from invoke import Collection from . import gg_tool from . import util def _make_collection(name, path): coll = Collection(name) for task in util.app_tasks(name, path): coll.add_task(task) ...
25.956522
84
0.745394
b8b32cb1515f3656d4e7125cddc59fb3b4c7e9b9
29,915
py
Python
tests/regressiontests/forms/tests/extra.py
mitsuhiko/django
156b1e97b52ba0608ae91b08a6cb9a8381cbe055
[ "BSD-3-Clause" ]
4
2015-08-27T22:03:47.000Z
2017-09-04T08:13:44.000Z
tests/regressiontests/forms/tests/extra.py
mitsuhiko/django
156b1e97b52ba0608ae91b08a6cb9a8381cbe055
[ "BSD-3-Clause" ]
null
null
null
tests/regressiontests/forms/tests/extra.py
mitsuhiko/django
156b1e97b52ba0608ae91b08a6cb9a8381cbe055
[ "BSD-3-Clause" ]
1
2020-01-04T14:51:18.000Z
2020-01-04T14:51:18.000Z
# -*- coding: utf-8 -*- import datetime from django.conf import settings from django.forms import * from django.forms.extras import SelectDateWidget from django.forms.util import ErrorList from django.utils import translation from django.utils import unittest from django.utils.encoding import force_unicode from django...
42.252825
171
0.652917
4969214d88a03443c178c2b9a09840e62320d6b8
100
py
Python
CarParkArcGisApi/CarParkArcGisApi/env/Lib/site-packages/arcgis/apps/storymap/__init__.py
moazzamwaheed2017/carparkapi
e52ae1b2aed47321ce9d22ba6cd0b85fa60a417a
[ "MIT" ]
null
null
null
CarParkArcGisApi/CarParkArcGisApi/env/Lib/site-packages/arcgis/apps/storymap/__init__.py
moazzamwaheed2017/carparkapi
e52ae1b2aed47321ce9d22ba6cd0b85fa60a417a
[ "MIT" ]
9
2020-02-03T15:50:10.000Z
2022-03-02T07:11:34.000Z
CarParkArcGisApi/CarParkArcGisApi/env/Lib/site-packages/arcgis/apps/storymap/__init__.py
moazzamwaheed2017/carparkapi
e52ae1b2aed47321ce9d22ba6cd0b85fa60a417a
[ "MIT" ]
null
null
null
""" StoryMap Implementation """ from .storymap import JournalStoryMap __all__ = ['JournalStoryMap']
16.666667
37
0.77
d416b65cd694fdd6bf6833c90842f3999049d71e
6,909
py
Python
winevtlog_bench/visualize/plot_pandas_Usage.py
calyptia/calyptia-fluentd-benchmark-aws-environment
3900ec856d0b12d32676fab99a3e759e1229866b
[ "MIT" ]
null
null
null
winevtlog_bench/visualize/plot_pandas_Usage.py
calyptia/calyptia-fluentd-benchmark-aws-environment
3900ec856d0b12d32676fab99a3e759e1229866b
[ "MIT" ]
1
2022-02-07T07:59:11.000Z
2022-02-07T07:59:11.000Z
winevtlog_bench/visualize/plot_pandas_Usage.py
calyptia/calyptia-fluentd-benchmark-aws-environment
3900ec856d0b12d32676fab99a3e759e1229866b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import numpy as np import pandas as pd from matplotlib import pyplot as plt import seaborn as sns import argparse from ansible.parsing.dataloader import DataLoader from ansible.inventory.manager import InventoryManager parser = argparse.ArgumentParser(description='Visualize data as p...
40.168605
127
0.669417
566dfde27bbbe1136999880bef449fe22be27729
593
py
Python
livedivulgador/database/engine.py
chrisemke/Live-Divulgador
fecc26947056b26055c831fe0cfcdca33f23b5f2
[ "MIT" ]
null
null
null
livedivulgador/database/engine.py
chrisemke/Live-Divulgador
fecc26947056b26055c831fe0cfcdca33f23b5f2
[ "MIT" ]
null
null
null
livedivulgador/database/engine.py
chrisemke/Live-Divulgador
fecc26947056b26055c831fe0cfcdca33f23b5f2
[ "MIT" ]
null
null
null
from os import getenv from urllib.parse import quote_plus from dotenv import load_dotenv from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker load_dotenv() DATABASE_USER = getenv("DATABASE_USER") DATABASE_PASSWORD = quote_plus(getenv("DATABASE_PASSWORD")) DATABASE_HOST = getenv("DATABASE_HOS...
26.954545
120
0.812816
3441bb01115dbc24ab8772038f0c2781189bb387
293
py
Python
plugins/polio/migrations/0031_merge_20211008_1509.py
BLSQ/iaso-copy
85fb17f408c15e8c2d730416d1312f58f8db39b7
[ "MIT" ]
29
2020-12-26T07:22:19.000Z
2022-03-07T13:40:09.000Z
plugins/polio/migrations/0031_merge_20211008_1509.py
BLSQ/iaso-copy
85fb17f408c15e8c2d730416d1312f58f8db39b7
[ "MIT" ]
150
2020-11-09T15:03:27.000Z
2022-03-07T15:36:07.000Z
plugins/polio/migrations/0031_merge_20211008_1509.py
BLSQ/iaso
95c8087c0182bdd576598eb8cd39c440e58e15d7
[ "MIT" ]
4
2020-11-09T10:38:13.000Z
2021-10-04T09:42:47.000Z
# Generated by Django 3.1.12 on 2021-10-08 15:09 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("polio", "0030_campaign_country_data_migration_20211004_1157"), ("polio", "0029_merge_20210930_0946"), ] operations = []
20.928571
72
0.68942
068515db7670296ab18e6fcd5657924e2c0065a9
1,871
py
Python
rl_nav/scripts/worldModels/test_rnn.py
CAVED123/-navbot
ea0382441b64f8c8adb499a92a3d9ceac49504a8
[ "MIT" ]
154
2019-04-15T12:23:29.000Z
2022-03-20T07:23:31.000Z
rl_nav/scripts/worldModels/test_rnn.py
goldenminerlmg/navbot
5c5711e034516017326bed98a1c66880b6165d9d
[ "MIT" ]
6
2019-07-01T17:35:34.000Z
2022-01-13T09:38:03.000Z
rl_nav/scripts/worldModels/test_rnn.py
goldenminerlmg/navbot
5c5711e034516017326bed98a1c66880b6165d9d
[ "MIT" ]
47
2019-04-15T09:59:00.000Z
2022-03-07T05:52:45.000Z
import numpy as np from RNN import RNN from VAE import VAE from keras.preprocessing.sequence import pad_sequences import matplotlib.pyplot as plt import sys sys.path.append("..") import config dir_name = config.dir_name episode = config.episode frame = config.frame np.set_printoptions(precision=4, edgeitems=6, linewi...
31.183333
108
0.716195
6f98ead01ae7d32ce1c3691d96234318200e66a7
22,585
py
Python
reana_workflow_controller/rest/utils.py
diegodelemos/reana-workflow-controller
70630a0c820fceb2fa3bf4f8d2827631df994039
[ "MIT" ]
null
null
null
reana_workflow_controller/rest/utils.py
diegodelemos/reana-workflow-controller
70630a0c820fceb2fa3bf4f8d2827631df994039
[ "MIT" ]
1
2020-10-30T15:23:16.000Z
2020-10-30T15:23:16.000Z
reana_workflow_controller/rest/utils.py
diegodelemos/reana-workflow-controller
70630a0c820fceb2fa3bf4f8d2827631df994039
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # This file is part of REANA. # Copyright (C) 2020 CERN. # # REANA is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """REANA Workflow Controller workflows REST API.""" import difflib import logging import os i...
36.903595
88
0.624707
933e60b4be8cb423a9c65d51b38c1a2ebda3c0e0
134
py
Python
src/enums/metrics.py
akseryanin/mlds-vk-bot
c6095a5d11c8831646a3375804b2e95d2a4af48b
[ "MIT" ]
null
null
null
src/enums/metrics.py
akseryanin/mlds-vk-bot
c6095a5d11c8831646a3375804b2e95d2a4af48b
[ "MIT" ]
1
2022-02-16T17:46:15.000Z
2022-02-16T17:46:15.000Z
src/enums/metrics.py
akseryanin/mlds-vk-bot
c6095a5d11c8831646a3375804b2e95d2a4af48b
[ "MIT" ]
null
null
null
from enum import Enum class Metric(Enum): Likes = "likes" Reposts = "reposts" Comments = "comments" Views = "views"
14.888889
25
0.619403
a09ecb9f22e9c44d8b3036eed9ca35c644e45ce1
5,247
py
Python
test.py
MCW9/ImageForensics
0e1fc7b992832b222a57ecfb2446fc6cf159baad
[ "MIT" ]
null
null
null
test.py
MCW9/ImageForensics
0e1fc7b992832b222a57ecfb2446fc6cf159baad
[ "MIT" ]
null
null
null
test.py
MCW9/ImageForensics
0e1fc7b992832b222a57ecfb2446fc6cf159baad
[ "MIT" ]
1
2021-11-23T20:01:08.000Z
2021-11-23T20:01:08.000Z
# Marcelo Cicconet, Oct 2017 from scipy import misc import numpy as np import tensorflow as tf import random import matplotlib.pyplot as plt import sys from image_distortions import * import time import os with tf.device('/gpu:0'): # -------------------------------------------------- print('parameters') #...
35.214765
130
0.518201
c6b5d01acd41897477383d11cb17239ff28767c4
2,907
py
Python
test/models/test_models.py
parmeet/text
1fb2aedb48b5ecc5e81741e7c8504486b91655c6
[ "BSD-3-Clause" ]
null
null
null
test/models/test_models.py
parmeet/text
1fb2aedb48b5ecc5e81741e7c8504486b91655c6
[ "BSD-3-Clause" ]
null
null
null
test/models/test_models.py
parmeet/text
1fb2aedb48b5ecc5e81741e7c8504486b91655c6
[ "BSD-3-Clause" ]
null
null
null
import torchtext import torch from ..common.torchtext_test_case import TorchtextTestCase from ..common.assets import get_asset_path class TestModels(TorchtextTestCase): def test_xlmr_base_output(self): asset_name = "xlmr.base.output.pt" asset_path = get_asset_path(asset_name) xlmr_base = ...
40.943662
86
0.671483
f33f1ea8f5b4e82eda5fc42df630c340f81f4e34
1,468
py
Python
tests/test_models/test_backbones/test_resnest.py
hattrickcr7/ssodv2
7e0a915596225e108878f80ad59a686c9d3a8387
[ "Apache-2.0" ]
43
2019-01-18T09:52:21.000Z
2020-10-13T01:59:08.000Z
tests/test_models/test_backbones/test_resnest.py
hattrickcr7/ssodv2
7e0a915596225e108878f80ad59a686c9d3a8387
[ "Apache-2.0" ]
null
null
null
tests/test_models/test_backbones/test_resnest.py
hattrickcr7/ssodv2
7e0a915596225e108878f80ad59a686c9d3a8387
[ "Apache-2.0" ]
7
2019-05-10T02:44:12.000Z
2020-07-26T02:06:58.000Z
# Copyright (c) OpenMMLab. All rights reserved. import pytest import torch from mmdet.models.backbones import ResNeSt from mmdet.models.backbones.resnest import Bottleneck as BottleneckS def test_resnest_bottleneck(): with pytest.raises(AssertionError): # Style must be in ['pytorch', 'caffe'] Bot...
32.622222
76
0.658719
edd330d7ad0f8f2a52a7b46edbb9725a3aa750c3
389
py
Python
hashtag/wsgi.py
stefanilie/hashtag
2058f2514e06401e36ab254ba42b25bbd7558f19
[ "FTL" ]
null
null
null
hashtag/wsgi.py
stefanilie/hashtag
2058f2514e06401e36ab254ba42b25bbd7558f19
[ "FTL" ]
null
null
null
hashtag/wsgi.py
stefanilie/hashtag
2058f2514e06401e36ab254ba42b25bbd7558f19
[ "FTL" ]
null
null
null
""" WSGI config for hashtag 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.6/howto/deployment/wsgi/ """ import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "hashtag.settings") from django.core.w...
25.933333
78
0.789203
e2216b13dc46462e536546bd152df72c716fd1f2
1,112
py
Python
emenu/cards/tests/test_dishes.py
Ryszyy/emenu
735e1e36580e26ba9b22609e461f06aab281aea7
[ "MIT" ]
null
null
null
emenu/cards/tests/test_dishes.py
Ryszyy/emenu
735e1e36580e26ba9b22609e461f06aab281aea7
[ "MIT" ]
null
null
null
emenu/cards/tests/test_dishes.py
Ryszyy/emenu
735e1e36580e26ba9b22609e461f06aab281aea7
[ "MIT" ]
null
null
null
from django.test import TestCase from django.urls import reverse from rest_framework import status from rest_framework.test import APIClient, APITestCase from emenu.cards.models import Dish from emenu.cards.serializers import DishSerializer from emenu.cards.tests.factories import DishFactory from emenu.users.tests.fac...
33.69697
70
0.728417
10543e5d0e67c222c797feecc89d51cad4745345
25,651
py
Python
leo/core/leoExternalFiles.py
thhonigm/leo-editor
34cc572bd80b2833984bcd34878a572ab51816de
[ "MIT" ]
1
2020-11-07T23:22:12.000Z
2020-11-07T23:22:12.000Z
leo/core/leoExternalFiles.py
thhonigm/leo-editor
34cc572bd80b2833984bcd34878a572ab51816de
[ "MIT" ]
1
2020-06-19T02:28:25.000Z
2020-06-19T02:28:25.000Z
leo/core/leoExternalFiles.py
connorng/leo-editor
dd41fd3c854ceab286b1111fa4bbe30f65237dcb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #@+leo-ver=5-thin #@+node:ekr.20160306114544.1: * @file leoExternalFiles.py #@@first import leo.core.leoGlobals as g import getpass import os import subprocess import tempfile import time #@+others #@+node:ekr.20160306110233.1: ** class ExternalFile class ExternalFile: '''A class holding all...
41.107372
96
0.555768
4013e3d08f95dd093774976aef9475837b6031f2
4,634
py
Python
PyMesh/python/pymesh/TestCase.py
VincentLefevre/3D-parallax
8eab905fcc591e1bd7ddbbb01ad21427286c02e3
[ "MIT" ]
73
2021-01-05T07:25:51.000Z
2022-03-17T20:46:01.000Z
PyMesh/python/pymesh/TestCase.py
VincentLefevre/3D-parallax
8eab905fcc591e1bd7ddbbb01ad21427286c02e3
[ "MIT" ]
1
2021-01-05T11:45:36.000Z
2021-01-05T20:55:28.000Z
PyMesh/python/pymesh/TestCase.py
VincentLefevre/3D-parallax
8eab905fcc591e1bd7ddbbb01ad21427286c02e3
[ "MIT" ]
4
2021-01-05T10:27:50.000Z
2021-01-06T12:02:57.000Z
import unittest import os.path from .meshio import load_mesh, form_mesh, save_mesh, save_mesh_raw import numpy.testing import tempfile class TestCase(unittest.TestCase): """ Base class for all unit tests in PyMesh. This class provides a list of helper methods that will come in handy during uni...
38.297521
81
0.608114
675937d6698544b98ed8dcf518b840dd2468c11d
642
py
Python
src/researchhub/wsgi.py
ResearchHub/ResearchHub-Backend-Open
d36dca33afae2d442690694bb2ab17180d84bcd3
[ "MIT" ]
18
2021-05-20T13:20:16.000Z
2022-02-11T02:40:18.000Z
src/researchhub/wsgi.py
ResearchHub/ResearchHub-Backend-Open
d36dca33afae2d442690694bb2ab17180d84bcd3
[ "MIT" ]
109
2021-05-21T20:14:23.000Z
2022-03-31T20:56:10.000Z
src/researchhub/wsgi.py
ResearchHub/ResearchHub-Backend-Open
d36dca33afae2d442690694bb2ab17180d84bcd3
[ "MIT" ]
4
2021-05-17T13:47:53.000Z
2022-02-12T10:48:21.000Z
""" WSGI config for researchhub 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/2.2/howto/deployment/wsgi/ """ import newrelic.agent import os from django.core.wsgi import get_wsgi_application CELERY_WOR...
27.913043
78
0.780374
be64666678a6b428546e76d5f99faa0c0bfc42e8
422
py
Python
managedstate/extensions/registrar/constants.py
immijimmi/managedstate
33f487bd388beb88e0d7e3603a7416f79656c15f
[ "MIT" ]
null
null
null
managedstate/extensions/registrar/constants.py
immijimmi/managedstate
33f487bd388beb88e0d7e3603a7416f79656c15f
[ "MIT" ]
null
null
null
managedstate/extensions/registrar/constants.py
immijimmi/managedstate
33f487bd388beb88e0d7e3603a7416f79656c15f
[ "MIT" ]
null
null
null
from .partialquery import PartialQuery class PartialQueries: """ Helper class that exposes some pre-made PartialQuery objects to slot into a .register call """ KEY = PartialQuery(lambda key: key) # Simply provides the deferred key as-is class Keys: registered_path_label = "registered_path_labe...
23.444444
94
0.725118
6dd829baa78aadf451abf8b5fc486c610525660f
439
py
Python
task_2.py
anandpatel504/IMDB-Scraper
e618c83e39b1212f084019ce64a93c0c4f5d875f
[ "Apache-2.0" ]
7
2019-11-23T15:59:49.000Z
2021-09-06T06:39:24.000Z
task_2.py
anandpatel2000/IMDB-Scraper
e618c83e39b1212f084019ce64a93c0c4f5d875f
[ "Apache-2.0" ]
null
null
null
task_2.py
anandpatel2000/IMDB-Scraper
e618c83e39b1212f084019ce64a93c0c4f5d875f
[ "Apache-2.0" ]
1
2021-01-08T19:51:07.000Z
2021-01-08T19:51:07.000Z
from task_1 import top_movies import pprint data=top_movies def group_by_year(movies): # print(movies) list_of_year = [] for i in movies: a = i["year"] if a not in list_of_year: list_of_year.append(a) # print(list_of_year) dict_1={} for i in list_of_year: list_1=[] for j in movies: bar=j["year"] ...
13.30303
34
0.669704
84f0fcedbba19223ff997c210b2ecd3ef3ae8a79
7,113
py
Python
Alignment/MuonAlignment/test/muonGeometryDBConverter_cfg.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
6
2017-09-08T14:12:56.000Z
2022-03-09T23:57:01.000Z
Alignment/MuonAlignment/test/muonGeometryDBConverter_cfg.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
545
2017-09-19T17:10:19.000Z
2022-03-07T16:55:27.000Z
Alignment/MuonAlignment/test/muonGeometryDBConverter_cfg.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
14
2017-10-04T09:47:21.000Z
2019-10-23T18:04:45.000Z
from __future__ import print_function import FWCore.ParameterSet.Config as cms import FWCore.ParameterSet.VarParsing as VarParsing ################################################################################ # command line options options = VarParsing.VarParsing() options.register('input', defaul...
40.645714
80
0.664136
7f332e0fc0e524a0dda05765b51694ec146dd45e
89,333
py
Python
plugins/slicer/MONAILabel/MONAILabel.py
hamghalam/MONAILabel
4f322db0a056d2757d134c9b3c4d4f35740bbf6d
[ "Apache-2.0" ]
null
null
null
plugins/slicer/MONAILabel/MONAILabel.py
hamghalam/MONAILabel
4f322db0a056d2757d134c9b3c4d4f35740bbf6d
[ "Apache-2.0" ]
null
null
null
plugins/slicer/MONAILabel/MONAILabel.py
hamghalam/MONAILabel
4f322db0a056d2757d134c9b3c4d4f35740bbf6d
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 - 2021 MONAI Consortium # 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...
42.600381
159
0.631267
0c99a39459a286da31193d08214a6e7c34a41c88
3,979
py
Python
Chapter12/03-pso-himmelblau.py
eduard-sukharev/Hands-On-Genetic-Algorithms-with-Python
1523015ec8522bbe770cdf427ae552f2784b1b9f
[ "MIT" ]
156
2019-07-21T00:38:42.000Z
2022-03-14T13:54:33.000Z
Chapter12/03-pso-himmelblau.py
eduard-sukharev/Hands-On-Genetic-Algorithms-with-Python
1523015ec8522bbe770cdf427ae552f2784b1b9f
[ "MIT" ]
4
2020-05-12T19:22:54.000Z
2021-03-23T06:43:28.000Z
Chapter12/03-pso-himmelblau.py
eduard-sukharev/Hands-On-Genetic-Algorithms-with-Python
1523015ec8522bbe770cdf427ae552f2784b1b9f
[ "MIT" ]
106
2019-06-06T02:43:44.000Z
2022-03-31T05:42:48.000Z
import numpy as np from deap import base from deap import creator from deap import tools # constants: DIMENSIONS = 2 POPULATION_SIZE = 20 MAX_GENERATIONS = 500 MIN_START_POSITION, MAX_START_POSITION = -5, 5 MIN_SPEED, MAX_SPEED = -3, 3 MAX_LOCAL_UPDATE_FACTOR = MAX_GLOBAL_UPDATE_FACTOR = 2.0 # set the random seed: R...
32.349593
108
0.684594
9909eae78ea6b3aedfb0d0a31af0615eae48ce10
1,049
py
Python
searching.py
HedonisticOpportunist/algorithms_collection
cfc4bc09f24a0b3e1f71d6bcca27d0e5842331cf
[ "Apache-2.0" ]
2
2021-03-10T01:16:50.000Z
2021-03-10T02:25:17.000Z
searching.py
HedonisticOpportunist/algorithms_collection
cfc4bc09f24a0b3e1f71d6bcca27d0e5842331cf
[ "Apache-2.0" ]
null
null
null
searching.py
HedonisticOpportunist/algorithms_collection
cfc4bc09f24a0b3e1f71d6bcca27d0e5842331cf
[ "Apache-2.0" ]
null
null
null
class Searching: def binary_search(self, array, left, right, item): """ An implementation of the binary search algorithm :param array: :param left: :param right: :param item: :return: """ if right >= left: mid ...
27.605263
71
0.450906
04e80e931c8e2a830dfe0f735476cef8dc7b73c1
349
py
Python
data/templates/scribus/convert_sla_to_pdf.py
loftwah/booklet-generator
4d24518ec070a491885f8e5fdcbcf2b74cd9668a
[ "MIT" ]
null
null
null
data/templates/scribus/convert_sla_to_pdf.py
loftwah/booklet-generator
4d24518ec070a491885f8e5fdcbcf2b74cd9668a
[ "MIT" ]
null
null
null
data/templates/scribus/convert_sla_to_pdf.py
loftwah/booklet-generator
4d24518ec070a491885f8e5fdcbcf2b74cd9668a
[ "MIT" ]
1
2019-12-09T17:09:56.000Z
2019-12-09T17:09:56.000Z
import os import sys print("Print running a script from a script", sys.argv[1]) import scribus if len(sys.argv) < 2 : print("Not enough argumemnts") else: if scribus.haveDoc(): filename = sys.argv[1] pdf = scribus.PDFfile() pdf.file = filename + ".pdf" pdf.save() else : ...
18.368421
58
0.593123
b00a65f85b85862ad6d8bbb541192423045a91c6
432
py
Python
app/users/serializers.py
svinkapeppa/vk_hack_2018
cdea8738ea140250a9693ab6b834e18ebb114984
[ "Apache-2.0" ]
null
null
null
app/users/serializers.py
svinkapeppa/vk_hack_2018
cdea8738ea140250a9693ab6b834e18ebb114984
[ "Apache-2.0" ]
null
null
null
app/users/serializers.py
svinkapeppa/vk_hack_2018
cdea8738ea140250a9693ab6b834e18ebb114984
[ "Apache-2.0" ]
null
null
null
from rest_framework import serializers import app.users.constants as c from .models import UserData class OrderingSerializer(serializers.Serializer): ordering = serializers.ChoiceField(c.ORDERING_CHOICES, required=False) class UserDataSerializer(serializers.ModelSerializer): class Meta: model = Use...
28.8
105
0.74537
eb7a7d7af7e498aa8331b8ba6f7941c1acbd5b76
7,691
py
Python
cityfinder/city_vector.py
slava-kerner/cityfinder
f4bd1b53b6970492f168dc13e990e56d7e75e2e4
[ "BSD-2-Clause" ]
null
null
null
cityfinder/city_vector.py
slava-kerner/cityfinder
f4bd1b53b6970492f168dc13e990e56d7e75e2e4
[ "BSD-2-Clause" ]
null
null
null
cityfinder/city_vector.py
slava-kerner/cityfinder
f4bd1b53b6970492f168dc13e990e56d7e75e2e4
[ "BSD-2-Clause" ]
null
null
null
import itertools from copy import copy, deepcopy import operator import pyproj import shapely.geometry import cv2 from affine import Affine from uuid import uuid4 import random import numpy as np from cityfinder.geo import transform, p_geographic, p_utm, lonlat_to_utm, fit_affine, UTM from cityfinder.gcp import GCP ...
39.849741
182
0.617215
3304df82ab52915a469d381523566fbbe9f253cc
8,773
py
Python
cogs/moderation.py
cataclym/HimejiBot
d15027ab3e7c073f063706fbb0dce653eab7e423
[ "MIT" ]
null
null
null
cogs/moderation.py
cataclym/HimejiBot
d15027ab3e7c073f063706fbb0dce653eab7e423
[ "MIT" ]
null
null
null
cogs/moderation.py
cataclym/HimejiBot
d15027ab3e7c073f063706fbb0dce653eab7e423
[ "MIT" ]
null
null
null
from typing import Optional, Union from discord.ext import commands from discord.utils import get import discord from utils.classes import HimejiBot from utils.funcs import check_hierarchy class Moderation(commands.Cog): def __init__(self, bot: HimejiBot): self.bot = bot @commands.command() @co...
39.877273
116
0.570386
4a08bb6edef185cb608345fa6357538b4dce9bcc
4,172
py
Python
Momentum/Williams_%R.py
alihaskar/Algorithmic-Trading-with-Python
68d269bd4ca5be184dd2e1ffb33cf49d683aa2f7
[ "MIT" ]
2
2022-01-31T22:28:24.000Z
2022-02-07T17:30:50.000Z
Momentum/Williams_%R.py
alihaskar/Algorithmic-Trading-with-Python
68d269bd4ca5be184dd2e1ffb33cf49d683aa2f7
[ "MIT" ]
null
null
null
Momentum/Williams_%R.py
alihaskar/Algorithmic-Trading-with-Python
68d269bd4ca5be184dd2e1ffb33cf49d683aa2f7
[ "MIT" ]
2
2022-01-31T22:28:26.000Z
2022-03-16T17:40:10.000Z
import pandas as pd import numpy as np import requests import matplotlib.pyplot as plt from math import floor from termcolor import colored as cl plt.rcParams['figure.figsize'] = (20,10) plt.style.use('fivethirtyeight') def get_historical_data(symbol, start_date): api_key = 'YOUR API KEY' api_url = f'https://...
33.645161
118
0.611218
8cf4eb585c760d1820ad5ad8290190ba798170a2
2,082
py
Python
test/test_client_session_keep_alive.py
Saad-K/snowflake-connector-python
38d123700313690ef65103368007f1cff06d4318
[ "Apache-2.0" ]
1
2020-02-21T15:58:47.000Z
2020-02-21T15:58:47.000Z
test/test_client_session_keep_alive.py
Saad-K/snowflake-connector-python
38d123700313690ef65103368007f1cff06d4318
[ "Apache-2.0" ]
null
null
null
test/test_client_session_keep_alive.py
Saad-K/snowflake-connector-python
38d123700313690ef65103368007f1cff06d4318
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2012-2019 Snowflake Computing Inc. All right reserved. # # This test requires the Snowflake admin connection parameters. import time import pytest import snowflake.connector try: from parameters import (CONNECTION_PARAMETERS) except ImportError: ...
30.617647
79
0.701249
c6c125988aa9b3a08fa09956ceb6006c3e8aa9c0
2,105
py
Python
exasol_python_test_framework/exatest/test/__init__.py
exasol/exasol-python-test-framework
eae58f132f82ffe8c57e8b5e8019f9a8fc09dc7c
[ "MIT" ]
1
2022-01-11T11:11:46.000Z
2022-01-11T11:11:46.000Z
exasol_python_test_framework/exatest/test/__init__.py
exasol/exasol-python-test-framework
eae58f132f82ffe8c57e8b5e8019f9a8fc09dc7c
[ "MIT" ]
12
2021-10-13T12:59:28.000Z
2022-03-17T10:12:55.000Z
exasol_python_test_framework/exatest/test/__init__.py
exasol/exasol-python-test-framework
eae58f132f82ffe8c57e8b5e8019f9a8fc09dc7c
[ "MIT" ]
1
2020-04-07T08:29:27.000Z
2020-04-07T08:29:27.000Z
'''Test unittest extensions with unittest''' import argparse import io as StringIO import contextlib import sys import unittest from .. import TestLoader, ClientSetup def _print_output(output): print('\n', '>' * 70, file=sys.stderr) print(output, file=sys.stderr) print('<' * 70, file=sys.stderr) def cre...
28.445946
115
0.607126
c58ea0b2cbd90eab05054897a28beeb84faa1b8e
8,656
py
Python
src/baseline_config.py
LeanderLXZ/oracle-recognition
c82976333d4a72218b06fffc94192238d95fcf9e
[ "Apache-2.0" ]
1
2022-02-08T09:33:16.000Z
2022-02-08T09:33:16.000Z
src/baseline_config.py
LeanderLXZ/oracle-recognition
c82976333d4a72218b06fffc94192238d95fcf9e
[ "Apache-2.0" ]
null
null
null
src/baseline_config.py
LeanderLXZ/oracle-recognition
c82976333d4a72218b06fffc94192238d95fcf9e
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function from easydict import EasyDict # Auto-generate version def _auto_version(c): _version = c['DATABASE_NAME'] if c['WITH_REC']: _version += '_{}_{}'.format(c['DECODER_TYPE'], c['REC_LOSS']) else: _v...
24.802292
79
0.640018
bd4e4c732e7e96a2eedf38769b400623b54aaee1
3,190
py
Python
scripts/study_case/ID_42/src/ch5/tb-bmi2_grist.py
kzbnb/numerical_bugs
bc22e72bcc06df6ce7889a25e0aeed027bde910b
[ "Apache-2.0" ]
8
2021-06-30T06:55:14.000Z
2022-03-18T01:57:14.000Z
scripts/study_case/ID_42/src/ch5/tb-bmi2_grist.py
kzbnb/numerical_bugs
bc22e72bcc06df6ce7889a25e0aeed027bde910b
[ "Apache-2.0" ]
1
2021-06-30T03:08:15.000Z
2021-06-30T03:08:15.000Z
scripts/study_case/ID_42/src/ch5/tb-bmi2_grist.py
kzbnb/numerical_bugs
bc22e72bcc06df6ce7889a25e0aeed027bde910b
[ "Apache-2.0" ]
2
2021-11-17T11:19:48.000Z
2021-11-18T03:05:58.000Z
import pandas as pd import numpy as np import tensorflow as tf import sys sys.path.append("/data") csv = pd.read_csv("bmi.csv") csv["height"] = csv["height"] / 200 csv["weight"] = csv["weight"] / 100 bclass = {"thin": [1, 0, 0], "normal": [0, 1, 0], "fat": [0, 0, 1]} csv["label_pat"] = csv["label"].apply(lambda x: np....
38.433735
103
0.616928
d51c661acff4c9bc6b808179a64e01edb41efb22
1,893
py
Python
app.py
Rishabh1501/Xray-Covid-Detection
9e468ffbd0ff363f47e1d1b460b441c0ff50704a
[ "MIT" ]
null
null
null
app.py
Rishabh1501/Xray-Covid-Detection
9e468ffbd0ff363f47e1d1b460b441c0ff50704a
[ "MIT" ]
null
null
null
app.py
Rishabh1501/Xray-Covid-Detection
9e468ffbd0ff363f47e1d1b460b441c0ff50704a
[ "MIT" ]
null
null
null
from flask import Flask,request,render_template import os #importing custom packages from xray_prediction.prediction import Prediction from xray_train.training import Training #creating app app = Flask(__name__) #creating objects predict = Prediction() #index page @app.route('/') def index(): return render_temp...
32.637931
97
0.585314
a08d1ad034411c20482303674fe1cd8b6bdb6eb2
2,120
py
Python
wagtail/documents/views/bulk_actions/add_to_collection.py
stevedya/wagtail
52e5abfe62547cdfd90ea7dfeb8bf5a52f16324c
[ "BSD-3-Clause" ]
1
2022-02-09T05:25:30.000Z
2022-02-09T05:25:30.000Z
wagtail/documents/views/bulk_actions/add_to_collection.py
stevedya/wagtail
52e5abfe62547cdfd90ea7dfeb8bf5a52f16324c
[ "BSD-3-Clause" ]
null
null
null
wagtail/documents/views/bulk_actions/add_to_collection.py
stevedya/wagtail
52e5abfe62547cdfd90ea7dfeb8bf5a52f16324c
[ "BSD-3-Clause" ]
null
null
null
from django import forms from django.utils.translation import gettext_lazy as _ from django.utils.translation import ngettext from wagtail.documents.views.bulk_actions.document_bulk_action import DocumentBulkAction class CollectionForm(forms.Form): def __init__(self, *args, **kwargs): user = kwargs.pop("...
37.192982
94
0.688208
646220a773cacd7aaba43424dae19cf7c0e1811d
13,490
py
Python
mmdet/models/roi_heads/mask_heads/mask_point_head.py
yypurpose/mmdetection
ec6bfd96eae0af047c623f3d1ec31b0b3f1f4a6c
[ "Apache-2.0" ]
null
null
null
mmdet/models/roi_heads/mask_heads/mask_point_head.py
yypurpose/mmdetection
ec6bfd96eae0af047c623f3d1ec31b0b3f1f4a6c
[ "Apache-2.0" ]
null
null
null
mmdet/models/roi_heads/mask_heads/mask_point_head.py
yypurpose/mmdetection
ec6bfd96eae0af047c623f3d1ec31b0b3f1f4a6c
[ "Apache-2.0" ]
null
null
null
# Modified from https://github.com/facebookresearch/detectron2/tree/master/projects/PointRend/point_head/point_head.py # noqa import torch import torch.nn as nn from mmcv.cnn import ConvModule, normal_init from mmcv.ops import point_sample, rel_roi_point_to_rel_img_point from mmdet.models.builder import HEADS...
44.817276
127
0.60556
5d6f80fd8846f923f24c0b4baeb2992bfce58e09
4,045
py
Python
podman/errors/exceptions.py
kevinwylder/podman-py
fefc036d109b51e5cdf8754b8c0740188e74e938
[ "Apache-2.0" ]
106
2020-02-01T18:19:04.000Z
2022-03-25T04:34:30.000Z
podman/errors/exceptions.py
kevinwylder/podman-py
fefc036d109b51e5cdf8754b8c0740188e74e938
[ "Apache-2.0" ]
152
2020-02-04T01:52:34.000Z
2022-03-29T14:57:05.000Z
podman/errors/exceptions.py
kevinwylder/podman-py
fefc036d109b51e5cdf8754b8c0740188e74e938
[ "Apache-2.0" ]
61
2020-02-01T16:19:58.000Z
2022-03-25T17:58:34.000Z
"""Podman API Errors.""" import typing from typing import Iterable, List, Optional, Union from requests import Response from requests.exceptions import HTTPError # Break circular import if typing.TYPE_CHECKING: from podman.domain.containers import Container from podman.api.client import APIResponse class AP...
27.896552
96
0.621014
e2d68147292a55f955926771718f6ea0f6c4c22e
7,960
py
Python
tests_basic/core/test_image.py
mchamberland/pylinac
59d0055100345d809a8f85f6797587e43d594289
[ "MIT" ]
null
null
null
tests_basic/core/test_image.py
mchamberland/pylinac
59d0055100345d809a8f85f6797587e43d594289
[ "MIT" ]
null
null
null
tests_basic/core/test_image.py
mchamberland/pylinac
59d0055100345d809a8f85f6797587e43d594289
[ "MIT" ]
null
null
null
import copy from unittest import TestCase import os.path as osp import numpy as np from pylinac.core.geometry import Point from pylinac.core import image from pylinac.core.image import DicomImage, ArrayImage, FileImage, DicomImageStack from pylinac.core.io import TemporaryZipDirectory from tests_basic.utils import sa...
30.972763
105
0.643467
aca5504ff19c8989850bb8b25f3780b0591b57e0
527
py
Python
examples/single_window.py
torss/bimpy
c2f6d176f5de18a86939d925f782ce1149d895d9
[ "MIT" ]
183
2018-01-21T09:17:17.000Z
2022-02-23T01:32:22.000Z
examples/single_window.py
torss/bimpy
c2f6d176f5de18a86939d925f782ce1149d895d9
[ "MIT" ]
40
2018-06-11T13:48:38.000Z
2021-09-12T09:38:37.000Z
examples/single_window.py
torss/bimpy
c2f6d176f5de18a86939d925f782ce1149d895d9
[ "MIT" ]
37
2018-06-18T14:10:02.000Z
2021-12-09T22:23:26.000Z
import sys import os if os.path.exists("../cmake-build-debug/"): print('Running Debugging session!') sys.path.insert(0, "../cmake-build-debug/") import bimpy as bp ctx = bp.Context() ctx.init(600, 600, "Hello") str = bp.String() f = bp.Float() while not ctx.should_close(): with ctx: bp.begin_r...
17.566667
47
0.574953
46445912a25c40c491c566da38619c9c8037b3ab
14,436
py
Python
nn_viz_30.py
brohrer/autoencoder_visualization
67e0f5ba3cbd6936301b79e56a2b90be825673bc
[ "MIT" ]
7
2019-05-13T03:24:03.000Z
2021-01-25T14:18:51.000Z
nn_viz_30.py
brohrer/autoencoder_visualization
67e0f5ba3cbd6936301b79e56a2b90be825673bc
[ "MIT" ]
null
null
null
nn_viz_30.py
brohrer/autoencoder_visualization
67e0f5ba3cbd6936301b79e56a2b90be825673bc
[ "MIT" ]
3
2019-06-03T05:24:26.000Z
2021-02-17T15:52:04.000Z
""" Generate an autoencoder neural network visualization """ import matplotlib matplotlib.use("agg") import matplotlib.pyplot as plt # noqa: E402 import numpy as np # noqa: E402 from PIL import Image # noqa: E402 # Choose a color palette BLUE = "#04253a" GREEN = "#4c837a" TAN = "#e1ddbf" DPI = 300 # This is an ima...
31.112069
79
0.617415
62c14177f80286a270d23bd97b202c76df910292
3,706
py
Python
setup.py
hypothesis/template-test-repo
3825d7e4f550f99d1e37d90701c67538c8734c39
[ "BSD-2-Clause" ]
null
null
null
setup.py
hypothesis/template-test-repo
3825d7e4f550f99d1e37d90701c67538c8734c39
[ "BSD-2-Clause" ]
null
null
null
setup.py
hypothesis/template-test-repo
3825d7e4f550f99d1e37d90701c67538c8734c39
[ "BSD-2-Clause" ]
null
null
null
import os from setuptools import find_packages, setup from setuptools.config import read_configuration class Package: def __init__(self, config): metadata = config['metadata'] options = config['options'] self.options = options self.name = metadata['name'] self.version = m...
34.314815
83
0.604695
9e99d0664828471f7de16b40b67d298346488e88
549
py
Python
goldenbraid/tests/test_api.py
bioinfcomav/goldebraid
7a50c9c4e65308fb51abf4f236457d12e9d028d6
[ "Apache-2.0" ]
null
null
null
goldenbraid/tests/test_api.py
bioinfcomav/goldebraid
7a50c9c4e65308fb51abf4f236457d12e9d028d6
[ "Apache-2.0" ]
null
null
null
goldenbraid/tests/test_api.py
bioinfcomav/goldebraid
7a50c9c4e65308fb51abf4f236457d12e9d028d6
[ "Apache-2.0" ]
null
null
null
''' Created on 2015 eka. 1 @author: peio ''' from django.test.testcases import TestCase from goldenbraid.tests.test_fixtures import FIXTURES_TO_LOAD from django.core.urlresolvers import reverse from django.test.client import Client class ApiViewTest(TestCase): fixtures = FIXTURES_TO_LOAD def test_keyfeat(se...
24.954545
60
0.688525
58a62b28943fd0d1fb45fd98ef0b78ec2a78e8dc
4,474
py
Python
python/perfetto/trace_processor/resolver.py
riscv-android-src/platform-external-perfetto
16ecbad464741c956ca2ef99e6055428e3203e81
[ "Apache-2.0" ]
null
null
null
python/perfetto/trace_processor/resolver.py
riscv-android-src/platform-external-perfetto
16ecbad464741c956ca2ef99e6055428e3203e81
[ "Apache-2.0" ]
null
null
null
python/perfetto/trace_processor/resolver.py
riscv-android-src/platform-external-perfetto
16ecbad464741c956ca2ef99e6055428e3203e81
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2022 The Android Open Source Project # # 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 ...
33.140741
77
0.68574
2ad491f75758306d29aaa43171f1982bb65688c2
2,072
py
Python
src/backend/backend/shopit/migrations/0019_auto_20201027_2103.py
tejpratap545/E-Commerce-Application
c1aada5d86f231e5acd6ba4c6c9b88ff4b351f7a
[ "MIT" ]
null
null
null
src/backend/backend/shopit/migrations/0019_auto_20201027_2103.py
tejpratap545/E-Commerce-Application
c1aada5d86f231e5acd6ba4c6c9b88ff4b351f7a
[ "MIT" ]
7
2021-08-13T23:05:47.000Z
2022-02-27T10:23:46.000Z
src/backend/backend/shopit/migrations/0019_auto_20201027_2103.py
tejpratap545/E-Commerce-Application
c1aada5d86f231e5acd6ba4c6c9b88ff4b351f7a
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-10-27 15:33 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('shopit', '0018_auto_20201027_1738'), ] operations = [ migrations.CreateModel( name='AvailableOptions', fields=[ ...
33.967213
114
0.571911
74cca943337147f2b592fd3532f81b7e8cf2ab9c
9,041
py
Python
buycoins_sdk/tests/client/fixtures.py
GoZaddy/buycoins_sdk
404ab183dc9d575d04abc60fa84fb5b1001a97a9
[ "MIT" ]
16
2021-02-09T13:34:10.000Z
2021-02-15T12:51:00.000Z
buycoins_sdk/tests/client/fixtures.py
GoZaddy/buycoins_sdk
404ab183dc9d575d04abc60fa84fb5b1001a97a9
[ "MIT" ]
7
2021-02-07T06:12:30.000Z
2021-02-12T00:12:41.000Z
buycoins_sdk/tests/client/fixtures.py
GoZaddy/buycoins_sdk
404ab183dc9d575d04abc60fa84fb5b1001a97a9
[ "MIT" ]
1
2021-02-12T19:22:05.000Z
2021-02-12T19:22:05.000Z
get_market_book_success = { 'data': { 'getMarketBook': { 'dynamicPriceExpiry': 1612756694, 'orders': { 'edges': [ { 'cursor': 'MQ', 'node': { 'coinAmount': '0.00963874', ...
29.07074
101
0.423847
5a3d4e833a883e3d16e302f50af792172375d43b
948
py
Python
tools/sqlmap/tamper/varnish.py
glaudsonml/kurgan-ai
c0ad4450f9fb2004f35b8a0201bfe894e01adc8f
[ "Apache-2.0" ]
35
2017-05-22T14:42:01.000Z
2020-09-07T21:24:41.000Z
tools/sqlmap/tamper/varnish.py
tmaxter/kurgan-ai
c0ad4450f9fb2004f35b8a0201bfe894e01adc8f
[ "Apache-2.0" ]
null
null
null
tools/sqlmap/tamper/varnish.py
tmaxter/kurgan-ai
c0ad4450f9fb2004f35b8a0201bfe894e01adc8f
[ "Apache-2.0" ]
5
2017-12-19T03:36:54.000Z
2021-04-14T18:05:08.000Z
#!/usr/bin/env python """ Copyright (c) 2006-2016 sqlmap developers (http://sqlmap.org/) See the file 'doc/COPYING' for copying permission """ from lib.core.enums import PRIORITY __priority__ = PRIORITY.NORMAL def dependencies(): pass def tamper(payload, **kwargs): """ Append a HTTP header 'X-originati...
27.882353
144
0.663502
9cf473e7adc5e565a4f6024bdf0e1632a004825b
6,287
py
Python
userbot/modules/evaluators.py
deansammy17/dean17
21ad49e8979e4518b6f1a9d66f03c2f555811bb1
[ "CNRI-Python", "Condor-1.1", "Naumen", "Xnet", "FTL", "X11", "MS-PL" ]
8
2020-04-29T13:27:23.000Z
2021-07-10T16:52:29.000Z
userbot/modules/evaluators.py
deansammy17/dean17
21ad49e8979e4518b6f1a9d66f03c2f555811bb1
[ "CNRI-Python", "Condor-1.1", "Naumen", "Xnet", "FTL", "X11", "MS-PL" ]
1
2020-06-28T09:11:11.000Z
2020-06-28T09:11:11.000Z
userbot/modules/evaluators.py
deansammy17/dean17
21ad49e8979e4518b6f1a9d66f03c2f555811bb1
[ "CNRI-Python", "Condor-1.1", "Naumen", "Xnet", "FTL", "X11", "MS-PL" ]
16
2020-04-27T19:11:14.000Z
2020-08-09T03:45:51.000Z
# Copyright (C) 2019 The Raphielscape Company LLC. # # Licensed under the Raphielscape Public License, Version 1.c (the "License"); # you may not use this file except in compliance with the License. # """ Userbot module for executing code and terminal commands from Telegram. """ import asyncio from os import remove fr...
34.734807
89
0.533164
3832936b332df58554d5d334ffc0c555a774e5ae
1,153
py
Python
spyke/graphics/rectangle.py
m4reQ/spyke
4b1aa4c01c5c33e050f03eb9e8d396f9716f9e93
[ "Unlicense" ]
null
null
null
spyke/graphics/rectangle.py
m4reQ/spyke
4b1aa4c01c5c33e050f03eb9e8d396f9716f9e93
[ "Unlicense" ]
4
2022-01-24T01:35:28.000Z
2022-02-10T19:48:35.000Z
spyke/graphics/rectangle.py
m4reQ/spyke
4b1aa4c01c5c33e050f03eb9e8d396f9716f9e93
[ "Unlicense" ]
null
null
null
import dataclasses import glm import numpy as np @dataclasses.dataclass class Rectangle: x: float y: float width: float height: float def to_coordinates(self) -> np.ndarray: #0.0, 1.0, # 1.0, 1.0, # 1.0, 0.0, # 1.0, 0.0, # 0.0, 0.0, ...
20.963636
51
0.523851
2dc067267c573ee009b3c6d3242d44dc86bad25f
340
py
Python
yoola_wps_report/config/docs.py
alibaig4u/yoola_wps_report
999529ebc93ae48d6edf50da18cc04383fe7c59f
[ "MIT" ]
null
null
null
yoola_wps_report/config/docs.py
alibaig4u/yoola_wps_report
999529ebc93ae48d6edf50da18cc04383fe7c59f
[ "MIT" ]
null
null
null
yoola_wps_report/config/docs.py
alibaig4u/yoola_wps_report
999529ebc93ae48d6edf50da18cc04383fe7c59f
[ "MIT" ]
1
2021-02-23T06:55:01.000Z
2021-02-23T06:55:01.000Z
""" Configuration for docs """ # source_link = "https://github.com/[org_name]/yoola_wps_report" # docs_base_url = "https://[org_name].github.io/yoola_wps_report" # headline = "App that does everything" # sub_heading = "Yes, you got that right the first time, everything" def get_context(context): context.brand_html =...
28.333333
68
0.738235
3224aaf94282f4914b39f5697839726b7e24c444
2,918
py
Python
src/samples/pymxs/mesh_and_cpv.py
RegionStormer/3dsMax-Python-HowTos
b86ef45ef4d8dff373bd1cbfe5c4d5b805687339
[ "MIT" ]
88
2020-03-19T20:24:08.000Z
2022-03-23T23:13:54.000Z
src/samples/pymxs/mesh_and_cpv.py
RegionStormer/3dsMax-Python-HowTos
b86ef45ef4d8dff373bd1cbfe5c4d5b805687339
[ "MIT" ]
5
2020-04-09T19:56:47.000Z
2021-11-12T20:02:18.000Z
src/samples/pymxs/mesh_and_cpv.py
RegionStormer/3dsMax-Python-HowTos
b86ef45ef4d8dff373bd1cbfe5c4d5b805687339
[ "MIT" ]
22
2020-03-19T19:24:36.000Z
2022-03-18T21:55:19.000Z
''' Demonstrates how to create a mesh from scratch and to set color per vertex data. ''' from pymxs import runtime as rt # pylint: disable=import-error def set_edge_visibility(mesh, face, aedge, bedge, cedge): """Set the visibility of face edges""" rt.setEdgeVis(mesh, face, 1, aedge) rt.setEdgeVis(mesh,...
33.54023
83
0.648389
07b9a368d9e69c08464b6216d234f7c5b1ceafed
5,952
py
Python
src/gabbs/plugins/drawingtool/DrawingToolDlg.py
waneric/pymaplib
66be80f5e35219d05f6e4341b715816f119a571f
[ "MIT" ]
null
null
null
src/gabbs/plugins/drawingtool/DrawingToolDlg.py
waneric/pymaplib
66be80f5e35219d05f6e4341b715816f119a571f
[ "MIT" ]
null
null
null
src/gabbs/plugins/drawingtool/DrawingToolDlg.py
waneric/pymaplib
66be80f5e35219d05f6e4341b715816f119a571f
[ "MIT" ]
null
null
null
""" /*************************************************************************** * * * 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 * * ...
44.088889
104
0.556788
f374f288470771c77297b97b82aef723e06d162d
2,960
py
Python
tests/test_pulses/propPulses.py
twguest/FELpy
0ac9dd965b0d8e04dddbf2c9aef5ac137d1f0dfd
[ "Apache-2.0" ]
1
2021-03-15T14:04:19.000Z
2021-03-15T14:04:19.000Z
tests/test_pulses/propPulses.py
twguest/FELpy
0ac9dd965b0d8e04dddbf2c9aef5ac137d1f0dfd
[ "Apache-2.0" ]
2
2021-11-27T11:55:48.000Z
2021-11-27T11:56:26.000Z
tests/test_pulses/propPulses.py
twguest/FELpy
0ac9dd965b0d8e04dddbf2c9aef5ac137d1f0dfd
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Jun 30 15:09:54 2020 @author: twguest """ ############################################################################### import sys sys.path.append("/opt/WPG/") # LOCAL PATH sys.path.append("/gpfs/exfel/data/user/guestt/WPG") # DESY MAXWELL PATH sys....
25.73913
85
0.603041
92a261fa1071c5c72ac71e2e195b4088fbca8ca5
918
py
Python
codex-py/codex/config/__init__.py
egustafson/home-sensors
232b36fe6fa2a2e3bce1391a91dffa192f17b835
[ "Apache-2.0" ]
null
null
null
codex-py/codex/config/__init__.py
egustafson/home-sensors
232b36fe6fa2a2e3bce1391a91dffa192f17b835
[ "Apache-2.0" ]
null
null
null
codex-py/codex/config/__init__.py
egustafson/home-sensors
232b36fe6fa2a2e3bce1391a91dffa192f17b835
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2018 Eric Gustafson # # 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 require...
27.818182
76
0.716776
97b377253d45dbe5c6657f88de23cfd518d920a0
8,787
py
Python
train_nd_proj_bn.py
youweiliang/norm_robustness
a258ae64bb5cef1feeb120e3ec088bd311853643
[ "MIT" ]
6
2020-09-18T02:01:29.000Z
2022-01-20T17:13:11.000Z
train_nd_proj_bn.py
huangdonghere/norm_robustness
a258ae64bb5cef1feeb120e3ec088bd311853643
[ "MIT" ]
null
null
null
train_nd_proj_bn.py
huangdonghere/norm_robustness
a258ae64bb5cef1feeb120e3ec088bd311853643
[ "MIT" ]
3
2020-11-16T00:06:46.000Z
2021-01-01T13:49:30.000Z
from __future__ import print_function import os import argparse import torch import torch.nn as nn import torch.nn.functional as F import torchvision import torch.optim as optim from torchvision import datasets, transforms from torch.autograd import Variable from models import * import numpy as np import time from li...
34.458824
112
0.625128