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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f4a498b737ad2dc6cb3637447f65439204746ae8 | c7fccea6d2d02ac92a28ed29377d88b1c7648d52 | /MQTT_SHT31.py | 325667a58683324c4124faa4017e7ba109ed9f19 | [] | no_license | GrantBrown1994/SensorBox | d201c2769759e2d87daaa63089789686394b03af | e3eb319227a9667279adafa4997462d756496dbf | refs/heads/master | 2021-05-16T00:43:36.508554 | 2018-05-25T17:11:38 | 2018-05-25T17:11:38 | 106,970,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,751 | py | import smbus
import time
import paho.mqtt.client as mqtt
import sys
username = "25476c20-af7d-11e7-bba6-6918eb39b85e"
password = "2c33743aed57caee5780d2252f9d9319d0d64bfe"
clientid = "e1a8cfd0-b018-11e7-bd7e-3193fab997a8"
mqttc = mqtt.Client(client_id=clientid)
mqttc.username_pw_set(username, password=password)
mqttc... | [
"noreply@github.com"
] | GrantBrown1994.noreply@github.com |
4372d2665e92a011870b6e58af6f95b071f5b1d3 | c691d08794cb55c86b59873c8077e8a03cc1ba0a | /odata/tests/test_nw_reflect_model.py | 0c24c0f57ef4632cb7e67ba923f1987948e05c7d | [
"MIT"
] | permissive | i39/python-odata | 4c828b36bfd569a5ed1de860deb002403415d90c | 0c16bd188b0962360914eacf20483f7703843144 | refs/heads/master | 2021-05-11T02:31:50.493989 | 2018-01-21T21:03:16 | 2018-01-21T21:03:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,016 | py | # -*- coding: utf-8 -*-
import unittest
from odata.service import ODataService
url = 'http://services.odata.org/V4/Northwind/Northwind.svc/'
Service = ODataService(url, reflect_entities=True)
Customer = Service.entities.get('Customer')
Product = Service.entities.get('Product')
@unittest.skip('unavailable')
class ... | [
"tuomas.mursu@kapsi.fi"
] | tuomas.mursu@kapsi.fi |
81d516a9eb634a50a882dd4b4f7cdb158ce6b6f1 | c7bc23596a15ecf6e036f5e3e5839a6bc0c99d83 | /tpot_wrapper.py | 5651321901545f22765c2c9112167570c2193299 | [
"MIT"
] | permissive | inovex/automated-feature-engineering | b49f8648c708d6515d26be98eebb993fa7e910d0 | 0c21690397a2cfcd0ed96f5a8be6f9ba2f370d7e | refs/heads/master | 2022-11-23T17:18:55.937270 | 2020-08-05T13:43:52 | 2020-08-05T13:43:52 | 285,264,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,679 | py | import argparse
import os
import pickle
import time
from sklearn.metrics import mean_squared_error
from sklearn.metrics.scorer import make_scorer
from tpot import TPOTRegressor
from Data import DataHandler
from tpot_configuration import regressor_config
class TpotWrapper:
def __init__(self, dataFunction, genera... | [
"jmeier@inovex.de"
] | jmeier@inovex.de |
22b68903022bfdd23bbd381ac4811f5ede188da6 | 1e3c9d8e9c959e2b2f0a90a95cf07dbaab3f5f22 | /mrp.py | 7409e30f216cbff8b135587009f0ef370e645583 | [] | no_license | vietnq68/mrp | d08a5bb4dc49944b65897ff278d7a1fdd54d746d | 9f198b1bb23746321c57d5bde077ec953359d0a5 | refs/heads/master | 2021-01-23T19:11:47.404671 | 2017-10-04T02:20:36 | 2017-10-04T02:20:36 | 102,811,260 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,664 | py | from pulp import *
import data_24
import data3
import data4
bom = data_24.data['bom']
materials = data_24.data['materials']
# needed number of each part for the level that part appears
# for example ['A_1','A_2','B_1',...] is number of A in level 1,2 and number of B in level 1
lp_vars = []
# variables for Simplex pr... | [
"vietnq69@gmail.com"
] | vietnq69@gmail.com |
ddb41439d20acf8f01315a0d0c0f3e1b6b95ea71 | 80691ad524c7d466d354ad2f36f44b8d354199f9 | /calculo-secante.py | f9742274fb318d6391dfa377a3054d1a691b532a | [] | no_license | BrunoSouza22397/aulas-facul | 5ff442415ae3db4f65a06fea8710e9fe661ebf77 | 02985a47ce2b012de8effd803b444d5f9e8467a1 | refs/heads/main | 2023-03-23T16:19:26.193443 | 2021-03-19T01:49:52 | 2021-03-19T01:49:52 | 348,151,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 899 | py | #recebe valor x e funcao (ex.: x³+2x²+1) e retorna o valor de f(x)
def funcao(x, func):
x = str(x)
func = func.replace("x",x)
result = eval(func)
return result;
#calcula raiz de função utilizando o método de secante
#recebe x0 e x1 como valores iniciais, TOL como critério de parada, N como núme... | [
"noreply@github.com"
] | BrunoSouza22397.noreply@github.com |
23165ad0aae4c5436e09829ae0ed3a254cd1866f | 4960036fd0b875527c2e749b75680fe4a80177d6 | /server/server/migrations/migrations/add_root_edition_037.py | 20ee4fb7533558301ec3d863ae5f13f052976317 | [] | no_license | suttacentral/suttacentral | ab62257d56c056b361d39a27029a94c2accb58ae | f6c4eb768c0ad8714a6b0a93d0160144048c5e7c | refs/heads/master | 2023-08-31T21:51:06.761377 | 2023-08-29T03:35:25 | 2023-08-29T03:35:25 | 89,286,697 | 133 | 31 | null | 2023-09-14T12:09:05 | 2017-04-24T21:00:39 | JavaScript | UTF-8 | Python | false | false | 299 | py | from common.arangodb import get_db
from migrations.base import Migration
class SecondMigration(Migration):
migration_id = 'add_root_edition_037'
tasks = ['create_collections']
def create_collections(self):
db = get_db()
db.create_collection('root_edition', edge=False) | [
"hd2935@qq.com"
] | hd2935@qq.com |
67ae476915049d80e94eaebfb3693d53042ab9c4 | 4307e838540d242d72a2c212780edcd30197325f | /app.py | 68b89506ff9e148289eb40dea9681552d698c0ab | [] | no_license | jsclose/timeline_project | 71cf662fcd3cf7ff82f90db15c8f72a54c596c02 | 0f6aa435bf21228dbe43d511a9c6d011e7e6fc52 | refs/heads/master | 2021-01-19T19:47:46.080653 | 2017-04-24T14:07:51 | 2017-04-24T14:07:51 | 88,449,831 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | from flask import Flask, render_template
from extensions import *
import controllers
import config
# Initialize Flask app with the template folder address
app = Flask(__name__, template_folder='templates')
# Register the controllers
app.register_blueprint(controllers.main)
app.register_blueprint(controllers.search)
a... | [
"jsclose@umich.edu"
] | jsclose@umich.edu |
43e5919ac437c4fe278646de9ff1514277ae0018 | caca4763980dc10b47a8b3a701a5476bd72cb55a | /venv/bin/alembic | 7b783a9a86763c5af34f78fd7c691a124f06c512 | [] | no_license | igor-kachanov888/siteFastAPI | f8445d7415a7747970c948220ea139ca4def43af | 820c71b94e21321f19cdbd8df209def44529a67f | refs/heads/master | 2023-05-02T09:23:53.722075 | 2021-05-23T09:42:20 | 2021-05-23T09:42:20 | 368,632,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | #!/home/igor/PycharmProjects/siteFastAPI/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from alembic.config import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"igor.kachanow@yandex,ru"
] | igor.kachanow@yandex,ru | |
83114007c9040ab96740953a3d82a7e8a98ea666 | 5b393000f921fc8ff58b9039066a7d21ad222a7c | /train_encoder.py | 3500dbbacfbcfdea2c61c48c3d1fedcd5d5cbd6d | [] | no_license | Plainwhites/Graduate | bfa66ec76206041ffaf6cb99a7dde96e904e684a | e4be4647f2fee1f78ee48ee6a75de03edd1dbb7b | refs/heads/master | 2021-05-11T11:37:41.409206 | 2018-02-03T17:35:21 | 2018-02-03T17:35:21 | 117,642,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,094 | py | # LSTM-autoencoder
from reader import *
from LSTMAutoencoder import *
# Constants
# batch_num = 10
# hidden_num = 512
# step_num = 43
# elem_num = 60
iteration = 10000
# train data
folder = '/home/zy/Data/Florence/'
data = read_all_file(folder=folder)
config = Config(
hidden_size=1024,
elem_size=3*SKELETON... | [
"noreply@github.com"
] | Plainwhites.noreply@github.com |
6e27170626bd5d4c4cb409cc4fe8e7ed80e75715 | dc9f2638209a9be235a1c4acc44fe2a26256c4b4 | /venv/projects/lib/python3.8/site-packages/pip/_vendor/chardet/mbcharsetprober.py | f875974d3c29050ff39044e0bf631df473d0e087 | [] | no_license | alwinruby/RealWorld | 4f5fcaed68fdd2d9fc37f5973fec365195cb3e9e | ec446f96f3545cb847429b5e33cefdc4f00ce432 | refs/heads/main | 2023-08-13T10:28:40.528047 | 2021-10-10T14:58:23 | 2021-10-10T14:58:23 | 408,079,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,413 | py | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is Mozilla Universal charset detector code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 2001
# the Initial Developer. All R... | [
"alwinsolanky@gmail.com"
] | alwinsolanky@gmail.com |
95b09bf9b3e4db89414199c59be246b83df7e9f0 | 835881ade89eaff933f81d186e69fcf9695d9392 | /bolero/utils/setup.py | dcce793f7c39de9bdf163a6985c1d62c94056aed | [
"BSD-3-Clause"
] | permissive | MMKrell/bolero | 9e056a88aa89332762c0f06d4f8e43fc4ac64018 | 0e011de35f2b364bb3bb7509bc38491762026643 | refs/heads/master | 2021-01-21T15:19:20.012273 | 2017-05-19T13:38:47 | 2017-05-19T13:38:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | def configuration(parent_package="", top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration("utils", parent_package, top_path)
config.set_options(ignore_setup_xxx_py=True,
assume_default_configuration=True,
delegate_options_t... | [
"afabisch@informatik.uni-bremen.de"
] | afabisch@informatik.uni-bremen.de |
0fa87520e685f0ea8502ad09604969b26f0a7f5c | b5d23f3744ad581191cbc79a9210a7fb5c3a7ebf | /PasswordGen.py | 9907c6daee59aeec984cc701470d50ebd439bcb1 | [] | no_license | Mose16/Password-Gen | 206d18cb16de77dcb9c47898a174297595e8a2a3 | 065d0eb0f87665f29e4dbb91db172df95950d2c6 | refs/heads/master | 2020-04-22T06:42:23.259717 | 2019-02-11T21:09:51 | 2019-02-11T21:09:51 | 170,199,662 | 0 | 0 | null | 2019-02-11T21:09:52 | 2019-02-11T20:46:33 | Python | UTF-8 | Python | false | false | 452 | py | from random import randint
ALPHABET = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"]
length = int(input("How long do you want the password?"))
password = ""
for num in range(length - 2):
if randint(0,4) == 1:
password += ALPHABET[randint(... | [
"noreply@github.com"
] | Mose16.noreply@github.com |
18a3e7aa60ae9672e28b4e79b3c7a6a7d495fb82 | 458ee492ccd1084894db3d5954ebeda0c278a35c | /calibration/NUC/take_nuc_data_double_cam.py | c72d699d72f1f08d9148a4feaa036c24e1cfe8ef | [] | no_license | Polarization-Lab/IRCSP | 7295b53b99430af8293facf3c420e786286e3944 | 4fa811489660dd7a189f8d46f0ffd38dd54e3bfa | refs/heads/master | 2023-08-08T17:24:21.404050 | 2023-07-19T23:57:10 | 2023-07-19T23:57:10 | 288,764,467 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,876 | py | # -*- coding: utf-8 -*-
"""
single_cam_mono_sweep
Created on Wed Dec 9 13:12:18 2020
This script will sweep over wavelength on the monochomator
for a single measurement configuration.
This includes image capture for a single camera (no MS)
And a single polarization state (unpol, H,V, ect)
Output will be saved as a h... | [
"khart@optics.arizona.edu"
] | khart@optics.arizona.edu |
670361e09280107612186517565f9ae02b2d3f78 | bacad9c336779bacbbb05acb60858b295452dc14 | /9. Pythonicness & Packaging/some_script.py | 30cbe6700017d3a2b84a4dcf763bacc2e11ae837 | [] | no_license | neapps/Python-3-Tutorial | b2a876735fe484dc9322e1189ab811b696b808e1 | 9e76d6d341bc08a98d0adba8981f4cc7d81881b2 | refs/heads/master | 2020-07-30T09:21:54.446276 | 2019-01-20T13:50:16 | 2019-01-20T13:50:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39 | py | import sololearn
sololearn.function2() | [
"muhazharrasyad@gmail.com"
] | muhazharrasyad@gmail.com |
b8b4e649026b77d08e7e7203b0991ac019e4822c | f1d7e7d6501a51213c7a14626a76ae4e2efacf99 | /arraypa/backends/jax.py | 62f602c16f58f82a676ce74aa1c9a860114afe1e | [] | no_license | bchetioui/arraypa | 0cd4c0357199244925fc05722f618315c0c322fa | 530edb18ceb3309bf93ab8d6fe0f8c0563b38a6b | refs/heads/main | 2023-06-08T11:29:39.297501 | 2021-06-28T15:01:20 | 2021-06-28T15:01:20 | 379,742,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | from arraypa.core import Backend
import jax.numpy as jnp # type: ignore[import]
class _JaxBackend(Backend):
ArrayTy = jnp.ndarray
def add(self, lhs, rhs):
return jnp.add(lhs, rhs)
def mul(self, lhs, rhs):
return jnp.multiply(lhs, rhs)
def cat(self, lhs, rhs):
return jnp.co... | [
"chetioui.benjamin@gmail.com"
] | chetioui.benjamin@gmail.com |
de0d9e57aa229e103b832ce6633de3276c95e900 | 1873cbf7ba52f4a200d2ea45eb936c4e32baed79 | /Numerical_Analysis/Solutions/set13_task5.py | 155c844a155c45a258e611d95367b804f3ae0ab8 | [] | no_license | Tomatosoup97/Notebooks | 80e8cfa99f47a232ce011050252261bfc24a8f3e | 7ec1a0ad323ab9a9fb1ecbb429ce37c80ca64e2d | refs/heads/master | 2020-05-03T06:36:02.353850 | 2019-05-28T11:24:38 | 2019-05-28T11:24:38 | 178,476,943 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 963 | py | import numpy as np
import math
def romberg(f, a, b, n, R):
h = b - a
R[0][0] = 0.5 * h * (f(a) + f(b))
print(R[0][0])
for i in range(n):
h *= 0.5
cur_sum = 0
# cur_sum = sum(map(lambda k: f(a + k*h), range(1, 2**i-1, 2)))
for k in range(1, 2**i-1, 2):
cur_... | [
"mu@qed.ai"
] | mu@qed.ai |
09e5f30c3292cef9d37a74ce9a2db23f11a27306 | 089441983b42b39954da5fae2623d831b41edcc9 | /forms.py | 5c151a0992206423afcd008457063cdaec031790 | [] | no_license | dhruvil3397/Practical-Logicrays | 0b778369107ad33a3f6c16add23b03cbf965b27d | b89ce1089e7c7d13d5a91efa58695cf9cdd3166e | refs/heads/main | 2023-08-07T15:32:35.733397 | 2021-09-16T05:47:24 | 2021-09-16T05:47:24 | 407,035,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | from django import forms
from .models import Get
class ContactForm(forms.ModelForm):
class Meta:
model = Get
fields = ["name","email","mobile"] | [
"noreply@github.com"
] | dhruvil3397.noreply@github.com |
09cf08934e7b30e1f6c77bbea8157410a33d745b | cd90252267040b070412354c6cc12c2aa06f1192 | /containers201/rootfs/usr/share/rhsm/subscription_manager/dbus_interface.py | 155458bc614b7eb56143b6a5d41d0e4a60c9e782 | [] | no_license | gurusus/containers-deep-dive | 2db55a95df41892d50ad64c2b4309a067ac57ac1 | 76b3dbeb21c84d9536dc47660e958da520815b9e | refs/heads/master | 2020-06-27T03:31:09.299433 | 2016-10-04T04:20:09 | 2016-10-04T04:20:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,989 | py | #
# Copyright (c) 2013 Red Hat, Inc.
#
# This software is licensed to you under the GNU General Public License,
# version 2 (GPLv2). There is NO WARRANTY for this software, express or
# implied, including the implied warranties of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. You should have received a copy of... | [
"root@rhel7.dc2.crunchtools.com"
] | root@rhel7.dc2.crunchtools.com |
c2a0cc11bd0494b27bfb02ee4621278f7af8f7e2 | fca84e471f3e8f0fc9d923b81fd8408602029760 | /road_traffic/road_hw_mapping.py | 1b421cf3b91ec5b71ab7cbe36fc691b26ca3d5ea | [] | no_license | bass3m/traffic_notify | 9f156b0011e46f020fb89f18132eedf655ca249e | 264dcc2c6b21fd75af4e37a6a8288d951aeebf6d | refs/heads/master | 2021-01-01T06:26:54.067672 | 2013-05-23T04:26:30 | 2013-05-23T04:26:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | # probably want to get this from somewhere ?
hw_map = {"Hw 85" : 12,
}
| [
"bassem@outlook.com"
] | bassem@outlook.com |
4d870a6b6efa673364b7659f1e6da51827500560 | aeb69456c4e6f2238c947ae426d346aad033d598 | /python/5.最长回文子串.py | aed9593aa7719e8a3cc58e203e3ff0564025083e | [] | no_license | ElonXie/LeetCode-Practice | f2c345cadce8d60515343ee94f52de5f34477d81 | 7a54fc8f85e3e7f937bb504a8f4c6de6dd7da3e2 | refs/heads/master | 2021-05-16T21:09:11.231951 | 2020-06-21T03:39:12 | 2020-06-21T03:39:12 | 250,470,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,450 | py | #
# @lc app=leetcode.cn id=5 lang=python3
#
# [5] 最长回文子串
#
# https://leetcode-cn.com/problems/longest-palindromic-substring/description/
#
# algorithms
# Medium (29.08%)
# Likes: 1950
# Dislikes: 0
# Total Accepted: 222.4K
# Total Submissions: 762.2K
# Testcase Example: '"babad"'
#
# 给定一个字符串 s,找到 s 中最长的回文子串。你可以假... | [
"sdaxdh@163.com"
] | sdaxdh@163.com |
23f7b483d241fff198b2e52dcceb4f933c06704b | 3cb11b1d88f0ceff0e8e38a414a93e5935887966 | /dedup/distro.py | 6d0cafa807d052882eacd12dec89a25dbe4c8fe8 | [
"WTFPL"
] | permissive | Kahsolt/pic-dedup | 82aaa168f4e2ef4242acb8f5be9ea4d261f4aacc | 91bc2b6e979b57719103b5c62b859311bd37fdd0 | refs/heads/master | 2021-07-11T14:19:04.329014 | 2020-08-14T03:09:14 | 2020-08-14T03:09:14 | 190,917,725 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,527 | py | #!/usr/bin/env python3
import os
import re
import datetime
from . import PACKAGE_PATH
def assemble_distro(fout='dedup_standalone.py'):
_LOCAL_IMPORT_REGEX = re.compile(r'from \..* import .*')
_FILES = [
'__init__.py',
'settings.py',
'models.py',
'imgproc.py',
'utils.py',
'ap... | [
"kahsolt@qq.com"
] | kahsolt@qq.com |
eff44ce1869cc6d0c340bdadc54f92b6e8ba7f01 | 817f6b5a69b53599589b798b94efecd8ed1d8e17 | /exercises/1901100282/d07/mymodule/main.py | 2eb3cc635245118bc6dace1675a2ec08d1d02312 | [] | no_license | oneisonly/selfteaching-python-camp | 2422a16c0c9efe787f18fa48833b0bdc8e245982 | 2f26872d31c7392f9530ee1aa7be7958109aaec3 | refs/heads/master | 2020-07-04T23:17:39.750702 | 2019-12-03T04:38:43 | 2019-12-03T04:38:43 | 202,078,442 | 0 | 0 | null | 2019-08-13T06:24:02 | 2019-08-13T06:24:01 | null | UTF-8 | Python | false | false | 3,999 | py | text = '''
愚公移⼭山
太⾏行行,王屋⼆二⼭山的北北⾯面,住了了⼀一個九⼗十歲的⽼老老翁,名叫愚公。⼆二⼭山佔地廣闊,擋住去路路,使他
和家⼈人往來來極為不不便便。
⼀一天,愚公召集家⼈人說:「讓我們各盡其⼒力力,剷平⼆二⼭山,開條道路路,直通豫州,你們認為怎
樣?」
⼤大家都異異⼝口同聲贊成,只有他的妻⼦子表示懷疑,並說:「你連開鑿⼀一個⼩小丘的⼒力力量量都沒有,怎
可能剷平太⾏行行、王屋⼆二⼭山呢?況且,鑿出的⼟土⽯石⼜又丟到哪裏去呢?」
⼤大家都熱烈烈地說:「把⼟土⽯石丟進渤海海裏。」
於是愚公就和兒孫,⼀一起開挖⼟土,把⼟土⽯石搬運到渤海海去。
愚公的鄰居是個寡婦,有個兒⼦子⼋八歲也興致勃勃地⾛走來來幫忙。
寒來來... | [
"43633521+liujiayi0042@users.noreply.github.com"
] | 43633521+liujiayi0042@users.noreply.github.com |
aae01e5ea480127d1b556c6aea6273ee7d32d993 | cccf8da8d41ae2c14f5f4313c1edcf03a27956bb | /python/python2latex/writeLTXtextnormal.py | 2f9ea1c10c926e3827f58c7bf4835b22cb57fa58 | [] | no_license | LucaDiStasio/transpilers | e8f8ac4d99be3b42a050148ca8fbc5d025b83290 | c55d4f5240083ffd512f76cd1d39cff1016909b8 | refs/heads/master | 2021-01-12T01:57:00.540331 | 2017-11-01T13:59:55 | 2017-11-01T13:59:55 | 78,448,378 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,293 | py | # Autogenerated with SMOP
from smop.core import *
#
@function
def writeLTXtextnormal(filepath=None,args=None,options=None,*args,**kwargs):
varargin = writeLTXtextnormal.varargin
nargin = writeLTXtextnormal.nargin
##
#==============================================================================
# C... | [
"luca.distasio@gmail.com"
] | luca.distasio@gmail.com |
497a0d17e9b80f2eb4684371052158d5097cd94c | 95e4aa7ea67d37c38e521a46d1165a36516338c1 | /data.py | 2e1ac2b545eba7ce84963d97ece829f80d736152 | [] | no_license | ZeyuGaoAi/nucleiSegmentation | e7d0e97fce0b9fa8fd33d1ae2534595bc4afaa37 | c44362a5593d33f99d2a95105c2eecb1a44a3d3f | refs/heads/master | 2020-06-26T14:56:12.548876 | 2019-07-30T14:21:23 | 2019-07-30T14:22:07 | 199,663,940 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,630 | py | from __future__ import print_function
from keras.preprocessing.image import ImageDataGenerator
import numpy as np
import os
import glob
import cv2
import skimage.io as io
import skimage.color as color
import skimage.transform as trans
Sky = [128,128,128]
Building = [128,0,0]
Pole = [192,192,128]
Road = [128,64,128]
P... | [
"betpotti@gmail.com"
] | betpotti@gmail.com |
72009cd6fc5d27df6efcc011b7e639c8b38c1167 | 021fe11ddc9f28b39bbe5a0d23bffff6ff0f734d | /entertainment.py | 0eaa8925b76eb740f1efa873e22ba6f4131db443 | [] | no_license | AnnieLincy/fresh_tomatoes_movie_trailer_website | 6f70f4608ad0efc496b70ecaacf74e477f21d34a | f13bea6858defd7a863239e10f655413945397fe | refs/heads/master | 2021-06-30T17:56:47.844971 | 2017-09-14T04:28:54 | 2017-09-14T04:28:54 | 103,485,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,097 | py |
import fresh_tomatoes
import media
the_boss_baby=media.Movie("THE BOSS BABY","A matured small baby",
"https://upload.wikimedia.org/wikipedia/en/0/0e/The_Boss_Baby_poster.jpg",
"https://www.youtube.com/watch?v=O2Bsw3lrhvs")
bfg = media.Movie("The big friendl... | [
"noreply@github.com"
] | AnnieLincy.noreply@github.com |
a82cba3b032d7fae58e9cd2b2e97411d36c3d640 | f72f95cce172b5b06ebd41956510cf53238e29ea | /snippets/urls.py | 89d8a4c20aa7410a628948711d6d4f094f5766d1 | [] | no_license | sritambehera/snippets | d3d9a1f18645206faf4c676ccdb35f927eedcb8a | 295d14c95a9b2126cf3d8625c57565c043cfd9ab | refs/heads/master | 2022-12-11T04:09:16.103825 | 2019-09-20T11:02:55 | 2019-09-23T19:14:05 | 206,324,529 | 0 | 0 | null | 2022-12-08T06:07:16 | 2019-09-04T13:22:09 | Python | UTF-8 | Python | false | false | 1,125 | py | from django.urls import path, include
from rest_framework.routers import DefaultRouter
from snippets import views
router = DefaultRouter()
router.register(r'snippets', views.SnippetViewSet)
router.register(r'users', views.UserViewSet)
urlpatterns = [
path('', include(router.urls)),
]
'''
snippet_list... | [
"sritambehera110@gmail.com"
] | sritambehera110@gmail.com |
37e3a4cc222163f516595fe6e5f1b28d7b5ed921 | 41309eae711707844b715a7149dc450c98bea1ce | /clubadmin/shared/dialogs/Image.py | f42aa211a0f5f0bae5afa74b8ff070511ac948a9 | [
"MIT"
] | permissive | rpmoseley/clubadmin | 57f56a8cf1a7de1908a9fd47ca42d03a1c161dac | 35d0094ea5e97e8478ca021ab8e422cebbc26263 | refs/heads/master | 2021-05-12T15:49:16.646847 | 2018-01-12T17:40:46 | 2018-01-12T17:40:46 | 116,993,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | '''
This module provides the customised Image class
'''
import wx
class Image(wx.Image):
'''Provide an overloaded variant of the Image to add the support of labels'''
def __init__(self, *args, **kwds):
label = kwds.pop('label', None)
wx.Image.__init__(self, *args, **kwds)
if label is not None:
s... | [
"richard.moseley4@gmail.com"
] | richard.moseley4@gmail.com |
faf28195ec1f792c63f3bb9a91057cbee700d198 | 63c0b4d830d79ea11e48915fd192da7c888f5402 | /44.py | 55e53c74c52b589a1093b8bb6ed211087e68c613 | [] | no_license | sejje/sejje-euler | f9127a98f1860ce9c22f35ce2574263fc2ede762 | 2737b5bd93ef017c28c3ff1d2f498ef006302d5e | refs/heads/master | 2016-09-10T18:43:04.577965 | 2012-10-15T17:49:18 | 2012-10-15T17:49:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | import math
def pentagonal(n):
return n * (3 * n - 1) / 2
def is_pentagonal(n):
# if X is a natural number, return True
x = ((math.sqrt(24 * n + 1) + 1) / 6)
return int(x) == x
for i in xrange(1, 9999999):
if is_pentagonal(i):
for x in xrange(1, i):
if is_pentagonal(x):
if is_pentagonal(i - x):
... | [
"jesse.briggs@gmail.com"
] | jesse.briggs@gmail.com |
4a60de6be31da7bf31c87e44c1819edbb0b124a0 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_040/ch20_2020_03_05_18_36_09_760355.py | f61391c93f57ceb3a39f6885c928eb85d74c21f9 | [] | 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 | 182 | py | distancia=float(input("Qual distância você deseja percorrer: "))
if (distancia<=200):
print ("R$",(distancia:.2f*0.5))
else:
print ("R$",(200*0.5+(distancia:.2f-200)*0.45)) | [
"you@example.com"
] | you@example.com |
e64f4820312395912aa140973da3066ee6abffb6 | 96a76aee885037023ab37e1e5f0ef076c0740bac | /proofs_aggreg.py | b12d3ae70e9ef66cb82499d67592b0d070f2626f | [
"MIT"
] | permissive | rrtoledo/panic | 361cdbb7823cd5ee6232ee650884c8af9c1bc050 | 1218ca1aa777b28c1a53143694c98a7f728134e1 | refs/heads/master | 2022-11-20T19:50:20.872767 | 2020-07-24T19:11:53 | 2020-07-24T19:11:53 | 282,295,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,988 | py | from bplib.bp import G1Elem
from bplib.bp import G2Elem
from bplib.bp import GTElem
from petlib.bn import Bn
from gsproof import GSProof
from bsps import BSPS
from usps import USPS
from cca2_cs import CSEnc
from hashlib import sha256
def proof_sigi(gsp, X, Y, M):
"""" creates GS proof that a USPS signature verifie... | [
"noreply@github.com"
] | rrtoledo.noreply@github.com |
81df6b3c741f03920272dfa9dffe1c83c5fd169c | 729bf7c8bc3ee1f073cb390af6d47f653a8f66f3 | /Hackyeah/__init__.py | 022965f1807b20e11b2e62aa3f11d7057d5d24f8 | [] | no_license | danieljurczak/skarbnik-hackathon | 6f5c626a15299906a65b12dd585af8f95a90bb9b | 9157888d85c0d22ed57f861898318719998e9e43 | refs/heads/master | 2022-12-17T04:43:17.303233 | 2019-03-09T12:16:24 | 2019-03-09T12:16:24 | 158,933,513 | 0 | 2 | null | 2022-05-25T01:57:23 | 2018-11-24T12:19:34 | Python | UTF-8 | Python | false | false | 51 | py | default_app_config = 'skarbnik.apps.SkarbnikConfig' | [
"danieljur4@gmail.com"
] | danieljur4@gmail.com |
52b71bf750e768350bf69f21d94a78ff9ca35090 | 8a8463765239e923f00676ad26d7071275d0f462 | /project.py | ff8f9d28cfaea91911a54653d8b5efe2b66ac4a9 | [] | no_license | aparnamogallapu/yelp | e711821a756d8ddb1b8ab62ac3ef51035d672279 | c280ae4c757129f3498f851798cc3e1e6c8461b2 | refs/heads/master | 2020-06-29T07:02:15.809389 | 2019-08-04T08:48:10 | 2019-08-04T08:48:10 | 200,470,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,028 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jul 17 12:48:17 2019
@author: HP
"""
import pandas as pd
import numpy as no
import matplotlib.pyplot as plt
dataset=pd.read_csv("C:\\Users\\HP\\Desktop\\YELP BUSINESS\\yelp_business.csv")
data=dataset.copy()
dataset.info()
dataset.describe()
dataset.isna().su... | [
"noreply@github.com"
] | aparnamogallapu.noreply@github.com |
a4214f2be262f9ef0f986aad6da8ab0278710bfd | 0575425c3412e38b157ea597c3727f2fe8f111fb | /product_container/models/product_template.py | 97c82cee079bdefc1fb3e810e09589e98b9058dd | [] | no_license | qrtl/crh-custom | b3b49a36c4c7a8fb4591574ccb9ef249c831b496 | e4e807801ff42326bae53963b6fe5caf0849b00c | refs/heads/12.0 | 2023-05-30T20:28:26.375883 | 2019-12-12T05:41:23 | 2020-01-15T09:36:08 | 212,749,332 | 0 | 1 | null | 2023-05-12T09:18:59 | 2019-10-04T06:24:41 | HTML | UTF-8 | Python | false | false | 360 | py | # Copyright 2019 Quartile Limited
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import models, fields
class ProductTemplate(models.Model):
_inherit = 'product.template'
container = fields.Selection([
('bottle', 'Bottle'),
('keg', 'Keg')
], help="The value ... | [
"tashiro@quartile.co"
] | tashiro@quartile.co |
5b1b804ba412f88488a66775b1cd8af3b8f2a81e | 517d461257edd1d6b239200b931c6c001b99f6da | /Circuit_Playground/CircuitPython/Data_Logging/typing/typing_original_.py | 5b9aa66386ae0b84741b00930ee46fc0dee033a7 | [] | no_license | cmontalvo251/Microcontrollers | 7911e173badff93fc29e52fbdce287aab1314608 | 09ff976f2ee042b9182fb5a732978225561d151a | refs/heads/master | 2023-06-23T16:35:51.940859 | 2023-06-16T19:29:30 | 2023-06-16T19:29:30 | 229,314,291 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,283 | py | # Circuit Playground Express Data Time/Light Intensity/Temp
# Log data to a spreadsheet on-screen
# Open Spreadsheet beforehand and position to start (A,1)
# Use slide switch to start and stop sensor readings
# Time values are seconds since board powered on (relative time)
import time
from digitalio import DigitalInO... | [
"cmontalvo251@gmail.com"
] | cmontalvo251@gmail.com |
64d2855cd04459ab7a7b86a9e703c6518a7c19f3 | b580fd482147e54b1ca4f58b647fab016efa3855 | /host_im/mount/malware-classification-master/samples/not/sample_good666.py | 3687c9337e2f798525c72cf0779d606b08e582b2 | [] | no_license | Barnsa/Dissertation | 1079c8d8d2c660253543452d4c32799b6081cfc5 | b7df70abb3f38dfd446795a0a40cf5426e27130e | refs/heads/master | 2022-05-28T12:35:28.406674 | 2020-05-05T08:37:16 | 2020-05-05T08:37:16 | 138,386,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | import random
import re
import array
import textwrap
import readline
nterms = 195
n1, n2 = 0, 1
if nterms <= 0:
print("Please provide a positive integer.")
elif nterms == 1:
print("Fibonacci sequence upto", nterms, ":")
print(n1)
else:
print("Fibonacci sequence:")
count = 0
while 0 < 195:
print(n1)
nth = n1 +... | [
"barnsa@uni.coventry.ac.uk"
] | barnsa@uni.coventry.ac.uk |
eff1045a05c5f500f5639905ba8c923fe1ed7f46 | 9df5c483fc09843ca3be78ff68e40ba9dab8f830 | /setup.py | 67e73e0445d9194aceef825eea8fa446efa6367d | [
"Apache-2.0"
] | permissive | skytap/skytap-ansible-inventory | 968ff597f18290deb0a4102c519d6a9064ae04a0 | f01d5174bc4fd03c7f3e8e67a632012c4bfce534 | refs/heads/master | 2021-01-15T14:29:39.838948 | 2017-05-09T20:44:06 | 2017-07-31T00:39:54 | 43,448,039 | 4 | 3 | null | 2017-07-31T00:39:55 | 2015-09-30T17:33:08 | Python | UTF-8 | Python | false | false | 1,300 | py | from setuptools import setup, find_packages
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='skytap-ansible-inventory',
version='0.1',
description='Skytap A... | [
"nidd@skytap.com"
] | nidd@skytap.com |
224fb207ca9a27c14f0294bc89fd4cb9259e4438 | 481acefc8660ee456383844f1731eaa2e6055b0f | /t_6.py | e543af8b0a4b042ad25fae65e8c59b85ae4efd4d | [] | no_license | eugenmorok/Tasks_of_Py | 5378f06062fb7a0ee4faa1ec41a8842f5d7a9a9f | ca79fd3283ce93cbabe5d180e0461dd7c1f67d3c | refs/heads/main | 2023-01-01T08:19:30.843425 | 2020-10-22T04:09:42 | 2020-10-22T04:09:42 | 306,219,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | import sys
x = sys.argv[1].strip().replace(",", "").split()
x.reverse()
x = " ".join(x)
print(x)
| [
"64523467+eugenmorok@users.noreply.github.com"
] | 64523467+eugenmorok@users.noreply.github.com |
6730aafef63549f62e2673d9ec48a2b98ce7cfcc | d044e88e622d9f4ca350aa4fd9d95d7ba2fae50b | /application/dataentry/migrations/0192_auto_20210722_1359.py | 7e1c663d3fec4392b13dc51e6c16f22fc0f16cee | [] | no_license | Tiny-Hands/tinyhands | 337d5845ab99861ae189de2b97b8b36203c33eef | 77aa0bdcbd6f2cbedc7eaa1fa4779bb559d88584 | refs/heads/develop | 2023-09-06T04:23:06.330489 | 2023-08-31T11:31:17 | 2023-08-31T11:31:17 | 24,202,150 | 7 | 3 | null | 2023-08-31T11:31:18 | 2014-09-18T19:35:02 | PLpgSQL | UTF-8 | Python | false | false | 497 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.16 on 2021-07-22 13:59
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dataentry', '0191_auto_20210712_1433'),
]
operations = [
migrations.AlterF... | [
"scrishel@sbcglobal.net"
] | scrishel@sbcglobal.net |
72a02d4058f097330d8a686d847ee822cf924629 | 2007f537558467326feef6736475d29a1b7ad08c | /flask_project02/testPy/testMain.py | 504901db9096b698231c0b32da81a5c07f4dc649 | [] | no_license | tiakoe/Data_Visualization_System | 1c9512b0874b35ff62513fde29cd345ff4fbb0ee | c9996276d8546c9917eeefac6dcb43540f731b41 | refs/heads/master | 2020-05-05T13:14:50.075485 | 2019-04-08T06:10:50 | 2019-04-08T06:10:50 | 180,068,440 | 1 | 1 | null | 2019-04-08T06:06:36 | 2019-04-08T04:16:14 | JavaScript | UTF-8 | Python | false | false | 1,108 | py | import pymysql
import operator
import time
import calendar
from interval import Interval, IntervalSet
from datetime import datetime, timedelta
import json
from intervals import DateTimeInterval
db = pymysql.connect(user='root', db='mydb3', port=3306, passwd='XX', host='127.0.0.1', charset='utf8')
cursor = db.cursor()
... | [
"1457925832@qq.com"
] | 1457925832@qq.com |
fe1d8101b5ee617594d53d6177bf3575250263c7 | 45ab485b3e24a86a62f7c3b5654ae799433a88a2 | /lab9/lab9.py | 84473fe1cec900fa393c1fc9d05648efa0a7e3b1 | [] | no_license | elizabethsiegle/cs330_labs | 7fbe23d46ce890f8337e476d288dcd3e64a702bb | b63dae00e6d144961acd9f6c923859fb53017f8d | refs/heads/master | 2021-01-19T17:16:41.278988 | 2017-04-14T15:29:16 | 2017-04-14T15:29:16 | 82,430,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,836 | py | import urllib
import urllib.request
import requests
import re
PhoneticAna = {}
def soundexNaive(name, len=4):
sndx = name[0] #Keep the first letter
for i in name[1:]:
if i in "BFPV":
d = "1"
elif i in "CGJKQSXZ":
d = "2"
elif i in "DT":
d = "3"
... | [
"lizzie.siegle@gmail.com"
] | lizzie.siegle@gmail.com |
c218096f89e45e102cb1e2545d15dab1e9bd6169 | ecb5535a106fdedc9bf9513f39fb42f06f1106b8 | /funçõesI.py | 01ba3a4cd780a665639dd0e1870e0d52e8140c28 | [
"MIT"
] | permissive | ricardowiest/Exercicios_Python | 27d9351bc3dfcfdefe454886e1c2a46b78fbeeab | bed8e88d142379d5f09216f4a9f5b00f097bb8fb | refs/heads/master | 2022-12-14T07:21:53.260948 | 2020-09-03T17:23:50 | 2020-09-03T17:23:50 | 265,958,499 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | def potencia(base, exp):
pot = base ** exp
return pot
a = potencia (5, 6)
print(a)
def soma(n1, n2, n3):
return n1+n2+n3
print(soma(10, 33, 15))
def OpMat(n1, n2):
soma = n1 + n2
return soma, n1 * n2
a, b = OpMat(2, 3)
print(a)
print(b)
from random import randint
def dado():
num = ran... | [
"ricardowiest@gmail.com"
] | ricardowiest@gmail.com |
d67f9203a0dc7596348adc5a8fff909435b4c8c0 | a4fec1cb7723bf925ff19b5b1630708f90c60e59 | /UCSB_TS_slowcontrol/collapsible_widget.py | fce3f193b9f8a1c5b624de6b027a5acbe3c9bbb5 | [
"MIT"
] | permissive | RunzZhang/runze | d9e7fed392f5e8314d44454aa7191168ff68aa9f | a2a08c780d2312f031b69bc2d6e4e854e2bdb900 | refs/heads/master | 2023-08-04T13:52:15.409799 | 2023-07-28T18:24:22 | 2023-07-28T18:24:22 | 192,990,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,995 | py | from PySide2 import QtWidgets, QtCore, QtGui
import sys,random
class CollapsibleBox(QtWidgets.QWidget):
def __init__(self, title="", parent=None):
super(CollapsibleBox, self).__init__(parent)
self.toggle_button = QtWidgets.QToolButton(
text=title, checkable=True, checked=False
... | [
"52052572+RunzZhang@users.noreply.github.com"
] | 52052572+RunzZhang@users.noreply.github.com |
bf010df1f75dd40be74a35d5386c1c0ddd881547 | ac47b880e8dbd66c5ad1da40871c3336a6e67934 | /test/HandTrackingMin.py | 17fa09047fa97845ca59fdd344d0ae1d771eb04a | [] | no_license | sebastien-prudhomme/python | 6e94fd4a0afdc9337c2e082c54630e350d8ce406 | c69073c39d852cea69e095524b50fb807fb14cba | refs/heads/master | 2023-08-04T21:02:57.669194 | 2021-09-09T14:54:17 | 2021-09-09T14:54:17 | 404,734,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | import cv2
import mediapipe
import time
capture = cv2.VideoCapture(0)
mediapipeHands = mediapipe.solutions.hands
hands = mediapipeHands.Hands()
mediapipeDraw = mediapipe.solutions.drawing_utils
while True:
success, img = capture.read()
imgRGB = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
results = hands.proce... | [
"sebastien.prudhomme@gmail.com"
] | sebastien.prudhomme@gmail.com |
dacde4cdd20fb123305dd593fe4b5940f0a4caf1 | 25b0cca3405c74e4452750292c02e3878376fb6d | /TF2_customized_dataset.py | 8c588c457eefc016105a5cef33edf6d4e5010d00 | [] | no_license | shihezichen/openai | db508c3856e933af3bbfcf1d90fa1202e1f54890 | 82dceaa60f482c9756aec4245e3cea44e010ee79 | refs/heads/master | 2023-03-06T03:02:30.711894 | 2021-02-17T03:05:37 | 2021-02-17T03:05:37 | 266,487,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,156 | py | from PIL import Image
import numpy as np
import tensorflow as tf
from tensorflow.keras.preprocessing.image import ImageDataGenerator
import os
BASE_DIR = '/home/arthur/Downloads/MOOC_TF2.1/class4/class4/FASHION_FC/fashion_image_label/'
TRAIN_PATH = BASE_DIR + 'fashion_train_jpg_60000'
TRAIN_LABEL = BASE_DIR + 'fashion... | [
"noreply@github.com"
] | shihezichen.noreply@github.com |
f99a0d57cda761ce05b5619805a6cd2e49261cb7 | 716cab8785f70a22ef1dd78a4037f71ed9f16cd7 | /Mystry_Python_Theater/pscore.py | b1f387fa32f203330af21c245be925535b952a6a | [
"MIT"
] | permissive | Phillyclause89/reddit_scripts | ffc29dfd58fc382082273ab4f08b8989d27be582 | bacf7e7061dda2384e4eb60e3cc2d6ff20e28766 | refs/heads/master | 2020-09-27T20:12:16.625171 | 2019-12-13T05:19:10 | 2019-12-13T05:19:10 | 226,600,802 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | def get_player_score():
score = []
for i in range(0, 5):
while True:
try:
s = float(input('Enter golf scores between 78 and 100: '))
if 78 <= s <= 100:
score.append(s)
break
raise ValueError
e... | [
"45711864+Phillyclause89@users.noreply.github.com"
] | 45711864+Phillyclause89@users.noreply.github.com |
7b79e86bb8bebaacaa408a3761d9797b77af398a | 5665d4d3730964c49f4163382dc080acd6f9edd2 | /grouped-bar-chart.py | 8f99828840ab742a1fc31318dd8da97299689a6c | [] | no_license | victoriast0408/py | 4861298557cd8067d5ef5c5afc75dc9370c91c43 | 892edd571f6d573cdf7ecbd7783b028d37fe52c6 | refs/heads/master | 2020-08-01T07:04:42.514787 | 2019-10-03T12:40:06 | 2019-10-03T12:40:06 | 210,908,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | import plotly.graph_objects as go
import pandas as pd
bills = pd.read_excel('billsjan2018.xlsx')
fig = go.Figure(data=[
go.Bar(name='Paid cash', x=bills.date, y=bills.paid_cash),
go.Bar(name='Paid card', x=bills.date, y=bills.paid_card),
go.Bar(name='Paid customer card', x=bills.date, y=bills.paid_custome... | [
"victoria@Victorias-MacBook-Air.local"
] | victoria@Victorias-MacBook-Air.local |
a2fa38661bb368c2e9fc95657326e35bd11a12bf | 716e1f229eab5b5087752ebf32c3370a87958798 | /src/program/migrations/0091_eventproposal_tags.py | 5ffe83aaeaa59c036a6fdccafff7d4660093c85a | [
"BSD-3-Clause"
] | permissive | bornhack/bornhack-website | 2e8810e00f7a48a8a7e82f02f66d67edcce6e404 | 767deb7f58429e9162e0c2ef79be9f0f38f37ce1 | refs/heads/master | 2023-08-31T23:31:04.344829 | 2023-08-08T21:59:19 | 2023-08-08T21:59:19 | 43,702,500 | 9 | 43 | BSD-3-Clause | 2023-09-11T09:46:14 | 2015-10-05T17:45:55 | Python | UTF-8 | Python | false | false | 688 | py | # Generated by Django 3.0.3 on 2020-04-21 20:54
import taggit.managers
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("taggit", "0003_taggeditem_add_unique_index"),
("utils", "0004_uuidtaggeditem"),
("program", "0090_event_tags"),
]
ope... | [
"noreply@github.com"
] | bornhack.noreply@github.com |
9efe0099db495a6abf8ec4e5391c09aec9b087d3 | 525bdfe2c7d33c901598a501c145df94a3e162b0 | /math_projects/kateryna/bin/constants.py | c2f278310902832628add1fa859476272f1c01ff | [] | no_license | davendiy/ads_course2 | f0a52108f1cab8619b2e6e2c6c4383a1a4615c15 | e44bf2b535b34bc31fb323c20901a77b0b3072f2 | refs/heads/master | 2020-04-06T09:37:12.983564 | 2019-05-09T10:28:22 | 2019-05-09T10:28:22 | 157,349,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,342 | py | #!/usr/bin/env python3
# -*-encoding: utf-8-*-
import logging
DEFAULT_N = 1000 # к-ть елементів, які повертає пошук за умовчанням
# типи елементів (значення - назви таблиць у БД)
KEY_WORD = 'Key_words'
SITE = 'Sites'
LINK = 'Links'
CATEGORIES = 'Categories' # назва таблиці категорій
DEFAULT_DATABASE = 'data... | [
"davendiy@gmail.com"
] | davendiy@gmail.com |
f8fc74bc77f017e2505969268e870c2dd7ba18e2 | 6ca078e139db445e5f77335a16999a0fbafdb45a | /venv/bin/easy_install | e5382b13b191ac8cbb5a869d6d24fe22051c0e24 | [] | no_license | LeCezar/smalltalk-backend | 8deece76c18d9d40c4cb00ea265de35ab94adeb4 | b7a390f617e18275dbe21e0552851989e9c00970 | refs/heads/master | 2020-04-05T17:20:46.121271 | 2019-03-19T15:53:36 | 2019-03-19T15:53:36 | 157,055,707 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | #!/Users/LeCezar/Desktop/HermesHack/smalltalk-api/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\... | [
"lecezar2014@gmail.com"
] | lecezar2014@gmail.com | |
be07e086075aa28837629e953e1b8669b42c2138 | ebc89cb9312cb7e99901936a4fb02aa680cc2ddd | /accounts/serializers.py | 136586c0c2e61e02a33fa278a656086d8b025062 | [] | no_license | yahyaest/PC_Shop_App | d9e4d7d7a45c60f60d73071e40c0c2a35e1b52ca | 670774b32c7306e7efe02f56cbaddde9f55576f7 | refs/heads/master | 2023-08-21T21:40:30.213681 | 2021-10-22T21:37:25 | 2021-10-22T21:37:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 955 | py | from rest_framework import serializers
from django.contrib.auth.models import User
from django.contrib.auth import authenticate
# User Serializer
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = ('id', 'username', 'email')
# Register Serializer
class RegisterSerializer(serial... | [
"machatyahya@gmail.com"
] | machatyahya@gmail.com |
3b03aa2b21533c47a10c5a3314b4853e10823cde | 233b03068cb9ba589869226765c207de9ed7f470 | /prints/pages.py | 309a35bafa2019b0769d57426dccf467be8147dd | [] | no_license | felmola/e_tourism_prints | 4abb8aa48df12325b8aa7c6a8da728b5d44d386a | 91cbfa3bbb22c5e70ea904a0fd663f412c8d223c | refs/heads/master | 2020-09-22T12:13:51.486735 | 2019-12-09T21:07:00 | 2019-12-09T21:07:00 | 225,189,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,055 | py | from otree.api import Currency as c, currency_range
from ._builtin import Page, WaitPage
from .models import Constants
class p1_consent(Page):
form_model = "player"
form_fields = ["nombre", "id_number"]
class p2_intro(Page):
pass
class p3_seller_intro(Page):
pass
class p4_seller_decision(Page):
... | [
"43189041+felmola@users.noreply.github.com"
] | 43189041+felmola@users.noreply.github.com |
74d8499dc11c12ab39b85996eb1392b033f30265 | 163ac3e6566c0841367e77bc50620f0f3a5df6cc | /util/model_1.py | 2c9acdff8fa62400afb58f98ea5222ee776dbf68 | [] | no_license | squarefaceyao/SLSTM-TCNN | 1f0a680e7a1f0da7ffbd0e009e33aa34424c2566 | c0926cf73396278d1c9675bd6b35a89560c30033 | refs/heads/main | 2023-08-16T03:00:23.431598 | 2021-10-11T02:02:14 | 2021-10-11T02:02:14 | 372,364,827 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,810 | py | import numpy as np
from tensorflow import keras
from tensorflow.keras import layers
def model_3(units,input_size):
# 预测使用的
# pcc = 0.850225693960388
model = keras.Sequential(
[
keras.Input(shape=(input_size,1)),
layers.BatchNormalization(beta_initializer='zero',gamma_initia... | [
"squarefaceyao@gmail.com"
] | squarefaceyao@gmail.com |
3011146a8f5e22280470e96e2fc8a5cdcb7a0f0e | 0d54a6cad2c167de84bc7b8ece8175ffafa90a09 | /vertica_python/vertica/messages/backend_messages/load_file.py | b50497a7a374c0436ec0de35723a2fc7c1b782af | [
"Apache-2.0",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | hirnimeshrampuresoftware/vertica-python | 34a9e54dba3f6d8e2b72e46b57d93f4ba9f263af | 1b308d151794b2e962e122ead15a21aec4abc3a0 | refs/heads/master | 2023-01-01T01:25:17.565530 | 2020-10-19T10:22:31 | 2020-10-19T10:22:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,101 | py | # Copyright (c) 2020 Micro Focus or one of its affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | [
"noreply@github.com"
] | hirnimeshrampuresoftware.noreply@github.com |
cd1d419f5a3f85addd1204ac4ad6e1913f96620f | ed04021422f82c4a81dea3cabcd68b69392962b5 | /KeyPressModule.py | d876f56f2a70e878699dd9e0d0822b4bcba6a3d9 | [
"Apache-2.0"
] | permissive | kaelfdl/ai-deep-learning-self-driving-raspberry-pi-tesseract | 602108c356428af5c796dcb5df726e0873f7dc86 | 8b6e7e6d0ba203a5b02855b702c7e2483bd6ecb5 | refs/heads/master | 2023-07-04T09:39:18.158604 | 2021-08-03T10:52:33 | 2021-08-03T10:52:33 | 369,888,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | import pygame
def init():
pygame.init()
win = pygame.display.set_mode((100,100))
def get_key(key_name):
flag = False
for event in pygame.event.get():
pass
key_input = pygame.key.get_pressed()
key = getattr(pygame, 'K_{}'.format(key_input))
if key_input[key]:
flag = True
... | [
"gabryel.flordelis@gmail.com"
] | gabryel.flordelis@gmail.com |
e7df45838c5ad83d0271ecaed881954cab291536 | ad6b4875d7aef06eaa3848d73d65b8ada67cd793 | /210220/while1.py | 79f74fe98e5cddbc94ed699b0f0083e760cfdc39 | [] | no_license | 2020-AL-STUDY/Algorithms | 50510b81705fd0d6eb511de56e496abbc0930099 | 3d75dd149d19412fdf7ea030b0a0babdf4c95d3a | refs/heads/main | 2023-06-07T12:05:10.730007 | 2021-06-28T12:47:16 | 2021-06-28T12:47:16 | 302,847,419 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | a, b = map(int, input().split())
c = []
while a != 0 or b != 0:
c.append(a+b)
a, b = map(int, input().split())
for i in c:
print(i)
| [
"gyfls7748@gmail.com"
] | gyfls7748@gmail.com |
34109b133c9e51f5fe159c8a970393a67ac6d7d8 | 169e75df163bb311198562d286d37aad14677101 | /tensorflow/tensorflow/python/ops/gradients.py | 9fa8e27d5cb51e0c2dd0b7926756a579d38841d2 | [
"Apache-2.0"
] | permissive | zylo117/tensorflow-gpu-macosx | e553d17b769c67dfda0440df8ac1314405e4a10a | 181bc2b37aa8a3eeb11a942d8f330b04abc804b3 | refs/heads/master | 2022-10-19T21:35:18.148271 | 2020-10-15T02:33:20 | 2020-10-15T02:33:20 | 134,240,831 | 116 | 26 | Apache-2.0 | 2022-10-04T23:36:22 | 2018-05-21T08:29:12 | C++ | UTF-8 | Python | false | false | 1,240 | py | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"thomas.warfel@pnnl.gov"
] | thomas.warfel@pnnl.gov |
f65f159a24c852f737a8a72d67d4b69433fc9497 | d9eb2899fb0e1bee725d68147846489b6446e2f0 | /contentful_management/space_periodic_usage.py | de4eff736048b2fd7297ac75f5900b1ab4259212 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | contentful/contentful-management.py | 1f87ed9819becfa09bea795fba241384a9482045 | 5202e6ded776783c0611338b6613fec731182c3e | refs/heads/master | 2023-09-03T23:22:42.450198 | 2023-01-12T15:12:52 | 2023-01-12T15:12:52 | 84,083,785 | 36 | 18 | MIT | 2023-09-13T15:10:41 | 2017-03-06T14:38:28 | Python | UTF-8 | Python | false | false | 1,294 | py | from .resource import Resource
"""
contentful_management.space_periodic_usage
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This module implements the SpacePeriodicUsage class.
API reference: https://www.contentful.com/developers/docs/references/content-management-api/#/reference/usage
:copyright: (c) 2020 by Content... | [
"noreply@github.com"
] | contentful.noreply@github.com |
68d509c7c66a8393f202ba51444e4af380bc3c9b | 9ca9cad46f2358717394f39e2cfac2af4a2f5aca | /Week16/MainHW/MainHW Week16_KSY.py | 86af737749bde01e82c6dcf8a85382d1d4c33cd5 | [] | no_license | Artinto/Python_and_AI_Study | ddfd165d1598914e99a125c3019a740a7791f6f6 | 953ff3780287825afe9ed5f9b45017359707d07a | refs/heads/main | 2023-05-05T15:42:25.963855 | 2021-05-24T12:24:31 | 2021-05-24T12:24:31 | 325,218,591 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,897 | py | '''
This script shows how to predict stock prices using a basic RNN
'''
import torch
import torch.nn as nn
from torch.autograd import Variable
import numpy as np
import os
import matplotlib
torch.manual_seed(777) # reproducibility
import matplotlib.pyplot as plt
def MinMaxScaler(data):
''' Min Max Normalizat... | [
"noreply@github.com"
] | Artinto.noreply@github.com |
2db1cfdefc172264003cd0e623abc22216f67b0a | 8963880dc47529d966dbb8abd7df5fdf2f673d9f | /venv/bin/chardetect | fbde743e6bb13977107f9778c2dd20de4feeb57d | [] | no_license | jvarghese3/TechRadarPublish | b8dfd2081424f8563a38f9040c3a1d27fca5a42c | 1b4f0e12363cb318250c02547bfafe41c1785bae | refs/heads/master | 2020-03-25T00:44:49.973610 | 2018-08-02T22:22:52 | 2018-08-02T22:22:52 | 143,203,567 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | #!/Users/jvarghese3/PycharmProjects/TechRadarPublish/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from chardet.cli.chardetect import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"jvarghese3@MTVL161c44809.local"
] | jvarghese3@MTVL161c44809.local | |
0861a3ba0e77e14cd38e259cec9bfe9413d33873 | e7d5555eb0b80ad59e7c76dd31e5fa9a23ec4a4c | /muddery/worlddata/dao/dialogue_sentences_mapper.py | 6e08b22dd51bc6ba16bc055d6d3aed08c566c4e2 | [
"BSD-3-Clause"
] | permissive | noahzaozao/muddery | 4d1ef24b4a7f0ef178a1c28c367a441cbb57ee5c | 294da6fb73cb04c62e5ba6eefe49b595ca76832a | refs/heads/master | 2023-01-25T02:23:50.123889 | 2018-06-10T17:12:22 | 2018-06-10T17:12:22 | 137,031,119 | 0 | 0 | NOASSERTION | 2019-10-28T15:04:26 | 2018-06-12T07:05:42 | Python | UTF-8 | Python | false | false | 691 | py | """
Query and deal common tables.
"""
from __future__ import print_function
from evennia.utils import logger
from django.apps import apps
from django.conf import settings
class DialogueSentencesMapper(object):
"""
NPC's dialogue sentences.
"""
def __init__(self):
self.model_name = "dialogue_... | [
"luyijun999@gmail.com"
] | luyijun999@gmail.com |
ea86b165173183397c78e5aa1e6322ec98a122de | 740cd3a198c8ebb815da04c0e7a549696ab6a84c | /virtual/bin/wheel | 4ef50c7f2679686ea22a122921d06bdaa0c52a4f | [] | no_license | kahenya-anita/Simple-Ecommerce | 3a3734e8b9f8c5ce489404042c456449adbca724 | ff9d7d06869c52d595304ab238f797a1c65947d0 | refs/heads/master | 2023-03-03T13:40:43.930809 | 2021-02-09T15:24:56 | 2021-02-09T15:24:56 | 337,444,815 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | #!/home/toshiba/Documents/Ecommerce_Django-master/virtual/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from wheel.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"anitakahenya1@gmail.com"
] | anitakahenya1@gmail.com | |
c75990daa686c163399bb778d1290107e5424fe4 | 868f8980eced9e3eeeaf22175e15ba4e44e6e786 | /poisson.py | 555e2f6dfd6fbdc5f6ae77c191e509a05ba3765c | [] | no_license | jin-bowen/stochastic_process | e0990dfda27d33fa0501d4073149250d0c8a4b25 | d754487fcf8ab40ccd6396e164f78679290123cc | refs/heads/master | 2020-08-26T18:06:41.369651 | 2020-05-08T00:16:42 | 2020-05-08T00:16:42 | 217,098,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,354 | py | import matplotlib.pyplot as plt
import numpy as np
import scipy as sp
import random
import math
def poisson(r, jump_size, total_t, sample_point=1000):
points = np.zeros((sample_point, 2))
points[:,0] = np.linspace(0, total_t, num=sample_point)
points[:,1] = 0
dt = float(total_t - 0)/float(sample_point - 1)
cum_... | [
"bxj139@case.edu"
] | bxj139@case.edu |
8c8bb9481e76250c7415b792fe42e94758bcab2f | 2aa7d25292f07aa8ede1365f648709a8457c6279 | /Ex_28.py | f558d475bb941546569c0a7635ca72326ef305be | [] | no_license | patrickmgebhard/Learn_python_the_hard_way | b28cf21ee31097844b5d65a147f9ddb5fc7ec847 | 2b98fecb5332f8bb7baf2069ec11e3f0862f1697 | refs/heads/main | 2022-12-24T02:37:26.690637 | 2022-12-12T20:54:43 | 2022-12-12T20:54:43 | 77,302,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | True and True
# True
False and True
# False
1 == 1 and 2 == 1
# False
"test" == "test"
#True
1 == 1 or 2 != 1
# True
True and 1 == 1
# True
False and 0 != 0
# False
True or 1 == 1
# True
"test" == "testing"
# False
1 != 0 and 2 == 1
# False
"test" != "testing"
# True
"test" == 1
# False
not (True and False)
# True
not ... | [
"patrickmgebhard@gmail.com"
] | patrickmgebhard@gmail.com |
6b34dfae513fa55c66c92dd64ea87fa9d1207242 | 45a924e5cd1dfc75a2088d3d4463995803a06a09 | /frappe/email/doctype/email_unsubscribe/test_email_unsubscribe.py | 602840fe3b30b30238661516ade48243176ea9b0 | [
"MIT"
] | permissive | joe-santy/frappe | 7cad66295f07f60176fbbc24766af5e38ac1e9d2 | a6d9170e5fd9fdff462eee7967409ff7e23b6d2f | refs/heads/develop | 2023-07-15T15:59:03.226729 | 2021-08-09T16:20:11 | 2021-08-09T16:20:11 | 394,489,040 | 0 | 0 | MIT | 2021-08-13T13:12:31 | 2021-08-10T01:22:17 | null | UTF-8 | Python | false | false | 258 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# See license.txt
import frappe
import unittest
# test_records = frappe.get_test_records('Email Unsubscribe')
class TestEmailUnsubscribe(unittest.TestCase):
pass
| [
"rmehta@gmail.com"
] | rmehta@gmail.com |
5271e0aa4d4bd54e4dc811366c02c1b6de9d5155 | e7069d85fd4a6fac4958f19b4d14503ffa42b4bb | /connecting_silos_kththesis_TCOMK_CINTE/mysite/polls/library/Canvas-master/compute_list_of_KTH_play_URLs_on_pages_in_course3.py | 3320841678f5de02e64319ba7c296b48e4a75a03 | [] | no_license | ShivaBP/Bechelor-degree-project | cd062ff10e207e380a2c59bc0a50f073c2e866bd | 9f055d69ec9deabb6bd8ab3768c9d56787eed94d | refs/heads/master | 2022-07-21T01:18:41.893027 | 2018-11-16T14:38:13 | 2018-11-16T14:38:13 | 137,949,087 | 0 | 0 | null | 2022-07-06T19:49:14 | 2018-06-19T21:47:51 | HTML | UTF-8 | Python | false | false | 16,355 | py | #!/usr/bin/python3
#
# ./compute_list_of_KTH_play_URLs_on_pages_in_course3.py course_id
#
# walks all of the course pages, the syllabus, and assignments
#
# it outputs a CSV file with the name URLs_for_course_xx.csv
# where xx is the course_id
#
# G. Q. Maguire Jr.
#
# 2017.04.21
# based on earlier program: compute_... | [
"shivabp@icloud.com"
] | shivabp@icloud.com |
00967f74adf86ff5e01d221fc7f5261c3c393ca7 | caf246497410866e0f9896c2e51d790518c63f35 | /PythonClient.py | ef5ce956f11a4f5df93a48281d3ffcc8a86bbc21 | [] | no_license | StevenLdh/PythonStudyOne | e979231cbf6fd5a433b86f4b409cfa71b5d8e4b2 | 0f98aa1d478d46c55b2d5cf9af5f6b6fe27f4bcf | refs/heads/master | 2020-04-02T17:40:11.754086 | 2019-05-20T06:11:34 | 2019-05-20T06:11:34 | 154,666,795 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | #!/usr/bin/python3
# 文件名:client.py
# 导入 socket、sys 模块
import socket
import sys
# 创建 socket 对象
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
# 获取本地主机名
host = socket.gethostname()
# 设置端口号
port = 9999
# 连接服务,指定主机和端口
s.connect((host, port))
# 接收小于 1024 字节的数据
msg = s.recv(1024)
s.close()
print(msg.decode('utf... | [
"lidehuawork@163.com"
] | lidehuawork@163.com |
a5e3a44b8d8c91cfa90e5ee8271bd1d34fba668b | f479e33c9e591f2de3855d2aa58815ffd1ca2756 | /Alien/setting.py | 67ba8cc56dc187953756d8ee622da5a2d4820d8b | [] | no_license | cathip/mixed | 2f8ab69d2268ba9fd38ed3e2c25d7bfea4cbe881 | 66fb3be4fe208c3c66dabfd3352c0dc348eaef52 | refs/heads/master | 2022-12-02T08:10:17.108904 | 2020-07-23T13:16:25 | 2020-07-23T13:16:25 | 281,955,265 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | class Setting():
def __init__(self):
self.screen_width = 1200
self.screen_height = 800
self.bg_color = (230, 230, 230)
#飞船的设置
self.ship_speed_factor = 1.5
self.ship_limit = 3
#子弹设置
self.bullet_speed_factor = 3
self.bullet_width = 10... | [
"862485926@qq.com"
] | 862485926@qq.com |
dbddebd411deb095d4dc5db535becd6c81fe2c76 | ae69970610b5a3c253a8fd7e595ef67c31ba3c36 | /Scouter/wsgi.py | 821fdd7d61afd5534a16039dc85ae4955c586147 | [
"MIT"
] | permissive | DevrathIyer/FRCScouter2017-2018 | 40bf00c69746e2368ef980ace4eb32c7e55d94ee | 64c76b570d4b9bf82ed00f8d7cd6865e383b26d6 | refs/heads/master | 2021-01-11T13:57:07.168053 | 2017-06-20T16:30:00 | 2017-06-20T16:30:00 | 94,910,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | """
WSGI config for Scouter 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.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETT... | [
"idevrath@gmail.com"
] | idevrath@gmail.com |
0b1088393f030a8a3fffe2f5092bad8231fac47c | a8e90365bb80918d1b03a0269aff9fb69d52d250 | /9.Function-Lambda.py | a8537b6999bb2e9d2f706c4fd92bbb976e7a21f7 | [] | no_license | sanghoon96/learn_python | af929ddec3d22a4c8c70a5d0bbde79763e0ab314 | 1bc43cbf9f365120a8d44c677514d2b63974b471 | refs/heads/master | 2023-02-04T20:32:29.773049 | 2020-12-07T23:35:37 | 2020-12-07T23:35:37 | 318,410,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | sum = lambda arg1, arg2 : arg1 + arg2;
print("Value of total : ", sum( 10, 20 ))
nums = [1,2,3]
def is_greater_than_one(x):
return x > 1
more_than_nums = filter(is_greater_than_one, nums)
print(list(more_than_nums))
more_than_nums = filter(lambda x : x > 1, nums)
print(list(more_than_nums)) | [
"sanghoon96@naver.com"
] | sanghoon96@naver.com |
d77736ddb7296765054ab14e0be64df5ce79366e | 844ba7f7cde8730255487a0063535dfc81343715 | /pharmacyProject/wsgi.py | 5e528e121836ab30b941f09c888206e79ba22ad0 | [] | no_license | pharmacyProjectInDjango/pharmacyProject | 60ddebc3be2ee02c3ce806a2c31c4af8e09c551c | c087c6f52f8f37b9fa522d69a8bce26a51284154 | refs/heads/master | 2023-06-03T11:57:12.897145 | 2021-06-10T18:18:13 | 2021-06-10T18:18:13 | 375,784,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | """
WSGI config for pharmacyProject 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... | [
"almazikay@gmail.com"
] | almazikay@gmail.com |
74b0a2c23703cb4e5ab03f2b4f26df4d4bbbd55f | c705b2620119df0d60e925e55228bfbb5de3f568 | /archives/twitter/add_to_list.py | b07b820c711aef611ff33b5d19f9e517e8424b05 | [
"Apache-2.0"
] | permissive | mcxiaoke/python-labs | 5aa63ce90de5da56d59ca2954f6b3aeae7833559 | 61c0a1f91008ba82fc2f5a5deb19e60aec9df960 | refs/heads/master | 2021-08-05T03:47:51.844979 | 2021-07-24T11:06:13 | 2021-07-24T11:06:13 | 21,690,171 | 7 | 7 | Apache-2.0 | 2020-08-07T01:52:32 | 2014-07-10T10:20:17 | Python | UTF-8 | Python | false | false | 1,023 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author: mcxiaoke
# @Date: 2016-01-04 14:39:15
from __future__ import print_function, unicode_literals
import os
import sys
import codecs
import requests
import tweepy
from config import OWNER, OWNER_ID, CONSUMER_KEY, CONSUMER_SECRET, ACCESSS_TOKEN_KEY, ACCESS_TOKEN_SEC... | [
"mcxiaoke@gmail.com"
] | mcxiaoke@gmail.com |
ee93c3fd7fdf2625001431b69199e534a918d3fc | f586ce9f6a91ea1b42449325be38596b891fa503 | /song.py | 9d37e2bb2db9e30ad05c840b76ee5029b95d3874 | [] | no_license | LukeEsworthy/Setlist-Tracker | 00976041250f83facd383b6cc7e4cc39fb0b64ef | 6fa7da5a788d90e7bdc3ad342f93fff8c9efa5f6 | refs/heads/master | 2022-12-13T03:23:27.230780 | 2020-09-14T20:46:41 | 2020-09-14T20:46:41 | 294,788,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | from django.db import models
class Song(models.Model):
title = models.CharField(max_length=75)
artist = models.CharField(max_length=75)
song_length = models.IntegerField()
def __str__(self):
return f'{self.title} by {self.artist}'
| [
"lukesworthy@gmail.com"
] | lukesworthy@gmail.com |
aba0382b93e31c197307a735fec8fa49db618b0e | 7a4be09397ebb9cd5329675adf687ff845c0404a | /code/caffe/gen_feature.py | 757eb7507e6c5656d69f3a37d66f931816f92d5f | [
"MIT"
] | permissive | zhaokv/Deep-Style-Match | 79cbe4be8b030fb03af6fb4253c76090e1cc8da6 | ea44c9dcde387fd280be1a05341dc63e7df23644 | refs/heads/master | 2021-05-19T09:28:53.456879 | 2020-03-31T14:40:03 | 2020-03-31T14:40:03 | 251,630,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,635 | py | import sys
caffeRoot = '/home/zhaokui/code/caffe/'
sys.path.insert(0, caffeRoot+'python')
import caffe
import numpy as np
import cPickle as pickle
import copy
from sklearn.metrics.pairwise import euclidean_distances as ed
from sklearn.metrics import roc_auc_score as auc
from tqdm import *
modelDir = '/home/zhaokui/r... | [
"zhaokui@zju.edu.cn"
] | zhaokui@zju.edu.cn |
7cc84142786ae723ed0b34d062969d89df876df0 | a9d482fea671e1a8bede36978ea2cf6406bf519c | /apps/accounts/views.py | 0bd42648f3c0f567a2881f74004045c7c517e7c4 | [] | no_license | aigora-de/aigora-web-old | 5d1873e26292419b6c7537e059d454a0f335308b | 6c2b3ba98337bb540992afe2b936edd717b8900c | refs/heads/master | 2020-06-19T21:41:52.730050 | 2019-07-17T06:23:26 | 2019-07-17T06:23:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | from django.contrib.auth.forms import UserCreationForm
from django.urls import reverse_lazy
from django.views import generic
# Create your views here.
class SignUp(generic.CreateView):
form_class = UserCreationForm
success_url = reverse_lazy('login')
template_name = 'signup.html'
| [
"40235800+See2-io@users.noreply.github.com"
] | 40235800+See2-io@users.noreply.github.com |
6170065e53c3bee0a39dd471835021b9a8d4e23e | 0c9236c0ac3fb3b1a681bbdf50836a9d94f750a7 | /im_analysis.py | d2963fb363263134ccf460438aa67f6644b1482b | [] | no_license | chchamb/EXOscripts | 536d823e06ce73015b411a483560d9baece2b660 | dad1aad4321c55cfdc5564408b510dd159f914ae | refs/heads/master | 2021-01-01T16:59:32.191646 | 2017-07-21T17:29:13 | 2017-07-21T17:29:13 | 97,971,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69,733 | py | # Script for handling image analysis
import numpy as np
import matplotlib.pyplot as plt
import utility as ut
import gen_reader as gr
import lv_analysis as lv
import scope_cal as scp
import funk
import math as m
# Define global variable for date and darkfile
date=20170720
darkfiles=gr.reader('/home/chris/anaconda/EXOs... | [
"chrischambers89@gmail.com"
] | chrischambers89@gmail.com |
96c23484a0920d0be9ee54cdb89c588c505d99fb | 61158f7d7f20accc4e960cf90691116b192b956c | /main.py | b8d6b8ec9f65c46a1c136a47733502bdcb81345a | [] | no_license | asdfMaciej/spotify-analytics | c110ac9e107753c010511a2ebb1ce212eed8c798 | c62e6cb2b3e23f112c7cc58f02743779911ba815 | refs/heads/master | 2021-01-21T17:29:18.496087 | 2017-05-21T13:28:36 | 2017-05-21T13:28:36 | 91,955,036 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,911 | py | import requests, json, sqlite3
from pprint import pprint
class Playlist:
def __init__(self, name: str, id: str, owner: str):
self.name = name
self.id = id
self.owner = owner
def __str__(self):
return self.id + " - " + self.owner + " - " + self.name
class User:
def __init__... | [
"maciej.kaszkowiak@gmail.com"
] | maciej.kaszkowiak@gmail.com |
5a4a2020d8ce189068d89b8f22fae33cdb7961ef | 9a2fbca24f00e28cb3c68ea52c0999970bf628b2 | /backend/mysite/mysite/settings.py | 68e777ef01650f2c936710f21ebc06a7773f25d6 | [] | no_license | yashikacac/DJ-DayStrom | 47a568ec2af8e172d9f9269039b485043b198794 | b50a63994e982c9fce3b8be9e289fe63f1836ddb | refs/heads/master | 2022-12-11T08:58:25.782043 | 2020-09-20T05:10:24 | 2020-09-20T05:10:24 | 296,817,808 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,208 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 3.1.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib ... | [
"dewanshrawat15@gmail.com"
] | dewanshrawat15@gmail.com |
1cf91c973076f5cd1c46e4f58e68999f1a89e80d | a2f67003e0eededb0c2d7645d83243d19af71340 | /exam_subject/Subject/apps/topic/migrations/0010_answer_analysis.py | 117680a8d906da18fcca8540dbfdcda5856ebd05 | [] | no_license | john123951/SubjectSystem | c6bf118627aa54ba56bd367f73528e66f51dcd58 | a7f8e6014f81ec4376f3c5f437a280e801ab22e4 | refs/heads/master | 2020-07-13T16:36:15.663952 | 2019-06-19T07:02:14 | 2019-06-19T07:02:14 | 205,115,935 | 7 | 0 | null | 2019-08-29T08:23:00 | 2019-08-29T08:22:59 | null | UTF-8 | Python | false | false | 422 | py | # Generated by Django 2.0.2 on 2019-05-05 22:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('topic', '0009_examtime_exam_number'),
]
operations = [
migrations.AddField(
model_name='answer',
name='analysis',
... | [
"you@example.com"
] | you@example.com |
44b3b47ff12130c5430ed3f41a26362427382fac | 3f21a05258ccee066f1a6758089b41ed0ba6ce88 | /33. urllibtutorialvid.py | a41f50965404371538fe24d835665967b90c4079 | [
"MIT"
] | permissive | JatinR05/Python-3-basics-series | 1ad4def14df5b735efc8ece3c33570fe2eebb6fc | e4b3d8056e2074602c9ed0cd201676484dd0d179 | refs/heads/master | 2022-12-09T11:30:53.043250 | 2020-09-30T17:05:16 | 2020-09-30T17:05:16 | 299,991,764 | 0 | 0 | MIT | 2020-09-30T17:03:13 | 2020-09-30T17:03:13 | null | UTF-8 | Python | false | false | 1,018 | py |
import urllib.request
import urllib.parse
#x = urllib.request.urlopen('https://www.google.com')
#print(x.read())
'''
url = 'http://pythonprogramming.net'
values = {'s':'basic',
'submit':'search'}
data = urllib.parse.urlencode(values)
data = data.encode('utf-8')
req = urllib.request.Request(url,data)
resp =... | [
"harrison@sentdex.com"
] | harrison@sentdex.com |
b7a5aac51b6dbc6469dca15ebc3fba5e91728859 | ee348632cc65d0e77d7b8709f600667d27565e6a | /stockacm.py | 2f21aca35fb6d6feb6e4821462ee0c794e1d1c8f | [
"MIT"
] | permissive | KhondokerTanvirHossain/stock-market-exchange-prediction | b2247cd3fc51b61e705ee8a9d0aa80b59b6cef0a | 9cd2e9c94b38692473d4113ecbad96e3408fbeb1 | refs/heads/master | 2020-06-04T15:42:49.221830 | 2019-06-15T21:06:21 | 2019-06-15T21:06:21 | 192,086,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,221 | py | import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
from sklearn.preprocessing import MinMaxScaler
from keras.models import Sequential
from keras.layers import Dense
from keras.layers import LSTM
from keras.layers import Dropout
from keras.models import model_from_json
import math
from sklearn.metric... | [
"k.tanvir.hossain@gmail.com"
] | k.tanvir.hossain@gmail.com |
c5708367337a0c64f2df12dcce951050022001b6 | 2af1e6357f51d0d08b1a991e2bd922b7bdc8c0b6 | /baekjoon/accepted/15480 LCA와 쿼리.py | 8220d3407e8cfb7390cba36119d50b67d795abeb | [] | no_license | grasshopperTrainer/coding_practice | 530e9912b10952c866d35d69f12c99b96959a22d | d1e5e6d6fa3f71f1a0105940fff1785068aec8b0 | refs/heads/master | 2023-06-01T13:30:15.362657 | 2021-06-08T08:40:15 | 2021-06-08T08:40:15 | 267,359,225 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,998 | py | # not accepted
from sys import stdin
from collections import deque
def solution(N, edges, asked):
nd_tree = {}
for a, b in edges:
nd_tree.setdefault(a, []).append(b)
nd_tree.setdefault(b, []).append(a)
answers = []
for root, a, b in asked:
# find directed tree and depth
... | [
"grasshoppertrainer@gmail.com"
] | grasshoppertrainer@gmail.com |
6e8ca6ecd6885f3d1ee5325ac3f14d28d72a062b | c4f25e2a5b444492e86b4f1523e930a1ec780c49 | /character/names/__init__.py | 9987b708059225b3efdea6d5c4c58428cff5df38 | [] | no_license | steliosph/stevooLand | 155b8d64d0bbbf829050a006224586d39baed9d3 | 2c86c6f01df1c8e1d59db1fc1d619071d7607737 | refs/heads/master | 2019-08-06T22:35:08.776479 | 2017-10-01T10:38:12 | 2017-10-01T10:38:12 | 105,182,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 983 | py | from __future__ import unicode_literals
from os.path import abspath, join, dirname
import random
__title__ = 'names'
__version__ = '0.3.0.post1'
__author__ = 'Trey Hunner'
__license__ = 'MIT'
full_path = lambda filename: abspath(join(dirname(__file__), filename))
FILES = {
'first:male': full_path('dist.male.f... | [
"stevoo82@gmail.com"
] | stevoo82@gmail.com |
6a3307afb49fd8cb535570b49aaeafc631f3394b | 90419da201cd4948a27d3612f0b482c68026c96f | /sdk/python/pulumi_azure_nextgen/network/v20170301/get_endpoint.py | 7e85c2b2da6288d9cba3d474eec4981e754e7d0c | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | test-wiz-sec/pulumi-azure-nextgen | cd4bee5d70cb0d332c04f16bb54e17d016d2adaf | 20a695af0d020b34b0f1c336e1b69702755174cc | refs/heads/master | 2023-06-08T02:35:52.639773 | 2020-11-06T22:39:06 | 2020-11-06T22:39:06 | 312,993,761 | 0 | 0 | Apache-2.0 | 2023-06-02T06:47:28 | 2020-11-15T09:04:00 | null | UTF-8 | Python | false | false | 8,850 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
__a... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
b4b1689cbc5129bc32113f9e26db59be3cc3da36 | 6b420371022986d850a8f8d88fc853aa5ca0ad9b | /modules/filenamegen.py | 4087919e00d45f89d4ac81b998279ee0010201d1 | [] | no_license | jiamh2005/persons | 7d4a1c5b2dc33309afa2b68cb8063d3319945f7c | 1a90bf616174cf32b116998d10eb285ec3639040 | refs/heads/master | 2021-04-03T07:41:14.099193 | 2018-03-28T13:09:51 | 2018-03-28T13:09:51 | 124,366,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,036 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import os
import time
import random
x="AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz0123456789"
#此函数的作用为生成number位不重复的随机字符串,number最大为62
def singlerandom(number):
stringy=''.join(random.sample(x,number)).replace(' ','')
return stringy
def nsfile(s):
'''The ... | [
"jia@jiamh.cc"
] | jia@jiamh.cc |
92b960bbcd5dbc151aed6c4a93722c1f83d4615b | 59da6bb7222335e96bcaf2acce4e94bb28064f90 | /0x06-python-classes/101-square.py | 6cfde765ab9f73e7db6d6edcfffdb344f740536a | [] | no_license | cmdelcarmen/holbertonschool-higher_level_programming | 249fa4c5447f5fb88c81ba362a8cf45a01a65d39 | d8dd707559dacabf93453233861bef7c2f54d184 | refs/heads/main | 2023-08-19T07:39:51.777899 | 2021-09-23T01:27:28 | 2021-09-23T01:27:28 | 361,834,373 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 734 | py | #!/usr/bin/python3
class Square:
''' class square'''
def __init__(self, size=0, position=(0, 0)):
'''init'''
self.__size = size
self.__position = position
@property
def size(self):
'''property size'''
return self.__size
@size.setter
def size(self, val... | [
"delcarmencaroline@gmail.com"
] | delcarmencaroline@gmail.com |
e048837fa12f55157f9452e0736edb9ff1bd7cf7 | eeb7e70b0b68decbdcb32682351e54e0be99a5b0 | /kaggle/python_files/sample904.py | 82ab437aca033f7a777414cf29125f255fb92898 | [] | no_license | SocioProphet/CodeGraph | 8bafd7f03204f20da8f54ab23b04f3844e6d24de | 215ac4d16d21d07e87964fe9a97a5bf36f4c7d64 | refs/heads/master | 2023-02-16T02:51:27.791886 | 2021-01-15T07:00:41 | 2021-01-15T07:00:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,371 | py | #!/usr/bin/env python
# coding: utf-8
# **Notebook Objective:**
#
# Objective of the notebook is to look at the different pretrained embeddings provided in the dataset and to see how they are useful in the model building process.
#
# First let us import the necessary modules and read the input data.
# In[ ]:
imp... | [
"mccusker@gmail.com"
] | mccusker@gmail.com |
c4a2ffc18cb1fc769f67c2786359e8a28b139dc5 | 52aaf609fe3e5e03eb8040ae4e884d511dc2cfd0 | /source_models/utils/scaling.py | 6928070599df027a33965883e536b5429f5a329d | [] | no_license | GeoscienceAustralia/NSHA2018 | f2b140d142b5140893e20a946ed9a545c32e2749 | 86a3af0b52fe51470754291700f9a985b5177e2a | refs/heads/master | 2021-07-06T22:36:21.213958 | 2021-06-28T07:12:02 | 2021-06-28T07:12:02 | 55,460,974 | 7 | 5 | null | 2017-02-06T11:55:30 | 2016-04-05T02:23:03 | Jupyter Notebook | UTF-8 | Python | false | false | 2,058 | py | """Implement other iterations of Leonard 2014 scaling
Reference: Leonard, M., 2014. Self-consistent earthquake fault-scaling relations:
Update and extension to stable continental strike-slip faults.
Bulletin of the Seismological Society of America, 104(6), pp 2953-2965.
Jonathan Griffin
Geoscience Australia May 2018
... | [
"jono.d.griffin@gmail.com"
] | jono.d.griffin@gmail.com |
488d63b40c3dcea25f5d7e286580017fcfa026c0 | 09da1266eb3fb02ab0b62ab46b002fd9c35df881 | /setup.py | 7ed5f412036a31c8d55d3e08a9c7fb9f6ccce25b | [] | no_license | ixalon/run-if-ssm | e0baca2dd2480a8d3c0c733c677ef1ffe0633ebd | 4e1580b325fb371488ebf8653689b78231198537 | refs/heads/master | 2020-03-27T23:22:24.509919 | 2018-09-04T08:26:51 | 2018-09-04T09:13:39 | 147,313,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | from setuptools import setup
import os
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name="run-if-ssm",
version="1.0.0",
author="Chris Warren",
author_email="chris@ixalon.com",
description=("A command line utility for running commands if a AWS SSM parameter is set.")... | [
"chris@ixalon.net"
] | chris@ixalon.net |
ed66afc6b66bb066763ac8e3bfe8202fffbd4239 | 9c61ec2a55e897e4a3bb9145296081c648d812c4 | /docs/cd/06443007程式碼/ch10/10-7.py | 12e0599c6cd9b2461a1e86381e5859ddb809a4da | [] | no_license | wildboy2arthur/ML-Class | 47899246251d12972a6d3875160c1cc8d1052202 | 345c86e3f8890919d59a63a79674acbdcd4577c4 | refs/heads/main | 2023-07-16T11:32:07.683652 | 2021-08-24T08:25:04 | 2021-08-24T08:25:04 | 399,388,026 | 0 | 0 | null | 2021-08-24T08:18:36 | 2021-08-24T08:18:35 | null | UTF-8 | Python | false | false | 74 | py | sns.scatterplot(x='mean radius', y='mean texture', data=df, hue='target'); | [
"1101404110@nkust.edu.tw"
] | 1101404110@nkust.edu.tw |
adbf4a84f7adec9c8567c5ed02472d79eadbf189 | 1c4d1333ccd1a8ad6c299071ca723c1a5141f6b1 | /venv/bin/pyrsa-priv2pub | 73ac3cc28dd92db2bb8ec314911e986c33be1031 | [] | no_license | ParnikaS/DoxperAPITesting | 6bf5bb6710dbbf13a876e130ace89977b7eedfcb | d0fad52bc559c0b2ade2e563b99cff562cbe1475 | refs/heads/master | 2020-03-18T14:36:31.728044 | 2018-05-25T13:19:36 | 2018-05-25T13:19:36 | 134,856,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | #!/Users/parnikasharma/PycharmProjects/ApiTesting/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from rsa.util import private_to_public
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(private_to_public())
| [
"parnikasharma@Abhisheks-MacBook-Air.local"
] | parnikasharma@Abhisheks-MacBook-Air.local | |
3ec63c24410051f8a1dc64905bbeb91ff0b787ea | 4839df5ce210b0d2d74a67677a2ec3d4faacf74d | /tally_ho/apps/tally/tests/views/reports/test_administrative_areas_reports.py | 4bc221d7f49dadf7c0978dcd26137ff7772fdb3b | [
"Apache-2.0"
] | permissive | hashem92/tally-ho | 5bf7f8f30804362ccf862d5d9a920bb1ce4bb17b | f1667a5dbef808f37c8717ebfacf53499333370c | refs/heads/master | 2023-05-05T08:01:14.968280 | 2020-11-05T13:48:21 | 2020-11-05T13:48:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,634 | py | from django.test import RequestFactory
from tally_ho.libs.permissions import groups
from tally_ho.apps.tally.models.sub_constituency import SubConstituency
from tally_ho.apps.tally.views.reports import administrative_areas_reports
from tally_ho.libs.tests.test_base import create_result_form,\
create_station, creat... | [
"jmwashuma@live.com"
] | jmwashuma@live.com |
7e13a86247f31bdea66a73b542bf5fc8b7f875d4 | 7ab40a447bc1b82f3c6104fc1349fd9360629dd1 | /moule/plugins/CommonsCollections1.py | c9d78eb386369b0b97b8600d9cef6b530a7f257a | [] | no_license | 3ecurity/ShiroScan | 48a5feb8a4bfe87803769f480c8ca12d96413ca5 | c7bb0df849b3be9e09e4b2966d66f67f98d0df5d | refs/heads/master | 2021-03-26T19:06:44.736417 | 2020-03-16T17:14:35 | 2020-03-16T17:14:35 | 247,739,237 | 0 | 0 | null | 2020-03-16T15:07:53 | 2020-03-16T15:07:52 | null | UTF-8 | Python | false | false | 31,348 | py | # -*- coding: utf-8 -*-
# By 斯文beast svenbeast.com
import os
import base64
import uuid
import subprocess
import requests
import sys
from Crypto.Cipher import AES
from ..main import Idea
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWa... | [
"sven@svenbeast.com"
] | sven@svenbeast.com |
e35702ff865d77d881bb1f8c662a0694bcae1d85 | 027bdfb0f5dd6e7fe86189324a2c7ebd3a1ebea9 | /hydrus/client/db/ClientDBMappingsCacheSpecificStorage.py | 83ba6be205cd310a23f5eb700d6bfbe24c4fb7c0 | [
"WTFPL"
] | permissive | pianomanx/hydrus | 5299a1bcc383760b7ed349e047467f6ac8fa6a43 | 368309645f85ecff832c0a968b3492bf582cdad5 | refs/heads/master | 2023-09-02T14:19:42.516186 | 2023-08-30T21:00:53 | 2023-08-30T21:00:53 | 90,190,997 | 0 | 0 | NOASSERTION | 2023-09-14T09:10:58 | 2017-05-03T20:33:50 | Python | UTF-8 | Python | false | false | 29,320 | py | import collections
import itertools
import sqlite3
import typing
from hydrus.core import HydrusConstants as HC
from hydrus.core import HydrusData
from hydrus.core import HydrusDBBase
from hydrus.core import HydrusLists
from hydrus.core import HydrusTime
from hydrus.client.db import ClientDBFilesStorage
from hydrus.cl... | [
"hydrus.admin@gmail.com"
] | hydrus.admin@gmail.com |
078f1c67f72061d6446f7ee3438d940e228c5efe | fd3b3d5c5adfd0599f158599d7d64857dbb54f31 | /Python_Work/c14Work/walls.py | 2c7a1cfb5f71a403ceed46ac95506a75edd03c28 | [] | no_license | BySRenovatio/Projects-in-Python | 3776ef50be956c85014312295b30df164b58ff56 | a29a1988dfb95b5d3491476e84d1c73c1b905f6f | refs/heads/master | 2020-03-21T21:33:41.288152 | 2018-06-28T21:30:55 | 2018-06-28T21:30:55 | 139,070,285 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,233 | py | """
Sample Python/Pygame Programs
Simpson College Computer Science
http://programarcadegames.com/
http://simpson.edu/computer-science/
From:
http://programarcadegames.com/python_examples/f.php?file=move_with_walls_example
Explanation video: http://youtu.be/8IRyt7ft7zg
Part of a series:
http://programarcadegames.c... | [
"40674806+BySRenovatio@users.noreply.github.com"
] | 40674806+BySRenovatio@users.noreply.github.com |
0a97db3af87cc1ef1bac4964125abf2be116299f | 5fac3f1dbac1d859f17b41dc243f146ef1db3e91 | /models/model.py | 1fc9f95333a3bc67c6290dfc56625a5d7b8fe1df | [] | no_license | ftelechea/apiDatosRef | 63c0afca0f23acf20008ba69a66232d4edc39e2a | 3d281fd47e8ec84f83c11dc6cd8d4ee108af36e4 | refs/heads/master | 2022-12-15T09:57:27.459755 | 2020-09-04T11:10:50 | 2020-09-04T11:10:50 | 292,270,644 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,734 | py | from flask_restful import Resource
import models.database_command as db
class Paises(Resource):
def get(self):
"""
Retorna la lista de Países
Codificación de países de acuerdo a la norma ISO 3166-1:2007
---
tags:
- paises
responses:
200:
... | [
"noreply@github.com"
] | ftelechea.noreply@github.com |
7101f41dbc95bab298f836e2d61dd7d024040609 | f33a971e5c13c724712c97f6d13e585f8526c4a0 | /server/Test.py | 140e2a53d5e65fe739c7026c80bf1fb468d2e0a8 | [] | no_license | Thermomiplex/Thermominator | 7bec8a44eb363001d383c2dc38715ba461e992f7 | 5b6ffa4ed5247655781011c7e0aeeabfc30320b6 | refs/heads/master | 2021-03-12T23:02:35.682883 | 2013-11-29T16:09:23 | 2013-11-29T16:09:23 | 13,584,401 | 1 | 1 | null | 2013-10-24T13:20:37 | 2013-10-15T08:23:06 | Java | UTF-8 | Python | false | false | 160 | py | from py4j.java_gateway import JavaGateway
gateway = JavaGateway()
java_object = gateway.jvm.soton.Test()
other_object = java_object.hello()
print other_object
| [
"amir@amir-laptop.(none)"
] | amir@amir-laptop.(none) |
cfe01345e37aadfec5a5a2ccb5e0ad6c4a9df927 | 9d278285f2bc899ac93ec887b1c31880ed39bf56 | /ondoc/doctor/migrations/0192_auto_20190125_1514.py | 3779ca4d7f242aa5bd1e5ad30a90d32209c5bc7d | [] | no_license | ronit29/docprime | 945c21f8787387b99e4916cb3ba1618bc2a85034 | 60d4caf6c52a8b70174a1f654bc792d825ba1054 | refs/heads/master | 2023-04-01T14:54:10.811765 | 2020-04-07T18:57:34 | 2020-04-07T18:57:34 | 353,953,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | # Generated by Django 2.0.5 on 2019-01-25 09:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('doctor', '0191_auto_20190124_1845'),
]
operations = [
migrations.AlterField(
model_name='cancellationreason',
name='... | [
"shashanks@policybazaar.com"
] | shashanks@policybazaar.com |
36710a7d12616b5644f99cb4df293b84763d2c31 | fcd5be464ccb9005f0f656a2405c1e2d05420d3c | /triangular elements shape functions 2D.py | c63f7eaa816281ee435611a58728ba9d149067c4 | [] | no_license | patozavala/finite-elements-codes | ef023fab91c1c163209150fb4d11e380f2cbd20a | df0f265fb4c8d1836728ea4c2d85e988e6c4e547 | refs/heads/main | 2023-04-05T03:15:57.168629 | 2021-04-13T03:17:52 | 2021-04-13T03:17:52 | 193,142,447 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,995 | py | import numpy as np
def gauss_quadrature_triangle(k):
"""
this routine gives the quadrature points and weights of quadrature to
integrate numerically a polynomial of order "k".
:param k: polynomial order to approximate
:return: xi : coordinates of quad points
w : value of q... | [
"noreply@github.com"
] | patozavala.noreply@github.com |
71f8ffebaa5401937cf79dbf6d5fb29112bac31b | 964092cfec6190072ea82d698ff0e0fe77fd9e24 | /tests/test_common.py | 3bba840560b16e5d2e69b6099da72f13f8c506a3 | [] | permissive | esanzy87/codef-python | 2ce851d870be8c04d97a7a3e28169cef2b8f877b | cd60a3b58781937c17f14732fb0dd546186c4cc8 | refs/heads/master | 2021-05-22T13:19:14.023617 | 2020-04-22T06:36:14 | 2020-04-22T06:36:14 | 252,943,726 | 1 | 0 | MIT | 2020-04-22T06:36:16 | 2020-04-04T08:09:44 | Python | UTF-8 | Python | false | false | 968 | py | import unittest
from . import invoker_factory
class CommonTestCase(unittest.TestCase):
"""
관리단에 해당하는 공통 API 테스트케이스
"""
@classmethod
def setUpClass(cls):
cls.invoker = invoker_factory.get_invoker()
cls.connected_id = '8OLsIxnamncje8lkUuKax-O'
def test_fetch_connected_id_list(se... | [
"esanzy87@gmail.com"
] | esanzy87@gmail.com |
c6b09b750eb78aec189548cc6ec9e8369cccd1d6 | 11910a7ffbc26b9c727bd79682d5edcf7c44de6f | /com/tests/test_api.py | 3600477c34814475cf4b574485d55ff314caebc7 | [] | no_license | AnbuHumbleFool/AutomationUtility | 6bf25c8f523befd8e856c3c6ce2eee5105a85916 | 1020f1b383bb51bcce52ff1fbd4730338a411f8f | refs/heads/master | 2023-04-01T19:50:15.014521 | 2023-03-25T11:21:09 | 2023-03-25T11:21:09 | 283,449,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,290 | py | import pytest
import json
import requests
import csv
# import pandas as pd
class WholeAPITest():
@pytest.fixture
def test_one(self):
# Fetch bearer token
# /.................................Test Case 1...................................../
url = 'https://accounts.spotify.com/api/token... | [
"itanbarasan.gmail.com"
] | itanbarasan.gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.