blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8ebdc8c399c3314d07ef4f9d336e6b789a4c8253 | f361203e23f31bae945693f0f2e3e6ba3384504c | /buckswagtail/settings/production.py | f7f7466375f45aaf24736f375a4f9ae1b2c76789 | [] | no_license | wearefuturegov/bucks-wagtail | 2a6c756eee7209ed1f2a4fe1a1dc58e85334192f | 0d2bac54a6f463a0cc2490fd6c632d9525ef8d07 | refs/heads/master | 2020-05-24T18:05:51.310942 | 2019-06-07T15:43:32 | 2019-06-07T15:43:32 | 187,401,136 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,365 | py | from __future__ import absolute_import, unicode_literals
from .base import *
import os
env = os.environ.copy()
SECRET_KEY = env['SECRET_KEY']
DEBUG = False
try:
from .local import *
except ImportError:
pass
# Parse database configuration from $DATABASE_URL
import dj_database_url
DATABASES['default'] = ... | [
"jayehackett@FutureGovs-MacBook-Pro.local"
] | jayehackett@FutureGovs-MacBook-Pro.local |
3c0ecf9821207af1edc05f87c1d8183a22298461 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03597/s115505711.py | 8d17bc3edb536d7cdb0c0d3fde8bd26535f38a0f | [] | 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 | 82 | py | def abc():
n = int(input())
a = int(input())
print(n * n - a)
abc()
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
3e0b200c3120922ee73410a6c08c948ef5b63d58 | b392c222a860fe295f03ecb994daaa2291002c4d | /visualization/hidden_state_umap.py | fa7570b2d1bfcab1ae57ead3af593fa13ff5472c | [] | no_license | Pawel-M/Machine-Learning-and-Reasoning | 1174982ed70035970feb8ddcb409c58251a7f462 | de60c568ca2c922c78fb0fdde207cddcbee2f4a7 | refs/heads/main | 2023-06-08T14:15:04.582766 | 2021-06-30T13:24:57 | 2021-06-30T13:24:57 | 337,188,152 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,519 | py | import os
import pickle
import matplotlib.pyplot as plt
import numpy as np
import tensorflow.keras as kr
import umap
import models.common
from dataset.common import get_dataset
from dataset.encoding import decode_sentence, create_decoding_dictionaries
def get_correct_hidden_states(dataset, model):
start_index =... | [
"pawel.maka@gmail.com"
] | pawel.maka@gmail.com |
ff5450227db3f1307cadbf36c12011c9b5b57d8f | 4ee0a153436f4dce3131dc058c5aedb586184e28 | /patients/migrations/0001_initial.py | 7f3a5ff0ec5b367edc19623835b1cb992c5c47b4 | [] | no_license | wesolyigor/idoctor_django | 8b2dd981d724e19c0a941d60faa3f8c3e533eb25 | 305868ce589350708f931ac82a85ec2e262519f4 | refs/heads/master | 2023-01-01T12:12:47.486750 | 2020-10-27T22:05:23 | 2020-10-27T22:05:23 | 297,463,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,252 | py | # Generated by Django 3.1.1 on 2020-10-12 20:55
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Patient',
fields=[
... | [
"wesolowski.igor@gmail.com"
] | wesolowski.igor@gmail.com |
4d181746e0cf13cb0495557b0b263b41f377634d | 97e6f72a887bef00c6aed08e90f7889b1034a3f6 | /ShakespeareRNN/test.py | 002f8a131dac67e6c9883900cf65a7785c4a2a41 | [] | no_license | christiansgao/shakespeare-generator | 4c0ebb0157bb51d286a3fea055289ef97bac8622 | 73f77d2ff491af2516497d6461f6bb580b6f98a8 | refs/heads/master | 2021-08-31T08:25:51.149031 | 2017-12-20T19:44:37 | 2017-12-20T19:44:37 | 111,985,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | import rnn
import numpy as np
#Check if gradients ARE correct
grad_check_vocab_size = 100
np.random.seed(10)
model = rnn.RNNNumpy(grad_check_vocab_size, 10, bptt_truncate=1000)
model.gradient_check([0,1,2,3], [1,2,3,4])
| [
"christiansgao@gmail.com"
] | christiansgao@gmail.com |
aa70b96a547c6ef2e92e6ab0a339e3261a5f4690 | 0ccaae21f537324bdfff414ecf5821a3de405283 | /Scraping_website/spyne2.py | d30748559367b607800ee459c37c910fccb7f7f1 | [] | no_license | imshubham27/Python | 4f70dff942daa84d9d69f3f447fd9b24354606cc | de68f038bfa1351af7eb79907cd32212242a526a | refs/heads/master | 2021-06-09T18:16:27.706772 | 2021-05-19T11:50:40 | 2021-05-19T11:50:40 | 180,287,339 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,514 | py | from selenium import webdriver
import numpy as np
import time
from bs4 import BeautifulSoup
import requests
import re
import pandas as pd
import urllib.request
import os
from selenium.webdriver.common.action_chains import ActionChains
l = []
wd = webdriver.Edge(r'C:\msedgedriver')
Initial_page = 1
last_page = 2 # CH... | [
"shubhsharma.2708@gmail.com"
] | shubhsharma.2708@gmail.com |
c44140222c05a9b825904f441b924d962b5be263 | c54831263d621564e492df196b16d036240accc9 | /models/user.py | 825fb7dcc537e82d9a838630f8b411ec0cca021d | [] | no_license | kkloh/stores-rest-api | 237504294709263743fdd6e81c1025f15faf5052 | a1cbcd24332df5a60fd4fbf8e17c32921c35f2be | refs/heads/master | 2023-08-28T04:06:36.036785 | 2021-11-06T05:32:14 | 2021-11-06T05:32:14 | 424,985,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 637 | py | import sqlite3
from db import db
class UserModel(db.Model):
__tablename__ = "users"
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String(80))
password = db.Column(db.String(80))
def __init__(self, username, password):
self.username = username
self.password = ... | [
"kokkuen_loh@hotmail.com"
] | kokkuen_loh@hotmail.com |
497f9f36ae374066a340e587eb1e466ff94659cc | 50a26aa7514acd0847ce9e4660119374bb3a976c | /7.0_Take_Home_Test.py | 14869a250e637929ce627995d74bfca7544fe2c3 | [] | no_license | Hibago/Ch.07_Graphics | 909418331c80f14b8ac9d3343dcab2b8a0a498a6 | 28a34f5240ac88dd2582196b65825241ceb6df00 | refs/heads/master | 2020-05-14T08:25:48.924471 | 2019-03-05T18:33:39 | 2019-03-05T18:33:39 | 181,722,948 | 0 | 0 | null | 2019-05-19T17:43:39 | 2019-04-16T16:02:59 | Python | UTF-8 | Python | false | false | 501 | py | '''
HONOR CODE: I solemnly promise that while taking this test I will only use PyCharm or the Internet,
but I will definitely not ask another person except the instructor. Signed: ______________________
Recreate, exactly the Test Picture from the website. The arcade colors used in this picture in no particular order a... | [
"noreply@github.com"
] | noreply@github.com |
9f0f99dc7cae761f53d19261f38f88656eba3ce5 | 8e6c1d9efec4a5432cd1ea9ca8d31e42864b6410 | /covidtrackerapp/wsgi.py | 69a5e7b0f3ed29208e1b6c5c6bc142b142c904c3 | [] | no_license | MayankSingh-coder/covidtrackerapp | 4e1c1e5f88ef3d758850c9740bcc18eaad758989 | be0db9c353f8224c4901e4c46a1ebf384b9ffe93 | refs/heads/master | 2023-06-25T09:56:46.493124 | 2021-07-20T06:07:16 | 2021-07-20T06:07:16 | 387,572,733 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | """
WSGI config for covidtrackerapp 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('DJAN... | [
"amanjh05@gmail.com"
] | amanjh05@gmail.com |
0b9f0c6a5191efbdccbdafb1b015451146020a38 | 9cbd523cdedc727f62c887612e8ae2c25c909964 | /tests/lib/steps/check_TID_027.py | 83b46b0a4fa54c98997731f5cfb1487b519482f6 | [] | no_license | louiscklaw/QA_test_scripts | 8a71d0bed99fae3b0dac4cd9414b3e34dcf5beed | 58b73594332053272d8dce2c812c93297259c782 | refs/heads/master | 2023-01-27T15:48:29.477848 | 2020-12-06T10:05:19 | 2020-12-06T10:05:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | import random
from pprint import pprint
from config import *
from time import sleep
from assert_check_point import assertCheckPoint
import restaurant_manage.password
def run_check(json_metadata, browser, password_to_bruce):
TEST_ERR_MSG='test failed at TID_027'
assertCheckPoint(browser, 'TID_027_1', TEST_ERR_MS... | [
"louiscklaw@gmail.com"
] | louiscklaw@gmail.com |
70f2998f935711c1af642c4d9702b503cc205d98 | 4c8807d190e4f69761db5721192a5209db2dcc5a | /muxuedjango/Lib/site-packages/crispy_forms_registration/forms/crispy_authentication_form.py | 1408419ecab810aae7d39535734b412a0cba908c | [] | no_license | dahua0316/Python-django | d2a98f6bb0f6cc21f41fe43446ee05a1a8f4df11 | 1d1c08b4ceb73149f4b16149b2b0f8b8e81be0ac | refs/heads/master | 2022-11-15T05:18:27.497903 | 2020-06-27T09:38:51 | 2020-06-27T09:38:51 | 275,335,673 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,085 | py | # coding=utf-8
from crispy_forms.bootstrap import FormActions
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Submit, Layout, HTML
from django.contrib.auth.forms import AuthenticationForm
class CrispyAuthenticationForm(AuthenticationForm):
def __init__(self, *args, **kwargs):
su... | [
"2359209344@qq.com"
] | 2359209344@qq.com |
28bb60628e1b528e0e0a71f9b4941125c2819eee | f4afe1469f27be40d33daba94a49bee979e43e48 | /venv/Scripts/f2py.py | 44989712c4f3d1062ed66e40fdcebf1a26ba6fe4 | [] | no_license | isonlaxman/insta-bots | 10ab1272bef72a168438c270a3a76294425d6980 | 72b6727d1b34508b7768836650f5466156a35007 | refs/heads/master | 2022-11-17T17:28:43.353604 | 2018-07-01T10:44:18 | 2018-07-01T10:44:18 | 139,320,395 | 1 | 1 | null | 2022-11-15T06:53:01 | 2018-07-01T10:39:53 | Python | UTF-8 | Python | false | false | 810 | py | #!C:\Users\Laxman\PycharmProjects\InstagramBot\venv\Scripts\python.exe
# See http://cens.ioc.ee/projects/f2py2e/
from __future__ import division, print_function
import os
import sys
for mode in ["g3-numpy", "2e-numeric", "2e-numarray", "2e-numpy"]:
try:
i = sys.argv.index("--" + mode)
del sys.argv[... | [
"32971829+isonlaxman@users.noreply.github.com"
] | 32971829+isonlaxman@users.noreply.github.com |
cfda0d44cbfb2973b3fc0e5827921909f01398da | cfb195b7a6490bd99299254a676ef66ccc34346a | /fbchat/sendmsg.py | d2b52930fd9dfd780688ab1f0646f4bb9f8ef354 | [] | no_license | box-of-voodoo/python_old | 40f3a47adebefc6f519e67ef16d0228519bd8258 | bd2ca0c5450c7f7381947cc77c6338e2f493a04a | refs/heads/master | 2023-07-04T01:37:40.531867 | 2021-08-22T16:17:41 | 2021-08-22T16:17:41 | 398,845,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 988 | py | from fbchat import Client
from fbchat.models import *
from time import sleep
##login = "boxofvoodoo@gmail.com"
##password = 'abcde123'
login = 'minarik53@seznam.cz'
password = 'jachodimnagympl53'
client = Client(login,password)
print('Own id: {}'.format(client.uid))
sleep(0.5)
##users = client.searchForUsers('*... | [
"xminar33@stud.feec.vutbr.cz"
] | xminar33@stud.feec.vutbr.cz |
42664f18fcd96b67066b8297dcad30c5c212f130 | 81a6b4c989c7ba884c7a849add08310e954c691d | /PFE/document/migrations/0002_auto_20200608_0323.py | c0d3e299df265245286bdfe17c97481bc55a1468 | [] | no_license | OmarFala/Workspace-Django | 6a86547d029222e1bd4a8abafe583164187044e2 | 2142f5ab9eca11e0954bf232b9bcb1943d7ff9c4 | refs/heads/master | 2023-07-29T13:40:36.091767 | 2020-06-08T09:13:49 | 2020-06-08T09:13:49 | 254,219,407 | 0 | 0 | null | 2021-09-22T19:14:10 | 2020-04-08T22:59:30 | JavaScript | UTF-8 | Python | false | false | 844 | py | # Generated by Django 3.0.6 on 2020-06-08 02:23
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('document', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='document',
name='creat... | [
"omarfala08@gmail.com"
] | omarfala08@gmail.com |
c3cee41aecbb52df88390a4cf3aea9ad38518372 | 8bd656be40e01cd6e0cc2cda98d704702f27b82b | /labelme2COCOarea_final.py | 2f6a7fa24b259c06729e15b66240be57d6db8e17 | [] | no_license | liuliu408/Deep_Learning | 024d8ff0d83eed182a86d8e040ca648dd703e515 | f4559b1f600cffc47a30c85fbe0a7ca43c912952 | refs/heads/master | 2020-03-23T19:29:45.508182 | 2019-12-02T06:07:04 | 2019-12-02T06:07:04 | 141,982,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,578 | py | # -*- coding:utf-8 -*-
# !/usr/bin/env python
import argparse
import json
import matplotlib.pyplot as plt
import skimage.io as io
import cv2
from labelme import utils
import numpy as np
import glob
import PIL.Image
from shapely.geometry import Polygon#https://shapely.readthedocs.io/en/latest/manual.html#geometric-obje... | [
"noreply@github.com"
] | noreply@github.com |
78219423e694b1d3f694a9cbcff68e63dfeac314 | 69037a2cd225c417eb5b7a58cf45d067f25ede0c | /Zylab6.17Password.py | c07949baa847a21d2b97ffbf30beeb0427fc275b | [] | no_license | ShresthaSrijana13/Homework2 | 3c5aa196b3ca8a907cabc0caea79c4cc836f82b5 | d214ea7b016f5ace6bc0c6ab302b88b377faac62 | refs/heads/main | 2023-03-20T01:45:31.052829 | 2021-03-04T18:05:22 | 2021-03-04T18:05:22 | 344,076,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | # Srijana Shrestha
# 1918305
word = input()
for x in word:
word = word.replace('i', '1')
word = word.replace('m', 'M')
word = word.replace('a', '@')
word = word.replace('s', '$')
word = word.replace('o', '.')
print(word+'q*s')
| [
"sshres22@cougar.uh.edu"
] | sshres22@cougar.uh.edu |
1669cfef2e14199500ad653dfbc1fca53912646c | 3e76f106e145d0c145233c3dae5083d40bb20705 | /cryptopals-py/set4/MYSHA1.py | 26e111fcfb0f72593ff2f6f02d918f32d54e1280 | [] | no_license | aasparks/cryptopals-py-rkt | b7d0acd5a9f4790e9b310c505407e52bccf7b367 | 5119b857927d604a6e0ab074e5f000f3f2ac4ee1 | refs/heads/master | 2022-04-30T12:22:14.546094 | 2022-03-25T01:35:45 | 2022-03-25T01:35:45 | 106,590,838 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,770 | py | """
**SHA1**
For challenge 28, I decided to implement SHA-1 myself, rather than use
someone else's implementation.
"""
import os, sys, unittest, struct, time, math
sys.path.insert(0, '../set1')
import c1
# DEBUG
DEBUG = False
# rotl
## Circular left rotate function from FIPS 180-4
def rotl(x ,n):
"""
Perform... | [
"aasparks93@gmail.com"
] | aasparks93@gmail.com |
434c848a8e90e07af9f180d82f1861905f0b62a7 | 8154eca670c979874d99ce9dc07d2051e428c256 | /test/functional/wallet_import_with_label.py | fa28eb559809d95d4d9bef3ee65382f170d1bc1c | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | pocketnetteam/pocketnet.core | f7e9a7f1589fb71de39214013475abe6e6a68fd2 | 1bdbbc306285be11f11998827ef26b16d47d7643 | refs/heads/0.21 | 2023-08-31T03:22:50.870853 | 2023-06-13T09:28:13 | 2023-06-13T09:28:13 | 172,682,555 | 111 | 32 | Apache-2.0 | 2023-09-11T04:11:07 | 2019-02-26T09:43:47 | C++ | UTF-8 | Python | false | false | 4,737 | py | #!/usr/bin/env python3
# Copyright (c) 2018-2020 The Pocketcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the behavior of RPC importprivkey on set and unset labels of
addresses.
It tests different cas... | [
"andrew300399@gmail.com"
] | andrew300399@gmail.com |
4a68d1c73a3c3a5b888b69f74db6ff79072b2cf3 | 5482ccbab8dec44e0912a8216486843d0b75377a | /code/skeleton1/manage.py | 11d1cce2fff12ee14046be62b7d3a448b496fbc4 | [] | no_license | mass10/django.note | 099890ec0688f0608846df0b7b4da35bd381ca2f | 0b0d45a4720ffdb8ba56b8946496e9576dacc748 | refs/heads/master | 2021-06-13T23:40:26.527040 | 2021-05-07T17:15:39 | 2021-05-07T17:15:39 | 22,087,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "skeleton1.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"irisawa.masaru@gmail.com"
] | irisawa.masaru@gmail.com |
6439b6ad1e5a0243c6fb9878916f6b67538306a7 | c1a9a118ee1f9f7ab7415aed7bb42dee9b277b50 | /programming/rendering/main.py | 7120f994b857b704b7f1d35de83bd281f2f285bb | [] | no_license | machendos/Study | 88160371e7c4b88de4f9dee07d5f92e044b9455f | c8fc8e9a456ec725681d012b4959f9c53df74b08 | refs/heads/master | 2021-07-14T00:25:14.901355 | 2019-02-26T08:50:19 | 2019-02-26T08:50:19 | 134,138,219 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,042 | py | from collections import namedtuple
from PIL import Image
import numpy as np
import math
fd = open("cow.obj")
vertex = []
triangles = []
for line in fd:
if line[0] == 'v' and line[1] == ' ':
vertex.append(list(map(lambda x: float(x), line[2::].split(' '))))
if line[0] == 'f':
triangles.append(list(map(lambda... | [
"nicitamac@gmail.com"
] | nicitamac@gmail.com |
489e0cdbe1f19244018317abf465a237a5153e60 | 8d0e9fdece739ad99171f34e20430eaa5d4f284d | /day06/06_agglo_demo.py | 5f53e67f3f457b2bbdabef28f6c94710665ff82f | [] | no_license | yang-90/AID2009 | 38c5c1e2da3e392f5920a8bf7fd5074214428e12 | c8acb75f4359af2bd30ef8cdbf3b04244c11081d | refs/heads/main | 2023-03-26T10:36:33.872107 | 2021-03-25T14:16:18 | 2021-03-25T14:16:18 | 351,128,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 979 | py | # 凝聚层次聚类示例
import numpy as np
import sklearn.cluster as sc
import matplotlib.pyplot as mp
import sklearn.metrics as sm
x = []
with open("../data/multiple3.txt", "r") as f:
for line in f.readlines():
line = line.replace("\n", "")
data = [float(substr) for substr in line.split(",")]
x.append(... | [
"yang_b163@163.com"
] | yang_b163@163.com |
d1555a9ef331f817f4bbfe8a9bcf0c536115a4b8 | 43897e247f9833236e66c97ccd24920e3fe92c1d | /populate_rango.py | 61da213681a740673eb73a33fb172a3fafb0b724 | [] | no_license | Ming0406/2425116L_MSc2020IT | 4b3fa6930b7921d92ad1862c8a507ee957199ec6 | 0abb9b766adbba1f749c3ae7dc5e6dc28311ad9d | refs/heads/master | 2021-01-06T05:17:00.783705 | 2020-02-20T10:48:05 | 2020-02-20T10:48:05 | 241,220,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,198 | py | import os
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'tango_with_django_project.settings')
import django
django.setup()
from rango.models import Category, Page
def populate():
python_pages = [
{'title': 'Official Python Tutorial',
'url': 'http://docs.python.org/3/tutorial/',
'views... | [
"Backwite@hotmail.com"
] | Backwite@hotmail.com |
d68475d087c681885a302ce09839ee0363db00a4 | 0122d6ff2fdab185480ca06ba37e743c8e899e26 | /test/test_api_list_gateway_response.py | b41732009e203a02e3f75b9f21c2ae4ff86e5112 | [] | no_license | jcu-eresearch/pyLorawanServer | c0564a4946627f71b1cdba114fe24c0475059f59 | 277b99736194b1f1ae47526c1deaee3f7f88c299 | refs/heads/master | 2020-04-03T14:38:03.334371 | 2018-10-30T05:29:27 | 2018-10-30T05:29:27 | 155,328,867 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,090 | py | # coding: utf-8
"""
LoRa App Server REST API
For more information about the usage of the LoRa App Server (REST) API, see [https://docs.loraserver.io/lora-app-server/api/](https://docs.loraserver.io/lora-app-server/api/). # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.co... | [
"nigel.blair@gmail.com"
] | nigel.blair@gmail.com |
c619a7f82494a9e423e47badaa72958296aa90b9 | 080151805673706867d2729e8a646a3887184278 | /ReadLibTest.py | c2300d5486982f133fa911c1750a6533c5a42b27 | [] | no_license | TAndronicus/classifier-integration | c5aa2ddb40b95c7a01fe6625b9df1c098a3f3a89 | 2b7b56c95b00b870b1c58260cc08e4d885b3e6ed | refs/heads/master | 2020-03-24T11:04:55.990833 | 2018-07-31T19:31:36 | 2018-07-31T19:31:36 | 109,592,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 783 | py | import unittest
import ReadLib
import numpy as np
class ReadLibTest(unittest.TestCase):
def test_should_read_correct_data(self):
# given
filename = "test.xlsx"
# when
dataset = ReadLib.read_2018_07_02(filename = filename)
X = np.array(dataset.training_sets_X)
X_tes... | [
"jed.biedrzycki@gmail.com"
] | jed.biedrzycki@gmail.com |
d7b156da491f1fd9ef8edc298d786c68f1226a0d | b1b492715300bee008eacc2708ff3aa9f6ff34ab | /victor/setup.py | c8f5e450253ecd6b55b9e2d0f5e7b57bcf8683c2 | [] | no_license | minlattnwe/unreliable-deform-manipulation | 1dd60a1f91af37c30e699b218ed374c3b65d0f9b | b04485ed98d78a5f35f5b4d29aac715e2c0ef6a5 | refs/heads/master | 2023-03-19T20:16:57.552013 | 2020-12-09T21:13:25 | 2020-12-09T21:13:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | ## ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup
# fetch values from package.xml
setup_args = generate_distutils_setup(
packages=['victor'],
package_dir={'': 'src'})
setup(**setup_args)
| [
"pmitrano@umich.edu"
] | pmitrano@umich.edu |
aaa0167fe57b1d2f17bd67494af4227d40dac876 | 5fbccfadc61d6926e72c684a28704534b4ac80de | /database/SQL/googleVision.py | f2ea756a13a3d592373bd1a6dbb14728e3dcbb0e | [] | no_license | danaszapiro/EC500 | d6aac01994e3bf443b5532b36afceb274d1cb44a | 89a34e2f37bbb5610656310efe7327adae85e80e | refs/heads/master | 2021-05-09T19:19:32.006874 | 2018-04-18T20:25:29 | 2018-04-18T20:25:29 | 118,637,499 | 0 | 2 | null | 2018-02-15T12:30:08 | 2018-01-23T16:31:21 | Python | UTF-8 | Python | false | false | 1,256 | py | import twitterFeed as tw
import makeMovie as movie
import wget
import os
import io
import databaseSQL as db
from google.cloud import vision
from google.cloud.vision import types
from os import listdir
# Function definition, uses google vision API to lable all images located in output folder
def lable_images(handle):... | [
"danasz@bu.edu"
] | danasz@bu.edu |
a701b7b61f73127bef8278cfaa98dcf0c501b42d | 0e4168c4d129b7219cd4048102409ab69c543376 | /scripts/joinSamples.py | 4ea8442b37d446e6dad8984cbac3b1c31589947a | [] | no_license | saumyaphor4252/PlayWithDatacards | 867f47486cd51091b7b6ee99bc3f860486266117 | 2b25d49073b76a6c030cdac5577def3024dd219f | refs/heads/master | 2022-03-06T05:44:21.039024 | 2017-10-31T11:08:43 | 2017-10-31T11:08:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | #
# join samples
#
# join YY and XX into VV
#
# joinSamples.update({'VV' : ['YY','XX']})
joinSamples.update({'Higgs' : ['qqH','ggH','ZH','WH']})
joinSamples.update({'VVV-WZ-ZZ-Vg' : ['VV','VVV','Vg','VgS']})
#joinSamples.update({'WW' : ['ggWW','WW']})
joinSamples.update({'Top' : ['TopPt0','... | [
"massironi.andrea@gmail.com"
] | massironi.andrea@gmail.com |
9b83cbe7a8d317e53142e0e49caa043dcba45816 | 03c1a5844c7eb7c329d651c25a7f583bbc4ca56a | /guess_game.py | c4962b9e00f52fbb67a13d4fd2b27cca0d9d9010 | [] | no_license | oyedsamu/python_tasks | 3bc674184bc37363d3fd09378849b3e8fc89a3d5 | 04e8aab96d0d0c707c09bafe72d4fcf52875f590 | refs/heads/master | 2022-04-13T08:01:53.090959 | 2020-04-04T22:46:02 | 2020-04-04T22:46:02 | 250,220,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | # This is a guessing game that allows a player to guess the age of
# The writer of this code.
answer = int(input("Guess my age boy: "))
tries = 1
while tries < 4:
if answer == 27:
print(f"You are officially a wizard! {answer} years old is just right! You win.")
break
else:
tries += 1
... | [
"54637620+oyedsamu@users.noreply.github.com"
] | 54637620+oyedsamu@users.noreply.github.com |
e95ebcc1ad3423681530ac96e91e503ba9891e8f | c49f5a038f69f56efa9eaa6ead7771a78fa8d28b | /gene.py | 589f3ce2904733821289f8defb649565437378ae | [] | no_license | trstamp/Genome | d3bcbc82569a057abbaf7ad2eb397a3c8e9441c6 | b4e8f38ceec5a0d4e5b7ae615cca005a3fa05855 | refs/heads/master | 2022-12-18T22:08:44.559344 | 2020-09-24T21:15:04 | 2020-09-24T21:15:04 | 298,396,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,682 | py | import random
'''
import importlib, importlib.util
import sys
from gene_string import GeneString
from gene_array import GeneArray
from gene_boolean import GeneBoolean
python gene.py -file gene.txt
'''
class Gene:
def __init__(self):
self.readSequence()
def readSequence(self):
gene = open(... | [
"noreply@github.com"
] | noreply@github.com |
016784dff9584792c36c1aef01998c4daf5aba5b | a1366a97767ff8ccf6a8d24352de2e6695bd7c45 | /examples/image_partition.py | 7b3d9a95b930526fd73f40ff380fa0210d66cf76 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bsc-wdc/dislib | 5b5d47623cc35f3e92d79e699608a8cd6e6c9caf | edbb105e614d83884c80b7bbec6b37141e9e0cc4 | refs/heads/master | 2023-08-23T11:11:03.391202 | 2023-08-10T11:55:30 | 2023-08-10T11:55:30 | 153,618,782 | 44 | 27 | Apache-2.0 | 2023-08-21T14:54:59 | 2018-10-18T12:17:29 | Python | UTF-8 | Python | false | false | 9,805 | py | from math import sqrt, ceil
from itertools import product, chain
import argparse
import matplotlib.image as mpimg
import matplotlib.pyplot as plt
import numpy as np
import os
import time
from os.path import splitext, isfile, basename, join
from dislib.cluster import KMeans, DBSCAN, GaussianMixture
import dislib as ds
... | [
"salvi.solamartinell@bsc.es"
] | salvi.solamartinell@bsc.es |
7bda38748d809f002619c5830000f821073fda6b | 16f06f6740b2cd3c39e2cf680add5d8ed20f843e | /study-template-config.py | 191d262074e9a97b71b94a87de57e2318b3110c9 | [] | no_license | hoechenberger/Cam-CAN-to-BIDS | b1d9ffcdb05926e89ea229a13822a5298ca28ed4 | e36c0f8f17d8eee738fe9729253a7e593c804475 | refs/heads/master | 2023-01-03T02:05:46.452459 | 2020-11-02T15:17:00 | 2020-11-02T15:17:00 | 250,199,009 | 1 | 2 | null | 2020-10-03T12:37:37 | 2020-03-26T08:16:27 | Python | UTF-8 | Python | false | false | 934 | py | import pathlib
from mne_bids.utils import get_entity_vals
study_name = 'Cam-CAN'
bids_root = pathlib.Path('/storage/store2/work/rhochenb/Data/Cam-CAN/BIDS')
subjects_dir = str(bids_root / 'derivatives' / 'freesurfer')
task = 'task'
# subjects_list = list(set(subjects_list) - set(exclude_subjects))
# subjects_list = '... | [
"richard.hoechenberger@gmail.com"
] | richard.hoechenberger@gmail.com |
27a368eaee1c452395932fc199503ba3808f5799 | 3e1067947c8b196bc0728fa468487316662cf29a | /ecsminion/api/configuration/configuration_properties.py | 2e0c83fbcc99453cb46ff97786c6b81ecc2090b1 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | skizot722/ecsminion | 5c87c62df9bea3b02467d663b5d3749b930a0d55 | 046f04beed44796f2b4417f97a71e92ea3cb0a9c | refs/heads/master | 2020-12-11T03:27:46.892101 | 2015-06-23T22:03:20 | 2015-06-23T22:03:20 | 39,174,570 | 0 | 0 | null | 2015-07-16T03:31:32 | 2015-07-16T03:31:32 | null | UTF-8 | Python | false | false | 3,395 | py | # Standard lib imports
# None
# Third party imports
# None
# Project level imports
# None
class ConfigurationProperties(object):
def __init__(self, connection):
"""
Initialize a new instance
"""
self.conn = connection
def get_properties(self, category='ALL'):
"""
... | [
"chad.lung@emc.com"
] | chad.lung@emc.com |
b3f6e06ec271a24acb23628e036addff72b6bd18 | ec46c70a721f16031a784f54f522656fb43dfc9f | /venv/lib/python3.6/site-packages/xmlschema/validators/elements.py | 2fd9e70cc618a388925fd3b40bb08fc2b89878e9 | [] | no_license | kardelen-karatas/django-importXML | c6a62942b740697d3647ec0bc1ed9c078e751159 | b169966627bd54b684aaedd5fd6c0d7be551b973 | refs/heads/master | 2022-12-10T00:38:40.578278 | 2020-04-15T10:34:36 | 2020-04-15T10:34:36 | 125,032,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,086 | py | # -*- coding: utf-8 -*-
#
# Copyright (c), 2016-2018, SISSA (International School for Advanced Studies).
# All rights reserved.
# This file is distributed under the terms of the MIT License.
# See the file 'LICENSE' in the root directory of the present
# distribution, or http://opensource.org/licenses/MIT.
#
# @author ... | [
"kardelen.karatas@gmail.com"
] | kardelen.karatas@gmail.com |
a1aa8c52ca08ac9a28a3c926131c9d164c1addcb | 559fcc2a71fbf5e6e09780e1aae5cad63b64d45c | /ex01.py | 8a3662c47f53e21d6586ca40d66b77d52b466214 | [
"MIT"
] | permissive | chrisortman/CIS-121 | 17c0f76f6ea7179b46b03e007d9c98ef4f84efe9 | 4b7845bac77d0553f63f60bd50f1655b5ba9c0d4 | refs/heads/master | 2020-09-27T19:38:49.795299 | 2016-11-08T13:13:29 | 2016-11-08T13:13:29 | 66,097,366 | 1 | 14 | null | 2016-11-08T13:13:29 | 2016-08-19T16:44:16 | Python | UTF-8 | Python | false | false | 80 | py |
person = "CHRIS!!!!!"
x = input("Enter an equation:\n")
print "%r" % type(x)
| [
"chrisortman@gmail.com"
] | chrisortman@gmail.com |
842ee323a5e5c964ef8d3da54b26eb71342849ca | 62bfd76d2624f77ef72ce6952f6556f3870ec548 | /Main.py | f8a2f9da52b25c83146a638fe02d6fddcdbb41fe | [] | no_license | SoftDevDanial/IntrisicValueCalculator | d5b9e3318c77961c03dbcc3fcdfacafc0a0f7536 | ced4eb6dcfb867430b34345a1c2169e4d2f22c91 | refs/heads/main | 2023-03-31T07:42:32.684206 | 2021-04-01T14:32:17 | 2021-04-01T14:32:17 | 351,753,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,128 | py | """
Programmer: Mohd Danial Saufi Bin Ezani
Date: 7/15/2020
Program Aim: Main GUI for the program
"""
import tkinter as tk
from tkinter import ttk
import IntrisicValScript as ivs
import pandas as pd
from tkinter import messagebox
class MainApp():
#### Initializiation ####
def __init__(self):
... | [
"64815604+SoftDevDanial@users.noreply.github.com"
] | 64815604+SoftDevDanial@users.noreply.github.com |
bd9a28dfae36e64c6a472f2bc609fc5b41dc8481 | d122fa13031f6f087e91bf89c2133e19c3e3a816 | /venv/Scripts/easy_install-3.7-script.py | c539141108fd8f1a7e7963dfddbd350c877b9534 | [] | no_license | SahibSingh1311/Session_3 | 2b5574d6ba9c352aee8d602ae7aa8e6ec11076f1 | 41ab1cbca13e251c318bd657cbe3aa87f284f52e | refs/heads/master | 2022-01-12T10:18:54.134755 | 2019-06-24T05:23:32 | 2019-06-24T05:23:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | #!C:\Users\Windows\PycharmProjects\sahib\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw... | [
"tysonkirat@gmail.com"
] | tysonkirat@gmail.com |
bf5ec6948feea77173ec09f78b4b41b6d0a71eaa | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/nlp/MT5_ID4146_for_PyTorch/transformers/src/transformers/models/albert/__init__.py | 0a61f5995a78963a71d334ac03c89ac5cdcdbb54 | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 4,368 | py | # flake8: noqa
# There's no way to ignore "F401 '...' imported but unused" warnings in this
# module, but to preserve other warnings. So, don't check this module at all.
# Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
ee1c6b88a14332e84c1bc71a923f13978c524c4a | a31c2ea56090a873225f332a6c709aea5728cf40 | /recipes_manager/data.py | 92a614bc00133ee860691ce8223a54758a69455f | [] | no_license | hoangbits/ttftt-recipes-manager | 19fcae305e9be510af3af819988ce6e41f402063 | cdb4e950c58b9f0afeec52845f6170dbdc506536 | refs/heads/main | 2023-02-09T03:07:22.983287 | 2021-01-02T10:00:25 | 2021-01-02T10:00:25 | 325,994,324 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,814 | py | # Dictionnary which contains the ingredients based on the recipe ID as key.
INGREDIENTS = {
1: [
{"name": "potato", "quantity": 10, "unitMeasurement": "UNIT"},
{"name": "onion", "quantity": 2, "unitMeasurement": "UNIT"},
{"name": "bacon", "quantity": 100, "unitMeasurement": "GRAM"},
... | [
"giahoangth@gmail.com"
] | giahoangth@gmail.com |
d3fa277d14aebc7a28b2c6ef51d67f48fb198690 | 17e60f61fc82e7369802a1c597b58b0206ad9bec | /lib/resIpOSF1.py | ed540226dbdb369c1350048d478951dab3b4d1ee | [] | no_license | SLB-DeN/opensvc | 5e06d42947f51662fa16203a00670a88b9e1fea9 | 75baeb19e0d26d5e150e770aef4d615c2327f32e | refs/heads/master | 2021-05-17T05:35:18.585791 | 2020-03-19T15:20:05 | 2020-03-19T15:20:05 | 250,651,667 | 1 | 0 | null | 2020-03-27T21:29:22 | 2020-03-27T21:29:22 | null | UTF-8 | Python | false | false | 919 | py | import resIp as Res
import rcExceptions as ex
from rcUtilitiesOSF1 import check_ping
from rcUtilities import to_cidr, to_dotted
class Ip(Res.Ip):
def check_ping(self, count=1, timeout=5):
self.log.info("checking %s availability"%self.addr)
return check_ping(self.addr, count=count, timeout=timeout)
... | [
"christophe.varoqui@opensvc.com"
] | christophe.varoqui@opensvc.com |
cba37cc252a40bc8d839852a95270fb68d1ba497 | c67fac5eab46808e5cc6aa3905633b369c5c54f8 | /LinkedIn_Learning/Ex_Files_Learning_Python/Ch3/dates_start.py | ae261ccb6c5071085fca5151e924744a618e815a | [] | no_license | uwasystemhealth/BUTTERLYN_WSL_FILES | fc8934a795dcba7a886c43d1c65abf22652aeb52 | 345d477888df36cdfeff6eb8d89eef7963473f89 | refs/heads/master | 2023-03-26T21:48:31.310620 | 2021-03-28T13:57:42 | 2021-03-28T13:57:42 | 283,448,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | from datetime import date as dt
from datetime import time as tm
from datetime import datetime as dtm
def main():
today = dt.today()
print(today)
if __name__ == "__main__":
main();
| [
"21714914@student.uwa.edu.au"
] | 21714914@student.uwa.edu.au |
e1a621124ec0cdc336d33c820d1e3798c91641f1 | 5db8d0f5e2be3d7da77b0228ea701108c9ae31ad | /network_conf.py | de2749917e4e9f102b000f88e45dca4f124469dc | [] | no_license | zkqym/cnn_text | 3275d5b674c89564445d9b159dd2faee54fb7ef2 | 6c04c0e7eadb1947e688c04f340b387bf5969d0a | refs/heads/master | 2020-03-21T07:11:17.292218 | 2018-06-22T07:13:40 | 2018-06-22T07:13:40 | 138,265,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,021 | py | import sys
import math
import gzip
from paddle.v2.layer import parse_network
import paddle.v2 as paddle
__all__ = ["cnn_network"]
def cnn_network(dict_dim,
class_dim=2,
emb_dim=28,
hid_dim=128,
is_infer=False):
data = paddle.layer.data("word",
paddl... | [
"noreply@github.com"
] | noreply@github.com |
accd19946949a311df2e91d1b92ba65bb792ec92 | 69a9e79d266a7167aa6386938bb5e63fca15d554 | /etl/etl_job.py | 031628b87de08c591a67e6878bf40d65b859f77c | [] | no_license | seykuyinu/restaurant-data | d264115e4d2388ec050f69226a9cd96fc1079231 | 0e419e294139f05854fe885500c1af26efbeefb3 | refs/heads/master | 2020-05-19T15:14:35.057287 | 2019-05-13T21:45:04 | 2019-05-13T21:45:04 | 185,081,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,414 | py | import pandas as pd
import os
from sqlalchemy import create_engine
from models import Base, RestaurantInfo, InspectionInfo
from variables import REST_INFO_COLUMNS, INSPECITON_INFO_COLUMNS, DATE_COLUMNS, NEW_YORK_DIAL_CODE, COLUMN_RENAME_MAPPING, CSV_FILENAME, DATABASE_URL
import io
def transform_data(df: pd.DataFrame... | [
"seykuyinu@Seys-MBP.home"
] | seykuyinu@Seys-MBP.home |
5228f70187f2fb73f3f1637fd851a5a7bc4cc9b0 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02850/s373081081.py | b381794c0d3494f7275436bc03b2bca28c761d40 | [] | 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 | 556 | py | n = int(input())
g = [[] for _ in range(n)]
inv = [0] * n
for i in range(n - 1):
a, b = map(int, input().split())
g[a - 1].append((b - 1, i))
inv[a - 1] += 1
g[b - 1].append((a - 1, i))
inv[b - 1] += 1
k = max(inv)
print(k)
s = [0]
d = [-1] * n
d[0] = [-2]
ans = [0] * (n - 1)
while s:
p = s.pop(... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
4df017a69ebd55e2f6d10c5b9fa9af3abc33e9f3 | c8162f985ed22b4a479af46f5ad57fec184f064c | /plugin.video.foxymeta/resources/lib/apis/trakt.py | 9c9962722837a11178c73261ee158a9599f1fba8 | [] | no_license | ruinernin/foxymeta | bd118e9471d517f156fc8994192c38e35511b2d5 | 19b89bdf4eeee787447c103728fe4561fbfac713 | refs/heads/master | 2022-02-17T10:09:17.601308 | 2022-02-03T04:49:18 | 2022-02-03T04:51:10 | 223,524,430 | 5 | 3 | null | 2021-07-21T12:52:41 | 2019-11-23T03:23:58 | Python | UTF-8 | Python | false | false | 2,847 | py | import time
import requests
API_URL = 'https://api.trakt.tv/'
CLIENT_ID = '60cc5c14c797ceae109e7a408f27914d83125b7ad0726cc382d98d57c923fb12'
CLIENT_SECRET = \
'1934c60d541c9802e8186ae0c0a5d7b3244d69aa3bfe9031fecf9a55b96c6f3f'
def authenticate(code=None, expires=None):
"""Device authentication with Trakt.tv... | [
"ruinernin@mail.com"
] | ruinernin@mail.com |
eb622749ef7fa8241efa62757a34f4129ecc27d0 | 43c45a5d21cace62faed4aa5648fad4edbcf9d19 | /examples/plot_logistic_adult.py | 5b1b13053569e3d5dded5aecc570fa99e00730f7 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jayeshchoudhari/tick | 125db54964047bfe7f4d404997ae678816202f19 | 57ca850c0c1ac0afd76a2f3a13a23f1713a71d4e | refs/heads/master | 2021-08-31T09:45:57.281286 | 2017-12-18T16:20:03 | 2017-12-18T16:20:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 956 | py | """
==============================================
Binary classification with logistic regression
==============================================
This code perform binary classification on adult dataset with logistic
regression learner (`tick.inference.LogisticRegression`).
"""
import matplotlib.pyplot as plt
from skl... | [
"mbompr@gmail.com"
] | mbompr@gmail.com |
eec1bf5bbfcdce3c5a820d8bed4610800e355025 | 57a2dae02232e28eca53d0432ff52e5eac67ed4f | /to_blog/main_part_vii.py | 94cb821c86c43273a2dede7666e10656b5694e75 | [] | no_license | birodaniel8/assassins_creed_2d_game | b637ea769e00d668be57cdc2c15a171c35aabbcd | 0583ec18ada0415b2dc41177b986f376c1f6c6fa | refs/heads/main | 2023-04-18T18:39:48.380243 | 2021-05-08T19:35:10 | 2021-05-08T19:35:10 | 352,133,424 | 0 | 1 | null | 2022-02-08T18:47:08 | 2021-03-27T17:22:29 | Python | UTF-8 | Python | false | false | 20,822 | py | import pygame
import os
import sys
import numpy as np
pygame.init()
# base appearance settings:
WHITE = (255, 255, 255)
# base game settings:
FPS = 60
WIDTH, HEIGHT = 1280, 720
WIN = pygame.display.set_mode((WIDTH, HEIGHT))
pygame.display.set_caption("Pygame Creed 2D") # app title
# load images:
PLAYER_RIGHT = pyg... | [
"birodaniel8@gmail.com"
] | birodaniel8@gmail.com |
76be25ab30949d7b840be234458f6998042d1318 | 207bfa72f91c7010a8b6219cd0a73b78bb3006ad | /misc/utils/generate_json.py | ce6a0575bfb2b013620c424ccafc9faf38c67885 | [] | no_license | lazybios/Protein-protein-Interactions | 94d881f1f6f23c50f46b2a92fd24f9dd4aa6fdce | 4201bc9738a7db8dfcb643de7d0160385328bfe2 | refs/heads/master | 2016-09-06T14:52:24.319622 | 2014-06-03T12:03:55 | 2014-06-03T12:03:55 | 19,990,660 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 928 | py | #!/usr/bin/python
# -*- coding:utf-8 -*-
import json
import sqlite3
if __name__ == "__main__":
conn = sqlite3.connect('ppi.db')
nodes,links= [],[]
sql = "select * from ppi where source='Cs8g05790.2'"
cursor = conn.execute(sql)
nodes.append({"name":'Cs8g05790.2',"center":'y'})
for row in cur... | [
"lazybios@gmail.com"
] | lazybios@gmail.com |
62af2b892b48fc4ea07ca654b78b182a5488e8be | 52e814745700b54e4b35e783386ad5f796def1e9 | /colour/models/rgb/dataset/smptec_rgb.py | 975aa35b67e90bc77dac406f33783516a44fb3cb | [
"BSD-3-Clause"
] | permissive | scoopxyz/colour | e9c6502f67ff0774ab77f3c2f622b5973f5a9196 | b1d82af250122f82919b4c54d06fdf72c069c5af | refs/heads/develop | 2020-12-30T19:57:48.884001 | 2016-12-28T12:42:44 | 2016-12-28T12:42:44 | 68,670,983 | 0 | 0 | null | 2016-09-20T03:38:17 | 2016-09-20T03:38:17 | null | UTF-8 | Python | false | false | 2,618 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
SMPTE-C RGB Colourspace
=======================
Defines the *SMPTE-C RGB* colourspace:
- :attr:`SMPTE_C_RGB_COLOURSPACE`.
See Also
--------
`RGB Colourspaces Jupyter Notebook
<http://nbviewer.jupyter.org/github/colour-science/colour-notebooks/\
blob/master/noteboo... | [
"thomas.mansencal@gmail.com"
] | thomas.mansencal@gmail.com |
1e89c6091e034afc05a46dc4085de35e638b7914 | 23b34d8bbc1ca49a47e7b8a404d050b0f24f8042 | /problems/projectEuler/python/problem1.py | 5f5eebf95a67256314d7ed8aec2ef8e5ee813467 | [] | no_license | 18bytes/whoopee | 37e387f7cf019505a5351b6f206135b17f8a9432 | 41e65f00b6143381fbcdff08c66fb42d1f889cc6 | refs/heads/master | 2020-04-06T03:31:21.965440 | 2012-09-08T03:41:24 | 2012-09-08T03:41:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | """
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.
Find the sum of all the multiples of 3 or 5 below 1000.
"""
def get_multiples(list):
result = []
for item in list:
if item % 3 is 0 or item % 5 is 0:
result.append(item)
... | [
"mail@devsundar.com"
] | mail@devsundar.com |
04c35e70f4d22ea06ccb9aff4a12220692b3aaaa | 41010e158a6214145cba2229178654d1b3bb43f9 | /day3/main.py | ea6f36aa98227e3a93d22ab63915705b48cda66e | [] | no_license | konsherman/DWP2 | a25678c22de973b3a478144a12309455e0f1563a | b69091573281a5a8db09d07dd6ddf208cde53ffe | refs/heads/master | 2021-01-20T10:47:04.777467 | 2015-01-12T23:08:47 | 2015-01-12T23:08:47 | 28,835,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 752 | py | # import math
# import random
# class Employee:
# company = "fullsail"
# def __init__(self):#constructor function
# print "Emp created"
# self.name = "Larry"
# self.hour = random.randint(0,10)
#
# employees = []
#
# for i in range(100):
# employees.append(Employee())
#
# employees[0]... | [
"konsherman@fullsail.edu"
] | konsherman@fullsail.edu |
5466508a5f10a2490145c71a4d00799ff8fa23b2 | 1a59a9076c1e9f1eb98e24ff41a4c1c95e2b353e | /xcp2k/classes/_print51.py | 5960da1d1f2942edcf03cd540cb901434df30894 | [] | no_license | Roolthasiva/xcp2k | 66b2f30ebeae1a946b81f71d22f97ea4076e11dc | fc3b5885503c6f6dc549efeb4f89f61c8b6b8242 | refs/heads/master | 2022-12-23T06:03:14.033521 | 2020-10-07T08:01:48 | 2020-10-07T08:01:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | from xcp2k.inputsection import InputSection
from xcp2k.classes._program_run_info36 import _program_run_info36
class _print51(InputSection):
def __init__(self):
InputSection.__init__(self)
self.PROGRAM_RUN_INFO = _program_run_info36()
self._name = "PRINT"
self._subsections = {'PROGR... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
ccf90dacc8518550b9d77f0e2efe79c948778c82 | 2333e07c173acc09bae62d9e94c1fe114afe96f2 | /day02/titanic/knn.py | 8f5d31fb1325ce3ea2ccc69928274853507c369e | [] | no_license | nojongmun/python_tensor | a61bf447bae253fe99d1d8297240922a12c1007f | 80422d9be2b687e5453d4c551988625a7ec3e248 | refs/heads/master | 2022-08-26T01:17:20.628581 | 2020-05-26T13:28:51 | 2020-05-26T13:28:51 | 256,535,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69 | py | """
KNN(KNeighbors)
분류기(classifier) vs 회귀기(regressor)
""" | [
"nojm73@naver.com"
] | nojm73@naver.com |
57213ef2b1e90bae101fffe7e7eb0c0cfa88899b | e3f8a3631b05347614645807ec04f834f30d3361 | /mysite/myapp/urls.py | d509527fb94ec17f6719cd9a13ab69163abc3d67 | [
"MIT"
] | permissive | CSUChico-CINS465/CINS465-S19-Examples | 0acd7e8c46d6a197e63ff23a5198ba5c93d9cf3d | 2a9e88e1cc5ec937562211680760243d0f16efcf | refs/heads/master | 2021-11-16T15:06:28.924984 | 2021-06-16T16:33:37 | 2021-06-16T16:33:37 | 166,880,285 | 0 | 1 | MIT | 2021-09-22T17:49:06 | 2019-01-21T21:02:57 | Python | UTF-8 | Python | false | false | 383 | py | from django.urls import path
from django.contrib.auth import views as auth_views
from . import views
urlpatterns = [
path('', views.index),
path('login/', auth_views.LoginView.as_view()),
path('logout/', views.logout_view),
path('register/', views.register),
path('comment/<int:sugg>/', views.comm... | [
"javawolfpack@gmail.com"
] | javawolfpack@gmail.com |
f94bbb00c838993fe687041be03226896f1b045c | 7e0213d690b6748290d393821b20a51396795068 | /previous/legends.py | e4301693374717e29e83159b0d95e9bf8df5b309 | [] | no_license | amolife/IBM-Pythonlearn | 0922bc9a99d76948cfe6b62c6dc5c59f29399898 | a5cb358c2956bc6e49ec29c03d728182bdbc2f21 | refs/heads/master | 2020-10-02T07:35:56.835747 | 2019-12-25T10:39:33 | 2019-12-25T10:39:33 | 227,731,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | # sphinx_gallery_thumbnail_number = 2
from matplotlib import rcParams, cycler
import matplotlib.pyplot as plt
import numpy as np
# Fixing random state for reproducibility
np.random.seed(19680801)
N = 10
data = [np.logspace(0, 1, 100) + np.random.randn(100) + ii for ii in range(N)]
data = np.array(data).T
cmap = plt.c... | [
"amolife@163.com"
] | amolife@163.com |
715ea6671dc464eae538bd792bf0a7a7a530fbb9 | 60cf6b83da7d0545279ab3f001dc071c294f15c8 | /mnist_multiCPU.py | f1a137e8056a6c3eab15c7b7d2129e97fbc02315 | [] | no_license | liulei13/myPytorch_examples | 5cb8e6dd5c36c87686b3188dc9cf720266cab1dd | 5e1525201735541cef9d845c40acbe618a5d03e3 | refs/heads/master | 2020-03-28T21:47:20.850150 | 2017-06-17T12:40:13 | 2017-06-17T12:40:13 | 94,622,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,345 | py | from __future__ import print_function
import argparse
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.multiprocessing as mp
from train import train
# Training settings
parser = argparse.ArgumentParser(description='PyTorch MNIST Example')
parser.add_argument('--batch-size', type=int, de... | [
"noreply@github.com"
] | noreply@github.com |
57ebee472681027e89e4a2f79a5ec245a7f92df7 | 35742633419b419399043f190b505762aeafccea | /Advent of Code problem 1 - expenses add to 2020.py | 58cfaf2fcd940721d72618eb428fef58fb6db1ba | [] | no_license | GB071957/Advent-of-Christmas | ec6d911f258bae7ac8842e2bb5ad6ab6771051b2 | 6c4b50a9bece67993654c25ec97004f2a4ddacca | refs/heads/main | 2023-03-22T23:37:39.801810 | 2021-03-13T14:18:39 | 2021-03-13T14:18:39 | 319,123,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 688 | py | # Advent of Code problem 1 Program by Greg Brinks
# Find two numbers in the list of 200 that add to 2020 and multiply them together
from timeit import default_timer as timeit
start= timeit()
import csv
num_captured = 0
expenses = []
with open("Advent of Code problem 1.txt") as expense_file:
file_contents =... | [
"74923595+GB071957@users.noreply.github.com"
] | 74923595+GB071957@users.noreply.github.com |
e5e4011f6e565eeb106995e94a5d42b0ca5ec02b | 33f697fd4fd2398500cf5f8d555617a863de1eb4 | /problem8_LargestProductInASeries.py | 3b3f63a8cc07c0dc57c30977a3f25ca86c64cb04 | [] | no_license | AlexHahnPublic/EulerProblems | c70e5744dc74b293a2d325b0dface457f517ad5f | 53efea4f941c93d8a5e114e80f836a53dc5d9cf9 | refs/heads/master | 2021-06-07T02:05:16.801556 | 2016-10-22T04:25:00 | 2016-10-22T04:25:00 | 33,910,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,581 | py | # Euler Problem 8:
# The four adjacent digits in the 1000-digit number that have the greatest
# product are 9x9x8x9=5832
# number place holder
#Find the thirteen adjacent digits in the 1000-digit number that have the
# greatest product. What is the value of this product?
# Solution:
# I think the best way to go... | [
"afh53@physics.cornell.edu"
] | afh53@physics.cornell.edu |
2f8342dd5d9a19728b4fc679d90e965e9498937d | d25b580bfa00e85c80cbf6cb389bed892555b897 | /HW_2.4/chdir.py | d08d58f154617c28e247614c5e938588e8d67eda | [] | no_license | Severes/Project_2017 | 57ed6e4367a720f8fe3ac0905a61e7c1f2d3429e | 30afa11eec26fb08981f7da9202a2c583cb3101d | refs/heads/master | 2020-04-12T21:05:30.912748 | 2019-02-25T10:03:53 | 2019-02-25T10:03:53 | 162,754,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 831 | py | import os
# просмотр текущей директории
current_dir = os.getcwd()
print('Current dir: {}'.format(current_dir))
# изменение текущей директории. Прыгаем на 2 уровня выше. НО по сути рабочая директория изменилась только
# для этой программы. Для остальных программ она осталась прежней
os.chdir('../..')
# просматриваем ... | [
"v.simigin@gmail.com"
] | v.simigin@gmail.com |
1ae4c0e0c491b4e9a55b4d8575067683b9c4415d | b40d03c917ee8cdadbbd4826667df70d9ef56541 | /Assignement1/linearregression.py | ad134ecf5e5adc1e9cc3b005a07268e2f8a5f0ff | [] | no_license | OwenKDuffy/CSU44061 | 31ac02458b74e864844c75ea178f2fd6338cd249 | 998304a84b3c77facf4b1216c68c82b4a3dc8630 | refs/heads/master | 2020-08-07T07:59:35.579690 | 2019-10-31T11:11:24 | 2019-10-31T11:11:24 | 213,362,995 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,135 | py | import numpy as np
import matplotlib.pyplot as plt
# import mpl_toolkits
#
# from mpl_toolkits.mplot3d import Axes3D
def predict(X,theta):
# takes m by n matrix X as input and returns an mx1 vector containing the predictions h_theta(x^i) for each row x^i, i=1,...,m in X
##### replace the next line with your code ##... | [
"duffyow@tcd.ie"
] | duffyow@tcd.ie |
4f92f5233c910ebb8db129825cec1fe0afd083df | 0a7711063b30b1566ade3cc07f105292e32fe6d6 | /fabfile.py | 07b2332cef37e71892c58c0032d7fa0bfe7a0502 | [] | no_license | huokedu/dynamic-scrapy | e150a1fc6894e39d6bae37c602a592d57cd22c51 | 31a47e9810f2039cfe33653e09d7d03242764723 | refs/heads/master | 2021-01-17T21:33:17.810250 | 2013-10-05T17:28:19 | 2013-10-05T17:28:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | true | false | 3,512 | py | """Management utilities."""
from fabric.contrib.console import confirm
from fabric.api import abort, env, local, settings, task
########## GLOBALS
env.run = 'heroku run python manage.py'
HEROKU_ADDONS = (
'cloudamqp:lemur',
'heroku-postgresql:dev',
'scheduler:standard',
'memcachier:dev',
'newrel... | [
"scoarescoare@gmail.com"
] | scoarescoare@gmail.com |
3be06a78fd337ff10c0cbb33628494597910c3f3 | d7786c8ec2be9275c46720938fa5741649fbebdb | /busy/manage.py | 4a79778d1f11e8d6d89cb638e9a1ee0e0136a54e | [] | no_license | hackatron19/zahanat | 79c4853dd3cabca27ecf7c22f34b4457771a78e6 | 0f4fcb5c5150d2a06b787dbaba26512904143a53 | refs/heads/master | 2020-09-11T06:40:42.406380 | 2019-11-16T16:18:13 | 2019-11-16T16:18:13 | 221,975,424 | 0 | 1 | null | 2019-11-16T18:37:37 | 2019-11-15T17:49:35 | Python | UTF-8 | Python | false | false | 624 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'busy.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportErr... | [
"srijans38@gmail.com"
] | srijans38@gmail.com |
d794502520c6fba85ef0764343385d52467e16ae | a4fe53a764085a989d046a2cf3f2d598a3e4a51d | /day11/leap.py | d3302524a90148f30a27b08fa983bff25108caeb | [] | no_license | Tarang-1996/100-days- | 52e39db9702952de8a9a70700730f6921dd0a7ff | a6122f8f70b71ecf8c1eaa656f9819d8c4b4556a | refs/heads/master | 2020-03-22T10:55:48.637226 | 2019-05-27T16:34:28 | 2019-05-27T16:34:28 | 139,936,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | def is_leap(year):
leap = False
if year % 4 == 0 or year % 400 == 0:
return True
else:
return leap
year = int(input())
print(is_leap(year))
for i in range(1, 11):
print(i, end='')
n = int(input())
if N % 4 == 0 or N >20 and N % 2 == 0:
print("Not Weird")
elif N % 2 == 0 and N >=... | [
"guptatarang888@gmail.com"
] | guptatarang888@gmail.com |
f9dcc2c53c29291b6f655c1050df241d7626c145 | 8b8ae241d4d0f2e27effdffb413d258b446f82ac | /ML_Lib/bio/flux_balance_analysis.py | 5d40af018e34fbbfceab34ed60adf431f3db6c62 | [] | no_license | rmjiang7/ML_Lib | d4810ad439091dc5ec58ab9f858f2c450a96da46 | a84dc553a08237c12f9227dff2f448b4b76130f1 | refs/heads/master | 2021-09-15T17:58:28.851664 | 2018-06-07T18:06:19 | 2018-06-07T18:06:19 | 110,295,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | import numpy as np
class FluxBalanceAnalysis(object):
def __init__(self, reactions):
| [
"rmjiang7@gmail.com"
] | rmjiang7@gmail.com |
265e7e19470d48ad5d684630acd01aee31abed91 | ab71e85c36562590f2c4fb7164ab109e04255a2b | /program-11/py/fcn_cifar_color.py | d44465171bc8c31b69e4c2d74853910f113cc5a7 | [] | no_license | haruishi43/prml-class-2018 | 187b8bf6515a2a9a7a61af9fe553af486e992aa8 | 89b70f5a67f3285302ee59429f99dd5eff5f1076 | refs/heads/master | 2021-10-11T10:53:32.416706 | 2019-01-25T01:09:28 | 2019-01-25T01:09:28 | 153,049,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,353 | py | # -*- coding: utf-8 -*-
#
# FCNによるカラー化(cifar)
#
# chainer のインストール
!curl https://colab.chainer.org/install | sh -
# 必要なライブラリイのインストール
!pip install h5py
!pip install pillow
!pip install matplotlib
# Google drive のマウント(認証が必要)
from google.colab import drive
drive.mount('/content/gdrive')
# データの展開
!unzip -q '/content/gd... | [
"toraudonn@gmail.com"
] | toraudonn@gmail.com |
1289208f41654cbb48c72e0e5991a2b16a87ad01 | 9c2efc2ed3ed64b14db931ceffaff13061645568 | /apps/calculation_data_app/models/tax_break.py | 418e57624f8608a51ad82d4751fbfae436be00f4 | [] | no_license | alyasamba/python-django-payrollapp | 5b4ca178bd39122f1d44cd4b53a37d7f85498b51 | 34c0eb14514313bbfbbc7b22357ca276671a9bd0 | refs/heads/master | 2023-08-16T08:27:11.255697 | 2021-09-16T17:41:37 | 2021-09-16T17:41:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 719 | py | from django.db import models
from django.utils.translation import gettext_lazy as _
class TaxBreak(models.Model):
tax_break_id = models.AutoField(primary_key=True)
tax_break_name = models.CharField(
max_length=250, verbose_name=_('Tax break name'))
rate = models.FloatField(verbose_name=_('... | [
"marin.glavas@outlook.com"
] | marin.glavas@outlook.com |
bff37916a2a0abf7e118be05ae0e606e4f32e919 | 31ecba3f8112e91fbf99edf0bb9dd385da93c2ea | /Chapters/Unit5probs/findbuckets.py | 45234cabf24149c5a3d9eba1512cbed7175f33d9 | [] | no_license | siddeshbb/searchengine | 7c92ab59e9515725541a9c010ec8efd369121907 | 210a6f52cb12b7c0bc27f43d138fa308942b9fd6 | refs/heads/master | 2022-12-22T19:52:52.889791 | 2020-09-28T12:46:44 | 2020-09-28T12:46:44 | 299,305,999 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 874 | py | # Define a procedure, hashtable_get_bucket,
# that takes two inputs - a hashtable, and
# a keyword, and returns the bucket where the
# keyword could occur.
def hashtable_get_bucket(htable,keyword):
return htable[ hash_string( keyword , len( htable ) ) ]
def hash_string(keyword,buckets):
out = 0
for s in... | [
"sbb@vmware.com"
] | sbb@vmware.com |
cce166e7324ce022422cfd1101b62816e45c6bce | cb00e5366181e10b341010ef5be64d86cd3f485d | /mysite/urls.py | 1b09b3c71c120d35533f835d6ddee4788cb69860 | [] | no_license | hrr21/Django_SecondLevel_HW | e2b43376e9a1b81cd3fe2f3a109f273a39b39faf | 8500f9c334e328536d7ed5f4b7bdf09304969dfe | refs/heads/HW-Lesson_1 | 2023-02-25T08:05:35.156211 | 2021-01-29T09:27:30 | 2021-01-29T09:27:30 | 330,998,693 | 0 | 0 | null | 2021-01-29T21:07:19 | 2021-01-19T14:01:41 | CSS | UTF-8 | Python | false | false | 721 | py | from django.contrib import admin
from django.urls import path, include
from mainapp import views as mainapp_views
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path('admin/', admin.site.urls),
path('', mainapp_views.index, name='main'),
path('products/', inclu... | [
"hrr21@yandex.ru"
] | hrr21@yandex.ru |
001ee8c250001a08a7d5f7293b5801b8d90f2704 | 7250ce4b0f8c0bbff563e22243750bd89bc4a1f8 | /source/interprocedural_analyses/taint/test/integration/via_type_of.py | 5c5b05667e533cc4c1f9f0187df6d2ea54ec20a3 | [
"MIT"
] | permissive | geekmc/pyre-check | 717a02b71b9537852e494507c70b91e7e98a8c22 | 592ad6dee657e48746ed2d352c6f9269b6ff9c61 | refs/heads/main | 2023-07-07T15:48:20.915843 | 2021-08-10T03:22:53 | 2021-08-10T03:23:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 923 | py | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import enum
from builtins import _test_sink, _test_source
def return_via_parameter_type(parameter):
return 0
def test_strings():
r... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
bff347b4d10ff5bb0cf018f88baa82da697bade7 | 96dfa32d31ab4d45703508a2c5a53111e5610be1 | /src/get_tf_resnetv2_feature.py | b32812b2b38ebf818c274f8f2e8f968388be7aba | [
"MIT"
] | permissive | ccj5351/hmr_rgbd | 119a16026916287e3e7ba92e75ba76fe489dafd4 | d1dcf81d72c11e1f502f2c494cd86425f384d9cc | refs/heads/master | 2022-09-11T12:32:29.852057 | 2020-06-02T22:41:18 | 2020-06-02T22:41:18 | 213,417,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,192 | py | # !/usr/bin/env python3
# -*-coding:utf-8-*-
# @file: tf_vs_pt_ResnetV2_50.py
# @brief:
# @author: Changjiang Cai, ccai1@stevens.edu, caicj5351@gmail.com
# @version: 0.0.1
# @creation date: 30-10-2019
# @last modified: Wed 30 Oct 2019 07:33:42 PM EDT
from __future__ import absolute_import
from __future__ import divisi... | [
"caicj5351@gmail.com"
] | caicj5351@gmail.com |
f8149f2da378fb53d5e36feff3939993f377b017 | 36896bab28eb4c818178aa6896e95e2dacc0842b | /troposphere_mate/emr.py | 831b2c0b00db8ebe67734dba4ecf22460667da47 | [
"MIT"
] | permissive | MacHu-GWU/troposphere_mate-project | 302ad28ab6b83576c8a3413dcdca11dfd253a9fe | d615c0b717faae52e6edfb9dca65940e49191529 | refs/heads/master | 2023-03-17T19:48:09.280012 | 2023-03-03T04:08:16 | 2023-03-03T04:08:16 | 195,665,308 | 10 | 3 | null | null | null | null | UTF-8 | Python | false | false | 27,453 | py | # -*- coding: utf-8 -*-
"""
This code is auto generated from troposphere_mate.code_generator.__init__.py scripts.
"""
import sys
if sys.version_info.major >= 3 and sys.version_info.minor >= 5: # pragma: no cover
from typing import Union, List, Any
import troposphere.emr
from troposphere.emr import (
Applic... | [
"husanhe@gmail.com"
] | husanhe@gmail.com |
0eb1879c244d2115498463b9733d18e928eb0385 | 3716e91c0a18a2cf0b5807cc673d95a7539b008c | /Desert/GoldenMirage.py | f563b55791426c7140a315433fe66e9f7577132e | [] | no_license | kiwiapple87/CodeCombat-1 | 47f0fa6d75d6d3e9fb9c28feeb6fe2648664c1aa | ce0201e5ed099193ca40afd3b7abeee5a3732387 | refs/heads/master | 2021-05-01T16:38:03.575842 | 2016-08-25T11:13:26 | 2016-08-25T11:13:26 | 66,552,813 | 1 | 0 | null | 2016-08-25T11:39:20 | 2016-08-25T11:39:18 | null | UTF-8 | Python | false | false | 780 | py | # https://codecombat.com/play/level/golden-mirage
# Collect 7 real coins.
# Real coins have a unique value in the each group of coins.
# If a coin has the same value as another coin in the group, then it's a fake.
# Fake coins will transform into venomous creatures to hurt the player!
def Coin(coins):
for coin1 in ... | [
"vadim-job-hg@yandex.ru"
] | vadim-job-hg@yandex.ru |
85b105916c040e347b201d6a2a65b5ecdd6710da | c9a27dec302bf0fd5026ca10b30a3d3e4eef8818 | /Hackerrank/Strings/sWAP cASE.py | 1521c92bac4a8aa628e6095000acdf0b9492f42f | [] | no_license | akatzuka/Python-Practice | f11fe6993263c9ca13c8c89606bc5b6eb5538b8f | 13f5aafc8444c16baae2b2746280e3d435036f3a | refs/heads/master | 2020-08-21T08:26:46.294671 | 2020-01-03T18:38:24 | 2020-01-03T18:38:24 | 216,120,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | #!/usr/bin/python
def swap_case(s):
return s.swapcase()
if __name__ == '__main__':
s = input()
result = swap_case(s)
print(result)
| [
"vucinich.sean@gmail.com"
] | vucinich.sean@gmail.com |
33ab1a8c60df5df0fc879182520ccaaf45541904 | c727e57c10303f420f866eb4178d4ec97390a52b | /Day_1/cgi_bin/cgi101.py | aa9734ee70d57b36dba02c70277b003d6aeb891b | [] | no_license | JomHuang/PythonStudy | 10b7fa3f81a8c31aa0c8f4f6ef5a2a8a871400be | 9c52b480c8ee80968161e1404c55dce71c54c8c6 | refs/heads/master | 2021-01-19T05:39:37.578768 | 2016-06-29T15:28:27 | 2016-06-29T15:28:27 | 61,341,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py |
import cgi;
form = cgi.FieldStorage();
print('Content-type:text/html\n');
print('<title>reply page</title>');
if not 'user' in form:
print(' <h1>who are you?</h1>');
else:
print('<h1>hello <i>%s</i></h1>' % cgi.escape(form['user'].value));
| [
"159004287@qq.com"
] | 159004287@qq.com |
956895fdcf39007fb48577a2b7f41af5e435c1e2 | 4e353bf7035eec30e5ad861e119b03c5cafc762d | /QtGui/QPainterPath.py | 7998d10a8e9049e3c3657e20e5a30cef878cfee4 | [] | no_license | daym/PyQt4-Stubs | fb79f54d5c9a7fdb42e5f2506d11aa1181f3b7d5 | 57d880c0d453641e31e1e846be4087865fe793a9 | refs/heads/master | 2022-02-11T16:47:31.128023 | 2017-10-06T15:32:21 | 2017-10-06T15:32:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,689 | py | # encoding: utf-8
# module PyQt4.QtGui
# from C:\Python27\lib\site-packages\PyQt4\QtGui.pyd
# by generator 1.145
# no doc
# imports
import PyQt4.QtCore as __PyQt4_QtCore
class QPainterPath(): # skipped bases: <type 'sip.simplewrapper'>
"""
QPainterPath()
QPainterPath(QPointF)
QPainterPa... | [
"thekewlstore@gmail.com"
] | thekewlstore@gmail.com |
b097d8b9715bbbb073a6266fe43cfcbfc0bdaeaf | d3e4c53fff7648213e25aa615e68d140facffd19 | /parlhand_old/urls.py | 1b462cec6129687c65878ccded71ab76c7d3a9ff | [] | no_license | LegoStormtroopr/parlhand | ce8f83f0eecf181b0811505c65ec5dbce8d532bc | 8f37583b2f15207233010fa7fcea55cb5137955d | refs/heads/master | 2021-01-21T07:26:23.074219 | 2015-09-24T23:15:13 | 2015-09-24T23:15:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,295 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.conf import settings
from django.conf.urls.static import static
from parlhand.views import ParliamentSearchView
import data_interrogator
from mezzanine.core.views import direct_to_template
from mezzanine.conf import settin... | [
"toby.bellwood@gmail.com"
] | toby.bellwood@gmail.com |
0b71ec3eff96c491c6977e616abb0300a1476edc | 442393972e56ce9b1c7c338a960b50b1b227ffc1 | /main.py | aad225da14d3726ddaa3ae9c2cf6727d91dcfa72 | [
"MIT"
] | permissive | jodusan/diplomski | b5fd360ed056c8788b868df9703efab2c89be528 | 0e94602c0d1ff294c770cc04eec9c5f52c1802d1 | refs/heads/master | 2021-12-23T15:59:42.879697 | 2017-11-17T11:34:15 | 2017-11-17T11:34:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,379 | py | import gym
import argparse
from NeuralNetwork import DeepQAgent, NeuralModel
ENV = 'Breakout-v0'
NETWORK_PATH = 'saved_networks/' + ENV
def main():
parser = argparse.ArgumentParser()
parser.add_argument('--env', default=ENV)
parser.add_argument('--render', dest='render',
action='... | [
"dusanix@gmail.com"
] | dusanix@gmail.com |
26a3eb6017784f83e4890b5450ca6e887d90b6f5 | 3b9b4049a8e7d38b49e07bb752780b2f1d792851 | /src/third_party/skia/tools/dm_flags.py | 9672849ee344fc28ca0dbce6a1404595890e3fd0 | [
"BSD-3-Clause",
"Apache-2.0",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-public-domain",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT"
] | permissive | webosce/chromium53 | f8e745e91363586aee9620c609aacf15b3261540 | 9171447efcf0bb393d41d1dc877c7c13c46d8e38 | refs/heads/webosce | 2020-03-26T23:08:14.416858 | 2018-08-23T08:35:17 | 2018-09-20T14:25:18 | 145,513,343 | 0 | 2 | Apache-2.0 | 2019-08-21T22:44:55 | 2018-08-21T05:52:31 | null | UTF-8 | Python | false | false | 11,724 | py | #
# Copyright 2015 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
#!/usr/bin/env python
usage = '''
Write extra flags to outfile for DM based on the bot name:
$ python dm_flags.py outfile Test-Ubuntu-GCC-GCE-CPU-AVX2-x86-Debug
Or run self-tests:... | [
"changhyeok.bae@lge.com"
] | changhyeok.bae@lge.com |
961e4c3f694992e2027880111c795f38a6db4759 | c36dadaed5b03723a597a70b4c79713f13a5c266 | /api_gateway/config.py | 5fe3d22d8f4469d4111eb9d3c16ba64b3fc26b5d | [] | no_license | adifalco44/FA18-Data-Science-Project | 56f72bcaa8de02d02914d7fdb51bb77e0c9c42ac | 88d0a415765b3515d15e94a77f9a7c70075e5afc | refs/heads/master | 2020-03-29T21:26:44.949168 | 2018-12-14T20:19:37 | 2018-12-14T20:19:37 | 150,367,163 | 0 | 1 | null | 2018-12-14T20:19:38 | 2018-09-26T04:08:58 | Python | UTF-8 | Python | false | false | 993 | py | import os,jinja2
# Statement for enabling the development environment
DEBUG = True
# Define the application directory
BASE_DIR = os.path.abspath(os.path.dirname(__file__))
# Application threads. A common general assumption is
# using 2 per available processor cores - to handle
# incoming requests using one and perfo... | [
"adifalco@nd.edu"
] | adifalco@nd.edu |
0fe7ea9de53697146d11ebe15286d96437ec8abd | 6a621f8cbbfc2b865555e083cc1790af12465c2e | /TCA_2_3/TCA_2_3_3/TCAAlgorithm.py | 0ad81d18f460c137e8f0fdb0ac07d80b15db557f | [
"Apache-2.0"
] | permissive | OSADP/TCA | bc32a4d2b0d56ce339c124f15258a3f0ab3cce53 | 25bc1c1db00393cc6b8c6764610bf381494dfcb9 | refs/heads/master | 2021-03-19T13:15:32.697787 | 2019-10-21T18:38:44 | 2019-10-21T18:38:44 | 19,868,343 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,695 | py | #Standard
import unittest
#external
import pandas as pd
#TCA
from TCABuffer import CLBuffer, SPOTBuffer
from TCACore import logger, Timer, Get_Heading_Change, SPOT_time
from TCADataStore import DataStorage
from TCARandom import Random_generator
from TCABSM import BSM
from TCACAM import CAM
from TCASPOT import SPOT
f... | [
"Taylor.Sandelius@noblis.org"
] | Taylor.Sandelius@noblis.org |
f9ba13ab120ad54b3d31f7b7e3d3fde7dbb94789 | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/tags/2007.1/programming/libs/tcltk/actions.py | 1d79ab883daf1f4427f3cad73d8694cbc4138091 | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,731 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2005 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/copyleft/gpl.txt.
from pisi.actionsapi import autotools
from pisi.actionsapi import get
from pisi.actionsapi import pisitools
from pisi.actionsapi imp... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
574256b07e8f71c690e54228a60da25478ef2087 | b8630509b97621ddc3bbeaef8d1cd54ff77b3dde | /bandmaker/bandmaker/urls.py | d29cb941e129bd43157b12d46f475ee46c854d41 | [] | no_license | ChibaUnppluged/BandMaker-ogi | c4080204d63495fed42e26306663e06df8ffb373 | 68a4a6eceb3f385b97afe8741fc538216800f893 | refs/heads/master | 2021-01-01T04:29:28.436614 | 2017-10-20T16:30:00 | 2017-10-20T16:30:00 | 97,184,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 984 | py | # coding:utf-8
"""bandmaker URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name... | [
"pochi.0226.ogi@gmail.com"
] | pochi.0226.ogi@gmail.com |
a92e5da950cc26ab9f5c619ac93b287d845d57e0 | 7b9811e612c16442b9f8d0e33dcc9c88c420dd97 | /test_app/forms.py | b8f14a7d7d8ca47693bc960ef51378d75f628c86 | [] | no_license | basavarajuv/ImageUpload | 223dc224473e3fb01f755e0e4271f7c7cc96754f | 17bb27ece701f393517a257a3fb0e3dbed72fdfd | refs/heads/master | 2023-03-11T15:50:15.802678 | 2021-02-25T09:30:31 | 2021-02-25T09:30:31 | 342,185,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | from django import forms
from .models import *
class ImageForm(forms.ModelForm):
class Meta:
model = UploadFiles
fields = ['category', 'image_file']
| [
"bv21109@corp.ojas-it.com"
] | bv21109@corp.ojas-it.com |
66fc09278c9d017d0fc259a174d156f1030566ff | 12f83344cdfe561db39ad9106dbf263ccd919f7e | /Projects/miami_metro/debra/search_views.py | 77ead296336719b4b2451479030e5c53308017f5 | [] | no_license | TopWebGhost/Angular-Influencer | ebcd28f83a77a92d240c41f11d82927b98bcea9e | 2f15c4ddd8bbb112c407d222ae48746b626c674f | refs/heads/master | 2021-01-19T10:45:47.039673 | 2016-12-05T01:59:26 | 2016-12-05T01:59:26 | 82,214,998 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83,630 | py | import json
import datetime
import time
import urllib
import logging
import sys
import itertools
from collections import defaultdict, Counter
import itertools
from django.conf import settings
from django.shortcuts import render, redirect, get_object_or_404
from django.contrib.auth.decorators import login_required
fro... | [
"ivanfridrich1981129@yandex.com"
] | ivanfridrich1981129@yandex.com |
718c80e9c88ec35c27c68ef54639f8be9b5cdc9d | d8b114a9c0da2e71ffe3e39c4414aef85776e01b | /demo_flask_backend/db/db.py | 37d0be965d7a4a152ccab078cdd3f933d014572a | [] | no_license | pringlannas/zhifengwei.blog | 1faaf593b5ac73f7d98ee4e39dc71c482a6fcf93 | 380540cdd9baa02a1c5d664b609d4a634f89d53f | refs/heads/main | 2023-08-22T23:08:13.795642 | 2021-10-01T13:15:24 | 2021-10-01T13:15:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 835 | py | import pymysql
pymysql.install_as_MySQLdb()
class DB_con:
def __init__(self):
pass
def connect(self):
conn = pymysql.Connect(
host = '127.0.0.1',
port = 3306,
user = 'pythonflask',
passwd = '123456',
db = 'test',
charset = 'utf8',
... | [
"16211354@bjtu.edu.cn"
] | 16211354@bjtu.edu.cn |
015875eab2ca6d5377f1c3a7c24766b59260b81f | 59a32c1f34b3faa60d26f9cb48cd17f0f2c9df7c | /RPS Game.py | 78204693550548ad601a0bc80d5c07b944aacac1 | [] | no_license | rajasekar-vel/python | 52b5ef73aac913b4a7a41d26fee0b2bd2460dad3 | 73a0b34492a3878374c9f069e5bf2c5b4c084bb1 | refs/heads/master | 2021-01-19T02:33:37.673143 | 2016-12-03T07:17:45 | 2016-12-03T07:17:45 | 64,589,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,178 | py | # RockPaperScissors Game (Validations needs to be added)
import getpass as gp
while True:
print "\nWelcome to Rock Paper Scissors\n"
inp = int(raw_input("What do you want to do ?\n 1) Start a new Game \n 2) Exit\n Your Option :"))
if inp == 1:
print "\nUse r (rock),p(paper),s(scissors) \n"
player1... | [
"noreply@github.com"
] | noreply@github.com |
df9d3a446db760b6a0eac1890c697315b556e221 | 649bd422025e421d86025743eac324c9b882a2e8 | /exam/1_three-dimensional_atomic_system/dump/phasetrans/temp152_6000.py | 7a080d72fc6285918249e58f56891af455243f01 | [] | no_license | scheuclu/atom_class | 36ddee1f6a5995872e858add151c5942c109847c | 0c9a8c63d9b38898c1869fe8983126cef17662cd | refs/heads/master | 2021-01-21T10:52:28.448221 | 2017-03-07T23:04:41 | 2017-03-07T23:04:41 | 83,489,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68,790 | py | ITEM: TIMESTEP
6000
ITEM: NUMBER OF ATOMS
2048
ITEM: BOX BOUNDS pp pp pp
-2.5726909140137622e+00 4.9772690914007427e+01
-2.5726909140137622e+00 4.9772690914007427e+01
-2.5726909140137622e+00 4.9772690914007427e+01
ITEM: ATOMS id type xs ys zs
1452 1 0.0679786 0.118804 0.0641003
1030 1 0.142102 0.194386 0.166033
1678 1 ... | [
"scheuclu@gmail.com"
] | scheuclu@gmail.com |
8abd6161abee9987cd28b2f6b50598bca379b4c9 | 28c870538e1ab91ca5b094bd9b25ee11b22862f1 | /Other/dictmaker.py | 3c3a1c5c0e4df379068c6c9b533fa0fd35a66f97 | [] | no_license | willdunn1988/Python-Dust-Codes | 3ff360e55b23ad6ccc58e490f91b2ac511c550a6 | 64c45925acc28dc857f3f6153e86700468802326 | refs/heads/master | 2020-04-06T15:31:59.741301 | 2018-11-05T20:37:37 | 2018-11-05T20:37:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | # -*- coding: utf-8 -*-
"""
turning text file into inline dict
"""
import numpy as np
| [
"oliver.price.15@ucl.ac.uk"
] | oliver.price.15@ucl.ac.uk |
5953a5ca3576156bf115f93a7145dc2ae6180483 | b7640dc73ff794b9621b9d50d5d35f5dd720dea7 | /progress_bar/cpuprogress.py | c32cd8c438ae064e89ee2a7d52ffccd40fa297db | [] | no_license | min19828257/PyqtTools | 41211c749fee77efc089ae97f36dc0dd281e2791 | 06beaa7886b8bb7cea179db261bc50e07af39d33 | refs/heads/master | 2022-11-14T23:12:04.096548 | 2020-06-18T06:11:12 | 2020-06-18T06:11:12 | 269,556,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,043 | py | import sys, threading, time, random
from PyQt5.QtWidgets import QWidget, QApplication, QProgressBar, QVBoxLayout, QHBoxLayout, QPushButton
s = threading.Semaphore(3)
class thr(threading.Thread):
def __init__(self, pBar):
super().__init__()
self.pBar = pBar
def run(self):
s.acquire... | [
"kimminsu-94@nuvilabs.com"
] | kimminsu-94@nuvilabs.com |
9d6c988e7bde9d98e5e830d35bb62790a94112f1 | c58e4faa4851bf8d998b957b10efd830a8165531 | /automate boring stuff/var scopes.py | 1226f0368cebb96d37ecbd98168141574994507d | [] | no_license | tildesarecool/ReallyHadtoPython | d2fcea54f8c8b9e4476b576682b2b576c91587c8 | e0abb4e3e9efcb5f7338429c9a4de9f0c36022b6 | refs/heads/master | 2023-07-24T18:24:47.545154 | 2023-07-22T01:00:11 | 2023-07-22T01:00:11 | 165,155,289 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | # global variable
spam = 42
def eggs():
# local vaariable
spam = 42
# not supposed to onflict since different scopes
def spam():
# eggs = 99
# bacon()
eggs = 'Hello'
print(eggs)
def bacon():
ham = 101
eggs = 0
eggs = 42
spam()
print(eggs) | [
"tildesare.cool@gmail.com"
] | tildesare.cool@gmail.com |
2a00ed6c5e049ee4620344d4fb310bfc0654281d | 74912c10f66e90195bf87fd71e9a78fa09f017ec | /execroot/syntaxnet/bazel-out/local-opt/bin/dragnn/tools/segmenter_trainer.runfiles/org_tensorflow/tensorflow/contrib/grid_rnn/python/ops/__init__.py | fe1f5c47cb4acf5a8849d044c967729708723048 | [] | no_license | koorukuroo/821bda42e7dedbfae9d936785dd2d125- | 1f0b8f496da8380c6e811ed294dc39a357a5a8b8 | 237fcc152ff436f32b2b5a3752a4181d279b3a57 | refs/heads/master | 2020-03-17T03:39:31.972750 | 2018-05-13T14:35:24 | 2018-05-13T14:35:24 | 133,244,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | /root/.cache/bazel/_bazel_root/821bda42e7dedbfae9d936785dd2d125/external/org_tensorflow/tensorflow/contrib/grid_rnn/python/ops/__init__.py | [
"k"
] | k |
68d1e6d7b2e4f62368c66cc12f92988222360a43 | b1962b701230e8fe3235676b6a9a659b1ad921ef | /app/route/route1/models.py | bb9c977cd8cfd4a7d72eeda587a6f38d85ac85ae | [] | no_license | volgoweb/wt | 8e08dc0ff83ac120992bd81c209a420b207df966 | 3a88b8d7d6e1f925b363bfecb94008e14d15943f | refs/heads/master | 2021-01-23T09:29:42.209757 | 2016-02-05T21:24:10 | 2016-02-05T21:24:10 | 42,570,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,063 | py | # -*- coding: utf-8 -*-
"""
Маршрут для форумки.
Контент-менеджер создает инфоповод.
Автор пишет по инфоповоду заголовок и текст.
Контент-менеджер подбирает картинки.
Корректор проверяет и исправляет ошибки.
Контент-менеджер публикует.
"""
import json
import datetime
from django.db import models
from django.core.urlres... | [
"volgoweb@bk.ru"
] | volgoweb@bk.ru |
8e4b77ddb7d037b20bf198e27c45417431a32c98 | 3560e52e1297c4ac4fb29c8cd2e8c1c5328e854c | /tests/test_v3d.py | 76b7f6559988b4bcd96dcc601c35ab01f589b84d | [] | no_license | FREEWING-JP/py-videocore6 | 31ddb0acbe687a5d5ff3d4ce72c741ce3861739b | 3c407a2c0a3a0d9d56a5d0953caa7b0a4e92fa89 | refs/heads/master | 2022-11-20T10:11:09.322877 | 2020-06-21T13:24:48 | 2020-06-21T13:24:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,169 | py |
from videocore6.drm_v3d import DRM_V3D
from videocore6.v3d import *
def test_v3d_regs():
with DRM_V3D() as drm:
try:
with RegisterMapping() as regmap:
assert regmap[HUB_UIFCFG] \
== drm.v3d_get_param(DRM_V3D.V3D_PARAM_V3D_UIFCFG)
as... | [
"ysugi@idein.jp"
] | ysugi@idein.jp |
f1a2a2fc6e09a4b931f65e9c25f5352a8bb7a6c8 | 766a7bc09fd1cfc1417a13cd2dde10c88ada0332 | /aula36 - Classes/arquivo.py | ca96e8bd29a07b610c26a4262c449a0ba1903e0c | [] | no_license | rafaelzottesso/2019-ES-Algoritmos | d44863d61ff021b93fa2031b135972d9cd701d4c | 78ef7d5916316825cf44b69de316603d0e5df31a | refs/heads/master | 2020-04-28T19:23:39.861145 | 2019-11-07T00:57:11 | 2019-11-07T00:57:11 | 175,509,135 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 840 | py | from Aluno import Aluno
def exibirAluno(a):
print("Aluno:")
print("Nome: ", a.nome)
print("Idade: ", a.idade)
if(a.status == True):
print("Status: Regular")
else:
print("Status: Não matriculado")
print("{}/{}/{}".format(a.dataNasc.dia, a.dataNasc.mes, a.dataNasc.ano))
alu1 = Al... | [
"rafael.zottesso@ifpr.edu.br"
] | rafael.zottesso@ifpr.edu.br |
0bdcaa08e375a4a4676049db21ee6f3991a72a00 | bdca64dafb7c7057638e2cd288a54366e2dd1f57 | /t/provider_test.py | 7d43d8378b13636ffdc299f72648707acbc4ecec | [
"Artistic-2.0"
] | permissive | gsnedders/Template-Python | 9affdccf9cf182acc63983bf61e32a2c9d77cfcd | 4081e4d820c1be0c0448a8dcb79e0703066da099 | refs/heads/master | 2023-04-02T17:25:48.030020 | 2019-03-13T16:32:33 | 2019-03-13T16:32:33 | 44,178,806 | 0 | 3 | Artistic-2.0 | 2020-10-24T23:12:52 | 2015-10-13T13:39:58 | Python | UTF-8 | Python | false | false | 7,920 | py | import os
import time
from template import Template
from template.config import Config
from template.provider import Provider
from template.test import TestCase, main
# To test the MAX_DIRS runaway limit:
Provider.MAX_DIRS = 42
def delivered(provider, file):
try:
provider.fetch(file)
return True
except... | [
"eefacm@gmail.com"
] | eefacm@gmail.com |
0959aab41ac434544666eb6577aef9bdf42ffe36 | 33bd504bc480d58572e0ffb466c2d11f8447f5d5 | /__init__.py | 9fb9f3e438ae17e3b864ca1a1649e323db7fbb06 | [] | no_license | barberj/configsmash | aedced9afd4d55db2159055b78d6e8e20909e23d | 23150046a217bbe72d7cf20e846f65278efc3396 | refs/heads/master | 2020-12-24T17:26:01.865370 | 2012-07-10T14:51:50 | 2012-07-10T14:51:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33 | py | from csmash import ConfigSmasher
| [
"rranshous@gmail.com"
] | rranshous@gmail.com |
59796d87c67d64d56a06a6d90f2ad4c83df47986 | 331460bcb59700d9301356cdf48c0230364b5984 | /programmers/level1/[월간 코드 챌린지 시즌1] 두 개 뽑아서 더하기.py | cb8f81e5f0db7c58fe030b74a4c5727848db116a | [] | no_license | leeyongjoo/solved-algorithm-problem | c109dbf272df59ba1d79e3da825a4e75f98085a1 | 6a0f8424b95283ca16f3e5f84904a8fcd5bd3eab | refs/heads/master | 2023-07-11T20:36:32.389618 | 2021-08-23T13:54:17 | 2021-08-23T13:54:17 | 283,757,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | # https://programmers.co.kr/learn/courses/30/lessons/68644?language=python3
def solution(numbers):
numbers_set = set()
for i, num1 in enumerate(numbers):
for num2 in numbers[i + 1:]:
numbers_set.add(num1 + num2)
return sorted(list(numbers_set))
if __name__ == "__main__":
print(solu... | [
"2yongjooo@gmail.com"
] | 2yongjooo@gmail.com |
45ad6a6eeb7e2e78058a9e52d2ca2e1ac076beed | c74795e34b0d73acc8fe48442f902bc33a55bf1d | /face_recog/json_persistent_storage.py | 9facf8f4f722fc8138fb9e19bd9b45ca5fe59a75 | [] | no_license | gargimahale/Facial-Recognition-System | 5fca06cf7cb579f82ad219974ba3117e6ce94169 | c2791136061b261f41e081bdf792636937e20760 | refs/heads/master | 2023-03-09T04:27:42.746789 | 2021-02-19T08:17:53 | 2021-02-19T08:17:53 | 338,694,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,566 | py | # ---- coding: utf-8 ----
# ===================================================
# Author: Gargi Mahale
# ===================================================
"""Description: Class to handle persistent data storage.
This uses simple JSON file to save data.
Usage: python -m face_recog.json_persistent_storage
"""
# ======... | [
"gargimahale102@gmail.com"
] | gargimahale102@gmail.com |
b3f3201bb1ba035d2931efab0dea17159c521f57 | 5c2afeddefa536000aefff2c5d98838084c7d89d | /meta_nmt3.py | d572805c1d7b68470831cd13e94e226f362d05a2 | [] | no_license | suzy0223/MetaNMT | 8eca88a0c5a171f9ed770eadfa0cb30820f4c4d0 | 57d8e909059496c4ba3cfb1ffaf3c744fbd14810 | refs/heads/master | 2020-06-02T00:12:37.616257 | 2018-05-21T09:36:46 | 2018-05-21T09:36:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,171 | py | # encoding: utf-8
import torch
import numpy as np
from torchtext import data
from torchtext import datasets
import revtok
import logging
import random
import argparse
import os
import copy
import sys
import math
import time
from ez_train import export, valid_model
from decode import decode_model
from model import Tra... | [
"thomagram@gmail.com"
] | thomagram@gmail.com |
c4378cba74b7d6321ffb49108aa43909835a7ebb | 8a85e0d61a453bbaae97ad9779629a94574c7b9d | /data structure/OrderedList/orderedlist.py | f6f7447fc64f3eeab75a85758c8cd07322ac28ef | [] | no_license | bi4ok/python-lessons | 41c517e999937dc4386d4eeb592ec8cffdd49500 | 77dd9e7aa49322efd27cf2eaf8191796be3c8194 | refs/heads/master | 2021-07-21T14:15:20.197366 | 2020-04-26T06:58:20 | 2020-04-26T06:58:20 | 150,083,416 | 1 | 0 | null | 2019-10-16T09:13:07 | 2018-09-24T09:59:30 | Python | UTF-8 | Python | false | false | 4,635 | py | class Node:
def __init__(self, v):
self.value = v
self.next = None
self.prev = None
class OrderedList:
def __init__(self, asc):
self.head = None
self.tail = None
self.ascending = asc
def compare(self, v1, v2):
if v1.value < v2.value:
ret... | [
"bi4ok23@gmail.com"
] | bi4ok23@gmail.com |
2a754e7b75c07877266a10a9435c5ec9b2451e95 | cbd77d724f2d167521411e8b190ac9996c51e400 | /snpMapping/read.py | 6fadfe0e83476b2939dec1adc7e5c630e1753d97 | [] | no_license | gersteinlab/HotCommics | f9852af4bf76edff11412766b1ce0b5f204c94d9 | 03e95d037a68aae3ea798a90dafd10b9d7caa594 | refs/heads/master | 2020-04-14T01:22:14.393873 | 2019-09-05T18:27:37 | 2019-09-05T18:27:37 | 163,558,616 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,603 | py | import sys
import os
def extractPDBInfo(input1,input2):
""" read the PDB file and chainId to map the residue serial number with residue number & chain info """
keyList = []
valueList = []
pdbTups = ()
pdbInfoMap = {}
index = 0
fileName = open(input1,'r')
if fileName:
for... | [
"noreply@github.com"
] | noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.