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
a46995e40c568d9fab0090a1e0fdb13667f1d1ad
3,253
py
Python
data/p2DJ/New/program/qiskit/noisy/startQiskit_noisy378.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p2DJ/New/program/qiskit/noisy/startQiskit_noisy378.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p2DJ/New/program/qiskit/noisy/startQiskit_noisy378.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=2 # total number=13 import cirq import qiskit from qiskit.providers.aer import QasmSimulator from qiskit.test.mock import FakeVigo from qiskit import IBMQ from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from ...
28.787611
82
0.631417
fc4bfecd2d5cf6ac9070193a6f82c0c3ab9e210d
527
py
Python
questions/migrations/0004_auto_20191127_1949.py
kemalayhan/kinda-stackoverflow
99052b78b18cbc562388c4fea87b5ec15cb47067
[ "MIT" ]
7
2021-02-08T19:40:57.000Z
2021-10-01T08:09:21.000Z
questions/migrations/0004_auto_20191127_1949.py
kemalayhan/kinda-stackoverflow
99052b78b18cbc562388c4fea87b5ec15cb47067
[ "MIT" ]
7
2021-04-08T19:57:02.000Z
2022-03-12T00:48:47.000Z
questions/migrations/0004_auto_20191127_1949.py
kemalayhan/kinda-stackoverflow
99052b78b18cbc562388c4fea87b5ec15cb47067
[ "MIT" ]
1
2020-12-21T19:01:52.000Z
2020-12-21T19:01:52.000Z
# Generated by Django 2.2.7 on 2019-11-27 19:49 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('tags', '0001_initial'), ('questions', '0003_auto_20191121_1134'), ] operations = [ migrations.RemoveField( model_name='q...
21.958333
56
0.559772
7ee99d8de55bf14419641acc843a3ccb8ec89200
3,303
py
Python
trending.py
Lissy93/gh-trending-no-cors
c0f3234568e3e9421cb56bef49c92bd7a8e883a8
[ "MIT" ]
1
2021-11-27T00:17:11.000Z
2021-11-27T00:17:11.000Z
trending.py
Lissy93/gh-trending-no-cors
c0f3234568e3e9421cb56bef49c92bd7a8e883a8
[ "MIT" ]
null
null
null
trending.py
Lissy93/gh-trending-no-cors
c0f3234568e3e9421cb56bef49c92bd7a8e883a8
[ "MIT" ]
5
2021-11-17T09:41:52.000Z
2021-11-24T01:04:04.000Z
from tornado.httpclient import AsyncHTTPClient, HTTPRequest from lxml import etree GITHUB_URL = 'https://github.com/' REPOSITORY = GITHUB_URL + 'trending/' DEVELOPER = REPOSITORY + 'developers/' USER_AGENT = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 ' \ 'S...
33.704082
108
0.565546
2eb771325a875f92b36c9d781d7422332007ae5b
353
py
Python
backintime/timeframes.py
akim-mukhtarov/backtesting
2d0491b919885eeddd62c4079c9c7292381cb4f9
[ "MIT" ]
null
null
null
backintime/timeframes.py
akim-mukhtarov/backtesting
2d0491b919885eeddd62c4079c9c7292381cb4f9
[ "MIT" ]
null
null
null
backintime/timeframes.py
akim-mukhtarov/backtesting
2d0491b919885eeddd62c4079c9c7292381cb4f9
[ "MIT" ]
null
null
null
from enum import Enum class Timeframes(Enum): # seconds S1 = 1 S5 = 5 S15 = 15 S30 = 30 # minutes M1 = 60 M3 = 180 M5 = 300 M15 = 900 M30 = 1800 M45 = 2700 # hours H1 = 3600 H2 = 7200 H3 = 10800 H4 = 14400 # day D1 = 864...
13.576923
24
0.436261
bf9628f988b986fae9d8ccc5fb20ae7b2a8d33de
7,944
py
Python
Apache-Spark-Programming-with-Databricks/ASP 3 - Functions/Labs/ASP 3.4L - Abandoned Carts Lab.py
sjuratov/apache-spark-programming-with-databricks
8059b5b8e754d4702c712646282a7592e8b4d53b
[ "CC0-1.0" ]
1
2022-03-20T05:23:50.000Z
2022-03-20T05:23:50.000Z
Apache-Spark-Programming-with-Databricks/ASP 3 - Functions/Labs/ASP 3.4L - Abandoned Carts Lab.py
sjuratov/apache-spark-programming-with-databricks
8059b5b8e754d4702c712646282a7592e8b4d53b
[ "CC0-1.0" ]
null
null
null
Apache-Spark-Programming-with-Databricks/ASP 3 - Functions/Labs/ASP 3.4L - Abandoned Carts Lab.py
sjuratov/apache-spark-programming-with-databricks
8059b5b8e754d4702c712646282a7592e8b4d53b
[ "CC0-1.0" ]
null
null
null
# Databricks notebook source # MAGIC %md-sandbox # MAGIC # MAGIC <div style="text-align: center; line-height: 0; padding-top: 9px;"> # MAGIC <img src="https://databricks.com/wp-content/uploads/2018/03/db-academy-rgb-1200px.png" alt="Databricks Learning" style="width: 600px"> # MAGIC </div> # COMMAND ---------- # M...
28.887273
192
0.68857
97e791cacee4deda9b69e647552f0426007d4227
4,619
py
Python
examples/apiary-scenario/asset_request_workflow.py
cloudblue/connect-python-sdk
82963ee62d8040804e6568af778d3fd0997af162
[ "Apache-2.0" ]
13
2019-12-21T05:03:43.000Z
2022-02-07T14:17:14.000Z
examples/apiary-scenario/asset_request_workflow.py
JaviCerveraIngram/connect-python-sdk
202e9ee8e9c2a0e77ff9343321f6fd946bc49ed6
[ "Apache-2.0" ]
76
2019-02-14T14:28:04.000Z
2019-11-29T11:02:01.000Z
examples/apiary-scenario/asset_request_workflow.py
ingrammicro/connect-python-sdk
656d653e4065637e2cc5768d7d554de17d0120eb
[ "Apache-2.0" ]
8
2019-02-11T08:12:02.000Z
2019-11-19T10:32:08.000Z
# -*- coding: utf-8 -*- # This file is part of the Ingram Micro Cloud Blue Connect SDK. # Copyright (c) 2019-2020 Ingram Micro. All Rights Reserved. """ This is part of the example of the implementation between connect and a Vendor System API. The detail of this scenario is documented in the documentation portal https...
39.144068
99
0.599047
b1b302b70789fd34acbf973ac2df2c9b2b4314aa
5,195
py
Python
src/posts/views.py
vikasvmads/Post-With-Django
8c088c847cc82f42a0d477166a3d5a0c7512b688
[ "MIT" ]
1
2019-04-30T09:07:56.000Z
2019-04-30T09:07:56.000Z
src/posts/views.py
vikasvmads/Post-With-Django
8c088c847cc82f42a0d477166a3d5a0c7512b688
[ "MIT" ]
null
null
null
src/posts/views.py
vikasvmads/Post-With-Django
8c088c847cc82f42a0d477166a3d5a0c7512b688
[ "MIT" ]
null
null
null
try: from urllib import quote_plus #python 2 except: pass try: from urllib.parse import quote_plus #python 3 except: pass from django.contrib import messages from django.contrib.contenttypes.models import ContentType from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django....
29.856322
81
0.744177
9d6633cf565c433921fb4878e1c06b22fc99c4d3
2,380
py
Python
Machine-Learning-with-Python- From-LM-to-DL/Unit 1.Linear Classifiers and Generalizations/my_functions.py
andresdelarosa1887/Public-Projects
db8d8e0c0f5f0f7326346462fcdfe21ce8142a12
[ "Unlicense" ]
1
2020-09-29T17:29:34.000Z
2020-09-29T17:29:34.000Z
Machine-Learning-with-Python- From-LM-to-DL/Unit 1.Linear Classifiers and Generalizations/my_functions.py
andresdelarosa1887/Public-Projects
db8d8e0c0f5f0f7326346462fcdfe21ce8142a12
[ "Unlicense" ]
null
null
null
Machine-Learning-with-Python- From-LM-to-DL/Unit 1.Linear Classifiers and Generalizations/my_functions.py
andresdelarosa1887/Public-Projects
db8d8e0c0f5f0f7326346462fcdfe21ce8142a12
[ "Unlicense" ]
null
null
null
msg= "hello_world" import numpy as np ##Classifier- Im using pegasos from string import punctuation, digits import numpy as np import random from matplotlib import pyplot as plt def get_order(n_samples): try: with open(str(n_samples) + '.txt') as fp: line = fp.readline() return l...
33.521127
90
0.555882
b404a70e7dc272f2ee71a5c99f4226879351975c
1,702
py
Python
test/functional/feature_uacomment.py
PeterL73/veil
2825d735275cd592b1fd5207b0dfdca2d4e3e78c
[ "MIT" ]
124
2018-12-25T00:01:18.000Z
2021-12-26T19:38:43.000Z
test/functional/feature_uacomment.py
PeterL73/veil
2825d735275cd592b1fd5207b0dfdca2d4e3e78c
[ "MIT" ]
702
2018-12-16T18:07:18.000Z
2022-03-18T16:52:14.000Z
test/functional/feature_uacomment.py
PeterL73/veil
2825d735275cd592b1fd5207b0dfdca2d4e3e78c
[ "MIT" ]
151
2018-12-13T07:33:34.000Z
2022-01-29T11:35:23.000Z
#!/usr/bin/env python3 # Copyright (c) 2017-2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the -uacomment option.""" import re from test_framework.test_framework import BitcoinTestFramewo...
41.512195
150
0.692714
6bcd9345c3167dada174c7d901d05f38caabf0c6
115
py
Python
src/tools/inspector/resetOnTargetDestroyed.py
t3kt/raytk
e0e2b3643b2f536d597c5db64f02d17f7e8f23ac
[ "CC-BY-4.0" ]
108
2020-11-23T01:22:37.000Z
2022-03-29T09:27:32.000Z
src/tools/inspector/resetOnTargetDestroyed.py
t3kt/raytk
e0e2b3643b2f536d597c5db64f02d17f7e8f23ac
[ "CC-BY-4.0" ]
794
2020-11-21T22:27:37.000Z
2022-03-24T06:41:19.000Z
src/tools/inspector/resetOnTargetDestroyed.py
t3kt/raytk
e0e2b3643b2f536d597c5db64f02d17f7e8f23ac
[ "CC-BY-4.0" ]
3
2021-06-19T00:57:54.000Z
2021-11-01T11:55:07.000Z
def onDestroy(): ext.inspector.Reset() def onNameChange(changeOp): return def onPathChange(changeOp): return
12.777778
27
0.756522
d61b525b3f398dacd0049fded9924e079ff583a9
814
py
Python
licenses/migrations/0010_auto_20201105_1404.py
ayushmankumar7/cc-licenses
51f0dd26c17c7fcff0008630452cc75505977408
[ "MIT" ]
null
null
null
licenses/migrations/0010_auto_20201105_1404.py
ayushmankumar7/cc-licenses
51f0dd26c17c7fcff0008630452cc75505977408
[ "MIT" ]
null
null
null
licenses/migrations/0010_auto_20201105_1404.py
ayushmankumar7/cc-licenses
51f0dd26c17c7fcff0008630452cc75505977408
[ "MIT" ]
null
null
null
# Generated by Django 2.2.13 on 2020-11-05 19:04 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("licenses", "0009_auto_20201029_1453"), ] operations = [ migrations.AddField( model_name="legalcode", name="deed_url...
25.4375
48
0.570025
40c28d9bee34c66cb0a749e7e883ac7d7820799f
1,503
py
Python
dev/potential/ThreeBodyPotential/three_body_utils.py
eragasa/pypospack
21cdecaf3b05c87acc532d992be2c04d85bfbc22
[ "MIT" ]
4
2018-01-18T19:59:56.000Z
2020-08-25T11:56:52.000Z
dev/potential/ThreeBodyPotential/three_body_utils.py
eragasa/pypospack
21cdecaf3b05c87acc532d992be2c04d85bfbc22
[ "MIT" ]
1
2018-04-22T23:02:13.000Z
2018-04-22T23:02:13.000Z
dev/potential/ThreeBodyPotential/three_body_utils.py
eragasa/pypospack
21cdecaf3b05c87acc532d992be2c04d85bfbc22
[ "MIT" ]
1
2019-09-14T07:04:42.000Z
2019-09-14T07:04:42.000Z
import pytest def get_2body_pairs(symbols): pair = [] for i,s_i in enumerate(symbols): for j,s_j in enumerate(symbols): if i<=j: pair.append("{}{}".format(s_i,s_j)) return pair def get_3body_triples(symbols): triples = [] for i,s_i in enumerate(symbols): ...
21.471429
60
0.667332
77a915d9c9619650b756c00ed070590d72b8be7d
612
py
Python
netbox/utilities/exceptions.py
esljaz/netbox
e7f64334c06748b4b85c54d881f5e2b03b9463b5
[ "Apache-2.0" ]
2
2021-06-02T03:00:05.000Z
2021-07-30T18:52:32.000Z
netbox/utilities/exceptions.py
emersonfelipesp/netbox
fecca5ad83fb6b48a2f15982dfd3242653f105f9
[ "Apache-2.0" ]
25
2019-09-17T19:40:50.000Z
2022-03-11T04:01:55.000Z
netbox/utilities/exceptions.py
emersonfelipesp/netbox
fecca5ad83fb6b48a2f15982dfd3242653f105f9
[ "Apache-2.0" ]
1
2020-09-16T11:31:25.000Z
2020-09-16T11:31:25.000Z
from rest_framework import status from rest_framework.exceptions import APIException class AbortTransaction(Exception): """ A dummy exception used to trigger a database transaction rollback. """ pass class RQWorkerNotRunningException(APIException): """ Indicates the temporary inability to en...
30.6
111
0.75817
8ac483c2426701e883ef8115677e7214048bcf53
68,561
py
Python
fiftyone/utils/coco.py
Pascal0902/fiftyone
94ce6bebac6df848547228869a7825a9e8e67595
[ "Apache-2.0" ]
null
null
null
fiftyone/utils/coco.py
Pascal0902/fiftyone
94ce6bebac6df848547228869a7825a9e8e67595
[ "Apache-2.0" ]
1
2022-03-25T19:27:53.000Z
2022-03-25T19:27:53.000Z
fiftyone/utils/coco.py
cnheider/fiftyone
9fa8d64f913b0cdf59efd10f72d8c6d37864ce33
[ "Apache-2.0" ]
null
null
null
""" Utilities for working with datasets in `COCO format <https://cocodataset.org/#format-data>`_. | Copyright 2017-2021, Voxel51, Inc. | `voxel51.com <https://voxel51.com/>`_ | """ from collections import defaultdict import csv from datetime import datetime from itertools import groupby import logging import multiproc...
32.203382
132
0.597643
c80ea624772fc2018213361af067895999948f09
15,076
py
Python
detectron2/structures/boxes.py
hhy-ee/PedestrianDetection-NohNMS
482078a6bd0ff8cf03fbf7f6988e475f75c56e57
[ "Apache-2.0" ]
null
null
null
detectron2/structures/boxes.py
hhy-ee/PedestrianDetection-NohNMS
482078a6bd0ff8cf03fbf7f6988e475f75c56e57
[ "Apache-2.0" ]
null
null
null
detectron2/structures/boxes.py
hhy-ee/PedestrianDetection-NohNMS
482078a6bd0ff8cf03fbf7f6988e475f75c56e57
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import math import numpy as np from enum import IntEnum, unique from typing import Iterator, List, Tuple, Union import torch from detectron2.layers import cat _RawBoxType = Union[List[float], Tuple[float, ...], torch.Tensor, np.ndarray] @unique ...
32.989059
96
0.559432
d7e94f5a48e5e61ce9acf99db81a56fbef0a7330
984
py
Python
hello.py
maxq210/googlePython
f25337b7dc55bb9c9ac4d936dfff555647d59ec2
[ "Apache-2.0" ]
null
null
null
hello.py
maxq210/googlePython
f25337b7dc55bb9c9ac4d936dfff555647d59ec2
[ "Apache-2.0" ]
null
null
null
hello.py
maxq210/googlePython
f25337b7dc55bb9c9ac4d936dfff555647d59ec2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python -tt # Copyright 2010 Google Inc. # Licensed under the Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # Google's Python Class # http://code.google.com/edu/languages/google-python-class/ """A tiny Python program to check that Python is working. Try running this program from t...
28.114286
68
0.714431
ca39526b747dec3d6817303f52997bc5a76a14b1
4,699
py
Python
aiormq/base.py
vknrk/aiormq
735594b3291db005ed59bd17d91ddaecc42f6762
[ "Apache-2.0" ]
null
null
null
aiormq/base.py
vknrk/aiormq
735594b3291db005ed59bd17d91ddaecc42f6762
[ "Apache-2.0" ]
null
null
null
aiormq/base.py
vknrk/aiormq
735594b3291db005ed59bd17d91ddaecc42f6762
[ "Apache-2.0" ]
null
null
null
import abc import asyncio from contextlib import suppress from functools import wraps from typing import Any, Callable, Coroutine, Optional, Set, TypeVar, Union from weakref import WeakSet from .abc import ( AbstractBase, AbstractFutureStore, CoroutineType, ExceptionType, TaskType, TaskWrapper, ) from .tools i...
28.478788
78
0.635242
6b1d1c880a6ace4ac95a72fb37515c8abba9a44b
745
py
Python
examples/Decimal2HexConversion.py
Ellis0817/Introduction-to-Programming-Using-Python
1882a2a846162d5ff56d4d56c3940b638ef408bd
[ "MIT" ]
null
null
null
examples/Decimal2HexConversion.py
Ellis0817/Introduction-to-Programming-Using-Python
1882a2a846162d5ff56d4d56c3940b638ef408bd
[ "MIT" ]
4
2019-11-07T12:32:19.000Z
2020-07-19T14:04:44.000Z
examples/Decimal2HexConversion.py
Ellis0817/Introduction-to-Programming-Using-Python
1882a2a846162d5ff56d4d56c3940b638ef408bd
[ "MIT" ]
5
2019-12-04T15:56:55.000Z
2022-01-14T06:19:18.000Z
# Convert a decimal to a hex as a string def decimalToHex(decimalValue): hex = "" while decimalValue != 0: hexValue = decimalValue % 16 hex = toHexChar(hexValue) + hex decimalValue = decimalValue // 16 return hex # Convert an integer to a single hex digit in a character ...
27.592593
58
0.624161
8b82118f9bc0984705a095fe1e9caa181039e33b
128
py
Python
Aula13/ex04.py
danicon/MD2-Curso_Python
77a2eb2d123eb1359dd7c84360c83bf3b3033ab4
[ "MIT" ]
1
2020-11-28T14:48:03.000Z
2020-11-28T14:48:03.000Z
Aula13/ex04.py
danicon/MD2-Curso_Python
77a2eb2d123eb1359dd7c84360c83bf3b3033ab4
[ "MIT" ]
null
null
null
Aula13/ex04.py
danicon/MD2-Curso_Python
77a2eb2d123eb1359dd7c84360c83bf3b3033ab4
[ "MIT" ]
null
null
null
s = 0 for c in range(0, 4): n = int(input('Digite um valor: ')) s += n print(f'O somatório de todos os valores foi {s}')
25.6
49
0.585938
6bd37de6c078abdd5398202ad2825a8be301e750
4,053
gyp
Python
Xcode/node-sdl2_mixer.gyp
flyover/node-sdl2_mixer
e886ce7057c780374fd3e1eeeebb33f3601a8540
[ "MIT" ]
null
null
null
Xcode/node-sdl2_mixer.gyp
flyover/node-sdl2_mixer
e886ce7057c780374fd3e1eeeebb33f3601a8540
[ "MIT" ]
null
null
null
Xcode/node-sdl2_mixer.gyp
flyover/node-sdl2_mixer
e886ce7057c780374fd3e1eeeebb33f3601a8540
[ "MIT" ]
null
null
null
{ 'variables': { 'OS%': 'ios', 'NODE_PATH': '../../../node-v0.x-archive', 'SDL2_PATH': '../../../SDL', 'SDL2_MIXER_PATH': '../../../SDL_mixer', }, 'xcode_settings': { 'ALWAYS_SEARCH_USER_PATHS': 'NO', 'USE_HEADERMAP': 'NO', }, 'conditions': [ [...
34.641026
97
0.399457
124c4fa79dd56065e728e4fe323d8227f930d210
1,576
py
Python
keras/integration_test/vectorized_map_test.py
Halo9Pan/dive-keras
7d4c5572fa3a9fc2542a1314d06c555f67575cb0
[ "Apache-2.0" ]
11
2015-11-27T18:33:56.000Z
2020-08-12T22:51:57.000Z
tensorflow/python/keras/integration_test/vectorized_map_test.py
CaptainGizzy21/tensorflow
3457a2b122e50b4d44ceaaed5a663d635e5c22df
[ "Apache-2.0" ]
1,056
2019-12-15T01:20:31.000Z
2022-02-10T02:06:28.000Z
tensorflow/python/keras/integration_test/vectorized_map_test.py
CaptainGizzy21/tensorflow
3457a2b122e50b4d44ceaaed5a663d635e5c22df
[ "Apache-2.0" ]
6
2016-09-07T04:00:15.000Z
2022-01-12T01:47:38.000Z
# Copyright 2020 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...
35.022222
80
0.668147
43a6496451937e9f118507bc9d1d771e0f3123e1
7,088
py
Python
python/pyarrow/tests/conftest.py
stspyder/arrow
16b2a44be2b71bc1a7c95df70795664b4d450b6d
[ "Apache-2.0" ]
2
2021-09-28T01:36:21.000Z
2021-12-22T08:24:17.000Z
python/pyarrow/tests/conftest.py
stspyder/arrow
16b2a44be2b71bc1a7c95df70795664b4d450b6d
[ "Apache-2.0" ]
6
2020-07-01T20:18:37.000Z
2021-01-07T16:22:13.000Z
python/pyarrow/tests/conftest.py
stspyder/arrow
16b2a44be2b71bc1a7c95df70795664b4d450b6d
[ "Apache-2.0" ]
1
2020-12-08T10:36:30.000Z
2020-12-08T10:36:30.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
25.96337
78
0.645316
77c3ae0408d83382e76637d7cef3a4d06d21618b
2,745
py
Python
utest/py3270/test_command.py
MichaelSeeburger/Robot-Framework-Mainframe-3270-Library
76b589d58c55a39f96c027a8ae28c41fa37ed445
[ "MIT" ]
3
2018-10-02T14:32:06.000Z
2018-10-02T14:33:32.000Z
utest/py3270/test_command.py
MichaelSeeburger/Robot-Framework-Mainframe-3270-Library
76b589d58c55a39f96c027a8ae28c41fa37ed445
[ "MIT" ]
null
null
null
utest/py3270/test_command.py
MichaelSeeburger/Robot-Framework-Mainframe-3270-Library
76b589d58c55a39f96c027a8ae28c41fa37ed445
[ "MIT" ]
null
null
null
import warnings import pytest from pytest_mock import MockerFixture from Mainframe3270.py3270 import Command, CommandError, ExecutableAppLinux def test_command_default(mocker: MockerFixture): mocker.patch("subprocess.Popen") app = ExecutableAppLinux() under_test = Command(app, b"abc") assert under...
27.45
86
0.680146
b20f2c523e4a6c47ec8daeffa4345ae166a1099c
39,111
py
Python
core/domain/stats_services.py
aadilmehdis/oppia
afa9e55c1de88f6898fd31e8ed452f4a9157050b
[ "Apache-2.0" ]
null
null
null
core/domain/stats_services.py
aadilmehdis/oppia
afa9e55c1de88f6898fd31e8ed452f4a9157050b
[ "Apache-2.0" ]
null
null
null
core/domain/stats_services.py
aadilmehdis/oppia
afa9e55c1de88f6898fd31e8ed452f4a9157050b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2014 The Oppia 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 requi...
38.955179
80
0.71292
132cfac5f59e599e9c94a50f7c18af239737e0a3
21,740
py
Python
hug/routing.py
Asteur/hug_api_maker
7da43cee1d1298a25417b12770b382464a8fe389
[ "MIT" ]
null
null
null
hug/routing.py
Asteur/hug_api_maker
7da43cee1d1298a25417b12770b382464a8fe389
[ "MIT" ]
null
null
null
hug/routing.py
Asteur/hug_api_maker
7da43cee1d1298a25417b12770b382464a8fe389
[ "MIT" ]
null
null
null
"""hug/routing.py Defines the chainable classes responsible for defining the routing of Python functions for use with Falcon and CLIs Copyright (C) 2016 Timothy Edmund Crosley Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Softw...
43.393214
120
0.645814
69f81adbb32343db474b1b0c44099404db6431dd
1,017
py
Python
designing-restful-apis/Lesson_4/13_BargainMart/Starter Code/hungryclient.py
robinl3680/udacity-course
308daf62479f9bf6f4256eb19313631f1bb4c5da
[ "MIT" ]
68
2016-07-28T07:24:57.000Z
2021-10-09T19:28:48.000Z
designing-restful-apis/Lesson_4/13_BargainMart/Starter Code/hungryclient.py
robinl3680/udacity-course
308daf62479f9bf6f4256eb19313631f1bb4c5da
[ "MIT" ]
1
2022-03-12T01:01:42.000Z
2022-03-12T01:01:42.000Z
designing-restful-apis/Lesson_4/13_BargainMart/Starter Code/hungryclient.py
robinl3680/udacity-course
308daf62479f9bf6f4256eb19313631f1bb4c5da
[ "MIT" ]
105
2016-10-19T03:56:33.000Z
2022-03-15T02:12:08.000Z
from __future__ import division from time import sleep import json import httplib2 h = httplib2.Http() url = raw_input("Please enter the uri you want to access, \n If left blank the connection will be set to 'http://localhost:5000/catalog': ") if url == '': url = 'http://localhost:5000/catalog' req_per_minute =...
27.486486
142
0.701082
48686733444b8b26da69768b70182d397dd5f102
329
py
Python
xd/build/core/data/num.py
esben/xd-build-core
b1f805d4a50167f4c54003ffa8f33d224d4c819d
[ "MIT" ]
1
2020-11-27T23:34:53.000Z
2020-11-27T23:34:53.000Z
xd/build/core/data/num.py
esben/xd-build-core
b1f805d4a50167f4c54003ffa8f33d224d4c819d
[ "MIT" ]
6
2015-10-30T12:22:56.000Z
2016-08-25T09:38:48.000Z
xd/build/core/data/num.py
XD-embedded/xd-build-core
357e4d78d35456d6906aa30151ddc989781227ab
[ "MIT" ]
null
null
null
import logging log = logging.getLogger(__name__) log.setLevel(logging.INFO) from .var import * __all__ = ['Bool', 'Int', 'Float'] class Bool(Variable): __slots__ = [] basetype = bool class Int(Variable): __slots__ = [] basetype = int class Float(Variable): __slots__ = [] basetype...
10.612903
34
0.632219
9d8773c7a917fd3a30407a178f62eaf15bb45aab
1,574
py
Python
setup.py
Galarzaa90/GuildWatcher
2ec08ebb7a500a332962e6d78b8d175b842959a2
[ "MIT" ]
5
2017-05-01T20:37:10.000Z
2020-06-04T20:41:38.000Z
setup.py
Galarzaa90/GuildWatcher
2ec08ebb7a500a332962e6d78b8d175b842959a2
[ "MIT" ]
7
2018-05-08T20:56:49.000Z
2021-02-22T20:38:06.000Z
setup.py
Galarzaa90/GuildWatcher
2ec08ebb7a500a332962e6d78b8d175b842959a2
[ "MIT" ]
4
2017-09-02T05:10:02.000Z
2018-02-22T01:41:24.000Z
import sys from setuptools import setup if sys.version_info < (3, 6): sys.exit('Sorry, Python < 3.6 is not supported') with open('requirements.txt') as f: requirements = f.read().splitlines() with open('README.md') as f: readme = f.read() setup( name='guildwatcher', version='2.0.0', author=...
31.48
78
0.628971
a6c60ee2e988ec4e7f6c0eb606c5bab98f0814dc
15,803
py
Python
mathics/builtin/attributes.py
ptjb/Mathics
c44678e73ce753e5ce3959cdca18ec983f05716d
[ "Apache-2.0" ]
null
null
null
mathics/builtin/attributes.py
ptjb/Mathics
c44678e73ce753e5ce3959cdca18ec983f05716d
[ "Apache-2.0" ]
null
null
null
mathics/builtin/attributes.py
ptjb/Mathics
c44678e73ce753e5ce3959cdca18ec983f05716d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- r""" Attributes There are several builtin-attributes which have a predefined meaning in \Mathics. However, you can set any symbol as an attribute, in contrast to \Mathematica. """ from mathics.builtin.base import Predefined, Builtin from mathics.builtin.evaluation impo...
26.559664
91
0.563627
fc60677ffde2308d0c6acb29de3b5a3bd690cf71
4,235
py
Python
malaya/text/rake.py
DevconX/Malaya
a2e7030f0911d65c9c1c72d38bc3e7c53b8e06fc
[ "MIT" ]
39
2018-03-12T04:26:42.000Z
2018-12-05T03:53:45.000Z
malaya/text/rake.py
DevconX/Malaya
a2e7030f0911d65c9c1c72d38bc3e7c53b8e06fc
[ "MIT" ]
12
2018-10-01T07:28:23.000Z
2018-12-10T01:59:25.000Z
malaya/text/rake.py
DevconX/Malaya
a2e7030f0911d65c9c1c72d38bc3e7c53b8e06fc
[ "MIT" ]
16
2018-03-16T05:46:12.000Z
2018-12-10T04:15:07.000Z
# Implementation of RAKE - Rapid Automtic Keyword Exraction algorithm # as described in: # Rose, S., D. Engel, N. Cramer, and W. Cowley (2010). # Automatic keyword extraction from indi-vidual documents. # In M. W. Berry and J. Kogan (Eds.), Text Mining: Applications and # Theory.unknown: John Wiley and Sons, Ltd. impo...
32.576923
120
0.644392
417425e6e95b15315e52c1840f79246098008dc7
3,631
py
Python
examples/tf/rl2_ppo_metaworld_ml10.py
michahu/garage
c045a1e5e5088a18828ec48bfee0addb1943bfd4
[ "MIT" ]
null
null
null
examples/tf/rl2_ppo_metaworld_ml10.py
michahu/garage
c045a1e5e5088a18828ec48bfee0addb1943bfd4
[ "MIT" ]
null
null
null
examples/tf/rl2_ppo_metaworld_ml10.py
michahu/garage
c045a1e5e5088a18828ec48bfee0addb1943bfd4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Example script to run RL2 in ML10.""" # pylint: disable=no-value-for-parameter # yapf: disable import click import metaworld from garage import wrap_experiment from garage.envs import MetaWorldSetTaskEnv from garage.experiment import (MetaEvaluator, MetaWorldTaskSampler, ...
38.62766
79
0.595153
5b6072163a85260bd478e300d75a5ebf011af9cf
256
py
Python
source/cornish/version.py
demitri/cornish
b1f37feac38edaab5543bcb8ccbd0aa26b87456d
[ "MIT" ]
1
2020-11-10T18:59:00.000Z
2020-11-10T18:59:00.000Z
source/cornish/version.py
demitri/cornish
b1f37feac38edaab5543bcb8ccbd0aa26b87456d
[ "MIT" ]
2
2020-08-03T22:52:46.000Z
2020-08-13T19:09:48.000Z
source/cornish/version.py
demitri/cornish
b1f37feac38edaab5543bcb8ccbd0aa26b87456d
[ "MIT" ]
1
2020-02-23T19:17:20.000Z
2020-02-23T19:17:20.000Z
# Store the version here so: # 1) we don't load dependencies by storing it in __init__.py # 2) we can import it in setup.py for the same reason # 3) we can import it into your module __version__ = '1.1' # Ref: https://stackoverflow.com/a/16084844/2712652
32
60
0.730469
9c5078ea6e6f0469763693f508e041144a64fbae
4,208
py
Python
users/views.py
oss2019/crisp.ai
95fe0f0e09386b97037db6d790623394c8a81dc8
[ "MIT" ]
7
2019-05-07T17:31:57.000Z
2021-07-06T15:08:14.000Z
users/views.py
oss2019/crisp.ai
95fe0f0e09386b97037db6d790623394c8a81dc8
[ "MIT" ]
60
2019-05-04T08:52:37.000Z
2022-03-11T23:53:25.000Z
users/views.py
oss2019/crisp.ai
95fe0f0e09386b97037db6d790623394c8a81dc8
[ "MIT" ]
21
2019-04-12T14:31:54.000Z
2019-09-29T09:51:20.000Z
from django.shortcuts import render, redirect from django.contrib.auth import authenticate, login from django.core.mail import send_mail from django.forms import ValidationError from django.contrib.auth.models import User from django.contrib.sites.shortcuts import get_current_site from django.template.loader import ren...
40.461538
119
0.700095
49da520b3217dcc17773d251759759bdc542648a
669
py
Python
Symbol in Matrix.py
Lyubomir-Dakov/Python-Advanced
3b3b7181cc2bafc6f60329d6e42873d0f78b972f
[ "MIT" ]
null
null
null
Symbol in Matrix.py
Lyubomir-Dakov/Python-Advanced
3b3b7181cc2bafc6f60329d6e42873d0f78b972f
[ "MIT" ]
null
null
null
Symbol in Matrix.py
Lyubomir-Dakov/Python-Advanced
3b3b7181cc2bafc6f60329d6e42873d0f78b972f
[ "MIT" ]
null
null
null
# import sys # from io import StringIO # # input_1 = """3 # ABC # DEF # X!@ # ! # """ # input_2 = """4 # asdd # xczc # qwee # qefw # 4 # """ # # sys.stdin = StringIO(input_2) square_size = int(input()) matrix = [] for _ in range(square_size): row = input() matrix.append(row) symbol ...
15.204545
52
0.5142
560bdbf688bc946ada679732db81a14fce0669ea
2,461
py
Python
pingo/intel/intel.py
pingo-io/pingo-py
5d7081f99ff13973404dc6361560f30ce8f7009c
[ "MIT" ]
116
2015-05-06T17:49:22.000Z
2021-11-16T12:59:35.000Z
pingo/intel/intel.py
pingo-io/pingo-py
5d7081f99ff13973404dc6361560f30ce8f7009c
[ "MIT" ]
49
2015-05-08T23:18:05.000Z
2017-07-12T17:11:48.000Z
pingo/intel/intel.py
pingo-io/pingo-py
5d7081f99ff13973404dc6361560f30ce8f7009c
[ "MIT" ]
47
2015-05-04T07:42:04.000Z
2021-08-04T20:49:54.000Z
import pingo mraa = None class BaseMraa(pingo.Board, pingo.AnalogInputCapable, pingo.PwmOutputCapable): _import_error_msg = 'pingo.intel.BaseMraa requires mraa installed' def __init__(self): global mraa try: import mraa as mraa except ImportError: raise Impor...
29.297619
78
0.624137
8f25b3c9bfa38a3a07c72c28248c700fbdc95ada
30,285
py
Python
services/connectors/fronius-modbus-connector/source/connector/main.py
fzi-forschungszentrum-informatik/BEMCom
0a0c359d889c6d5975e4d4d3b17c24adb5bf883b
[ "MIT" ]
4
2021-09-10T09:46:18.000Z
2021-12-05T17:55:14.000Z
services/connectors/fronius-modbus-connector/source/connector/main.py
fzi-forschungszentrum-informatik/BEMCom
0a0c359d889c6d5975e4d4d3b17c24adb5bf883b
[ "MIT" ]
null
null
null
services/connectors/fronius-modbus-connector/source/connector/main.py
fzi-forschungszentrum-informatik/BEMCom
0a0c359d889c6d5975e4d4d3b17c24adb5bf883b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ """ __version__="0.1.0" import os import json import struct import logging from time import sleep from fastnumbers import fast_real from dotenv import load_dotenv, find_dotenv from pymodbus.client.sync import ModbusTcpClient from pymodbus.exceptions import ModbusExc...
40.542169
153
0.55473
3be00669e611d58e8f5dd89176fbc8e94b07bb3e
11,317
py
Python
docs/build/lib/generativepoetry/poemgen.py
coreybobco/generativepoetrypy
b4a5f117157d55c6314309ff6dfe9dbeb27a5ebf
[ "MIT" ]
25
2019-07-23T03:05:59.000Z
2022-03-21T20:56:16.000Z
docs/build/lib/generativepoetry/poemgen.py
coreybobco/generativepoetrypy
b4a5f117157d55c6314309ff6dfe9dbeb27a5ebf
[ "MIT" ]
3
2019-07-30T00:57:48.000Z
2020-04-08T17:17:37.000Z
docs/build/lib/generativepoetry/poemgen.py
coreybobco/procedural-poetry
b4a5f117157d55c6314309ff6dfe9dbeb27a5ebf
[ "MIT" ]
3
2020-10-10T18:52:36.000Z
2021-08-16T02:11:45.000Z
import itertools from typing import List, Optional from .lexigen import * from .markov import StochasticJolasticWordGenerator from .utils import too_similar class Poem: def __init__(self, input_words, words_for_sampling): self.input_words = input_words self.words_for_sampling = words_for_sampling...
57.156566
127
0.625873
02556791f4b2dd6aef7a9a5ab2a8387a25107f84
20,408
py
Python
ax/models/torch/tests/test_surrogate.py
lyhyl/Ax
44384a0cb1a622c9e395c95f683cfee25c7b61f6
[ "MIT" ]
null
null
null
ax/models/torch/tests/test_surrogate.py
lyhyl/Ax
44384a0cb1a622c9e395c95f683cfee25c7b61f6
[ "MIT" ]
null
null
null
ax/models/torch/tests/test_surrogate.py
lyhyl/Ax
44384a0cb1a622c9e395c95f683cfee25c7b61f6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from unittest.mock import patch, MagicMock import torch from ax.core.search_space import SearchSpaceDigest from ax.m...
46.06772
88
0.636858
380358b87b6bad885697ed0ea4e7e3629b47e9c2
2,585
py
Python
examples/source_separation/utils/dist_utils.py
zkneupper/audio
1f136671b84071a2fe1d5b762df64f3a76310c31
[ "BSD-2-Clause" ]
4
2022-03-16T15:35:35.000Z
2022-03-22T23:55:41.000Z
examples/source_separation/utils/dist_utils.py
zkneupper/audio
1f136671b84071a2fe1d5b762df64f3a76310c31
[ "BSD-2-Clause" ]
6
2020-09-22T22:19:09.000Z
2021-06-21T17:37:32.000Z
examples/source_separation/utils/dist_utils.py
zkneupper/audio
1f136671b84071a2fe1d5b762df64f3a76310c31
[ "BSD-2-Clause" ]
1
2022-03-16T00:40:40.000Z
2022-03-16T00:40:40.000Z
import os import csv import types import logging import torch import torch.distributed as dist def _info_on_master(self, *args, **kwargs): if dist.get_rank() == 0: self.info(*args, **kwargs) def getLogger(name): """Get logging.Logger module with additional ``info_on_master`` method.""" logger =...
29.712644
81
0.631721
05c30891dac6cc7720760ab683d3dadfed43ecc1
1,038
py
Python
make_pseudo_label.py
phamduyhk/signate_student_cup_2020
19e158b08a86f2df8e4ee45445169ae396c91409
[ "MIT" ]
null
null
null
make_pseudo_label.py
phamduyhk/signate_student_cup_2020
19e158b08a86f2df8e4ee45445169ae396c91409
[ "MIT" ]
null
null
null
make_pseudo_label.py
phamduyhk/signate_student_cup_2020
19e158b08a86f2df8e4ee45445169ae396c91409
[ "MIT" ]
null
null
null
import pandas as pd train = pd.read_csv("./data/data_augmentation_using_language_translation.csv") test = pd.read_csv("./data/test.csv") trained_output_file = "./output/pseudo_bert-large-cased_0-192_5cv_4ep.csv" trained_output = pd.read_csv(trained_output_file, header=None) pseudo_label = trained_output.iloc[:,1] te...
29.657143
78
0.705202
53628893ba7d1c3644178d0a037d63e138d0bc49
670
py
Python
LeetCodeSolutions/python/42_Trapping_Rain_Water.py
ChuanleiGuo/AlgorithmsPlayground
90b6287b742c8bfd3797540c408d679be2821a40
[ "MIT" ]
1
2017-03-27T13:38:37.000Z
2017-03-27T13:38:37.000Z
LeetCodeSolutions/python/42_Trapping_Rain_Water.py
ChuanleiGuo/AlgorithmsPlayground
90b6287b742c8bfd3797540c408d679be2821a40
[ "MIT" ]
null
null
null
LeetCodeSolutions/python/42_Trapping_Rain_Water.py
ChuanleiGuo/AlgorithmsPlayground
90b6287b742c8bfd3797540c408d679be2821a40
[ "MIT" ]
null
null
null
class Solution(object): def trap(self, height): """ :type height: List[int] :rtype: int """ area = 0 sec_height = 0 left, right = 0, len(height) - 1 while left < right: if height[left] < height[right]: sec_height = max(heigh...
29.130435
59
0.471642
c580578d7f263ab79d26173e2dece5e2671bd134
1,714
py
Python
test/functional/feature_uacomment.py
patrykwnosuch/machinecoin-core
b6783c857f43f7f077de594d1e03d156f5295b9c
[ "MIT" ]
1
2019-05-27T11:12:53.000Z
2019-05-27T11:12:53.000Z
test/functional/feature_uacomment.py
patrykwnosuch/machinecoin-core
b6783c857f43f7f077de594d1e03d156f5295b9c
[ "MIT" ]
null
null
null
test/functional/feature_uacomment.py
patrykwnosuch/machinecoin-core
b6783c857f43f7f077de594d1e03d156f5295b9c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2017-2018 The Machinecoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the -uacomment option.""" import re from test_framework.test_framework import MachinecoinTes...
41.804878
150
0.694866
5461fe612fc1d33d67bb4e1889f5f40786662632
1,347
py
Python
fm/models/enumeration.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
84
2017-10-22T11:01:39.000Z
2022-02-27T03:43:48.000Z
fm/models/enumeration.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
22
2017-12-11T07:21:56.000Z
2021-09-23T02:53:50.000Z
fm/models/enumeration.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
23
2017-12-06T06:59:52.000Z
2022-02-24T00:02:25.000Z
# --------------------------------------------------------------------- # Enumeration model # --------------------------------------------------------------------- # Copyright (C) 2007-2020 The NOC Project # See LICENSE for details # --------------------------------------------------------------------- # Third-party m...
29.282609
71
0.512992
4e736966fe4b4f3f84ee1d2f40f9848eebf8457a
24,872
py
Python
Skydipper/utils.py
Skydipper/LMIPy
4e3a5e474706df7272ffc11ef4e0bcc5d46ed36a
[ "MIT" ]
null
null
null
Skydipper/utils.py
Skydipper/LMIPy
4e3a5e474706df7272ffc11ef4e0bcc5d46ed36a
[ "MIT" ]
8
2019-12-20T12:32:27.000Z
2020-06-15T17:41:25.000Z
Skydipper/utils.py
Skydipper/LMIPy
4e3a5e474706df7272ffc11ef4e0bcc5d46ed36a
[ "MIT" ]
null
null
null
import json import math import ee from time import sleep from google.cloud import storage def html_box(item): """Returns an HTML block with template strings filled-in based on item attributes.""" is_layer = str(type(item)) == "<class 'Skydipper.layer.Layer'>" is_dataset = str(type(item)) == "<class 'Skydip...
46.059259
158
0.581296
bccbd751c2c4606ce707a9cc4299b8b83453bcfd
64,371
py
Python
salt/cloud/clouds/azurearm.py
wedge-jarrad/salt
7897d7922c70b039db8284976dcbf812eb3f2acf
[ "Apache-2.0" ]
null
null
null
salt/cloud/clouds/azurearm.py
wedge-jarrad/salt
7897d7922c70b039db8284976dcbf812eb3f2acf
[ "Apache-2.0" ]
null
null
null
salt/cloud/clouds/azurearm.py
wedge-jarrad/salt
7897d7922c70b039db8284976dcbf812eb3f2acf
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Azure ARM Cloud Module ====================== .. versionadded:: 2016.11.0 .. versionchanged:: Fluorine The Azure ARM cloud module is used to control access to Microsoft Azure Resource Manager :depends: * `Microsoft Azure SDK for Python <https://pypi.python.org/pypi/azure>`_ >= 2.0rc6...
31.914229
131
0.585403
0c08e9bd195aba4c06a7aed6eed7031cc932355e
1,856
py
Python
tests/test_persona.py
manuelfel12/MiProyectoUniAndes
187efb581fe6c5bb229110dad8f87b01b910476d
[ "MIT" ]
null
null
null
tests/test_persona.py
manuelfel12/MiProyectoUniAndes
187efb581fe6c5bb229110dad8f87b01b910476d
[ "MIT" ]
1
2021-03-13T13:13:37.000Z
2021-03-13T13:13:37.000Z
tests/test_persona.py
manuelfel12/MiProyectoUniAndes
187efb581fe6c5bb229110dad8f87b01b910476d
[ "MIT" ]
null
null
null
import unittest import datetime from src.mi_proyecto.persona import Persona class PersonaTestCase(unittest.TestCase): def setUp(self): self.persona1 = Persona(nombre='Alejandra', edad=25) self.persona2 = Persona(nombre='Diego', edad=22) self.persona3 = Persona(nombre='Alejandra', edad=25) ...
41.244444
110
0.727371
330ce4edecd87038aefb13070645974d118c26c7
18,618
py
Python
jeditor/main.py
Yadkee/orphans
1208a9cbd95ca7608da9855b27d717beaff1711e
[ "MIT" ]
null
null
null
jeditor/main.py
Yadkee/orphans
1208a9cbd95ca7608da9855b27d717beaff1711e
[ "MIT" ]
null
null
null
jeditor/main.py
Yadkee/orphans
1208a9cbd95ca7608da9855b27d717beaff1711e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import tkinter as tk from tkinter import ttk import widgets from struct import unpack_from, pack from collections import OrderedDict MONOSPACE = ("Consolas", 9) ARIAL = ("Arial, 8") OP_CODES = {} with open("opcodes") as f: for i in f.read().splitlines(): data ...
40.650655
93
0.544903
dfb317554b6dd1a25819504f9792e43e357aa661
578
py
Python
arch_2.py
sushantjha78/complexity_and_performance
cc8a26241f462c671c352f33998f0d3facaf8a75
[ "MIT" ]
null
null
null
arch_2.py
sushantjha78/complexity_and_performance
cc8a26241f462c671c352f33998f0d3facaf8a75
[ "MIT" ]
null
null
null
arch_2.py
sushantjha78/complexity_and_performance
cc8a26241f462c671c352f33998f0d3facaf8a75
[ "MIT" ]
null
null
null
import torch import torch.nn as nn class model(nn.Module): def __init__(self): super(model, self).__init__() self.end = nn.Sequential( nn.LeakyReLU(inplace = True), nn.LazyLinear(32), nn.Dropout(0.5), nn.LeakyReLU(inplace = True), ...
27.52381
48
0.512111
a93d2fbf8fb42add76c8b490c6e3d7a9a8532325
182
py
Python
Class 11/11-Programs/Palindrome.py
edwardmasih/Python-School-Level
545e8fcd87f540be2bbf01d3493bd84dd5504739
[ "MIT" ]
null
null
null
Class 11/11-Programs/Palindrome.py
edwardmasih/Python-School-Level
545e8fcd87f540be2bbf01d3493bd84dd5504739
[ "MIT" ]
null
null
null
Class 11/11-Programs/Palindrome.py
edwardmasih/Python-School-Level
545e8fcd87f540be2bbf01d3493bd84dd5504739
[ "MIT" ]
null
null
null
n=int(input("Enter a three digit Number :- ")) o=n%10 t=(n//10)%10 h=n//100 if o==h: print ("Your number is Palindrome") else: print("Your number is NOT Palindrome")
20.222222
47
0.60989
215c1cdddf0ed5a746191607ecbfaa986c2a7cc4
4,576
py
Python
datahub/company/admin/utils.py
reupen/data-hub-api
d854188f4c45da0e89075add132a15bb1227ff79
[ "MIT" ]
null
null
null
datahub/company/admin/utils.py
reupen/data-hub-api
d854188f4c45da0e89075add132a15bb1227ff79
[ "MIT" ]
16
2020-04-01T15:25:35.000Z
2020-04-14T14:07:30.000Z
datahub/company/admin/utils.py
cgsunkel/data-hub-api
a92faabf73fb93b5bfd94fd465eafc3e29aa6d8e
[ "MIT" ]
null
null
null
import functools from django.contrib import messages as django_messages from django.http import HttpResponseRedirect from datahub.metadata.models import Country def format_company_diff(dh_company, dnb_company): """ Format the Datahub and D&B companies for templates. """ def get_field(name): ...
32.453901
96
0.60118
7c4e61fc011730797c0c59a1ed42afe60dab5476
14,942
py
Python
sdb/commands/stacks.py
shartse/sdb
5ad91838ae869b7a72b6fc15c0b8ec2a0d0c6c77
[ "Apache-2.0" ]
null
null
null
sdb/commands/stacks.py
shartse/sdb
5ad91838ae869b7a72b6fc15c0b8ec2a0d0c6c77
[ "Apache-2.0" ]
null
null
null
sdb/commands/stacks.py
shartse/sdb
5ad91838ae869b7a72b6fc15c0b8ec2a0d0c6c77
[ "Apache-2.0" ]
null
null
null
# # Copyright 2019 Delphix # # 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, so...
39.633952
80
0.545643
9d9384d58037ab02899807e2babceb56c1c5c3e6
10,815
py
Python
exps/centernet_pandaset.py
joonielee832/mmdet
552c09c6f82cab41427754102c7b8d1c36929552
[ "Apache-2.0" ]
null
null
null
exps/centernet_pandaset.py
joonielee832/mmdet
552c09c6f82cab41427754102c7b8d1c36929552
[ "Apache-2.0" ]
null
null
null
exps/centernet_pandaset.py
joonielee832/mmdet
552c09c6f82cab41427754102c7b8d1c36929552
[ "Apache-2.0" ]
null
null
null
optimizer = dict(type='SGD', lr=0.01, momentum=0.9, weight_decay=0.0001) optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2)) lr_config = dict( policy='step', warmup='linear', warmup_iters=1000, warmup_ratio=0.001, step=[18, 24]) runner = dict(type='EpochBasedRunner', max_epochs=5) chec...
40.811321
89
0.503282
3a406b9675782cbd0e2f704d383ef244fc25ad9b
1,566
py
Python
find.py
caspii/domainfinder
b4d74c6f9e2017d2856f1ab5437db5a6f84d0596
[ "Apache-2.0" ]
10
2015-09-16T19:12:40.000Z
2021-01-20T12:27:24.000Z
find.py
caspii/domainfinder
b4d74c6f9e2017d2856f1ab5437db5a6f84d0596
[ "Apache-2.0" ]
null
null
null
find.py
caspii/domainfinder
b4d74c6f9e2017d2856f1ab5437db5a6f84d0596
[ "Apache-2.0" ]
8
2015-07-28T13:33:18.000Z
2020-10-27T15:03:39.000Z
#!/usr/bin/env python from time import sleep import sys try: import whois except ImportError: print("ERROR: This script requires the python-whois module to run.") print(" You can install it via 'pip install python-whois'") sys.exit(0) # Change top-level domain to check here TLD = '.com' # 1. Get prefixes and su...
24.857143
92
0.709451
ea261b28eb1a028ec373a89221c0c296962e57ba
2,520
py
Python
saleor/graphql/middleware.py
sunilsrikumar/saleor
c9d147dba24ddef1def889852c229027bab767df
[ "BSD-3-Clause" ]
1
2020-06-16T19:49:54.000Z
2020-06-16T19:49:54.000Z
saleor/graphql/middleware.py
gurupratap-matharu/saleor
c9d147dba24ddef1def889852c229027bab767df
[ "CC-BY-4.0" ]
null
null
null
saleor/graphql/middleware.py
gurupratap-matharu/saleor
c9d147dba24ddef1def889852c229027bab767df
[ "CC-BY-4.0" ]
1
2019-09-15T02:19:10.000Z
2019-09-15T02:19:10.000Z
from typing import Optional import opentracing as ot import opentracing.tags as ot_tags from django.conf import settings from django.contrib.auth.models import AnonymousUser from django.utils.functional import SimpleLazyObject from graphql import ResolveInfo from graphql_jwt.middleware import JSONWebTokenMiddleware f...
32.727273
85
0.687302
51909c57cfc39e4485846a7835d0fd8a85621f6e
1,106
py
Python
azure/mgmt/network/v2016_12_01/models/application_gateway_ssl_policy.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
1
2022-01-25T22:52:58.000Z
2022-01-25T22:52:58.000Z
azure/mgmt/network/v2016_12_01/models/application_gateway_ssl_policy.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
azure/mgmt/network/v2016_12_01/models/application_gateway_ssl_policy.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "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 ...
36.866667
83
0.640145
452798a28c1de698467dde21b543e9dd2fd1282c
6,668
py
Python
software/scripts/programmer.py
eeproto/PiAVRProg
33914b3e30636d55c2985b684ae16c0c8e9bd2f4
[ "CC0-1.0" ]
null
null
null
software/scripts/programmer.py
eeproto/PiAVRProg
33914b3e30636d55c2985b684ae16c0c8e9bd2f4
[ "CC0-1.0" ]
null
null
null
software/scripts/programmer.py
eeproto/PiAVRProg
33914b3e30636d55c2985b684ae16c0c8e9bd2f4
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This file is part of the PiAVRProg project https://github.com/eeproto/PiAVRProg This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License http://creativecommons.org/licenses/by-sa/4.0/ Copyright (c) 2019 EE Proto LLC https://ww...
33.34
97
0.591032
2acf7a4ec5b6adb1955c8ab1566f03cf3f35e7d0
2,755
py
Python
yatube/posts/tests/test_urls.py
DeffronMax/hw05_test
f3c271dfcb60a2a96fa8ab98ee3e88fa351ca8b5
[ "MIT" ]
null
null
null
yatube/posts/tests/test_urls.py
DeffronMax/hw05_test
f3c271dfcb60a2a96fa8ab98ee3e88fa351ca8b5
[ "MIT" ]
null
null
null
yatube/posts/tests/test_urls.py
DeffronMax/hw05_test
f3c271dfcb60a2a96fa8ab98ee3e88fa351ca8b5
[ "MIT" ]
null
null
null
from http import HTTPStatus from django.contrib.auth import get_user_model from django.test import TestCase, Client from django.urls import reverse from ..models import Post, Group User = get_user_model() class URLTests(TestCase): @classmethod def setUpClass(cls): super().setUpClass() cls.a...
39.927536
77
0.641379
694e86b5292a70226ebf67994825acec91064f3f
38,401
py
Python
plot/chi_msd.py
yketa/UBC---Spring-2018---code
b065544639a483dda48cda89bcbb11c1772232aa
[ "MIT" ]
1
2021-12-15T13:38:13.000Z
2021-12-15T13:38:13.000Z
plot/chi_msd.py
yketa/UBC---Spring-2018---code
b065544639a483dda48cda89bcbb11c1772232aa
[ "MIT" ]
1
2019-05-25T20:00:17.000Z
2019-05-25T20:00:17.000Z
plot/chi_msd.py
yketa/UBC---Spring-2018---code
b065544639a483dda48cda89bcbb11c1772232aa
[ "MIT" ]
1
2020-01-22T17:05:18.000Z
2020-01-22T17:05:18.000Z
""" Module chi_msd plots cooperativities, maximum cooperativities, times of maximum cooperativities and mean square displacements for either different persistence times at fixed self-propelling velocity or different self-propelling velocities at fixed persistence time. Simulation directories must follow the active_par...
44.75641
204
0.646988
8ead5d3c0fafa18f55f4f5107bc62847c162c836
7,324
py
Python
sdk/python/pulumi_azure_native/avs/v20210101preview/global_reach_connection.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/avs/v20210101preview/global_reach_connection.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/avs/v20210101preview/global_reach_connection.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __a...
44.932515
417
0.669306
02b7313efdffc3a160fba7abffbe993d5474b0f3
1,903
py
Python
actions/post_message.py
StackStorm-Exchange/stackstorm-irc
719f2b20952a97f44e237e2d3c96bf11ae602cad
[ "Apache-2.0" ]
null
null
null
actions/post_message.py
StackStorm-Exchange/stackstorm-irc
719f2b20952a97f44e237e2d3c96bf11ae602cad
[ "Apache-2.0" ]
4
2017-03-28T15:17:04.000Z
2021-05-09T05:11:44.000Z
actions/post_message.py
StackStorm-Exchange/stackstorm-irc
719f2b20952a97f44e237e2d3c96bf11ae602cad
[ "Apache-2.0" ]
1
2021-01-28T17:44:50.000Z
2021-01-28T17:44:50.000Z
import random import eventlet from irc.bot import SingleServerIRCBot from st2common.runners.base_action import Action eventlet.monkey_patch( os=True, select=True, socket=True, thread=True, time=True) __all__ = [ 'PostMessageAction' ] class StackStormActionIRCBot(SingleServerIRCBot): de...
32.254237
94
0.593274
6a5eb6db117c948da70f5ff978206e73602d1698
5,595
py
Python
src/robotide/utils/eventhandler.py
chandrapola/RIDE
08e01b98026b618359e47689cb5e65a0a67795f5
[ "ECL-2.0", "Apache-2.0" ]
775
2015-01-12T06:54:09.000Z
2022-03-25T05:18:05.000Z
src/robotide/utils/eventhandler.py
chandrapola/RIDE
08e01b98026b618359e47689cb5e65a0a67795f5
[ "ECL-2.0", "Apache-2.0" ]
2,191
2015-05-19T16:49:09.000Z
2022-03-28T21:38:34.000Z
src/robotide/utils/eventhandler.py
chandrapola/RIDE
08e01b98026b618359e47689cb5e65a0a67795f5
[ "ECL-2.0", "Apache-2.0" ]
382
2015-01-24T08:41:44.000Z
2022-03-13T10:14:20.000Z
# Copyright 2008-2015 Nokia Networks # Copyright 2016- Robot Framework Foundation # # 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 ...
39.680851
112
0.63092
16803ba4965525e0d1574560910fcbb179078581
189
py
Python
Instagram/admin.py
IsaacMurage-dev/Insta-lookalike
0b394a3e60c669dfb78e8d538e869cebbcec70b8
[ "MIT" ]
null
null
null
Instagram/admin.py
IsaacMurage-dev/Insta-lookalike
0b394a3e60c669dfb78e8d538e869cebbcec70b8
[ "MIT" ]
null
null
null
Instagram/admin.py
IsaacMurage-dev/Insta-lookalike
0b394a3e60c669dfb78e8d538e869cebbcec70b8
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Profile,Image,Comment # Register your models here. admin.site.register(Profile) admin.site.register(Image) admin.site.register(Comment)
27
41
0.820106
a4257e9fca84a4a5cfe3f469e0b80cc613fd2042
16,165
py
Python
osmtm/views/task.py
loggingroads/osm-tasking-manager2
cb482d667273adffbe27a905308aec579ed71cec
[ "BSD-2-Clause" ]
null
null
null
osmtm/views/task.py
loggingroads/osm-tasking-manager2
cb482d667273adffbe27a905308aec579ed71cec
[ "BSD-2-Clause" ]
null
null
null
osmtm/views/task.py
loggingroads/osm-tasking-manager2
cb482d667273adffbe27a905308aec579ed71cec
[ "BSD-2-Clause" ]
null
null
null
from pyramid.view import view_config from pyramid.httpexceptions import ( HTTPNotFound, HTTPBadRequest, HTTPUnauthorized, HTTPForbidden, ) from ..models import ( DBSession, Task, TaskState, TaskLock, TaskComment, PriorityArea, Project, User, Message, ) from geoalchem...
29.935185
79
0.648995
3aaafe4e05bafd956771739d4e02826d833a9281
218
py
Python
classical_control_theory/steady_state_final_value_theorem.py
andreamunafo/automatic_control
dd1d89f732bfd8d95b0ebef6fe99df29b18a1fc2
[ "Apache-2.0" ]
null
null
null
classical_control_theory/steady_state_final_value_theorem.py
andreamunafo/automatic_control
dd1d89f732bfd8d95b0ebef6fe99df29b18a1fc2
[ "Apache-2.0" ]
null
null
null
classical_control_theory/steady_state_final_value_theorem.py
andreamunafo/automatic_control
dd1d89f732bfd8d95b0ebef6fe99df29b18a1fc2
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED! DO NOT EDIT! File to edit: 07_Final_value_theorem_and_steady_state_error.ipynb (unless otherwise specified). __all__ = [] # Cell import numpy as np import matplotlib.pyplot as plt import pandas as pd
27.25
125
0.802752
6ee7b2f3e1db8d3c5577bc083bf0a909608f987d
4,212
py
Python
paint.py
naemazam/Paint
9346cbbfd13e1556922f2e4377f08439ea227239
[ "MIT" ]
null
null
null
paint.py
naemazam/Paint
9346cbbfd13e1556922f2e4377f08439ea227239
[ "MIT" ]
null
null
null
paint.py
naemazam/Paint
9346cbbfd13e1556922f2e4377f08439ea227239
[ "MIT" ]
null
null
null
######################################################################## ## Naem Azam # YOUTUBE: (The Terminal Boy) # WEBSITE: naemazam.github.io ######################################################################## from tkinter import * from tkinter.colorchooser import askcolor from PIL import ImageTk, Image...
39
117
0.609212
0750ba5cb5381ebd85f27d00a103f5726833b1af
2,188
py
Python
tests/test_enum.py
bannsec/py010parser
cba61cab345f9b7c19628904d7667153dbddf326
[ "BSD-3-Clause" ]
54
2015-04-08T22:54:17.000Z
2022-02-16T10:28:43.000Z
tests/test_enum.py
bannsec/py010parser
cba61cab345f9b7c19628904d7667153dbddf326
[ "BSD-3-Clause" ]
27
2015-08-16T11:45:21.000Z
2020-09-07T20:28:22.000Z
tests/test_enum.py
bannsec/py010parser
cba61cab345f9b7c19628904d7667153dbddf326
[ "BSD-3-Clause" ]
11
2015-04-12T04:24:44.000Z
2021-01-08T04:53:07.000Z
#!/usr/bin/env python # encoding: utf-8 import os import sys import unittest sys.path.insert(0, "..") from py010parser import parse_file, parse_string, c_ast class TestEnum(unittest.TestCase): def setUp(self): pass def tearDown(self): pass def test_enum_types(self): # note...
21.45098
63
0.481718
df81eaef5adf4e020f49d11b770b26c14b844ade
7,818
py
Python
utils/exporters/blender/addons/io_three/exporter/api/material.py
lchl7890987/WebGL
f73593b00e3b2c927bb1a3236240cea5597166ec
[ "MIT" ]
10
2015-07-09T06:08:03.000Z
2021-11-08T13:00:01.000Z
utils/exporters/blender/addons/io_three/exporter/api/material.py
lchl7890987/WebGL
f73593b00e3b2c927bb1a3236240cea5597166ec
[ "MIT" ]
1
2015-06-25T16:42:04.000Z
2021-01-12T19:22:16.000Z
utils/exporters/blender/addons/io_three/exporter/api/material.py
lchl7890987/WebGL
f73593b00e3b2c927bb1a3236240cea5597166ec
[ "MIT" ]
3
2015-05-24T13:57:14.000Z
2018-01-17T09:49:08.000Z
from bpy import data, types from .. import constants, logger from .constants import MULTIPLY, WIRE, IMAGE def _material(func): """ :param func: """ def inner(name, *args, **kwargs): """ :param name: :param *args: :param **kwargs: """ if isinstance(...
19.994885
69
0.634433
8d2e40ebdd6e5ae328594aa62d2168e2efb83cd3
455
py
Python
Symbol Patterns/symbolpattern135.py
vaidehisinha1/Python-PatternHouse
49f71bcc5319a838592e69b0e49ef1edba32bf7c
[ "MIT" ]
null
null
null
Symbol Patterns/symbolpattern135.py
vaidehisinha1/Python-PatternHouse
49f71bcc5319a838592e69b0e49ef1edba32bf7c
[ "MIT" ]
471
2022-01-15T07:07:18.000Z
2022-02-28T16:01:42.000Z
Symbol Patterns/symbolpattern135.py
vaidehisinha1/Python-PatternHouse
49f71bcc5319a838592e69b0e49ef1edba32bf7c
[ "MIT" ]
2
2022-01-17T09:43:16.000Z
2022-01-29T15:15:47.000Z
height = int(input()) for i in range(1,height+1): for j in range(1,height+1): if(i == 1 or j == 1 or i == height-j+1): print("*",end=" ") elif(i == j and i >= height//2 and j > height//2): print("*",end=" ") else: print(end=" ") prin...
16.851852
58
0.32967
94bf1d9726bb8cb73141750666bd2999eda26087
1,798
py
Python
api/src/repository/SampleRepository.py
SamuelJansen/FeatureManager
6b259aeb073ff705273e7d1f283232272fd629c9
[ "MIT" ]
1
2021-11-21T21:18:32.000Z
2021-11-21T21:18:32.000Z
api/src/repository/SampleRepository.py
SamuelJansen/FeatureManager
6b259aeb073ff705273e7d1f283232272fd629c9
[ "MIT" ]
null
null
null
api/src/repository/SampleRepository.py
SamuelJansen/FeatureManager
6b259aeb073ff705273e7d1f283232272fd629c9
[ "MIT" ]
null
null
null
from python_framework import Repository from Sample import Sample @Repository(model = Sample) class SampleRepository: def findAll(self) : return self.repository.findAllAndCommit(self.model) def existsByKey(self,key) : return self.repository.existsByKeyAndCommit(key, self.model) def find...
32.107143
70
0.576752
f1b4c7820b46b1625a2f9106deaa0d899cf386c6
13,526
py
Python
jumpcutter.py
marc-philipp-knechtle/jumpcutter
26bfe561e73e311ac160baebd362a337098c2853
[ "MIT" ]
null
null
null
jumpcutter.py
marc-philipp-knechtle/jumpcutter
26bfe561e73e311ac160baebd362a337098c2853
[ "MIT" ]
null
null
null
jumpcutter.py
marc-philipp-knechtle/jumpcutter
26bfe561e73e311ac160baebd362a337098c2853
[ "MIT" ]
null
null
null
import argparse import math import os import re import subprocess from shutil import copyfile, rmtree from time import sleep import numpy as np from audiotsm import phasevocoder from audiotsm.io.wav import WavReader, WavWriter from loguru import logger from pytube import YouTube from scipy.io import wavfile def down...
46.321918
120
0.662724
494317434b33db4f523d57b81be2d7964a681d93
17,837
py
Python
pytorch3d/ops/subdivide_meshes.py
hangg7/pytorcg3d
f7f363eeb8efeba0927f674c83ab927ad8ce3e32
[ "BSD-3-Clause" ]
1
2020-07-13T12:40:42.000Z
2020-07-13T12:40:42.000Z
pytorch3d/ops/subdivide_meshes.py
hangg7/pytorch3d
f7f363eeb8efeba0927f674c83ab927ad8ce3e32
[ "BSD-3-Clause" ]
null
null
null
pytorch3d/ops/subdivide_meshes.py
hangg7/pytorch3d
f7f363eeb8efeba0927f674c83ab927ad8ce3e32
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. import torch import torch.nn as nn from pytorch3d.structures import Meshes class SubdivideMeshes(nn.Module): """ Subdivide a triangle mesh by adding a new vertex at the center of each edge and dividing each face into four new faces....
37.3159
83
0.565734
6b8e21d87a95ad4cf3c8e97460c91ed05e1e383e
365
py
Python
library/library/migrations/0005_auto_20220505_1020.py
buckldav/merit-api
8a3851a9703f5a57549fd858c3e94d136083a15a
[ "MIT" ]
null
null
null
library/library/migrations/0005_auto_20220505_1020.py
buckldav/merit-api
8a3851a9703f5a57549fd858c3e94d136083a15a
[ "MIT" ]
1
2021-11-23T17:56:07.000Z
2021-11-23T17:56:07.000Z
library/library/migrations/0005_auto_20220505_1020.py
buckldav/merit-api
8a3851a9703f5a57549fd858c3e94d136083a15a
[ "MIT" ]
2
2022-03-03T15:43:50.000Z
2022-03-31T15:08:29.000Z
# Generated by Django 3.1.13 on 2022-05-05 16:20 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('library', '0004_checkout_checkin_time'), ] operations = [ migrations.RenameField( model_name='checkout', old_name='book', ...
19.210526
50
0.586301
f61c8e02e89b10dc8003c8403fe81b340de7a758
246
py
Python
a3a_logster/utility/meta.py
Giddius/A3A_Logster_repo
d2417c783e6c5e5e0b07504b3d3d7ce5534673e6
[ "MIT" ]
null
null
null
a3a_logster/utility/meta.py
Giddius/A3A_Logster_repo
d2417c783e6c5e5e0b07504b3d3d7ce5534673e6
[ "MIT" ]
null
null
null
a3a_logster/utility/meta.py
Giddius/A3A_Logster_repo
d2417c783e6c5e5e0b07504b3d3d7ce5534673e6
[ "MIT" ]
null
null
null
class SingletonMeta(type): _instance = {} def __call__(cls, *args, **kwargs): if cls not in cls._instance: cls._instance[cls] = super(SingletonMeta, cls).__call__(*args, **kwargs) return cls._instance[cls]
22.363636
84
0.617886
29f64523710c7beea13b964cf82d8712ad9586c7
6,854
py
Python
teamcat_service/docker_build/target/one_step_build/teamcat/doraemon/api/ci/views/ci_task_flow_view.py
zhangyin2088/Teamcat
be9be8d7c1e58c8d2d22ab78d25783d9aee4de71
[ "Apache-2.0" ]
6
2018-11-26T08:42:52.000Z
2020-06-01T08:33:48.000Z
teamcat_service/doraemon/doraemon/api/ci/views/ci_task_flow_view.py
zhangyin2088/Teamcat
be9be8d7c1e58c8d2d22ab78d25783d9aee4de71
[ "Apache-2.0" ]
null
null
null
teamcat_service/doraemon/doraemon/api/ci/views/ci_task_flow_view.py
zhangyin2088/Teamcat
be9be8d7c1e58c8d2d22ab78d25783d9aee4de71
[ "Apache-2.0" ]
1
2019-01-22T06:45:36.000Z
2019-01-22T06:45:36.000Z
#coding=utf-8 # coding=utf-8 ''' Created on 2014-1-5 @author: ETHAN ''' from rest_framework import generics,status from doraemon.api.ci.serializer import ci_taskflow_serializer from rest_framework.permissions import AllowAny from doraemon.ci.models import CITaskFlow,CITaskFlowSection from doraemon.api.ci.viewmodel.api...
36.073684
137
0.730522
aa51c8350ed9222859efd6ec91a2b5aed98658c3
3,334
py
Python
create_segm_labels.py
Fkaneko/kaggle-hpa-single-cell-image-classification
52000cbf5c7eec6ace29274d9e85b5b24fac281b
[ "MIT" ]
1
2022-01-12T08:44:55.000Z
2022-01-12T08:44:55.000Z
create_segm_labels.py
Fkaneko/kaggle-hpa-single-cell-image-classification
52000cbf5c7eec6ace29274d9e85b5b24fac281b
[ "MIT" ]
null
null
null
create_segm_labels.py
Fkaneko/kaggle-hpa-single-cell-image-classification
52000cbf5c7eec6ace29274d9e85b5b24fac281b
[ "MIT" ]
null
null
null
import argparse import copy import glob import os from typing import Tuple import numpy as np import pandas as pd import pycocotools.mask as coco_mask from tqdm import tqdm from run_cam_infer import decode_ascii_mask from src.dataset.utils import ErrorSample, save_segm_label from src.utils.util import print_argparse_...
30.309091
82
0.589682
83012fd0373aa81ea02c81d79acdd2328f7fc856
16,325
py
Python
napari/components/viewer_model.py
zeroth/napari
c8d755b13716d1a60003e88f9d75dd6af8a346f9
[ "BSD-3-Clause" ]
null
null
null
napari/components/viewer_model.py
zeroth/napari
c8d755b13716d1a60003e88f9d75dd6af8a346f9
[ "BSD-3-Clause" ]
null
null
null
napari/components/viewer_model.py
zeroth/napari
c8d755b13716d1a60003e88f9d75dd6af8a346f9
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from ..utils.events import EmitterGroup, Event from ..utils.key_bindings import KeymapHandler, KeymapProvider from ..utils.theme import palettes from ._viewer_mouse_bindings import dims_scroll from .add_layers_mixin import AddLayersMixin from .dims import Dims from .layerlist import LayerList clas...
32.913306
79
0.588668
1068297e50830302ed944f8bd43a501591bf5d9d
3,942
py
Python
testproject/testproject/app/tests/test_connection.py
maria-grigorieva/django_cassandra_engine
70918eeb6edd26c50a394a1ddcf6521b92ec429a
[ "BSD-2-Clause" ]
null
null
null
testproject/testproject/app/tests/test_connection.py
maria-grigorieva/django_cassandra_engine
70918eeb6edd26c50a394a1ddcf6521b92ec429a
[ "BSD-2-Clause" ]
null
null
null
testproject/testproject/app/tests/test_connection.py
maria-grigorieva/django_cassandra_engine
70918eeb6edd26c50a394a1ddcf6521b92ec429a
[ "BSD-2-Clause" ]
null
null
null
from cassandra.auth import PlainTextAuthProvider from cassandra.cluster import Cluster from mock import patch from django.test import TestCase from django_cassandra_engine.connection import CassandraConnection, Cursor from django_cassandra_engine.utils import get_cassandra_connection class CassandraConnectionTestCa...
35.513514
79
0.703957
952b6f650a35a1769a46d9337b0752082101bf29
241
py
Python
debug/testmondo.py
merlinxcy/iptcFirewallOS
5427cd9104aefcef9071b17f54ca6574837932d6
[ "MIT" ]
null
null
null
debug/testmondo.py
merlinxcy/iptcFirewallOS
5427cd9104aefcef9071b17f54ca6574837932d6
[ "MIT" ]
null
null
null
debug/testmondo.py
merlinxcy/iptcFirewallOS
5427cd9104aefcef9071b17f54ca6574837932d6
[ "MIT" ]
null
null
null
import mongolib class a(): def aa(self): a=mongolib.mongodb() a.log_collect(msg='1gaejiusfuadaifuagusuifhiau afdu gaudf uisg uagsi gaug asyaigasydg aug iug ') a.log_collect(msg='2') a.log_input() a.log_output() aaaa=a() aaaa.aa()
21.909091
98
0.721992
425c6c9d0129f41044428190f3b7cdda95e1d73d
82
py
Python
yc238/994-2.py
c-yan/yukicoder
cdbbd65402177225dd989df7fe01f67908484a69
[ "MIT" ]
null
null
null
yc238/994-2.py
c-yan/yukicoder
cdbbd65402177225dd989df7fe01f67908484a69
[ "MIT" ]
null
null
null
yc238/994-2.py
c-yan/yukicoder
cdbbd65402177225dd989df7fe01f67908484a69
[ "MIT" ]
null
null
null
N, K = map(int, input().split()) if N >= K: print(K - 1) else: print(-1)
11.714286
32
0.47561
dd6156d4fc4d4e17db1881fbb6b14aa4c4eec0a3
738
py
Python
setup.py
755/python_ndms2_client
b6b0c8642979faed8f6623359e4637b05134f838
[ "MIT" ]
null
null
null
setup.py
755/python_ndms2_client
b6b0c8642979faed8f6623359e4637b05134f838
[ "MIT" ]
null
null
null
setup.py
755/python_ndms2_client
b6b0c8642979faed8f6623359e4637b05134f838
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="ndms2_client", version="0.0.8", author="Andrey F. Kupreychik", author_email="foxel@quickfox.ru", description="Keenetic NDMS2 client", long_description=long_description, long_descri...
30.75
57
0.655827
40eb2babe15b5b4b6e0b25e28017501b2418f088
1,753
py
Python
PSET3/P1 & P2/matstri2.py
MonitSharma/Computational-Methods-in-Physics
e3b2db36c37dd5f64b9a37ba39e9bb267ba27d85
[ "MIT" ]
null
null
null
PSET3/P1 & P2/matstri2.py
MonitSharma/Computational-Methods-in-Physics
e3b2db36c37dd5f64b9a37ba39e9bb267ba27d85
[ "MIT" ]
null
null
null
PSET3/P1 & P2/matstri2.py
MonitSharma/Computational-Methods-in-Physics
e3b2db36c37dd5f64b9a37ba39e9bb267ba27d85
[ "MIT" ]
null
null
null
# EqStringAnimateMat.py: Animated leapfrog solution Vibrating string using MatPlotLib from numpy import * import numpy as np, matplotlib.pyplot as plt, matplotlib.animation as animation rho = 0.01; ten = 40.; c = sqrt(ten/rho) # density, tension c1 = c; ratio = c*c/(c1*c1) ...
51.558824
102
0.436395
4f6c77703d1f233fb07892ff042aa9ff2a4365fd
418
py
Python
spacenet/schemas/events.py
space-logistics-org/spacenet
fd004437ed7b27dd6dc41a374e1dedfcea92e37d
[ "MIT" ]
1
2022-02-17T18:01:41.000Z
2022-02-17T18:01:41.000Z
spacenet/schemas/events.py
space-logistics-org/spacenet
fd004437ed7b27dd6dc41a374e1dedfcea92e37d
[ "MIT" ]
2
2021-06-19T19:41:15.000Z
2021-07-21T17:07:48.000Z
spacenet/schemas/events.py
space-logistics-org/spacenet
fd004437ed7b27dd6dc41a374e1dedfcea92e37d
[ "MIT" ]
3
2021-06-16T16:31:12.000Z
2022-02-17T18:02:57.000Z
""" A module re-exporting all events from one file so that `from spacenet.schemas.events import *` is usable. """ from .bases import * from .flight_transport import * from .space_transport import * from .surface_transport import * from .propulsive_burn import * from .element_events import * from .transfer_resources imp...
27.866667
58
0.782297
3a44644bb3ea9fa59bfd5048376a7e03bc9281f1
389
py
Python
shorty/asgi.py
malakbenr/Shorty_URL-Shortner
1babc411acfc72e3d559a1a1b1aba3582d713c80
[ "MIT" ]
null
null
null
shorty/asgi.py
malakbenr/Shorty_URL-Shortner
1babc411acfc72e3d559a1a1b1aba3582d713c80
[ "MIT" ]
null
null
null
shorty/asgi.py
malakbenr/Shorty_URL-Shortner
1babc411acfc72e3d559a1a1b1aba3582d713c80
[ "MIT" ]
null
null
null
""" ASGI config for shorty project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/4.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETTIN...
22.882353
78
0.784062
04a998e0af08a9aa1a96ea80490d4302de174e59
4,727
py
Python
pycls/core/plotting.py
feymanpriv/pymetric
f7c4f354f87969142263c87e1fb33499b7b2d62a
[ "MIT" ]
62
2020-08-26T11:06:37.000Z
2022-03-29T03:26:00.000Z
pycls/core/plotting.py
ym547559398/pycls
f7c4f354f87969142263c87e1fb33499b7b2d62a
[ "MIT" ]
2
2021-06-02T10:19:53.000Z
2021-12-06T05:41:23.000Z
pycls/core/plotting.py
ym547559398/pycls
f7c4f354f87969142263c87e1fb33499b7b2d62a
[ "MIT" ]
11
2020-09-14T12:26:17.000Z
2021-10-04T06:29:35.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """Plotting functions.""" import colorlover as cl import matplotlib.pyplot as plt import plotly.graph_objs as go impo...
35.276119
81
0.542204
20fb7b5b24de209d168958ec2035bb0ed7e7d948
12,386
py
Python
intersight/model/meta_display_name_definition.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
5
2021-12-16T15:13:32.000Z
2022-03-29T16:09:54.000Z
intersight/model/meta_display_name_definition.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
4
2022-01-25T19:05:51.000Z
2022-03-29T20:18:37.000Z
intersight/model/meta_display_name_definition.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
2
2020-07-07T15:01:08.000Z
2022-01-31T04:27:35.000Z
""" Cisco Intersight Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advan...
49.150794
1,678
0.637817
95872d38ad4d9304260e50509ad9311374158a46
551
py
Python
setup.py
wishful-project/tests
fc628bee6b6c495cff55ba3891ff9aa9ce969c98
[ "MIT" ]
null
null
null
setup.py
wishful-project/tests
fc628bee6b6c495cff55ba3891ff9aa9ce969c98
[ "MIT" ]
null
null
null
setup.py
wishful-project/tests
fc628bee6b6c495cff55ba3891ff9aa9ce969c98
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages def readme(): with open('README.md') as f: return f.read() setup( name='wishful_testing_framework', version='0.1.0', packages=find_packages(), url='http://www.wishful-project.eu/software', license='', author='Piotr Gawlowicz', author_...
27.55
65
0.673321
96e13148e96be3c7afef36adf635ed6ce6f53302
401
py
Python
interiorshop/wsgi.py
wilfex81/INTERIORSHOP
0b1859e240b47b956f366e8eab53cecdc2786bcd
[ "MIT" ]
null
null
null
interiorshop/wsgi.py
wilfex81/INTERIORSHOP
0b1859e240b47b956f366e8eab53cecdc2786bcd
[ "MIT" ]
1
2022-02-24T12:47:49.000Z
2022-02-24T12:47:49.000Z
interiorshop/wsgi.py
wilfex81/INTERIORSHOP
0b1859e240b47b956f366e8eab53cecdc2786bcd
[ "MIT" ]
null
null
null
""" WSGI config for interiorshop project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/4.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_...
23.588235
78
0.790524
2f1de2da16fa30175c565c03eb9949989f6a6942
4,475
py
Python
tests/conftest.py
alvistack/ionrock-cachecontrol
09992a140edca2602cf8230370fc8b28566a069b
[ "Apache-2.0" ]
353
2015-01-03T11:07:43.000Z
2022-03-01T10:24:29.000Z
tests/conftest.py
alvistack/ionrock-cachecontrol
09992a140edca2602cf8230370fc8b28566a069b
[ "Apache-2.0" ]
190
2015-01-07T10:00:49.000Z
2022-02-23T19:04:03.000Z
tests/conftest.py
alvistack/ionrock-cachecontrol
09992a140edca2602cf8230370fc8b28566a069b
[ "Apache-2.0" ]
108
2015-01-05T19:17:33.000Z
2022-02-27T20:02:18.000Z
# SPDX-FileCopyrightText: 2015 Eric Larson # # SPDX-License-Identifier: Apache-2.0 from pprint import pformat import os import socket import pytest import cherrypy class SimpleApp(object): def __init__(self): self.etag_count = 0 self.update_etag_string() def dispatch(self, env): ...
28.685897
85
0.608268
6a5ec02889d3e5098dc3073d5c220a9693f85494
8,403
py
Python
dashboard/apps/app1.py
gamyers/solar-697
90ca38072456af385c98b1bdf3c3d563e2c71f15
[ "MIT" ]
1
2021-08-24T00:00:23.000Z
2021-08-24T00:00:23.000Z
dashboard/apps/app1.py
gamyers/solar-697
90ca38072456af385c98b1bdf3c3d563e2c71f15
[ "MIT" ]
null
null
null
dashboard/apps/app1.py
gamyers/solar-697
90ca38072456af385c98b1bdf3c3d563e2c71f15
[ "MIT" ]
2
2021-08-30T20:36:36.000Z
2021-11-02T19:13:33.000Z
import sqlite3 import sys import dash import dash_bootstrap_components as dbc import dash_core_components as dcc import dash_html_components as html import logzero import numpy as np import pandas as pd import plotly.graph_objects as go import yaml from app import app from dash.dependencies import Input, Output from d...
32.952941
100
0.471855
9f159ed4cbe2e34fae811c65f4ab2181e34c476a
1,377
py
Python
bloomfilter.py
jetz/algorithms
1cf3a0864b4de06442457ab4a171f2eabfc2bb66
[ "MIT" ]
null
null
null
bloomfilter.py
jetz/algorithms
1cf3a0864b4de06442457ab4a171f2eabfc2bb66
[ "MIT" ]
null
null
null
bloomfilter.py
jetz/algorithms
1cf3a0864b4de06442457ab4a171f2eabfc2bb66
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 from BitVector import BitVector class BloomFilter(object): """ 布隆过滤器 """ def __init__(self, n): super(BloomFilter, self).__init__() self.n = n self.bits = BitVector(size=n) def __hashcodes(self, val): """ 供布隆过滤器使用的哈希函数 ...
25.981132
63
0.499637
306c5e21b421427000a6e1be2af450f7b02b3e8c
43,900
py
Python
evennia/evennia/utils/evmenu.py
MarsZone/DreamLand
87455f421c1ba09cb6efd5fc0882fbc2a29ea1a5
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
evennia/evennia/utils/evmenu.py
MarsZone/DreamLand
87455f421c1ba09cb6efd5fc0882fbc2a29ea1a5
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
evennia/evennia/utils/evmenu.py
MarsZone/DreamLand
87455f421c1ba09cb6efd5fc0882fbc2a29ea1a5
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
""" EvMenu This implements a full menu system for Evennia. It is considerably more flexible than the older contrib/menusystem.py and also uses menu plugin modules. To start the menu, just import the EvMenu class from this module. Example usage: ```python from evennia.utils.evmenu import EvMenu EvMenu(calle...
39.65673
120
0.611435
ebee1b0a7566e5214889d60be92f3600253130b4
7,951
py
Python
src/parsec/configs-mesi-two-level/run_parsec_mesi_two_level.py
my569/gem5-resources
5788f1394a1894efec8e4784d37f473a743aa9f6
[ "MIT" ]
1
2022-01-04T03:41:23.000Z
2022-01-04T03:41:23.000Z
src/parsec/configs-mesi-two-level/run_parsec_mesi_two_level.py
my569/gem5-resources
5788f1394a1894efec8e4784d37f473a743aa9f6
[ "MIT" ]
null
null
null
src/parsec/configs-mesi-two-level/run_parsec_mesi_two_level.py
my569/gem5-resources
5788f1394a1894efec8e4784d37f473a743aa9f6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2019 The Regents of the University of California. # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: redistributions of source code must retain the above copyr...
38.97549
84
0.664319
9aab08fbd44542df04653a9aaebf08ab7e755cf4
666
py
Python
tests/test_ekey.py
shatgupt/django-encrypted-id
4fcbc66cd2b7d3489e73357efbf3db61feaf37a2
[ "BSD-2-Clause" ]
31
2016-05-30T19:28:25.000Z
2021-11-10T01:33:12.000Z
tests/test_ekey.py
shatgupt/django-encrypted-id
4fcbc66cd2b7d3489e73357efbf3db61feaf37a2
[ "BSD-2-Clause" ]
21
2016-05-30T11:44:24.000Z
2020-10-22T08:12:21.000Z
tests/test_ekey.py
wittfabian/django-encrypted-id
9c15b114a0d1459f6d68de3815e5f372e197078b
[ "BSD-2-Clause" ]
18
2016-05-11T17:57:35.000Z
2022-03-23T14:53:10.000Z
# -*- coding: utf-8 -*- from __future__ import division from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals import pytest from django.http import Http404 from encrypted_id import ekey, get_object_or_404 from tapp.models import Foo def test_ekey(db): ...
22.2
50
0.738739
20abaf05368fe7f54f1946da0911b5baed5a7122
2,295
py
Python
tests/test_examples.py
brentyi/jaxlie
4dbe16f3c1d1cfda30e0418ef5d1e1772cf9f537
[ "MIT" ]
128
2020-11-28T19:43:31.000Z
2022-03-14T11:48:12.000Z
tests/test_examples.py
brentyi/jaxlie
4dbe16f3c1d1cfda30e0418ef5d1e1772cf9f537
[ "MIT" ]
4
2021-06-27T09:04:54.000Z
2022-01-07T07:23:52.000Z
tests/test_examples.py
brentyi/jaxlie
4dbe16f3c1d1cfda30e0418ef5d1e1772cf9f537
[ "MIT" ]
7
2021-01-17T10:04:39.000Z
2022-01-06T21:22:15.000Z
"""Tests with explicit examples. """ import numpy as onp from hypothesis import given, settings from hypothesis import strategies as st from utils import assert_arrays_close, assert_transforms_close, sample_transform import jaxlie @settings(deadline=None) @given(_random_module=st.random_module()) def test_se2_tran...
31.013514
80
0.695425
0b644d1d60f7b06b5e5b3416bfc00a3e0dacde3d
495
py
Python
Python/calendar_fun.py
ArmstrongYang/StudyShare
6dffcfba6811865589a8e11748ffc7e71a656f50
[ "Apache-2.0" ]
2
2017-08-10T13:41:19.000Z
2017-11-30T09:00:33.000Z
Python/calendar_fun.py
ArmstrongYang/StudyShare
6dffcfba6811865589a8e11748ffc7e71a656f50
[ "Apache-2.0" ]
null
null
null
Python/calendar_fun.py
ArmstrongYang/StudyShare
6dffcfba6811865589a8e11748ffc7e71a656f50
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 #! /usr/bin/python # coding=utf-8 import calendar """ 返回的某个月的日历 返回类型是字符串型 """ cal = calendar.month(2011, 11) """ 返回一年的日历 """ cal = calendar.calendar(2011) cal = calendar.HTMLCalendar(calendar.MONDAY) """ 打印出一个月日历 """ cal.formatmonth(2011, 11) """ 打印出一年的日历 formatyearpage将生成完整的页面代码 """ print (cal...
12.375
44
0.711111
ec783959fa263d5603428b8ed2e86b9f71992fdb
45,218
py
Python
xnu-2782.1.97/tools/lldbmacros/ipc.py
LeeWongSnail/SourceCode_ReadingNote
b6bbf99a5fef6a087e053f6dfcc7f12691961ba6
[ "MIT" ]
null
null
null
xnu-2782.1.97/tools/lldbmacros/ipc.py
LeeWongSnail/SourceCode_ReadingNote
b6bbf99a5fef6a087e053f6dfcc7f12691961ba6
[ "MIT" ]
null
null
null
xnu-2782.1.97/tools/lldbmacros/ipc.py
LeeWongSnail/SourceCode_ReadingNote
b6bbf99a5fef6a087e053f6dfcc7f12691961ba6
[ "MIT" ]
1
2021-03-28T02:56:16.000Z
2021-03-28T02:56:16.000Z
""" Please make sure you read the README file COMPLETELY BEFORE reading anything below. It is very critical that you read coding guidelines in Section E in README file. """ from xnu import * import sys, shlex from utils import * from process import * from atm import * from bank import * import xnudefines @header(...
42.618285
186
0.648835
be015dcb455504cf55a34eb613263c8aaf4a86f5
56,787
py
Python
jp.atcoder/abc011/abc011_4/16937650.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-09T03:06:25.000Z
2022-02-09T03:06:25.000Z
jp.atcoder/abc011/abc011_4/16937650.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-05T22:53:18.000Z
2022-02-09T01:29:30.000Z
jp.atcoder/abc011/abc011_4/16937650.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
null
null
null
import math import string import sys from bisect import bisect_left as bi_l from bisect import bisect_right as bi_r from collections import Counter, defaultdict, deque from heapq import heappop, heappush from itertools import accumulate, combinations, product # from numba import jit import networkx as nx im...
32.137521
1,217
0.374293
a438ef5c97e48703427243c06af3a37a0d3e6373
738
py
Python
src/infrastructure/database/connection.py
YegorMedvedev/python-onion-scaffold
16ca5eebe58b3aee7dd304cc9f7856de6309b5cc
[ "MIT" ]
1
2022-02-23T05:07:09.000Z
2022-02-23T05:07:09.000Z
src/infrastructure/database/connection.py
YegorMedvedev/python-onion-scaffold
16ca5eebe58b3aee7dd304cc9f7856de6309b5cc
[ "MIT" ]
null
null
null
src/infrastructure/database/connection.py
YegorMedvedev/python-onion-scaffold
16ca5eebe58b3aee7dd304cc9f7856de6309b5cc
[ "MIT" ]
null
null
null
from os import getenv from sqlalchemy import create_engine from sqlalchemy.engine import Engine from sqlalchemy.ext.declarative import declarative_base, DeclarativeMeta from sqlalchemy.orm import sessionmaker, Session as SqlSession from infrastructure.utils.utils import Singleton class DatabaseConnection(metaclass=...
29.52
72
0.776423
10ffe8bd1c76095040531ba2a0758192085b9081
384
py
Python
bebras/2012/2012-IT-04/genImgs.py
davidnarum/bebras-tasks
57deb129451c0b95947e4ac0cac5022759a4095e
[ "MIT" ]
1
2021-05-20T12:01:21.000Z
2021-05-20T12:01:21.000Z
bebras/2012/2012-IT-04/genImgs.py
davidnarum/bebras-tasks
57deb129451c0b95947e4ac0cac5022759a4095e
[ "MIT" ]
1
2019-09-21T02:22:24.000Z
2021-05-29T04:57:27.000Z
bebras/2012/2012-IT-04/genImgs.py
davidnarum/bebras-tasks
57deb129451c0b95947e4ac0cac5022759a4095e
[ "MIT" ]
5
2017-08-14T21:03:48.000Z
2020-11-01T14:29:59.000Z
#! /usr/bin/python3 -B conv = {} conv['2012-IT-04_carte_bouee-original.png'] = '-quality 50 -colors 50' conv['2012-IT-04_carte_bouee_V2-original.png'] = '-quality 50 -colors 50' conv['2012-IT-04_solution-original.png'] = '-quality 50 -colors 50' if __name__ == '__main__': import sys, os sys.path.append(os.path.j...
29.538462
73
0.677083
4be6a81e32af429a9352eb6eb972c5c180fe0996
39,116
py
Python
yolov5/utils/datasets.py
kungfumas/American-Sign-Language
393ba1ba066a3e3e4a60076415fba902649121b3
[ "MIT" ]
null
null
null
yolov5/utils/datasets.py
kungfumas/American-Sign-Language
393ba1ba066a3e3e4a60076415fba902649121b3
[ "MIT" ]
null
null
null
yolov5/utils/datasets.py
kungfumas/American-Sign-Language
393ba1ba066a3e3e4a60076415fba902649121b3
[ "MIT" ]
null
null
null
import glob import math import os import random import shutil import time from pathlib import Path from threading import Thread import cv2 import numpy as np import torch from PIL import Image, ExifTags from torch.utils.data import Dataset from tqdm import tqdm from utils.general import xyxy2xywh, xywh2xyxy, torch_di...
41.480382
238
0.531138