hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
9edb3a2132eaa83b42303d298f57ee942c087a27
1,978
py
Python
examples/compartmental/rall.py
achilleas-k/brian2
906563b6b1321585b082f79f74f1b4ab386347ec
[ "BSD-2-Clause" ]
null
null
null
examples/compartmental/rall.py
achilleas-k/brian2
906563b6b1321585b082f79f74f1b4ab386347ec
[ "BSD-2-Clause" ]
13
2015-10-05T15:33:42.000Z
2015-11-18T08:31:42.000Z
examples/compartmental/rall.py
moritzaugustin/brian2
d98ea0cb4af0c9426e71c8ee7659ddb13aea8593
[ "BSD-2-Clause" ]
null
null
null
''' A cylinder plus two branches, with diameters according to Rall's formula ''' from brian2 import * defaultclock.dt = 0.01*ms # Passive channels gL = 1e-4*siemens/cm**2 EL = -70*mV # Morphology diameter = 1*um length = 300*um Cm = 1*uF/cm**2 Ri = 150*ohm*cm N = 500 rm = 1 / (gL * pi * diameter) # membrane resista...
29.969697
76
0.620829
9edb58ca166fff6f7bf1f6f3f3b870beff75f89e
5,091
py
Python
slow_start_rewatch/schedule/schedule_storage.py
slow-start-fans/slow-start-rewatch
7cf0fc9434084b3b9fa23497b08b4c9e6c512250
[ "MIT" ]
1
2020-05-31T02:41:48.000Z
2020-05-31T02:41:48.000Z
slow_start_rewatch/schedule/schedule_storage.py
slow-start-fans/slow-start-rewatch
7cf0fc9434084b3b9fa23497b08b4c9e6c512250
[ "MIT" ]
33
2020-05-27T01:17:42.000Z
2021-03-01T16:09:33.000Z
slow_start_rewatch/schedule/schedule_storage.py
slow-start-fans/slow-start-rewatch
7cf0fc9434084b3b9fa23497b08b4c9e6c512250
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from abc import ABC, abstractmethod from datetime import datetime from io import StringIO from typing import Dict, List, Union from ruamel.yaml import YAML, YAMLError # type: ignore from structlog import get_logger from slow_start_rewatch.exceptions import InvalidSchedule from slow_start_rew...
30.668675
78
0.574936
9edb7ee9225f524093c9c5370516e978d6233c20
1,336
py
Python
python/recursion/0206_reverse_linked_list.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
6
2019-07-15T13:23:57.000Z
2020-01-22T03:12:01.000Z
python/recursion/0206_reverse_linked_list.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
null
null
null
python/recursion/0206_reverse_linked_list.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
1
2019-07-24T02:15:31.000Z
2019-07-24T02:15:31.000Z
# Definition for singly-linked list. class ListNode(object): def __init__(self, x): self.val = x self.next = None class Solution: def reverseList(self, head): """ :type head: ListNode :rtype: ListNode """ if head is None: return None ...
20.242424
42
0.536677
9edb932d446994faeb9b1645d70d5b36bf63b2c8
8,378
py
Python
demono/__init__.py
Mezozoysky/demono
800c58176232be572a0b51a64fdbb03e50d38bfc
[ "MIT" ]
null
null
null
demono/__init__.py
Mezozoysky/demono
800c58176232be572a0b51a64fdbb03e50d38bfc
[ "MIT" ]
null
null
null
demono/__init__.py
Mezozoysky/demono
800c58176232be572a0b51a64fdbb03e50d38bfc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Module provides the base daemon class 'Demono', 'signal_handler' decorator and a bit of utility functions. """ import sys import os import time import atexit import signal from signal import signal as register_signal def echo(message: str): """ Convenience wrapper for sys.stdout.w...
31.144981
81
0.53927
9edbef56c32c8fe88b6737e047407774c71b97c3
9,193
py
Python
FLARE21/nnunet/dataset_conversion/Task203_SemiMSDSpl.py
LeeBowang/FLARE21_MISEU
d905512e5f3330c0da44ba78dcedf4616ac4d6c4
[ "Apache-2.0" ]
20
2021-05-11T06:25:38.000Z
2022-03-16T14:28:15.000Z
FLARE21/nnunet/dataset_conversion/Task203_SemiMSDSpl.py
LeeBowang/FLARE21_MISEU
d905512e5f3330c0da44ba78dcedf4616ac4d6c4
[ "Apache-2.0" ]
6
2021-05-24T01:58:45.000Z
2021-08-09T07:10:44.000Z
FLARE21/nnunet/dataset_conversion/Task203_SemiMSDSpl.py
LeeBowang/FLARE21_MISEU
d905512e5f3330c0da44ba78dcedf4616ac4d6c4
[ "Apache-2.0" ]
3
2021-05-23T06:51:13.000Z
2021-07-22T07:25:45.000Z
# Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany # # 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://w...
37.522449
251
0.667138
9edc3011dcf06ab5a0f6b461cade56693782523f
712
py
Python
python/queue_stack/0946_validate_stack_sequences.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
6
2019-07-15T13:23:57.000Z
2020-01-22T03:12:01.000Z
python/queue_stack/0946_validate_stack_sequences.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
null
null
null
python/queue_stack/0946_validate_stack_sequences.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
1
2019-07-24T02:15:31.000Z
2019-07-24T02:15:31.000Z
class Solution(object): def validateStackSequences(self, pushed, popped): """ :type pushed: List[int] :type popped: List[int] :rtype: bool """ i = 0 stack = [] for p in popped: while i < len(pushed) and (not stack or stack[-1] != p): ...
29.666667
78
0.5
9edc4bb24c6d0e8e8a35abbaf7978f2f4a92b614
2,768
py
Python
SpinorBECSimulation/CoherentStateChebyshev/chebyshev_propagator.py
ZachGlassman/SpinorBECSimulation
8821a8bc150eda2aa36ce6b39ff178a3ddc99df1
[ "MIT" ]
null
null
null
SpinorBECSimulation/CoherentStateChebyshev/chebyshev_propagator.py
ZachGlassman/SpinorBECSimulation
8821a8bc150eda2aa36ce6b39ff178a3ddc99df1
[ "MIT" ]
null
null
null
SpinorBECSimulation/CoherentStateChebyshev/chebyshev_propagator.py
ZachGlassman/SpinorBECSimulation
8821a8bc150eda2aa36ce6b39ff178a3ddc99df1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ @author: zag """ import numpy as np from scipy.special import jv #we will try to import with numba, if not fall back on numpy versions try: import numba from .chebyshev_functions_numba import hamiltonian_c except ImportError: from .chebyshev_functions import hamiltonian_c def d...
28.833333
93
0.624277
9edc647af6ee12ae29b1a6b6d9506228355877c4
8,552
py
Python
test/common_test.py
foxty/node_monitor
2d3b8870a20cf2fe4d7ae3f4c95f2fd74da6c8e0
[ "Apache-2.0" ]
3
2018-01-09T05:58:21.000Z
2021-07-15T13:18:10.000Z
test/common_test.py
foxty/node_monitor
2d3b8870a20cf2fe4d7ae3f4c95f2fd74da6c8e0
[ "Apache-2.0" ]
14
2018-01-17T06:19:48.000Z
2022-02-12T02:29:14.000Z
test/common_test.py
foxty/node-monitor
2d3b8870a20cf2fe4d7ae3f4c95f2fd74da6c8e0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """ Created on 2017-12-22 @author: foxty """ import unittest import mock from common import * class CommonTest(unittest.TestCase): def test_user_env(self): with mock.patch('common.check_output') as co: co.return_value = '' env = user_env...
36.862069
112
0.581501
9edc801b005d32ce49218c88911b70ed11f54fd7
10,041
py
Python
smartsim/generation/generator.py
CrayLabs/SmartSim
1f2c3c48c27fadee32154cf57a86244f97771d0d
[ "BSD-2-Clause" ]
117
2021-04-02T19:14:05.000Z
2022-03-30T16:46:23.000Z
smartsim/generation/generator.py
CrayLabs/SmartSim
1f2c3c48c27fadee32154cf57a86244f97771d0d
[ "BSD-2-Clause" ]
92
2021-04-02T22:02:31.000Z
2022-03-30T18:28:30.000Z
smartsim/generation/generator.py
CrayLabs/SmartSim
1f2c3c48c27fadee32154cf57a86244f97771d0d
[ "BSD-2-Clause" ]
20
2021-04-02T20:16:53.000Z
2022-02-10T20:19:14.000Z
# BSD 2-Clause License # # Copyright (c) 2021, Hewlett Packard Enterprise # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright noti...
37.890566
87
0.639478
9edc9be09868c06293b07c19d3663f1f0d917977
3,233
py
Python
texts/views.py
ben174/showertexts
b05e43dc2f0336f006a219ee7e30b94d4afd1311
[ "MIT" ]
13
2015-08-13T19:38:52.000Z
2021-04-07T18:52:26.000Z
texts/views.py
ben174/showertexts
b05e43dc2f0336f006a219ee7e30b94d4afd1311
[ "MIT" ]
2
2015-09-14T17:50:17.000Z
2021-06-10T17:58:37.000Z
texts/views.py
ben174/showertexts
b05e43dc2f0336f006a219ee7e30b94d4afd1311
[ "MIT" ]
3
2018-09-10T10:04:57.000Z
2021-04-07T18:52:34.000Z
import logging from django.conf import settings from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.views.decorators.csrf import csrf_exempt from django.core.cache import cache from texts.models import Subscriber from util.showerthoughts import get_todays_thought,...
31.38835
101
0.702753
9edca8820d2a8dc07485cdd388365b34fe4a85e6
3,564
py
Python
docarray/array/mixins/io/csv.py
bobvanluijt/docarray
300c9cf2d6a20abd97d3d11734ed520058f62eb2
[ "Apache-2.0" ]
null
null
null
docarray/array/mixins/io/csv.py
bobvanluijt/docarray
300c9cf2d6a20abd97d3d11734ed520058f62eb2
[ "Apache-2.0" ]
null
null
null
docarray/array/mixins/io/csv.py
bobvanluijt/docarray
300c9cf2d6a20abd97d3d11734ed520058f62eb2
[ "Apache-2.0" ]
null
null
null
import csv from contextlib import nullcontext from typing import Union, TextIO, Optional, Dict, TYPE_CHECKING, Type, Sequence import numpy as np if TYPE_CHECKING: from ....types import T class CsvIOMixin: """CSV IO helper. can be applied to DA & DAM """ def save_embeddings_csv(self, file: Unio...
34.601942
122
0.571268
9edcbecc6948f1a0c3eb3db258104e956852ecb6
1,723
py
Python
miniworld/model/spatial/Node/AbstractNode.py
miniworld-project/miniworld_core
c591bad232b78eae99e8f55cb1b907c1e228484b
[ "MIT" ]
5
2019-05-11T14:57:15.000Z
2021-07-05T00:35:25.000Z
miniworld/model/spatial/Node/AbstractNode.py
miniworld-project/miniworld_core
c591bad232b78eae99e8f55cb1b907c1e228484b
[ "MIT" ]
27
2017-03-17T07:11:02.000Z
2019-05-26T23:36:56.000Z
miniworld/model/spatial/Node/AbstractNode.py
miniworld-project/miniworld_core
c591bad232b78eae99e8f55cb1b907c1e228484b
[ "MIT" ]
6
2017-05-03T12:11:33.000Z
2020-04-03T11:44:27.000Z
# encoding: utf-8 import random __author__ = "Patrick Lampe" __email__ = "uni at lampep.de" class AbstractNode: """ Parameter --------- Attributes ---------- """ def __init__(self, node_id): self.crnt_movement_pattern = None self.dict_of_movement_pattern = {} ...
20.034884
110
0.533372
9edcc3670a973c7e271dc0d03fae043e02106ba6
2,819
py
Python
phr/catalogo/api/urls.py
richardqa/django-ex
e5b8585f28a97477150ac5daf5e55c74b70d87da
[ "CC0-1.0" ]
null
null
null
phr/catalogo/api/urls.py
richardqa/django-ex
e5b8585f28a97477150ac5daf5e55c74b70d87da
[ "CC0-1.0" ]
null
null
null
phr/catalogo/api/urls.py
richardqa/django-ex
e5b8585f28a97477150ac5daf5e55c74b70d87da
[ "CC0-1.0" ]
null
null
null
# coding=utf-8 from django.conf.urls import include, url from phr.catalogo.api.views import ( DetalleCatalogoAyudaTecnicaAPI, DetalleCatalogoCIEAPI, DetalleCatalogoDeficienciaAPI, DetalleCatalogoDiscapacidadAPI, DetalleCatalogoEtniaAPI, DetalleCatalogoFinanciadorAPI, DetalleCatalogoGradoInstruccionAPI, Det...
65.55814
120
0.70486
9edccf6b104c69747eee1fa03d0ffd52d14e1e1d
2,821
py
Python
Firmware/fibre/python/setup.py
rowanG077/ODrive
431bf9116408691ec631f8286507f627e57b06d2
[ "MIT" ]
19
2018-09-08T09:51:54.000Z
2020-10-02T06:52:26.000Z
Firmware/fibre/python/setup.py
rowanG077/ODrive
431bf9116408691ec631f8286507f627e57b06d2
[ "MIT" ]
2
2019-06-30T05:35:29.000Z
2020-06-25T16:41:18.000Z
Firmware/fibre/python/setup.py
rowanG077/ODrive
431bf9116408691ec631f8286507f627e57b06d2
[ "MIT" ]
25
2019-02-09T13:39:27.000Z
2020-09-04T03:03:29.000Z
""" This script is used to deploy the Fibre python library to PyPi so that users can install them easily with "pip install fibre" To install the package and its dependencies locally, run: sudo pip install -r requirements.txt To build and package the python tools into a tar archive: python setup.py sdist Warn...
31
111
0.734137
9edcd93e3177cf04536d5c70d1eaf2ac4f8eb381
603
py
Python
src/main/python/programmingtheiot/cda/embedded/TemperatureI2cSensorAdapterTask.py
Nitinsd96/Air-Pollution-Monitoring-System
4870223ce7b40b4ea465620a4c3d39cf617c6eff
[ "MIT" ]
6
2021-06-15T20:30:53.000Z
2022-01-20T20:09:41.000Z
src/main/python/programmingtheiot/cda/embedded/TemperatureI2cSensorAdapterTask.py
Nitinsd96/Air-Pollution-Monitoring-System
4870223ce7b40b4ea465620a4c3d39cf617c6eff
[ "MIT" ]
null
null
null
src/main/python/programmingtheiot/cda/embedded/TemperatureI2cSensorAdapterTask.py
Nitinsd96/Air-Pollution-Monitoring-System
4870223ce7b40b4ea465620a4c3d39cf617c6eff
[ "MIT" ]
9
2020-11-19T20:05:44.000Z
2022-02-25T05:17:31.000Z
##### # # This class is part of the Programming the Internet of Things project. # # It is provided as a simple shell to guide the student and assist with # implementation for the Programming the Internet of Things exercises, # and designed to be modified by the student as needed. # import logging from programmingth...
21.535714
71
0.754561
9edd1eb01e71c3224c06648a9d1401172fbd2347
3,713
py
Python
source/SC_Seed_Database/app.py
red-hat-data-services/smart-city-with-rh-cloud-services
29b29501214a69ccb939db1d2196c89d9b35132b
[ "MIT" ]
null
null
null
source/SC_Seed_Database/app.py
red-hat-data-services/smart-city-with-rh-cloud-services
29b29501214a69ccb939db1d2196c89d9b35132b
[ "MIT" ]
null
null
null
source/SC_Seed_Database/app.py
red-hat-data-services/smart-city-with-rh-cloud-services
29b29501214a69ccb939db1d2196c89d9b35132b
[ "MIT" ]
null
null
null
from sqlalchemy import create_engine, Column, Integer, String, Sequence from sqlalchemy.ext.declarative import declarative_base import json, urllib.request import os, sys DB_URL = os.getenv('VEHICLE_METADATA_DB_URL', 'https://github.com/red-hat-data-services/smart-city-with-rh-cloud-services/raw/main/source/SC_Seed_Da...
60.868852
1,353
0.7568
9edd1f15e022a9c4fff722c1603cf2fdf55cf589
741
py
Python
examples/django/example/urls.py
Code-in-the-House/foursquare_api
47f710802bad581d36c7e8ec28612bccf1f9fe41
[ "MIT" ]
null
null
null
examples/django/example/urls.py
Code-in-the-House/foursquare_api
47f710802bad581d36c7e8ec28612bccf1f9fe41
[ "MIT" ]
null
null
null
examples/django/example/urls.py
Code-in-the-House/foursquare_api
47f710802bad581d36c7e8ec28612bccf1f9fe41
[ "MIT" ]
null
null
null
from django.conf.urls.defaults import patterns, include, url from django.conf import settings # Uncomment the next two lines to enable the admin: # from django.contrib import admin # admin.autodiscover() urlpatterns = patterns('', # Examples: # url(r'^$', 'example.views.home', name='home'), # url(r'^examp...
37.05
100
0.678812
9edd281ccf5d797ca2f5a2bd644f7a1d7667cdb2
13,802
py
Python
tests/tests.py
srijwalzartek/django-slick-reporting
aed9262a3dd83aa28e141301a4b3bf7041be7748
[ "BSD-3-Clause" ]
null
null
null
tests/tests.py
srijwalzartek/django-slick-reporting
aed9262a3dd83aa28e141301a4b3bf7041be7748
[ "BSD-3-Clause" ]
null
null
null
tests/tests.py
srijwalzartek/django-slick-reporting
aed9262a3dd83aa28e141301a4b3bf7041be7748
[ "BSD-3-Clause" ]
null
null
null
import datetime from unittest import skip from urllib.parse import urljoin from django.contrib.auth import get_user_model from django.test import SimpleTestCase, TestCase, override_settings from django.urls import reverse from django.utils.timezone import now from slick_reporting.generator import ReportGenerator from...
42.73065
113
0.637734
9edd65e69f29e65891acb60c818a8c8eca00f05d
7,494
py
Python
tests/app/v2/broadcast/test_post_broadcast.py
alphagov-mirror/notifications-api
4a2e47b118c51f0ad45e87c89521f6087b1fcc2f
[ "MIT" ]
null
null
null
tests/app/v2/broadcast/test_post_broadcast.py
alphagov-mirror/notifications-api
4a2e47b118c51f0ad45e87c89521f6087b1fcc2f
[ "MIT" ]
null
null
null
tests/app/v2/broadcast/test_post_broadcast.py
alphagov-mirror/notifications-api
4a2e47b118c51f0ad45e87c89521f6087b1fcc2f
[ "MIT" ]
null
null
null
from unittest.mock import ANY import pytest from flask import json from app.dao.broadcast_message_dao import ( dao_get_broadcast_message_by_id_and_service_id, ) from tests import create_authorization_header from . import sample_cap_xml_documents def test_broadcast_for_service_without_permission_returns_400( ...
32.868421
93
0.666934
9edd815cd8fe5f306fe202c4f53596ba9daa6e3b
20,391
py
Python
Multi-Task-Learning-PyTorch-master/models/seg_hrnet.py
nikola3794/edge-evaluation-PASCAL-MT-tmp
d3bc7164608a20eb6351c1d41219213927ae6239
[ "MIT" ]
null
null
null
Multi-Task-Learning-PyTorch-master/models/seg_hrnet.py
nikola3794/edge-evaluation-PASCAL-MT-tmp
d3bc7164608a20eb6351c1d41219213927ae6239
[ "MIT" ]
null
null
null
Multi-Task-Learning-PyTorch-master/models/seg_hrnet.py
nikola3794/edge-evaluation-PASCAL-MT-tmp
d3bc7164608a20eb6351c1d41219213927ae6239
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------ # Copyright (c) Microsoft # Licensed under the MIT License. # Written by Ke Sun (sunk@mail.ustc.edu.cn) # Minor changes made by Simon Vandenhende # ------------------------------------------------------------------------------ from __futu...
38.619318
207
0.55397
9edd81aa9729c96d8a67c1f6801aaf539014f372
3,530
py
Python
2021/day_04/solution.py
dandiez/AdventOfCode
99ebe6991964290ede87b144c8692c8f6b31030d
[ "MIT" ]
null
null
null
2021/day_04/solution.py
dandiez/AdventOfCode
99ebe6991964290ede87b144c8692c8f6b31030d
[ "MIT" ]
null
null
null
2021/day_04/solution.py
dandiez/AdventOfCode
99ebe6991964290ede87b144c8692c8f6b31030d
[ "MIT" ]
null
null
null
from unittest import TestCase import numpy as np class Board: def __init__(self, numbers): self.numbers = np.array(numbers) self.seen = np.array([[False] * 5] * 5) self.has_won = False def has_bingo(self): if 5 in np.sum(self.seen, axis=0): self.has_won = True ...
26.343284
82
0.601416
9edd8b1fa2aff2b51abf44f7c8fc89d324287f9d
5,602
py
Python
tests/python/pants_test/backend/python/test_interpreter_cache.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/backend/python/test_interpreter_cache.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
1
2018-09-04T17:37:34.000Z
2018-09-04T19:42:58.000Z
tests/python/pants_test/backend/python/test_interpreter_cache.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import os import sys from contextlib import contextmanager from pants.backend.python.interpreter_cache import PythonInterpreter, PythonInterpreterCache from pants.subsystem.subsystem impo...
44.816
100
0.750089
9edd8cd61d79d97974be580bc01b763875bb18ba
6,062
py
Python
notebooks/flame.py
vishwesh5/Linear-Algebra---LAFF
8d8e711628ff99c544b01c93072f35bf6cb06d1e
[ "MIT" ]
1
2019-12-27T21:12:29.000Z
2019-12-27T21:12:29.000Z
notebooks/flame.py
vishwesh5/Linear-Algebra---LAFF
8d8e711628ff99c544b01c93072f35bf6cb06d1e
[ "MIT" ]
null
null
null
notebooks/flame.py
vishwesh5/Linear-Algebra---LAFF
8d8e711628ff99c544b01c93072f35bf6cb06d1e
[ "MIT" ]
null
null
null
#hpart = 'horizontal partition', vpart = 'vertical partition' from numpy import hstack, vstack def merge_2x2(TL, TR, BL, BR, A): if TL.shape[0] > 0 and TL.shape[1] > 0: for i in range(TL.shape[0]): for j in range(TL.shape[1]): A[i,j] = TL[i,j]; if TR.shape[0] > 0 and TR.sh...
29.285024
80
0.463543
9edd913485512b19fa0fddf4402da00a9677a8fd
18,450
py
Python
nebpyclient/api/rows.py
Nebulon/nebpyclient
8ea044096bd18aaccbfb81eca4e26ec29895a18c
[ "MIT" ]
2
2020-11-30T21:21:27.000Z
2021-09-29T21:43:37.000Z
nebpyclient/api/rows.py
Nebulon/nebpyclient
8ea044096bd18aaccbfb81eca4e26ec29895a18c
[ "MIT" ]
1
2020-12-01T15:18:24.000Z
2020-12-01T15:18:24.000Z
nebpyclient/api/rows.py
Nebulon/nebpyclient
8ea044096bd18aaccbfb81eca4e26ec29895a18c
[ "MIT" ]
2
2020-12-01T15:16:46.000Z
2021-09-29T21:46:40.000Z
# # Copyright 2021 Nebulon, Inc. # All Rights Reserved. # # DISCLAIMER: THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO # EVENT SHALL THE AUTHORS OR COPYRIG...
29.055118
80
0.601192
9eddc49a56bd93bcc12c166ffcbea17ad5d3f071
700
py
Python
alipay/aop/api/response/AlipayCommerceBillMsgApplyResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/response/AlipayCommerceBillMsgApplyResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/response/AlipayCommerceBillMsgApplyResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipayCommerceBillMsgApplyResponse(AlipayResponse): def __init__(self): super(AlipayCommerceBillMsgApplyResponse, self).__init__() self._success = None @property...
26.923077
107
0.708571
9eddd0607319741ffd0c114078e3df896ea0abde
623
py
Python
django_redis_prometheus/__init__.py
Zagrebelin/django-redis-prometheus
971a81f1cab91d62bca6223feb32506a764c246b
[ "Apache-2.0" ]
null
null
null
django_redis_prometheus/__init__.py
Zagrebelin/django-redis-prometheus
971a81f1cab91d62bca6223feb32506a764c246b
[ "Apache-2.0" ]
null
null
null
django_redis_prometheus/__init__.py
Zagrebelin/django-redis-prometheus
971a81f1cab91d62bca6223feb32506a764c246b
[ "Apache-2.0" ]
1
2021-12-27T09:56:59.000Z
2021-12-27T09:56:59.000Z
"""Django-Prometheus https://github.com/korfuri/django-prometheus """ # Import all files that define metrics. This has the effect that # `import django_prometheus` will always instanciate all metric # objects right away. from django_redis_prometheus import middleware from django_redis_prometheus import models __all__...
29.666667
74
0.792937
9eddf3e2652cfdf7444f47e2cba2b0f764c0b00b
37,452
py
Python
datalad/local/tests/test_addurls.py
soichih/datalad
797dde3ab7497be170e2c4ea8824f33a4b38e5d8
[ "MIT" ]
null
null
null
datalad/local/tests/test_addurls.py
soichih/datalad
797dde3ab7497be170e2c4ea8824f33a4b38e5d8
[ "MIT" ]
null
null
null
datalad/local/tests/test_addurls.py
soichih/datalad
797dde3ab7497be170e2c4ea8824f33a4b38e5d8
[ "MIT" ]
null
null
null
# emacs: -*- mode: python-mode; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*- # -*- coding: utf-8 -*- # ex: set sts=4 ts=4 sw=4 et: # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the datalad package for the # copyright and l...
38.690083
102
0.552227
9eddf8581677a737c56113d237b5aa40026cfe75
1,310
py
Python
game/findsecretword.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
game/findsecretword.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
game/findsecretword.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
class Solution(object): def findSecretWord(self, wordlist, master): def pair_matches(a, b): # count the number of matching characters return sum(c1 == c2 for c1, c2 in zip(a, b)) def most_overlap_word(): counts = [[0 for _ in range(26)] for _ in range(6)] # co...
39.69697
120
0.523664
9ede329cb5ba7a8579f427525733562e6a0c37bd
2,152
py
Python
tests/test_ub.py
yumemi5k/multiflexxlib
d30c149eebbe40dcf5950e21efed2c4f286859fd
[ "MIT" ]
1
2019-04-22T02:12:12.000Z
2019-04-22T02:12:12.000Z
tests/test_ub.py
yumemi5k/multiflexxlib
d30c149eebbe40dcf5950e21efed2c4f286859fd
[ "MIT" ]
null
null
null
tests/test_ub.py
yumemi5k/multiflexxlib
d30c149eebbe40dcf5950e21efed2c4f286859fd
[ "MIT" ]
1
2018-10-17T10:44:51.000Z
2018-10-17T10:44:51.000Z
import multiflexxlib as mfl import numpy as np def test_ub_creation(): u = mfl.UBMatrix(4, [1, 0, 0], [0, 1, 1]) assert np.all(u.latparam == np.array([4, 4, 4, 90, 90, 90])) u = mfl.UBMatrix([4, 4.04, 4.9], [1, 0, 0], [0, 1, 0]) assert np.all(u.latparam == np.array([4, 4.04, 4.9, 90, 90, 90])) u =...
39.851852
94
0.520446
9ede3d669186b0e01b6bbcd806854d3cfa498060
8,115
py
Python
examples/osc/oscilloscope.py
chenxu2394/py_createc
7de578dd9369677cedc492231d5273aa710ea96c
[ "MIT" ]
null
null
null
examples/osc/oscilloscope.py
chenxu2394/py_createc
7de578dd9369677cedc492231d5273aa710ea96c
[ "MIT" ]
null
null
null
examples/osc/oscilloscope.py
chenxu2394/py_createc
7de578dd9369677cedc492231d5273aa710ea96c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Oscilloscope with logging (graphing by Bokeh) Implemented with producer/consumer model Main thread : data_producer and a Bokeh server for graphing Child thread : Logger (consumer) """ import createc.utils.data_producer as dp from createc.Createc_pyCOM import CreatecWin...
39.975369
137
0.624276
9ede53c3d6d9522c78f7897aa8c5acc2a42c68e6
883
py
Python
tests/test_base_casting.py
stjordanis/datar
4e2b5db026ad35918954576badef9951928c0cb1
[ "MIT" ]
110
2021-03-09T04:10:40.000Z
2022-03-13T10:28:20.000Z
tests/test_base_casting.py
sthagen/datar
1218a549e2f0547c7b5a824ca6d9adf1bf96ba46
[ "MIT" ]
54
2021-06-20T18:53:44.000Z
2022-03-29T22:13:07.000Z
tests/test_base_casting.py
sthagen/datar
1218a549e2f0547c7b5a824ca6d9adf1bf96ba46
[ "MIT" ]
11
2021-06-18T03:03:14.000Z
2022-02-25T11:48:26.000Z
import pytest import numpy from datar.base.casting import * from datar.base.factor import * from .conftest import assert_iterable_equal def test_as_double(): assert isinstance(as_double(1), numpy.double) assert as_double(numpy.array([1,2])).dtype == numpy.double assert numpy.array(as_double([1,2])).dtype ...
29.433333
62
0.695357
9ede698fe6d9ccb16826d99525ef12d61dc4212f
742
py
Python
cumulusci/tasks/bulkdata/tests/utils.py
hamedizadpanah-ibm/CumulusCI
eb93723e2da1ca66a7639b3197e6fab02d1bd24a
[ "BSD-3-Clause" ]
1
2020-08-08T03:55:21.000Z
2020-08-08T03:55:21.000Z
cumulusci/tasks/bulkdata/tests/utils.py
Julian88Tex/CumulusCI
82d5fab71b61fbab53c1b5fc6001452fa3f97da8
[ "BSD-3-Clause" ]
null
null
null
cumulusci/tasks/bulkdata/tests/utils.py
Julian88Tex/CumulusCI
82d5fab71b61fbab53c1b5fc6001452fa3f97da8
[ "BSD-3-Clause" ]
null
null
null
from cumulusci.core.config import BaseGlobalConfig, BaseProjectConfig, TaskConfig from cumulusci.core.keychain import BaseProjectKeychain from cumulusci.tests.util import DummyOrgConfig def _make_task(task_class, task_config): task_config = TaskConfig(task_config) global_config = BaseGlobalConfig() projec...
39.052632
81
0.735849
9ede6e820da54f51628e34a0741563477e9e851a
490
py
Python
provision/deploy/templates/settings_production.py
JoseAntpr/tradingApp
728b2fbb46c4345ea89f1481396632b24a30d5cb
[ "MIT" ]
null
null
null
provision/deploy/templates/settings_production.py
JoseAntpr/tradingApp
728b2fbb46c4345ea89f1481396632b24a30d5cb
[ "MIT" ]
3
2020-02-12T00:36:37.000Z
2021-06-10T20:11:33.000Z
provision/deploy/templates/settings_production.py
JoseAntpr/tradingApp
728b2fbb46c4345ea89f1481396632b24a30d5cb
[ "MIT" ]
1
2017-09-12T18:15:17.000Z
2017-09-12T18:15:17.000Z
import os from tradingApp.settings import * DEBUG = False TEMPLATE_DEBUG = False ALLOWED_HOSTS = ['*'] SECRET_KEY = os.environ.get('SECRET_KEY', SECRET_KEY) ADMINS = (( os.environ.get('ADMIN_EMAIL_NAME', ''), os.environ.get('ADMIN_EMAIL_ADDRESS', '') ),) DATABASES = { 'default': { 'ENGINE': 'django.db...
19.6
58
0.604082
9ede6f009e61b015aa8c89cb0eb134c08796aa62
548
py
Python
python-code/opencv-learning/basics/contours/matchShapes.py
juxiangwu/image-processing
c644ef3386973b2b983c6b6b08f15dc8d52cd39f
[ "Apache-2.0" ]
13
2018-09-07T02:29:07.000Z
2021-06-18T08:40:09.000Z
python-code/opencv-learning/basics/contours/matchShapes.py
juxiangwu/image-processing
c644ef3386973b2b983c6b6b08f15dc8d52cd39f
[ "Apache-2.0" ]
null
null
null
python-code/opencv-learning/basics/contours/matchShapes.py
juxiangwu/image-processing
c644ef3386973b2b983c6b6b08f15dc8d52cd39f
[ "Apache-2.0" ]
4
2019-06-20T00:09:39.000Z
2021-07-15T10:14:36.000Z
#coding:utf-8 import cv2 import numpy as np imgToFind = cv2.imread('datas/toFind.jpg', 0) imgFromFind = cv2.imread('datas/fromFind.jpg', 0) ret, threshTo = cv2.threshold(imgToFind, 127, 255, cv2.THRESH_BINARY_INV) ret, threshFrom = cv2.threshold(imgFromFind, 127, 255, cv2.THRESH_BINARY_INV) cntTo = cv2.findContours(...
28.842105
78
0.766423
9ede84a56f65bf7df77d1a2088cac51dacc51fa8
774
py
Python
setup.py
MarsStirner/bouser.ezekiel
e03a647100451e27453babba0839aa35a2cbbb37
[ "0BSD" ]
null
null
null
setup.py
MarsStirner/bouser.ezekiel
e03a647100451e27453babba0839aa35a2cbbb37
[ "0BSD" ]
null
null
null
setup.py
MarsStirner/bouser.ezekiel
e03a647100451e27453babba0839aa35a2cbbb37
[ "0BSD" ]
null
null
null
# -*- coding: utf-8 -*- from setuptools import setup __author__ = 'viruzzz-kun' __version__ = '0.2' if __name__ == '__main__': setup( name="bouser_ezekiel", version=__version__, description="Object locking service for Bouser", long_description='', author=__author__, ...
25.8
56
0.554264
9ede88d9fa214c4c09ed986c8649afd25c80e0ea
3,395
py
Python
auspostgen/__init__.py
damiandennis/auspost
ca7a5c3b32faaefaca865b6e46c64c4f487f1cf6
[ "MIT" ]
null
null
null
auspostgen/__init__.py
damiandennis/auspost
ca7a5c3b32faaefaca865b6e46c64c4f487f1cf6
[ "MIT" ]
null
null
null
auspostgen/__init__.py
damiandennis/auspost
ca7a5c3b32faaefaca865b6e46c64c4f487f1cf6
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os from ctypes import CDLL, c_int, byref, create_string_buffer from io import BytesIO import base64 import click from PIL import Image, ImageDraw def build_barcode(fcc_value, dpid_value, customer_value=None): """ Builds a barcode, type will be determined by the fcc_value. :p...
30.585586
110
0.644772
9edec4d6f0d5426c92041f163d6fcda3c7d407b6
2,205
py
Python
setup.py
profxj/mwh_analysis
bb3854ee9e6deee7be270967fe5a7e15a7636819
[ "BSD-3-Clause" ]
1
2020-06-22T21:19:41.000Z
2020-06-22T21:19:41.000Z
setup.py
profxj/mwh_analysis
bb3854ee9e6deee7be270967fe5a7e15a7636819
[ "BSD-3-Clause" ]
9
2020-06-05T16:16:48.000Z
2020-10-18T18:58:00.000Z
setup.py
profxj/mwh_analysis
bb3854ee9e6deee7be270967fe5a7e15a7636819
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Licensed under a 3-clause BSD style license - see LICENSE.rst # Standard imports # import glob, os # from setuptools import setup, find_packages from extension_helpers import get_extensions # # Begin setup # setup_keywords = dict() # # THESE SETTINGS NEED TO BE CHANGED FOR EVERY PRODUCT. # set...
28.636364
87
0.702494
9edec66dc8d095c3a38f2cc8f53ddc8d0e6531f7
10,373
py
Python
sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/_data_factory_management_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/_data_factory_management_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/_data_factory_management_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
63.638037
579
0.779138
9edecf3d29b12f6f62f69aea47c632fc099771fe
19,321
py
Python
cli_ui/__init__.py
gdubicki/python-cli-ui
4852935b3c137e89c33c55fd67f679bb6093f482
[ "BSD-3-Clause" ]
null
null
null
cli_ui/__init__.py
gdubicki/python-cli-ui
4852935b3c137e89c33c55fd67f679bb6093f482
[ "BSD-3-Clause" ]
null
null
null
cli_ui/__init__.py
gdubicki/python-cli-ui
4852935b3c137e89c33c55fd67f679bb6093f482
[ "BSD-3-Clause" ]
null
null
null
import argparse import datetime import difflib import functools import getpass import inspect import io import os import sys import time import traceback from typing import IO, Any, Callable, Dict, List, Optional, Sequence, Tuple, Union import colorama import tabulate import unidecode ConfigValue = Union[None, bool, ...
28.708767
95
0.615289
9edeef442441ad0fcdecd3ec01eaf348ded87214
2,421
py
Python
code/toscaparser/triggers.py
superfluidity/RDCL3D
3c5717941bd4046aa1be178e9004db1dc1c469a0
[ "Apache-2.0" ]
8
2017-03-13T16:34:28.000Z
2021-11-16T11:35:56.000Z
code/toscaparser/triggers.py
superfluidity/RDCL3D
3c5717941bd4046aa1be178e9004db1dc1c469a0
[ "Apache-2.0" ]
null
null
null
code/toscaparser/triggers.py
superfluidity/RDCL3D
3c5717941bd4046aa1be178e9004db1dc1c469a0
[ "Apache-2.0" ]
3
2017-03-28T09:26:40.000Z
2020-12-08T14:16:12.000Z
# 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 writing, software # d...
35.086957
79
0.657993
9edef6b216b3284cd93d9eb06ca35716fdd2551f
6,856
py
Python
toontown/classicchars/DistributedDonaldAI.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/classicchars/DistributedDonaldAI.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/classicchars/DistributedDonaldAI.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
# File: D (Python 2.4) import random from otp.ai.AIBaseGlobal import * from toontown.classicchars.DistributedCCharBaseAI import DistributedCCharBaseAI from direct.directnotify import DirectNotifyGlobal from direct.fsm import ClassicFSM, State from direct.fsm import State from direct.task import Task from toontown.toon...
35.895288
211
0.634772
9edf1b8fb24abc7a0b93becbbb44b3e2864db9ed
415
py
Python
ads/hpo/visualization/_edf.py
oracle/accelerated-data-science
d594ed0c8c1365daf4cf9e860daebc760fa9a24b
[ "UPL-1.0", "Apache-2.0" ]
20
2022-02-22T19:07:09.000Z
2022-03-16T17:21:42.000Z
ads/hpo/visualization/_edf.py
oracle/accelerated-data-science
d594ed0c8c1365daf4cf9e860daebc760fa9a24b
[ "UPL-1.0", "Apache-2.0" ]
null
null
null
ads/hpo/visualization/_edf.py
oracle/accelerated-data-science
d594ed0c8c1365daf4cf9e860daebc760fa9a24b
[ "UPL-1.0", "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*-- # Copyright (c) 2021, 2022 Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ import matplotlib.pyplot as plt from optuna.study import Study from optuna.visualization.matplotlib import pl...
25.9375
104
0.742169
9edf71b6a51908997e20fcbaa5e0ecdc4d869091
491
py
Python
fifo.py
rayjustinhuang/BitesofPy
03b694c5259ff607621419d9677c5caff90a6057
[ "MIT" ]
null
null
null
fifo.py
rayjustinhuang/BitesofPy
03b694c5259ff607621419d9677c5caff90a6057
[ "MIT" ]
null
null
null
fifo.py
rayjustinhuang/BitesofPy
03b694c5259ff607621419d9677c5caff90a6057
[ "MIT" ]
null
null
null
from collections import deque def my_queue(n=5): return deque([],n) pass if __name__ == '__main__': mq = my_queue() for i in range(10): mq.append(i) print((i, list(mq))) """Queue size does not go beyond n int, this outputs: (0, [0]) (1, [0, 1]) (2, [0, 1, 2]) (3, ...
19.64
57
0.419552
9edfc2879eb3c19892f17c2301f7ee92984306ee
375
py
Python
01 Basics/010 - Importing module/010 -i- os list dir.py
TheUnicum/CorsoPython
06cb2b58d46b26fc6d1cf4a585ff2666ab4b5c19
[ "Apache-2.0" ]
null
null
null
01 Basics/010 - Importing module/010 -i- os list dir.py
TheUnicum/CorsoPython
06cb2b58d46b26fc6d1cf4a585ff2666ab4b5c19
[ "Apache-2.0" ]
null
null
null
01 Basics/010 - Importing module/010 -i- os list dir.py
TheUnicum/CorsoPython
06cb2b58d46b26fc6d1cf4a585ff2666ab4b5c19
[ "Apache-2.0" ]
null
null
null
#!/usr/local/bin/python # -*- coding: utf-8 -*- # # Copyright 2018 Mattia Benedetti # All rights reserved. # # Author: Mattia Benedetti """ - IMPORTING MODULES - https://docs.python.org/2.7/library/index.html """ import os print __file__ # ACTUAL FILE FULL PATH print __file__.split('\...
17.857143
59
0.616
9edfc39143deeaef8c5fd11eb0feaca71d8efb67
547
py
Python
source/dl/models/resnet.py
FrancescoSaverioZuppichini/Smash-Bros-Melee
4ca6f67240bfe60e86a82409c4056aaa25a5a860
[ "MIT" ]
null
null
null
source/dl/models/resnet.py
FrancescoSaverioZuppichini/Smash-Bros-Melee
4ca6f67240bfe60e86a82409c4056aaa25a5a860
[ "MIT" ]
null
null
null
source/dl/models/resnet.py
FrancescoSaverioZuppichini/Smash-Bros-Melee
4ca6f67240bfe60e86a82409c4056aaa25a5a860
[ "MIT" ]
null
null
null
import torch.nn as nn from torchvision.models import resnet18 from functools import partial def resnet_finetune(model, classes): """ This function prepares resnet to be finetuned by: 1) freeze the model weights 2) cut-off the last layer and replace with a new one with the correct classes number ""...
28.789474
88
0.731261
9edfcaa8239121392f337ea117309020db1e1f39
2,614
py
Python
visualization/grill/pointmass_plots.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2020-10-23T14:40:09.000Z
2020-10-23T14:40:09.000Z
visualization/grill/pointmass_plots.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
visualization/grill/pointmass_plots.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2021-05-27T20:38:45.000Z
2021-05-27T20:38:45.000Z
import matplotlib from visualization.grill.config import ( output_dir, format_func, configure_matplotlib, ) import matplotlib.pyplot as plt from rlkit.visualization import plot_util as plot configure_matplotlib(matplotlib) dirs = [ '/home/khazatsky/rail/data/rail-khazatsky/sasha/cond-rig/pointmass/bas...
35.808219
206
0.733359
9edfcae85303a4e73d41bdae85aeda75e4c87673
2,817
py
Python
scripts/wapo/wapo_link_graph_from_mongo.py
feup-infolab/army-ant
7b33120d5160f73d7a41a05e6336489c917fb75c
[ "BSD-3-Clause" ]
5
2018-01-18T14:11:52.000Z
2020-10-23T16:02:25.000Z
scripts/wapo/wapo_link_graph_from_mongo.py
feup-infolab/army-ant
7b33120d5160f73d7a41a05e6336489c917fb75c
[ "BSD-3-Clause" ]
10
2018-02-02T20:19:36.000Z
2020-10-05T08:46:36.000Z
scripts/wapo/wapo_link_graph_from_mongo.py
feup-infolab/army-ant
7b33120d5160f73d7a41a05e6336489c917fb75c
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # # wapo_link_graph_from_mongo.py # José Devezas <joseluisdevezas@gmail.com> # 2019-02-05 import logging import sys import warnings import networkx as nx from bs4 import BeautifulSoup from pymongo import MongoClient logging.basicConfig( format='%(asctime)s wapo_link_graph_from_mongo: %(lev...
26.083333
108
0.615903
9ee002df8aa13db5be49efb50d1c9651979c6742
8,196
py
Python
scripts/Deobfuscate.py
smilers/sabnzbd
ed0e5bbf9b963113f4962e7aec297266f19d6615
[ "MIT", "PSF-2.0", "0BSD" ]
1,354
2015-01-02T11:53:23.000Z
2022-03-30T01:32:46.000Z
scripts/Deobfuscate.py
smilers/sabnzbd
ed0e5bbf9b963113f4962e7aec297266f19d6615
[ "MIT", "PSF-2.0", "0BSD" ]
1,742
2015-01-01T20:17:35.000Z
2022-03-30T21:05:00.000Z
scripts/Deobfuscate.py
smilers/sabnzbd
ed0e5bbf9b963113f4962e7aec297266f19d6615
[ "MIT", "PSF-2.0", "0BSD" ]
410
2015-01-24T05:32:46.000Z
2022-03-20T12:56:49.000Z
#!/usr/bin/python3 -OO # Copyright 2007-2021 The SABnzbd-Team <team@sabnzbd.org> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any late...
35.025641
109
0.650683
9ee00c8d53d8370f24254eebfbaab8cb229cada2
2,512
py
Python
services/web/server/src/simcore_service_webserver/utils.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
null
null
null
services/web/server/src/simcore_service_webserver/utils.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
2
2018-05-13T09:10:57.000Z
2019-03-06T08:10:40.000Z
services/web/server/src/simcore_service_webserver/utils.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
null
null
null
""" General utilities and helper functions """ import hashlib import os import sys from pathlib import Path from typing import Iterable, List from yarl import URL CURRENT_DIR = Path(sys.argv[0] if __name__ == "__main__" else __file__).resolve().parent def is_osparc_repo_dir(path: Path) -> bool: # TODO: imple...
29.209302
88
0.644506
9ee0190f4f51b883f77e254feb3ad56949285f7b
6,670
py
Python
premade_modules/2.79/2.79b/bpy/ops/surface.py
echantry/fake-bpy-module
004cdf198841e639b7d9a4c4db95ca1c0d3aa2c7
[ "MIT" ]
null
null
null
premade_modules/2.79/2.79b/bpy/ops/surface.py
echantry/fake-bpy-module
004cdf198841e639b7d9a4c4db95ca1c0d3aa2c7
[ "MIT" ]
null
null
null
premade_modules/2.79/2.79b/bpy/ops/surface.py
echantry/fake-bpy-module
004cdf198841e639b7d9a4c4db95ca1c0d3aa2c7
[ "MIT" ]
null
null
null
def primitive_nurbs_surface_circle_add( radius=1.0, view_align=False, enter_editmode=False, location=(0.0, 0.0, 0.0), rotation=(0.0, 0.0, 0.0), layers=(False, False, False, False, False, False, False, False, False, False, False, False, False, False, False,...
39.94012
82
0.646777
9ee02dcb93461153af0f6f00ebe540581bf28b18
540
py
Python
SphinxReport/Config.py
Tim-HU/sphinx-report
3a0dc225e594c4b2083dff7a93b6d77054256416
[ "BSD-2-Clause" ]
1
2020-04-10T12:48:40.000Z
2020-04-10T12:48:40.000Z
SphinxReport/Config.py
Tim-HU/sphinx-report
3a0dc225e594c4b2083dff7a93b6d77054256416
[ "BSD-2-Clause" ]
null
null
null
SphinxReport/Config.py
Tim-HU/sphinx-report
3a0dc225e594c4b2083dff7a93b6d77054256416
[ "BSD-2-Clause" ]
null
null
null
'''Configuration values in SphinxReport. This module sets some default variables and neads the sphinx conf.py file. ''' import os SEPARATOR="@" HTML_IMAGE_FORMAT = ('main', 'png', 80) LATEX_IMAGE_FORMAT = () # ('pdf', 'pdf' 50) ADDITIONAL_FORMATS = [ ('hires', 'hires.png', 200 ), # ('eps', 'eps', 50 ), ...
18.62069
66
0.575926
9ee0333f14fe0c80b8b36be6ece3a376b988a682
29
py
Python
btd6_memory_info/generated/SteamNative/HTML_NeedsPaint_t/html_needs_paint_t.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/SteamNative/HTML_NeedsPaint_t/html_needs_paint_t.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/SteamNative/HTML_NeedsPaint_t/html_needs_paint_t.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class HTML_NeedsPaint_t: pass
29
29
0.896552
9ee039b8eb977b448e322b40be3bf174ffed2475
2,753
py
Python
optimization/IR_IO/variablelist.py
zengljnwpu/yaspc
5e85efb5fb8bee02471814b10e950dfb5b04c5d5
[ "MIT" ]
null
null
null
optimization/IR_IO/variablelist.py
zengljnwpu/yaspc
5e85efb5fb8bee02471814b10e950dfb5b04c5d5
[ "MIT" ]
null
null
null
optimization/IR_IO/variablelist.py
zengljnwpu/yaspc
5e85efb5fb8bee02471814b10e950dfb5b04c5d5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Date: 2017/6/30 Author: hellolzc axiqia VariableList: key: variablename value: { "initvalue": 0(0), "line_number": 2(-1), "const": false(false), "var_type": "integer*"(None), X "object": "instruction", X ...
29.923913
99
0.546676
9ee0577ab31dbfcb88712b3b74db6352006e7a1e
1,708
py
Python
app/gsheet.py
SamsonTaxon/InLine
258536589c2ab948670bbda77b1b7e888e228933
[ "MIT" ]
null
null
null
app/gsheet.py
SamsonTaxon/InLine
258536589c2ab948670bbda77b1b7e888e228933
[ "MIT" ]
null
null
null
app/gsheet.py
SamsonTaxon/InLine
258536589c2ab948670bbda77b1b7e888e228933
[ "MIT" ]
null
null
null
import gspread from oauth2client.service_account import ServiceAccountCredentials import json import os # use creds to create a client to interact with the Google Drive API scope = ['https://spreadsheets.google.com/feeds', 'https://www.googleapis.com/auth/drive'] creds = ServiceAccountCredentials.from_json_ke...
27.111111
109
0.721311
9ee059118e5de431041a4b035260a2519c86d694
4,310
py
Python
openapi_client/models/live_facilities.py
hypostulate/mbta-api-client
f18903b6269c523c733a31574ff4579349fed3f8
[ "MIT" ]
null
null
null
openapi_client/models/live_facilities.py
hypostulate/mbta-api-client
f18903b6269c523c733a31574ff4579349fed3f8
[ "MIT" ]
null
null
null
openapi_client/models/live_facilities.py
hypostulate/mbta-api-client
f18903b6269c523c733a31574ff4579349fed3f8
[ "MIT" ]
null
null
null
# coding: utf-8 """ MBTA MBTA service API. https://www.mbta.com Source code: https://github.com/mbta/api # noqa: E501 The version of the OpenAPI document: 3.0 Contact: developer@mbta.com Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from op...
28.543046
97
0.583759
9ee08e8ee77b763659676e9b348a1dd59d6723a8
646
py
Python
services/traction/acapy_wrapper/models/v20_cred_issue_request.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
12
2022-01-29T20:30:03.000Z
2022-03-29T11:46:14.000Z
services/traction/acapy_wrapper/models/v20_cred_issue_request.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
38
2021-11-22T17:52:50.000Z
2022-03-31T17:52:00.000Z
services/traction/acapy_wrapper/models/v20_cred_issue_request.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
9
2021-11-22T18:05:48.000Z
2022-03-29T11:25:08.000Z
# coding: utf-8 from __future__ import annotations from datetime import date, datetime # noqa: F401 import re # noqa: F401 from typing import Any, Dict, List, Optional # noqa: F401 from pydantic import AnyUrl, BaseModel, EmailStr, validator # noqa: F401 class V20CredIssueRequest(BaseModel): """NOTE: This c...
24.846154
96
0.736842
9ee0c4899626e6e64b3b8b85fa9b7e19d56215d2
4,007
py
Python
keepupthepace/persistence/profilepersistence.py
olom70/pKeepUpThePace
9fd2cd1a6aa20a21bf41cbad854ab244089d8746
[ "MIT" ]
null
null
null
keepupthepace/persistence/profilepersistence.py
olom70/pKeepUpThePace
9fd2cd1a6aa20a21bf41cbad854ab244089d8746
[ "MIT" ]
4
2021-06-08T21:10:15.000Z
2022-03-12T00:21:24.000Z
keepupthepace/persistence/profilepersistence.py
olom70/pKeepUpThePace
9fd2cd1a6aa20a21bf41cbad854ab244089d8746
[ "MIT" ]
null
null
null
# Module to persist (save/load) profiles created in the application Keep Up The Pace import shelve from random import randrange import os import sys sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '../..'))) #from keepupthepace.persistence.iterregistry import IterRegistry import keepupthepace...
30.587786
93
0.656102
9ee0f2b6f4c34ae96f7a9a6694678771dcd6ebef
10,154
py
Python
ocs_ci/ocs/resources/packagemanifest.py
nbalacha/ocs-ci
9c5a5474d62777e868b80894d6b0f3567a7b605d
[ "MIT" ]
null
null
null
ocs_ci/ocs/resources/packagemanifest.py
nbalacha/ocs-ci
9c5a5474d62777e868b80894d6b0f3567a7b605d
[ "MIT" ]
null
null
null
ocs_ci/ocs/resources/packagemanifest.py
nbalacha/ocs-ci
9c5a5474d62777e868b80894d6b0f3567a7b605d
[ "MIT" ]
null
null
null
""" Package manifest related functionalities """ import logging from ocs_ci.framework import config from ocs_ci.ocs import constants from ocs_ci.ocs.exceptions import ( CommandFailed, CSVNotFound, ChannelNotFound, NoInstallPlanForApproveFoundException, ResourceNotFoundError, ) from ocs_ci.ocs.ocp i...
34.65529
86
0.599468
9ee0f52ab04f04b337df8378ef9b3dcd99734b88
4,964
py
Python
cluster.py
b04901014/FT-w2v2-ser
e70175c2620b786269105ab0301cc0caab2911d0
[ "MIT" ]
32
2021-10-30T00:52:24.000Z
2022-03-21T00:10:46.000Z
cluster.py
b04901014/FT-w2v2-ser
e70175c2620b786269105ab0301cc0caab2911d0
[ "MIT" ]
7
2021-11-05T11:12:46.000Z
2022-02-07T15:21:42.000Z
cluster.py
b04901014/FT-w2v2-ser
e70175c2620b786269105ab0301cc0caab2911d0
[ "MIT" ]
6
2021-11-02T07:21:10.000Z
2022-03-17T11:07:53.000Z
from pretrain.trainer import MinimalClassifier from pretrain.dataloader import MixedDataset import faiss from torch.utils import data import torch from tqdm import tqdm import numpy as np import json import os import argparse parser = argparse.ArgumentParser() parser.add_argument('--num_clusters', type=str, default='8...
34.957746
108
0.676873
9ee16b84f0182c0406e436e592c719a5a29abd0b
1,825
py
Python
userbot/plugins/fake_info.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
null
null
null
userbot/plugins/fake_info.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
null
null
null
userbot/plugins/fake_info.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
null
null
null
# Copyright (C) @chsaiujwal 2020 # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # # This program is distributed in the hope that it wil...
37.244898
382
0.667397
9ee16bb67b037d19f092d353713581ba86e111a7
4,505
py
Python
monk.py
savvytruffle/monk
9c67ad719f295f88c9a88fe93727482876041de9
[ "MIT" ]
null
null
null
monk.py
savvytruffle/monk
9c67ad719f295f88c9a88fe93727482876041de9
[ "MIT" ]
null
null
null
monk.py
savvytruffle/monk
9c67ad719f295f88c9a88fe93727482876041de9
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 ############################################################################### # Converts formatting in bibtex files so each entry is tagged by SurnameYear # instead of default sequence... mostly because in papers it's easier to cite # $> python monk.py input.bib output.bib ####...
36.330645
154
0.594673
9ee1a17e3d28535e53043912b1d19589bd6b099a
520
py
Python
Glyph Making/Add_smallcaps.py
protimient/Glyphs-Scripts
0481ea01153844667cff8cfa3fad97c33af09956
[ "Apache-2.0" ]
2
2021-02-12T20:36:29.000Z
2021-11-03T08:04:01.000Z
Glyph Making/Add_smallcaps.py
protimient/Glyphs-Scripts
0481ea01153844667cff8cfa3fad97c33af09956
[ "Apache-2.0" ]
null
null
null
Glyph Making/Add_smallcaps.py
protimient/Glyphs-Scripts
0481ea01153844667cff8cfa3fad97c33af09956
[ "Apache-2.0" ]
null
null
null
# MenuTitle: Add Missing Smallcaps # -*- coding: utf-8 -*- __doc__ = """ Adds an empty .sc glyph to match each uppercase glyph in the font. """ # Glyphs.showMacroWindow() Glyphs.font.disableUpdateInterface() for g in [g for g in Glyphs.font.glyphs if g.subCategory == "Uppercase"]: sc_name = g.name.lower() + '.sc...
26
73
0.665385
9ee1e3a80f1a1ae4aac3e1a2400940c6a6c7baae
130
py
Python
lab2/utils.py
LRY89757/hello-dian.ai
3072dd2c6ece5c91977a2e8d36978f5dcbcdd3be
[ "MIT" ]
13
2021-07-20T05:25:54.000Z
2022-03-23T09:35:48.000Z
lab2/utils.py
LRY89757/hello-dian.ai
3072dd2c6ece5c91977a2e8d36978f5dcbcdd3be
[ "MIT" ]
2
2021-10-09T06:35:28.000Z
2021-10-17T11:43:43.000Z
lab2/utils.py
LRY89757/hello-dian.ai
3072dd2c6ece5c91977a2e8d36978f5dcbcdd3be
[ "MIT" ]
22
2021-07-22T14:05:53.000Z
2022-03-26T01:18:27.000Z
import numpy as np import torch def compute_iou(bbox1, bbox2): # TODO Compute IoU of 2 bboxes. ... # End of todo
10.833333
35
0.630769
9ee1ebf017f8199d76a86a7219589aea966cc43d
2,112
py
Python
venv/Lib/site-packages/pyrogram/raw/types/peer_user.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/types/peer_user.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/peer_user.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
30.608696
103
0.61553
9ee1fa7e341d943ec17f4110fa2f8efeb0becc7b
1,521
py
Python
address_book/address_book.py
dizpers/python-address-book-assignment
25d869887f1a069dd54c51d755c888ba6c46bbe8
[ "MIT" ]
null
null
null
address_book/address_book.py
dizpers/python-address-book-assignment
25d869887f1a069dd54c51d755c888ba6c46bbe8
[ "MIT" ]
null
null
null
address_book/address_book.py
dizpers/python-address-book-assignment
25d869887f1a069dd54c51d755c888ba6c46bbe8
[ "MIT" ]
null
null
null
from group import Group from person import Person __all__ = ['AddressBook'] class AddressBook(object): def __init__(self): """ Constructor of AddressBook """ self.persons = [] self.groups = [] def add_person(self, person): """ Add the person to the a...
25.35
102
0.574622
9ee2060475f1cb86e72fda03cebcb963dd3316ad
4,516
py
Python
examples/sis-model/simulator.py
jedbrown/pakman
16f605a2dd153f00829b596cce3cdd458b6cefb5
[ "BSD-3-Clause" ]
14
2019-11-09T15:07:47.000Z
2021-04-06T14:46:20.000Z
examples/sis-model/simulator.py
jedbrown/pakman
16f605a2dd153f00829b596cce3cdd458b6cefb5
[ "BSD-3-Clause" ]
1
2020-09-16T18:12:52.000Z
2020-10-31T19:00:09.000Z
examples/sis-model/simulator.py
jedbrown/pakman
16f605a2dd153f00829b596cce3cdd458b6cefb5
[ "BSD-3-Clause" ]
3
2019-12-25T06:11:06.000Z
2020-03-12T19:02:32.000Z
from numpy.random import uniform from numpy import log, sqrt from sys import argv, stdin, stdout, stderr # Process arguments if len(argv) < 6: stderr.write("Usage: {} S0 I0 TEND NOBS DATAFILE [TRACEFILE]\n" "Read S and I counts from DATAFILE, " "epsilon and parameters beta and gamma from st...
25.805714
92
0.578388
9ee231471d15a18b49e823598ff988cf65790003
3,839
py
Python
cloudpassage/api_key_manager.py
joshuaguite/cloudpassage-halo-python-sdk
ab8775377c9e99ed89d335ee44a92553fce49eb7
[ "BSD-3-Clause" ]
null
null
null
cloudpassage/api_key_manager.py
joshuaguite/cloudpassage-halo-python-sdk
ab8775377c9e99ed89d335ee44a92553fce49eb7
[ "BSD-3-Clause" ]
null
null
null
cloudpassage/api_key_manager.py
joshuaguite/cloudpassage-halo-python-sdk
ab8775377c9e99ed89d335ee44a92553fce49eb7
[ "BSD-3-Clause" ]
null
null
null
"""CloudPassage Api Key Manager""" import os import yaml import cloudpassage.sanity as sanity class ApiKeyManager(object): """Retrieves API keys from file or environment. If instantiated with no arguments, it will return credentials from environment variables. If there are no credentials set in environ...
31.991667
79
0.622818
9ee259a54abfa5ea7eb50f8f4363c130bf14f96f
9,139
py
Python
homeassistant/components/media_player/cast.py
mweinelt/home-assistant
cc0d0a38d7f24885e5146bd0826fa8ba3e2b39a1
[ "MIT" ]
null
null
null
homeassistant/components/media_player/cast.py
mweinelt/home-assistant
cc0d0a38d7f24885e5146bd0826fa8ba3e2b39a1
[ "MIT" ]
null
null
null
homeassistant/components/media_player/cast.py
mweinelt/home-assistant
cc0d0a38d7f24885e5146bd0826fa8ba3e2b39a1
[ "MIT" ]
null
null
null
""" Provide functionality to interact with Cast devices on the network. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/media_player.cast/ """ # pylint: disable=import-error import logging import voluptuous as vol from homeassistant.components.media_pla...
31.513793
79
0.667907
9ee275d02e5e34ce4af7371f8c9c68c861cd7404
1,545
py
Python
beaconServer/variantsInterpretations.py
sofiapfund/bycon
d7993eaf99cfce46f3025718ab3aa3c0f812badd
[ "CC0-1.0" ]
null
null
null
beaconServer/variantsInterpretations.py
sofiapfund/bycon
d7993eaf99cfce46f3025718ab3aa3c0f812badd
[ "CC0-1.0" ]
1
2021-03-18T12:17:59.000Z
2021-03-18T12:19:24.000Z
beaconServer/variantsInterpretations.py
sofiapfund/bycon
d7993eaf99cfce46f3025718ab3aa3c0f812badd
[ "CC0-1.0" ]
null
null
null
#!/usr/local/bin/python3 import cgi, cgitb, sys from os import path, environ, pardir # local dir_path = path.dirname( path.abspath(__file__) ) pkg_path = path.join( dir_path, pardir ) sys.path.append( pkg_path ) from beaconServer import * #############################################################################...
28.090909
81
0.346278
9ee2854f15e52260dfd1a51edc4988e8ff81eb69
13,163
py
Python
contrib/python/src/python/pants/contrib/python/checks/tasks/python_eval.py
tpasternak/pants
edf5716283d449852309fff1a10dd351dfbf3493
[ "Apache-2.0" ]
1
2021-05-05T18:58:28.000Z
2021-05-05T18:58:28.000Z
contrib/python/src/python/pants/contrib/python/checks/tasks/python_eval.py
tpasternak/pants
edf5716283d449852309fff1a10dd351dfbf3493
[ "Apache-2.0" ]
null
null
null
contrib/python/src/python/pants/contrib/python/checks/tasks/python_eval.py
tpasternak/pants
edf5716283d449852309fff1a10dd351dfbf3493
[ "Apache-2.0" ]
3
2020-06-30T08:28:13.000Z
2021-07-28T09:35:57.000Z
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import hashlib import os import pkgutil from pants.backend.python.interpreter_cache import PythonInterpreterCache from pants.backend.python.targets.python_binary import PythonBinary from ...
45.078767
107
0.618856
9ee2aad2a2de8921538a3dbd22d884d95cf5a15e
4,463
py
Python
ping_async.py
xinlin-z/pingscan
e91c54cad88e4bea785df0ec3598de42e453e5f8
[ "MIT" ]
null
null
null
ping_async.py
xinlin-z/pingscan
e91c54cad88e4bea785df0ec3598de42e453e5f8
[ "MIT" ]
4
2021-12-10T08:37:04.000Z
2022-03-13T05:36:02.000Z
ping_async.py
xinlin-z/pingscan
e91c54cad88e4bea785df0ec3598de42e453e5f8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import socket import select import selectors from time import monotonic as time from common import (gen_ip, icmp_pkt, ck_recv_pkt, RECV_BUFFER, ICMP_IDENT, PROTO_ICMP) class ipaddr(): # I want timeout to be 2, but it seems the async logic needs a little #...
30.993056
77
0.518037
9ee2b594d053f844aac5ea94dfff081f7741e424
13,718
py
Python
oec_sync/sync/repo_manager.py
SamnnyWong/OECSynchronizer
9b28c96988158f5717bacd47f59cbabb1ce072cd
[ "Unlicense", "MIT" ]
null
null
null
oec_sync/sync/repo_manager.py
SamnnyWong/OECSynchronizer
9b28c96988158f5717bacd47f59cbabb1ce072cd
[ "Unlicense", "MIT" ]
null
null
null
oec_sync/sync/repo_manager.py
SamnnyWong/OECSynchronizer
9b28c96988158f5717bacd47f59cbabb1ce072cd
[ "Unlicense", "MIT" ]
null
null
null
from os import path, chmod from shutil import rmtree from dulwich import porcelain, errors from typing import Callable import urllib import logging import git import stat ''' Using porcelain and git. Due to memory leak, this should be used in a separate thread that only runs for as long as needed for the initialization...
40.949254
79
0.535209
9ee2e6e77e7a7cbc32219c8ecacdb54cebf2f930
335
py
Python
src/utils/__init__.py
ebreton/flaskbootstrap
6909577585cc80a1d3be1848c92b96d09ed5fb29
[ "MIT" ]
null
null
null
src/utils/__init__.py
ebreton/flaskbootstrap
6909577585cc80a1d3be1848c92b96d09ed5fb29
[ "MIT" ]
1
2018-02-08T12:35:54.000Z
2018-02-08T12:35:54.000Z
src/utils/__init__.py
ebreton/flaskbootstrap
6909577585cc80a1d3be1848c92b96d09ed5fb29
[ "MIT" ]
1
2018-03-14T09:01:14.000Z
2018-03-14T09:01:14.000Z
from .env import get_mandatory_env, get_optional_env from .logging import set_logging_config from .runner import import_class_from_string, run_command from .maintenance import deprecated __all__ = [ get_mandatory_env, get_optional_env, set_logging_config, import_class_from_string, run_command, ...
22.333333
57
0.79403
9ee2ff89747428741a05ef55b0e2338c9686c998
9,576
py
Python
rerun_scripts/rerun_for_dev.py
biy001/social-cnn-pytorch
e838d55b90f1da9ae2751c185bff87901b0648e3
[ "MIT" ]
29
2018-12-19T03:50:56.000Z
2022-03-08T21:18:22.000Z
rerun_scripts/rerun_for_dev.py
biy001/social-cnn-pytorch
e838d55b90f1da9ae2751c185bff87901b0648e3
[ "MIT" ]
1
2019-08-29T07:00:58.000Z
2019-08-29T07:00:58.000Z
rerun_scripts/rerun_for_dev.py
biy001/social-cnn-pytorch
e838d55b90f1da9ae2751c185bff87901b0648e3
[ "MIT" ]
11
2018-12-21T16:20:04.000Z
2021-06-11T13:00:15.000Z
import os import sys import torch import torch.utils.data import pickle import numpy as np import random import time import timeit import argparse from torch.autograd import Variable import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from try_model import CNNTrajNet, reshape_output, displ...
50.93617
184
0.70071
9ee3092f06aec4a76baa3fec988b2e3d7baeb1c9
689
py
Python
utils/args.py
akyruu/blender-cartography-addon
4f34b029d9b6a72619227ab3ceaed9393506934e
[ "Apache-2.0" ]
null
null
null
utils/args.py
akyruu/blender-cartography-addon
4f34b029d9b6a72619227ab3ceaed9393506934e
[ "Apache-2.0" ]
null
null
null
utils/args.py
akyruu/blender-cartography-addon
4f34b029d9b6a72619227ab3ceaed9393506934e
[ "Apache-2.0" ]
null
null
null
""" Module for utility blender system methods """ import sys from argparse import ArgumentParser from typing import List # VARIABLES =================================================================== __arg_parser = ArgumentParser() # METHODS ===================================================================== def...
25.518519
79
0.560232
9ee30dbc83b991e8097cac6f806c7fb71f8fb7fd
2,700
py
Python
tests/core/test_generator.py
run-x/opta
64606498334f2b1aa79f5a431465eafdf5ca5ed7
[ "Apache-2.0" ]
595
2021-05-21T22:30:48.000Z
2022-03-31T15:40:25.000Z
tests/core/test_generator.py
run-x/opta
64606498334f2b1aa79f5a431465eafdf5ca5ed7
[ "Apache-2.0" ]
463
2021-05-24T21:32:59.000Z
2022-03-31T17:12:33.000Z
tests/core/test_generator.py
run-x/opta
64606498334f2b1aa79f5a431465eafdf5ca5ed7
[ "Apache-2.0" ]
29
2021-05-21T22:27:52.000Z
2022-03-28T16:43:45.000Z
import json import os import pytest import yaml from pytest_mock import MockFixture from opta.constants import tf_modules_path from opta.core.generator import gen_all, gen_opta_resource_tags from opta.exceptions import UserErrors from opta.layer import Layer from tests.fixtures.basic_apply import BASIC_APPLY class ...
36
79
0.677778
9ee35840776829e3607b6ff3f2251a18dd6111a1
3,099
py
Python
sem/exporters/conll.py
YoannDupont/SEM
ff21c5dc9a8e99eda81dc266e67cfa97dec7c243
[ "MIT" ]
22
2016-11-13T21:08:58.000Z
2021-04-26T07:04:54.000Z
sem/exporters/conll.py
Raphencoder/SEM
ff21c5dc9a8e99eda81dc266e67cfa97dec7c243
[ "MIT" ]
15
2016-11-15T10:21:07.000Z
2021-11-08T10:08:05.000Z
sem/exporters/conll.py
Raphencoder/SEM
ff21c5dc9a8e99eda81dc266e67cfa97dec7c243
[ "MIT" ]
8
2016-11-15T10:21:41.000Z
2022-03-04T21:28:05.000Z
# -*- coding: utf-8 -*- """ file: conll.py Description: export annotated file to CoNLL format author: Yoann Dupont MIT License Copyright (c) 2018 Yoann Dupont Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal ...
39.730769
158
0.642143
9ee35dd416d914b76a416aa75c52428dd3ffc96d
1,570
py
Python
yaplon/writer.py
twardoch/yaplon
baf54757b5dbc8494623bfcdcf5f1651e6c35522
[ "MIT" ]
4
2020-08-27T02:13:07.000Z
2022-01-05T21:51:00.000Z
yaplon/writer.py
twardoch/yaplon
baf54757b5dbc8494623bfcdcf5f1651e6c35522
[ "MIT" ]
6
2019-08-17T07:32:00.000Z
2021-12-24T00:44:26.000Z
yaplon/writer.py
twardoch/yaplon
baf54757b5dbc8494623bfcdcf5f1651e6c35522
[ "MIT" ]
1
2020-05-21T05:15:33.000Z
2020-05-21T05:15:33.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ """ from collections import Mapping, OrderedDict import click import dict2xml import xmltodict as oxml from yaplon import ojson from yaplon import oplist from yaplon import oyaml def json(obj, output, mini=False, binary=False): ojson.json_dump(obj, output, pres...
23.787879
99
0.610828
9ee36b7cf258ad812841403da00d79ce8e2aaf7d
2,223
py
Python
src/graph_transpiler/webdnn/backend/webassembly/kernels/linear.py
gunpowder78/webdnn
c659ea49007f91d178ce422a1eebe289516a71ee
[ "MIT" ]
1
2018-07-26T13:52:21.000Z
2018-07-26T13:52:21.000Z
src/graph_transpiler/webdnn/backend/webassembly/kernels/linear.py
gunpowder78/webdnn
c659ea49007f91d178ce422a1eebe289516a71ee
[ "MIT" ]
null
null
null
src/graph_transpiler/webdnn/backend/webassembly/kernels/linear.py
gunpowder78/webdnn
c659ea49007f91d178ce422a1eebe289516a71ee
[ "MIT" ]
null
null
null
from typing import List from webdnn.backend.code_generator.allocator import MemoryLayout from webdnn.backend.code_generator.injectors.buffer_injector import BufferInjector from webdnn.backend.code_generator.injectors.kernel_name_injector import KernelNameInjector from webdnn.backend.webassembly.generator import Webass...
30.875
91
0.65632
9ee372b7f96c8cbd15e48e06b254c80ae6096481
1,675
py
Python
basic/functions.py
DingKe/pytorch_workplace
4bc60a2c3640de522d0b72262667ba70391ba16e
[ "MIT" ]
184
2017-05-23T12:06:08.000Z
2021-12-21T09:09:51.000Z
basic/functions.py
Ewenwan/pytorch_workplace
0ef2e905596a0b0db11b4929564175e6f7ab7423
[ "MIT" ]
8
2017-08-14T11:40:20.000Z
2019-01-16T13:14:32.000Z
basic/functions.py
Ewenwan/pytorch_workplace
0ef2e905596a0b0db11b4929564175e6f7ab7423
[ "MIT" ]
61
2017-04-29T09:53:47.000Z
2021-02-19T02:13:14.000Z
from __future__ import print_function import math import torch import torch.nn as nn from torch.autograd import Function class ReLUF(Function): @staticmethod def forward(cxt, input): cxt.save_for_backward(input) output = input.clamp(min=0) return output @staticmethod def ...
21.474359
56
0.635224
9ee3a6424c767959062510c8ddf4217644aa805e
17,721
py
Python
examples/10_cars/runner-update_6_2_16.py
ucbtrans/sumo-project
a1232cfa6705d79313733ae118777a276536b088
[ "BSD-2-Clause" ]
5
2017-10-26T23:18:45.000Z
2021-12-13T08:48:54.000Z
examples/10_cars/runner-update_6_2_16.py
ucbtrans/sumo-project
a1232cfa6705d79313733ae118777a276536b088
[ "BSD-2-Clause" ]
null
null
null
examples/10_cars/runner-update_6_2_16.py
ucbtrans/sumo-project
a1232cfa6705d79313733ae118777a276536b088
[ "BSD-2-Clause" ]
3
2016-06-14T19:33:22.000Z
2021-03-23T03:41:31.000Z
#!/usr/bin/env python #@file runner.py import os import sys import optparse import subprocess import random import pdb import matplotlib.pyplot as plt import math import numpy, scipy.io from getTrajectory import * # import python modules from $SUMO_HOME/tools directory try: sys.path.append(os.path.join(os.path.d...
45.206633
208
0.602675
9ee3a7e06c8218a84413f5b0616eb0f70d878ee0
3,224
py
Python
src/preprocessing/satellite_data/resample_imagery.py
JoycelynLongdon/Mres_Research_Project
0c037063e1a351b9e78b4f430924c3b84f73e49c
[ "MIT" ]
null
null
null
src/preprocessing/satellite_data/resample_imagery.py
JoycelynLongdon/Mres_Research_Project
0c037063e1a351b9e78b4f430924c3b84f73e49c
[ "MIT" ]
null
null
null
src/preprocessing/satellite_data/resample_imagery.py
JoycelynLongdon/Mres_Research_Project
0c037063e1a351b9e78b4f430924c3b84f73e49c
[ "MIT" ]
null
null
null
import rasterio from rasterio.plot import show from rasterio.merge import merge from rasterio.plot import show import rasterio.features import rasterio.warp import glob import os import rioxarray as xr import pandas as pd import geopandas as gpd import numpy as np from rasterio.enums import Resampling from rasterio.crs...
29.577982
154
0.71495
9ee42274c915fa0536df28d2123953e9339891da
2,635
py
Python
doc_build/conf.py
madrazzl3/pystratis
8b78552e753ae1d12f2afb39e9a322a270fbb7b3
[ "MIT" ]
null
null
null
doc_build/conf.py
madrazzl3/pystratis
8b78552e753ae1d12f2afb39e9a322a270fbb7b3
[ "MIT" ]
null
null
null
doc_build/conf.py
madrazzl3/pystratis
8b78552e753ae1d12f2afb39e9a322a270fbb7b3
[ "MIT" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
39.328358
163
0.677419
9ee4348d1f919b04fe1818e95f0ad314cd438454
21,372
py
Python
src/pyxer/template/templatestream.py
tml/pyxer
4e3677b3f2c7f23ebf039a9ba9733f68a8460189
[ "MIT" ]
null
null
null
src/pyxer/template/templatestream.py
tml/pyxer
4e3677b3f2c7f23ebf039a9ba9733f68a8460189
[ "MIT" ]
null
null
null
src/pyxer/template/templatestream.py
tml/pyxer
4e3677b3f2c7f23ebf039a9ba9733f68a8460189
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- ############################################# ## (C)opyright by Dirk Holtwick, 2008 ## ## All rights reserved ## ############################################# import cgi import copy import inspect import logging import os import os.path import re import string import sy...
31.38326
144
0.455783
9ee442ebda6f3186f15d973d26875106da0ac302
15,399
py
Python
lore/pipelines/iterative.py
startrekor/lore
72c8a28f19565373f1addd8ff65794211ed65edf
[ "MIT" ]
null
null
null
lore/pipelines/iterative.py
startrekor/lore
72c8a28f19565373f1addd8ff65794211ed65edf
[ "MIT" ]
null
null
null
lore/pipelines/iterative.py
startrekor/lore
72c8a28f19565373f1addd8ff65794211ed65edf
[ "MIT" ]
1
2018-03-13T05:57:49.000Z
2018-03-13T05:57:49.000Z
from __future__ import absolute_import from abc import ABCMeta import codecs import hashlib import io import logging import os import pickle import sqlite3 import types import threading import pandas import lore from lore.util import timer, timed from lore.pipelines import Observations logger = logging.getLogger(_...
35.481567
162
0.512436
9ee445405d5732a029186cd2bea0857c7119b907
845
py
Python
tests/contact/test_views.py
miguel-osuna/Kanban-Boards
3f75ccfa4d02213a1e3a953adb29a31d00747f89
[ "MIT" ]
null
null
null
tests/contact/test_views.py
miguel-osuna/Kanban-Boards
3f75ccfa4d02213a1e3a953adb29a31d00747f89
[ "MIT" ]
null
null
null
tests/contact/test_views.py
miguel-osuna/Kanban-Boards
3f75ccfa4d02213a1e3a953adb29a31d00747f89
[ "MIT" ]
null
null
null
from flask import url_for from lib.tests import assert_status_with_message class TestContact(object): def test_contact_page(self, client): """ Contact page should respond with a success 200. """ response = client.get(url_for("contact.index")) assert response.status_code == 200 def te...
32.5
83
0.63787
9ee454e01318ad9d7ffd3e8389cf0a010f5bd73e
3,876
py
Python
tests/integration/test_pex_entry_points.py
sthagen/pantsbuild-pex
bffe6c3641b809cd3b20adbc7fdb2cf7e5f54309
[ "Apache-2.0" ]
null
null
null
tests/integration/test_pex_entry_points.py
sthagen/pantsbuild-pex
bffe6c3641b809cd3b20adbc7fdb2cf7e5f54309
[ "Apache-2.0" ]
null
null
null
tests/integration/test_pex_entry_points.py
sthagen/pantsbuild-pex
bffe6c3641b809cd3b20adbc7fdb2cf7e5f54309
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import os.path import subprocess from textwrap import dedent from pex.common import safe_open from pex.testing import make_project, run_pex_command from pex.typing import TYPE_CHECKING i...
31.008
93
0.586687
9ee45d1bb565874552c9cf8824a4da0b79b84a4d
2,129
py
Python
tests/unit/command/test_pkg.py
amisev/dvc
025de9aeb509a539d5560f82caf47e851162f4a2
[ "Apache-2.0" ]
null
null
null
tests/unit/command/test_pkg.py
amisev/dvc
025de9aeb509a539d5560f82caf47e851162f4a2
[ "Apache-2.0" ]
null
null
null
tests/unit/command/test_pkg.py
amisev/dvc
025de9aeb509a539d5560f82caf47e851162f4a2
[ "Apache-2.0" ]
null
null
null
from dvc.cli import parse_args from dvc.command.pkg import CmdPkgInstall, CmdPkgUninstall, CmdPkgImport from dvc.command.pkg import CmdPkgGet def test_pkg_install(mocker, dvc_repo): args = parse_args( [ "pkg", "install", "url", "--version", "vers...
22.177083
72
0.537341
9ee46a09338cbd1925fc0b265087efa4c95c0a30
456
py
Python
test/oop_script_test.py
jae-finger/lambdata-jae-finger
80b25dc286726210de2b7923a553293e32a0465c
[ "MIT" ]
null
null
null
test/oop_script_test.py
jae-finger/lambdata-jae-finger
80b25dc286726210de2b7923a553293e32a0465c
[ "MIT" ]
2
2020-03-31T11:25:10.000Z
2021-02-02T22:35:06.000Z
test/oop_script_test.py
jae-finger/lambdata_jaefinger
80b25dc286726210de2b7923a553293e32a0465c
[ "MIT" ]
null
null
null
#test/my_mod_test.py import unittest import numpy as np from my_lambdata.oop_refactored_script import NullFinder class nullfinder_test(unittest.TestCase): def test_isnan(self): test_list_na = [1, np.NaN] nullf_na = NullFinder(test_list_na) nulls = nullf_na.findnulls() self.assertEq...
28.5
56
0.699561
9ee477f86c8600c7b3a6b4df3f82df30211f5791
1,342
py
Python
grouper/usecases/list_grants.py
TimYagan/merou
3d3cd5e17eab5ffe259f7b41a925af6f47ec8988
[ "Apache-2.0" ]
null
null
null
grouper/usecases/list_grants.py
TimYagan/merou
3d3cd5e17eab5ffe259f7b41a925af6f47ec8988
[ "Apache-2.0" ]
null
null
null
grouper/usecases/list_grants.py
TimYagan/merou
3d3cd5e17eab5ffe259f7b41a925af6f47ec8988
[ "Apache-2.0" ]
null
null
null
from abc import ABCMeta, abstractmethod from typing import TYPE_CHECKING from six import with_metaclass if TYPE_CHECKING: from grouper.entities.permission_grant import UniqueGrantsOfPermission from grouper.usecases.interfaces import PermissionInterface from typing import Dict class ListGrantsUI(with_met...
31.209302
77
0.713115
9ee48ce7932e7653bf1d0c29373c56acc8459b75
492
py
Python
tests/_validation/test_geom_validation.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
16
2021-04-16T02:01:29.000Z
2022-01-01T08:53:49.000Z
tests/_validation/test_geom_validation.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
613
2021-03-24T03:37:38.000Z
2022-03-26T10:58:37.000Z
tests/_validation/test_geom_validation.py
simon-ritchie/apyscript
c319f8ab2f1f5f7fad8d2a8b4fc06e7195476279
[ "MIT" ]
2
2021-06-20T07:32:58.000Z
2021-12-26T08:22:11.000Z
import apysc as ap from apysc._validation import geom_validation from tests.testing_helper import assert_raises def test_validate_point_2d_type() -> None: point: ap.Point2D = ap.Point2D(x=10, y=20) geom_validation.validate_point_2d_type(point=point) assert_raises( expected_error_class=V...
32.8
63
0.71748
9ee496f5e9fab0183fdafac86e7a10bfc8cfab67
4,004
py
Python
distributed/protocol/tests/test_pickle.py
marco-neumann-jdas/distributed
86b5743ae1be52c80ebe440f5b58e8529fe2817e
[ "BSD-3-Clause" ]
null
null
null
distributed/protocol/tests/test_pickle.py
marco-neumann-jdas/distributed
86b5743ae1be52c80ebe440f5b58e8529fe2817e
[ "BSD-3-Clause" ]
null
null
null
distributed/protocol/tests/test_pickle.py
marco-neumann-jdas/distributed
86b5743ae1be52c80ebe440f5b58e8529fe2817e
[ "BSD-3-Clause" ]
null
null
null
from functools import partial import gc from operator import add import pickle import weakref import sys import pytest from distributed.protocol import deserialize, serialize from distributed.protocol.pickle import HIGHEST_PROTOCOL, dumps, loads def test_pickle_data(): data = [1, b"123", "123", [123], {}, set()...
27.054054
75
0.586663
9ee49cfd926000f32d31c9c1295b1278f31beacc
5,417
py
Python
pytest_aiomoto/aiomoto_batch.py
dazza-codes/pytest-aiomoto
f922ae99e00fc89f0d51a677dab5bc9ec7255de4
[ "Apache-2.0" ]
1
2021-12-07T02:41:56.000Z
2021-12-07T02:41:56.000Z
pytest_aiomoto/aiomoto_batch.py
dazza-codes/pytest-aiomoto
f922ae99e00fc89f0d51a677dab5bc9ec7255de4
[ "Apache-2.0" ]
5
2021-12-28T04:20:40.000Z
2022-03-24T08:18:30.000Z
pytest_aiomoto/aiomoto_batch.py
dazza-codes/pytest-aiomoto
f922ae99e00fc89f0d51a677dab5bc9ec7255de4
[ "Apache-2.0" ]
null
null
null
# Copyright 2019-2022 Darren Weber # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
31.864706
94
0.728447
9ee50c5d23313641847c572d2a8bd7ae5bb2d03c
7,105
py
Python
pycryptoki/mechanism/aes.py
nondejus/pycryptoki
5dbc9fe6b1d17b2bc52a3e91a01abcd0ddc2b0e3
[ "Apache-2.0" ]
null
null
null
pycryptoki/mechanism/aes.py
nondejus/pycryptoki
5dbc9fe6b1d17b2bc52a3e91a01abcd0ddc2b0e3
[ "Apache-2.0" ]
null
null
null
pycryptoki/mechanism/aes.py
nondejus/pycryptoki
5dbc9fe6b1d17b2bc52a3e91a01abcd0ddc2b0e3
[ "Apache-2.0" ]
null
null
null
""" AES-specific mechanism implementations. """ import logging from ctypes import c_void_p, cast, pointer, sizeof from . import Mechanism from ..attributes import to_byte_array from ..cryptoki import ( CK_ULONG, CK_BYTE, CK_BYTE_PTR, CK_AES_XTS_PARAMS, CK_AES_GCM_PARAMS, CK_KEY_DERIVATION_STRIN...
33.356808
92
0.631246
9ee542aa8cae2e4e0e6bd5fa8b7088bb1b1f2a85
997
py
Python
qiita_pet/uimodules/__init__.py
wasade/qiita
77eb673c5910d35dde8d0c49fb05e10a191f0cf5
[ "BSD-3-Clause" ]
null
null
null
qiita_pet/uimodules/__init__.py
wasade/qiita
77eb673c5910d35dde8d0c49fb05e10a191f0cf5
[ "BSD-3-Clause" ]
null
null
null
qiita_pet/uimodules/__init__.py
wasade/qiita
77eb673c5910d35dde8d0c49fb05e10a191f0cf5
[ "BSD-3-Clause" ]
null
null
null
# ----------------------------------------------------------------------------- # Copyright (c) 2014--, The Qiita Development Team. # # Distributed under the terms of the BSD 3-clause License. # # The full license is in the file LICENSE, distributed with this software. # ------------------------------------------------...
49.85
79
0.647944
9ee543f39c22ed3cdbfdfa4cb9f70b571dd8e88e
3,100
py
Python
appengine/findit/handlers/flake/reporting/flake_report.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/findit/handlers/flake/reporting/flake_report.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine/findit/handlers/flake/reporting/flake_report.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2018 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from gae_libs.handlers.base_handler import BaseHandler from gae_libs.handlers.base_handler import Permission from libs import time_util from model.flake.repo...
36.046512
80
0.715806
9ee54b3f6667aaccb981c44e4dea9a7d888056c8
24,232
py
Python
pipeline/beam_tables.py
Jigsaw-Code/censoredplanet-analysis
72a500c770bd1f72c33ac9e47197754b9ef16f87
[ "Apache-2.0" ]
6
2021-01-20T00:48:40.000Z
2021-11-24T03:24:53.000Z
pipeline/beam_tables.py
Jigsaw-Code/censoredplanet-analysis
72a500c770bd1f72c33ac9e47197754b9ef16f87
[ "Apache-2.0" ]
3
2021-02-19T22:18:08.000Z
2021-03-08T21:40:19.000Z
pipeline/beam_tables.py
Jigsaw-Code/censoredplanet-analysis
72a500c770bd1f72c33ac9e47197754b9ef16f87
[ "Apache-2.0" ]
5
2020-12-08T19:40:50.000Z
2021-07-29T06:56:36.000Z
# Copyright 2020 Jigsaw Operations LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
33.655556
122
0.671426
9ee54b87c6ec790219e7102994db5fe98775d659
2,403
py
Python
utils/visualization.py
jianqiaoSE/ceGan
096ec435b5d03344bf23e05d3e5e3e97cb4b0be5
[ "MIT" ]
1
2021-12-23T09:17:37.000Z
2021-12-23T09:17:37.000Z
utils/visualization.py
jianqiaoSE/ceGan
096ec435b5d03344bf23e05d3e5e3e97cb4b0be5
[ "MIT" ]
null
null
null
utils/visualization.py
jianqiaoSE/ceGan
096ec435b5d03344bf23e05d3e5e3e97cb4b0be5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Author : William # @Project : TextGAN-william # @FileName : visualization.py # @Time : Created at 2019-03-19 # @Blog : http://zhiweil.ml/ # @Description : # Copyrights (C) 2018. All Rights Reserved. import matplotlib.pyplot as plt title_dict = { 'gen_pre...
29.666667
100
0.567208
9ee55373e9d49857769e6e1c7263c9a0d920cda6
1,335
py
Python
data/convert_to_csv.py
uwieder/Hillview
783fcf0399a46961d36cd9eea2369b7ab611662e
[ "Apache-2.0" ]
null
null
null
data/convert_to_csv.py
uwieder/Hillview
783fcf0399a46961d36cd9eea2369b7ab611662e
[ "Apache-2.0" ]
null
null
null
data/convert_to_csv.py
uwieder/Hillview
783fcf0399a46961d36cd9eea2369b7ab611662e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # convert adapted from: http://pjreddie.com/projects/mnist-in-csv/ def convert(imgf, labelf, outf, n): f = open(imgf, "rb") o = open(outf, "w") label = open(labelf, "rb") f.read(16) label.read(8) images = [] for i in range(n): image = [ord(label.read(1))] ...
30.340909
98
0.53633
9ee5586808ece34c1c86857e497b76fb64798b2f
1,020
py
Python
tests/create_test_input_data.py
MatthewJA/wofs
3eacdc8b5b5c399fbe780cb9289e71b7d6ded31c
[ "Apache-2.0" ]
8
2016-11-23T11:03:32.000Z
2020-10-28T23:25:53.000Z
tests/create_test_input_data.py
MatthewJA/wofs
3eacdc8b5b5c399fbe780cb9289e71b7d6ded31c
[ "Apache-2.0" ]
17
2016-10-25T22:46:05.000Z
2021-07-01T02:48:55.000Z
tests/create_test_input_data.py
MatthewJA/wofs
3eacdc8b5b5c399fbe780cb9289e71b7d6ded31c
[ "Apache-2.0" ]
5
2018-05-18T06:48:45.000Z
2021-05-24T06:45:43.000Z
import sys from pathlib import Path import xarray as xr import yaml def create_sample_file(): in_dir = Path(sys.argv[1]) out_file = sys.argv[2] fname = list(in_dir.glob('*.odc-metadata.yaml'))[0] with open(fname) as fin: doc = yaml.safe_load(fin) to_load = [(name, in_dir / details['pat...
25.5
87
0.633333