blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
426f32ef376e7463920f02164ba38de1cc700e70 | cae3fe972d07b7c8d86d1f94d5e19e716eccb2a3 | /robot/robot-tasks-master/task_9.py | 745b9e7ebda6ecc5114c036615ee1e63f5638dea | [
"MIT"
] | permissive | skorphil/lab_works | be57d6154828757d5209ec584e964668b47ce9af | 1bf7d1d68e3196aafd64f5e01ce3c831063e1118 | refs/heads/master | 2023-03-24T05:16:56.472920 | 2021-03-21T08:56:17 | 2021-03-21T08:56:17 | 330,754,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | #!/usr/bin/python3
from pyrob.api import *
@task
def task_8_2():
pass
while wall_is_on_the_right() == False:
if wall_is_above() == False:
fill_cell()
move_right()
else:
if wall_is_above() == False:
fill_cell()
if __name__ == "__main__":
run_tasks()
| [
"skorphil@gmail.com"
] | skorphil@gmail.com |
9df8ff274ca587d7059c4acf7b9f877b5814e90e | 2d706bbc3fe440348a9f1ebbd89462c9609da66d | /examples/autoencoder/plot_ae_gmm.py | 253984534921072f7656ae2950141c370b00eaf7 | [] | no_license | ostiff/fyp2020-oss1017 | 177d33a510dee2b116190e8c8acdb12b41645ab5 | 801b811c6c5cc68a7b1dc616f1fb7b1e7290145a | refs/heads/main | 2023-06-14T21:55:51.042475 | 2021-07-13T08:36:41 | 2021-07-13T08:36:41 | 326,712,919 | 1 | 0 | null | 2021-07-02T17:46:52 | 2021-01-04T14:40:03 | CSS | UTF-8 | Python | false | false | 5,976 | py | """
Auto-encoder w/ GMM clustering
==============================
"""
import os
import pandas as pd
import numpy as np
import pickle
from torch.utils.data import DataLoader
from sklearn.model_selection import train_test_split
from sklearn import preprocessing
from pkgname.core.AE.autoencoder import get_device, set_s... | [
"37678137+ostiff@users.noreply.github.com"
] | 37678137+ostiff@users.noreply.github.com |
d308ca967af8965b1ae999c429a0f3acafbdcf7b | 2fe98c2f7144b6af01c8cf06473af4cc42be60f6 | /VaccineCountNormal.py | 39648bec63ea1a07ebe3bf048e80f681a52a59e8 | [] | no_license | captain-nemo1/Vaccine-Availabilty | 7f67b4fef513d7dc5ee80256bb04c1b12729a359 | a3ce8afbf44a6afb1082e730025a5c6cfcb239ea | refs/heads/main | 2023-04-23T15:52:25.458476 | 2021-05-11T15:23:49 | 2021-05-11T15:23:49 | 365,741,143 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,122 | py | # -*- coding: utf-8 -*-
"""
Created on Sun May 9 17:19:56 2021
@author: Ashit Agarwal
"""
import requests
from datetime import date
import re
#Gets the pincode from users and checks if valid or not
#@returns: returns pincode entered
def getPincode():
correct = False
while correct == False :
pincode ... | [
"ashitagarwal89@gmail.com"
] | ashitagarwal89@gmail.com |
ed4e236be1a1d1b70d1d26ce123abfafd90b4ed0 | 3609a5cd474ca3cd6258272ecfebb9757ba33791 | /ct_detect/PyQt/QtDesigner/test2.py | ef7e3afb777376bea19e1a38e589c2080af25175 | [] | no_license | nlby/pyqt_nlby | 6d2b08e943d5ce0daafe0dad3c4d9cc9b17a30e0 | da36d9d77222bbce17b2e0cfe25316d8bf9f5cbe | refs/heads/master | 2022-09-16T02:57:15.430995 | 2020-05-31T06:53:09 | 2020-05-31T06:53:19 | 268,225,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,345 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'test2.ui'
#
# Created by: PyQt5 UI code generator 5.14.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectName("... | [
"1029253541@qq.com"
] | 1029253541@qq.com |
84d8b4aed568c36b12ab0caa3336a3e8e0341fd2 | 66cad212e8b6fdcf667bf0cdae32f2232fe745da | /tango_with_django_project/tango_with_django_project/settings.py | 6b02153fe88df0071bd0dda9f5f6ac25029963e3 | [] | no_license | kjhurley/workspace-for-learnign | d9de334e74f53e576d6acd73ea26ae239571fb19 | e56696315059ecc4d7b2e80e6657971e4c6754b6 | refs/heads/master | 2016-08-06T02:47:10.506250 | 2014-11-25T15:22:46 | 2014-11-25T15:22:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,378 | py | """
Django settings for tango_with_django_project project.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""
# Build paths inside the project like this: os.path.join... | [
"kevin@hurleys.org.uk"
] | kevin@hurleys.org.uk |
3c028514945da9e202a116f85ceda520d2403fd0 | 3c73fdb451b1f8d6bd96cded694c9b02fcc89903 | /util/stats/samples.py | 2e4d6a1dd1c8ba3170cab38ccb3382564b018b65 | [
"MIT"
] | permissive | winterdl/util | a9640a4644977c53319ed3599e20b0374a4698dc | a187fe803a1a9fa81dc36e751c2813db82833e35 | refs/heads/master | 2020-05-24T20:02:54.421868 | 2019-04-29T20:29:39 | 2019-04-29T20:29:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,646 | py | from util.stats import *
# =====================================================
# Approximating the desired number of samples
# =====================================================
# Compute the confidence of "num_samples" samples having less than or
# equal to "max_error" at exactly 1/2. This is achieve... | [
"thomas.ch.lux@gmail.com"
] | thomas.ch.lux@gmail.com |
d95af86586a787031ce50863eb06c8da6acecdc1 | a6d33a4f864889bec0ec21b5b8106d99a263141c | /kubernetes/models/v1/NodeSelector.py | fbb564b7d15d74932777b7343a5f6b295b17d57e | [
"Apache-2.0"
] | permissive | riconnon/kubernetes-py | bffd2a89b2f445706381c01f46c60cce804f49d6 | 42a4537876985ed105ee44b6529763ba5d57c179 | refs/heads/master | 2020-03-28T01:35:43.082333 | 2018-08-21T19:46:24 | 2018-08-21T19:46:24 | 147,515,935 | 0 | 0 | Apache-2.0 | 2018-09-05T12:42:13 | 2018-09-05T12:42:12 | null | UTF-8 | Python | false | false | 1,739 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This file is subject to the terms and conditions defined in
# file 'LICENSE.md', which is part of this source code package.
#
from kubernetes.models.v1.NodeSelectorTerm import NodeSelectorTerm
from kubernetes.utils import is_valid_list
class NodeSelector(object):
... | [
"francis@manafont.net"
] | francis@manafont.net |
8704515eab4e9f3e970b56686ee9543e8e9d6f38 | bb2f56f394d64bb2c9d80bf54908c519cdad5561 | /github_api4_client/client.py | c2e613fe2c2adef53bebc211945e3e8409eb7f69 | [] | no_license | mikelane/Github_api4_client | a67bb20dc3a9067df3791130f25dcab20235f47b | 20477bb74bb2a276319dd40d834f623ea7259457 | refs/heads/master | 2021-08-27T20:22:19.449928 | 2017-11-28T07:17:16 | 2017-11-28T07:17:16 | 112,152,886 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""A client that queries Github's API v4"""
import json
import requests
__author__ = "Michael Lane"
__email__ = "mikelane@gmail.com"
__copyright__ = "Copyright 2017, Michael Lane"
__license__ = "MIT"
class Client:
def __init__(self, token):
self.token = to... | [
"mikelane@gmail.com"
] | mikelane@gmail.com |
8e0c664d89f9ebe5a4fcddec0508e740e4dda242 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02845/s575549372.py | 16109b9dd317744dc9ac0456caeec1497be459c4 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | N = int(input())
A = list(map(int, input().split()))
MOD = 10**9+7
ans = 1
dp = [0]*3
for a in A:
ans = ans*dp.count(a) % MOD
try:
dp[dp.index(a)] += 1
except ValueError:
break
print(ans)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
6db71eb68c7d13251506f4ee28069a6e635d7e92 | c571444b5e879177252c9721ccc2047d4661dd0c | /viewpack/mixins.py | b42b2612d4a370223c0916241da3f2326f87b009 | [] | no_license | dbsiavichay/faclab | fdb4390544c2515bf92e0e05518f13321ab74907 | 5776f04a5dde4691f9536d2f42fdabaf4984ea45 | refs/heads/master | 2023-08-07T13:52:39.360634 | 2023-08-02T04:25:56 | 2023-08-02T04:25:56 | 106,976,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,611 | py | from django.shortcuts import redirect
class Inline:
instance = None
def __init__(self, formset):
self.formset = formset
self.headers = [field.label for field in formset.form.base_fields.values()]
def is_valid(self):
return self.formset.is_valid()
def save(self):
self... | [
"dbsiavichay@gmail.com"
] | dbsiavichay@gmail.com |
dd6bc3674d2a7a3f61dd1644cd2c052c3b730191 | 07539ecbcee0488ce4a0eb779583da3149cfac7b | /amonone/web/apps/core/models.py | 6c529a2c3088810551b9fc00644c6f20343fe60c | [
"MIT"
] | permissive | outbounder/amonone | e151584ac38222b40c314d586ebadc4e0f43fce1 | 985fa147c1d98a4f57ff33ebd37ca0d938fe674d | refs/heads/master | 2020-12-25T13:33:46.425826 | 2013-07-11T08:54:32 | 2013-07-11T08:54:32 | 11,389,227 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | from hashlib import sha1
from amonone.web.apps.core.basemodel import BaseModel
class ServerModel(BaseModel):
def __init__(self):
super(ServerModel, self).__init__()
self.collection = self.mongo.get_collection('server')
server_model = ServerModel()
| [
"martinrusev@zoho.com"
] | martinrusev@zoho.com |
c0a1f8fe3ed53eb89e51d8f6b0ab03c11b9b516c | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_271/ch79_2020_04_13_14_54_52_021722.py | 56f092418fe91e0cbdd5f29ebcd722db661031f9 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | def monta_dicionario(lista1,lista2):
dic={}
i=0
while i<len(lista1):
dic[lista1[i]]=lista2[i]
i+=1
return dic | [
"you@example.com"
] | you@example.com |
e995605b2c4405408a12059ca84680a733e2e75c | 986385a0cfee64d07b43befff754984a0507f69f | /tests/chain_map_test.py | 87937b5293fda5fb2e183e5cefbbb90770b0ea51 | [
"MIT"
] | permissive | mareklovci/zsur | 2fce9e15b4b83480365b2b1d35dd41c2cc37d09d | c41fbce53aa790b1f280cbca8d274845993e74f9 | refs/heads/master | 2021-09-20T04:11:09.055143 | 2018-08-03T11:03:50 | 2018-08-03T11:03:50 | 121,879,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | import unittest
import zsur.chain_map
class TestChainMap(unittest.TestCase):
def setUp(self):
self.data = [(-3, 0), (3, 2), (-2, 0), (3, 3), (2, 2), (3, -2), (4, -2), (3, -3)]
def test_chainmap(self):
result = zsur.chain_map(self.data, 3.5)
self.assertEqual(result[2], 3)
if __name_... | [
"mareklovci@gmail.com"
] | mareklovci@gmail.com |
fada9429bd7a1b5beb6952bb7eb57f0506fbbcbd | 0606c40353c18fce7c640ed2f6fc4affb95f31a8 | /authorsnbooks/urls.py | be8f8de6e773aa7e7a3e33e3728eb7abf159905f | [] | no_license | moriakh/ejemplos_orm | fc5d0d68556a36d31df019a932a140bd23be26a3 | d83ced88fff43a1d68e2c8fa92650fcc76cd019e | refs/heads/main | 2023-07-05T13:34:41.207818 | 2021-08-12T01:23:31 | 2021-08-12T01:23:31 | 393,742,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.index),
path('books', views.books_page, name="books_page"),
path('authors', views.authors_page, name="authors_page"),
path('delete_book/<book_id>', views.delete_book, name="delete_book"),
path('delete_author/<author_id>... | [
"moriaknc@outlook.com"
] | moriaknc@outlook.com |
ffaaf86ae52bc6c16c44ee4701c6a9acacb0a9b9 | b4c61d25968af71c6098c09041dcc9872486096c | /mars/primitiveProvider.py | 2d8325a5d57ca1e17170867531c88256d91a5d08 | [] | no_license | SarielMa/cppGenerator | 7790c1d53d2aecd696674c8ed0edcbf2ca5edc07 | 6f4321366df6fa52aa205c9c5bb8669f367c8be1 | refs/heads/master | 2021-04-28T21:44:58.598559 | 2017-12-24T18:45:20 | 2017-12-24T18:45:20 | 77,735,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,526 | py | #!usr/bin/python
#from tasks import variable
import random
class primitiveProvider(object):
def __init__(self):
self.intl=[-100,-10,-5,-2,-1,0,1,2,5,10,100]
self.charl='asdfghjklqwertyuiopzxcvbnm'
self.floatl=[-0.5,0.0,0.1,0.5]
self.doublel=[-0.5,0.0,0.1,0.5]
self.booll=['tr... | [
"496252590@qq.com"
] | 496252590@qq.com |
f0ee434ecdf2f62a398ad6e43b34b24e53722ed9 | 8884bcd4375aa580c6dc9b0650dd2b10b183dd09 | /query/setup.py | 86490672335c2aad506cce91c0d5ec54e76df933 | [
"MIT"
] | permissive | avesus/hail | a34fb1c0fd74618e7dfba4724d34d63e89220936 | 6b61ea821e40475ebffb87cea176282a7401f427 | refs/heads/main | 2023-06-17T01:29:52.646771 | 2021-07-12T21:41:22 | 2021-07-12T21:41:22 | 385,439,062 | 1 | 0 | MIT | 2021-07-13T01:48:42 | 2021-07-13T01:48:41 | null | UTF-8 | Python | false | false | 302 | py | from setuptools import setup, find_packages
setup(
name='query',
version='0.0.2',
url='https://github.com/hail-is/hail.git',
author='Hail Team',
author_email='hail@broadinstitute.org',
description='Query service',
packages=find_packages(),
include_package_data=True,
)
| [
"noreply@github.com"
] | avesus.noreply@github.com |
103c356745c5fe170f0eff49b2bf26cd5c8b6be1 | 1e105afef56df40660a08960da4c0393908cedd9 | /docs/conf.py | 186376379f19148c6f3645878a4a5dfcd5053451 | [
"MIT"
] | permissive | xguse/big-gus-brewing-labs | 4fab5333fd69a60625d4a7e99c66a41c823f51b7 | 7536c70764765c6737e99b68e9c537fbc12f4d1f | refs/heads/master | 2021-05-04T06:37:16.797600 | 2016-10-10T15:38:21 | 2016-10-10T15:38:21 | 70,493,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,975 | py | # -*- coding: utf-8 -*-
#
# big-gus-brewing-labs documentation build configuration file, created by
# sphinx-quickstart.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All configuration ... | [
"w.gus.dunn@gmail.com"
] | w.gus.dunn@gmail.com |
6b89c115a7d0ada88176e06f7dd23359dd66c7e3 | 1a826c11e372ac7e82f2f7314641804e7cfd1f2c | /studentapp/migrations/0003_auto_20150210_2124.py | 5e7d161f0ef1eaebd1b9f865f002c2deba321eaa | [] | no_license | alexander-vielimchanitsia/studentapp | 4ef4424c8c7bc78600e3376bba341f86281e8937 | 79af5eb0fcedb52945fc1c4439483be179f7f016 | refs/heads/master | 2021-01-22T10:03:00.607302 | 2017-07-02T21:22:50 | 2017-07-02T21:22:50 | 24,384,980 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('studentapp', '0002_auto_20150210_2123'),
]
operations = [
migrations.AlterField(
... | [
"alexander_vielimchanitsia@mail.ua"
] | alexander_vielimchanitsia@mail.ua |
3eb1c8d9a9b7bcf81d15676fc21f004af2ecd023 | dcc4c79f00c48459e92c7b7369f4824c5c4f16f9 | /python-数据结构和算法/mysort.py | 319939cc47dc520e5cfec478db4c026647eff7c9 | [] | no_license | jie123xing/python_pycharm | c21d924c46bbed9c767521949e1b0a6c3e53ab1c | c008a6ddae8811295a2234155bd5a91eb0081a89 | refs/heads/master | 2020-06-02T13:50:08.389336 | 2019-06-10T13:49:07 | 2019-06-10T13:49:07 | 191,176,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,730 | py | def selectsort(arr):
for i in range(len(arr)-1):
minindex = i #记录剩余数列最小索引
for j in range(i+1,len(arr)):
if arr[minindex]>arr[j]:
minindex=j #find min numberindex
if i!=minindex: #if i!=minindex,change
arr[minindex],arr[i]=arr[i],arr[minindex]
r... | [
"1785544032@qq.com"
] | 1785544032@qq.com |
409887775c7f2153c9c812f9bd69f91cda5e4045 | 5381731fe8ac0cd3326f05992c7a4345d23ea295 | /testDataCerm.py | b18e36adbe1bce7c1971a8154f310cd17fd8c4b5 | [
"MIT"
] | permissive | andreagia/peaks-identification | 2acd8a61d42a9f1fef2c17619aabeb190afe7e28 | ddcc3523f9a1154f6c2f69035dde1bfb9eac0f2a | refs/heads/main | 2023-06-14T22:59:22.797151 | 2021-07-14T15:08:51 | 2021-07-14T15:08:51 | 385,978,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,793 | py |
import argparse
from datetime import datetime
import core.proxy as proxy
import core.graphics as graphics
from core.metrics import custom_accuracy
import sys
import pathlib
from utils.peacks_testannotatedV2 import TestAnnotated as DataParser
import configparser
def run_assignment(free_protein, with_ligand_protein,... | [
"andreagia71@gmail.com"
] | andreagia71@gmail.com |
d77ab181936a164cc2b79bec01dea3d8b97e01ba | 3d96cee3f0c986c7195e7677d85e91dc837d8dd4 | /Web/C/3/3.6/cookie&time.py | ae48e8747c4396422144b709d0987a0c00a3df18 | [] | no_license | dannycrief/full-stack-web-dev-couse | 7faffe1c9e6c39baf03d6ee54f716e4f8b4c8733 | 0b22bc84742d8e78bd6a2e03adfbc44137f3d607 | refs/heads/master | 2023-01-12T09:25:16.378035 | 2021-03-21T16:51:18 | 2021-03-21T16:51:18 | 220,825,261 | 0 | 1 | null | 2023-01-05T12:57:14 | 2019-11-10T17:34:02 | Python | UTF-8 | Python | false | false | 641 | py | from http import cookies
from datetime import timedelta, datetime as dt
c = cookies.SimpleCookie()
c['partial_cookie'] = 'cookie_value'
c['partial_cookie']['path'] = '/pyw/test'
c['partial_cookie']['domain'] = 'skillfactory'
c['partial_cookie']['secure'] = True
c['cookie_expiring_age'] = 'expires in 5 minutes'
c['co... | [
"step.kozbvb@gmail.com"
] | step.kozbvb@gmail.com |
1ab267bd5ce1be177a91b3d13e9a6f809c20cdaf | a9cbd4cf03f4688f76aadb31b4e28440b8721500 | /CToF.py | 98a1ee830782d9f09d244b25a055e990b343aa5f | [] | no_license | serdarayalp/my-python-2 | d34ff1a13e2a8815b9bb2675a4c6ad23a24f5eab | 365247dccc632e8ae1478c95ddb1b461ce175f10 | refs/heads/master | 2022-11-20T05:14:01.261712 | 2020-07-15T09:59:40 | 2020-07-15T09:59:40 | 279,831,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | def F2C(nDegreesF):
nDegreesF = (nDegreesF - 32) * 0.5556
return nDegreesF
def C2F(nDegreesC):
nDegreesF = (1.8 * nDegreesC) + 32
return nDegreesF
# Code to ask the user to input values for conversion:
usersTempF = raw_input('Enter a value of degrees Fahrenheit: ')
usersTempF = float(usersTempF)
conv... | [
"serdarayalp@googlemail.com"
] | serdarayalp@googlemail.com |
1ce21dc9d1aa8d796d84bc1204654729f9075f1d | 1c06fcea2f224f6e0bc8ae5a7d05c8464d3bd37a | /offerlater/wsgi.py | 7832a15c3c82f0d46145c591d59b2d99926fe8b9 | [] | no_license | dvskhamele/extract_offer_later | e25af96ec61cf9c23702c92601cc382dc09024a6 | 39b2f7b07addd0544c799012b8ed7ba43bf0b5d8 | refs/heads/master | 2022-12-09T06:03:21.286277 | 2018-10-05T06:46:15 | 2018-10-05T06:46:15 | 151,679,583 | 0 | 0 | null | 2022-12-08T01:01:22 | 2018-10-05T06:30:53 | Python | UTF-8 | Python | false | false | 489 | py | """
WSGI config for offerlater project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_S... | [
"dvskha@gmail.com"
] | dvskha@gmail.com |
37cfcb9a8b85eca0a5e6047b5857d5ff3525b446 | f3f3150b0c69b2e2f7ad0d38be2a2f986cccb67a | /test_ws/devel/lib/python2.7/dist-packages/test/srv/_get_uint64.py | f80451602369877cfe9bb8ea24f2291ca7e17194 | [
"MIT"
] | permissive | kylejbrown17/factory_sim | 5a9e0c1824bd48a57dbf97ff6b403e90d19a6a39 | 9da53fb68353cd1dc497b8236913229ea53f465e | refs/heads/master | 2022-12-19T11:11:02.039999 | 2020-09-25T17:40:54 | 2020-09-25T17:40:54 | 271,893,678 | 0 | 1 | MIT | 2020-09-25T17:36:11 | 2020-06-12T21:31:31 | Makefile | UTF-8 | Python | false | false | 7,256 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from test/get_uint64Request.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class get_uint64Request(genpy.Message):
_md5sum = "fbe9700edfca44c5eefb040d9b60f6d6"
_type... | [
"nbhak@stanford.edu"
] | nbhak@stanford.edu |
3ef61ae75e7be03fc80f5e896e1ffcf10ecbf7b1 | e1d7b5ead35d6e40d63541d02e3320a01a581055 | /notebooks/python_recap/_solutions/03-functions86.py | c7932b9ecb04b9fb5d8f4ab3904d2d71cce53eff | [
"BSD-3-Clause"
] | permissive | drdwitte/DS-python-data-analysis | 900d9f32683e5131bd6657cd6db95b8f774afe5f | 99db9f763411ae9a67ce60f5b8cc522f5e5db85b | refs/heads/master | 2021-06-13T01:13:14.455810 | 2017-01-03T21:29:45 | 2017-01-03T21:29:45 | 110,525,200 | 1 | 0 | null | 2017-11-13T09:08:55 | 2017-11-13T09:08:55 | null | UTF-8 | Python | false | false | 289 | py | def check_for_jey(checkdict, key):
"""
Function checks the presence of key in dictionary checkdict and returns an
exception if the key is already used in the dictionary
"""
if key in checkdict.keys():
raise Exception('Key already used in this dictionary') | [
"jorisvandenbossche@gmail.com"
] | jorisvandenbossche@gmail.com |
18eef5b11da13adcaf8b1e287316af1f56aec07e | 8e1cb50bcd1a152ab9d934486c36aee2a2859af4 | /src/libzip/Build.py | fc0882610af4394efb4888d1d62e7cfbf6a9a9f3 | [
"BSD-2-Clause",
"MIT"
] | permissive | sspiff/narvi | 6a7c10a323bd5a61a3e39f44808ccff03286f73f | aa56529f15be197422b23a6804040ab6d7255162 | refs/heads/master | 2021-05-15T02:35:18.435615 | 2016-08-27T18:28:25 | 2016-08-27T18:28:25 | 24,562,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,848 | py | #!/usr/bin/python
# Copyright (c) 2014, Brian Boylston
# 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... | [
"sspiff@users.noreply.github.com"
] | sspiff@users.noreply.github.com |
f7e26e7cc3c402d6b46829e91abc8e1b195e5296 | 564cf0465e12cc41a7b0b17490207aff44c320d8 | /sciwing/datasets/sprinkle_dataset.py | c5371e3c3131116f3660de2786659a5f604749fe | [
"MIT"
] | permissive | yaxche-io/sciwing | 7a329f323ab8623953081eb487e643a7cd045a09 | cb4c1413ddc3c749835e1cb80db31c0060e7a1eb | refs/heads/master | 2021-01-02T12:38:50.268422 | 2019-09-12T12:46:57 | 2019-09-12T12:46:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,727 | py | from typing import List, Optional
import collections
import inspect
from sciwing.datasets.classification.base_text_classification import (
BaseTextClassification,
)
from sciwing.numericalizer.numericalizer import Numericalizer
from sciwing.vocab.vocab import Vocab
from sciwing.tokenizers.word_tokenizer import WordT... | [
"abhinav@comp.nus.edu.sg"
] | abhinav@comp.nus.edu.sg |
600eb46ce513ad28968d7a0a1e1228186929b87e | 5d2a748bd9db8c52a4defa730b8cf0d8fd2c2ed8 | /app.py | 019812b1f903261da7ea02668ebd4c3f51df7b2f | [] | no_license | motheesh/MLOPS_DVC | e3ee6f5415744cb4828c2d216ffcc8e06468e8cc | d5286fc38adf55d73284c2fc1ca3450619c5213e | refs/heads/main | 2023-07-28T09:48:00.926151 | 2021-09-17T17:47:29 | 2021-09-17T17:47:29 | 407,207,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,172 | py | from flask import Flask, request, render_template,jsonify,abort,g
from flask_cors import CORS, cross_origin
import config
import pandas as pd
from src.get_data import get_params
import joblib
app=Flask(__name__)
CORS(app)
app.config.from_pyfile("config.py")
@app.route("/", methods=["GET", "POST"])
def index():
l... | [
"motheesh96@gmail.com"
] | motheesh96@gmail.com |
2de3d4571e2e86b45aab6ec7a44b115910821e99 | b4bf4d79787f030c46620dcbd9e602e29ba90b25 | /scripts/git-feedback.py | 67c92e15bf1699b73ac51c02a85ba31278f9430f | [
"MIT"
] | permissive | earthlab/autograding-notebooks | 41eee6f6005cd45099d52983d600635b24fd0a73 | a244fcff035c4c4e21b4cc288d0fbedab63b9b80 | refs/heads/master | 2020-05-19T03:38:50.706611 | 2019-08-21T16:10:15 | 2019-08-21T16:10:15 | 184,807,148 | 1 | 1 | MIT | 2019-09-18T00:36:02 | 2019-05-03T19:06:01 | Jupyter Notebook | UTF-8 | Python | false | false | 2,729 | py | #!/usr/bin/env python3
# Script to copy nbgrader html feedback reports to feedback.html in student
# repos and push repos to github
# Based on script provided by @jedbrown
# Assumes that cwd is nbgrader course dir
import glob
import pandas as pd
import os
import shutil
import subprocess
def run_cmd(cmd,cmdargs,dry_ru... | [
"karen.cranston@gmail.com"
] | karen.cranston@gmail.com |
f06f88a96b52a6621019922f4da89a89ad78cfa6 | 4ac716ab21a95e5fd9f3ba21660b930a4fa81d1b | /src/tweetme/settings/base.py | 76345e48ea607c13224ce84a84fcdb815b0ecf89 | [] | no_license | kodeartisan/tweetus | b5a971a8cb1d67215eec8daccd200c76b40a3087 | 9f3f6ecc94a3c5ea16f82f69d85422046d79d495 | refs/heads/master | 2021-01-20T05:18:57.769368 | 2017-04-29T23:40:19 | 2017-04-29T23:40:19 | 89,769,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,116 | py | """
Django settings for tweetme project.
Generated by 'django-admin startproject' using Django 1.10.3.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import os... | [
"kodeartisan@gmail.com"
] | kodeartisan@gmail.com |
e85a57fb3eb1ae24cf981201425f8807771c5477 | ca121f98fbf91cdbfe788dd3c80c627f3e3900b5 | /km-51/Meliukh_Viktoriia/project/site/main.py | 51a9b926dc0236c6e4ae1e511ccdd1c6d27e7483 | [] | no_license | VikMelyh/dbisworkshops | 36f74f931774e46b1704dc1a5c3e5e7c3c63ee3a | 95e5c1c13d2fe090357a4554fa0a70caff238517 | refs/heads/master | 2020-04-05T19:13:19.530719 | 2018-12-26T20:58:56 | 2018-12-26T20:58:56 | 157,124,295 | 0 | 1 | null | 2018-11-11T21:46:27 | 2018-11-11T21:46:26 | null | UTF-8 | Python | false | false | 7,200 | py | from flask import Flask, render_template, request, make_response, redirect, url_for, flash
from Booking import Booking
from Classroom import Classroom
from User import User
from Lesson import Lesson
from Housing import Housing
from Seat import Seat
from BookingForUser import BookingForUser
from logic.user_validation ... | [
"0433vikla@gmail.com"
] | 0433vikla@gmail.com |
41baf4b78a342fb0201c70320d7ad17137fe3707 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_examples/_algorithms_challenges/pybites/topics/pytest/246/test_workouts.py | a258bfe876e0aa72bb19381255b6aca8ca6de9ba | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 542 | py | import pytest
from workouts import print_workout_days
@pytest.mark.parametrize("arg, expected", [
('#', 'Mon, Tue, Thu, Fri\n'),
('30', 'Wed\n'),
('30 min', 'Wed\n'),
('cardio', 'Wed\n'),
('#1', 'Mon, Tue\n'),
('#2', 'Thu, Fri\n'),
('upper', 'Mon, Thu\n'),
('lower', 'Tue, Fri\n'),
... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
3eb74c1abb66a86e7d626e33b478916afc4ea177 | 676dd5cc6454f17df4e421316c6ec389097a33f0 | /oddnumber.py | 756858cab94a3b99cc1adfa717c136d1cd1d9d73 | [] | no_license | Habiba171998/python-programming | 3078fdb93169a308abb62ed632523b8da8256547 | de2aa4bb440c773721ff5292a4794b5a6f9a50b6 | refs/heads/master | 2021-04-06T19:33:53.621743 | 2019-02-06T09:43:26 | 2019-02-06T09:43:26 | 124,640,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | lower=int(input())
upper=int(input())
for i in range(lower,upper+1):
if(i%2!=0):
print(i)
| [
"noreply@github.com"
] | Habiba171998.noreply@github.com |
6f3406ba10c19ac118420f8b347f2dffced2e3cb | 2a814b1b23735fdd6e3976d655f25eb73ebb8ee2 | /cycic/baselines/random-baseline/random_baseline.py | dcd95a5296f891c2c1222e68773afdf1f62497c7 | [
"Apache-2.0"
] | permissive | allenai/mosaic-leaderboard | fa3f04a3940e95d19be860858be3bdeccdc26d6f | 4bd26c732ebb85aba7a62b3170dadbb0fedf5179 | refs/heads/master | 2023-08-03T12:00:43.462223 | 2022-08-03T16:38:14 | 2022-08-03T16:38:14 | 176,200,213 | 20 | 5 | Apache-2.0 | 2023-07-06T22:01:30 | 2019-03-18T03:46:27 | Jupyter Notebook | UTF-8 | Python | false | false | 1,476 | py | import argparse
import json
from typing import List
import random
# Parse the input file from JSONL to a list of dictionaries.
def read_jsonl_lines(input_file: str) -> List[dict]:
with open(input_file) as f:
lines = f.readlines()
return [json.loads(l.strip()) for l in lines]
choices_by_question_t... | [
"chandrab@allenai.org"
] | chandrab@allenai.org |
081f788bef03adc37b7381ec2236b5677aa06bfb | bbd8761bb4b2f1e69b5b8fe931b426a2edd76c01 | /Introduction to Python/lesson1/task1/hello_world.py | 7845e0eb023e194e3411dc764809a060a15b7930 | [] | no_license | DmitryTsybulkin/intro-to-python | 59b79829af421aa016597a75021ca7f3447ffa39 | ddf672acf0de634798ee650ca73085ed35f17660 | refs/heads/master | 2020-04-27T22:30:11.578689 | 2019-09-13T14:06:23 | 2019-09-13T14:06:23 | 174,739,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42 | py | print("Hello, world! My name is Dimitry")
| [
"tsydimasik@gmail.com"
] | tsydimasik@gmail.com |
bc22e6b3ec5d94bad43b94ae603221e809296b50 | d689675f6af44e0228a88ca67bdc890a4c462732 | /sokoban.py.dir/levels.py | a13051d295ac643ac0c1c70fad57d2fff5197692 | [] | no_license | lukacslacko/minecraft_plugins | c6219709180cd3910df9b110b157fc4aa0bd4975 | c8d45f3a1cf9469e754c87eb3e0b8c95f820c703 | refs/heads/master | 2020-04-13T23:34:05.117289 | 2019-02-16T12:29:50 | 2019-02-16T12:29:50 | 163,510,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,489 | py | # Source: http://borgar.net/programs/sokoban
levels = {
'tutorial': [
'+++++ ',
'+* + ',
'+ +O+++',
'+ O ..+',
'+++++++',
],
'level1': [
' +++++ ',
' + + ',
' +O + ',
' +++ O++ ',
... | [
"root@mc-spigot.europe-west4-a.c.minecraft-server-226616.internal"
] | root@mc-spigot.europe-west4-a.c.minecraft-server-226616.internal |
8188d0335bfd2c141d5aae25769dee38fb007541 | 80de7c4f2f53f6866e4ea76ebbde238835589c80 | /main.py | e88f0d78a6a5f57e8a81bea7698157bf266fad45 | [] | no_license | TCHEN621130/CarEnvision | 57e2cbf1fc235461fea2bedc073ba463fe008fdb | 4035e499e6a16d7c5c45bd98d1f1e13bd6d87773 | refs/heads/main | 2023-01-14T05:26:08.619481 | 2020-11-17T05:38:52 | 2020-11-17T05:38:52 | 303,492,108 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,132 | py | from flask import Flask, render_template, url_for, request
import requests
from textblob import TextBlob
#ML Packages
from sklearn.linear_model import Ridge
from sklearn.preprocessing import PolynomialFeatures
from sklearn.pipeline import make_pipeline
app = Flask(__name__)
@app.route("/")
def index():
return re... | [
"noreply@github.com"
] | TCHEN621130.noreply@github.com |
18ccce646421cdd13c411dbab51d011ea580a100 | 0736073dc4cb1cd058538904e5b803c7a8bae4be | /venv/bin/pip-2.7 | a7212c0a276a2129ea20d0ed7dbfd15266970796 | [] | no_license | fraferra/angelhack | 869db14434e38deb752e914874f1b1629e68e493 | 25b7a9464f4907db3b914f9db8882bf9e964f896 | refs/heads/master | 2020-06-04T03:00:37.765388 | 2013-11-22T22:45:17 | 2013-11-22T22:45:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | 7 | #!/home/fraferra/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==1.1','console_scripts','pip-2.7'
__requires__ = 'pip==1.1'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('pip==1.1', 'console_scripts', 'pip-2.7')()
)
| [
"fraferra@cisco.com"
] | fraferra@cisco.com |
c81b6eeca4426b2b7bb6e550af9c778542b3b4ab | c71bdf7d24207c2a39c3ad7be3ede1043be81569 | /utils/image.py | 9a4ddf4ce5674186c56cbb1999696d6b912ee04f | [
"MIT"
] | permissive | Red-Eyed/dnn_models | 72056b621e7d6e186c6993edfcdfa951e985b9b9 | 66bee227e66e5432cf5ddecdc6cd18f5dcf372ba | refs/heads/master | 2020-04-10T09:55:17.578256 | 2019-09-10T09:56:58 | 2019-09-10T09:56:58 | 160,950,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | import numpy as np
def max_min_norm(array: np.ndarray):
return (array - array.min()) / (array.max() - array.min())
def image_norm(img):
return (max_min_norm(img) * 255).round(0).astype(np.uint8)
| [
"vadim.stupakov@gmail.com"
] | vadim.stupakov@gmail.com |
c84347836205fcd31ebaa82214093bae97ef308a | daf0fe52ec118bf5f20781ecb2761ae5a797814d | /Godkendt kode/LightUp-r.py | 92b8d9dd86e00b6cc4d5468765067092484e460e | [] | no_license | ijji123/SaMo | 33963fdbc9cb6fb93bea78d59256dba0d437b455 | 9c75be60e55936095be0c3cce0b2bc714a936e7b | refs/heads/main | 2023-01-31T01:52:56.063621 | 2020-12-15T09:50:15 | 2020-12-15T09:50:15 | 303,104,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
GPIO.setup(18, GPIO.OUT)
GPIO.output(18, True)
print("LED on")
time.sleep(3)
GPIO.output(18, False)
print("LED off")
| [
"noreply@github.com"
] | ijji123.noreply@github.com |
8d1d88a92305dd5d7d7bc32e3fb518ce472ad83c | 9d48d012d24ee6dc3b51c6b977be3dc1d79dfe55 | /CodeEval Challenges/checkBitPositions.py | 5e27ec959700b70f2d8acc4956ca516cd7bd9b79 | [
"MIT"
] | permissive | mailpraveens/Python-Experiments | 4a3a83a63a5397d58f3780c4f1a9dbb4803bf2dc | 0107fb30c7b3071009d37cb74d1e53de87d28231 | refs/heads/master | 2016-09-06T18:08:05.386595 | 2014-08-03T17:54:45 | 2014-08-03T17:54:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | import sys
def check_bit_positions(n, p1, p2):
"""Checks if the first two digits of n match p1 and p2."""
binary = '{0:b}'.format(n)
if list(binary)[-p1] == list(binary)[-p2]:
print "true"
else:
print "false"
test_cases = open(sys.argv[1], 'r')
for test in test_cases:
if not test == '\n':
... | [
"mailpraveens@gmail.com"
] | mailpraveens@gmail.com |
abedf9f4625a77c24290df3049a6955779ab6452 | 1f52a776039be1b1b0bfbdffcf54668bd31205f8 | /Morse code converter.py | 02f43036c18f70870e9e0002a21cd65d0f12713f | [] | no_license | cyborgtowel/edabitproblems | d3f9eea63fb3690582d38b1fa8c272a71bb4d36a | 96dd6ecb1ba85f9788763d82c66178e0b9d72eaf | refs/heads/main | 2023-01-31T08:25:13.632673 | 2020-12-16T11:36:07 | 2020-12-16T11:36:07 | 318,176,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,059 | py | #Morse code converter
char_to_dots = {
'A': '.-', 'B': '-...', 'C': '-.-.', 'D': '-..', 'E': '.', 'F': '..-.',
'G': '--.', 'H': '....', 'I': '..', 'J': '.---', 'K': '-.-', 'L': '.-..',
'M': '--', 'N': '-.', 'O': '---', 'P': '.--.', 'Q': '--.-', 'R': '.-.',
'S': '...', 'T': '-', 'U': '..-', 'V': '...-', 'W'... | [
"noreply@github.com"
] | cyborgtowel.noreply@github.com |
ea900577260c2521ec76f9b29686b81ea4e1632b | f734a39a0c37186e90caea597f13000823c9e67a | /leetcode/Linked List/876. Middle of the Linked List.py | 13dc5d4c1476c4d359650a53375ea3f50e48e9f1 | [
"MIT"
] | permissive | yanshengjia/algorithm | 681746e0371a82860e64a279bfe4c83545469641 | 46caaf74aeab8af74861fb5b249eb4169baf8493 | refs/heads/master | 2022-08-02T20:15:57.927418 | 2022-07-17T14:43:51 | 2022-07-17T14:43:51 | 192,160,418 | 69 | 32 | null | null | null | null | UTF-8 | Python | false | false | 1,192 | py | """
Given a non-empty, singly linked list with head node head, return a middle node of linked list.
If there are two middle nodes, return the second middle node.
Example 1:
Input: [1,2,3,4,5]
Output: Node 3 from this list (Serialization: [3,4,5])
The returned node has value 3. (The judge's serialization of this no... | [
"i@yanshengjia.com"
] | i@yanshengjia.com |
d3435b52488699116cf716d391c5465987ff63d4 | 56c85c6e597e3343847a3d59c499f82edea58292 | /mpi_SN.py | 65dd54bc5af7377d56b3a42e763b916a54811b0c | [] | no_license | chrisfrohmaier/Monte_Carlos | 9f659593de520a46de86a328c7272099668e55dd | 65394a7f44343eb64efcd359809e591517a429d9 | refs/heads/master | 2020-05-20T08:18:59.833438 | 2015-01-12T18:06:06 | 2015-01-12T18:06:06 | 29,144,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,469 | py | #Test
from mpi4py import MPI
import matplotlib
matplotlib.use('Agg')
import numpy as np
import matplotlib.pyplot as plt
from astropy.cosmology import FlatLambdaCDM
from matplotlib.patches import Circle
from shapely.geometry import Polygon, Point
from descartes.patch import PolygonPatch
from astropy.time import Time
imp... | [
"cf5g09@cyan03.(none)"
] | cf5g09@cyan03.(none) |
ebd0ac1291f69956d047a9776759e5741c301ee7 | 93022749a35320a0c5d6dad4db476b1e1795e318 | /issm/solve.py | 6f9568eb7b81f3043ed44d1722203d67d58f6351 | [
"BSD-3-Clause"
] | permissive | pf4d/issm_python | 78cd88e9ef525bc74e040c1484aaf02e46c97a5b | 6bf36016cb0c55aee9bf3f7cf59694cc5ce77091 | refs/heads/master | 2022-01-17T16:20:20.257966 | 2019-07-10T17:46:31 | 2019-07-10T17:46:31 | 105,887,661 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 5,652 | py | import datetime
import os
import shutil
from issm.pairoptions import pairoptions
from issm.ismodelselfconsistent import ismodelselfconsistent
from issm.marshall import marshall
from issm.waitonlock import waitonlock
from issm.loadresultsfromcluster import loadresultsfromcluster
def solve(md,solutionstring,*args):
"""... | [
"cummings.evan@gmail.com"
] | cummings.evan@gmail.com |
a5ceb6f80537f70a81d040c035f117f32ca3ae68 | fa0d3f4f013519d2fae720fb3f5e41f809ec57da | /58city/test.py | 657612af1f54c9ebe9744cac0b5bad57813dab46 | [] | no_license | mktsyy/codes | e722fa0ae690cdfded3f3ba0299022f82613e18b | f7a49fa49b943e3111ba290c960624c8df5989f0 | refs/heads/master | 2021-01-10T06:44:25.093477 | 2019-01-16T15:34:54 | 2019-01-16T15:34:54 | 52,073,390 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 645 | py | #-*-coding:utf-8-*-
from pynput.mouse import Button, Controller
import time
import win32clipboard as w
import win32con
from controlKeyboard import doKeyboard,altUp,down,enter,LaoGongTV,ctrlTab,ctrlW,space,ctrlV,keyFill,ctrlShiftI
mouse = Controller()
def setText(aString):
w.OpenClipboard()
w.EmptyClipb... | [
"mktsyy@gmail.com"
] | mktsyy@gmail.com |
ac41a5b9c7adf355884bd7205ef75b79508e0bea | 4b1e4894323a62c584ae3e62e2f382d786b25bce | /utils.py | dd47b644b2a3b9ca2e2b032155d3ff957db88ac3 | [] | no_license | slensgra/subvideo_capture | c62c2999147a2a7a8ab27d62c61d86a80f6ade63 | 7714785aedceacfc967d8d14d857bd67f5413ced | refs/heads/master | 2022-06-20T04:52:00.253741 | 2020-05-12T15:32:37 | 2020-05-12T15:32:37 | 263,377,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,701 | py | import cv2
import numpy
import argparse
import sys
def initialize_argument_parser():
parser = argparse.ArgumentParser(description="Displays and saves a subvideo of a given video stream (file, or ROS topic)")
parser.add_argument("--width", type=int, required=True, help="Width of the subvideo in the original vi... | [
"sam.lensgraf@gmail.com"
] | sam.lensgraf@gmail.com |
94f4c30e67ba04994fc431d78aff167bbd09e15d | d920018c7b7760ef6d170c1485041bcbb079216d | /kryptos/rc4-web-step.py | de57a490aafc07447200966caf8d577683a0bbae | [] | no_license | nutty-guineapig/htb-pub | 36cb2dd1ba5f40689618212f5de6fa8ebcbd69ce | d9706a40af44fa48f931b5eb0910627e726d4ea5 | refs/heads/master | 2021-06-10T00:10:02.015756 | 2021-06-02T05:51:23 | 2021-06-02T05:51:23 | 181,233,445 | 0 | 0 | null | 2021-04-20T16:14:11 | 2019-04-13T22:06:18 | Python | UTF-8 | Python | false | false | 2,501 | py | #!/usr/bin/python3
#-- RC4 Decryptor script --
# After step 1 re: Injection on the connection string and making the server authenticate against a database that we own
# We are presented with a page that lets you encrypt a file in either modes AES or RC4. The file input is a # remote URL.
# Objective: Can we d... | [
"37027195+guineapiggy@users.noreply.github.com"
] | 37027195+guineapiggy@users.noreply.github.com |
4abdb96cfed188337be3daf7218afd40e08e0611 | 50b88d55bd2cecd177eedb9bfe3b9c2703b99bfe | /data_processing/frame_randomizer.py | b6f6984b9c05d7a788f977f2cf19bffeae4b6e56 | [
"MIT"
] | permissive | djpetti/isl-gazecapture | a6f271bf4d29f3a6a6e82faca4ce01f467709137 | de0d955d25640facc5d72099fa92a4391643b405 | refs/heads/master | 2021-04-27T20:25:13.045132 | 2019-01-31T05:44:22 | 2019-01-31T05:44:22 | 122,378,447 | 12 | 5 | MIT | 2019-01-31T05:44:23 | 2018-02-21T18:50:18 | Java | UTF-8 | Python | false | false | 1,958 | py | import random
class FrameRandomizer(object):
""" Class that stores and randomizes frame data. """
def __init__(self):
# Create dictionary of sessions.
self.__sessions = []
self.__total_examples = 0
# This is a list of indices representing all sessions in the dataset in
# random order.
se... | [
"djpetti@gmail.com"
] | djpetti@gmail.com |
ff93a47c3ed1b221744bcd2ee5b4762dbbf4ae78 | b73535890e08bc087be1fbf809cc9c4b87f894da | /Assignment1/Assessment1.py | 4f6130eecba2043206be8d386dbc197da74e6084 | [] | no_license | lumpop1/CP1404PRAC | 848761ce55a4e5fa857fd2f86e3c5b1abc9afdbb | af0fbb7b098ada0dc33a5cf67b17def7d065b1f8 | refs/heads/master | 2020-04-09T11:17:39.422805 | 2019-01-08T05:40:42 | 2019-01-08T05:40:42 | 160,304,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,410 | py | import csv
import pandas
csvFile=open("temp.csv", "r")
reader = csv.reader(csvFile)
content = []
for line in csvFile:
print(line)
def main():
Songs = pandas.read_csv('temp.csv')
print("Songs To Learn 1.0 - by Jianjian Chen \n", len(Songs.index), "Ward songs loaded")
choseMenu = str(input('Me... | [
"noreply@github.com"
] | lumpop1.noreply@github.com |
05214e0e4aa20a963f23b7faae9d5bcd0c55f0cf | 1d3bb895bc989e326e0c7b96c2a9c03d7c6627e2 | /src/api/test/setup_tests.py | 9ca69c09db57d4cf7db81f99222da12b9ed79aa1 | [] | no_license | jyrihogman/todo-app | a80bef1fe61aa54af2d267e2055dc7da21366463 | e41fdf6fdddbeffd7990429c80eb31ccd45cc474 | refs/heads/main | 2023-04-06T21:20:05.696029 | 2021-04-25T21:15:05 | 2021-04-25T21:15:05 | 356,906,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,576 | py | import boto3
import json
TABLE_NAME = "Todos"
uuids = []
def get_todos():
with open("db.json") as json_file:
return json.load(json_file)["todos"]
def create_table():
dynamo = boto3.client("dynamodb")
dynamo.create_table(
TableName=TABLE_NAME,
AttributeDefinitions=[
... | [
"jyrihogman@gmail.com"
] | jyrihogman@gmail.com |
99c67e0451761edd9fd8566c1c5826773bf6b3ec | 96ebb8cd58b36e07ad9f01a79e8e3b1bce1e3649 | /manage.py | 7986b77abb2c448407eb2b016900dbddf2b35487 | [] | no_license | mbanot/stanview | b0a1f23bf7b277d9a2f72fd4c0ca2d7684b04d3d | 81fb7638db3eabf6399dba11b94182229e49ee5f | refs/heads/master | 2023-03-13T10:52:00.782310 | 2021-03-04T14:08:54 | 2021-03-04T14:08:54 | 344,492,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'zolapp.settings')
try:
from django.core.management import execute_from_command_line
except Impor... | [
"tmmmbano@gmail.com"
] | tmmmbano@gmail.com |
638c8184e37f2a7596cc64bea241a41383f168fa | 4ee78f0e8db8f8d814896c635be0449961119ddf | /parameter.py | 6aa73dba5c84f86b556588b1f7ccf1df603a8723 | [] | no_license | DerrickPikachu/MyFirstGAN | 5552b4eaa2cd4bf6a06f1dc45a9c4310891c53f5 | 61bf37ebdfc69e6f3d060e4af01ed0ee269abd05 | refs/heads/master | 2023-07-17T20:25:31.816755 | 2021-08-23T17:19:04 | 2021-08-23T17:19:04 | 398,039,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | import torch.cuda
from torch import nn, optim
# Root directory for dataset
dataroot = "data/celeba"
# Number of workers for dataloader
workers = 1
# Batch size during training
batch_size = 32
# Spatial size of training images. All images will be resized to this
# size using a transformer.
image_size = 64
# Numbe... | [
"derrfgh4563@gmail.com"
] | derrfgh4563@gmail.com |
1b7677a54be603036724e7d67f128e87baee3d5d | 4bba68477b57ccbd9e8c3bf1622fc3fb4c07034a | /texar/modules/decoders/xlnet_decoder_test.py | cdc51d775a727ca3cd8d684de1febe2cf2cf0054 | [
"Apache-2.0"
] | permissive | TPNguyen/texar-pytorch | 9ed56e2983ee1e055c5eb9c14856f967906e96f5 | d212ab01e427da00cd4210344cc18e0d88a16e50 | refs/heads/master | 2020-06-25T06:56:59.791929 | 2019-07-28T01:00:33 | 2019-07-28T01:00:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,778 | py | """
Unit tests for XLNet decoder.
"""
import unittest
import torch
from texar.modules.decoders.xlnet_decoder import *
from texar.utils.test import pretrained_test
class XLNetDecoderTest(unittest.TestCase):
r"""Tests :class:`~texar.modules.XLNetDecoder`
"""
def setUp(self) -> None:
self.batch_si... | [
"huzecong@gmail.com"
] | huzecong@gmail.com |
ed7adc09c26d904b775eb821936224e58720993f | 1c4bfecb65285b25d5a0bbd0dd61aabc33e5b023 | /Day 16/day16.py | f78324ccc481c47aee6a8bab33f3948f5d8cdff0 | [] | no_license | RaulVS14/adventofcode2020 | e3abce815daf7d030d101eda385cc60e9c585933 | ec01c088ad4b8d09a75522575971a2bb02cfe28c | refs/heads/master | 2023-02-04T22:08:38.802445 | 2020-12-21T15:40:03 | 2020-12-21T15:40:03 | 317,475,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 761 | py | from day_16_functions import get_sum_of_invalid_field_numbers, get_multiplied_departure_field_numbers_from_your_ticket, \
get_order_label_list
from helpers.helpers import output_test_result, output_result
if __name__ == "__main__":
# Part 1
print(output_test_result(71 == get_sum_of_invalid_field_numbers("t... | [
"raul.muser@gmail.com"
] | raul.muser@gmail.com |
9bbf9007ff690de3538ee65f2650bc8c9b1b236e | d4bc18b44dba3ecfb06a09ba6406d82d1162da21 | /Lessons/08.10/logical.py | 71dd9209371d91db96f4c43528a0e9e96f722495 | [] | no_license | VitaliStanilevich/Md-PT1-40-21 | 367d4ab51895d6c2cbb7f2c99dbd63368ce9519c | 656ded42fb36434b8f3c7cd0aa17660bb2699973 | refs/heads/main | 2023-08-24T14:53:18.753697 | 2021-10-20T18:40:55 | 2021-10-20T18:40:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | num = 10
if num > 0:
print("positive")
elif num == 0:
print("zero")
# if num == 0:
# print("zero")
else:
print("negative")
print("positive") if num > 0 else print("zero") if num == 0 else print("negative")
if num >= 0:
if num == 0:
print("zero")
else:
print("positive")
els... | [
"Mikita_Tsiarentsyeu@epam.com"
] | Mikita_Tsiarentsyeu@epam.com |
5b43351087ccdff0802e538ca93f5ebdb419fc2a | eed9012c437bdcf46ddea1fa9a46d84ee00275ae | /venv/Lib/site-packages/setuptools/extension.py | 2bf4b0c99d9516cf5a6a6b99ae7b64b7c206b9dd | [] | no_license | afreencoder/pythonspeech | dc75548052557e62001555c6147e7051f1b6b4e0 | f059d5cc0280c3eb6daedb68504d7ff293cd1556 | refs/heads/master | 2021-05-22T19:53:40.104622 | 2020-04-04T18:46:25 | 2020-04-04T18:46:25 | 253,066,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,726 | py | import re
import functools
import distutils.core
import distutils.errors
import distutils.extension
from setuptools.extern.six.moves import map
from .monkey import get_unpatched
def _have_cython():
"""
Return True if Cython can be imported.
"""
cython_impl = 'Cython.Distutils.build_ext'
try:
... | [
"afreen.sft@gmail.com"
] | afreen.sft@gmail.com |
83020e7b885b73925fc4aedbd8b35e711c077254 | a38379baffede6c9012263c91eb25d7baf4e880d | /create_lex.py | 7ccdf6c6b2abb51d922432a32837f52c0fc7168c | [] | no_license | stebranchi/LUS_Midterm | 375c9f30bc30f0f6c757d5de0b611a97e378a714 | 61821984619ad829a2256dcf739c150eace71273 | refs/heads/master | 2020-05-07T22:40:43.584239 | 2019-04-12T08:22:20 | 2019-04-12T08:22:20 | 180,955,096 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,150 | py | from string import ascii_lowercase, ascii_uppercase
import math
f = open('lex.lex', 'w')
train = open('NL2SparQL4NLU.train.conll.txt', 'r')
i = 1
s = set()
f.write('epsilon\t0\n')
for l in train:
words = l.split()
if words:
s.add(words[0])
tag = words[1]
if tag[len(tag)-1] == '$':
tag = ta... | [
"ste.branchi@gmail.com"
] | ste.branchi@gmail.com |
cf109e7cf9cfecaf4ee0b9dae24be68429555429 | dfa2c7f96039b746046162eec2372b632f9a8f25 | /train_vgg_en.py | 2ef8b3d6925ec7418c4cea78d1d1fd505b755d0f | [
"MIT"
] | permissive | RuiLiFeng/FGAN | 33a2c198191409b55185f964ede5b72bf44de9f1 | ba22b428170b2d04422a01eb76da2b31471c5ae5 | refs/heads/master | 2020-07-30T19:34:00.565334 | 2019-10-29T12:45:47 | 2019-10-29T12:45:47 | 210,334,295 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,484 | py | """ BigGAN: The Authorized Unofficial PyTorch release
Code by A. Brock and A. Andonian
This code is an unofficial reimplementation of
"Large-Scale GAN Training for High Fidelity Natural Image Synthesis,"
by A. Brock, J. Donahue, and K. Simonyan (arXiv 1809.11096).
Let's go.
"""
import functools
fr... | [
"frl1996@mail.ustc.edu.cn"
] | frl1996@mail.ustc.edu.cn |
281e9a22cb539e56fcdae3068e150352f7d6bcd8 | 8d0d406eb3bc0839a4570aad5ca4f8cb2ceca3f5 | /lib/ultrasonic.py | 588f89b89cf1501d93ed2753982f674def1a959f | [] | no_license | Rafvermeylen/Build2 | 1843dfc29eb57af4fc7cb5a39bb38623d7e9af90 | d0f7da4b6855e27d006041bd3ca9066282855e9a | refs/heads/main | 2023-04-10T09:14:32.353143 | 2021-04-22T08:27:58 | 2021-04-22T08:27:58 | 360,445,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 681 | py | # ---- Imports ----
from machine import UART
# ---- Setup ----
uart = UART(1)
# ---- Code ----
def measurement():
uart.init(baudrate=9600, bits=8, parity=None, stop=1, timeout_chars=100,
pins=('P3', 'P4'))
header_bytes = uart.read(1)
while(header_bytes != b'\xff'):
header_bytes... | [
"noreply@github.com"
] | Rafvermeylen.noreply@github.com |
d0960dc5f6ed3fa19b1ed7f58fa31677ac4e9e1f | fd9b11b08d4878919ec42421253f483fc52a31cc | /main/models.py | e8f3a236c1151915434ad86983eb7298946d0d41 | [] | no_license | aditj/qaik | 579893912ad4960c3532bc5476a353c0002b7bc3 | 93e13f68aaf63aaa1cc45d783ef89de97ef7e123 | refs/heads/main | 2023-04-12T08:36:52.832811 | 2021-04-26T20:52:23 | 2021-04-26T20:52:23 | 356,635,097 | 1 | 1 | null | 2021-04-24T20:58:32 | 2021-04-10T16:20:44 | HTML | UTF-8 | Python | false | false | 1,822 | py | from django.db import models
from django.contrib.auth.models import User
from django.conf import settings
class UserProfile(models.Model):
user=models.OneToOneField(settings.AUTH_USER_MODEL,on_delete=models.CASCADE)
bio=models.TextField(blank=True,default='')
dob=models.DateField(blank=True,null=True)
... | [
"aditjain1980@gmail.com"
] | aditjain1980@gmail.com |
f1a7294eab456b87d9b7f4eed6f4205013b784ef | d1e9e904eacd91cc08d76646edf17dced72c0d94 | /GamesAPI/settings.py | 94feb6880296218927c9c9164e0182bafffb0897 | [] | no_license | thonnycleuton/GamesAPI | 59c86c7562be4c09e120c010114e1495ada26079 | 004513fa0bd45877cb5dc76e6eebe7ce78d34667 | refs/heads/master | 2021-01-19T14:27:46.197720 | 2018-05-21T19:59:36 | 2018-05-21T19:59:36 | 100,906,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,211 | py | """
Django settings for GamesAPI project.
Generated by 'django-admin startproject' using Django 1.11.3.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import o... | [
"thonnycleuton@gmail.com"
] | thonnycleuton@gmail.com |
371eaae16186960201e80bb6d9592aeab3c20d3f | 45e376ae66b78b17788b1d3575b334b2cb1d0b1c | /checkov/kubernetes/checks/resource/k8s/KubeletStreamingConnectionIdleTimeout.py | e16eb9d02a976a7c0eb9f9c1bf564fb63abf0a44 | [
"Apache-2.0"
] | permissive | bridgecrewio/checkov | aeb8febed2ed90e61d5755f8f9d80b125362644d | e64cbd27ffb6f09c2c9f081b45b7a821a3aa1a4d | refs/heads/main | 2023-08-31T06:57:21.990147 | 2023-08-30T23:01:47 | 2023-08-30T23:01:47 | 224,386,599 | 5,929 | 1,056 | Apache-2.0 | 2023-09-14T20:10:23 | 2019-11-27T08:55:14 | Python | UTF-8 | Python | false | false | 900 | py | from typing import Any, Dict
from checkov.common.models.enums import CheckResult
from checkov.kubernetes.checks.resource.base_container_check import BaseK8sContainerCheck
class KubeletStreamingConnectionIdleTimeout(BaseK8sContainerCheck):
def __init__(self) -> None:
# CIS-1.6 4.2.5
id = "CKV_K8S_... | [
"noreply@github.com"
] | bridgecrewio.noreply@github.com |
9d990bda2fc62af61f7f130b0df0456ea591e94f | 75d87febb5142a79e095cdb339480706bf9d9aaa | /wlasna_usr/usr/pkg/bin/pydoc2.7 | bf5e96158337d8127267c83b56d3067cec5adac7 | [] | no_license | heroarthur/Minix | fcc6cbcc4b9622e4d60372d48a10f540da29893b | 9ad1e2fa153376ebbde56167b372807fd68b9670 | refs/heads/master | 2020-03-18T07:06:54.082284 | 2018-06-12T17:00:29 | 2018-06-12T17:00:29 | 134,433,383 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 82 | 7 | #!/usr/pkg/bin/python2.7
import pydoc
if __name__ == '__main__':
pydoc.cli()
| [
"you@example.com"
] | you@example.com |
7789e54acc02fe0277ff80ce14efbcdc4ee6e7f1 | 4cc9985900c7f2b3ff41c7b15f1cd4f5e8fd36f5 | /cartpole.py | 1193790020d213d158312343236e9e91fad708f8 | [] | no_license | Rahul-Mallapur/cartpole-neuralnetwork | c24d3b1684a81c1ea6cfeadbc8fe68b900e82759 | ca4c7ec02c17945a0810278a83f7d26e33a88589 | refs/heads/master | 2021-01-25T01:21:51.852628 | 2017-06-20T12:35:27 | 2017-06-20T12:35:27 | 94,750,828 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,455 | py | import gym
import random
import numpy as np
import statistics
from collections import Counter
import tflearn
from tflearn.layers.core import input_data, dropout, fully_connected
from tflearn.layers.estimator import regression
#setup the Cartpole environment
env = gym.make("CartPole-v0")
env.reset()
#----------Expl... | [
"rahul.mallapur@gmail.com"
] | rahul.mallapur@gmail.com |
a0becb9dc092adcc0f8e303940625644b72e1b10 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02260/s412559133.py | 8c84ef67f65a718272f86806feae9173e7892bbe | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | N = int(input())
A = list(map(int,input().split()))
cnt = 0
for i in range(N):
minj = i
for j in range(i+1,N):
if A[j] < A[minj]:
minj = j
if i != minj:
A[i],A[minj] = A[minj],A[i]
cnt += 1
print(*A)
print(cnt)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
da8fa44710b31c0971532d774f37cde1ae7626d2 | c132527e1efc635541099f5df80a98fca9da4b5f | /listings/migrations/0001_initial.py | e380ec4d03864933db389b55985fb0695c720206 | [] | no_license | Sam-Macpherson/sublet-shark-api | 572264f18a828fd33594a660844757701b2ff304 | e5a11e07677af0582c6320212edbe0fdb4da436a | refs/heads/main | 2023-07-13T20:08:52.241134 | 2021-08-17T00:08:57 | 2021-08-17T00:08:57 | 317,647,215 | 1 | 0 | null | 2021-02-23T18:02:33 | 2020-12-01T19:32:42 | Python | UTF-8 | Python | false | false | 2,252 | py | # Generated by Django 3.1.3 on 2020-11-27 15:09
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Listing',
fiel... | [
"noreply@github.com"
] | Sam-Macpherson.noreply@github.com |
0bb1a10058afecd744ec2b28d9a2dbf6c63e20f9 | 53b595f955097148a5da5f669520789abcb3e107 | /banking.py | 2829e312b2d8efd1f8ab9c925e27b19a55f305e8 | [] | no_license | snitivan/Bank-account | 53dfab4b0a390aabbb31350a2897407646ca5921 | 333a300e4594a3a4d8b7c9cc8a0c7e17095c6761 | refs/heads/master | 2022-11-05T00:57:34.225390 | 2020-07-06T16:36:08 | 2020-07-06T16:36:08 | 277,595,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,264 | py | import sqlite3
import random
accounts = {}
account = ''
def create_an_account():
card_MII = '400000'
pin = str(random.randint(0, 9)) + str(random.randint(0, 9)) + str(random.randint(0, 9)) + str(random.randint(0, 9))
for i in range(9):
card_MII += str(random.randint(0, 9))
check_sum = str(luh... | [
"noreply@github.com"
] | snitivan.noreply@github.com |
7a85fbc6fc1643ab2e4946542643a104ce265ad6 | 8739db99c7481620790e3bc2269fa72da3daa305 | /branch/models.py | d3ce32d26c9c0abd7d64c9af47b470cea69f8d09 | [] | no_license | kamiwana/redbutton_server | ca57a6fa60187ec3a4ce68331c70c88de402e97f | 33135f0173a83cc7f41fa566c7cb9b91c2cf49b6 | refs/heads/master | 2022-12-16T06:01:50.417307 | 2020-09-14T16:52:26 | 2020-09-14T16:52:26 | 181,593,030 | 0 | 0 | null | 2022-12-07T23:53:33 | 2019-04-16T01:40:03 | Python | UTF-8 | Python | false | false | 1,106 | py | from django.db import models
# Create your models here.django_migrations
class Branch(models.Model):
branch_code = models.CharField(max_length=10,blank=False)
branch_name = models.CharField(max_length=20,blank=False)
branch_user = models.CharField(max_length=20, null=True, blank=True)
branch_address =... | [
"kamiwanan@gmail.com"
] | kamiwanan@gmail.com |
1c95fb2a9920644a3ae11fe96f3994b794ce7d9d | eff764f5f77ca85caff2f9801748583d26a80d76 | /loops/kind_of_fizz_buzz_but_it_is_numbers.py | d37b18e2adb975383947c310ff613ea38f6b4436 | [] | no_license | tomekregulski/python-practice | 3be401a7813219fbe3fc9afe9cfc77d20156021c | 442d95eae2648231c941640899d9ff40c819f1b7 | refs/heads/main | 2023-07-06T04:56:14.788300 | 2021-08-10T20:54:12 | 2021-08-10T20:54:12 | 394,456,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | for num in range (1, 21):
if num == 4 or num == 13:
print(f"{num} is unlucky")
elif num % 2 == 0:
print(f"{num} is even")
else:
print(f"{num} is odd") | [
"75456264+tomekregulski@users.noreply.github.com"
] | 75456264+tomekregulski@users.noreply.github.com |
503b94c2c787897176e342e8e2b5d4f9a4f63fc0 | 4898bf1929c6f25cd0c393debbf10cd9d85e8e02 | /dda_blog/admin.py | 174392da2b36a845d7ad59c8267734de147cb3aa | [
"Apache-2.0"
] | permissive | bogdan19adrian/b2b_festival | cb12c2137b5e4e30a6dfcf1bcf154b414bfd934e | 31700e5cebcd96a24b67889079492223c27e1a6f | refs/heads/master | 2020-06-04T21:28:05.733521 | 2020-03-31T19:02:08 | 2020-03-31T19:02:08 | 192,198,179 | 0 | 0 | Apache-2.0 | 2020-03-31T19:02:49 | 2019-06-16T14:05:30 | CSS | UTF-8 | Python | false | false | 391 | py | from django.contrib import admin
# Register your models here.
from dda_blog.models import Post, Category
class PostAdmin(admin.ModelAdmin):
list_display = ('title', 'slug', 'status', 'created_on')
list_filter = ("status",)
search_fields = ['title', 'content']
prepopulated_fields = {'slug': ('title',)... | [
"bogdan19adrian@gmail.com"
] | bogdan19adrian@gmail.com |
e8300499cac31bd2f59a82f05e00243f930a15e2 | 95777efa86b8a4800a9ddbdf38d4ffd1a3a3df0d | /4_create_assignment_test.py | f8eb5dd9c8d8865ac3d618d3646c9568ad6111d4 | [] | no_license | brennamcgrail/Exercise-7.1 | 67c682844db8e54d6b750bf0798471c1b43bf023 | 347ba0428e5118a2e40ded21cf38bd5edc5a5462 | refs/heads/main | 2023-01-01T17:37:36.348115 | 2020-10-14T01:46:57 | 2020-10-14T01:46:57 | 303,868,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | import pytest
import System
#Tests if the program can handle a wrong username
def test_create_assignment(grading_system):
username = 'calyam'
password = '#yeet'
grading_system.login(username,password)
grading_system.usr.create_assignment('newAssignment', '02/18/20', 'cloud_computing')
grading_... | [
"noreply@github.com"
] | brennamcgrail.noreply@github.com |
21ac64b86ac01f6127eaad12d421b0674bb34137 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit_QC2241.py | 87a2f56dc78c4e74a541488325ff64371e14e705 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,242 | py | # qubit number=4
# total number=34
import cirq
import qiskit
from qiskit import IBMQ
from qiskit.providers.ibmq import least_busy
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import FakeVigo
from ma... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
15f03cbe0d8bc9ba507d693b84f41925dab71fb5 | ab38e5600f5baefe542fe75c33c334683990930a | /train.py | da41afc6559627498bd8f17bc3e68850959cd76f | [] | no_license | maddigit/DeepSinger | 956c9ba8316bcbe95e57f7c4ec2c2c300e9cd7b0 | bb468ed4b669a2dc3c8eb56089d031def1677cc6 | refs/heads/main | 2023-08-23T13:59:24.584090 | 2021-09-23T09:07:12 | 2021-09-23T09:07:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,092 | py | import argparse
import pprint
import torch
import torch.nn as nn
import torch.optim as optim
import torch_optimizer as custom_optim
from torch.utils.data import DataLoader, random_split
import ignite.distributed as idist
import pandas as pd
from alignment.trainer import SingleTrainer,MaximumLikelihoodEstimationEngi... | [
"67096173+Ldoun@users.noreply.github.com"
] | 67096173+Ldoun@users.noreply.github.com |
c02d3e512f42eb9a168a9d3a790ac5dee9e6579e | 6df2615de7ed690fd900e3d31e34f0f3876f1e91 | /python/multithread.py | 4a95976c80ef1169ab0a93b8678e16d1c8a55753 | [] | no_license | renwotao/exercise | fae4a98800e5a490a3c1a006b4b93aaeeb8f784a | 417b01ac8f1815bb17dc8ad89bd908176483395f | refs/heads/master | 2020-05-21T13:47:30.146718 | 2016-11-16T02:41:20 | 2016-11-16T02:41:20 | 63,961,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,675 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
'''
multithreads
Python两种模块:_thread和threading
_thread是低级模块
threading是高级模块,对_thread进行了封装
'''
import time, threading
# 新线程执行的代码
def loop():
print('thread %s is running...' % threading.current_thread().name)
n = 0
while n < 5:
n = n + 1
print('thread %s >>>>... | [
"852443964@qq.com"
] | 852443964@qq.com |
0645492703ba86450f286c62b45bfe3b7cccccde | f62f02648bd86d16282209bfc2418bd220b5a20d | /filesystems/tests/common.py | 0f5ae7bda574f5867a72bfab27aa85e92d6f90f1 | [
"MIT"
] | permissive | Python3pkg/Filesystems | 5eaca86705288efedab804746530107bd0839438 | 724689713379fcf8059d4fdcaa51ab0035ff9792 | refs/heads/master | 2021-01-21T17:30:06.912092 | 2017-05-21T13:36:38 | 2017-05-21T13:36:38 | 91,959,754 | 0 | 0 | null | 2017-05-21T13:36:36 | 2017-05-21T13:36:36 | null | UTF-8 | Python | false | false | 29,176 | py | import errno
import os
from pyrsistent import s
from filesystems import Path, exceptions
from filesystems._path import RelativePath
class TestFS(object):
def test_open_file(self):
fs = self.FS()
tempdir = fs.temporary_directory()
self.addCleanup(fs.remove, tempdir)
with fs.open(... | [
"Julian@GrayVines.com"
] | Julian@GrayVines.com |
c528ef9e16b0893e000ac1b3027d055e2bf45e5e | 036eb141eb01079823f7d6796aef034ac4eea456 | /data.py | 43a98a41d033447e52a7452af5f51e4515448da3 | [] | no_license | 106071002/test | c0f4687698a8861adb988c28dd3b3ef2617e9203 | a3f35f55ba2eb6257bd8d0e44ee83baabe2a8677 | refs/heads/main | 2023-04-01T00:42:32.322128 | 2021-04-09T13:41:14 | 2021-04-09T13:41:14 | 355,942,377 | 0 | 0 | null | 2021-04-09T13:41:15 | 2021-04-08T14:35:35 | Python | UTF-8 | Python | false | false | 9,387 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Mar 27 10:24:01 2021
@author: Bear
"""
from abc import ABCMeta, abstractmethod
from event import MarketEvent
import os, os.path
import numpy as np
import pandas as pd
import time
import datetime
###data handler
class DataHandler(object):
"""
... | [
"noreply@github.com"
] | 106071002.noreply@github.com |
d6bbfa71ab64d7232673f42c79ea4342919a73a6 | ebde4a33826e09d27a3123ff746b9cc0ca834ff2 | /mob_tracker/migrations/0006_auto_20180607_2015.py | c63fda75ddaa14f2b35ec36c8453d0db0c566fb9 | [] | no_license | cippero/mob | 009af7eeea9b9a18ccefde1cb7b6d3eaebd495cb | 94fb49fbe2bc6e71b823b08503244da884a8513a | refs/heads/master | 2022-12-11T09:54:08.201582 | 2018-11-13T22:59:33 | 2018-11-13T22:59:33 | 136,075,300 | 0 | 0 | null | 2022-12-08T02:19:14 | 2018-06-04T19:51:38 | Python | UTF-8 | Python | false | false | 589 | py | # Generated by Django 2.0.3 on 2018-06-08 03:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mob_tracker', '0005_auto_20180607_1610'),
]
operations = [
migrations.AlterField(
model_name='entry',
name='descript... | [
"gilwein@gmail.com"
] | gilwein@gmail.com |
34c06de3d2b630b8d50143e483d55083cfa54e93 | f8732f8c438d620f99864f10962bee76c638f735 | /ESP/socket_ESP2ESP_STA.py | 518aaeabc9be3f29d475697ee7fa1d12265c77e4 | [] | no_license | clarkyehpccu/PythonWork | 4ce48e755d37a557b83dd4276ac02721f1a144ae | 2c6756c722e7007949423988c33c6e04713412d3 | refs/heads/master | 2021-06-25T12:48:06.470890 | 2021-03-12T06:37:01 | 2021-03-12T06:37:01 | 208,383,128 | 2 | 0 | null | 2021-03-11T08:54:13 | 2019-09-14T03:26:59 | Python | UTF-8 | Python | false | false | 740 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Nov 25 11:10:27 2020
@author: clark
"""
#COM4 STA
import network
import time
import socket
myap=network.WLAN(network.AP_IF)
myap.active(0) #關閉192.168.4.1
myap.ifconfig()
mysta=network.WLAN(network.STA_IF)
mysta.active(True)
mysta.connect('MicroPython-e47c74', 'micropyth... | [
"ybc3@ulive.pccu.edu.tw"
] | ybc3@ulive.pccu.edu.tw |
8f270738cff1f46acd30fe69371cc6974d469105 | 0a150a2170949dbb5968644e8f661a0476e3a30b | /alfanous-0.7.28/alfanous-0.7.28/Support/whoosh/reading.py | 6044db58418e884b2cbb9bcc9127769e86ba95e0 | [] | no_license | mubashir-dev/AlQuran_Recitation_Recognition | 5ecebfd55d645beefec5ca5b9a5735cf91a4f5a3 | ad6fffb6e499e89ebd0517069cd700671f636e61 | refs/heads/master | 2022-12-24T20:32:40.617376 | 2020-09-24T16:56:06 | 2020-09-24T16:56:06 | 298,332,743 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,867 | py | #===============================================================================
# Copyright 2007 Matt Chaput
#
# 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/li... | [
"57100481+SardarMubashirAli@users.noreply.github.com"
] | 57100481+SardarMubashirAli@users.noreply.github.com |
485b9e2a8ec17400df95a3e03fedeb9c48f90075 | f20e965e19b749e84281cb35baea6787f815f777 | /Phys/Phys/NeuroBayesTools/python/NeuroBayesTools/BhhNetTrigger.py | 81e881067a822883293382acc9528b09c0a2e04d | [] | no_license | marromlam/lhcb-software | f677abc9c6a27aa82a9b68c062eab587e6883906 | f3a80ecab090d9ec1b33e12b987d3d743884dc24 | refs/heads/master | 2020-12-23T15:26:01.606128 | 2016-04-08T15:48:59 | 2016-04-08T15:48:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92,234 | py | NetConfig = { '2010Tuning' : [ 101206.,
61012276., -1., 17., 16., 1., 0., 612., 0., 1., 4., 3., 100.,
0.00993321929, 100., 0., 5., 16., 3882., 4284., 31., 1647., 1847.,
2087., 2087., 2072., 2087., 2103., 0., 3610., -1., -1., -1., -1., -1.,
-1., -1., -1., -1., -1., -1., -1., -1., -1., -1.... | [
"jonesc@hep.phy.cam.ac.uk"
] | jonesc@hep.phy.cam.ac.uk |
afd206939e99742b1595a09be624787d0205feb3 | e25ff4345513f36352f069ab0c4f59fa306fb177 | /build/effort_controllers/catkin_generated/pkg.develspace.context.pc.py | 8473a000a08bf8d59e121bbcae2536fd5c281e69 | [] | no_license | gistleejongwon/drone_with_arm | db9b40faac17bf59d21803ec3480f45dfec2a395 | ad2abc0283362085379f112cbb66bf34a4a43419 | refs/heads/master | 2023-06-27T20:47:44.827312 | 2021-08-03T05:27:50 | 2021-08-03T05:27:50 | 387,333,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/jongwon/catkin_ws/src/ros_controllers/effort_controllers/include".split(';') if "/home/jongwon/catkin_ws/src/ros_controllers/effort_controllers/include" != "" else []
PROJECT_CATKIN_DEPENDS = "an... | [
"jongwonlee@gist.ac.kr"
] | jongwonlee@gist.ac.kr |
959e28340b4a983535bf120dad4048c148998f68 | c404eaef31d01f7e978e950335cb30660b441d2b | /egs/msra_ner/seq_label/v1/local/change_data_format.py | 9ba919290e064cf634e72a8815ba9d74c2cf2daa | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | luffywalf/delta | 14acf19cf0a089760b5d179d3b518a8b4c931557 | 7eb4e3be578a680737616efff6858d280595ff48 | refs/heads/master | 2020-07-31T09:01:00.415226 | 2019-10-10T05:07:20 | 2019-10-10T05:07:20 | 210,553,403 | 1 | 0 | Apache-2.0 | 2019-09-24T08:38:15 | 2019-09-24T08:38:12 | null | UTF-8 | Python | false | false | 2,582 | py | # Copyright (C) 2017 Beijing Didi Infinity Technology and Development Co.,Ltd.
# 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/LI... | [
"kunhan@didichuxing.com"
] | kunhan@didichuxing.com |
b12db8646c343951c304e5f35a240e9192f454b5 | ea96407c1d4b061e34715e5f398f2c386af97c93 | /serie8/ex3_2.py | 6dbb694670ee4ba498e2995854570ca1c84e7168 | [
"MIT"
] | permissive | roctubre/compmath | 03208c6d7daac3cfea6b00741cbb1b32f5045df2 | 06b287b2d24d6f033c60defb5a70d97e045644ad | refs/heads/master | 2021-02-19T03:03:24.753468 | 2020-05-24T09:23:02 | 2020-05-24T09:23:02 | 245,270,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | import numpy as np
def chessboard(n, display = True):
"""
Creates a chessboard-matrix with dimensions n times n
To account for uneven matrices, first a 2n times 2n matrix is created, then
only the upper left part of the matrix (n times n) is sliced out
"""
even_row = np.array([1,0]*n)
un... | [
"robertryan.chavez@hotmail.com"
] | robertryan.chavez@hotmail.com |
b74e9d05063075be9b5d6c47915ac631e30587a5 | f83a3b6767544c17274784b51f33993e3faece89 | /backend/api/urls.py | 417bfb2585a17fea4389cc46c814591eeb18c2e1 | [] | no_license | KaizakiRyu/cmpt-470-final-project-Price-Monitor-App | b43bd2b840b1a2510347c1f24fc9bbbd08f62a21 | f41166801b856d89c5df5a4521ac4f14822df080 | refs/heads/master | 2023-08-09T06:03:37.044215 | 2023-07-26T20:08:57 | 2023-07-26T20:08:57 | 336,707,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | # from django.urls import path
# from .views import (
# registration_view
# )
# from rest_framework.authtoken import views
# app_name = "api"
# urlpatterns = [
# path('register', registration_view, name='register'),
# path('api-token-auth/', views.obtain_auth_token)
# ] | [
"leom@sfu.ca"
] | leom@sfu.ca |
b792549d1af24b7d31eb830bf6dd9db1c6a022ab | 99f8ff7cf3aea28e69f91543548a33688a7c4eee | /interpreter/atom_table.py | 0ba23eaa95fe138303629e7f3edee5f20beee52e | [] | no_license | tzwenn/pyrlang | 4d5ff6649c00ad6fcca4cc4f92d24a914fc286bb | ec3543f543c08446c4bb358f2b1bcd0cff64e582 | refs/heads/master | 2020-03-23T20:09:51.091174 | 2018-07-23T14:05:47 | 2018-07-23T14:23:12 | 142,025,380 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,090 | py | from pyrlang.interpreter.datatypes.atom import W_AtomObject, W_BoolAtomObject
class Atom_Table:
def __init__(self):
self._str_table = ['nil']
self._obj_table = [W_AtomObject(0)]
self.TRUE_ATOM = self.get_obj_at(self.register_str('true', True))
self.FALSE_ATOM = self.get_obj_at(self.register_str('false', True)... | [
"hrc706@gmail.com"
] | hrc706@gmail.com |
0780dbdfb71c10da0e058dedd0808ea3025e309b | 262ff29e5d1c9e8754cf615d661131bd5a65664d | /hw5.py | f7c81e3a71467a685ee85a8ef79ae84828c25e58 | [] | no_license | wenbin-lin/Systems_Engineering | 1daf36981afe0a07bc05260770445b245cd86e7e | 8e91d2f7d09fb88d418234f94041c2f6dddf34f8 | refs/heads/master | 2022-05-19T03:03:25.989088 | 2019-07-17T15:50:35 | 2019-07-17T15:50:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,545 | py | import numpy as np
import math
import scipy.io as scio
import scipy.stats as stats
data_path = './counties.mat'
def load_data(path):
data_file = scio.loadmat(path)
data = data_file['data']
X = data[:, :-1]
y = data[:, -1]
return X, y
def pca_compress(data, rerr):
X_bar = np.mean(data, axis=0)... | [
"723172572@qq.com"
] | 723172572@qq.com |
f304291f2301789b4cb05de6a24fca2ba9c637e9 | d2a2f0c43beab087945198749d0be7cd02c9d5e8 | /articles/admin.py | ce70d85d87950d39bedce7a8674ec3078810590e | [] | no_license | beczkowb/blog | 18b339777ec139a26adee18dc4153f2c1cf6e0b4 | 9b5944a5fbd294345ae9c7c2a94b1801d03e5c5c | refs/heads/master | 2021-03-19T13:05:50.989536 | 2015-02-19T19:18:10 | 2015-02-19T19:18:10 | 30,605,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 631 | py | from django.contrib import admin
from django import forms
from pagedown.widgets import AdminPagedownWidget
from .models import Article, Tag, Category, BlogName, Owner, Greeting
class ArticleForm(forms.ModelForm):
class Meta:
model = Article
fields = ['title', 'preface', 'content', 'category', 'tag... | [
"beczkowb@gmail.com"
] | beczkowb@gmail.com |
57d416c221a528cdf691d2f632ed2671f3ba4e76 | bc33abf80f11c4df023d6b1f0882bff1e30617cf | /Python/socket/user_2.py | fc00e17b5a9301706593cf13f7e6242b712fabfc | [] | no_license | pkuzhd/ALL | 0fad250c710b4804dfd6f701d8f45381ee1a5d11 | c18525decdfa70346ec32ca2f47683951f4c39e0 | refs/heads/master | 2022-07-11T18:20:26.435897 | 2019-11-20T13:25:24 | 2019-11-20T13:25:24 | 119,031,607 | 0 | 0 | null | 2022-06-21T21:10:42 | 2018-01-26T09:19:23 | C++ | UTF-8 | Python | false | false | 795 | py | import socket, threading
import time
def tcplink(sock, addr):
print('Accept new connection from %s:%s...' % addr)
sock.send(b'Welcome!')
while True:
data = sock.recv(1024)
time.sleep(1)
if not data or data.decode('utf-8') == 'exit':
break
sock.send(('Hello, %s!' ... | [
"pkuzhd@pku.edu.cn"
] | pkuzhd@pku.edu.cn |
2e77868a2c5f19118ab7c98d9b3fd9aa03722787 | 83658462e9e6fac166a3bc52e41080c6e550846d | /Site/role/views.py | d736ffa13534d830e5f6811026b991db30de2c98 | [] | no_license | yanchengxin2018/history | ea8937a9acfeb91339bf8a00ba84d7b7fb98d24b | 53eab1d97250f42feea0b9b7facd1279696cb1bf | refs/heads/master | 2020-05-19T16:19:44.406734 | 2019-05-06T01:39:49 | 2019-05-06T01:39:49 | 185,104,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,634 | py | from django.shortcuts import render
from rest_framework.viewsets import GenericViewSet as G,mixins as M
from Questionnaire.models import SchoolMaster as SchoolSchoolMasterModle
from role.serializers import SchoolSchoolHeadSerializer
from django.conf import settings
from django.db.models import Q
#创造一个校长
class CreateS... | [
"631826964@qq.com"
] | 631826964@qq.com |
aa07ccf730b9e38669c19f247d6997777381104a | 5b8dff132570a110b16762422cac45a108439f05 | /geoportal/c2cgeoportal_geoportal/lib/cacheversion.py | 288ea78eed8288f4adb84436d49325daafa09762 | [
"BSD-2-Clause-Views"
] | permissive | pfirpfel/c2cgeoportal | 84dcbe0b8cd8f91321a4e313e3bedce12a0790ec | b54ff4a3f59c88f97627040154b44e1e984b76a9 | refs/heads/master | 2021-09-13T00:53:21.067994 | 2017-10-18T07:29:58 | 2017-10-18T07:29:58 | 107,403,270 | 0 | 0 | null | 2017-10-18T12:10:07 | 2017-10-18T12:10:07 | null | UTF-8 | Python | false | false | 3,003 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2011-2017, Camptocamp SA
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source code must retain the above copyright notice, this
#... | [
"stephane.brunner@camptocamp.com"
] | stephane.brunner@camptocamp.com |
eb93ce2bbc86ab342cc62c77e0afa41e5f68e5ef | 01b80cab4c0e97a759d3d77bf311b40ce91698ce | /mlp.py | 24b0017d148b63edbf2b4a0fff73e68e4695f0b4 | [] | no_license | Saltfarmer/Pembelajaran-Mesin | 0156c5e676aa8ae84992a970d9d802b923ff9023 | 89168d2926be2c0ddfd799e383b553989b1be177 | refs/heads/master | 2020-04-07T08:58:10.370331 | 2018-09-13T05:52:00 | 2018-09-13T05:52:00 | 124,198,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,490 | py | import math
import random
import copy
import matplotlib.pyplot as plt
def __convertDataStructure__(attr) :
try :
attr = float(attr)
except :
if attr == 'Iris-setosa' :
attr = 0
elif attr == 'Iris-versicolor' :
attr = 0.5
else :
attr = 1
f... | [
"noreply@github.com"
] | Saltfarmer.noreply@github.com |
c03586a750a4165937b31e9458ec1b99be6e1039 | 5c6fc477af787def5379c1c67b2296f32f2a519e | /regular/trieHelper.py | 322de07d14d9cf36c21fa8918076a39032b7dca1 | [] | no_license | vogelb2/multiMutant | 8956651c8ed67757cd8a453a88e19e63b0197566 | bd435d5276a5fd60616e6c5c73c5e71277a7b868 | refs/heads/master | 2022-10-27T01:56:57.241457 | 2020-06-05T20:29:37 | 2020-06-05T20:29:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,446 | py | #Trie Helper, this file was created by William Tian on May 22nd, 2020.
#doubleMutation.py is dependent on this, unless the code for redundant sequence checking is all commented out.
#A basic and bare Trie for the purpose of doubleMutation.py.
#Be advised when inserting into the trie. Wrong input will give unexpected re... | [
"tianw@wwu.edu"
] | tianw@wwu.edu |
5786c30e275052644684034550f5af5890b13917 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03573/s591062548.py | 72050d80dfe7c931589196c68ab1643d549b86ee | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 81 | py | a, b, c = map(int, input().split())
print(c if a == b else (a if b == c else b))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
cac1d63c50a395c73ace10977020982d55f60021 | 75349dcec19d19314583797c113cb9c4b48dedc8 | /2020/day-1/day1.py | 0bdb8afa7d345874f4bc08c0bfdfdb6421318086 | [
"Unlicense"
] | permissive | smolsbs/aoc | 9b153462762b9c7c029ebc7a01efefb045b331d2 | ceaf3384190c6b63fae862076b7aff0ecec1d0f1 | refs/heads/master | 2023-05-24T06:43:07.443754 | 2023-05-23T21:43:45 | 2023-05-23T21:43:45 | 181,240,823 | 2 | 1 | Unlicense | 2023-05-23T21:43:46 | 2019-04-13T23:57:46 | Python | UTF-8 | Python | false | false | 549 | py | #!/usr/bin/env python3
def main():
with open('input', 'r') as fp:
data = {int(x) for x in fp.readlines()}
# O(n)
for i in data:
# subtract i from 2020 and see if it's in data
v = 2020 - i
if v in data:
print("part 1: {}".format(v*i))
break
... | [
"smol.sarabs@gmail.com"
] | smol.sarabs@gmail.com |
1cc15e0e99f4ad8369db7da77a8b56ca7b6bb9f8 | 0b9622c6d67ddcb252a7a4dd9b38d493dfc9a25f | /APLpy/APLpy-0.9.8/tests/test_init_image.py | 428ec441635d54e5fa8cba7ccad6080164ce344d | [
"MIT"
] | permissive | d80b2t/python | eff2b19a69b55d73c4734fb9bc115be1d2193e2d | 73603b90996221e0bcd239f9b9f0458b99c6dc44 | refs/heads/master | 2020-05-21T20:43:54.501991 | 2017-12-24T12:55:59 | 2017-12-24T12:55:59 | 61,330,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,718 | py | import os
import matplotlib
matplotlib.use('Agg')
from aplpy import FITSFigure
import pytest
import numpy as np
import pyfits
from helpers import generate_file, generate_hdu, generate_wcs
# The tests in this file check that the initialization and basic plotting do
# not crash for FITS files with 2 dimensions. No re... | [
"npross@lbl.gov"
] | npross@lbl.gov |
774e207de9d8003cfcff2498c78b6a6273c20274 | 6124906be6ce1f7fa6b9eeac78540ca1499970d7 | /LHP_Dashboard/wsgi.py | 91079f02d6b3bab152b453eda680e71dc0dff953 | [] | no_license | nmenescardi/LHP_Dashboard | bf566c0eadd37b638c0f5490a2da0c7bf1f6ebde | f04b3e937d829dfd0ef791866d91d4224638de9a | refs/heads/main | 2023-04-22T03:31:39.430385 | 2021-05-17T13:53:56 | 2021-05-17T13:53:56 | 362,476,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | """
WSGI config for LHP_Dashboard 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/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO... | [
"nicolasmenescardi@hotmail.com"
] | nicolasmenescardi@hotmail.com |
cecb81a555decf3c52e8b6b12c8480db176691fe | fe9ca2362816bf488cc77b3430a4da72527e281b | /inventory/wsgi.py | 6eeddce413b5a00b57928a4f4b3277d1924d6200 | [] | no_license | vainotuisk/inventor | e86575f094cb813565813a27700b884ef407ce2d | d235f076059d8c355192c551f2858f420176f340 | refs/heads/master | 2016-09-03T02:34:05.639211 | 2015-06-22T19:10:48 | 2015-06-22T19:10:48 | 37,758,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
WSGI config for inventory project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "inventory.settings")
from django.co... | [
"vainotuisk@gmail.com"
] | vainotuisk@gmail.com |
e0ccf8b1f3bc94061622322cd516e3d7badd7950 | ab8264fa9e45bb363fde400ee8d22b4859be6c77 | /devel/lib/python2.7/dist-packages/cvg_sim_msgs/msg/_PositionXYCommand.py | cf32ae78bc2c28b64a54ef074c7f8fdfdbc4aac0 | [] | no_license | aslab/mrt | 77f594f16e380a8c4d99fb70ab777b8f5bc04892 | 7f87e0c7f9b37a7137f914121c171077fa693442 | refs/heads/master | 2020-11-24T05:52:23.645894 | 2019-12-14T09:07:59 | 2019-12-14T09:07:59 | 227,994,160 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,169 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from cvg_sim_msgs/PositionXYCommand.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import std_msgs.msg
class PositionXYCommand(genpy.Message):
_md5sum = "7b4d52af2aa98... | [
"ricardo.sanz@upm.es"
] | ricardo.sanz@upm.es |
0a19bb4e898b86c7f3c1a0980f6693385f8b791a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03156/s347695758.py | 66bfe5e4e4dc1000936c750336bc658ef2eb1af6 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | n=int(input())
a,b=map(int,input().split())
p=list(map(int,input().split()))
ca=0
cb=0
cc=0
for i in range(n):
if p[i]<=a:
ca+=1
elif a<p[i] and p[i]<=b:
cb+=1
else:
cc+=1
print(min(ca,cb,cc)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.