hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 11
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 251 | max_stars_repo_name stringlengths 4 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 251 | max_issues_repo_name stringlengths 4 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 251 | max_forks_repo_name stringlengths 4 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 1 1.05M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.04M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8ff637c24d2d3ca3739cc6d07e1b9e50d3c7c2e9 | 333 | py | Python | archive/data-processing/archive/features/nn50.py | FloFincke/affective-chat | 241c2b555541968f7e5e70b022fdb71102aed510 | [
"MIT"
] | null | null | null | archive/data-processing/archive/features/nn50.py | FloFincke/affective-chat | 241c2b555541968f7e5e70b022fdb71102aed510 | [
"MIT"
] | 10 | 2020-01-28T22:17:46.000Z | 2022-02-09T23:30:57.000Z | archive/data-processing/archive/features/nn50.py | FloFincke/affective-chat | 241c2b555541968f7e5e70b022fdb71102aed510 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#pNN50, the proportion of differences greater than 50ms
import math | 17.526316 | 55 | 0.60961 |
8ff7d3fd7850ce85b7cdc21936b6c84557edd802 | 1,539 | py | Python | twisted/plugins/tftp_plugin.py | aivins/python-tx-tftp | 46abaa3e9e054d2bdce5d8e5c76a87b1f36b218c | [
"MIT"
] | 1 | 2021-02-06T11:26:32.000Z | 2021-02-06T11:26:32.000Z | twisted/plugins/tftp_plugin.py | techman83/python-tx-tftp | 46abaa3e9e054d2bdce5d8e5c76a87b1f36b218c | [
"MIT"
] | null | null | null | twisted/plugins/tftp_plugin.py | techman83/python-tx-tftp | 46abaa3e9e054d2bdce5d8e5c76a87b1f36b218c | [
"MIT"
] | 1 | 2016-12-20T02:42:27.000Z | 2016-12-20T02:42:27.000Z | '''
@author: shylent
'''
from tftp.backend import FilesystemSynchronousBackend
from tftp.protocol import TFTP
from twisted.application import internet
from twisted.application.service import IServiceMaker
from twisted.plugin import IPlugin
from twisted.python import usage
from twisted.python.filepath import FilePath
fr... | 33.456522 | 86 | 0.662118 |
8ff815d0607235f9ac3a10d543c6f6504fedab0d | 276 | py | Python | python__fundamentals/list_basics/04.search.py | EmilianStoyanov/Projects-in-SoftUni | e83996670fe00424a158905d537a7bbbeee8fb59 | [
"MIT"
] | 1 | 2020-07-14T12:32:47.000Z | 2020-07-14T12:32:47.000Z | python__fundamentals/list_basics/04.search.py | EmilianStoyanov/Projects-in-SoftUni | e83996670fe00424a158905d537a7bbbeee8fb59 | [
"MIT"
] | null | null | null | python__fundamentals/list_basics/04.search.py | EmilianStoyanov/Projects-in-SoftUni | e83996670fe00424a158905d537a7bbbeee8fb59 | [
"MIT"
] | null | null | null | number = int(input())
word = input()
save = []
for i in range(number):
current_string = input()
save.append(current_string)
print(save)
for i in range(len(save) -1, -1, -1):
element = save[i]
if word not in element:
save.remove(element)
print(save)
| 17.25 | 37 | 0.626812 |
8ff8a172c102fabba5e6a16cd27224c049f36e7f | 170 | py | Python | dashboard/apps.py | hosseinmoghimi/waiter | 9f5f332b6f252a29aa14f67655b423fd9c40fba3 | [
"MIT"
] | 1 | 2021-12-02T11:16:53.000Z | 2021-12-02T11:16:53.000Z | dashboard/apps.py | hosseinmoghimi/waiter | 9f5f332b6f252a29aa14f67655b423fd9c40fba3 | [
"MIT"
] | null | null | null | dashboard/apps.py | hosseinmoghimi/waiter | 9f5f332b6f252a29aa14f67655b423fd9c40fba3 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
APP_NAME="dashboard"
| 24.285714 | 56 | 0.776471 |
8ff9346c09375fb59a901d816f53f74a1b16902d | 3,720 | py | Python | midi_transformer/data.py | s-omranpour/Midi-Transformer | 7ffa9e318b3f92dc71a9d38c0f6bd148addbb787 | [
"MIT"
] | 9 | 2021-03-25T09:31:43.000Z | 2022-03-30T12:53:41.000Z | midi_transformer/data.py | s-omranpour/Midi-Transformer | 7ffa9e318b3f92dc71a9d38c0f6bd148addbb787 | [
"MIT"
] | 2 | 2021-06-24T14:03:58.000Z | 2021-10-10T08:48:11.000Z | midi_transformer/data.py | s-omranpour/Midi-Transformer | 7ffa9e318b3f92dc71a9d38c0f6bd148addbb787 | [
"MIT"
] | null | null | null | import os
import numpy as np
from tqdm.notebook import tqdm
from deepnote import MusicRepr
from deepnote import DEFAULT_UNIT
from joblib import delayed, Parallel
import torch
from torch.utils.data import random_split, Dataset, DataLoader
| 31.260504 | 132 | 0.569086 |
8ffb58695efe34f05f3782c0a36787141a927d68 | 269 | py | Python | arjuna-samples/workspace/arjex/tests/modules/s02guiauto/ep01selenium/ex01_basic.py | test-mile/arjuna | 21880b41e061e11bac2e600a3614684f8af75b2f | [
"Apache-2.0"
] | 9 | 2018-11-15T10:09:17.000Z | 2021-01-12T05:59:19.000Z | arjuna-samples/workspace/arjex/tests/modules/s02guiauto/ep01selenium/ex01_basic.py | test-mile/arjuna | 21880b41e061e11bac2e600a3614684f8af75b2f | [
"Apache-2.0"
] | 2 | 2019-07-01T15:33:46.000Z | 2019-07-12T13:04:08.000Z | arjuna-samples/workspace/arjex/tests/modules/s02guiauto/ep01selenium/ex01_basic.py | test-mile/arjuna | 21880b41e061e11bac2e600a3614684f8af75b2f | [
"Apache-2.0"
] | 4 | 2018-12-02T15:14:04.000Z | 2020-05-28T12:57:24.000Z | from arjuna.tpi import Arjuna
from arjuna.tpi.markup import *
| 19.214286 | 59 | 0.724907 |
8ffd6bcc2115d84d5eb85d847a161fe75fb0b230 | 108 | py | Python | examples/helloworld2.py | lam2mo/FPTuner | 29898c96741db341716a20ebfc4d12138cac2c99 | [
"MIT"
] | 14 | 2016-10-29T18:45:03.000Z | 2021-02-12T01:46:54.000Z | examples/helloworld2.py | lam2mo/FPTuner | 29898c96741db341716a20ebfc4d12138cac2c99 | [
"MIT"
] | 4 | 2017-09-12T13:24:54.000Z | 2021-02-19T03:21:18.000Z | examples/helloworld2.py | lam2mo/FPTuner | 29898c96741db341716a20ebfc4d12138cac2c99 | [
"MIT"
] | 4 | 2017-07-19T21:46:54.000Z | 2020-05-21T20:34:41.000Z |
import tft_ir_api as IR
A = IR.RealVE("A", 0, 0.0, 100.0)
rel = IR.BE("+", 4, A, A)
IR.TuneExpr(rel)
| 12 | 33 | 0.555556 |
8ffdf7d6b9290753ad405906f6efd2a2a6482f7e | 20,923 | py | Python | cycif_modules.py | biodev/cycIF-workflow | b272ebf2808dec6847f45c5e5ab8d8e2f6bb143f | [
"MIT"
] | null | null | null | cycif_modules.py | biodev/cycIF-workflow | b272ebf2808dec6847f45c5e5ab8d8e2f6bb143f | [
"MIT"
] | null | null | null | cycif_modules.py | biodev/cycIF-workflow | b272ebf2808dec6847f45c5e5ab8d8e2f6bb143f | [
"MIT"
] | null | null | null | # CycIF Modules
#
# Megan Grout groutm2020@alumni.ohsu.edu
#
# These functions were developed for use in the CycIF workflow,
# which was developed based off of the scripts written by
# Dr. Marilyne Labrie and Nick Kendsersky.
#
# Last updated: 20200527
# Import neccessary libraries
import os
import subprocess
import r... | 47.337104 | 106 | 0.692444 |
8fff20673ddaf23c45efdb1f3b876c316a2068b7 | 1,866 | py | Python | lagom/core/transform/centralize.py | dkorduban/lagom | 84d90902e70ed15a541406b7423a2d4ef74366e3 | [
"MIT"
] | null | null | null | lagom/core/transform/centralize.py | dkorduban/lagom | 84d90902e70ed15a541406b7423a2d4ef74366e3 | [
"MIT"
] | null | null | null | lagom/core/transform/centralize.py | dkorduban/lagom | 84d90902e70ed15a541406b7423a2d4ef74366e3 | [
"MIT"
] | null | null | null | import numpy as np
from .base_transform import BaseTransform
| 31.627119 | 105 | 0.53537 |
8900f7724e7559e2de21fd26b848fe88fb6a244b | 4,447 | py | Python | src/subtitles_job_schedule/subtitles_observer.py | hguerra/subtitles-job-schedule | 0a3ffb0be29b9923c71f8401f03f9f1d42f5574f | [
"MIT"
] | null | null | null | src/subtitles_job_schedule/subtitles_observer.py | hguerra/subtitles-job-schedule | 0a3ffb0be29b9923c71f8401f03f9f1d42f5574f | [
"MIT"
] | 1 | 2021-06-02T00:58:51.000Z | 2021-06-02T00:58:51.000Z | src/subtitles_job_schedule/subtitles_observer.py | hguerra/subtitles-job-schedule | 0a3ffb0be29b9923c71f8401f03f9f1d42f5574f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
This is a skeleton file that can serve as a starting point for a Python
console script. To run this script uncomment the following lines in the
[options.entry_points] section in setup.cfg:
console_scripts =
subtitles = subtitles_job_schedule.subtitles_observer:run
Then run `py... | 30.881944 | 107 | 0.654149 |
89014dc2858601712ba920a731793e58568cc9f2 | 1,708 | py | Python | sarpy/deprecated/tools/taser_web/algorithms/sarpy/remap_data/main.py | spowlas/sarpy | c4a404203607d404b93a556459aa5311d7148e95 | [
"MIT"
] | null | null | null | sarpy/deprecated/tools/taser_web/algorithms/sarpy/remap_data/main.py | spowlas/sarpy | c4a404203607d404b93a556459aa5311d7148e95 | [
"MIT"
] | 1 | 2019-11-14T20:55:57.000Z | 2019-12-27T18:11:29.000Z | sarpy/deprecated/tools/taser_web/algorithms/sarpy/remap_data/main.py | spowlas/sarpy | c4a404203607d404b93a556459aa5311d7148e95 | [
"MIT"
] | 2 | 2020-02-12T20:11:00.000Z | 2020-03-26T16:55:03.000Z | from algorithm_toolkit import Algorithm, AlgorithmChain
from sarpy.visualization import remap
| 27.548387 | 76 | 0.556206 |
890173c098efbb21c342e48a19464d1111162394 | 676 | py | Python | donkeycar/tests/test_tub_reader.py | cliffordchow/donkey | cee0f97088565bf5d3523e24468e67afbbdcc023 | [
"MIT"
] | 13 | 2018-10-25T17:45:18.000Z | 2020-08-27T14:54:12.000Z | donkeycar/tests/test_tub_reader.py | cliffordchow/donkey | cee0f97088565bf5d3523e24468e67afbbdcc023 | [
"MIT"
] | 8 | 2019-06-12T07:21:39.000Z | 2019-06-12T08:03:40.000Z | donkeycar/tests/test_tub_reader.py | cliffordchow/donkey | cee0f97088565bf5d3523e24468e67afbbdcc023 | [
"MIT"
] | 4 | 2018-10-25T09:41:43.000Z | 2020-04-07T13:56:47.000Z | # -*- coding: utf-8 -*-
import unittest
import tempfile
import os
from donkeycar.parts.datastore import Tub, TubReader, TubWriter
| 30.727273 | 63 | 0.615385 |
89018381ca750510dc54b5a9055d6f319e580f08 | 3,157 | py | Python | parameter.py | safamathl/ResUnet | 04968053ddfedc8ef7e6d82d2b3a9b46f28d1692 | [
"MIT"
] | 3 | 2020-12-18T21:19:21.000Z | 2022-01-20T12:38:42.000Z | parameter.py | safamathl/ResUnet | 04968053ddfedc8ef7e6d82d2b3a9b46f28d1692 | [
"MIT"
] | null | null | null | parameter.py | safamathl/ResUnet | 04968053ddfedc8ef7e6d82d2b3a9b46f28d1692 | [
"MIT"
] | 2 | 2021-09-24T08:44:48.000Z | 2022-03-17T06:45:11.000Z | # -----------------------Path related parameters---------------------------------------
train_ct_path = '/content/gdrive/My Drive/MICCAI-LITS2017-master/train/ct' # CT data path of the original training set
train_seg_path = '/content/gdrive/My Drive/MICCAI-LITS2017-master/train/seg' # Original training set lab... | 35.47191 | 157 | 0.592334 |
8901855900587b944618c8469ff37ac8712f7cd4 | 6,745 | py | Python | CreateDB.py | elahesadatnaghib/FB-Scheduler-v2 | 6cd01df0ff1e67057a5425a4473f3220f73bbd62 | [
"MIT"
] | 1 | 2021-06-23T14:01:04.000Z | 2021-06-23T14:01:04.000Z | CreateDB.py | elahesadatnaghib/FB-Scheduler-v2 | 6cd01df0ff1e67057a5425a4473f3220f73bbd62 | [
"MIT"
] | null | null | null | CreateDB.py | elahesadatnaghib/FB-Scheduler-v2 | 6cd01df0ff1e67057a5425a4473f3220f73bbd62 | [
"MIT"
] | null | null | null | __author__ = 'Elahe'
import ephem
import numpy as np
import sqlite3 as lite
import os
| 33.725 | 138 | 0.44507 |
8903ed0c86f83533ebefbaf263c683ffe699cc4a | 4,562 | py | Python | tests/compliance/test_iam_compliance.py | hmrc/platsec-compliance-alerting | c12c871a475ec8c2034504799228e565626309b6 | [
"Apache-2.0"
] | null | null | null | tests/compliance/test_iam_compliance.py | hmrc/platsec-compliance-alerting | c12c871a475ec8c2034504799228e565626309b6 | [
"Apache-2.0"
] | null | null | null | tests/compliance/test_iam_compliance.py | hmrc/platsec-compliance-alerting | c12c871a475ec8c2034504799228e565626309b6 | [
"Apache-2.0"
] | null | null | null | from datetime import datetime, timedelta
from typing import List, Dict, Any
from zoneinfo import ZoneInfo
from tests.test_types_generator import create_account, create_audit
from src.compliance.iam_compliance import IamCompliance
from src.data.account import Account
from src.data.findings import Findings
EXPECTED_OL... | 32.820144 | 110 | 0.575186 |
8904373aaecfdf0e3fe1f208451b5f80bdc6f598 | 515 | py | Python | ar_app/scripts/renamefiles.py | osetr/ar-opencv-python | ae62ebeed176ef2e6d8d68fbaaa7d402dadc3eb3 | [
"MIT"
] | 1 | 2020-11-22T13:55:11.000Z | 2020-11-22T13:55:11.000Z | ar_app/scripts/renamefiles.py | osetr/ar-opencv-python | ae62ebeed176ef2e6d8d68fbaaa7d402dadc3eb3 | [
"MIT"
] | null | null | null | ar_app/scripts/renamefiles.py | osetr/ar-opencv-python | ae62ebeed176ef2e6d8d68fbaaa7d402dadc3eb3 | [
"MIT"
] | null | null | null | import os
from natsort import natsorted
path_to_directory = input("Enter path to directory: ") + "/"
new_name = input("Enter new name for files: ")
try:
i = 0
list_of_files = natsorted(os.listdir(path_to_directory))
for file in list_of_files:
i += 1
extension = file.split(".")[1]
o... | 27.105263 | 68 | 0.631068 |
890651116b57bf07c975675fcb0152f690cec2d3 | 1,236 | py | Python | pwn/ROP/arr/writeup/exploit.py | roytu/challs2 | c087d802961451fce21ccaf9b4d908711233dda8 | [
"MIT"
] | null | null | null | pwn/ROP/arr/writeup/exploit.py | roytu/challs2 | c087d802961451fce21ccaf9b4d908711233dda8 | [
"MIT"
] | null | null | null | pwn/ROP/arr/writeup/exploit.py | roytu/challs2 | c087d802961451fce21ccaf9b4d908711233dda8 | [
"MIT"
] | null | null | null | from pwn import *
ppr = 0x80487ba
sysAddr = 0x8048430
scanf = 0x8048460
storage = 0x804999c
strFmtStr = 0x804882f
current = -2147483635
con = remote('localhost',1234)
con.sendline( "kablaa")
print "sending scanf..."
sleep(1)
con.sendline( str(current))
con.sendline(str(scanf))
current = current+1
print "sending pp... | 18.447761 | 38 | 0.727346 |
8906e41b0e2eb2a80f686b6c8428c70bf8ab1bf1 | 1,387 | py | Python | keyman44/interface/rcv_page.py | sahabi/keyman44 | 73d62eac3b96ec6951b1d88edf5e0f7c787f7440 | [
"MIT"
] | null | null | null | keyman44/interface/rcv_page.py | sahabi/keyman44 | 73d62eac3b96ec6951b1d88edf5e0f7c787f7440 | [
"MIT"
] | null | null | null | keyman44/interface/rcv_page.py | sahabi/keyman44 | 73d62eac3b96ec6951b1d88edf5e0f7c787f7440 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ui/rcv_page.ui'
#
# Created by: PyQt5 UI code generator 5.9
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
| 38.527778 | 69 | 0.695025 |
890720448b3e50f1c48c03d7c7569b9fe8390425 | 348 | py | Python | python-flask-server/jatdb_server/models/__init__.py | NGenetzky/jatdb | 518e0cedca1b61b8a744aef5e02255d8501bf8eb | [
"MIT"
] | null | null | null | python-flask-server/jatdb_server/models/__init__.py | NGenetzky/jatdb | 518e0cedca1b61b8a744aef5e02255d8501bf8eb | [
"MIT"
] | null | null | null | python-flask-server/jatdb_server/models/__init__.py | NGenetzky/jatdb | 518e0cedca1b61b8a744aef5e02255d8501bf8eb | [
"MIT"
] | null | null | null | # coding: utf-8
# flake8: noqa
from __future__ import absolute_import
# import models into model package
from jatdb_server.models.content_file import ContentFile
from jatdb_server.models.trello_action import TrelloAction
from jatdb_server.models.trello_query import TrelloQuery
from jatdb_server.models.universal_resour... | 34.8 | 68 | 0.864943 |
8907501c9b28be9a6d3ff576ef6b0896b6546e5f | 470 | py | Python | geohash/models.py | sewald101/geohash_root | 64f56c21f4a0892e6b3bdc332140988363a5fab8 | [
"Unlicense"
] | 1 | 2020-12-10T23:23:47.000Z | 2020-12-10T23:23:47.000Z | geohash/models.py | sewald101/geohash_root | 64f56c21f4a0892e6b3bdc332140988363a5fab8 | [
"Unlicense"
] | 1 | 2021-06-04T23:33:06.000Z | 2021-06-04T23:33:06.000Z | geohash/models.py | sewald101/geohash_root | 64f56c21f4a0892e6b3bdc332140988363a5fab8 | [
"Unlicense"
] | null | null | null |
import datetime
from django.db import models
from django.utils import timezone
# Create your models here.
| 23.5 | 69 | 0.66383 |
89077f2367ee18f8e41fe7e6b06e748e3f04477b | 398 | py | Python | Numeric Patterns/numericpattern130.py | vaidehisinha1/Python-PatternHouse | 49f71bcc5319a838592e69b0e49ef1edba32bf7c | [
"MIT"
] | null | null | null | Numeric Patterns/numericpattern130.py | vaidehisinha1/Python-PatternHouse | 49f71bcc5319a838592e69b0e49ef1edba32bf7c | [
"MIT"
] | 471 | 2022-01-15T07:07:18.000Z | 2022-02-28T16:01:42.000Z | Numeric Patterns/numericpattern130.py | vaidehisinha1/Python-PatternHouse | 49f71bcc5319a838592e69b0e49ef1edba32bf7c | [
"MIT"
] | 2 | 2022-01-17T09:43:16.000Z | 2022-01-29T15:15:47.000Z | print("Enter the no of rows: ")
n = int(input())
for i in range(n):
count = 0
flag = 0
for j in range(n):
if(i==j):
flag = 1
if(flag==1):
print(n-count, end=" ")
count+=1
if(flag!=1):
print("1",end=" ")
print()
# Enter the no o... | 17.304348 | 35 | 0.41206 |
890884d403a44bf6e359a34cc5b3da6b4e1ecb25 | 92 | py | Python | Knight-Rank/DAY-5/114A.py | rohansaini886/Peer-Programming-Hub-CP-Winter_Camp | d27fb6aa7e726e6d2cb95270c9e644d38d64dd1c | [
"MIT"
] | 2 | 2021-12-09T18:07:46.000Z | 2022-01-26T16:51:18.000Z | Knight-Rank/DAY-5/114A.py | rohansaini886/Peer-Programming-Hub-CP-Winter_Camp | d27fb6aa7e726e6d2cb95270c9e644d38d64dd1c | [
"MIT"
] | null | null | null | Knight-Rank/DAY-5/114A.py | rohansaini886/Peer-Programming-Hub-CP-Winter_Camp | d27fb6aa7e726e6d2cb95270c9e644d38d64dd1c | [
"MIT"
] | null | null | null | I=input
k=int(I())
l=int(I())
r=1
while k**r<l:r+=1
print(['NO','YES\n'+str(r-1)][k**r==l])
| 13.142857 | 39 | 0.51087 |
8909c90be41b3c182e25dc48d8af68ce98727542 | 10,048 | py | Python | web-client/core/main/builder_custom.py | libremente/service-app | 3cc710d2d91ca61c9f628dd023326c16cf934c51 | [
"MIT"
] | null | null | null | web-client/core/main/builder_custom.py | libremente/service-app | 3cc710d2d91ca61c9f628dd023326c16cf934c51 | [
"MIT"
] | null | null | null | web-client/core/main/builder_custom.py | libremente/service-app | 3cc710d2d91ca61c9f628dd023326c16cf934c51 | [
"MIT"
] | null | null | null | # Copyright INRIM (https://www.inrim.eu)
# See LICENSE file for full licensing details.
import copy
from copy import deepcopy
from formiodata.builder import Builder
from formiodata.form import Form
import collections
from . import custom_components
import logging
import uuid
logger = logging.getLogger(__name__)
C... | 39.25 | 93 | 0.593252 |
890a303490f0d4c10fdac1554b0797ec1d40e603 | 1,828 | py | Python | signuplogin/views.py | xflows/textflows | 7fd99cebe29bcb25ea21b8bfb7dca2d0b663ea2b | [
"MIT"
] | 18 | 2015-07-29T07:14:41.000Z | 2021-05-31T16:10:49.000Z | signuplogin/views.py | xflows/textflows | 7fd99cebe29bcb25ea21b8bfb7dca2d0b663ea2b | [
"MIT"
] | null | null | null | signuplogin/views.py | xflows/textflows | 7fd99cebe29bcb25ea21b8bfb7dca2d0b663ea2b | [
"MIT"
] | 8 | 2016-02-05T10:13:40.000Z | 2020-11-10T14:36:31.000Z | from django.contrib.auth.models import User
from django.contrib.auth import authenticate, login, logout
from django.shortcuts import render, get_object_or_404, redirect
from django.utils import timezone
| 35.843137 | 101 | 0.584245 |
890a660bfe2a29351888f55b1a581b8fa290f798 | 1,573 | py | Python | calculate_gc.py | kaclark/DHS_intergenic_analysis | 5ae1dc1c257ae9dc0e001e07402bebd8e31f0f60 | [
"MIT"
] | null | null | null | calculate_gc.py | kaclark/DHS_intergenic_analysis | 5ae1dc1c257ae9dc0e001e07402bebd8e31f0f60 | [
"MIT"
] | null | null | null | calculate_gc.py | kaclark/DHS_intergenic_analysis | 5ae1dc1c257ae9dc0e001e07402bebd8e31f0f60 | [
"MIT"
] | null | null | null | #Calculates length and GC content of DHSs sites from fasta files
#DHS_#_intergenic.fa generated from bedtools getfasta using original DHS files filtered for only intergenic regions
#Exports DHS_#_gc.csv
#Exports DHS_#_lengths.csv
from Bio import SeqIO
import csv
#DhS files
files = ['1','2','4','8']
for entry in fi... | 33.468085 | 115 | 0.624285 |
890b2e1b364bf851c7432636223e1e2bc6197a6a | 338 | py | Python | tests/functional/test_90_pages.py | tomberek/liberaforms | 5830acea9d456208ae612c6c548eb35c2d3c4106 | [
"MIT"
] | 3 | 2021-09-02T16:45:42.000Z | 2022-02-21T19:06:25.000Z | tests/functional/test_90_pages.py | tomberek/liberaforms | 5830acea9d456208ae612c6c548eb35c2d3c4106 | [
"MIT"
] | 2 | 2021-08-17T04:13:10.000Z | 2021-09-14T22:48:21.000Z | tests/functional/test_90_pages.py | tomberek/liberaforms | 5830acea9d456208ae612c6c548eb35c2d3c4106 | [
"MIT"
] | 1 | 2021-08-17T07:13:15.000Z | 2021-08-17T07:13:15.000Z | """
This file is part of LiberaForms.
# SPDX-FileCopyrightText: 2021 LiberaForms.org
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
import os
| 21.125 | 55 | 0.689349 |
890d9ab31125e9df9d39fc1646d9e79b7fac81f4 | 2,057 | py | Python | thermostat/multiple.py | EPAENERGYSTAR/epathermostat | 98aaf571fe8e15e1a372567776081fd9dae7e872 | [
"MIT"
] | 12 | 2017-03-08T23:17:44.000Z | 2021-10-15T15:56:30.000Z | thermostat/multiple.py | EPAENERGYSTAR/epathermostat | 98aaf571fe8e15e1a372567776081fd9dae7e872 | [
"MIT"
] | 23 | 2017-10-24T00:07:37.000Z | 2021-07-15T14:42:31.000Z | thermostat/multiple.py | EPAENERGYSTAR/epathermostat | 98aaf571fe8e15e1a372567776081fd9dae7e872 | [
"MIT"
] | 11 | 2017-03-22T22:35:30.000Z | 2021-01-01T22:30:14.000Z | from multiprocessing import Pool
def _calc_epa_func(thermostat):
""" Takes an individual thermostat and runs the
calculate_epa_field_savings_metrics method. This method is necessary for
the multiprocessing pool as map / imap need a function to run on.
Parameters
----------
thermostat : thermo... | 30.701493 | 79 | 0.684006 |
890dc5ad7a4dd8251c18b6ce321d8d6c11e724bf | 5,635 | py | Python | training_LSTM.py | Zhangism/EEG-to-speech-classcification | e36cfd2dd6ea9800e6d9f2c3919cba6b66d9d6ef | [
"MIT"
] | 2 | 2020-06-05T09:59:19.000Z | 2020-06-05T13:21:35.000Z | training_LSTM.py | Zhangism/EEG-to-speech-classcification | e36cfd2dd6ea9800e6d9f2c3919cba6b66d9d6ef | [
"MIT"
] | null | null | null | training_LSTM.py | Zhangism/EEG-to-speech-classcification | e36cfd2dd6ea9800e6d9f2c3919cba6b66d9d6ef | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Apr 15 17:43:05 2020
@author: zhang
"""
import os
import numpy as np
import torch
from torch.utils.data import DataLoader,TensorDataset
from torch.autograd import Variable
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
impo... | 39.131944 | 258 | 0.617924 |
890fa29094f2698ba0162646dededd0938cbb192 | 202 | py | Python | data_collection/gazette/spiders/sc_sao_domingos.py | kaiocp/querido-diario | 86004049c6eee305e13066cf3607d30849bb099a | [
"MIT"
] | 454 | 2018-04-07T03:32:57.000Z | 2020-08-17T19:56:22.000Z | data_collection/gazette/spiders/sc_sao_domingos.py | kaiocp/querido-diario | 86004049c6eee305e13066cf3607d30849bb099a | [
"MIT"
] | 254 | 2020-08-18T14:09:43.000Z | 2022-03-28T11:30:51.000Z | data_collection/gazette/spiders/sc_sao_domingos.py | kaiocp/querido-diario | 86004049c6eee305e13066cf3607d30849bb099a | [
"MIT"
] | 183 | 2018-04-11T15:09:37.000Z | 2020-08-15T18:55:11.000Z | from gazette.spiders.base.fecam import FecamGazetteSpider
| 25.25 | 57 | 0.777228 |
890fe5367df12b553ca997f9758e1b470ced1723 | 3,540 | py | Python | mirtop/gff/body.py | AlisR/mirtop | c59b102c079816a4ba023e593bb3fb260eb3a7e5 | [
"MIT"
] | null | null | null | mirtop/gff/body.py | AlisR/mirtop | c59b102c079816a4ba023e593bb3fb260eb3a7e5 | [
"MIT"
] | null | null | null | mirtop/gff/body.py | AlisR/mirtop | c59b102c079816a4ba023e593bb3fb260eb3a7e5 | [
"MIT"
] | null | null | null | import mirtop.libs.logger as mylog
logger = mylog.getLogger(__name__)
def create(reads, database, sample, fn, header):
"""Read https://github.com/miRTop/mirtop/issues/9"""
seen = set()
lines = []
seen_ann = {}
# print >>out_handle, "seq\tname\tfreq\tchrom\tstart\tend\tmism\tadd\tt5\tt3\ts5\ts3\tDB\... | 46.578947 | 175 | 0.539831 |
89102e8ca848b6e2650eb69463ed0f3738b0b58d | 520 | py | Python | src/messages.py | K-Paul-Acct/wChanger | 70643b52a7305f14cf1ebc9aeff089273edee8c5 | [
"MIT"
] | 2 | 2021-04-06T10:03:57.000Z | 2022-03-22T07:39:25.000Z | src/messages.py | K-Paul-Acct/wChanger | 70643b52a7305f14cf1ebc9aeff089273edee8c5 | [
"MIT"
] | 1 | 2021-11-13T00:14:14.000Z | 2021-11-13T00:14:14.000Z | src/messages.py | K-Paul-Acct/wChanger | 70643b52a7305f14cf1ebc9aeff089273edee8c5 | [
"MIT"
] | null | null | null | bot_is_not_admin = '! , , .'
setting = ' , ' \
' "@wchanger | "'
success = ' !'
greeting = '! ' + setting + ' !'
user_is_not_admin = ', '
error = '! '
| 65 | 99 | 0.751923 |
8910b2e8f89a21b8cb0bb94d8497fa22406c0df5 | 5,802 | py | Python | test/integration/smoke/test_deploy_vm_with_userdata.py | ksowmya/cloudstack-1 | f8f779158da056be7da669884ae4ddd109cec044 | [
"Apache-2.0"
] | 1 | 2020-03-27T22:21:20.000Z | 2020-03-27T22:21:20.000Z | test/integration/smoke/test_deploy_vm_with_userdata.py | ksowmya/cloudstack-1 | f8f779158da056be7da669884ae4ddd109cec044 | [
"Apache-2.0"
] | null | null | null | test/integration/smoke/test_deploy_vm_with_userdata.py | ksowmya/cloudstack-1 | f8f779158da056be7da669884ae4ddd109cec044 | [
"Apache-2.0"
] | 1 | 2019-12-26T07:16:06.000Z | 2019-12-26T07:16:06.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... | 39.202703 | 106 | 0.604447 |
8913c69b4e7db48a52ba5fd26ad60a538fed96aa | 1,636 | py | Python | day-09/part-2/jon.py | TPXP/adventofcode-2019 | ee653d6bfb510d14f2c2b3efc730d328c16b3f71 | [
"MIT"
] | 8 | 2019-12-01T08:56:46.000Z | 2019-12-05T21:21:12.000Z | day-09/part-2/jon.py | TPXP/adventofcode-2019 | ee653d6bfb510d14f2c2b3efc730d328c16b3f71 | [
"MIT"
] | 10 | 2019-11-25T09:56:20.000Z | 2021-05-10T19:57:48.000Z | day-09/part-2/jon.py | TPXP/adventofcode-2019 | ee653d6bfb510d14f2c2b3efc730d328c16b3f71 | [
"MIT"
] | 5 | 2019-12-01T08:19:57.000Z | 2020-11-23T09:50:19.000Z | from tool.runners.python import SubmissionPy
| 24.41791 | 60 | 0.43643 |
8913d86d344ae2c464ce977cf9852b8da922a5bd | 487 | py | Python | imdb/migrations/0004_auto_20200318_1539.py | raviteja1766/modern-resume-theme | 59b2cf57f0a1308f8d6650ca47318e8bd32e6bea | [
"MIT"
] | 1 | 2020-01-09T10:37:07.000Z | 2020-01-09T10:37:07.000Z | imdb/migrations/0004_auto_20200318_1539.py | raviteja1766/modern-resume-theme | 59b2cf57f0a1308f8d6650ca47318e8bd32e6bea | [
"MIT"
] | null | null | null | imdb/migrations/0004_auto_20200318_1539.py | raviteja1766/modern-resume-theme | 59b2cf57f0a1308f8d6650ca47318e8bd32e6bea | [
"MIT"
] | null | null | null | # Generated by Django 3.0.4 on 2020-03-18 15:39
from django.db import migrations, models
import django.db.models.deletion
| 24.35 | 112 | 0.644764 |
89178080e3a0ac0c8e85aac577d750c4b62bc0a7 | 5,929 | py | Python | pages/predictions.py | karencfisher/Hotel-App | d5ddaeb0c5394a41cdcf699eeb29cd6613d0afb4 | [
"MIT"
] | null | null | null | pages/predictions.py | karencfisher/Hotel-App | d5ddaeb0c5394a41cdcf699eeb29cd6613d0afb4 | [
"MIT"
] | null | null | null | pages/predictions.py | karencfisher/Hotel-App | d5ddaeb0c5394a41cdcf699eeb29cd6613d0afb4 | [
"MIT"
] | null | null | null | # Imports from 3rd party libraries
import dash
import dash_bootstrap_components as dbc
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
import dash_daq as daq
import datetime as dt
from sklearn.tree import DecisionTreeRegressor
from sklearn.ensemble imp... | 28.642512 | 102 | 0.586946 |
891831eb0405a73ddb320ff9898bfb3189ccdac1 | 2,301 | py | Python | utilities/management/commands/pages_seed.py | JsyPhil/literaterobot | 5855b28d60b04d2672721e3a80259d2677570694 | [
"BSD-3-Clause"
] | null | null | null | utilities/management/commands/pages_seed.py | JsyPhil/literaterobot | 5855b28d60b04d2672721e3a80259d2677570694 | [
"BSD-3-Clause"
] | null | null | null | utilities/management/commands/pages_seed.py | JsyPhil/literaterobot | 5855b28d60b04d2672721e3a80259d2677570694 | [
"BSD-3-Clause"
] | null | null | null | from django.core.management.base import BaseCommand
from wagtail.core.models import Page
from events.models import EventIndexPage, Event
from home.models import HomePage
from pathlib import Path
import json
import os
import sys
json_directory_path = Path("legacy_site_data/old_site_data_events.json")
with open(json_d... | 35.4 | 113 | 0.570187 |
64dece19a1806464e888c025b9bf3947998d205b | 2,400 | py | Python | src/createFile.py | mretolaza/dmbsDataProject | 37649f4391f846d4dbf4c2cc7e16f03a475a5451 | [
"MIT"
] | null | null | null | src/createFile.py | mretolaza/dmbsDataProject | 37649f4391f846d4dbf4c2cc7e16f03a475a5451 | [
"MIT"
] | null | null | null | src/createFile.py | mretolaza/dmbsDataProject | 37649f4391f846d4dbf4c2cc7e16f03a475a5451 | [
"MIT"
] | null | null | null | # Se importan las libreras que se van a utilizar
# https://docs.python.org/2/library/os.html
import os
# https://docs.python.org/3/library/shutil.html
import shutil
data_folder = "DATABASES/"
| 33.802817 | 99 | 0.627917 |
64dfd06c0a6fd052ad9d98834a2ee70b80ecc1c1 | 728 | py | Python | fundamentals/15-advance-objects-and-data-structures/5-advance-lists.py | davidokun/Python | 0172e4c6669dc0bdb1beab762948f0ade248bde0 | [
"MIT"
] | null | null | null | fundamentals/15-advance-objects-and-data-structures/5-advance-lists.py | davidokun/Python | 0172e4c6669dc0bdb1beab762948f0ade248bde0 | [
"MIT"
] | null | null | null | fundamentals/15-advance-objects-and-data-structures/5-advance-lists.py | davidokun/Python | 0172e4c6669dc0bdb1beab762948f0ade248bde0 | [
"MIT"
] | null | null | null | # Advance Lists
my_list = [1, 2, 3]
# Add element
print('\n# Add element\n')
my_list.append(4)
my_list.append(4)
print(my_list)
# Count element's occurrences
print('\n# Count element\'s occurrences\n')
print(f'2 = {my_list.count(2)}')
print(f'4 = {my_list.count(4)}')
print(f'5 = {my_list.count(5)}')
# Extend
print... | 18.666667 | 43 | 0.627747 |
64e3db1ac6b37142f68fda74466fe0e7eed1abc3 | 304 | py | Python | scripts/remove_empty_models.py | emanjavacas/casket | 3edf2ec41c725adbb9a66532fb56a53a7e457f94 | [
"MIT"
] | null | null | null | scripts/remove_empty_models.py | emanjavacas/casket | 3edf2ec41c725adbb9a66532fb56a53a7e457f94 | [
"MIT"
] | null | null | null | scripts/remove_empty_models.py | emanjavacas/casket | 3edf2ec41c725adbb9a66532fb56a53a7e457f94 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import argparse
if __name__ == '__main__':
parser = argparse.ArgumentParser(
description='Remove empty models from a db')
parser.add_argument('db-path')
args = parser.parse_args()
| 17.882353 | 52 | 0.674342 |
64e3e47a28caa9481770670a833516f65a1d1add | 717 | py | Python | backend/apps/users/filters.py | playonefor/turiy | e8065e0f6f8b3ade048375332b767a889a19c1df | [
"MIT"
] | null | null | null | backend/apps/users/filters.py | playonefor/turiy | e8065e0f6f8b3ade048375332b767a889a19c1df | [
"MIT"
] | null | null | null | backend/apps/users/filters.py | playonefor/turiy | e8065e0f6f8b3ade048375332b767a889a19c1df | [
"MIT"
] | null | null | null | from django_filters import rest_framework as filters
from django.db.models import Q
from django.contrib.auth import get_user_model
from users.models import tGroup
User = get_user_model()
| 21.088235 | 61 | 0.67643 |
64e40fa1a6eefc11c5998488aae4c1d58b1c30e3 | 702 | py | Python | server/src/main/resources/cloudFoundry/deployment_scripts/replace.py | miwurster/TOSCAna | 9282198e4f455c78308a3b3e05ce8fb821af8f18 | [
"Apache-2.0"
] | null | null | null | server/src/main/resources/cloudFoundry/deployment_scripts/replace.py | miwurster/TOSCAna | 9282198e4f455c78308a3b3e05ce8fb821af8f18 | [
"Apache-2.0"
] | null | null | null | server/src/main/resources/cloudFoundry/deployment_scripts/replace.py | miwurster/TOSCAna | 9282198e4f455c78308a3b3e05ce8fb821af8f18 | [
"Apache-2.0"
] | null | null | null | import sys
import fileinput
if __name__ == "__main__":
main()
| 26 | 92 | 0.695157 |
64e75e5d91430627f38e13369116fb40cd2922c2 | 1,791 | py | Python | tests/unit/app/test_lambda_handler.py | Sage-Bionetworks-IT/lambda-sc-coster-meter | 40f02f96f6eaa589904739507aee958e8d9e5c7b | [
"Apache-2.0"
] | null | null | null | tests/unit/app/test_lambda_handler.py | Sage-Bionetworks-IT/lambda-sc-coster-meter | 40f02f96f6eaa589904739507aee958e8d9e5c7b | [
"Apache-2.0"
] | 1 | 2020-11-13T17:48:21.000Z | 2020-11-13T17:48:21.000Z | tests/unit/app/test_lambda_handler.py | Sage-Bionetworks-IT/lambda-sc-coster-meter | 40f02f96f6eaa589904739507aee958e8d9e5c7b | [
"Apache-2.0"
] | 2 | 2020-11-03T21:55:09.000Z | 2021-06-07T16:52:32.000Z | import unittest
from unittest.mock import patch
from sc_cost_meter import app
| 35.82 | 70 | 0.660525 |
64e7e25ca8cd84b90e50653d24b27b10eabb9501 | 4,145 | py | Python | 1704/207/war.py | bdbaddog/dummy-for-migration-attachments | ad3b46d50b4c4b5e79363ae2fdcab3f15e1435de | [
"MIT"
] | null | null | null | 1704/207/war.py | bdbaddog/dummy-for-migration-attachments | ad3b46d50b4c4b5e79363ae2fdcab3f15e1435de | [
"MIT"
] | null | null | null | 1704/207/war.py | bdbaddog/dummy-for-migration-attachments | ad3b46d50b4c4b5e79363ae2fdcab3f15e1435de | [
"MIT"
] | null | null | null | """SCons.Tool.war
Tool-specific initialization for zip.
There normally shouldn't be any need to import this module directly.
It will usually be imported through the generic SCons.Tool.Tool()
selection method.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004 The SCons Foundation
#
# Permission is hereby granted, free of... | 36.681416 | 131 | 0.659349 |
64eacb5f9bf02d0279888ff422a48dcfab22057f | 132 | py | Python | tests/test_module.py | janezlapajne/python-project-template | bca24a061008e398a1d68b95df8c991d3524ad9d | [
"MIT"
] | null | null | null | tests/test_module.py | janezlapajne/python-project-template | bca24a061008e398a1d68b95df8c991d3524ad9d | [
"MIT"
] | null | null | null | tests/test_module.py | janezlapajne/python-project-template | bca24a061008e398a1d68b95df8c991d3524ad9d | [
"MIT"
] | null | null | null | import pytest
import os, glob
#import source.module as mod
#import tests.helpers as hlp
| 12 | 28 | 0.75 |
64ec95142a448199ac23ef7380751230be2fa7c7 | 3,198 | py | Python | SBaaS_LIMS/lims_oligos_query.py | dmccloskey/SBaaS_LIMS | 5dfd73689674953345d523178a67b8dda10e6d47 | [
"MIT"
] | null | null | null | SBaaS_LIMS/lims_oligos_query.py | dmccloskey/SBaaS_LIMS | 5dfd73689674953345d523178a67b8dda10e6d47 | [
"MIT"
] | null | null | null | SBaaS_LIMS/lims_oligos_query.py | dmccloskey/SBaaS_LIMS | 5dfd73689674953345d523178a67b8dda10e6d47 | [
"MIT"
] | null | null | null | from .lims_oligos_postgresql_models import *
from SBaaS_base.sbaas_base_query_update import sbaas_base_query_update
from SBaaS_base.sbaas_base_query_drop import sbaas_base_query_drop
from SBaaS_base.sbaas_base_query_initialize import sbaas_base_query_initialize
from SBaaS_base.sbaas_base_query_insert import sbaas_base... | 39.481481 | 93 | 0.569106 |
64ed40eb4b26feffa52afdfab19aa0fef7d3a03f | 3,389 | py | Python | scrapy_camouflage/middleware.py | tianhuil/scrapy-camouflage | 07f474ba4b3973c92f1e346d92ce6be4d77d3fbe | [
"Apache-2.0"
] | null | null | null | scrapy_camouflage/middleware.py | tianhuil/scrapy-camouflage | 07f474ba4b3973c92f1e346d92ce6be4d77d3fbe | [
"Apache-2.0"
] | null | null | null | scrapy_camouflage/middleware.py | tianhuil/scrapy-camouflage | 07f474ba4b3973c92f1e346d92ce6be4d77d3fbe | [
"Apache-2.0"
] | null | null | null | from abc import ABC, abstractmethod
import logging
from scrapy.downloadermiddlewares.retry import RetryMiddleware
from .user_agent import random_user_agent
logger = logging.getLogger(__name__) # pylint: disable=invalid-name
| 34.232323 | 103 | 0.712305 |
64ed44e453363a672a9e69494e503817cb7b74a6 | 431 | py | Python | examples/parse_by_sol.py | sluzhynskyi/nasa | 4f961d3614e3539447348ff512c318fbf43ce29b | [
"MIT"
] | 4 | 2019-08-22T06:48:55.000Z | 2021-07-26T12:20:26.000Z | examples/parse_by_sol.py | sluzhynskyi/nasa | 4f961d3614e3539447348ff512c318fbf43ce29b | [
"MIT"
] | 3 | 2019-03-06T20:22:56.000Z | 2021-06-01T23:46:15.000Z | examples/parse_by_sol.py | sluzhynskyi/nasa | 4f961d3614e3539447348ff512c318fbf43ce29b | [
"MIT"
] | 1 | 2019-08-17T06:20:10.000Z | 2019-08-17T06:20:10.000Z | import json
import urllib.request
import pprint
import webbrowser
URL = "https://mars.jpl.nasa.gov/msl-raw-images/image/images_sol2320.json"
jsonFILE = json.loads(urllib.request.urlopen(URL).read())
#pprint.pprint(jsonFILE)
camera = jsonFILE['images'][0]['cameraModelType']
sol = jsonFILE['images'][0]['sol']
link = j... | 25.352941 | 74 | 0.728538 |
64f0e961423c1d65186320fe453b1e81ade39eac | 204 | py | Python | libs/request/header_const.py | jumper2014/http-api-test-framework-python-pytest | 0cd12def0aa36e643df7741340f7ffade28c4329 | [
"Apache-2.0"
] | null | null | null | libs/request/header_const.py | jumper2014/http-api-test-framework-python-pytest | 0cd12def0aa36e643df7741340f7ffade28c4329 | [
"Apache-2.0"
] | null | null | null | libs/request/header_const.py | jumper2014/http-api-test-framework-python-pytest | 0cd12def0aa36e643df7741340f7ffade28c4329 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# coding=utf-8
# author: zengyuetian
content_type_json = {'Content-Type': 'application/json'}
accept_type_json = {'Accept': 'application/json'}
if __name__ == "__main__":
pass | 20.4 | 56 | 0.705882 |
64f13ec566c0a73ea57c0514a699626813225b3a | 1,820 | py | Python | atmosphere/group.py | eriksf/atmosphere-cli | ed7a955d91ae1bda352cea2eadc199d2ef9533c7 | [
"BSD-3-Clause"
] | 7 | 2017-06-29T18:05:48.000Z | 2019-03-05T23:17:10.000Z | atmosphere/group.py | eriksf/atmosphere-cli | ed7a955d91ae1bda352cea2eadc199d2ef9533c7 | [
"BSD-3-Clause"
] | 5 | 2018-03-07T20:17:15.000Z | 2018-09-27T22:38:01.000Z | atmosphere/group.py | eriksf/atmosphere-cli | ed7a955d91ae1bda352cea2eadc199d2ef9533c7 | [
"BSD-3-Clause"
] | null | null | null | import logging
from cliff.lister import Lister
from cliff.show import ShowOne
from atmosphere.api import AtmosphereAPI
| 30.333333 | 162 | 0.573626 |
64f1b23951de917846e7139906ed273a14de1e12 | 708 | py | Python | splearn/cluster/tests/test_k_means.py | dtrckd/sparkit-learn | 0498502107c1f7dcf33cda0cdb6f5ba4b42524b7 | [
"Apache-2.0"
] | 1,219 | 2015-01-12T15:18:57.000Z | 2022-03-29T15:35:07.000Z | splearn/cluster/tests/test_k_means.py | dtrckd/sparkit-learn | 0498502107c1f7dcf33cda0cdb6f5ba4b42524b7 | [
"Apache-2.0"
] | 71 | 2015-05-05T09:13:40.000Z | 2022-01-09T15:27:08.000Z | splearn/cluster/tests/test_k_means.py | dtrckd/sparkit-learn | 0498502107c1f7dcf33cda0cdb6f5ba4b42524b7 | [
"Apache-2.0"
] | 270 | 2015-05-23T10:26:57.000Z | 2021-08-23T17:46:14.000Z | import numpy as np
from sklearn.cluster import KMeans
from splearn.cluster import SparkKMeans
from splearn.utils.testing import SplearnTestCase, assert_array_almost_equal
| 32.181818 | 76 | 0.723164 |
64f2349553deb0addf4c171349c69284d598af6e | 3,815 | py | Python | test/test_worker.py | pstray/act-workers | aec49ea0f2a2e13c688df5d437801cdaa1238e92 | [
"ISC"
] | null | null | null | test/test_worker.py | pstray/act-workers | aec49ea0f2a2e13c688df5d437801cdaa1238e92 | [
"ISC"
] | null | null | null | test/test_worker.py | pstray/act-workers | aec49ea0f2a2e13c688df5d437801cdaa1238e92 | [
"ISC"
] | null | null | null | """ Tests for worker """
import sys
import _pytest
import act.api
import pytest
from act.api.base import ValidationError
from act.api.helpers import handle_fact
from act.api.libs import cli
from act.types.format import object_format
from act.types.types import object_validates
from act.workers.libs import worker
de... | 25.952381 | 88 | 0.647182 |
64f4984c197937ee5b93ae798a55664cc01163da | 3,311 | py | Python | tcpreq/tcp/options.py | TheJokr/tcpreq | 270c133a94a9d1210978fb884ac7c9516e68f6a1 | [
"MIT"
] | 18 | 2020-04-03T15:00:46.000Z | 2021-12-10T10:19:32.000Z | tcpreq/tcp/options.py | TheJokr/tcpreq | 270c133a94a9d1210978fb884ac7c9516e68f6a1 | [
"MIT"
] | null | null | null | tcpreq/tcp/options.py | TheJokr/tcpreq | 270c133a94a9d1210978fb884ac7c9516e68f6a1 | [
"MIT"
] | 1 | 2020-07-04T12:53:22.000Z | 2020-07-04T12:53:22.000Z | from typing import TypeVar, Type, Dict, Union, Generator
# Options are immutable
end_of_options = _LegacyOption(0)
noop = _LegacyOption(1)
_T = TypeVar("_T", bound="SizedOption")
# mypy currently doesn't support function attributes
# See https://github.com/python/mypy/issues/2087
_PARSE_KIND_TBL: Dict[int, Un... | 27.591667 | 80 | 0.625189 |
64f5bfbffae0d904736eee36017174d12c581c45 | 2,192 | py | Python | setup.py | DRealArun/deep_architect | 906f54535a6d342797ba4a6c4840602431fa2b1e | [
"MIT"
] | null | null | null | setup.py | DRealArun/deep_architect | 906f54535a6d342797ba4a6c4840602431fa2b1e | [
"MIT"
] | null | null | null | setup.py | DRealArun/deep_architect | 906f54535a6d342797ba4a6c4840602431fa2b1e | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='darch',
# Versions ... | 32.716418 | 79 | 0.651916 |
64f736f4cce6304d20edac3cc86504e315653ab0 | 1,416 | py | Python | inter_graph_2.py | fernandorazon/blmsat | 37b2c81d7d7760fb4a76e819fb386ac9184d54f6 | [
"MIT"
] | null | null | null | inter_graph_2.py | fernandorazon/blmsat | 37b2c81d7d7760fb4a76e819fb386ac9184d54f6 | [
"MIT"
] | null | null | null | inter_graph_2.py | fernandorazon/blmsat | 37b2c81d7d7760fb4a76e819fb386ac9184d54f6 | [
"MIT"
] | null | null | null |
#Adicionalmente, para poder tratar a nuestra ventana como un objeto con sus atributos como los deseamos
#Se puede declarar una clase heredera de la clase tk con los atributos deseados
from tkinter import *
from tkinter import ttk
from cansat import testLogLineString
from getBalamsatData import aceleracion ... | 25.285714 | 121 | 0.673729 |
64f763d77c10eb46452117b6282cf68007248866 | 200 | py | Python | pysnake/__main__.py | otov4its/pysnake | dbfe36e464b660cddb4193a493fc0e37e55a251f | [
"MIT"
] | null | null | null | pysnake/__main__.py | otov4its/pysnake | dbfe36e464b660cddb4193a493fc0e37e55a251f | [
"MIT"
] | null | null | null | pysnake/__main__.py | otov4its/pysnake | dbfe36e464b660cddb4193a493fc0e37e55a251f | [
"MIT"
] | null | null | null | import curses
from .game import Game
if __name__ == '__main__':
main() | 13.333333 | 36 | 0.65 |
64f768d5d6310771fbd35d6db9ad2b1af591dbdc | 923 | py | Python | tests/factories/test_inquest.py | nickjcoco/eml_analyzer | 36399215e39c7fe0cb4660c2a609eac2ac1c5508 | [
"MIT"
] | null | null | null | tests/factories/test_inquest.py | nickjcoco/eml_analyzer | 36399215e39c7fe0cb4660c2a609eac2ac1c5508 | [
"MIT"
] | null | null | null | tests/factories/test_inquest.py | nickjcoco/eml_analyzer | 36399215e39c7fe0cb4660c2a609eac2ac1c5508 | [
"MIT"
] | null | null | null | import json
import pytest
import respx
from app.factories.inquest import InQuestVerdict, InQuestVerdictFactory
| 30.766667 | 84 | 0.783315 |
64f8793adec920fa6182b45ca1b2c0f4e912390c | 2,173 | py | Python | lib/Protocol/NVRDriverCLIProtocol.py | multi-service-fabric/element-manager | e550d1b5ec9419f1fb3eb6e058ce46b57c92ee2f | [
"Apache-2.0"
] | null | null | null | lib/Protocol/NVRDriverCLIProtocol.py | multi-service-fabric/element-manager | e550d1b5ec9419f1fb3eb6e058ce46b57c92ee2f | [
"Apache-2.0"
] | null | null | null | lib/Protocol/NVRDriverCLIProtocol.py | multi-service-fabric/element-manager | e550d1b5ec9419f1fb3eb6e058ce46b57c92ee2f | [
"Apache-2.0"
] | 1 | 2020-04-02T01:17:43.000Z | 2020-04-02T01:17:43.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright(c) 2019 Nippon Telegraph and Telephone Corporation
# Filename: NVRDriverCLIProtocol.py
import traceback
import re
import GlobalModule
from EmCommonLog import decorater_log
from CgwshDriverCLIProtocol import CgwshDriverCLIProtocol
| 35.622951 | 75 | 0.59641 |
64f894b1f0d549156effd8098046cc8e1a9624b9 | 2,531 | py | Python | course2/lesson13/messagePrep.py | dbrandenburg/python-oreilley-certification | 44af77d093100971e32d48b309f8d6e6d1b78364 | [
"Apache-2.0"
] | null | null | null | course2/lesson13/messagePrep.py | dbrandenburg/python-oreilley-certification | 44af77d093100971e32d48b309f8d6e6d1b78364 | [
"Apache-2.0"
] | null | null | null | course2/lesson13/messagePrep.py | dbrandenburg/python-oreilley-certification | 44af77d093100971e32d48b309f8d6e6d1b78364 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import settings
from datetime import timedelta
from datetime import datetime
from email.mime.text import MIMEText
from email.utils import make_msgid
from database import login_info
import mysql.connector as msc
conn = msc.Connect(**login_info)
conn.autocommit = True
curs = conn.cursor()
def g... | 32.037975 | 80 | 0.666535 |
64f9f7f48fc7829fbe2c388b4c66b5d8773994b5 | 1,648 | py | Python | setup.py | davvid/skeletor | 2673ce418145ec0b594f2993cba7fd889fdaa349 | [
"BSD-3-Clause"
] | 2 | 2016-07-28T06:42:36.000Z | 2018-10-30T08:19:55.000Z | setup.py | davvid/skeletor | 2673ce418145ec0b594f2993cba7fd889fdaa349 | [
"BSD-3-Clause"
] | null | null | null | setup.py | davvid/skeletor | 2673ce418145ec0b594f2993cba7fd889fdaa349 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2015 David Aguilar (davvid -at- gmail.com)
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution.
import os
try:
import setuptools as setup_mod
except Impor... | 31.09434 | 71 | 0.633495 |
64fb59363fd93dd8d79973051858a98b2c36b7d9 | 186 | py | Python | flaskcli_pkg/templates/restfull/__init__.py | guxal/Flask-CLI | a1408e271dda51c05fe0ae02bc3e269b0ef019c3 | [
"MIT"
] | 1 | 2020-08-24T20:06:14.000Z | 2020-08-24T20:06:14.000Z | flaskcli_pkg/templates/restfull/__init__.py | guxal/Flask-CLI | a1408e271dda51c05fe0ae02bc3e269b0ef019c3 | [
"MIT"
] | 4 | 2020-03-06T19:11:53.000Z | 2020-03-28T19:22:42.000Z | flaskcli_pkg/templates/restfull/__init__.py | guxal/Flask-CLI | a1408e271dda51c05fe0ae02bc3e269b0ef019c3 | [
"MIT"
] | 2 | 2020-03-26T18:49:04.000Z | 2020-08-25T17:55:11.000Z | from flask import Blueprint
app_views = Blueprint('app_views', __name__, url_prefix='/api/v1')
from api.v1.views.index import * # noqa
''' from api.v1.views.<file> import * # noqa '''
| 37.2 | 66 | 0.704301 |
64fb858d20326267f92e00060b853488b9acda6e | 1,749 | py | Python | dependencies/otp/17.1/erts/etc/unix/etp-thr.py | mosaic-cloud/mosaic-distribution-dependencies | 87b9fa3dcf24751abcc52c00849b85f4d7e77b16 | [
"Apache-2.0"
] | null | null | null | dependencies/otp/17.1/erts/etc/unix/etp-thr.py | mosaic-cloud/mosaic-distribution-dependencies | 87b9fa3dcf24751abcc52c00849b85f4d7e77b16 | [
"Apache-2.0"
] | null | null | null | dependencies/otp/17.1/erts/etc/unix/etp-thr.py | mosaic-cloud/mosaic-distribution-dependencies | 87b9fa3dcf24751abcc52c00849b85f4d7e77b16 | [
"Apache-2.0"
] | null | null | null | #
# %CopyrightBegin%
#
# Copyright Ericsson AB 2013. All Rights Reserved.
#
# The contents of this file are subject to the Erlang Public License,
# Version 1.1, (the "License"); you may not use this file except in
# compliance with the License. You should have received a copy of the
# Erlang Public License along with t... | 31.232143 | 72 | 0.600915 |
64fd1abdb8ce8f4b4a97b798eb8645f38ce491f0 | 1,216 | py | Python | example/cbs_example.py | bulletRush/QCloud_yunapi_wrapper | e8510c1891628de1ef48d9cba6ed070e200ba66c | [
"Apache-2.0"
] | null | null | null | example/cbs_example.py | bulletRush/QCloud_yunapi_wrapper | e8510c1891628de1ef48d9cba6ed070e200ba66c | [
"Apache-2.0"
] | null | null | null | example/cbs_example.py | bulletRush/QCloud_yunapi_wrapper | e8510c1891628de1ef48d9cba6ed070e200ba66c | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import unittest
from qcloudsdk import ZoneId, CbsStorageType, Region, get_region_list, RegionConfig
from config import engine
if __name__ == '__main__':
unittest.main()
| 34.742857 | 92 | 0.634046 |
64fd3b48db034906be52251fdaf405f2501559dc | 5,866 | py | Python | data/punctuation/punctuation.py | wongself/CCLUE | 7ec1aaba7a2d126f69e3b4468998242d648860df | [
"Apache-2.0"
] | 19 | 2021-05-17T05:49:02.000Z | 2022-03-19T09:44:26.000Z | data/punctuation/punctuation.py | CZWin32768/CCLUE | 7ec1aaba7a2d126f69e3b4468998242d648860df | [
"Apache-2.0"
] | 2 | 2022-01-25T15:11:03.000Z | 2022-03-14T12:46:37.000Z | data/punctuation/punctuation.py | CZWin32768/CCLUE | 7ec1aaba7a2d126f69e3b4468998242d648860df | [
"Apache-2.0"
] | 3 | 2021-07-29T05:49:14.000Z | 2022-01-10T09:05:37.000Z | # coding=utf-8
# Copyright 2020 HuggingFace Datasets Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 36.6625 | 118 | 0.428571 |
64fd98de315cedb7284225099cebb52af53914b8 | 6,017 | py | Python | vk/commands/layer.py | shihchinw/vkcli | 383b089c96e343a5cf9dff70d8730a3d492eeb38 | [
"MIT"
] | null | null | null | vk/commands/layer.py | shihchinw/vkcli | 383b089c96e343a5cf9dff70d8730a3d492eeb38 | [
"MIT"
] | null | null | null | vk/commands/layer.py | shihchinw/vkcli | 383b089c96e343a5cf9dff70d8730a3d492eeb38 | [
"MIT"
] | null | null | null | import click
import vk.config as config
import vk.utils as utils
from vk.commands.query import show_layer_state
def _add_layers(layer_str, current_layers, set_layers_func):
"""Append layers to current_layers and set to device props.
Args:
layer_str: A string in <layer1:layer2:layerN> format.
... | 34.780347 | 96 | 0.689546 |
8f00c560141af4156a391f4df0dd1fe27c65c79b | 2,812 | py | Python | Message_sync.py | ethansun666/Torsobot | 559623d2feb64811d0eea22c35306313f5ed64d6 | [
"MIT"
] | null | null | null | Message_sync.py | ethansun666/Torsobot | 559623d2feb64811d0eea22c35306313f5ed64d6 | [
"MIT"
] | null | null | null | Message_sync.py | ethansun666/Torsobot | 559623d2feb64811d0eea22c35306313f5ed64d6 | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
import rospy
import message_filters
from std_msgs.msg import Int32, Float32
from pololu_drv8835_rpi import motors
rospy.init_node('message_sync', anonymous=False)
speed_desired = 0.5 # desired wheel speed in rpm
angle_desired = 0.0 # desired angle - 0
k_p_angle = 4*480... | 29.6 | 179 | 0.697368 |
8f00ea6acd4b1fe88185fce7affa76ead607b100 | 7,881 | py | Python | sqlalchemy/sqlalchemy-0.3.6+codebay/test/tables.py | nakedible/vpnease-l2tp | 0fcda6a757f2bc5c37f4753b3cd8b1c6d282db5c | [
"WTFPL"
] | 5 | 2015-04-16T08:36:17.000Z | 2017-05-12T17:20:12.000Z | sqlalchemy/sqlalchemy-0.3.6+codebay/test/tables.py | nakedible/vpnease-l2tp | 0fcda6a757f2bc5c37f4753b3cd8b1c6d282db5c | [
"WTFPL"
] | null | null | null | sqlalchemy/sqlalchemy-0.3.6+codebay/test/tables.py | nakedible/vpnease-l2tp | 0fcda6a757f2bc5c37f4753b3cd8b1c6d282db5c | [
"WTFPL"
] | 4 | 2015-03-19T14:39:51.000Z | 2019-01-23T08:22:55.000Z |
from sqlalchemy import *
import os
import testbase
ECHO = testbase.echo
db = testbase.db
metadata = BoundMetaData(db)
users = Table('users', metadata,
Column('user_id', Integer, Sequence('user_id_seq', optional=True), primary_key = True),
Column('user_name', String(40)),
mysql_engine='innodb'
)
address... | 36.486111 | 155 | 0.587743 |
8f0197680cd9e370c9175d237c50b8a946ea6680 | 3,550 | py | Python | camelot/view/controls/editors/timeeditor.py | FrDeGraux/camelot | 56aa93f774edbb0c31a21109e187cf81f49a68d8 | [
"BSD-3-Clause"
] | 12 | 2020-08-02T17:00:37.000Z | 2022-01-22T17:49:23.000Z | camelot/view/controls/editors/timeeditor.py | FrDeGraux/camelot | 56aa93f774edbb0c31a21109e187cf81f49a68d8 | [
"BSD-3-Clause"
] | 124 | 2020-08-19T15:03:54.000Z | 2022-03-31T07:12:16.000Z | camelot/view/controls/editors/timeeditor.py | FrDeGraux/camelot | 56aa93f774edbb0c31a21109e187cf81f49a68d8 | [
"BSD-3-Clause"
] | 17 | 2020-04-25T19:22:20.000Z | 2022-01-25T08:46:19.000Z | # ============================================================================
#
# Copyright (C) 2007-2016 Conceptive Engineering bvba.
# www.conceptive.be / info@conceptive.be
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following condition... | 42.771084 | 104 | 0.66169 |
8f0275d3ff8e79732e2092d8d35642359defd84e | 479 | py | Python | utils/__init__.py | CSuppan/two-shot-brdf-shape | 352201b66bfa5cd5e25111451a6583a3e7d499f0 | [
"BSD-Source-Code"
] | null | null | null | utils/__init__.py | CSuppan/two-shot-brdf-shape | 352201b66bfa5cd5e25111451a6583a3e7d499f0 | [
"BSD-Source-Code"
] | null | null | null | utils/__init__.py | CSuppan/two-shot-brdf-shape | 352201b66bfa5cd5e25111451a6583a3e7d499f0 | [
"BSD-Source-Code"
] | null | null | null | # -----------------------------------------------------------------------
# Copyright (c) 2020, NVIDIA Corporation. All rights reserved.
#
# This work is made available
# under the Nvidia Source Code License (1-way Commercial).
#
# Official Implementation of the CVPR2020 Paper
# Two-shot Spatially-varying BRDF and Shap... | 43.545455 | 73 | 0.528184 |
8f0518c3a0750da363aefe2c50b411be06aac802 | 538 | py | Python | desafio032.py | marcelocmedeiros/RevisaoPython | 04c602bf17e8ab37c9660337a8f8497eb498e10d | [
"MIT"
] | null | null | null | desafio032.py | marcelocmedeiros/RevisaoPython | 04c602bf17e8ab37c9660337a8f8497eb498e10d | [
"MIT"
] | null | null | null | desafio032.py | marcelocmedeiros/RevisaoPython | 04c602bf17e8ab37c9660337a8f8497eb498e10d | [
"MIT"
] | null | null | null | # Marcelo Campos de Medeiros
# ADS UNIFIP
# REVISO DE PYTHON
# AULA 10 CONDIES GUSTAVO GUANABARA
'''
Faa um Programa que leia um ano qualquer e mostre se ele BISSEXTO.
'''
print('='*30)
print('{:#^30}'.format(' ANO BISSEXTO '))
print('='*30)
print()
ano = int(input('Informe o ano: '))
print()
# condio para ser bis... | 24.454545 | 78 | 0.626394 |
8f05fc10f80a9807e002e6198f7f3aacb5fea65c | 1,635 | py | Python | exams/migrations/0008_populate_exam_run.py | Wassaf-Shahzad/micromasters | b1340a8c233499b1d8d22872a6bc1fe7f49fd323 | [
"BSD-3-Clause"
] | 32 | 2016-03-25T01:03:13.000Z | 2022-01-15T19:35:42.000Z | exams/migrations/0008_populate_exam_run.py | Wassaf-Shahzad/micromasters | b1340a8c233499b1d8d22872a6bc1fe7f49fd323 | [
"BSD-3-Clause"
] | 4,858 | 2016-03-03T13:48:30.000Z | 2022-03-29T22:09:51.000Z | exams/migrations/0008_populate_exam_run.py | umarmughal824/micromasters | ea92d3bcea9be4601150fc497302ddacc1161622 | [
"BSD-3-Clause"
] | 20 | 2016-08-18T22:07:44.000Z | 2021-11-15T13:35:35.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-04-24 19:10
from __future__ import unicode_literals
from datetime import datetime
from django.db import migrations
import pytz
PILOT_SERIES_CODE = 'PILOT'
PILOT_SCHEDULE_START_DATE = datetime(2017, 3, 6, tzinfo=pytz.UTC)
PILOT_SCHEDULE_END_DATE = datetime(... | 36.333333 | 88 | 0.715596 |
8f08e54ff7cb184ad51af92f4e2cf2b7c71ef4d7 | 2,561 | py | Python | hdg_test/anistropic/cg_test.py | BradHub/SL-SPH | 7bc86253277d27cbb04a9b5935fd4fc056266371 | [
"MIT"
] | 1 | 2018-02-19T01:52:58.000Z | 2018-02-19T01:52:58.000Z | hdg_test/anistropic/cg_test.py | BradHub/SL-SPH | 7bc86253277d27cbb04a9b5935fd4fc056266371 | [
"MIT"
] | null | null | null | hdg_test/anistropic/cg_test.py | BradHub/SL-SPH | 7bc86253277d27cbb04a9b5935fd4fc056266371 | [
"MIT"
] | null | null | null | import numpy as np
import dolfin
from dolfin import *
from mpi4py import MPI as pyMPI
comm = pyMPI.COMM_WORLD
mpi_comm = MPI.comm_world
#mark whole boundary, inflow and outflow will overwrite)
#Create a unit box mesh
n_ele = 6
aspect_ratio = 3
mesh = BoxMesh(comm, Point(0.0, 0.0,0.0), Point(1.0, 1.0, 1.0),
... | 27.537634 | 126 | 0.679422 |
8f09daed535ce9be400f95a37b4fd1fbbe3902c4 | 4,996 | py | Python | Contents/Code/__init__.py | donmikel/TorrServer.bundle | 01e38e68d6a8a255760839cc51b35665180d6a91 | [
"BSD-3-Clause"
] | 5 | 2019-03-14T08:49:47.000Z | 2021-12-10T17:44:17.000Z | Contents/Code/__init__.py | donmikel/TorrServer.bundle | 01e38e68d6a8a255760839cc51b35665180d6a91 | [
"BSD-3-Clause"
] | 1 | 2020-09-06T16:21:01.000Z | 2020-09-06T16:21:01.000Z | Contents/Code/__init__.py | donmikel/TorrServer.bundle | 01e38e68d6a8a255760839cc51b35665180d6a91 | [
"BSD-3-Clause"
] | 5 | 2018-08-01T18:05:16.000Z | 2022-03-02T21:59:23.000Z | # -*- coding: utf-8 -*-
# Copyright (c) 2016, KOL
# 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 copyright
# notice, this list o... | 26.157068 | 84 | 0.608687 |
8f0aa7ef68a763a962ad53d37519a4ebd1c168f7 | 6,437 | py | Python | test_meeus.py | mcoatanhay/meeuscalc | 707f7332944220330d4fc7608e7cba928a0b60db | [
"MIT"
] | null | null | null | test_meeus.py | mcoatanhay/meeuscalc | 707f7332944220330d4fc7608e7cba928a0b60db | [
"MIT"
] | null | null | null | test_meeus.py | mcoatanhay/meeuscalc | 707f7332944220330d4fc7608e7cba928a0b60db | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# Fichier: test_meeus.py
# Auteur: Marc COATANHAY
"""
Tests pour le module meeus.
"""
# Import des modules
try:
import mes_modules_path
except:
pass
from meeus import *
import incertitudes.incert as incert
import unittest
# Dfinitions constante... | 43.493243 | 76 | 0.495262 |
8f0ab030bf7a8b9f475535e03e2fa7f2a453473a | 183 | py | Python | pymtl3/stdlib/test/__init__.py | mondO/pymtl3 | 9869dda28c01926cee6da94ebdeac2a210150c62 | [
"BSD-3-Clause"
] | 1 | 2022-01-03T06:22:11.000Z | 2022-01-03T06:22:11.000Z | pymtl3/stdlib/test/__init__.py | mondO/pymtl3 | 9869dda28c01926cee6da94ebdeac2a210150c62 | [
"BSD-3-Clause"
] | null | null | null | pymtl3/stdlib/test/__init__.py | mondO/pymtl3 | 9869dda28c01926cee6da94ebdeac2a210150c62 | [
"BSD-3-Clause"
] | null | null | null | from .test_sinks import TestSinkCL
from .test_srcs import TestSrcCL
from .test_utils import (
TestVectorSimulator,
mk_test_case_table,
run_sim,
run_test_vector_sim,
)
| 20.333333 | 34 | 0.770492 |
8f0afb42b2c7d304857ffebc2308d60a039436e6 | 8,371 | py | Python | mindhome_alpha/erpnext/assets/doctype/asset/depreciation.py | Mindhome/field_service | 3aea428815147903eb9af1d0c1b4b9fc7faed057 | [
"MIT"
] | 1 | 2021-04-29T14:55:29.000Z | 2021-04-29T14:55:29.000Z | mindhome_alpha/erpnext/assets/doctype/asset/depreciation.py | Mindhome/field_service | 3aea428815147903eb9af1d0c1b4b9fc7faed057 | [
"MIT"
] | null | null | null | mindhome_alpha/erpnext/assets/doctype/asset/depreciation.py | Mindhome/field_service | 3aea428815147903eb9af1d0c1b4b9fc7faed057 | [
"MIT"
] | 1 | 2021-04-29T14:39:01.000Z | 2021-04-29T14:39:01.000Z | # -*- coding: utf-8 -*-
# Copyright (c) 2016, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe import _
from frappe.utils import flt, today, getdate, cint
from erpnext.accounts.doctype.accounting_dimension... | 35.773504 | 112 | 0.773504 |
8f0c6eec7c8fb1e132f58c2c79b90d3dcf4b6383 | 24,768 | py | Python | ssd/modeling/backbone/backbone_cfg.py | xu-peng-tao/SSD-Pruning-and-quantization | 64b84dfa88a1686593addaa9941cc14579e129ee | [
"MIT"
] | 19 | 2020-06-12T08:47:44.000Z | 2022-03-15T13:00:49.000Z | ssd/modeling/backbone/backbone_cfg.py | xu-peng-tao/SSD-Pruning-and-quantification | 64b84dfa88a1686593addaa9941cc14579e129ee | [
"MIT"
] | 4 | 2020-08-20T02:49:59.000Z | 2021-04-01T15:18:42.000Z | ssd/modeling/backbone/backbone_cfg.py | xu-peng-tao/SSD-Pruning-and-quantification | 64b84dfa88a1686593addaa9941cc14579e129ee | [
"MIT"
] | 4 | 2020-06-21T18:36:22.000Z | 2021-01-18T02:16:17.000Z | # !/usr/bin/env python
# coding:utf-8
# Author:XuPengTao
# Date: 2020/3/14
from ssd.layers import L2Norm
import torch.nn.functional as F
import torch.nn as nn
import torch
from ssd.modeling import registry
import os
import quantization.WqAq.dorefa.models.util_wqaq as dorefa
import quantization.WqAq.IAO.models.util_wqaq... | 51.6 | 126 | 0.439599 |
8f0d306d518d0d86a40d7ee992fbad6f04fe875f | 243 | py | Python | vocoder/hifigan/env.py | 10088/MockingBird | 6a793cea8488ad40fcad6ab30f9d82bc920ac114 | [
"MIT"
] | 1 | 2021-12-08T16:33:17.000Z | 2021-12-08T16:33:17.000Z | vocoder/hifigan/env.py | 10088/MockingBird | 6a793cea8488ad40fcad6ab30f9d82bc920ac114 | [
"MIT"
] | null | null | null | vocoder/hifigan/env.py | 10088/MockingBird | 6a793cea8488ad40fcad6ab30f9d82bc920ac114 | [
"MIT"
] | null | null | null | import os
import shutil
| 27 | 64 | 0.695473 |
8f0e2837d4697a614a988399ead25896778647b3 | 3,135 | py | Python | week06_deployment/homework/tests.py | mryab/efficient-dl-systems | 847bc8fc73357d45fb653b40c3232a02778a55a2 | [
"MIT"
] | 85 | 2022-01-19T13:27:53.000Z | 2022-03-31T07:45:22.000Z | week06_deployment/homework/tests.py | mryab/efficient-dl-systems | 847bc8fc73357d45fb653b40c3232a02778a55a2 | [
"MIT"
] | null | null | null | week06_deployment/homework/tests.py | mryab/efficient-dl-systems | 847bc8fc73357d45fb653b40c3232a02778a55a2 | [
"MIT"
] | 14 | 2022-01-25T19:22:45.000Z | 2022-03-28T19:25:23.000Z | import json
import os
import statistics
import grpc
import requests
from furl import furl
import pytest
import inference_pb2_grpc
import inference_pb2
from prometheus_client.parser import text_string_to_metric_families
def get_metric_value(samples):
if len(samples) == 0:
return 0
return samples[... | 28.243243 | 90 | 0.684211 |
8f103ba566459ea07e70a5039f59dd82746a1559 | 684 | py | Python | Medium/264. Ugly Number II/solution (1).py | czs108/LeetCode-Solutions | 889f5b6a573769ad077a6283c058ed925d52c9ec | [
"MIT"
] | 3 | 2020-05-09T12:55:09.000Z | 2022-03-11T18:56:05.000Z | Medium/264. Ugly Number II/solution (1).py | czs108/LeetCode-Solutions | 889f5b6a573769ad077a6283c058ed925d52c9ec | [
"MIT"
] | null | null | null | Medium/264. Ugly Number II/solution (1).py | czs108/LeetCode-Solutions | 889f5b6a573769ad077a6283c058ed925d52c9ec | [
"MIT"
] | 1 | 2022-03-11T18:56:16.000Z | 2022-03-11T18:56:16.000Z | # 264. Ugly Number II
# Runtime: 173 ms, faster than 54.94% of Python3 online submissions for Ugly Number II.
# Memory Usage: 14.2 MB, less than 73.79% of Python3 online submissions for Ugly Number II.
| 28.5 | 91 | 0.473684 |
8f108fcc85bb9f4421ce8d6b23b09175b53a36f7 | 8,807 | py | Python | Game_AI_and_Reinforcement_Learning/ConnectX/v2/actor.py | BEPb/Python-100-days | 163a68b42d1933d82599774a198eeef1624607bb | [
"MIT"
] | 16 | 2021-05-09T19:04:00.000Z | 2022-03-24T13:14:28.000Z | Game_AI_and_Reinforcement_Learning/ConnectX/v2/actor.py | Jumanazarov-Shukrullo/Python-100-days | 8f846962cd45342aa2490ec2e86df358ae0ef281 | [
"MIT"
] | null | null | null | Game_AI_and_Reinforcement_Learning/ConnectX/v2/actor.py | Jumanazarov-Shukrullo/Python-100-days | 8f846962cd45342aa2490ec2e86df358ae0ef281 | [
"MIT"
] | 3 | 2022-03-01T01:56:43.000Z | 2022-03-20T19:19:49.000Z | """
Python 3.9
Python - Reinforcement Learning
actor.py
Version: 0.1
Author: Andrej Marinchenko
Date: 2021-12-23
"""
import numpy as np
import parl
import os
from alphazero_agent import create_agent
from MCTS import MCTS
from Arena import Arena
from utils import win_loss_draw
| 46.352632 | 118 | 0.653117 |
8f10ee40e95cf26a981af25a14d379eb64be7e96 | 540 | py | Python | app/routers/openstack/sizes.py | skyworkflows/swm-cloud-gate | 5cae6bc62b5abeb6c985b0b1d1b7d4f7484416af | [
"BSD-3-Clause"
] | 3 | 2021-04-05T18:32:27.000Z | 2021-04-06T08:14:22.000Z | app/routers/openstack/sizes.py | skyworkflows/swm-cloud-gate | 5cae6bc62b5abeb6c985b0b1d1b7d4f7484416af | [
"BSD-3-Clause"
] | null | null | null | app/routers/openstack/sizes.py | skyworkflows/swm-cloud-gate | 5cae6bc62b5abeb6c985b0b1d1b7d4f7484416af | [
"BSD-3-Clause"
] | null | null | null | import typing
from fastapi import APIRouter, Header
from .connector import OpenStackConnector
from .models import convert_to_flavor
CONNECTOR = OpenStackConnector()
ROUTER = APIRouter()
| 28.421053 | 83 | 0.753704 |
8f1109c71e44edb2fac9ffc024d881b806ffe739 | 9,193 | py | Python | coselection/coselection.py | gaussit/coselection | 5c6c5e92e168f76b516ace774454387855320ecb | [
"MIT"
] | null | null | null | coselection/coselection.py | gaussit/coselection | 5c6c5e92e168f76b516ace774454387855320ecb | [
"MIT"
] | null | null | null | coselection/coselection.py | gaussit/coselection | 5c6c5e92e168f76b516ace774454387855320ecb | [
"MIT"
] | null | null | null | import bz2
import itertools
import pandas as pd
from igraph import *
from scipy.sparse import triu
from scipy.sparse import csr_matrix
from scipy.sparse import coo_matrix
from sklearn.preprocessing import normalize
def node_extractor(dataframe, *columns):
"""
Extracts the set of nodes from a given dataframe.
... | 40.497797 | 119 | 0.654411 |
8f12996b37d2624cf9dc2205e4c9a3d5e5086701 | 831 | py | Python | tests/test_ptkcmd/myptkcmd.py | mmiguel6288code/ptkcmd | 825a88d083b5a6114b054421f4067d37b889606f | [
"MIT"
] | 8 | 2020-09-02T21:20:33.000Z | 2022-02-03T19:31:25.000Z | tests/test_ptkcmd/myptkcmd.py | mmiguel6288code/ptkcmd | 825a88d083b5a6114b054421f4067d37b889606f | [
"MIT"
] | null | null | null | tests/test_ptkcmd/myptkcmd.py | mmiguel6288code/ptkcmd | 825a88d083b5a6114b054421f4067d37b889606f | [
"MIT"
] | 1 | 2020-11-12T06:32:48.000Z | 2020-11-12T06:32:48.000Z | from ptkcmd import PtkCmd, Completion, complete_files
| 33.24 | 133 | 0.696751 |
8f12a3e97e343d879a1bf557daf38e1570274bd0 | 22,069 | py | Python | bench/dash.py | mlcgp/bench | c2f2fb31db4c76f98037e3e3e5be952547c00141 | [
"MIT"
] | null | null | null | bench/dash.py | mlcgp/bench | c2f2fb31db4c76f98037e3e3e5be952547c00141 | [
"MIT"
] | null | null | null | bench/dash.py | mlcgp/bench | c2f2fb31db4c76f98037e3e3e5be952547c00141 | [
"MIT"
] | null | null | null | import pandas as pd
import dash
import os
import base64
from inflection import humanize
from pathlib import Path
from sqlalchemy import create_engine, select, Table, MetaData
from sqlalchemy.orm import Session
from dash import dcc, html, Input, Output
from dash.exceptions import PreventUpdate
import dash_bootstrap_comp... | 41.561205 | 103 | 0.259006 |
8f138da43753608ccc1bdcf65020e4214c9c4050 | 1,641 | py | Python | middleware.py | wjayesh/flask-prometheus | 37227495a43a8f4e2884d8fcfdcae8ab9b58660b | [
"Apache-2.0"
] | null | null | null | middleware.py | wjayesh/flask-prometheus | 37227495a43a8f4e2884d8fcfdcae8ab9b58660b | [
"Apache-2.0"
] | null | null | null | middleware.py | wjayesh/flask-prometheus | 37227495a43a8f4e2884d8fcfdcae8ab9b58660b | [
"Apache-2.0"
] | null | null | null | from flask import request
import time
import sys
from prometheus_client import Counter, Histogram
APP_REQUEST_COUNT_TOTAL = Counter(
'app_request_count_total', 'App Request Count Total',
['app_name', 'method', 'endpoint']
)
APP_REQUEST_COUNT_FAILED = Counter(
'app_request_count_failed', 'App Request Count... | 32.176471 | 86 | 0.728824 |
8f1535cce7276091ce2be0169366ccc905627a69 | 7,925 | py | Python | Beginner/03. Python/ZodiacSignTraits.py | DipadityaDas/Hacktoberfest | 0e403775b9f1daaccae5d13084f91e4c4b44ef18 | [
"MIT"
] | 1 | 2020-10-19T10:02:16.000Z | 2020-10-19T10:02:16.000Z | Beginner/03. Python/ZodiacSignTraits.py | DipadityaDas/Hacktoberfest | 0e403775b9f1daaccae5d13084f91e4c4b44ef18 | [
"MIT"
] | null | null | null | Beginner/03. Python/ZodiacSignTraits.py | DipadityaDas/Hacktoberfest | 0e403775b9f1daaccae5d13084f91e4c4b44ef18 | [
"MIT"
] | null | null | null |
main()
| 46.345029 | 199 | 0.644164 |
8f176f2b9ecbfc54e76e27799f6b813572d7f17c | 555 | py | Python | schema/views.py | leVirve-arxiv/OuO | 9a6a1ef50e6aeef8d0b84d1a1a377e5f19050ac2 | [
"MIT"
] | null | null | null | schema/views.py | leVirve-arxiv/OuO | 9a6a1ef50e6aeef8d0b84d1a1a377e5f19050ac2 | [
"MIT"
] | null | null | null | schema/views.py | leVirve-arxiv/OuO | 9a6a1ef50e6aeef8d0b84d1a1a377e5f19050ac2 | [
"MIT"
] | null | null | null | from schema.models import Member
from django.shortcuts import render
| 25.227273 | 60 | 0.65045 |
8f17a41721088444baaa6e7c92cf04c8870b502e | 25,714 | py | Python | neural-navigation-with-lstm/MARCO/nltk/test/token.py | ronaldahmed/SLAM-for-ugv | 52e3241b8b737a0cfe5682c0aa87ec8c27d6a33d | [
"MIT"
] | 14 | 2016-04-03T19:25:13.000Z | 2022-01-05T07:03:07.000Z | neural-navigation-with-lstm/MARCO/nltk/test/token.py | ronaldahmed/SLAM-for-ugv | 52e3241b8b737a0cfe5682c0aa87ec8c27d6a33d | [
"MIT"
] | null | null | null | neural-navigation-with-lstm/MARCO/nltk/test/token.py | ronaldahmed/SLAM-for-ugv | 52e3241b8b737a0cfe5682c0aa87ec8c27d6a33d | [
"MIT"
] | 5 | 2018-06-21T12:58:58.000Z | 2020-02-15T05:33:39.000Z | # Natural Language Toolkit: Test Code for Tokens and Tokenizers
#
# Copyright (C) 2001 University of Pennsylvania
# Author: Edward Loper <edloper@gradient.cis.upenn.edu>
# URL: <http://nltk.sf.net>
# For license information, see LICENSE.TXT
#
# $Id: token.py,v 1.1.1.2 2004/09/29 21:58:12 adastra Exp $
"""
Unit testing... | 27.980413 | 75 | 0.60224 |
8f189003b896ea18774e3747f577a7d0f0419233 | 517 | py | Python | alyBlog/apps/admin/contains.py | Hx-someone/aly-blog | e0205777d2ff1642fde5741a5b5c1b06ad675001 | [
"WTFPL"
] | 1 | 2020-04-17T02:15:45.000Z | 2020-04-17T02:15:45.000Z | alyBlog/apps/admin/contains.py | Hx-someone/aly-blog | e0205777d2ff1642fde5741a5b5c1b06ad675001 | [
"WTFPL"
] | null | null | null | alyBlog/apps/admin/contains.py | Hx-someone/aly-blog | e0205777d2ff1642fde5741a5b5c1b06ad675001 | [
"WTFPL"
] | null | null | null | # -*- coding: utf-8 -*-
"""
@Time : 2020/3/13 13:39
@Author :
@File : contains.py
"""
PER_PAGE_NUMBER = 10 #
IMAGE_MAX_SIZE = 5 * 1024 * 1024 # 5M 5M
IMAGE_EXT_NAME_LS = ["bmp", "jpg", "png", "tif", "gif", "pcx", "tga", "exif", "fpx", "svg", "psd", "cdr", "pcd", "dxf",
"ufo", "eps", "ai", "... | 25.85 | 119 | 0.535783 |
8f18a459d761f3565f775b85fc15f7f49722a8e4 | 448 | py | Python | test/ontology/__init__.py | eigendude/pysosa | d645e484d2d588504ab8fbdfcd6584209d903fef | [
"BSD-3-Clause"
] | null | null | null | test/ontology/__init__.py | eigendude/pysosa | d645e484d2d588504ab8fbdfcd6584209d903fef | [
"BSD-3-Clause"
] | null | null | null | test/ontology/__init__.py | eigendude/pysosa | d645e484d2d588504ab8fbdfcd6584209d903fef | [
"BSD-3-Clause"
] | null | null | null | ################################################################################
#
# Copyright (C) 2019 Garrett Brown
# This file is part of pysosa - https://github.com/eigendude/pysosa
#
# SPDX-License-Identifier: BSD-3-Clause
# See the file LICENSE for more information.
#
#########################################... | 34.461538 | 80 | 0.491071 |
8f1a29e2658903dfe87d0135717ceaa3a02e10a7 | 5,646 | py | Python | TestAttackManual.py | kartik-joshi/Adversarial-Attack-on-Recurrent-Neural-Network | 2504e35695c4f9305eed35468e4defa881d16c44 | [
"BSD-2-Clause"
] | 24 | 2018-10-12T12:07:42.000Z | 2022-03-18T22:34:45.000Z | TestAttackManual.py | kartik-joshi/Adversarial-Attack-on-Recurrent-Neural-Network | 2504e35695c4f9305eed35468e4defa881d16c44 | [
"BSD-2-Clause"
] | 2 | 2019-06-14T00:20:22.000Z | 2020-10-28T19:02:56.000Z | TestAttackManual.py | kartik-joshi/Adversarial-Attack-on-Recurrent-Neural-Network | 2504e35695c4f9305eed35468e4defa881d16c44 | [
"BSD-2-Clause"
] | 5 | 2018-10-12T12:07:43.000Z | 2021-11-12T13:23:11.000Z | from __future__ import print_function
from keras.preprocessing import sequence
from keras.models import Sequential
from keras.layers import Dense, Embedding, Reshape
from keras.layers import LSTM
from keras.datasets import imdb
import numpy as np
max_features = 20000
maxlen = 256 # cut texts after this num... | 57.030303 | 1,807 | 0.638859 |
8f1d884554b14dec41b3f7c78e68c1db5758f972 | 49 | py | Python | implementation_files/cosim_pandapipes_pandapower/simulators/heat_consumer/__init__.py | ERIGrid2/benchmark-model-multi-energy-networks | 4172480a5fcdf99d086b98ea24e00342f8e42a91 | [
"BSD-3-Clause"
] | null | null | null | implementation_files/cosim_pandapipes_pandapower/simulators/heat_consumer/__init__.py | ERIGrid2/benchmark-model-multi-energy-networks | 4172480a5fcdf99d086b98ea24e00342f8e42a91 | [
"BSD-3-Clause"
] | null | null | null | implementation_files/cosim_pandapipes_pandapower/simulators/heat_consumer/__init__.py | ERIGrid2/benchmark-model-multi-energy-networks | 4172480a5fcdf99d086b98ea24e00342f8e42a91 | [
"BSD-3-Clause"
] | null | null | null | from .mosaik_wrapper import HEXConsumerSimulator
| 24.5 | 48 | 0.897959 |
8f218e66d39bc6b9bb1614dd1c78b4e63529f876 | 4,303 | py | Python | inventario/views.py | vvilche1/odin | ca24e727d94b34b33eb51de50fbcc8a5505cc559 | [
"Apache-2.0"
] | null | null | null | inventario/views.py | vvilche1/odin | ca24e727d94b34b33eb51de50fbcc8a5505cc559 | [
"Apache-2.0"
] | null | null | null | inventario/views.py | vvilche1/odin | ca24e727d94b34b33eb51de50fbcc8a5505cc559 | [
"Apache-2.0"
] | null | null | null | from django.http import HttpResponseRedirect, HttpResponse
from django.shortcuts import get_object_or_404, render, redirect
from django.urls import reverse
from django.views import generic
from django.views.generic import View
from .pdf import *
from .models import Campus, Usuario, Inventario, Libros,Issue,Resp,Cd
fro... | 32.598485 | 103 | 0.706949 |
8f241060d9fddd07f6f1f718ce05424130fff4a3 | 11,389 | py | Python | rsm/datasets/token_embedding_dataset.py | Cerenaut/rsm | 33bf8a3a620b46b5180280f2ca5f0b28c168b806 | [
"Apache-2.0"
] | null | null | null | rsm/datasets/token_embedding_dataset.py | Cerenaut/rsm | 33bf8a3a620b46b5180280f2ca5f0b28c168b806 | [
"Apache-2.0"
] | null | null | null | rsm/datasets/token_embedding_dataset.py | Cerenaut/rsm | 33bf8a3a620b46b5180280f2ca5f0b28c168b806 | [
"Apache-2.0"
] | null | null | null | # Copyright (C) 2019 Project AGI
#
# 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 writi... | 36.857605 | 168 | 0.663535 |
8f25d85e50af884994cae0c8459cb515b6fc6f42 | 612 | py | Python | setup.py | gkama/aiof-metadata | 1b29e39c644bc3f020884956e5e4741ce5b03550 | [
"MIT"
] | 3 | 2020-06-07T22:24:06.000Z | 2021-08-10T05:14:09.000Z | setup.py | gkama/aiof-metadata | 1b29e39c644bc3f020884956e5e4741ce5b03550 | [
"MIT"
] | 2 | 2021-04-21T13:54:14.000Z | 2021-06-10T18:06:01.000Z | setup.py | kamacharovs/aiof-metadata | 1b29e39c644bc3f020884956e5e4741ce5b03550 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
with open("README.md", encoding="utf-8") as f:
readme = f.read()
with open("LICENSE", encoding="utf-8") as f:
license = f.read()
if __name__ == "__main__":
setup(
name = "aiof-metadata",
version = "0.1.0",
description = "All in one fin... | 27.818182 | 66 | 0.604575 |
8f2646ce36d6581ebe702f50f5d9fc46cbfd6387 | 3,332 | py | Python | pythonProjects/guess_number/guess_number.py | chisma/pythonProjects | f22f4e8dae33827696ed6ad3168d1cc83f974150 | [
"MIT"
] | null | null | null | pythonProjects/guess_number/guess_number.py | chisma/pythonProjects | f22f4e8dae33827696ed6ad3168d1cc83f974150 | [
"MIT"
] | null | null | null | pythonProjects/guess_number/guess_number.py | chisma/pythonProjects | f22f4e8dae33827696ed6ad3168d1cc83f974150 | [
"MIT"
] | null | null | null | import random
# guess(88)
# computer_guess()
smarter_computer_guess()
| 39.666667 | 133 | 0.592737 |
8f266aed6cb59b4094ca5da5b7023d58572f52b6 | 9,705 | py | Python | catalog/harvest/initial_harverster_s2.py | eoss-cloud/madxxx_catalog_api | ef37374a36129de4f0a6fe5dd46b5bc2e2f01d1d | [
"MIT"
] | null | null | null | catalog/harvest/initial_harverster_s2.py | eoss-cloud/madxxx_catalog_api | ef37374a36129de4f0a6fe5dd46b5bc2e2f01d1d | [
"MIT"
] | null | null | null | catalog/harvest/initial_harverster_s2.py | eoss-cloud/madxxx_catalog_api | ef37374a36129de4f0a6fe5dd46b5bc2e2f01d1d | [
"MIT"
] | null | null | null | #-*- coding: utf-8 -*-
""" EOSS catalog system
Reads sentinel2 data which is stored in AWS buckets extracted with 'aws s3 ls sentinel-s2-l1c/products/ --recursive --region=eu-central-1 | grep productInfo.json'
[
"""
__author__ = "Thilo Wehrmann, Steffen Gebhardt"
__copyright__ = "Copyright 2016, EOSS GmbH"
__credits_... | 43.716216 | 162 | 0.578362 |
8f278e7a26ca7f8993517da6bdf78ef92cee9b86 | 4,478 | py | Python | main.py | Ashwin-op/CMOS_Circuit_Generator | 12070dd3d69ec5d44a00992fa2fac9a373652452 | [
"MIT"
] | 9 | 2020-10-06T10:20:07.000Z | 2021-09-30T21:35:34.000Z | main.py | Ashwin-op/CMOS_Circuit_Generator | 12070dd3d69ec5d44a00992fa2fac9a373652452 | [
"MIT"
] | null | null | null | main.py | Ashwin-op/CMOS_Circuit_Generator | 12070dd3d69ec5d44a00992fa2fac9a373652452 | [
"MIT"
] | 1 | 2020-12-19T20:25:47.000Z | 2020-12-19T20:25:47.000Z | import subprocess
from tt import BooleanExpression, to_primitives
# Function to print information
# Function to print layout of NOT gate
# Function to print layout of AND gate
# Function to print layout of OR gate
# Function to write the content to either stdout or a file
if __name__ == "__main__":
# P... | 29.267974 | 85 | 0.560518 |
8f28aa0706f66f17af0add2bd99086ff1e7b56cc | 14,888 | py | Python | transaction/views.py | FerdiantJoshua/alkafgrosir-administration | e7ef86b117a98e7f5503d7b5fee91079d0d86932 | [
"MIT"
] | null | null | null | transaction/views.py | FerdiantJoshua/alkafgrosir-administration | e7ef86b117a98e7f5503d7b5fee91079d0d86932 | [
"MIT"
] | 9 | 2020-07-12T23:23:49.000Z | 2022-03-12T00:41:04.000Z | transaction/views.py | FerdiantJoshua/alkafgrosir-administration | e7ef86b117a98e7f5503d7b5fee91079d0d86932 | [
"MIT"
] | null | null | null | import csv
import re
from datetime import datetime
from django.contrib import messages
from django.contrib.auth.decorators import login_required
from django.contrib.auth.mixins import LoginRequiredMixin
from django.db import transaction as django_transaction
from django.db.models import Max
from django.db.models.base ... | 43.659824 | 120 | 0.660263 |
8f3030bc43d74cdae77b5cb7a2c739e35bc810eb | 295 | py | Python | configs/pspnet/pspnet_r50-d8_yantai_st12.py | shuaizzZ/mmsegmentation | a6c6b348dbf8c4a0a39ffbdb832a1e82309c533c | [
"Apache-2.0"
] | null | null | null | configs/pspnet/pspnet_r50-d8_yantai_st12.py | shuaizzZ/mmsegmentation | a6c6b348dbf8c4a0a39ffbdb832a1e82309c533c | [
"Apache-2.0"
] | null | null | null | configs/pspnet/pspnet_r50-d8_yantai_st12.py | shuaizzZ/mmsegmentation | a6c6b348dbf8c4a0a39ffbdb832a1e82309c533c | [
"Apache-2.0"
] | null | null | null | _base_ = [
'../_base_/models/du_pspnet_r50-d8.py', '../_base_/datasets/yantai_st12.py',
'../_base_/runtimes/yantai_runtime.py', '../_base_/schedules/schedule_yantai.py'
]
model = dict(
decode_head=dict(num_classes=4), auxiliary_head=dict(num_classes=4))
test_cfg = dict(mode='whole') | 42.142857 | 84 | 0.715254 |