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
924ac721cbdb40ad944f28e56ded5c8173768dd6
331
py
Python
isenw_app/migrations/0005_remove_content_image.py
thedivyanshuyadav/ISENW
ab424db8d12e6d7f8ad5e97aeb92fbbfde31831a
[ "MIT" ]
7
2020-12-28T23:03:11.000Z
2020-12-30T09:29:47.000Z
isenw_app/migrations/0005_remove_content_image.py
thedivyanshuyadav/ISENW
ab424db8d12e6d7f8ad5e97aeb92fbbfde31831a
[ "MIT" ]
null
null
null
isenw_app/migrations/0005_remove_content_image.py
thedivyanshuyadav/ISENW
ab424db8d12e6d7f8ad5e97aeb92fbbfde31831a
[ "MIT" ]
2
2020-12-28T23:15:28.000Z
2020-12-29T07:56:37.000Z
# Generated by Django 2.2.24 on 2021-06-25 21:21 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('isenw_app', '0004_auto_20210625_2120'), ] operations = [ migrations.RemoveField( model_name='content', name='image', ...
18.388889
49
0.595166
82d9a439634f9e063578b6ccd50902b347164a0c
626
py
Python
tests/test_ros_writer.py
foxglove/python-mcap-ros1-support
076d7e1fceada24e8f72e16cf571e1fd73c902d6
[ "Apache-2.0" ]
1
2022-03-09T14:01:12.000Z
2022-03-09T14:01:12.000Z
tests/test_ros_writer.py
foxglove/python-mcap-ros1-support
076d7e1fceada24e8f72e16cf571e1fd73c902d6
[ "Apache-2.0" ]
null
null
null
tests/test_ros_writer.py
foxglove/python-mcap-ros1-support
076d7e1fceada24e8f72e16cf571e1fd73c902d6
[ "Apache-2.0" ]
null
null
null
from io import BytesIO from mcap_ros1.decoder import Decoder as Ros1Decoder from mcap_ros1.writer import Writer as Ros1Writer from std_msgs.msg import String # type: ignore def test_write_messages(): output = BytesIO() ros_writer = Ros1Writer(output=output) for i in range(0, 10): ros_writer.writ...
31.3
79
0.710863
2f8f89f44ffbc0c9a3541ced00325e7c17d43ef2
58,090
py
Python
usercodex/plugins/gdrive.py
ipindanger/Codex-z
1cedebd4352e4adb914b40a219bbda752c9b39d7
[ "BSD-3-Clause" ]
1
2021-09-08T08:57:09.000Z
2021-09-08T08:57:09.000Z
usercodex/plugins/gdrive.py
ipindanger/Codex-z
1cedebd4352e4adb914b40a219bbda752c9b39d7
[ "BSD-3-Clause" ]
null
null
null
usercodex/plugins/gdrive.py
ipindanger/Codex-z
1cedebd4352e4adb914b40a219bbda752c9b39d7
[ "BSD-3-Clause" ]
null
null
null
import asyncio import base64 import io import json import logging import math import os import pickle import re import time from datetime import datetime from mimetypes import guess_type from urllib.parse import quote import requests from bs4 import BeautifulSoup from google.auth.transport.requests import Request from...
36.88254
148
0.50828
041625f6f95f92710dd0833e62b55898fa985a1c
364
py
Python
wine_recommender/urls.py
atorefrank/wine
a30d0aafd7ca0162dba78046f344b2fca1b60f94
[ "MIT" ]
null
null
null
wine_recommender/urls.py
atorefrank/wine
a30d0aafd7ca0162dba78046f344b2fca1b60f94
[ "MIT" ]
null
null
null
wine_recommender/urls.py
atorefrank/wine
a30d0aafd7ca0162dba78046f344b2fca1b60f94
[ "MIT" ]
null
null
null
from django.conf.urls import include, url from django.contrib import admin urlpatterns = [ url(r'^reviews/', include('reviews.urls', namespace="reviews")), url(r'^admin/', include(admin.site.urls)), url(r'^accounts/', include('registration.backends.simple.urls')), url(r'^accounts/', include('django.con...
33.090909
78
0.684066
c68e71ef22b27fdd4c37fef25b9759b7f7006e47
466
py
Python
tests/test_experience.py
nairraghav/resume-app
ae1fb005a313816a90d5c457a44164a1405a23d7
[ "MIT" ]
null
null
null
tests/test_experience.py
nairraghav/resume-app
ae1fb005a313816a90d5c457a44164a1405a23d7
[ "MIT" ]
null
null
null
tests/test_experience.py
nairraghav/resume-app
ae1fb005a313816a90d5c457a44164a1405a23d7
[ "MIT" ]
null
null
null
from src.models import experience def test_create_experience(): new_experience = experience.Experience( company_name="Company", start_date="01-01-2019", end_date="01-02-2019", description="This was my job", ) assert new_experience.company_name == "Company" assert new_ex...
31.066667
58
0.686695
0f2b2b131597acf081118dc4f21545c26dd51bf5
3,296
py
Python
geotweet/osm.py
meyersj/geotweet
1a6b55f98adf34d1b91f172d9187d599616412d9
[ "MIT" ]
6
2016-03-26T19:29:25.000Z
2020-07-12T02:18:22.000Z
geotweet/osm.py
meyersj/geotweet
1a6b55f98adf34d1b91f172d9187d599616412d9
[ "MIT" ]
null
null
null
geotweet/osm.py
meyersj/geotweet
1a6b55f98adf34d1b91f172d9187d599616412d9
[ "MIT" ]
1
2020-01-06T01:25:05.000Z
2020-01-06T01:25:05.000Z
import os import sys import json import logging from os.path import dirname import requests from imposm.parser import OSMParser from .twitter.load import S3Loader SCRIPTDIR = dirname(os.path.abspath(__file__)) DEFAULT_STATES = os.path.join(SCRIPTDIR, 'data/states.txt') US_GEOFABRIK = 'http://download.geofabrik.de/n...
35.44086
85
0.584345
299a2a114082b597b91a3a9eb5242c413b1d7ade
6,513
py
Python
ivoire/spec/unit/run_spec.py
Julian/Ivoire
af3f4ac77daf9d6c5167ef8a906557cc9d1d0ba7
[ "MIT" ]
9
2015-02-05T12:16:47.000Z
2022-02-04T07:48:23.000Z
ivoire/spec/unit/run_spec.py
Julian/Ivoire
af3f4ac77daf9d6c5167ef8a906557cc9d1d0ba7
[ "MIT" ]
1
2018-02-11T16:31:36.000Z
2018-02-11T16:31:36.000Z
ivoire/spec/unit/run_spec.py
Julian/Ivoire
af3f4ac77daf9d6c5167ef8a906557cc9d1d0ba7
[ "MIT" ]
null
null
null
from ivoire import describe, result, run from ivoire.spec.util import ExampleWithPatch, mock import ivoire with describe(run.parse, Example=ExampleWithPatch) as it: @it.before def before(test): test.specs = ["a_spec"] with it("sets reasonable defaults") as test: should_color = test.patchO...
34.828877
79
0.642254
485c7a3e7b6e8d68c0da95854bc0033ca510cb3f
569
py
Python
leetcode/1389_create_target_array_in_the_given_order.py
jacquerie/leetcode
a05e6b832eb0e0740aaff7b2eb3109038ad404bf
[ "MIT" ]
3
2018-05-10T09:56:49.000Z
2020-11-07T18:09:42.000Z
leetcode/1389_create_target_array_in_the_given_order.py
jacquerie/leetcode
a05e6b832eb0e0740aaff7b2eb3109038ad404bf
[ "MIT" ]
null
null
null
leetcode/1389_create_target_array_in_the_given_order.py
jacquerie/leetcode
a05e6b832eb0e0740aaff7b2eb3109038ad404bf
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from typing import List class Solution: def createTargetArray(self, nums: List[int], indices: List[int]) -> List[int]: result = [] for index, num in zip(indices, nums): result.insert(index, num) return result if __name__ == '__main__': solution = ...
28.45
90
0.56942
bfa61a63368c196d870bdabca73a14bad4c227f3
298
py
Python
tools/fileinfo/detection/packers/ww-pack/test.py
xbabka01/retdec-regression-tests
1ac40cca5165740364e6f7fb72b20820eac9bc7c
[ "MIT" ]
8
2017-12-14T14:25:17.000Z
2019-03-09T03:29:12.000Z
tools/fileinfo/detection/packers/ww-pack/test.py
xbabka01/retdec-regression-tests
1ac40cca5165740364e6f7fb72b20820eac9bc7c
[ "MIT" ]
10
2019-06-14T09:12:55.000Z
2021-10-01T12:15:43.000Z
tools/fileinfo/detection/packers/ww-pack/test.py
xbabka01/retdec-regression-tests
1ac40cca5165740364e6f7fb72b20820eac9bc7c
[ "MIT" ]
8
2019-05-10T14:59:48.000Z
2022-03-07T16:34:23.000Z
from regression_tests import * class Test(Test): settings = TestSettings( tool='fileinfo', input='fact_rec.ex' ) def test_correctly_analyzes_input_file(self): assert self.fileinfo.succeeded assert self.fileinfo.output.contains(r'.*WWPack32 \(1\.x\)*')
24.833333
69
0.661074
17bfd28d5d36fbb62944fe4535a1320c2acf19e9
4,338
py
Python
rs_gnn/main.py
mcx/google-research
beb8fcfa4e2845ee77f348b952e45cc0944ca5f1
[ "Apache-2.0" ]
null
null
null
rs_gnn/main.py
mcx/google-research
beb8fcfa4e2845ee77f348b952e45cc0944ca5f1
[ "Apache-2.0" ]
null
null
null
rs_gnn/main.py
mcx/google-research
beb8fcfa4e2845ee77f348b952e45cc0944ca5f1
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # 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 applicab...
39.436364
80
0.688105
1ad0a13f8ccfadc63985429f10005bd1d7f37afb
7,609
py
Python
bfxapi/websockets/subscription_manager.py
itsdeka/bitfinex-api-py
53ad572170e5a92679553703e961207930b197f8
[ "Apache-2.0" ]
null
null
null
bfxapi/websockets/subscription_manager.py
itsdeka/bitfinex-api-py
53ad572170e5a92679553703e961207930b197f8
[ "Apache-2.0" ]
null
null
null
bfxapi/websockets/subscription_manager.py
itsdeka/bitfinex-api-py
53ad572170e5a92679553703e961207930b197f8
[ "Apache-2.0" ]
null
null
null
""" Module used to house all of the functions/classes used to handle subscriptions """ import json import asyncio import time from ..utils.custom_logger import CustomLogger from ..models import Subscription MAX_CHANNEL_COUNT = 25 class SubscriptionManager: def __init__(self, bfxapi, logLevel='INFO'): s...
36.758454
90
0.619267
4207f82170f6a95359174a7be6056f2c4b7604bf
1,467
py
Python
tf3d/layers/sparse_voxel_unet_test.py
patrickvonplaten/google-research
1f26fd6b4afa5da51c6f80bb6bb571f5f68258a4
[ "Apache-2.0" ]
null
null
null
tf3d/layers/sparse_voxel_unet_test.py
patrickvonplaten/google-research
1f26fd6b4afa5da51c6f80bb6bb571f5f68258a4
[ "Apache-2.0" ]
null
null
null
tf3d/layers/sparse_voxel_unet_test.py
patrickvonplaten/google-research
1f26fd6b4afa5da51c6f80bb6bb571f5f68258a4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The Google Research Authors. # # 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 applicab...
34.928571
79
0.693252
e2072aec84a5f113e10df66fb8473c98f50d364d
4,519
py
Python
tests/test_xray/test_capture.py
crazytruth/incendiary
638422633a4ca192b16f276185cdd1dfb37fb97b
[ "MIT" ]
null
null
null
tests/test_xray/test_capture.py
crazytruth/incendiary
638422633a4ca192b16f276185cdd1dfb37fb97b
[ "MIT" ]
1
2020-10-23T10:16:11.000Z
2020-10-23T10:16:11.000Z
tests/test_xray/test_capture.py
crazytruth/incendiary
638422633a4ca192b16f276185cdd1dfb37fb97b
[ "MIT" ]
null
null
null
import asyncio import pytest from aws_xray_sdk.core import xray_recorder from incendiary.xray import Incendiary from incendiary.xray.contexts import IncendiaryAsyncContext class TestCaptureAsync: @Incendiary.capture_async() async def async_function(self): self.counter += 1 @Incendiary.capture_a...
30.126667
80
0.665634
62475002e56faf2f13fe7fa1d6bb114d4b23b4ef
478
py
Python
codewars/7kyu/doha22/max_lenght/max_lenght.py
doha22/Training_one
0cd7cf86c7da0f6175834146296b763d1841766b
[ "MIT" ]
null
null
null
codewars/7kyu/doha22/max_lenght/max_lenght.py
doha22/Training_one
0cd7cf86c7da0f6175834146296b763d1841766b
[ "MIT" ]
2
2019-01-22T10:53:42.000Z
2019-01-31T08:02:48.000Z
codewars/7kyu/doha22/max_lenght/max_lenght.py
doha22/Training_one
0cd7cf86c7da0f6175834146296b763d1841766b
[ "MIT" ]
13
2019-01-22T10:37:42.000Z
2019-01-25T13:30:43.000Z
def mxdiflg(a1, a2): if a1 and a2: res1 = max([len(x) for x in a1]) res11 = min([len(x) for x in a1]) res2 = max([len(x) for x in a2]) res22 = min([len(x) for x in a2]) return max(res1 - res22, res2 - res11) else: return -1 #print(mxdiflg(["hoqq", "bbllkw", "oox...
34.142857
77
0.537657
e7aa6bad1de755207c82a6dc44ee733a6626a91c
1,529
py
Python
scripts/step2.py
phantom-insights/mxn-performance
07fb19a93fde34e5a7fc2ed541de851233572b0e
[ "MIT" ]
5
2018-04-30T21:31:21.000Z
2021-04-13T04:42:54.000Z
scripts/step2.py
PhantomInsights/mxn-performance
07fb19a93fde34e5a7fc2ed541de851233572b0e
[ "MIT" ]
null
null
null
scripts/step2.py
PhantomInsights/mxn-performance
07fb19a93fde34e5a7fc2ed541de851233572b0e
[ "MIT" ]
null
null
null
""" This script gives us the max, min and average. The pairs list is shared from the other files. """ import pandas as pd # We declare in our list the pairs we need. # Each pair is a tuple. pairs = [ ("MXN", "ARS"), ("MXN", "AUD"), ("MXN", "BRL"), ("MXN", "CAD"), ("MXN", "CHF"), ("MXN", "CNY"...
25.065574
98
0.599084
c5a48bb17b86fe3a7f5e10a44f31cae6478519e2
3,750
py
Python
chemex/containers/profile.py
gbouvignies/chemex
b021650928b6db930281957222529bc6bcab8aa2
[ "BSD-3-Clause" ]
11
2015-03-16T16:45:42.000Z
2018-09-17T08:43:58.000Z
chemex/containers/profile.py
gbouvignies/chemex
b021650928b6db930281957222529bc6bcab8aa2
[ "BSD-3-Clause" ]
33
2015-01-12T16:46:48.000Z
2018-03-29T15:01:15.000Z
chemex/containers/profile.py
gbouvignies/chemex
b021650928b6db930281957222529bc6bcab8aa2
[ "BSD-3-Clause" ]
8
2015-01-15T21:53:16.000Z
2018-01-04T15:33:52.000Z
from __future__ import annotations from copy import deepcopy from dataclasses import dataclass from dataclasses import field from functools import cached_property from operator import attrgetter from typing import Protocol import numpy as np from cachetools import cachedmethod from cachetools import LRUCache from lmf...
31.779661
84
0.689067
a8479fe540746be94131a86302b7c29066ecf93f
13,225
py
Python
tests/test_web_urldispatcher.py
zfjagann/aiohttp
25e33c00174d48210d796e5ff5f0bdbae302c03c
[ "Apache-2.0" ]
1
2020-10-19T00:55:17.000Z
2020-10-19T00:55:17.000Z
tests/test_web_urldispatcher.py
zfjagann/aiohttp
25e33c00174d48210d796e5ff5f0bdbae302c03c
[ "Apache-2.0" ]
213
2020-10-16T10:54:43.000Z
2022-03-31T10:04:24.000Z
tests/test_web_urldispatcher.py
crusaderky/aiohttp
294048432d67c85d593ab0a0bbc14b9eee559bb7
[ "Apache-2.0" ]
null
null
null
import asyncio import pathlib from unittest import mock from unittest.mock import MagicMock import pytest from aiohttp import web from aiohttp.web_urldispatcher import SystemRoute @pytest.mark.parametrize( "show_index,status,prefix,data", [pytest.param(False, 403, '/', None, id="index_forbidden"), pyte...
30.194064
77
0.620945
73a19ff6fa59a2c505645af44d43b68d561e4991
3,046
py
Python
src/fileresults.py
mathieucaroff/metravision
f0bbd4ed1d4b7c8d7a2de4c7a77c5dbe3714bf90
[ "BSD-3-Clause" ]
2
2019-01-21T09:45:59.000Z
2019-10-22T12:00:12.000Z
src/fileresults.py
mathieucaroff/metravision
f0bbd4ed1d4b7c8d7a2de4c7a77c5dbe3714bf90
[ "BSD-3-Clause" ]
null
null
null
src/fileresults.py
mathieucaroff/metravision
f0bbd4ed1d4b7c8d7a2de4c7a77c5dbe3714bf90
[ "BSD-3-Clause" ]
null
null
null
from pathlib import Path from openpyxl import Workbook from datetime import datetime def fillPathTemplate(videoPath: Path, ext: str, pathTemplate: str, segmentIndexList): """ Generate a filename from a template. Get all informations usable in the path template and interpolate them. --- Gé...
31.081633
85
0.652988
18daff8d313bb5c616bb8b1cad0a525f56a1e61f
61,300
py
Python
nova/tests/unit/network/test_linux_net.py
arvindn05/nova
1d335b333245198dbf39841eedd221377beb58c2
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/network/test_linux_net.py
arvindn05/nova
1d335b333245198dbf39841eedd221377beb58c2
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/network/test_linux_net.py
arvindn05/nova
1d335b333245198dbf39841eedd221377beb58c2
[ "Apache-2.0" ]
null
null
null
# Copyright 2011 NTT # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
42.71777
79
0.562855
bd67fba3d6e46e2a09f62392417437f7807e3ed8
4,950
py
Python
openpype/modules/ftrack/ftrack_server/ftrack_server.py
dangerstudios/OpenPype
10ddcc4699137888616eec57cd7fac9648189714
[ "MIT" ]
44
2019-03-19T04:56:35.000Z
2021-04-23T12:05:08.000Z
openpype/modules/ftrack/ftrack_server/ftrack_server.py
dangerstudios/OpenPype
10ddcc4699137888616eec57cd7fac9648189714
[ "MIT" ]
655
2020-03-17T15:10:21.000Z
2021-04-23T18:22:52.000Z
openpype/modules/ftrack/ftrack_server/ftrack_server.py
dangerstudios/OpenPype
10ddcc4699137888616eec57cd7fac9648189714
[ "MIT" ]
21
2019-03-19T04:56:38.000Z
2021-04-23T09:10:59.000Z
import os import time import types import logging import traceback import ftrack_api from openpype.lib import ( PypeLogger, modules_from_path ) log = PypeLogger.get_logger(__name__) """ # Required - Needed for connection to Ftrack FTRACK_SERVER # Ftrack server e.g. "https://myFtrack.ftrackapp.com" FTRACK_AP...
32.142857
77
0.55798
586131aadfd7e82a2b76b5ba982d713e90c66886
959
py
Python
tests/test_estimation.py
ikanago/statistics.py
3bbe3fcdd4169a56547227d5e31a61de1be68446
[ "MIT" ]
null
null
null
tests/test_estimation.py
ikanago/statistics.py
3bbe3fcdd4169a56547227d5e31a61de1be68446
[ "MIT" ]
null
null
null
tests/test_estimation.py
ikanago/statistics.py
3bbe3fcdd4169a56547227d5e31a61de1be68446
[ "MIT" ]
null
null
null
from unittest import TestCase import describe import estimation class TestEstimation(TestCase): def test_estimation(self): data = [100, 70, 30, 60, 50] length, mean, variance, _ = describe.describe(data) pop_variance = 625 confidence = 0.95 bottom, top = estimation.interv...
34.25
77
0.678832
a3a21bba6e3c23f7fefdc1b502b5437d4bcc085f
3,287
py
Python
bueno/core/service.py
Lcjacobpd/bueno
cd1ffa7b7955e04234a1292adf2d155c52d1756c
[ "BSD-3-Clause" ]
2
2021-04-22T22:38:38.000Z
2021-09-14T17:37:04.000Z
bueno/core/service.py
Lcjacobpd/bueno
cd1ffa7b7955e04234a1292adf2d155c52d1756c
[ "BSD-3-Clause" ]
null
null
null
bueno/core/service.py
Lcjacobpd/bueno
cd1ffa7b7955e04234a1292adf2d155c52d1756c
[ "BSD-3-Clause" ]
null
null
null
# # Copyright (c) 2019 Triad National Security, LLC # All rights reserved. # # This file is part of the bueno project. See the LICENSE file at the # top-level directory of this distribution for more information. # ''' Core service infrastructure used by all bueno services. ''' from abc im...
28.336207
78
0.59355
e1f2ca7d69ba648ca5abe450bdbfc953c34cdb9a
8,539
py
Python
part_segmentation/plot_results.py
anonymous2submit/Pointsformer
0eaa141b3d79d45cd925976bde6097b51e0d3819
[ "MIT" ]
null
null
null
part_segmentation/plot_results.py
anonymous2submit/Pointsformer
0eaa141b3d79d45cd925976bde6097b51e0d3819
[ "MIT" ]
null
null
null
part_segmentation/plot_results.py
anonymous2submit/Pointsformer
0eaa141b3d79d45cd925976bde6097b51e0d3819
[ "MIT" ]
null
null
null
""" Plot the relationship (mean of heads) for global Transformer. Plot the relationship of local-transformer and global-transformer. python3 plot_relation2.py --id 26 --point_id 10 --stage 0 --save """ import argparse from matplotlib import pyplot from mpl_toolkits.mplot3d import Axes3D import random import os import n...
36.33617
103
0.674435
45a27177a9ff73e2585fe4ef562a0ffc48707f2d
859
py
Python
grafo/exemplo-01.py
wodsonluiz/algoritmos
f8fadfea783b2eb7f86e28bdfe609ca321b6725e
[ "MIT" ]
null
null
null
grafo/exemplo-01.py
wodsonluiz/algoritmos
f8fadfea783b2eb7f86e28bdfe609ca321b6725e
[ "MIT" ]
null
null
null
grafo/exemplo-01.py
wodsonluiz/algoritmos
f8fadfea783b2eb7f86e28bdfe609ca321b6725e
[ "MIT" ]
null
null
null
from collections import deque grafo = {} grafo["voce"] = ["alice", "bob", "claire"] grafo["bob"] = ["anuj", "peggy"] grafo["alice"] = ["peggy"] grafo["claire"] = ["thom", "jony", "mike"] grafo["anuj"] = [] grafo["peggy"] = [] grafo["thom"] = [] grafo["jony"] = [] fila_de_pesquisa = deque() fila_de_pesquisa += grafo["...
25.264706
49
0.589057
24d6e4cdd955fbfa1bc3bd9817b21f46c8b22e18
1,387
py
Python
numba_dppy/tests/kernel_tests/test_private_memory.py
akharche/numba-dppy
f12dac64b149bd72f305f341ff64b796bbb648c1
[ "Apache-2.0" ]
22
2020-11-25T12:13:33.000Z
2022-03-10T14:26:14.000Z
numba_dppy/tests/kernel_tests/test_private_memory.py
akharche/numba-dppy
f12dac64b149bd72f305f341ff64b796bbb648c1
[ "Apache-2.0" ]
439
2020-11-17T14:48:38.000Z
2022-03-31T10:09:47.000Z
numba_dppy/tests/kernel_tests/test_private_memory.py
akharche/numba-dppy
f12dac64b149bd72f305f341ff64b796bbb648c1
[ "Apache-2.0" ]
11
2020-11-24T14:29:46.000Z
2022-03-10T05:50:27.000Z
# Copyright 2021 Intel Corporation # # 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 wr...
31.522727
77
0.733237
9e8a8e53f1734c2d67c918596b4e1ef7e0a1ad04
13,561
py
Python
ptf/lib/trex_utils.py
EmanueleGallone/upf-epc
eefa9324d062d582cb4aa7cbfb49fc0302f4197f
[ "Apache-2.0", "BSD-3-Clause" ]
10
2022-02-26T19:37:18.000Z
2022-03-12T02:43:50.000Z
ptf/lib/trex_utils.py
EmanueleGallone/upf-epc
eefa9324d062d582cb4aa7cbfb49fc0302f4197f
[ "Apache-2.0", "BSD-3-Clause" ]
63
2022-02-24T23:43:02.000Z
2022-03-31T18:19:27.000Z
ptf/lib/trex_utils.py
EmanueleGallone/upf-epc
eefa9324d062d582cb4aa7cbfb49fc0302f4197f
[ "Apache-2.0", "BSD-3-Clause" ]
5
2022-03-01T21:31:23.000Z
2022-03-30T20:53:04.000Z
# SPDX-FileCopyrightText: Copyright 2020-present Open Networking Foundation. # SPDX-License-Identifier: Apache-2.0 import argparse import collections import logging import time import numpy as np from trex.stl.api import STLClient # Multiplier for data rates K = 1000 M = 1000 * K G = 1000 * M """ Library of useful f...
30.820455
95
0.588378
8655e76ee5dc19ae62751e93cab2a4737509107c
5,067
py
Python
src/python/cord19q/etl/vocab.py
Deamoner/cord19q
a5104881c3775823740e94026d0fe05b213b307f
[ "MIT" ]
null
null
null
src/python/cord19q/etl/vocab.py
Deamoner/cord19q
a5104881c3775823740e94026d0fe05b213b307f
[ "MIT" ]
null
null
null
src/python/cord19q/etl/vocab.py
Deamoner/cord19q
a5104881c3775823740e94026d0fe05b213b307f
[ "MIT" ]
null
null
null
""" Vocabulary module Credit to https://www.kaggle.com/savannareid for providing keywords and analysis. """ class Vocab(object): """ Defines vocabulary terms for studies. """ # Study titles TITLE = [r"case (?:series|study)", r"cross[\-\s]?sectional", r"mathematical model(?:ing)?", "meta-analysis"...
90.482143
150
0.628972
20b5087d01b17c607ca1b69a479d723497946c19
1,642
py
Python
setup.py
MediaMath/lambda-cron
2545e9fdeced7ebeaba2f98d02891cc6db7546e2
[ "Apache-2.0" ]
22
2017-10-27T11:37:58.000Z
2021-11-09T09:35:37.000Z
setup.py
MediaMath/lambda-cron
2545e9fdeced7ebeaba2f98d02891cc6db7546e2
[ "Apache-2.0" ]
1
2018-03-21T18:31:01.000Z
2018-03-21T18:31:01.000Z
setup.py
MediaMath/lambda-cron
2545e9fdeced7ebeaba2f98d02891cc6db7546e2
[ "Apache-2.0" ]
3
2017-10-27T16:49:42.000Z
2018-11-03T04:14:10.000Z
#!/usr/bin/env python import lambda_cron try: from setuptools import setup except ImportError: from distutils.core import setup version = lambda_cron.__version__ setup( name='lambda-cron', version=version, author='MediaMath', author_email='jbravo@mediamath.com', description='Serverless cr...
32.196078
109
0.622412
8eaa1130e81127be1bb14b99e1884f271ee280db
128
py
Python
broker/cherrypy/__init__.py
OptimalBPM/optimalbpm
4c65cd43a36e3318a49de7cd598069ea0623dc69
[ "RSA-MD" ]
2
2016-05-02T14:16:07.000Z
2020-06-25T19:24:29.000Z
broker/cherrypy/__init__.py
OptimalBPM/optimalbpm
4c65cd43a36e3318a49de7cd598069ea0623dc69
[ "RSA-MD" ]
null
null
null
broker/cherrypy/__init__.py
OptimalBPM/optimalbpm
4c65cd43a36e3318a49de7cd598069ea0623dc69
[ "RSA-MD" ]
1
2020-06-25T19:24:31.000Z
2020-06-25T19:24:31.000Z
""" The cherrypy package contains helper classes that adds the Optimal BPM functionality to the broker """ __author__ = 'nibo'
21.333333
98
0.765625
d5986c59a796ddc3d2b6f84192d20028d3caf545
446
py
Python
load_image.py
piofthings/opencv-practice
40db5c288b713ffe9ad47f64d7247bfdef9c0462
[ "MIT" ]
null
null
null
load_image.py
piofthings/opencv-practice
40db5c288b713ffe9ad47f64d7247bfdef9c0462
[ "MIT" ]
null
null
null
load_image.py
piofthings/opencv-practice
40db5c288b713ffe9ad47f64d7247bfdef9c0462
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 #import cv2 #import numpy as np #from matplotlib import pyplot as pltimport #img = cv2.imread('/home/pi/Pictures/hack-horsham.jpg',cv2.IMREAD_GRAYSCALE) #cv2.imwrite('/home/pi/Pictures/hack-horsham2.jpg', img) import cv2 import numpy as np from matplotlib import pyplot as plt img = cv2.imr...
26.235294
76
0.762332
653476258245d899afd69ece6d394547a594c271
1,955
py
Python
checkpoint_ngfw/unit_test/test_set_threat_protection.py
killstrelok/insightconnect-plugins
911358925f4233ab273dbd8172e8b7b9188ebc01
[ "MIT" ]
null
null
null
checkpoint_ngfw/unit_test/test_set_threat_protection.py
killstrelok/insightconnect-plugins
911358925f4233ab273dbd8172e8b7b9188ebc01
[ "MIT" ]
1
2021-02-23T23:57:37.000Z
2021-02-23T23:57:37.000Z
checkpoint_ngfw/unit_test/test_set_threat_protection.py
killstrelok/insightconnect-plugins
911358925f4233ab273dbd8172e8b7b9188ebc01
[ "MIT" ]
null
null
null
import sys import os sys.path.append(os.path.abspath('../')) from unittest import TestCase from icon_checkpoint_ngfw.connection.connection import Connection from icon_checkpoint_ngfw.actions.set_threat_protection import SetThreatProtection import json import logging class TestSetThreatProtection(TestCase): def t...
35.545455
116
0.673146
298760817506cfbea87d5892696b0fbecb75f20c
665
py
Python
manage.py
welz-atm/cash2cropAssessment
65b30b8ef815df3dde2705a090ba0ae89324d60b
[ "MIT" ]
null
null
null
manage.py
welz-atm/cash2cropAssessment
65b30b8ef815df3dde2705a090ba0ae89324d60b
[ "MIT" ]
null
null
null
manage.py
welz-atm/cash2cropAssessment
65b30b8ef815df3dde2705a090ba0ae89324d60b
[ "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', 'crop2cash.settings') try: from django.core.management import execute_from_command_line except Im...
28.913043
73
0.679699
b0f1258b395ca637fa2c02427ef12ceda4e1e509
2,755
py
Python
git_trophy_lambda/app.py
jackrwoods/git-trophy
d0e8222c84b142673840c50dd43cea45bf08a0c3
[ "MIT" ]
71
2017-08-15T12:52:28.000Z
2021-09-17T13:41:32.000Z
git_trophy_lambda/app.py
jackrwoods/git-trophy
d0e8222c84b142673840c50dd43cea45bf08a0c3
[ "MIT" ]
7
2018-10-28T04:38:12.000Z
2022-01-27T16:03:05.000Z
git_trophy_lambda/app.py
jackrwoods/git-trophy
d0e8222c84b142673840c50dd43cea45bf08a0c3
[ "MIT" ]
8
2018-08-12T03:58:34.000Z
2020-06-23T14:46:24.000Z
from flask import Flask, request, jsonify, abort from github_contributions import GithubUser from user_client import get_github_user_years from flask_cors import CORS from repo.repo_service import get_repo_commit_stats, get_repo_years app = Flask(__name__) CORS(app) # @processify # def do_render(username, year): # ...
26.490385
77
0.635209
c68f7d1149b9aa58d3d519a22e7cb42928acbac6
433
py
Python
src/ocr/imgtotext.py
saxenabhishek/nobook.learn
97906abf8cf60d80017a5e9cec10b61220fe6c29
[ "Apache-2.0" ]
10
2021-03-19T15:57:20.000Z
2021-05-06T08:08:27.000Z
src/ocr/imgtotext.py
waterupto/nobook.learn
69a7aef3c33ea7079fb6ccba52f9947f345614a0
[ "Apache-2.0" ]
null
null
null
src/ocr/imgtotext.py
waterupto/nobook.learn
69a7aef3c33ea7079fb6ccba52f9947f345614a0
[ "Apache-2.0" ]
5
2021-03-19T15:06:33.000Z
2021-06-06T08:39:32.000Z
from PIL import Image import pytesseract import re def getText(path): return pytesseract.image_to_string(Image.open(path)) def paragraph(text): para = list(filter(lambda x: x != "" and len(re.sub(r" ", "", x)) != 0, text.split("\n\n"))) return para if __name__ == "__main__": print( paragra...
21.65
120
0.662818
8c127b1607c0440f7572d1657fd807ff0b1f5de5
3,643
py
Python
gather_training_data.py
AndrewJWashington/protodriver
b3a3fcbbec55eb8c6b8dafd0a4feae1bcecd2bec
[ "MIT" ]
null
null
null
gather_training_data.py
AndrewJWashington/protodriver
b3a3fcbbec55eb8c6b8dafd0a4feae1bcecd2bec
[ "MIT" ]
11
2020-11-13T17:47:03.000Z
2022-02-10T01:41:55.000Z
gather_training_data.py
AndrewJWashington/protodriver
b3a3fcbbec55eb8c6b8dafd0a4feae1bcecd2bec
[ "MIT" ]
null
null
null
import numpy as np from PIL import ImageGrab import cv2 import time import pyautogui import pydirectinput import keyboard from protodriver import utils #config COUNT_DOWN = True MAX_FRAMES = 1000 # none for infinite runtime, roughly 10 fps for training and 1.5 fps for running MAX_SESSIONS = 20 # needs to match value ...
32.526786
108
0.61927
d6ddd392f88abb9a5db239c5a6ffe6a8069efbe0
10,388
py
Python
google/ads/google_ads/v5/services/gender_view_service_client.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
1
2021-04-09T04:28:47.000Z
2021-04-09T04:28:47.000Z
google/ads/google_ads/v5/services/gender_view_service_client.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v5/services/gender_view_service_client.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # 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...
43.464435
113
0.651136
0eb7242954e793433fb07429cf7bf6245c9b85c8
803
py
Python
netmiko/quanta/quanta_mesh_ssh.py
vinpk/netmiko
4f76614a0b2a98b868040c42c0499376bdc256e9
[ "MIT" ]
2
2019-07-23T02:27:19.000Z
2019-07-23T02:27:25.000Z
netmiko/quanta/quanta_mesh_ssh.py
vinpk/netmiko
4f76614a0b2a98b868040c42c0499376bdc256e9
[ "MIT" ]
null
null
null
netmiko/quanta/quanta_mesh_ssh.py
vinpk/netmiko
4f76614a0b2a98b868040c42c0499376bdc256e9
[ "MIT" ]
1
2019-10-16T19:02:32.000Z
2019-10-16T19:02:32.000Z
from __future__ import unicode_literals from netmiko.cisco_base_connection import CiscoSSHConnection class QuantaMeshSSH(CiscoSSHConnection): def disable_paging(self, command="no pager", delay_factor=1): """Disable paging""" return super(QuantaMeshSSH, self).disable_paging(command=command) de...
33.458333
84
0.692403
dafad9389dc06b1aef0eb4768514d52d75e8fce9
1,462
py
Python
Schaltungen Masterarbeit/SingleTransAmplifier/O_SingleTransAmp_DHS.py
tmaiwald/OSIM
11127aaee61d93bb6f26ca5147a300af05db14ec
[ "BSD-2-Clause" ]
null
null
null
Schaltungen Masterarbeit/SingleTransAmplifier/O_SingleTransAmp_DHS.py
tmaiwald/OSIM
11127aaee61d93bb6f26ca5147a300af05db14ec
[ "BSD-2-Clause" ]
null
null
null
Schaltungen Masterarbeit/SingleTransAmplifier/O_SingleTransAmp_DHS.py
tmaiwald/OSIM
11127aaee61d93bb6f26ca5147a300af05db14ec
[ "BSD-2-Clause" ]
null
null
null
from OSIM.Optimizations import OptimizationAPI as o import numpy as np class CostFunction(o.AbstractCostFunction): def getCost(self, ce , resultToFill): ca = o.CircuitAnalyser(ce) converged = ca.calcDCOperatingPoint() '''hard constraints''' if(not converged): cost = ...
25.206897
90
0.658687
8f2adc71ce420e630ecff043b645cbe747bef32e
1,709
py
Python
misc/numerical.py
cyclone923/pyplanners
e2fe156ff00d0914cfb4f20afed158706f4d5d28
[ "MIT" ]
null
null
null
misc/numerical.py
cyclone923/pyplanners
e2fe156ff00d0914cfb4f20afed158706f4d5d28
[ "MIT" ]
null
null
null
misc/numerical.py
cyclone923/pyplanners
e2fe156ff00d0914cfb4f20afed158706f4d5d28
[ "MIT" ]
null
null
null
from math import ceil, pi, cos, sin, atan2, sqrt, exp from random import random, randint, gauss, uniform from time import time, sleep from bisect import bisect from collections import defaultdict #py_any, py_all = any, all #from numpy import * #np_any, np_all = any, all #any, all = py_any, py_all import numpy as np imp...
28.966102
98
0.707431
14579391922725bfd1ecddb87505c14ffbb18750
954
py
Python
AcademicDealerBackend/seminar/models.py
Acciente717/AcademicDealerBackend
8024725f88997fa430fa92e1caa28161ffbb06f6
[ "MIT" ]
5
2019-03-10T06:57:15.000Z
2019-03-17T03:04:40.000Z
AcademicDealerBackend/seminar/models.py
Acciente717/AcademicDealerBackend
8024725f88997fa430fa92e1caa28161ffbb06f6
[ "MIT" ]
11
2019-05-14T15:13:48.000Z
2019-05-31T15:31:33.000Z
AcademicDealerBackend/seminar/models.py
Acciente717/AcademicDealerBackend
8024725f88997fa430fa92e1caa28161ffbb06f6
[ "MIT" ]
null
null
null
from django.db import models from users.models import UserAccount, LoginFail class SeminarInfo(models.Model): name = models.CharField(max_length=255) owner = models.ForeignKey(UserAccount, on_delete=models.CASCADE) start_date = models.DateTimeField() end_date = models.DateTimeField() create_date = ...
39.75
70
0.77044
e5f9246902cca17aea9fa99b33ddba10129c065c
1,092
py
Python
website/tracker/urls.py
micolous/streaming-system
1757c7ac5f22630835051270b1146cee9a27654f
[ "Apache-2.0" ]
86
2015-01-07T12:12:31.000Z
2021-11-14T14:19:18.000Z
website/tracker/urls.py
micolous/streaming-system
1757c7ac5f22630835051270b1146cee9a27654f
[ "Apache-2.0" ]
44
2015-01-08T04:37:00.000Z
2018-10-30T12:50:22.000Z
website/tracker/urls.py
micolous/streaming-system
1757c7ac5f22630835051270b1146cee9a27654f
[ "Apache-2.0" ]
34
2015-01-11T12:14:23.000Z
2020-07-18T11:45:14.000Z
#!/usr/bin/python # # -*- coding: utf-8 -*- # vim: set ts=4 sw=4 et sts=4 ai: from django.conf.urls import patterns, include, url from tracker import views urlpatterns = patterns('', # Endpoints which the frontend uses to find streaming servers we are # tracking. url(r'^streams.js$', views.streams), ...
32.117647
79
0.688645
4d4c8b7e137522022dc93012692e47b04b8aee73
7,380
py
Python
GeoHealthCheck/views.py
om-henners/GeoHealthCheck
3eb08beb4e94dad71abe1d24e84a2cbcf2e0bcc7
[ "MIT" ]
58
2015-01-16T22:30:03.000Z
2022-03-17T11:43:34.000Z
GeoHealthCheck/views.py
om-henners/GeoHealthCheck
3eb08beb4e94dad71abe1d24e84a2cbcf2e0bcc7
[ "MIT" ]
335
2015-01-21T20:37:13.000Z
2022-03-28T15:09:37.000Z
GeoHealthCheck/views.py
om-henners/GeoHealthCheck
3eb08beb4e94dad71abe1d24e84a2cbcf2e0bcc7
[ "MIT" ]
67
2015-01-20T14:10:19.000Z
2022-03-22T11:57:18.000Z
# ================================================================= # # Authors: Tom Kralidis <tomkralidis@gmail.com> # # Copyright (c) 2014 Tom Kralidis # # 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 ...
30.495868
77
0.620732
bcd7250ee3f475d723245c22371ba2c8bf601c44
191
py
Python
mw.py
WolfgangFahl/Piwo
01313bcf35fa9f970729dd7f0cca038e4a03426d
[ "MIT" ]
2
2018-01-04T16:31:48.000Z
2020-05-18T15:10:21.000Z
mw.py
WolfgangFahl/Piwo
01313bcf35fa9f970729dd7f0cca038e4a03426d
[ "MIT" ]
10
2020-10-16T16:21:06.000Z
2020-11-10T15:17:16.000Z
mw.py
WolfgangFahl/Piwo
01313bcf35fa9f970729dd7f0cca038e4a03426d
[ "MIT" ]
4
2018-03-27T23:08:39.000Z
2020-11-10T13:48:54.000Z
from sys import argv from os import environ as env from html import escape as hsc MW_ROOT = env.get('MW_ROOT', None) GRAM_NAME = env.get('MW_GRAM_NAME', None) argv[0] = '#piwo:' + GRAM_NAME
23.875
41
0.727749
a5292918a6501c58bff8bfa8a5744e38432e575a
3,426
py
Python
visualiser/parser.py
cdustman/oci-designer-toolkit
60d5d5d6d351591e406f4b8ce3e7640b05eb6f4c
[ "UPL-1.0", "Apache-2.0" ]
null
null
null
visualiser/parser.py
cdustman/oci-designer-toolkit
60d5d5d6d351591e406f4b8ce3e7640b05eb6f4c
[ "UPL-1.0", "Apache-2.0" ]
null
null
null
visualiser/parser.py
cdustman/oci-designer-toolkit
60d5d5d6d351591e406f4b8ce3e7640b05eb6f4c
[ "UPL-1.0", "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2020, Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. """Provide Module Description """ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# __author__ = ["And...
30.864865
132
0.617046
70e7f4c2877cfb49aa8947ce2701a83ec76c9748
5,647
py
Python
avscript/mkavscript_md.py
kenlowrie/avscript
7e3550adc46a01785ea89cdcd9ddaa5ac35bdbdd
[ "Apache-2.0" ]
1
2021-09-30T19:29:30.000Z
2021-09-30T19:29:30.000Z
avscript/mkavscript_md.py
kenlowrie/avscript
7e3550adc46a01785ea89cdcd9ddaa5ac35bdbdd
[ "Apache-2.0" ]
7
2018-07-16T22:52:55.000Z
2020-05-20T23:48:36.000Z
avscript/mkavscript_md.py
kenlowrie/avscript
7e3550adc46a01785ea89cdcd9ddaa5ac35bdbdd
[ "Apache-2.0" ]
1
2018-05-24T22:58:44.000Z
2018-05-24T22:58:44.000Z
#!/usr/bin/env python3 """ This module creates an HTML document suitable for printing. It uses avscript_md.py, which reads an AV script written in a specialized Markdown-syntax, and outputs HTML format. Since avscript_md is designed to be used by intermediate processors, it doesn't output the HTML header and footer t...
27.149038
184
0.669736
69bd08de9868ae18b7a53d33b10cd04e9808b31e
414
py
Python
vote/migrations/0013_votingpoll_rep_counter.py
jnegrete2005/JuradoFMS
25848037e51de1781c419155615d0fb41edc07ec
[ "MIT" ]
2
2021-02-24T21:57:50.000Z
2021-03-15T08:44:09.000Z
vote/migrations/0013_votingpoll_rep_counter.py
jnegrete2005/JuradoFMS
25848037e51de1781c419155615d0fb41edc07ec
[ "MIT" ]
null
null
null
vote/migrations/0013_votingpoll_rep_counter.py
jnegrete2005/JuradoFMS
25848037e51de1781c419155615d0fb41edc07ec
[ "MIT" ]
null
null
null
# Generated by Django 3.1.5 on 2021-04-24 22:51 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('vote', '0012_auto_20210416_1738'), ] operations = [ migrations.AddField( model_name='votingpoll', name='rep_counter'...
21.789474
74
0.618357
b6c53f2d5e4f78bfc9bfaf7b9c2bb35c3efd4931
2,840
py
Python
archimatetools/export.py
pieterderycke/archimate-tools
d7b1bc5b639f794366cc46e8ba3a6727f4d8c93d
[ "MIT" ]
null
null
null
archimatetools/export.py
pieterderycke/archimate-tools
d7b1bc5b639f794366cc46e8ba3a6727f4d8c93d
[ "MIT" ]
null
null
null
archimatetools/export.py
pieterderycke/archimate-tools
d7b1bc5b639f794366cc46e8ba3a6727f4d8c93d
[ "MIT" ]
null
null
null
import os from argparse import ArgumentParser import xlsxwriter from rdflib import Graph, Literal, BNode, RDF, URIRef, Namespace from rdflib.namespace import DC, FOAF from archimatetools.archimate import ArchimateModel parser = ArgumentParser(description="archimate export is a tool that allows to export files in the...
38.378378
172
0.694366
844b0ddf33b479910261f6b853cb47d6855a75c1
3,125
py
Python
venv/Lib/site-packages/jupyter_client/tests/utils.py
mirosa25/ITI-202-Final-Project
b46e7ffccf43a52ee0e72b889c5aac6887228dc2
[ "MIT" ]
76
2020-07-06T14:44:05.000Z
2022-02-14T15:30:21.000Z
venv/Lib/site-packages/jupyter_client/tests/utils.py
mirosa25/ITI-202-Final-Project
b46e7ffccf43a52ee0e72b889c5aac6887228dc2
[ "MIT" ]
11
2020-08-09T02:30:14.000Z
2022-03-12T00:50:14.000Z
venv/Lib/site-packages/jupyter_client/tests/utils.py
mirosa25/ITI-202-Final-Project
b46e7ffccf43a52ee0e72b889c5aac6887228dc2
[ "MIT" ]
11
2020-07-12T16:18:07.000Z
2022-02-05T16:48:35.000Z
"""Testing utils for jupyter_client tests """ import os pjoin = os.path.join import sys from unittest.mock import patch import pytest from jupyter_client import AsyncKernelManager from ipython_genutils.tempdir import TemporaryDirectory skip_win32 = pytest.mark.skipif(sys.platform.startswith('win'), reason="Windows"...
34.722222
101
0.69504
17074873013d858abaf98fa0f55974a90bd9b629
4,176
py
Python
edhoc/messages/message1.py
geonnave/py-edhoc
c656fba49e939bbf86372844125790fa2d5fcb9f
[ "BSD-3-Clause" ]
2
2022-01-20T11:35:39.000Z
2022-03-11T15:49:36.000Z
edhoc/messages/message1.py
TimothyClaeys/EDHOC-PYTHON
cd7a66ab407b4c4302e9937f5569b9de73d734b7
[ "BSD-3-Clause" ]
18
2021-03-02T15:10:11.000Z
2022-02-10T11:46:25.000Z
edhoc/messages/message1.py
TimothyClaeys/EDHOC-PYTHON
cd7a66ab407b4c4302e9937f5569b9de73d734b7
[ "BSD-3-Clause" ]
3
2021-02-05T11:52:17.000Z
2021-12-08T20:49:49.000Z
from binascii import hexlify from typing import List, TYPE_CHECKING, Optional, Type import cbor2 from edhoc.exceptions import EdhocInvalidMessage from edhoc.messages.base import EdhocMessage from edhoc.definitions import CipherSuite, Correlation if TYPE_CHECKING: from edhoc.definitions import CS class MessageO...
32.88189
116
0.614703
4e414908c7f9e18420c888efc839841ec6239684
387
py
Python
yeahyeah/context.py
sjoerdk/yeahyeah
75a6b07337c86cd23cdd1e5953f783a1eeb53c31
[ "MIT" ]
null
null
null
yeahyeah/context.py
sjoerdk/yeahyeah
75a6b07337c86cd23cdd1e5953f783a1eeb53c31
[ "MIT" ]
246
2019-03-28T09:28:41.000Z
2022-03-31T23:56:01.000Z
yeahyeah/context.py
sjoerdk/yeahyeah
75a6b07337c86cd23cdd1e5953f783a1eeb53c31
[ "MIT" ]
1
2021-11-09T01:21:33.000Z
2021-11-09T01:21:33.000Z
class YeahYeahContext: """Core yeahyeah context object. This gets passed to all yeahyeah_plugins on init() and to any method call """ def __init__(self, settings_path): """ Parameters ---------- settings_path: Pathlike Path to the folder where any context ca...
25.8
80
0.604651
27c4098597d004b35c0ee078cd60c5d9565576b0
7,794
py
Python
Tree.py
aaivu/aaivu-information-extraction-from-receipts
a9fba8f0ffb7287589268653d963d48e5a82528c
[ "Apache-2.0" ]
null
null
null
Tree.py
aaivu/aaivu-information-extraction-from-receipts
a9fba8f0ffb7287589268653d963d48e5a82528c
[ "Apache-2.0" ]
null
null
null
Tree.py
aaivu/aaivu-information-extraction-from-receipts
a9fba8f0ffb7287589268653d963d48e5a82528c
[ "Apache-2.0" ]
null
null
null
import os import numpy as np from nltk import word_tokenize, pos_tag import nltk import csv import string import collections as ct import pandas as pd from sklearn import tree import random from sklearn.model_selection import cross_val_predict, RandomizedSearchCV from sklearn_crfsuite.metrics import flat_classification...
28.445255
121
0.640621
6769b982d09fada97e78c68946d3ad3a68db65a3
468
py
Python
teapot/response.py
admiralobvious/teapot
870b334f88f922d08b51629c8ccb6f459f546a8f
[ "MIT" ]
null
null
null
teapot/response.py
admiralobvious/teapot
870b334f88f922d08b51629c8ccb6f459f546a8f
[ "MIT" ]
null
null
null
teapot/response.py
admiralobvious/teapot
870b334f88f922d08b51629c8ccb6f459f546a8f
[ "MIT" ]
null
null
null
import urllib3 from . import json from .exceptions import HTTPResponseError class HTTPResponse(urllib3.HTTPResponse): def __init__(self, response): for k, v in response.__dict__.items(): self.__dict__[k] = v def json(self, ): return json.loads(self.data.decode("utf-8")) def ...
23.4
61
0.662393
9ff13ad4c8122c2b52560f3137b6b4897e1042ea
6,895
py
Python
src/myastro/gauss_lagrange_eq.py
benitocm/practical-astronomy
4bfea9d5b2bb49997f35e8c7b1ada2708ee6c978
[ "Apache-2.0" ]
null
null
null
src/myastro/gauss_lagrange_eq.py
benitocm/practical-astronomy
4bfea9d5b2bb49997f35e8c7b1ada2708ee6c978
[ "Apache-2.0" ]
null
null
null
src/myastro/gauss_lagrange_eq.py
benitocm/practical-astronomy
4bfea9d5b2bb49997f35e8c7b1ada2708ee6c978
[ "Apache-2.0" ]
null
null
null
""" This module contains functions related to orbit calculations """ # Standard library imports from typing import Any,Dict,List,Tuple,Sequence #https://mypy.readthedocs.io/en/stable/cheat_sheet_py3.html from functools import partial from math import isclose import sys # Third party imports import pandas as pd import...
30.10917
111
0.573604
4f9b3fde4afe91a400da9868ff6639f56820a692
910
py
Python
.ipynb_checkpoints/testfile-checkpoint.py
RaineShen/data533Lab4
b290dc885c7b3e305495487cc5dae40d34e6a1e4
[ "MIT" ]
null
null
null
.ipynb_checkpoints/testfile-checkpoint.py
RaineShen/data533Lab4
b290dc885c7b3e305495487cc5dae40d34e6a1e4
[ "MIT" ]
null
null
null
.ipynb_checkpoints/testfile-checkpoint.py
RaineShen/data533Lab4
b290dc885c7b3e305495487cc5dae40d34e6a1e4
[ "MIT" ]
null
null
null
from Fittness.calories_burn import monitoring from Fittness.calories_burn import records name = input("Please Enter name: ") gender = input("Please Enter your gender (female or male): ") age= int(input("Please Enter your age (integer): ")) height= int(input("Please Enter your height in cm: " )) weight= int(input("...
23.333333
81
0.759341
8f324b7104a50ae18f0e92c9ccd721fac7c49fc6
2,194
py
Python
fstringlt36/regexs.py
mendelsshop/f-string_lt_36
a210bc145aa75d12a7ede9e8d52a78e07c2f6545
[ "MIT" ]
3
2022-01-12T17:53:38.000Z
2022-01-14T05:04:12.000Z
fstringlt36/regexs.py
mendelsshop/fstring_lt_37
a210bc145aa75d12a7ede9e8d52a78e07c2f6545
[ "MIT" ]
1
2022-01-14T05:20:23.000Z
2022-01-14T05:20:23.000Z
fstringlt36/regexs.py
mendelsshop/fstring_lt_37
a210bc145aa75d12a7ede9e8d52a78e07c2f6545
[ "MIT" ]
1
2022-01-14T05:15:33.000Z
2022-01-14T05:15:33.000Z
#!/usr/bin/env python3 import re regex0 = re.compile(r'\{+.+?\}+', re.MULTILINE | re.UNICODE) regex1 = lambda x: re.compile( r'(?<!\'|\"|\()' + x + r'(?!\'|\"|\))(?# regex for a character defined from the lambda not in quotes or parentheses)', re.MULTILINE | re.UNICODE, ) # it turns out that regex0 is ...
70.774194
255
0.653601
ff5965dbe95901ccad369b044e60fb4c734a91b6
17,418
py
Python
gmprocess/waveform_processing/windows.py
ftbernales/groundmotion-processing
5be88da75e7168bd2421973d6f1e54a91c679dc8
[ "Unlicense" ]
null
null
null
gmprocess/waveform_processing/windows.py
ftbernales/groundmotion-processing
5be88da75e7168bd2421973d6f1e54a91c679dc8
[ "Unlicense" ]
null
null
null
gmprocess/waveform_processing/windows.py
ftbernales/groundmotion-processing
5be88da75e7168bd2421973d6f1e54a91c679dc8
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Helper functions for windowing singal and noise in a trace. """ import logging import numpy as np import pandas as pd from openquake.hazardlib.gsim.base import SitesContext from openquake.hazardlib.gsim.base import RuptureContext from openquake.hazardlib.gsim.base im...
37.458065
99
0.614939
729fa3e77e091eed6bd6f9b995a2d536f279e785
7,627
py
Python
p2_continuous-control/DDPG/agents/ddpg_agent_version_4.py
Brandon-HY-Lin/deep-reinforcement-learning
d809851b6f98d1089379392d4687e2acaf1c0c79
[ "MIT" ]
null
null
null
p2_continuous-control/DDPG/agents/ddpg_agent_version_4.py
Brandon-HY-Lin/deep-reinforcement-learning
d809851b6f98d1089379392d4687e2acaf1c0c79
[ "MIT" ]
null
null
null
p2_continuous-control/DDPG/agents/ddpg_agent_version_4.py
Brandon-HY-Lin/deep-reinforcement-learning
d809851b6f98d1089379392d4687e2acaf1c0c79
[ "MIT" ]
1
2019-12-11T06:21:57.000Z
2019-12-11T06:21:57.000Z
import random import torch import torch.nn.functional as F import torch.optim as optim import numpy as np from networks.ddpg_actor import DDPGActor from networks.ddpg_critic import DDPGCritic from agents.base_agent import BaseAgent # from agents.ounoise import OUNoise from agents.ounoise_multivariate import OUNoiseMu...
40.142105
131
0.623443
3e43bc97d134a757b36404bb1118d988bbcf19dc
74,960
py
Python
chalice/app.py
datty/chalice
ed204224e12dd9d483e9cf2f2d7fdc78898f5399
[ "Apache-2.0" ]
null
null
null
chalice/app.py
datty/chalice
ed204224e12dd9d483e9cf2f2d7fdc78898f5399
[ "Apache-2.0" ]
10
2019-08-02T19:44:33.000Z
2021-07-26T06:12:44.000Z
chalice/app.py
westonsteimel/chalice
fc729d63f201b89c5691e5031c64c17f58d618c6
[ "Apache-2.0" ]
null
null
null
"""Chalice app and routing code.""" # pylint: disable=too-many-lines,ungrouped-imports import re import sys import os import logging import json import traceback import decimal import base64 import copy import functools import datetime from collections import defaultdict __version__ = '1.22.0' _PARAMS = re.compile(r'...
36.637341
79
0.626387
94dbe2d27dbf717064499bed56938231d07a0db4
151
py
Python
draftjs_exporter/__init__.py
Stormheg/draftjs_exporter
be2a7e62ae7e97b37348b4f41b1a688dbfd13c6d
[ "MIT" ]
null
null
null
draftjs_exporter/__init__.py
Stormheg/draftjs_exporter
be2a7e62ae7e97b37348b4f41b1a688dbfd13c6d
[ "MIT" ]
null
null
null
draftjs_exporter/__init__.py
Stormheg/draftjs_exporter
be2a7e62ae7e97b37348b4f41b1a688dbfd13c6d
[ "MIT" ]
null
null
null
__title__ = "draftjs_exporter" __version__ = "4.0.0" __author__ = "Springload" __license__ = "MIT" __copyright__ = "Copyright 2016-present Springload"
25.166667
51
0.768212
4c3d55ae27f1c2b17964669efe78f17c41dc8085
2,657
py
Python
data_structures/python/linked_lists/inserting_node_into_sorted_doubly_linked_list.py
kcc3/hackerrank-solutions
f862b44b840bd447d99dc148f6bb5e2f5bfb8a86
[ "MIT" ]
null
null
null
data_structures/python/linked_lists/inserting_node_into_sorted_doubly_linked_list.py
kcc3/hackerrank-solutions
f862b44b840bd447d99dc148f6bb5e2f5bfb8a86
[ "MIT" ]
null
null
null
data_structures/python/linked_lists/inserting_node_into_sorted_doubly_linked_list.py
kcc3/hackerrank-solutions
f862b44b840bd447d99dc148f6bb5e2f5bfb8a86
[ "MIT" ]
1
2020-06-04T09:23:19.000Z
2020-06-04T09:23:19.000Z
"""Hackerrank Problem: Hackerrank Problem: https://www.hackerrank.com/challenges/insert-a-node-into-a-sorted-doubly-linked-list/problem Given a reference to the head of a doubly-linked list and an integer, data, create a new DoublyLinkedListNode object having data value data and insert it at the proper location to mai...
23.723214
135
0.63869
7b73c5abb8ea628b920ab0e6db9509534c043f1e
137
py
Python
commandment/vpp/schema.py
pythonModule/commandment
32ca167e44753014857a3f0329c8662f0df97f02
[ "MIT" ]
138
2017-11-21T17:57:59.000Z
2022-02-16T13:08:39.000Z
commandment/vpp/schema.py
pythonModule/commandment
32ca167e44753014857a3f0329c8662f0df97f02
[ "MIT" ]
24
2017-11-12T01:42:13.000Z
2022-02-24T21:53:28.000Z
commandment/vpp/schema.py
pythonModule/commandment
32ca167e44753014857a3f0329c8662f0df97f02
[ "MIT" ]
35
2017-11-15T12:14:44.000Z
2022-02-26T00:44:36.000Z
from marshmallow import Schema, fields class VPPAccountSchema(Schema): exp_date = fields.DateTime() org_name = fields.String()
19.571429
38
0.744526
5247cdb30d67d582b66ca42edd2c758b896f730d
1,616
py
Python
autovideo/augmentation/pillike/FilterFindEdges_primitive.py
wanghaisheng/autovideo
ca6c05e522f6ea8cb2043a60195769f3906a3a19
[ "MIT" ]
4
2021-11-01T15:33:03.000Z
2022-02-10T10:37:56.000Z
autovideo/augmentation/pillike/FilterFindEdges_primitive.py
wanghaisheng/autovideo
ca6c05e522f6ea8cb2043a60195769f3906a3a19
[ "MIT" ]
2
2021-11-08T05:09:00.000Z
2022-03-08T20:42:02.000Z
autovideo/augmentation/pillike/FilterFindEdges_primitive.py
wanghaisheng/autovideo
ca6c05e522f6ea8cb2043a60195769f3906a3a19
[ "MIT" ]
2
2022-02-28T10:03:14.000Z
2022-03-23T09:00:06.000Z
''' Copyright 2021 D3M Team Copyright (c) 2021 DATA Lab at Texas A&M University 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 ap...
32.979592
91
0.758663
8fbbfbc9d9c467ee98deaa2a83022fb4368e69ae
574
py
Python
packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_family.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_family.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_family.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
import _plotly_utils.basevalidators class FamilyValidator(_plotly_utils.basevalidators.StringValidator): def __init__( self, plotly_name="family", parent_name="sunburst.outsidetextfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_...
33.764706
84
0.632404
a224a7fe3db8c2b93979e9bd2b97049f32b0488c
310
py
Python
populate_data.py
hdhanes/nhl_freeagents
5cf47032d8550acbdd451413cb6061671740c392
[ "Apache-2.0" ]
null
null
null
populate_data.py
hdhanes/nhl_freeagents
5cf47032d8550acbdd451413cb6061671740c392
[ "Apache-2.0" ]
null
null
null
populate_data.py
hdhanes/nhl_freeagents
5cf47032d8550acbdd451413cb6061671740c392
[ "Apache-2.0" ]
null
null
null
''' Scraping the data - run this file to populate the scraped data ''' from nhl_scraping.scraper import NHLSeasonScraper #run this file to populate/scrape the data if __name__ == "__main__": scraped = NHLSeasonScraper() scraped.scraperosters("2021") scraped.scrapeFA("2021") scraped.save_df()
25.833333
62
0.732258
cc086f49ae1e697099cc73d46795fd2fcde6762e
1,393
py
Python
configs/cls/_base_/datasets/pipelines/rand_aug.py
OpenGVLab/gv-benchmark
ffe1f7460b857c88276d52a1537cbc673002f1e4
[ "Apache-2.0" ]
106
2022-02-14T13:04:46.000Z
2022-03-30T03:19:45.000Z
configs/cls/_base_/datasets/pipelines/rand_aug.py
OpenGVLab/gv-benchmark
ffe1f7460b857c88276d52a1537cbc673002f1e4
[ "Apache-2.0" ]
2
2022-03-08T07:19:18.000Z
2022-03-29T15:45:09.000Z
configs/cls/_base_/datasets/pipelines/rand_aug.py
OpenGVLab/gv-benchmark
ffe1f7460b857c88276d52a1537cbc673002f1e4
[ "Apache-2.0" ]
2
2022-03-25T08:21:20.000Z
2022-03-30T05:47:20.000Z
# Refers to `_RAND_INCREASING_TRANSFORMS` in pytorch-image-models rand_increasing_policies = [ dict(type='AutoContrast'), dict(type='Equalize'), dict(type='Invert'), dict(type='Rotate', magnitude_key='angle', magnitude_range=(0, 30)), dict(type='Posterize', magnitude_key='bits', magnitude_range=(4, ...
36.657895
79
0.623116
89b9b856eb541e4648c3a5d4fdc9f2fc6597efe6
8,840
py
Python
tests/test_cookiecutter_generation.py
Jusfocus/cookiecutter-django
76f99538b59188587bb2b776cc7d2d1eade4049f
[ "BSD-3-Clause" ]
1
2020-08-05T20:58:06.000Z
2020-08-05T20:58:06.000Z
tests/test_cookiecutter_generation.py
Jusfocus/cookiecutter-django
76f99538b59188587bb2b776cc7d2d1eade4049f
[ "BSD-3-Clause" ]
null
null
null
tests/test_cookiecutter_generation.py
Jusfocus/cookiecutter-django
76f99538b59188587bb2b776cc7d2d1eade4049f
[ "BSD-3-Clause" ]
null
null
null
import os import re import pytest from cookiecutter.exceptions import FailedHookException import sh import yaml from binaryornot.check import is_binary PATTERN = r"{{(\s?cookiecutter)[.](.*?)}}" RE_OBJ = re.compile(PATTERN) @pytest.fixture def context(): return { "project_name": "My Test Project", ...
36.680498
86
0.649321
a5b02f866ed6a3349649793c1f3cb63c4b72a1bc
35,081
py
Python
var/spack/repos/builtin/packages/trilinos/package.py
isosc/spack
cb4d713ff9621f27993a9fb1026be4d4e861c531
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/trilinos/package.py
isosc/spack
cb4d713ff9621f27993a9fb1026be4d4e861c531
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/trilinos/package.py
isosc/spack
cb4d713ff9621f27993a9fb1026be4d4e861c531
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import os import sys from spack import * from spack.operating_systems.mac_os import macos_version # Trilinos is complicat...
45.149292
105
0.604059
ffdff7bc06a15207ee3bac665da5a93e6a04d798
11,445
py
Python
pkgs/servers/web-apps/discourse/update.py
jperras/nixpkgs
ebc8319abfd505028cd2cc39ebe03909da4669fb
[ "MIT" ]
2
2020-05-24T18:06:19.000Z
2020-05-24T18:29:19.000Z
pkgs/servers/web-apps/discourse/update.py
jperras/nixpkgs
ebc8319abfd505028cd2cc39ebe03909da4669fb
[ "MIT" ]
8
2020-08-10T07:01:18.000Z
2020-11-23T05:57:08.000Z
pkgs/servers/web-apps/discourse/update.py
jperras/nixpkgs
ebc8319abfd505028cd2cc39ebe03909da4669fb
[ "MIT" ]
1
2021-02-28T14:42:47.000Z
2021-02-28T14:42:47.000Z
#!/usr/bin/env nix-shell #! nix-shell -i python3 -p bundix bundler nix-update nix-universal-prefetch python3 python3Packages.requests python3Packages.click python3Packages.click-log import click import click_log import shutil import tempfile import re import logging import subprocess import os import stat import json ...
34.893293
156
0.583836
a37bff491dff5552a223a0b9706c908f5b0d6611
934
py
Python
api/serializers.py
dozmus/notes
09e77df0cd4d1b74039d0313de41f9ca907d7e9d
[ "MIT" ]
9
2018-11-03T21:51:18.000Z
2022-01-24T12:48:51.000Z
api/serializers.py
PureCS/notes
09e77df0cd4d1b74039d0313de41f9ca907d7e9d
[ "MIT" ]
10
2018-06-23T18:05:13.000Z
2018-07-03T16:59:28.000Z
api/serializers.py
dozmus/notes
09e77df0cd4d1b74039d0313de41f9ca907d7e9d
[ "MIT" ]
3
2020-06-18T13:16:59.000Z
2021-10-30T00:48:04.000Z
from django.contrib.auth.models import User from rest_framework.fields import ReadOnlyField from rest_framework.relations import HyperlinkedRelatedField from rest_framework.serializers import ModelSerializer from notes.models import Note, Notebook class NoteSerializer(ModelSerializer): class Meta: model ...
31.133333
99
0.713062
126dfdcff5f7426f1705e4d21790d8b1b9a63709
25,727
py
Python
chalice/local.py
BenMusch/chalice
e72bc000a6762cdc20cebd88c9219bbdf0188cf4
[ "Apache-2.0" ]
null
null
null
chalice/local.py
BenMusch/chalice
e72bc000a6762cdc20cebd88c9219bbdf0188cf4
[ "Apache-2.0" ]
null
null
null
chalice/local.py
BenMusch/chalice
e72bc000a6762cdc20cebd88c9219bbdf0188cf4
[ "Apache-2.0" ]
null
null
null
"""Dev server used for running a chalice app locally. This is intended only for local development purposes. """ from __future__ import print_function import re import time import uuid import base64 import functools import warnings from collections import namedtuple from six.moves.BaseHTTPServer import HTTPServer fro...
40.707278
79
0.630466
7116f2423086acd00bc1ae4d8b39e7fa5b298e94
2,359
py
Python
exif/tests/test_little_endian.py
ArgiesDario/exif
62082954e9f7596f0911041b33d835e3df76e306
[ "MIT" ]
null
null
null
exif/tests/test_little_endian.py
ArgiesDario/exif
62082954e9f7596f0911041b33d835e3df76e306
[ "MIT" ]
null
null
null
exif/tests/test_little_endian.py
ArgiesDario/exif
62082954e9f7596f0911041b33d835e3df76e306
[ "MIT" ]
null
null
null
"""Test accessing and manipulating attributes of a little endian image.""" import os import textwrap import unittest from baseline import Baseline from exif import Image from exif.tests.little_endian_baselines import LITTLE_ENDIAN_MODIFY_BASELINE # pylint: disable=pointless-statement, protected-access class TestL...
43.685185
96
0.664265
b401d91ef949cb69123eb09e261efdd6ce19ba78
370
py
Python
library/tests/test_setup.py
melvinmajor/bme680-python
7e6bdd0dc45c68ea1f04c8eea70d20d51f3642bd
[ "MIT" ]
169
2018-08-16T12:25:54.000Z
2022-03-08T13:11:58.000Z
library/tests/test_setup.py
imgrant/bme680-python
da98fcacb4181d95ecc053434b4983046b1236df
[ "MIT" ]
34
2018-10-23T16:35:58.000Z
2022-02-11T11:46:31.000Z
library/tests/test_setup.py
imgrant/bme680-python
da98fcacb4181d95ecc053434b4983046b1236df
[ "MIT" ]
71
2018-08-30T13:38:59.000Z
2022-01-23T20:22:10.000Z
import pytest import bme680 def test_setup_not_present(smbus_notpresent): """Mock the adbsence of a BME680 and test initialisation.""" with pytest.raises(RuntimeError): sensor = bme680.BME680() # noqa F841 def test_setup_mock_present(smbus): """Mock the presence of a BME680 and test initialisat...
26.428571
64
0.718919
c2ef6f6dc7918c20878d42b4d26b6d1e3b123a72
474
py
Python
radiovis/migrations/0008_alter_imageslide_image.py
mervij/radiodns
01543cf1e4de8de335af0301616e089c35fc67f8
[ "Apache-2.0" ]
null
null
null
radiovis/migrations/0008_alter_imageslide_image.py
mervij/radiodns
01543cf1e4de8de335af0301616e089c35fc67f8
[ "Apache-2.0" ]
8
2021-05-17T10:54:28.000Z
2021-06-08T12:02:37.000Z
radiovis/migrations/0008_alter_imageslide_image.py
mervij/radiodns
01543cf1e4de8de335af0301616e089c35fc67f8
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2 on 2021-04-27 10:00 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('radiovis', '0007_auto_20210422_1424'), ] operations = [ migrations.AlterField( model_name='images...
23.7
103
0.64346
4a16e423d68f797d4114932597c712fd4a3f1133
510
py
Python
script_for_creating_gif.py
grifguitar/ml-advanced
db31344ddc0ec3870adbddb3d558c6b977b890a9
[ "Apache-2.0" ]
1
2021-11-04T14:29:10.000Z
2021-11-04T14:29:10.000Z
script_for_creating_gif.py
grifguitar/ml-advanced
db31344ddc0ec3870adbddb3d558c6b977b890a9
[ "Apache-2.0" ]
null
null
null
script_for_creating_gif.py
grifguitar/ml-advanced
db31344ddc0ec3870adbddb3d558c6b977b890a9
[ "Apache-2.0" ]
null
null
null
import imageio import os def item_to_int(item): lst = item.split('_') lst = lst[2].split('.') return int(lst[0]) def solve(): # Build GIF with imageio.get_writer('new_gif.gif', mode='I') as writer: files = [filename for filename in os.listdir('images1/')] files.sort(key=item_to_i...
20.4
65
0.598039
527d9d60a93a753e5844444889e142fbd5d9e21b
22,086
py
Python
Assignment_3/Assignment_3_NN_loan_data.py
stjordanis/CS7641
a07ab275e9f6a43add196efc12879448ba947db5
[ "Apache-2.0" ]
1
2022-02-12T08:01:59.000Z
2022-02-12T08:01:59.000Z
Assignment_3/Assignment_3_NN_loan_data.py
stjordanis/CS7641
a07ab275e9f6a43add196efc12879448ba947db5
[ "Apache-2.0" ]
null
null
null
Assignment_3/Assignment_3_NN_loan_data.py
stjordanis/CS7641
a07ab275e9f6a43add196efc12879448ba947db5
[ "Apache-2.0" ]
2
2020-06-05T08:17:49.000Z
2021-04-11T05:14:34.000Z
# coding: utf-8 # In[1]: import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns import time # In[2]: df1=pd.read_csv("loan_data.csv") df1.head() # In[3]: df1 = pd.get_dummies(df1,['purpose'],drop_first=True) df1 = df1.drop('credit.policy',axis=1) df1.head() # In[4]: ...
20.934597
177
0.714434
b9a0987b37d3d9dfef892436f0c6ada2c216906f
759
py
Python
pype/hosts/harmony/plugins/create/create_render.py
simonebarbieri/pype
a6dc83aa1300738749cbe8e5e2e6d2d1794e0289
[ "MIT" ]
null
null
null
pype/hosts/harmony/plugins/create/create_render.py
simonebarbieri/pype
a6dc83aa1300738749cbe8e5e2e6d2d1794e0289
[ "MIT" ]
null
null
null
pype/hosts/harmony/plugins/create/create_render.py
simonebarbieri/pype
a6dc83aa1300738749cbe8e5e2e6d2d1794e0289
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Create render node.""" from avalon import harmony from pype.hosts.harmony.api import plugin class CreateRender(plugin.Creator): """Composite node for publishing renders.""" name = "renderDefault" label = "Render" family = "render" node_type = "WRITE" def __init__(s...
27.107143
71
0.571805
264b29b3eb932c9e219d9f52d8124fb44aed95d9
6,409
py
Python
code/train.py
jiangyangby/DM2C
72230ba6ba03d0233df3d3ea242fac61657122f2
[ "MIT" ]
12
2019-12-03T04:45:05.000Z
2021-07-07T09:29:02.000Z
code/train.py
jiangyangby/DM2C
72230ba6ba03d0233df3d3ea242fac61657122f2
[ "MIT" ]
3
2019-11-29T01:20:08.000Z
2021-01-28T07:46:53.000Z
code/train.py
jiangyangby/DM2C
72230ba6ba03d0233df3d3ea242fac61657122f2
[ "MIT" ]
2
2020-02-01T14:32:25.000Z
2020-09-02T11:17:48.000Z
from __future__ import print_function, absolute_import, division import os import time import argparse import scipy.io as sio import torch from sklearn.cluster import KMeans from model import MultimodalGAN from utils import calculate_metrics, check_dir_exist METRIC_PRINT = 'metrics: ' + ', '.join(['{:.4f}'] * 7) pa...
44.506944
76
0.629739
6596fb750b29fc98d795ce3374b60f7a68cbe142
564
py
Python
src/lib/mine/aws/test_s3.py
rdw20170120/workstation
ed19aa930a83885c2a8cb58eb0bb5afe58f95df3
[ "MIT" ]
null
null
null
src/lib/mine/aws/test_s3.py
rdw20170120/workstation
ed19aa930a83885c2a8cb58eb0bb5afe58f95df3
[ "MIT" ]
2
2021-04-06T18:07:32.000Z
2021-06-02T01:50:40.000Z
src/lib/mine/aws/test_s3.py
rdw20170120/workstation
ed19aa930a83885c2a8cb58eb0bb5afe58f95df3
[ "MIT" ]
null
null
null
#!/usr/bin/env false """TODO: Write """ # Internal packages (absolute references, distributed with Python) # External packages (absolute references, NOT distributed with Python) from pytest import raises # Library modules (absolute references, NOT packaged, in project) from aws import s3 # Co-located modules (re...
21.692308
71
0.70922
d20dab4e8f72ee958ce9c7374226d23719b78263
2,070
py
Python
lib/steps/CopyFiles.py
lastcolour/Tacos
fe2b65250bfa74613151ae2dc6a91eb30f254844
[ "MIT" ]
null
null
null
lib/steps/CopyFiles.py
lastcolour/Tacos
fe2b65250bfa74613151ae2dc6a91eb30f254844
[ "MIT" ]
null
null
null
lib/steps/CopyFiles.py
lastcolour/Tacos
fe2b65250bfa74613151ae2dc6a91eb30f254844
[ "MIT" ]
null
null
null
from .Step import Step from lib.Logger import Log import pathlib import os import glob import pathlib import shutil import glob class CopyFiles(Step): def __init__(self): Step.__init__(self) self._targets = None self._from = None self._to = None self._force = False def...
35.084746
106
0.584541
a153fae1a031788f042041a00aa5640d2e35e5bb
19,095
py
Python
tests/hwsim/test_dfs.py
yoavst/hostapd-atrik
92faf1451d22064686b44bfb9ca94f90deb46197
[ "Unlicense" ]
null
null
null
tests/hwsim/test_dfs.py
yoavst/hostapd-atrik
92faf1451d22064686b44bfb9ca94f90deb46197
[ "Unlicense" ]
null
null
null
tests/hwsim/test_dfs.py
yoavst/hostapd-atrik
92faf1451d22064686b44bfb9ca94f90deb46197
[ "Unlicense" ]
1
2022-03-25T08:21:36.000Z
2022-03-25T08:21:36.000Z
# Test cases for DFS # Copyright (c) 2013-2019, Jouni Malinen <j@w1.fi> # # This software may be distributed under the terms of the BSD license. # See README for more details. from remotehost import remote_compatible import os import subprocess import time import logging logger = logging.getLogger() import hwsim_util...
37.149805
88
0.600052
5a2534c2fae5678400c81232a86d84a7c34e3d95
10,481
py
Python
src/saml2/pack.py
cnelson/pysaml2
a30e51c271e27e4411a0243b65adbf5d7a3abb07
[ "Apache-2.0" ]
5,079
2015-01-01T03:39:46.000Z
2022-03-31T07:38:22.000Z
src/saml2/pack.py
cnelson/pysaml2
a30e51c271e27e4411a0243b65adbf5d7a3abb07
[ "Apache-2.0" ]
1,623
2015-01-01T08:06:24.000Z
2022-03-30T19:48:52.000Z
src/saml2/pack.py
cnelson/pysaml2
a30e51c271e27e4411a0243b65adbf5d7a3abb07
[ "Apache-2.0" ]
2,033
2015-01-04T07:18:02.000Z
2022-03-28T19:55:47.000Z
"""Contains classes and functions that are necessary to implement different bindings. Bindings normally consists of three parts: - rules about what to send - how to package the information - which protocol to use """ import base64 try: import html except: import cgi as html import logging import saml2 from ...
32.65109
79
0.627516
1a87f783725b42aede3b2c1ebd1bce0a9a2cc2bd
228
py
Python
project/__main__.py
kosayoda/code-jam-4
3179d45add4d07b7207c68fb4c95d8ed9486581f
[ "MIT" ]
null
null
null
project/__main__.py
kosayoda/code-jam-4
3179d45add4d07b7207c68fb4c95d8ed9486581f
[ "MIT" ]
null
null
null
project/__main__.py
kosayoda/code-jam-4
3179d45add4d07b7207c68fb4c95d8ed9486581f
[ "MIT" ]
null
null
null
import sys from PySide2.QtWidgets import QApplication from .ui.ui import MainApplication def main(): app = QApplication(sys.argv) _ = MainApplication() sys.exit(app.exec_()) if __name__ == "__main__": main()
16.285714
42
0.692982
7f39fb830eb27c0ac8510c6e4e1abda6ffdd1624
3,104
py
Python
src/Products/LDAPUserFolder/tests/config.py
dataflake/Products.LDAPUserFolder
67f44a5e9333fd01ae0cf9148ab26b46b7be1e8e
[ "ZPL-2.1" ]
null
null
null
src/Products/LDAPUserFolder/tests/config.py
dataflake/Products.LDAPUserFolder
67f44a5e9333fd01ae0cf9148ab26b46b7be1e8e
[ "ZPL-2.1" ]
4
2019-01-14T18:25:10.000Z
2021-11-24T08:25:02.000Z
src/Products/LDAPUserFolder/tests/config.py
dataflake/Products.LDAPUserFolder
67f44a5e9333fd01ae0cf9148ab26b46b7be1e8e
[ "ZPL-2.1" ]
8
2019-01-14T18:22:41.000Z
2021-08-30T12:05:30.000Z
############################################################################## # # Copyright (c) 2000-2021 Jens Vagelpohl and Contributors. All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS S...
50.064516
79
0.57893
7d11a0ba61c8da52fe2d7c1da7955078eef3413c
1,198
py
Python
nes/utils.py
goktug97/nes-torch
016f2618d2f5019718c62359eebb9fd939647607
[ "MIT" ]
8
2021-04-17T09:35:35.000Z
2022-03-30T08:35:26.000Z
nes/utils.py
goktug97/nes-torch
016f2618d2f5019718c62359eebb9fd939647607
[ "MIT" ]
null
null
null
nes/utils.py
goktug97/nes-torch
016f2618d2f5019718c62359eebb9fd939647607
[ "MIT" ]
null
null
null
from functools import lru_cache, wraps import numpy as np @lru_cache(maxsize=1) def _center_function(population_size): centers = np.arange(0, population_size, dtype=np.float32) centers = centers / (population_size - 1) centers -= 0.5 return centers def _compute_ranks(rewards): rewards = np.arra...
23.96
61
0.63773
91c9d48475523458696b34bb5a8d6217780c03c7
1,277
py
Python
scripts/requirements.py
Roolat/hugo-ext-status
1a9baa43980fa7ebdf1635bbdbfe263b0caaf204
[ "MIT" ]
null
null
null
scripts/requirements.py
Roolat/hugo-ext-status
1a9baa43980fa7ebdf1635bbdbfe263b0caaf204
[ "MIT" ]
25
2019-02-18T03:26:18.000Z
2021-06-25T15:16:07.000Z
scripts/requirements.py
nariman/concord-ext-stats
1a9baa43980fa7ebdf1635bbdbfe263b0caaf204
[ "MIT" ]
1
2018-09-05T15:36:19.000Z
2018-09-05T15:36:19.000Z
# Extracting dependencies from lock file. # LGTM looks for setup.py or requirements.txt files, but fails. # We are using Poetry, which has no feature to export dependencies list yet... # Should be started from the project root. LOCK_FILE = "pyproject.lock" REQUIREMENTS_FILE = "requirements.txt" if __name__ == "__main...
31.925
78
0.480031
7bf36b3c628c1c7780d00dacfe6d721d02c3818c
6,182
py
Python
tests/bad_passwd_config/__init__.py
jlmelville/passaas
e40715d51a43bdd605b5b2025e348786802ed929
[ "MIT" ]
null
null
null
tests/bad_passwd_config/__init__.py
jlmelville/passaas
e40715d51a43bdd605b5b2025e348786802ed929
[ "MIT" ]
null
null
null
tests/bad_passwd_config/__init__.py
jlmelville/passaas
e40715d51a43bdd605b5b2025e348786802ed929
[ "MIT" ]
null
null
null
"""Configuration for test apps with bad (missing/malformed) passwd files. All of this originally lived in test/conftest.py, but that file was getting long and confusing. conftest.py imports the fixtures here using: pytest_plugins = ["bad_passwd_config"] Testing the web app with a particular configuration uses the f...
29.023474
88
0.739728
4b0880cba1666ff00c093977296ee35b82db490b
846
py
Python
lufa-LUFA-181228/LUFA/StudioIntegration/VSIX/generate_caches.py
sekbowee/3dxfab-mk3s-32u2-firmware
01ba201a8ee10038c39b5bab83ca2e34b923b580
[ "Apache-2.0" ]
null
null
null
lufa-LUFA-181228/LUFA/StudioIntegration/VSIX/generate_caches.py
sekbowee/3dxfab-mk3s-32u2-firmware
01ba201a8ee10038c39b5bab83ca2e34b923b580
[ "Apache-2.0" ]
null
null
null
lufa-LUFA-181228/LUFA/StudioIntegration/VSIX/generate_caches.py
sekbowee/3dxfab-mk3s-32u2-firmware
01ba201a8ee10038c39b5bab83ca2e34b923b580
[ "Apache-2.0" ]
2
2021-03-07T11:21:12.000Z
2021-05-30T03:45:40.000Z
""" LUFA Library Copyright (C) Dean Camera, 2018. dean [at] fourwalledcubicle [dot] com www.lufa-lib.org """ import sys sys.path.append("ProjectGenerator") def show_message(message): print("[Project Generator] %s" % message) sys.stdout.flush() def main(lufa_root_path): t...
21.692308
67
0.679669
df369eb5da8cc9cfac9d3306c50475e6e7524dfa
226
py
Python
tasks.py
feihong/sanic-quickstart
86e5787397dcc20eba5fd4d1bb1dabe7944695eb
[ "Apache-2.0" ]
null
null
null
tasks.py
feihong/sanic-quickstart
86e5787397dcc20eba5fd4d1bb1dabe7944695eb
[ "Apache-2.0" ]
null
null
null
tasks.py
feihong/sanic-quickstart
86e5787397dcc20eba5fd4d1bb1dabe7944695eb
[ "Apache-2.0" ]
null
null
null
from subprocess import call from invoke import task @task def serve(ctx): run('python serve.py') @task def dev(ctx): run('ls * | entr -r python server.py') def run(cmd): call(cmd, shell=isinstance(cmd, str))
13.294118
42
0.659292
f6665591c1657401d24354fd11c6db7f151b4209
7,681
py
Python
affinity_pred/infer_mpi.py
jglaser/affinity_pred
b51ba839449f828706b9179949015e27ae18960b
[ "BSD-2-Clause" ]
null
null
null
affinity_pred/infer_mpi.py
jglaser/affinity_pred
b51ba839449f828706b9179949015e27ae18960b
[ "BSD-2-Clause" ]
null
null
null
affinity_pred/infer_mpi.py
jglaser/affinity_pred
b51ba839449f828706b9179949015e27ae18960b
[ "BSD-2-Clause" ]
null
null
null
from mpi4py import MPI from mpi4py.futures import MPICommExecutor import torch import transformers from transformers import AutoModelForSequenceClassification, BertModel, RobertaModel, BertTokenizerFast, RobertaTokenizer from transformers import PreTrainedModel, BertConfig, RobertaConfig from transformers import Trai...
37.10628
136
0.654342
d5ba9f847c0b2a2510cd7c5b6f1dbeafe88441f4
1,709
py
Python
leapp/snactor/commands/run.py
vinzenz/prototype
6375992ab373aa9fa5f19de06a3ad7a0895b8816
[ "Apache-2.0" ]
null
null
null
leapp/snactor/commands/run.py
vinzenz/prototype
6375992ab373aa9fa5f19de06a3ad7a0895b8816
[ "Apache-2.0" ]
null
null
null
leapp/snactor/commands/run.py
vinzenz/prototype
6375992ab373aa9fa5f19de06a3ad7a0895b8816
[ "Apache-2.0" ]
null
null
null
import json import sys from leapp.exceptions import LeappError, CommandError from leapp.utils.clicmd import command, command_opt, command_arg from leapp.utils.repository import requires_repository, find_repository_basedir from leapp.logger import configure_logger from leapp.messaging.inprocess import InProcessMessagin...
33.509804
79
0.763019
26c9447061326cac9fd0f170cc8b80693ffdfedb
14,991
py
Python
src/oci/devops/models/compute_instance_group_deploy_stage.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/devops/models/compute_instance_group_deploy_stage.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/devops/models/compute_instance_group_deploy_stage.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
42.831429
245
0.707091
3677e37bddea25614ab9c917855d492f342c0fa5
1,248
py
Python
decode/BMP.py
SkyLined/headsup
8c07c0a4b90c5fad2c208a88bd2b2fc12ecadea4
[ "Apache-2.0" ]
1
2021-01-30T07:32:28.000Z
2021-01-30T07:32:28.000Z
decode/BMP.py
SkyLined/headsup
8c07c0a4b90c5fad2c208a88bd2b2fc12ecadea4
[ "Apache-2.0" ]
null
null
null
decode/BMP.py
SkyLined/headsup
8c07c0a4b90c5fad2c208a88bd2b2fc12ecadea4
[ "Apache-2.0" ]
null
null
null
# Copyright 2010 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 or agreed to ...
37.818182
78
0.713141
db3edeb0014c62e239b501903b2bba35566d3a5a
14,726
py
Python
rprobe/probing/tasks.py
UKPLab/emnlp2020-formalism-probing
cd1e8c925f22eb6f068755610ddfa322f3ebc74f
[ "Apache-2.0" ]
1
2021-08-25T07:47:44.000Z
2021-08-25T07:47:44.000Z
rprobe/probing/tasks.py
UKPLab/emnlp2020-formalism-probing
cd1e8c925f22eb6f068755610ddfa322f3ebc74f
[ "Apache-2.0" ]
null
null
null
rprobe/probing/tasks.py
UKPLab/emnlp2020-formalism-probing
cd1e8c925f22eb6f068755610ddfa322f3ebc74f
[ "Apache-2.0" ]
null
null
null
import itertools import json import os from collections import Counter from pytorch_pretrained_bert.tokenization import BertTokenizer from probing.data_utils.dataset import Dataset from probing.globals import BERT_MODEL_NAME, SPR_PROPERTIES from probing.helpers import retokenize bert_tokenizer = BertTokenizer.from_p...
38.549738
145
0.597922
dcd78ef7cbf9ce2822c05e3dcf76f41e0aa8c6a3
522
py
Python
freezetest.py
mrkbutty/freezetest
3aa80bc1d32f4a86e74bc857da1878d88bcf3660
[ "MIT" ]
null
null
null
freezetest.py
mrkbutty/freezetest
3aa80bc1d32f4a86e74bc857da1878d88bcf3660
[ "MIT" ]
null
null
null
freezetest.py
mrkbutty/freezetest
3aa80bc1d32f4a86e74bc857da1878d88bcf3660
[ "MIT" ]
null
null
null
import sys import os import importlib def getprogdir(): if getattr(sys, 'frozen', False): return getattr(sys, '_MEIPASS', os.path.dirname(sys.executable)) else: return os.path.dirname(os.path.abspath(sys.modules['__main__'].__file__)) def main(): print(f'Hello, from main file: {__file__}')...
27.473684
81
0.666667
c2c6740ca6928a9c11ce3267d755f6b2d78cb706
3,447
py
Python
HHH_Eats/settings.py
Himan-2000/HHH-Eats
87bc28e3d7052dc96080339f1e0539350892646d
[ "MIT" ]
null
null
null
HHH_Eats/settings.py
Himan-2000/HHH-Eats
87bc28e3d7052dc96080339f1e0539350892646d
[ "MIT" ]
null
null
null
HHH_Eats/settings.py
Himan-2000/HHH-Eats
87bc28e3d7052dc96080339f1e0539350892646d
[ "MIT" ]
null
null
null
""" Django settings for HHH_Eats project. Generated by 'django-admin startproject' using Django 3.0.3. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import os ...
25.917293
91
0.698288
6949270317f7c81f3cbf92199d05c04ff8742f23
1,562
py
Python
.venv/lib/python3.8/site-packages/pandas/core/reshape/util.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
115
2020-06-18T15:00:58.000Z
2022-03-02T10:13:19.000Z
.venv/lib/python3.8/site-packages/pandas/core/reshape/util.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
37
2020-10-20T08:30:53.000Z
2020-12-22T13:15:45.000Z
.venv/lib/python3.8/site-packages/pandas/core/reshape/util.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
60
2020-07-22T14:53:10.000Z
2022-03-23T10:17:59.000Z
import numpy as np from pandas.core.dtypes.common import is_list_like def cartesian_product(X): """ Numpy version of itertools.product. Sometimes faster (for large inputs)... Parameters ---------- X : list-like of list-likes Returns ------- product : list of ndarrays Exampl...
22.970588
88
0.571063
aefb935604ef613be1fddd2db64ec8ec5bcb7241
25,402
py
Python
nssrc/com/citrix/netscaler/nitro/resource/config/feo/feoaction.py
guardicore/nitro-python
5346a5086134aead80968f15a41ff527adaa0ec1
[ "Apache-2.0" ]
null
null
null
nssrc/com/citrix/netscaler/nitro/resource/config/feo/feoaction.py
guardicore/nitro-python
5346a5086134aead80968f15a41ff527adaa0ec1
[ "Apache-2.0" ]
null
null
null
nssrc/com/citrix/netscaler/nitro/resource/config/feo/feoaction.py
guardicore/nitro-python
5346a5086134aead80968f15a41ff527adaa0ec1
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2021 Citrix Systems, 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...
26.654774
250
0.712188
5a09cd4ccacd76088eb847fa1a1813ac57ff6623
1,446
py
Python
Python_Codes/calculator4.py
arnelimperial/Code-Py
c48be58027e99f12a358644b45d502c8fcbd3b98
[ "Zlib" ]
null
null
null
Python_Codes/calculator4.py
arnelimperial/Code-Py
c48be58027e99f12a358644b45d502c8fcbd3b98
[ "Zlib" ]
null
null
null
Python_Codes/calculator4.py
arnelimperial/Code-Py
c48be58027e99f12a358644b45d502c8fcbd3b98
[ "Zlib" ]
null
null
null
#!/usr/bin/env python3 from math import sin, cos print("Calculator") s = int(input("Give the first number:")) t = int(input("Give the second number:")) a= ("\n\n(1) +\n(2) -\n(3) *\n(4) /\n" "(5)sin(number1/number2)\n(6)cos(number1/number2)\n(7)Change numbers\n(8)Quit") print(a) print("Current numbers:" ,s,t) s...
27.283019
83
0.536653
1b53e104bcfc321bcf0f063a177e0792ca13c228
1,795
py
Python
liverpoolScraper_rbpi.py
asdf1234Damian/YARAPT
f2299134219b19aa23782718b95606cf7622fbbe
[ "MIT" ]
1
2022-01-20T14:50:37.000Z
2022-01-20T14:50:37.000Z
liverpoolScraper_rbpi.py
asdf1234Damian/YARAPT
f2299134219b19aa23782718b95606cf7622fbbe
[ "MIT" ]
null
null
null
liverpoolScraper_rbpi.py
asdf1234Damian/YARAPT
f2299134219b19aa23782718b95606cf7622fbbe
[ "MIT" ]
null
null
null
import requests import json import datetime import sys from bs4 import BeautifulSoup BASE_URL ="https://www.liverpool.com.mx" def searchKeyword(keyword: str, hdrs :dict): r = requests.get( f"https://www.liverpool.com.mx/typeahead?query={keyword}&type=all", headers=hdrs) try: urls = [prod["u...
32.053571
113
0.612256
4e991b4e31090e140ec7f067a4abe174f108b8a7
10,054
py
Python
Differential_Privacy/paper_model/tensorflow/dp-sgd/cifar10/cifar10_input.py
NigeloYang/tensorflow-practice
0778f3751512773504eb6c685dfb138aa8e43d40
[ "MIT" ]
null
null
null
Differential_Privacy/paper_model/tensorflow/dp-sgd/cifar10/cifar10_input.py
NigeloYang/tensorflow-practice
0778f3751512773504eb6c685dfb138aa8e43d40
[ "MIT" ]
null
null
null
Differential_Privacy/paper_model/tensorflow/dp-sgd/cifar10/cifar10_input.py
NigeloYang/tensorflow-practice
0778f3751512773504eb6c685dfb138aa8e43d40
[ "MIT" ]
null
null
null
# 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...
38.818533
80
0.70559