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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c658a9eea9faa8760fe14642bb464cfabf73be90 | 2bdffd6d18cc16801064373409821130f9035ed4 | /experiments/sudoku/solve2_nn.py | 54b53ec5f2281796daec0d673a510b6cb05cce96 | [] | no_license | benthayer/Tensorflow | a433c05ba20db937d4fd6830e30d03d1741e1b2d | 48572c93702799b690c0b061fadc4cffb1a34283 | refs/heads/master | 2021-06-14T14:53:23.337419 | 2017-03-20T22:45:01 | 2017-03-20T22:45:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,084 | py | import numpy as np
import tensorflow as tf
from experiments.sudoku.gen2 import convert_to_normal, get_training_and_test_sets
def weight_variable(shape):
initial = tf.truncated_normal(shape, stddev=0.1)
return tf.Variable(initial)
def bias_variable(shape):
initial = tf.constant(0.1, shape=shape)
ret... | [
"benthayer2365@gmail.com"
] | benthayer2365@gmail.com |
821821dc8c26febfe8eae588743128fda1bc6ed5 | cbdf42eaf2f3ee908999fb1317d3fe90fa255f42 | /kusinwolf/truth_tables.py | 78e29f83189b337acc29c22cdc795974950e4d69 | [] | no_license | tdyhacker/pythonexploration | 47c4e8a96d541428d4cf1d6c558a29e48f5fc22c | 4b360ef2b61fb565c7e2f82ff31e848776cd649a | refs/heads/master | 2021-01-10T02:51:34.245002 | 2010-11-28T02:31:36 | 2010-11-28T02:31:36 | 47,951,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,895 | py |
def printTable(truth_table):
for key in truth_table['order']:
print key, "\t",
print ""
for item in truth_table['order']:
print "-------",
print ""
for row in range(len(truth_table[truth_table['order'][0]])):
for col in range(len(truth_table['order'])):
... | [
"kusinwolf@c446d5ca-c62c-11dd-92e3-e3085bfe42ca"
] | kusinwolf@c446d5ca-c62c-11dd-92e3-e3085bfe42ca |
9663b289594d9946c2f865789b20f2e9add71bac | 9b52be243a9fc05f18fb66044e2d23a8c83f3a0d | /Session 1/intro.py | 9457a97a764f74a1394978dd81c48aee0d3b1383 | [] | no_license | trangnguyen21/nguyenvumytrang-fundamentals-c4ejs01 | 5663a4fd064a8fa05bf3ca730fa08e21753fe982 | 03731c706e498cc72e76ba2423d1c8a186efdff2 | refs/heads/master | 2022-12-09T22:12:06.708492 | 2019-12-29T02:45:32 | 2019-12-29T02:45:32 | 218,953,505 | 0 | 1 | null | 2022-12-05T02:22:04 | 2019-11-01T09:18:56 | CSS | UTF-8 | Python | false | false | 61 | py | a = float(input('height'))
b = float(input('hypotense'))
| [
"admin@CSGLANBK-281.sg.cmc.com.vn"
] | admin@CSGLANBK-281.sg.cmc.com.vn |
0b130d34300f0d54fda9186249d00d2196464eda | d2ada8e9dea0a59476dbbdcfdebc3b8eed951271 | /CH02/bh_sshserver.py | 5046e3f12011c7357d50aa4e84956dbebd0307ea | [] | no_license | sadavoya/bhp | dccf211f4bd95f5eaf69e44c3bfee8f7d07af688 | 6fbf1be8ca0f83363234d9c95170bdd770716c28 | refs/heads/master | 2021-01-13T14:51:13.347114 | 2017-02-21T01:39:57 | 2017-02-21T01:39:57 | 76,486,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,325 | py | #!/usr/bin/env python
'''SSH'''
import socket
import threading
import paramiko
import sys
# using the demo keys in the paramiko demo files
host_key = paramiko.RSAKey(filename='test_rsa.key')
#print host_key.get_base64()
class Server(paramiko.ServerInterface):
def __init__(self):
self.event = threading.Eve... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
7da317e87cb08431320105068322690d71269402 | a1092fecf5057e45f1df4e738a14be210dadbc83 | /gen.py | 3d26eb5062cedb3108e425576485a5c6bc7d741c | [] | no_license | robert-giaquinto/baum-welch | ba45b3c80e839ae7fd5b8b5a00ee07dd9228b61a | b57fb2bd64ed3fdfed1552a6ea5afd9c7c120cfc | refs/heads/master | 2021-01-15T09:09:29.267399 | 2014-05-31T21:17:42 | 2014-05-31T21:17:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,008 | py | import random
import numpy as np
N_SEQ = 10
START = 0
BEFORE = 1
AFTER = 2
END = 3
def gen_seq():
seq = []
state = START
while state != END:
if state == START:
state = BEFORE
seq.append('S')
if state == BEFORE:
n, l, r = np.random.multinomial(1, [0.9... | [
"piotrek.kaleta@gmail.com"
] | piotrek.kaleta@gmail.com |
3925710c3420811e6ea8744fbbc871f548568fad | fc8a86e30c286910eef086821397b34093954fed | /day04/note/json1.py | e4125259f10447fc494d84f76907d062ad6d5450 | [
"Apache-2.0"
] | permissive | wjianwei126/learnpython | 0e1a0504b70852eb3d9c53d8827981ce5d609446 | 797ec7afc94e6c467d7e1f037219b3aaf1327cf0 | refs/heads/master | 2020-04-09T04:18:32.059840 | 2015-01-22T12:42:00 | 2015-01-22T12:42:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | #!/usr/bin/evn python
#coding:utf-8
import json
a = {'k1':'v1','k2':'v2'}
a_json = json.dumps(a)
print a_json
print type(a_json)
a_new = json.loads(a_json)
print a_new
print type(a_new) | [
"congmmy@gmail.com"
] | congmmy@gmail.com |
40da92312bb0d21b9e98e3332e5523a47d977ab2 | b36a2ca0e71bd272afd4c831e09b498cedfec889 | /0x07-python-test_driven_development/5-text_indentation.py | 0053243d7e0d860174c7314f26c14ad56febdc8c | [] | no_license | dondropo/holbertonschool-higher_level_programming | 3a132c1dd8d31b5e9f170a6fab83aa1550449965 | 6d0bf581830c4ecfb17d926fdc89b357a5664574 | refs/heads/master | 2023-03-02T02:20:09.866147 | 2021-01-31T22:37:01 | 2021-01-31T22:37:01 | 259,390,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | #!/usr/bin/python3
def text_indentation(text):
if not type(text) is str:
raise TypeError("text must be a string")
sp_chars = [':', '.', '?']
if type(text) is not str:
raise TypeError("text must be a string")
idx = 0
for j in text:
if j in sp_chars:
if text[idx + ... | [
"alejandroruscamoreno@gmail.com"
] | alejandroruscamoreno@gmail.com |
1d5db696b220dc961fb989dfd34319751e4378f2 | 66ff35c1389e468e809c4080262f79a91373ce29 | /RotorS_ws/build/rotors_control/catkin_generated/pkg.installspace.context.pc.py | 43cfa00f3c30211991b0271b5a9ef0c38c9db3c3 | [] | no_license | TJHDL/Tilted-Hexarotor-Omnicopter | e544a82b505ecd148f8bde10fced42605397bec0 | f8f47b4d101b0c2665b4c78180908eeac6758627 | refs/heads/main | 2023-05-01T14:13:53.670321 | 2021-05-10T12:06:46 | 2021-05-10T12:06:46 | 366,026,610 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "${prefix}/include".split(';') if "${prefix}/include" != "" else []
PROJECT_CATKIN_DEPENDS = "geometry_msgs;mav_msgs;nav_msgs;roscpp;sensor_msgs".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "-l... | [
"hdltjdx@163.com"
] | hdltjdx@163.com |
79397e0d2322942df03ee78140a794d44521cfca | 2b01258d3a1dca79d548f490731b0474cab5202f | /app/model/file.py | adb9d84802b812ecb99f5c5f112817f1a79f7abd | [
"MIT"
] | permissive | icrdr/1-mu-server | 9714b60ea285c843dca6f0cda74566c70449fe76 | 8212b79a9949e334c185b99b1be41add5e577937 | refs/heads/master | 2022-11-23T08:11:44.258413 | 2020-10-16T14:03:36 | 2020-10-16T14:03:36 | 194,759,358 | 0 | 0 | MIT | 2022-11-22T04:07:08 | 2019-07-02T00:18:35 | Python | UTF-8 | Python | false | false | 4,551 | py | from .. import db, app
from datetime import datetime
import os
import shortuuid
from psd_tools import PSDImage
from PIL import Image
from .post import Tag
from ..utility import word2List
FILE_TAG = db.Table(
'file_tags',
db.Column('tag_id', db.Integer,
db.ForeignKey('tags.id')),
db.Column('fil... | [
"icrdr2010@gmail.com"
] | icrdr2010@gmail.com |
6ee7e72ba92ecde352fbe7130382ee1d2873e524 | d5f080543d3004f560c1ae636900080f1c7e8b31 | /configs/D2Det/D2Det_detection_r101_fpn_2x.py | 4e184d8220699043f302581714e52140c0c3b0ba | [
"MIT"
] | permissive | Randl/D2Det | dc7bd395b8c538e96f390d7ce5c396f87ee89bd8 | 5e35b218d9de824e73e0a49953af25a0c6984e74 | refs/heads/master | 2022-09-25T13:52:21.141590 | 2020-06-11T09:08:47 | 2020-06-11T09:08:47 | 271,498,684 | 0 | 0 | MIT | 2020-06-11T08:56:15 | 2020-06-11T08:56:15 | null | UTF-8 | Python | false | false | 5,685 | py | # model settings
model = dict(
type='D2Det',
pretrained='torchvision://resnet101',
backbone=dict(
type='ResNet',
depth=101,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
style='pytorch'),
neck=dict(
type='FPN',
in_channels=[256, ... | [
"connor@tju.edu.cn"
] | connor@tju.edu.cn |
6907542e7974952c900a54a7451dffc120b1d850 | 719990ee24f8dbfc11024bb5f1ec22cd3b8b4c62 | /scrape.py | ead90be26583ec15b8e8d7b048ed45fdfff202d1 | [] | no_license | raymond-devries/usara-nationals | 790eed3d34a2f2ac2e74c141ae493c51d6eb50c3 | 1c9f82d686de730bde0296f40bf9d92a0ec78bbb | refs/heads/master | 2023-08-12T04:28:51.849196 | 2021-09-19T18:32:43 | 2021-09-19T18:32:43 | 405,495,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | from selenium import webdriver
import json
from selenium.webdriver.firefox.options import Options
def main():
options = Options()
options.headless = True
driver = webdriver.Firefox(options=options)
driver.get("https://adventureenablers.s3.amazonaws.com/Tracking/2021USARANationals/SI/index.html")
... | [
"raymond.l.devries@gmail.com"
] | raymond.l.devries@gmail.com |
da12b13c74af1380f00c4a72cbbbc0e05debc10d | 0d68ecb5f8ad4577163550ffd48737ab1c677b38 | /src/blockit/utils/io.py | 5b7c9a0f6d90a5f199e92da246bd9384d94e578f | [
"MIT"
] | permissive | jgarte/blockit | 8372c35ea9d6ed14ab67b48de753e7dfc02cfc84 | e0311444701ac1a1d0fbec623f6ebc72f1b37e6b | refs/heads/main | 2023-05-31T04:59:43.541995 | 2021-06-21T14:48:30 | 2021-06-21T14:48:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | """File I/O util functions."""
from pathlib import Path
from blockit.txn.txn_block import TransactionBlock
def get_project_root_path() -> Path:
"""Get project root path.
Returns:
Path: Absolute path of the project root
"""
return Path(__file__).parents[3].absolute()
def write_block(txn_b... | [
"ank@leoank.me"
] | ank@leoank.me |
627dc9d2396b751179bf4503d940b93c9c792dcf | b4ea78b8b33e2dee808290e8f87038108b12cf7b | /Python-learning/画图/others/test6.py | eec99faddab877ca9a2c0f07386452d0d66a70e3 | [] | no_license | liang2713020/Learning | d275ddfb8032d49f42143dc71bfd52fdeacb8932 | fbfdc12ce2877af4be020082885519334523c8ab | refs/heads/master | 2021-01-22T19:55:06.788211 | 2015-07-26T13:54:19 | 2015-07-26T13:54:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py |
from pylab import *
figure(figsize=(8,5), dpi=80)
subplot(111)
X = np.linspace(-np.pi, np.pi, 256,endpoint=True)
C,S = np.cos(X), np.sin(X)
plot(X, C, color="blue", linewidth=2.5, linestyle="-")
plot(X, S, color="red", linewidth=2.5, linestyle="-")
xlim(-4.0,4.0)
xticks(np.linspace(-4,4,9,endpoint=Tru... | [
"568191222@qq.com"
] | 568191222@qq.com |
0e0b558e0962614dfcb87a6d486c3d9fdd1a129a | 7327dda3e2c72026bfe0de5185645fb24d0e3fe0 | /week2/iterative-sorting.py | b18c3fbefd43c624e00aa455a3487c7eacb86247 | [] | no_license | CarnunMP/CS-morning-challenges | 782b1774344361c69929ab1f0006f99ea7fe5abc | b1bb02d4130d3a4e0f6aa6cd28673f92982ea054 | refs/heads/master | 2021-01-03T06:19:33.004744 | 2020-02-25T21:55:07 | 2020-02-25T21:55:07 | 239,958,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,949 | py | ### Objective challenge:
### 1. Try writing a Python function to perform a linear search on a set of data.
### 2. Try writing a Python function to perform a binary search on a set of data.
### 3. Can you rewrite the above function so that it uses recursion?
test_data = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14... | [
"carnun@hotmail.co.uk"
] | carnun@hotmail.co.uk |
16a3403ab8a7c97642874c0b8f630e03fc070931 | 2546d448f03a57152a701180077fcc904b1b944a | /schedule/urls.py | 8077ba2843cfce809db5893d0f5c814810d77fe0 | [] | no_license | NathanDai5287/Sharetrade | 61f52913591a404766654921c054663d83414a55 | 62a453364c0d97cf0b114e5286bfd0dc8fef44a5 | refs/heads/master | 2023-06-26T20:52:09.932366 | 2021-08-03T04:38:04 | 2021-08-03T04:38:04 | 387,053,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 847 | py | """schedule URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-base... | [
"nathandai2000@gmail.com"
] | nathandai2000@gmail.com |
1b5264d22279cc7d5f53699e4a0c0adf326e2398 | 2836975ce5ee74397fb674bdfd04a164d00baafb | /main/migrations/0015_auto_20201124_1105.py | 54d7a4575c36c78dab5ae3e805029eaf089a4b61 | [] | no_license | tz01x/rental | 57aedf6677ead989a089999b4802a6975d62ce0c | 103491c76c62b71901d3f758f9b9af59d2270fe4 | refs/heads/master | 2023-08-22T14:45:18.125694 | 2021-09-30T01:58:46 | 2021-09-30T01:58:46 | 332,413,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | # Generated by Django 3.1.1 on 2020-11-24 05:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0014_auto_20201122_1658'),
]
operations = [
migrations.AddField(
model_name='property',
name='latlong',
... | [
"abdur963rahman@gmil.com"
] | abdur963rahman@gmil.com |
aa7b59318cba778a709f76ed4f709ab1a5fa40e7 | cc6d9fb4a7c7235ff5985ef17f4a554f19a0263d | /apps/transactions/templatetags/filters.py | 9706794c65b1abd95312c80471d048127a3ae137 | [] | no_license | timohermans/rabo-overview | 6c210a73a68b17620ee8df0985b9b4e28200081c | 0baea9631ee504b63046459718ea1a255992a18d | refs/heads/main | 2023-08-05T19:54:30.751983 | 2021-09-11T18:17:53 | 2021-09-11T18:17:53 | 393,132,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,389 | py | from datetime import date
from typing import Any, Iterator, List
from dateutil.relativedelta import relativedelta
from django import template
from apps.transactions.models import Account, Transaction
register = template.Library()
@register.filter
def previous_month(source: date) -> date:
"""date - 1"""
ret... | [
"timo.hermans@kabisa.nl"
] | timo.hermans@kabisa.nl |
1b20c5a22901e1d346f020449eeffb7621afe266 | 5f51fdeb5efc6cbcc0736957d2f16eddf9214671 | /python/mind_palace/product_ranker/prepare_data/integerize_clickstream.py | e724ec724f5bfb745e44fd81b6c4d2eb7a35091a | [] | no_license | thejusvm/learn-cascading | aa438e74f26b94a880ad04bb425092f5145612e3 | 1e0fd76f7f746e4c177661e40c5abd4fe081643f | refs/heads/master | 2021-09-14T17:12:29.879467 | 2018-03-01T15:32:05 | 2018-03-01T15:32:05 | 103,110,403 | 0 | 0 | null | 2017-09-11T08:32:29 | 2017-09-11T08:32:29 | null | UTF-8 | Python | false | false | 6,607 | py | import cPickle as pickle
import glob
import json
import numpy as np
import os
import pandas as pd
import time
from contextlib import closing
from functools import partial
from multiprocessing import Pool
import mind_palace.product_ranker.constants as CONST
from mind_palace.product_ranker.commons import init_attribute_... | [
"thejus@flipkart.com"
] | thejus@flipkart.com |
1338076a2a3f108f9a4dc2d5342bb1e00f1c6a08 | bae29c2fb8eedd320bc881c2a22b70298ab0f38d | /icoder/settings.py | 967f1581a2d331e5cd6bb00382882744e5558c5f | [] | no_license | SourabhRishabhMishra/icoder | 1527604df1f93f04bc58c4471555381837da296d | 6f4e279c1e31e99e91fbd7c091c9e3088cc1d2e5 | refs/heads/master | 2022-12-07T05:47:02.222021 | 2020-08-19T01:20:32 | 2020-08-19T01:20:32 | 288,088,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,353 | py | """
Django settings for icoder project.
Generated by 'django-admin startproject' using Django 3.0.8.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
fro... | [
"sourabhm384@gmail.com"
] | sourabhm384@gmail.com |
5e3d8619d84b4b1e96647c74f4f542131e866de3 | 0dfa9dc572ea50ae81de8052f4d2ac79bb31a243 | /test_incorrect_ip_address_managers.py | 6feda65aa49efdb3e75d6789fac86e0fa77e7db8 | [] | no_license | dwjhaines/selenium | 6b52c9c1d02d6088695c49fc8a4dfc2d3323206f | 44e0e1285be92013e6d8d2cece7419431ac3f4e3 | refs/heads/master | 2020-04-17T19:45:58.070917 | 2016-09-14T14:53:40 | 2016-09-14T14:53:40 | 66,008,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,416 | py | ###############################################################################################
# #
# test_incorrect_ip_address_managers.py #
# ... | [
"David.Haines@s-a-m.com"
] | David.Haines@s-a-m.com |
7d812592e10d2a0d003e3156aef68f26c0796648 | 601adbb343313e7cce71b9b8d06620f541f349e5 | /tests/test_ci/test_runners/test_BaseRunner.py | 4545078bf38683e3c939099329a8ad2f0d27d15f | [] | no_license | jgsogo/conan-sword-and-sorcery | f3ff2c9b739410a7fb6eb97c49470d585fd1ab4c | 143f05d8b469a3afc9c807ec87fbe2dcbe63dab3 | refs/heads/master | 2021-04-06T06:23:40.584031 | 2018-08-15T16:50:43 | 2018-08-15T16:50:43 | 124,441,534 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,120 | py | # -*- coding: utf-8 -*-
import os
import unittest
try:
from unittest import mock
except ImportError:
import mock
from conan_sword_and_sorcery.ci.runners import AppveyorRunner
from conan_sword_and_sorcery.ci.runners.base_runner import SUCCESS, FAIL, DRY_RUN, BaseRunner
from conan_sword_and_sorcery.parsers.sett... | [
"jgsogo@gmail.com"
] | jgsogo@gmail.com |
d8ca730c49e849faef22bb61d6e7c1ea1853c890 | 694d57c3e512ce916269411b51adef23532420cd | /python/chapter-1/lab4-exec1.2.py | 00e1dd5356363c18fb8e1045f63f53286f0a515a | [] | no_license | clovery410/mycode | 5541c3a99962d7949832a0859f18819f118edfba | e12025e754547d18d5bb50a9dbe5e725fd03fd9c | refs/heads/master | 2021-05-16T02:46:47.996748 | 2017-05-10T23:43:50 | 2017-05-10T23:43:50 | 39,235,141 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | def gcb_recur(a, b):
smaller_para = min(a, b)
larger_para = max(a, b)
remainder = larger_para % smaller_para
if smaller_para % remainder == 0:
return remainder
return gcb_recur(smaller_para, remainder)
print(gcb_recur(50, 35))
def gcb_itera(a, b):
smaller_para = min(a, b)
larger_p... | [
"admin@admins-MacBook-Air.local"
] | admin@admins-MacBook-Air.local |
3b98e43e2f3dc2377b74432e9fe99c572da37f2a | 4904acd900496b4883c2f5b4aa6b45d1ef6654c0 | /graphgallery/gallery/nodeclas/tensorflow/__init__.py | 1cf21d123e086ed846bcb034e8d4271c9735498d | [
"MIT"
] | permissive | blindSpoter01/GraphGallery | aee039edd759be9272d123463b0ad73a57e561c7 | e41caeb32a07da95364f15b85cad527a67763255 | refs/heads/master | 2023-06-17T11:42:27.169751 | 2021-07-15T03:07:39 | 2021-07-15T03:07:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 782 | py | from .gcn import GCN
from .gat import GAT
from .clustergcn import ClusterGCN
from .sgc import SGC
from .gwnn import GWNN
from .robustgcn import RobustGCN
from .graphsage import GraphSAGE
from .fastgcn import FastGCN
from .chebynet import ChebyNet
from .densegcn import DenseGCN
from .lgcn import LGCN
from .BVAT.obvat im... | [
"cnljt@outlook.com"
] | cnljt@outlook.com |
6aef4706708cb0d55ce4d56b5e7fcbfcba763ea4 | 5a1d08aac9ed0c730e4f97b0e766c6763cfaab1f | /gb_chat/common/ui_keyboard_interrupt_helper.py | f393750b04ea94f8e2bfb5f048664114872d7b25 | [
"Apache-2.0"
] | permissive | Cerzon/gb_chat | 0b2965e046bcf4d832fb398361271d8eae19e50f | b4f8a6bf62b0971a135fbb2083456193f7a816cb | refs/heads/main | 2023-04-24T12:26:44.142068 | 2021-05-03T14:52:01 | 2021-05-03T14:52:01 | 360,984,777 | 0 | 0 | Apache-2.0 | 2021-05-03T14:52:02 | 2021-04-23T19:22:17 | Python | UTF-8 | Python | false | false | 685 | py | """
This solution is taken from https://coldfix.de/2016/11/08/pyqt-boilerplate/#keyboardinterrupt-ctrl-c
"""
import signal
from typing import Callable
from PyQt5.QtCore import QCoreApplication, QTimer
def _interrupt_handler(app: QCoreApplication) -> None:
app.quit()
def _safe_timer(timeout: int, fun: Callable[... | [
"derlih@gmail.com"
] | derlih@gmail.com |
7d6e7442b32fe58141787e6063cf7b0ae35a74b7 | d49fbd7874b70a93cbc551afed1b87e3e47617a8 | /django/example/repositories/__init__.py | 1efb28043ae95783f5bde83b3415bcedaf028594 | [] | no_license | gitter-badger/tutorials-4 | bbdbb673e978118f9fec3212baa13f6f99226be0 | 3ce1cdb7c6d26f6df4d6bb94e82f83e8cab9389b | refs/heads/master | 2020-04-04T20:52:28.181616 | 2018-10-28T22:05:17 | 2018-10-28T22:05:17 | 156,264,177 | 0 | 0 | null | 2018-11-05T18:32:17 | 2018-11-05T18:32:16 | null | UTF-8 | Python | false | false | 528 | py | from .category import load_categories, load_category # noqa
from .entry import load_entries # noqa
from .notification import create_notification, load_notifications # noqa
from .price import ( # noqa
cheapest_price_by_category,
load_price,
prices_for_category,
)
from .profile import ( # noqa
add_ba... | [
"proofit404@gmail.com"
] | proofit404@gmail.com |
4b4b5fbf0fcd97b37a90c5dc2ac660d862ce075b | d5a947bf9819e039f7238e61233c3bfab505deeb | /resume/models.py | d9a053342ec016c9bf06a472b188404a8bdfe82a | [] | no_license | P-Tanifor/JobSite | 09e9c30f3682f16fa125dce587b03e4e97e59e28 | afc5b0acd3a6e81fe96f7486a661705fa86b933e | refs/heads/main | 2023-09-03T12:43:00.162298 | 2021-10-29T11:32:45 | 2021-10-29T11:32:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | from django.db import models
from django.contrib.auth.models import User
import django
# Create your models here.
class Resume(models.Model):
description = models.CharField(max_length=1024)
author = models.ForeignKey(django.contrib.auth.models.User, on_delete=models.CASCADE)
| [
"ptanifor@gmail.com"
] | ptanifor@gmail.com |
697a66de3c22d6e8c4704790081528d98a614067 | adc531efc839ec0fc8e67504e5429ad7696c57cc | /API_Article/migrations/0037_auto_20210430_2214.py | 9066067fd23b7e1551788489d86436814bad5e8b | [] | no_license | huynguyen-py/GraduateBackendAPI | 1521db57947804d4b2342060632a4ecf637993cd | bdfb25ae96fd1165ce431be48c03d80b73d32de8 | refs/heads/main | 2023-05-07T00:04:24.866230 | 2021-06-02T05:03:06 | 2021-06-02T05:03:06 | 372,700,747 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | # Generated by Django 3.1.7 on 2021-04-30 15:14
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('API_Article', '0036_auto_20210316_0944'),
]
operations = [
migrations.AlterField(
model_name='comment',
... | [
"iamhuynguyen1002@gmail.com"
] | iamhuynguyen1002@gmail.com |
0a19884a78e49b4f205f1efa1f54e90fe911ff31 | a1e2d31682b80aca10bbcd25db550419e04e71e5 | /semesters/apps.py | 1b7401041ba6e4bb8cb6e06093f6fd800242272b | [] | no_license | letzzBuild/ElectiveAPI | 712b1043c533eb00657f0cb481a7fcdbc47bb376 | e89d3af596ae2898e4480f8b380d46e13cd6338d | refs/heads/main | 2023-08-14T16:37:45.390654 | 2021-09-26T07:57:13 | 2021-09-26T07:57:13 | 379,562,536 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | from django.apps import AppConfig
class SemestersConfig(AppConfig):
name = 'semesters'
| [
"letzzBuild@gmail.com"
] | letzzBuild@gmail.com |
16a35cd3db0fd05415676003f38fabb5303dec8d | 6f9170a35fa5d758bec62c9a9be21fae11b6783f | /desafio027.py | 06d929be683134e41c754ae05dd54637ce1078f0 | [] | no_license | alineat/python-exercicios | 11e227ceadbff0e997e2ed427f54a721a5e76e9e | 9557dea8d057ded63e2abbed458d00660d9e8c4e | refs/heads/master | 2020-07-03T15:09:40.575431 | 2019-08-12T14:37:00 | 2019-08-12T14:37:00 | 201,947,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | # Faça um programa que leia o nome completo de uma pessoa, mostrando em seguida o primeiro e o último nome separadamente
nome = str(input('Nome completo: ')).strip()
dividido = nome.split()
print('Primeiro nome: {}.\nSegundo nome: {}'
'.'.format(dividido [0], dividido[len(dividido)-1])) | [
"aline_atsuta@hotmail.com"
] | aline_atsuta@hotmail.com |
ccea4c2d3b3dedfd336b6570dafd6f1cbb2e431c | bf79aba1e47566d06fd9a7096a1d2dbbaf228748 | /detect.py | 26b305d7faa0cf22c154c6cb4cc9c78bbbeb2413 | [] | no_license | SubinMs/smartPrice | b998e315d8ffe610a75e7164f08fdf78000fb954 | d21b9d991fa513bb08ac097a36e905ba2563cc1c | refs/heads/master | 2020-09-14T16:28:47.955172 | 2019-11-21T17:16:46 | 2019-11-21T17:16:46 | 223,184,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,201 | py | import io, os
from numpy import random
from google.cloud import vision
from Pillow_Utility import draw_borders, Image
import pandas as pd
os.environ['GOOGLE_APPLICATION_CREDENTIALS'] = r"GoogleCloudDemo_ServiceAcct_Token.json"
client = vision.ImageAnnotatorClient()
img_list = os.listdir('./images')
#fil... | [
"noreply@github.com"
] | noreply@github.com |
602ecb7bb83ddd5c367c45eeaec4531e135d6824 | f87dc2227f9539ce9f87b8eb417d28f487ea2eac | /이진탐색/부품찾기.py | b3627efacbce4f210bf7ebc9dc2784e06dd4977a | [] | no_license | jjangsungwon/python-for-coding-test | fb1e019a2e68e426bb4f6770bffdc6289a647b4a | 8d9bf8de5de2a9724f75b35ea04dd9bcc40dec86 | refs/heads/master | 2022-12-16T02:53:55.967070 | 2020-08-26T08:41:14 | 2020-08-26T08:41:14 | 285,842,867 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 895 | py | def binary_search(target, start, end):
if start > end:
return None
while start <= end:
mid = (start + end) // 2
if array[mid] == target: # 일치
return "yes"
elif array[mid] > target: # 중간값이 찾고자 하는 값보다 클 때
end = mid - 1
else:
start = mid... | [
"dnjs2113@gmail.com"
] | dnjs2113@gmail.com |
5c09d311aad75b9bd3cd0f7997527b7e8fa604b9 | 457a1baf3a9afc365d53e955db5ccbef6a9f636b | /morphenepython/blockchain.py | 78f87d70667fda7d3020bdbb096dc6dc9ad2baea | [
"MIT"
] | permissive | morphene/morphene-python | 5bf9cb3cbc4a081297e26269c398192e12433072 | 7c6144c7337330490229ce69b8c3fb5dc2e3d08e | refs/heads/master | 2021-07-03T07:43:16.118829 | 2019-05-30T19:38:49 | 2019-05-30T19:38:49 | 189,285,305 | 0 | 0 | NOASSERTION | 2020-10-27T21:47:05 | 2019-05-29T19:22:41 | Python | UTF-8 | Python | false | false | 42,412 | py | # This Python file uses the following encoding: utf-8
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from future.utils import python_2_unicode_compatible
from builtins import str
from builtins import range
from builtin... | [
"andrewc@pobox.com"
] | andrewc@pobox.com |
e805cdb88bd2de7f4bce40ee710b792a3c6c17be | 106aa71c49f176415c7c140f066bde4e3a2df797 | /Archive/Mads_Wind/utility.py | a67c83df9e2c038f38bc54fbb709dfaca7a60d8b | [
"MIT"
] | permissive | madsankern/DynamicProgramming | df461dae3bcc3dbde18e79fdded0974daa0e293c | 0812b844068c33b2529d4b11940f9c89582bc374 | refs/heads/main | 2023-05-31T00:18:45.820845 | 2021-06-09T16:51:45 | 2021-06-09T16:51:45 | 341,465,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | import numpy as np
# Without housing
def u(c,par):
if par.eta == 1.0:
u = np.log(c)
else:
u = (c**(1-par.eta) - 1.0) / (1.0 - par.eta)
return u
# With housing
def u_h(c,h,par):
if par.eta == 1.0:
u = np.log(c) + par.kappa*h
else:
u = (c**(1-par.eta) - 1.0) / (1... | [
"Wind.Mads@bcg.com"
] | Wind.Mads@bcg.com |
7efb9951bfdf815059c2e6a6b72a96e332f6a971 | 602afe5a905c1f66892312b91fc381d966196f1a | /utilities/request_parsers.py | aeadf503229360bc0911ab99d3a6bab21f0b095e | [] | no_license | Big-Ideas-Lab/nutrics | 394299905af1fbd88ded4197032a2ce03aa8445c | 174baecf041096552a69b4c5f68895186673e4cd | refs/heads/master | 2022-08-27T06:48:01.326349 | 2020-05-08T17:25:54 | 2020-05-08T17:25:54 | 243,624,416 | 0 | 0 | null | 2022-06-22T02:45:47 | 2020-02-27T21:53:05 | Python | UTF-8 | Python | false | false | 2,799 | py |
'''
There was too much clutter in the resources files, so I pulled out defining of requests parsers.
'''
from flask_restful import reqparse
#create parser for incoming user data
u_parser = reqparse.RequestParser()
u_parser.add_argument('username', help = 'Username cannot be blank.', required = True)
u_parser.add_arg... | [
"joshuadarcy@joshuas-mbp.lan"
] | joshuadarcy@joshuas-mbp.lan |
da7e9cf99e5e8e2d628496cb45d1bce02e1fe524 | 436acccf18f21fe3fa7d2588fa25184c180e930d | /main.py | a08b882602da70e994455f6ef206d8db9fb1a592 | [] | no_license | Kevin-Escobedo/Jeopardy-Bot | ee097c6e375149b1c3e31f9c2c2087846138602b | 06040a2abf53ae6b0178d397a209fdc0fbdd4f50 | refs/heads/main | 2023-04-09T18:57:35.243238 | 2021-04-21T19:32:26 | 2021-04-21T19:32:26 | 358,014,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,482 | py | import requests
import json
import tweepy
import datetime
import time
import twitterCredentials as tc #File containing api key, secret key, tokens
import jeopardyDatabase
#TO-DO: Refactor
def makeTitle(s: str) -> str:
'''Capitalizes each word in s'''
#Because s.title() doesn't quite work with apostrophes
... | [
"escobedo001@gmail.com"
] | escobedo001@gmail.com |
26d76ad4d4f1ddd75f25e843de51546595a08f4d | 3356eb3fbf1ba5a8e5b0a851f07e8df5c852fdf8 | /tasks/takeoff.py | c4c7e6afe91521b29b8fec997819f25673715950 | [] | no_license | spb07/RL-Quadcopter-2 | 640118dcc932780e9c23d2adc36ab49d5e640f80 | 1061f3df2de6e116d281730583aa74acb472509b | refs/heads/master | 2020-03-18T22:32:02.527492 | 2018-05-29T20:49:28 | 2018-05-29T20:49:28 | 135,350,682 | 0 | 0 | null | 2018-05-29T20:41:13 | 2018-05-29T20:41:12 | null | UTF-8 | Python | false | false | 7,157 | py | import numpy as np
from physics_sim import PhysicsSim
class Task():
"""Task (environment) that defines the goal and provides feedback to the agent. Goal is to takeoff to a given height and hover once takeoff height is achieved. Ideally, only vertical movement with no movement in other planes and no rotation"""
... | [
"rnb14@ic.ac.uk"
] | rnb14@ic.ac.uk |
0776fc01013ec265fc2da612b9ee90542488e9df | 04d50ae4c98c7832123b8af91de8e3990c2347f9 | /Trnsys/ProjectScripts/Decathlon/Post.py | f9a1c5804176710108653f75423192462523a451 | [] | no_license | bmj-archive/Old_Python | 79d1edb7088e1acb22260414469fbd793d83a44a | 929a19b3c0702f82c61d21450033d7416d411ccb | refs/heads/master | 2022-02-25T17:20:33.931716 | 2019-11-05T15:25:18 | 2019-11-05T15:25:18 | 74,760,848 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,539 | py | from exergyframes import exergy_frame as xrg
from exergyframes import meta_table as metaTab
import logging
import os
from config import *
import datetime
import UtilityPathsAndDirs as utilPath
import re
import numpy as np
def _create():
# Input
projectDir = FREELANCE_DIR + r"\DecathlonSim"
descriptionsFil... | [
"Admin@6CORE"
] | Admin@6CORE |
8d8f12dad8abc695708a624d836491390fd1a623 | c5281bec992956018ee8c4e9f9561eab0698ceeb | /tests/test_utils.py | 1349491e3a2f9bf3324ef1fa7f2c62741365de59 | [
"Apache-2.0"
] | permissive | swagger-atlas/atlas | db2b2e3ee09f9afa51d42c4156d73292922410ac | 64a0a6e3107da9f7cf894880823badfa84e11f25 | refs/heads/master | 2023-01-12T03:48:21.665390 | 2019-09-20T17:24:19 | 2019-09-20T17:24:19 | 180,743,015 | 3 | 1 | Apache-2.0 | 2023-01-03T19:30:16 | 2019-04-11T07:56:48 | Python | UTF-8 | Python | false | false | 4,441 | py | from unittest import mock
import pytest
from atlas.modules import utils, exceptions, constants
class TestGetRefPathArray:
def test_local_reference(self):
assert utils.get_ref_path_array("#/definition/Sample") == ["definition", "Sample"]
def test_external_reference(self):
with pytest.raises... | [
"kush.jain@joshtechnologygroup.com"
] | kush.jain@joshtechnologygroup.com |
a1bb1aaf10d01f0cf95dcf59433fd0ff850d609e | e15e56ddca0d1aa989725ad2766f9cf36bcbde23 | /bin/rundevserver | a84db05f4423dc055598d11370934509319f8123 | [
"Apache-2.0"
] | permissive | ylamgarchal/dci-feeder | f7c26ed78aa61ee2e90cf4d047909b357f013fab | 27c0236c0986ee96fac8209bf69b57e71e38eaf5 | refs/heads/master | 2022-02-11T07:05:17.586018 | 2019-11-25T16:29:37 | 2019-11-25T16:50:07 | 217,178,791 | 0 | 0 | Apache-2.0 | 2022-01-06T22:39:23 | 2019-10-24T00:36:35 | Python | UTF-8 | Python | false | false | 813 | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
#
# Copyright (C) Red Hat, Inc
#
# 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 require... | [
"yassine.lamgarchal@redhat.com"
] | yassine.lamgarchal@redhat.com | |
486e48f837ce645846b31ff5ce9ea96f338a5c11 | 391437a03dc30a21ef7cc35d1b51f888da720617 | /test/travis_test_wall_trace.py | b1f54ae1ad06095c25b8fd98e155321f9372cca3 | [] | no_license | takasku/pimouse_run_corridor | 9e60eecd797488901790402b67ca2153d5e8557d | d40b966af1c55b15430e49005e90c68634252c81 | refs/heads/master | 2020-04-25T15:25:44.182451 | 2019-03-06T09:28:44 | 2019-03-06T09:28:44 | 172,856,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,286 | py | #!/usr/bin/env python
#encoding: utf8
import unittest, rostest
import rosnode, rospy
import time
class WallTraceTest(unittest.TestCase):
def set_and_get(self,lf,ls,rs,rf):
with open("/dev/rtlightsensor0","w") as f:
f.write("%d %d %d %d\n" % (rf,rs,ls,lf))
time.sleep(0.3)
with ... | [
"fjkks5is@engs.tamagawa.ac.jp"
] | fjkks5is@engs.tamagawa.ac.jp |
4f238047a913854c18e3f54d8ee509ac319bf7c1 | 7873042aa7b983a7c1075ddcf637135eea66adcd | /movie/views.py | 802a69dbda660cfc60cfc2fa73a7d6ded3e48c56 | [] | no_license | connieGao0819/MovieHunter | f6a1a717e0bf441b1b825dd2461d72cfcb1276e9 | ad80b34a0221462bc2850991f14149b46a72dcc3 | refs/heads/master | 2020-03-06T17:58:03.548201 | 2018-03-26T19:41:09 | 2018-03-26T19:41:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,017 | py | from django.shortcuts import render
from django.views.decorators.csrf import csrf_protect
from movie.models import *
from django.http import HttpResponse
import json
from movie import index
index.index_dir()
print(index.permuterm_index.dict())
def add_seen(request, movie_id):
if request.is_ajax():
history... | [
"jgao4@wpi.edu"
] | jgao4@wpi.edu |
9de7481bfb9c7ec3e011a8ebfbeec40ca8cd62b0 | a7f7981a91c3213c011abd33778278c58fa4aa55 | /python-udemy/Practica1/Practica01_02.py | 55a5c9e09ea6471133973896d9386740c0939148 | [] | no_license | nicolassnider/tkinter_flask_django | 9f631c01b0d2b14758deb4ba9c74f0ca59b12d97 | 14355f130570a6e2dccd81804edfe35ee418a099 | refs/heads/master | 2023-01-23T18:32:14.775758 | 2020-12-05T00:44:43 | 2020-12-05T00:44:43 | 318,354,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | '''
Problema 02: Hallar el cociente y residuo (resto) de dos números
enteros.
Análisis: Para la solución de este problema, se requiere que
ingrese dos números entero por teclado y el sistema realice el
cálculo respectivo para hallar el cociente y residuo.
'''
num1=float(input("num1:\n"))
num2=float(input("num2:\n"))
c... | [
"nicolas.snider@soulit.io"
] | nicolas.snider@soulit.io |
563e7be8d8c11aab5ab1f381e5abf2ed03a6b4d2 | 7ff37f8df377e30f09e5947c6097a7db54e8fab5 | /WebApp/model/model.py | 7d7f6b8f10cf10548fd969cc1c7914afe0deb767 | [] | no_license | jamesnelly/EmergingTechnologies-project | baa4980505f87bc6fff2771a5edfd279f45550f1 | b10a9048cc8bb9b147e118488f531cb3acade4f0 | refs/heads/master | 2020-08-06T13:11:57.695949 | 2019-12-13T18:49:26 | 2019-12-13T18:49:26 | 212,987,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | #adapted from https://www.youtube.com/watch?v=n5a0WBIQitI
#loading the dataset
from keras.datasets import mnist
(x_train, y_train), (x_test, y_test) = mnist.load_data()
import tensorflow as tf
from keras import models
from keras import layers
import keras as kr
import numpy as np
import matplotlib.pyplot as plt
#cr... | [
"g00346996@gmit.ie"
] | g00346996@gmit.ie |
ef45fbb0a58276e6b49fab00d2fbbc90dbba4fd6 | 20fa81fb1ba9c6e77be0f6e115ff643c4a608146 | /creational/abstract_factory.py | 9ae16b8d1eebf4d8c9ef1b2551d206b197873fe7 | [
"MIT"
] | permissive | GustavoBoaz/projeto_Patterns_Python | c6bd344a308c0f29c21a435c03d582226f434ba1 | b46c6dd6e355fce8f769b76c432ac8a00f236438 | refs/heads/master | 2022-09-06T19:15:57.183938 | 2019-11-07T19:15:57 | 2019-11-07T19:15:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,011 | py | """
Abstract Factory é um padrão de design criacional que permite produzir
famílias de objetos relacionados sem especificar suas classes concretas.
Como Implementar:
1. Mapeie uma matriz de tipos de produtos distintos versus variantes
desses produtos.
2. Declare interfaces abstratas... | [
"gustavo.boaz@hotmail.com"
] | gustavo.boaz@hotmail.com |
bc7adc55472ca0f7d4495f4427cf4e5f885f0825 | eaf2ff7b5ba40595c68f58427d89a90eb7696d84 | /main-4.py | c10a18c041f0cfc27793fe9c4ae1ecbef9c5dcb9 | [] | no_license | CodeRaker/learningMatplotlib | f5081eaccf05f9dbf75986ba154118c587779b6b | 499c7b8682d85639ff4d8e9b65adfbf959529c8b | refs/heads/master | 2020-08-05T06:06:35.352829 | 2019-10-02T20:06:28 | 2019-10-02T20:06:28 | 212,423,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | # https://medium.com/@andykashyap/top-5-tricks-to-make-plots-look-better-9f6e687c1e08
import matplotlib.pyplot as plt
import seaborn as sns
sns.set()
deaths = [1,2,3,4,5,6,7]
causes = [1,2,3,4,5,3,4]
#plt.style.use("classic")
plt.plot(deaths, causes)
plt.legend('ABCDEF', ncol=2, loc='upper left');
plt.show() | [
"peterglad1985@hotmail.com"
] | peterglad1985@hotmail.com |
115d00ffaebc79e81a2a2015da2ba91356e18b6e | 1235389bc1ebb52e4d045b00c888234224852a4f | /f_camera_photonics/component_capture.py | c1d78c9e49ba636090990d70619e96bf360c5eee | [] | no_license | jtchiles/camera_photonics | bc2fe6cafa42e8a0d51c8ba99b3ea22bcfcd839b | f186d4cb9a53b9d3544c0677f0ce733cb4313da8 | refs/heads/master | 2021-06-11T19:02:16.223909 | 2020-01-10T19:22:00 | 2020-01-10T19:22:00 | 140,327,371 | 0 | 0 | null | 2018-07-09T18:35:15 | 2018-07-09T18:35:15 | null | UTF-8 | Python | false | false | 981 | py | # Trying to grab images out of cv2 with the USB cam
import cv2
import os
from contextlib import contextmanager
import numpy as np
@contextmanager
def open_camera(camera_port=0):
camera = cv2.VideoCapture(camera_port)
yield camera
del(camera)
## Low level conditioning
# Number of frames to throw away whi... | [
"alexander.tait@nist.gov"
] | alexander.tait@nist.gov |
e9eb2c81dd1c2ed4a7921ec50c1f4ca9e1c1f484 | ab83ce38d59c37c8a55a4e5bd1f49bc2c2538777 | /__env__py3Rest/bin/python-config | b3e1a396ad5ca53df75755e6f67b4d2e6ecc4af8 | [] | no_license | Archu-S-M/Py3Rest | 3df5959d30d96358af97f8434e72c4b4af897889 | d455f5dec45577d4625ca5f5977f9248834fbd26 | refs/heads/master | 2021-01-19T00:21:05.019136 | 2017-04-04T18:26:00 | 2017-04-04T18:26:00 | 87,152,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,354 | #!/var/www/html/Py3Rest/__env__py3Rest/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if sys.versi... | [
"archusm007@gmail.com"
] | archusm007@gmail.com | |
a56fa3ef8236ac18d30826f76d2f59ca41e55070 | 1985271f6d8486de3ab503a6e8574e2c70a30b1b | /feature_engineering/plans/get_fe_diff_div.py | c31e4495a92018588dcef57762136a55c327beb6 | [] | no_license | shuangyumo/kdd-cup-2019-8th-solution | 15ca666e2f9af1e2c8ad4d7295ba500a40b17ca9 | f13fd8e1d8309de00476bd884b39716ffe4c3ced | refs/heads/master | 2022-03-11T11:32:35.802745 | 2019-10-05T16:45:08 | 2019-10-05T16:45:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,379 | py | import numpy as np # linear algebra
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)
def get_fe_diff_div(df):
df_fe = pd.DataFrame([])
top_m = 2
for i in range(1, top_m):
df_fe['diff_eta_{}_{}'.format(0, i)] = df['recom_eta_{}'.format(0)] - df['recom_eta_{}'.format(i)]
... | [
"noreply@github.com"
] | noreply@github.com |
add4b75288e365aec578df927975b3ca9f0318ec | b77dc17ee7ebad73e1028381739e01f708fb6c8b | /ppygui/doc/tut3.py | 44c2785da27ae01aa643b6d0c2e979d5a2da0b79 | [
"BSD-3-Clause",
"LicenseRef-scancode-public-domain"
] | permissive | typerlc/ankice-deps | 6c97bee1a926fc539b2f2e8ec345244e6188c6f1 | 4267af31c56ff2f51be65cad345fc7100ec53e78 | refs/heads/master | 2016-09-01T21:43:41.904988 | 2009-06-24T15:15:12 | 2009-06-24T15:15:12 | 235,231 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 820 | py | import ppygui as gui
# import the gui namespace
class MainFrame(gui.CeFrame):
# subclass to create our own main frame type
def __init__(self):
gui.CeFrame.__init__(self, title="Hello World")
# Create some child control
self.text_entry = gui.Edit(self)
self.button = gui.... | [
"richardc@pippin.(none)"
] | richardc@pippin.(none) |
9362ea26f839e1ffad4ad0b283e97271312b1665 | b2f63110ed9b2be2d51ab88dea551a50eb0ffe7b | /easy/string_mask.py | 8bb9e48380b86b9c243d9038a2278b671d80cb09 | [] | no_license | Nevermind7/codeeval | 07f321c855b850e72f3b18352d7ce4f55b0138da | be9cb36fd8fbac86d3fc1d33095c201e0be8ba9a | refs/heads/master | 2021-01-19T06:43:50.113601 | 2016-07-26T08:29:54 | 2016-07-26T08:29:54 | 63,690,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | import sys
test_cases = open(sys.argv[1], 'r')
for test in test_cases:
word, code = test.strip().split()
paired = zip(word, code)
encoded = ''.join([x.upper() if y == '1' else x for (x, y) in paired])
print(encoded)
test_cases.close()
| [
"esser@anvo-systems-dresden.com"
] | esser@anvo-systems-dresden.com |
963a2d233e978b78dca560f8230b63663653446b | 6da9add72c81a230f2c63dcc73420a28304523ce | /clickx3/utils/constants/phone_number_prefix.py | 36d1124efa30f4ca380cba84c8e6865a2082d270 | [] | no_license | YeKelvin/clickx3-toolkit | e449eccae0d6ce2f69ffbf1380a1e410f562fac8 | 09336bf2c5c898625fbc90ddcf31c9794ca11da0 | refs/heads/master | 2023-06-04T15:09:06.005076 | 2021-06-28T12:07:08 | 2021-06-28T12:07:08 | 251,491,571 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 735 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @File : phone_number_prefix.py
# @Time : 2019/8/30 15:22
# @Author : Kelvin.Ye
from itertools import chain
# 移动
CMCC_CODE = [
'134',
'135',
'136',
'137',
'138',
'139',
'147',
'150',
'151',
'152',
'157',
'158',
'1... | [
"testmankelvin@163.com"
] | testmankelvin@163.com |
9be024aee9f1a12e949aa5184b9342662b5bb608 | edd3da6431675ce3b048b3557f1b410192491558 | /pd_transforming_data.py | 90ec53c3d745b55a3edab79171c06d8906cff808 | [] | no_license | abdlkdrgndz/data-mining | f845a5821f0800a5fd75807766593c97e5221b9f | 9882f60f75acfc55e5dc9cb2248c92e093b461e6 | refs/heads/master | 2023-02-14T21:24:39.921072 | 2021-01-10T01:19:59 | 2021-01-10T01:19:59 | 328,273,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | import pandas
myDatas = {
"name" : ['Kadir', 'Kerim', 'Mehmet'],
"age" : [12,15,18],
"created_at" : ["12.10.1988","11.10.1988","13.10.1988"]
}
df = pandas.DataFrame(myDatas)
# örneğin yeni sutünda yaşların iki katını alalım
df['age_two'] = [i *2 for i in df.age]
# şimdi bunu transforming data yöntemi i... | [
"abdulkadir.gunduz@modanisa.com"
] | abdulkadir.gunduz@modanisa.com |
ff3e75465d6bc74082977d0011083bd7cb9d2fa1 | 8dc745854d73e362aa60747b3ab1b5a0dd975902 | /demo/funs/varying_args.py | 95be35fceef5366dfe3c457b3dac4f7b9e356ad3 | [] | no_license | srikanthpragada/PYTHON_27_AUG_2020 | 08a5898fe1a0ae110b74897ce6cce6595bdfce45 | af2aebbb0d83c5e8f381cdda844ab66d2362019c | refs/heads/master | 2022-12-30T10:12:56.688671 | 2020-10-09T14:20:43 | 2020-10-09T14:20:43 | 291,730,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | def wish(*names, message="Hi"):
for n in names:
print(message, n)
wish("Bill", "Steve", message="Hello")
wish("Bill", "Steve", "Mike")
| [
"srikanthpragada@gmail.com"
] | srikanthpragada@gmail.com |
a81f92e9f7166f53fdeb2368141fc3350fe0594f | d4c0b1b7ad466448944d9b6ccadbd64125861c35 | /payment/functions/save_order.py | a7d68484777c78447a3fd7be50081c35d61835b6 | [] | no_license | ncpi34/jourdan | 82dc1874f41cdab60bb5b293153ab45d89c675ab | 76094283b02990e60d23a76d26093e5f09391571 | refs/heads/master | 2023-08-05T04:43:00.272063 | 2021-09-10T09:07:21 | 2021-09-10T09:07:21 | 404,347,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,598 | py | import os
from typing import IO
from account.backends import User
from cart.cart import Cart
from website.models import Article, FavoritesClient
from order.models import OrderItems, Order
from django.template.loader import render_to_string
from django.core.mail import EmailMessage
from django.conf import settings
impor... | [
"ledain.alexis@gmail.com"
] | ledain.alexis@gmail.com |
8c167de60486df2e7f98815c805c1cf0e63930fd | 8e340be7072bb9cb8b8bbe427e259fba51d54192 | /MyroName.py | 751ef00b50a8e69be96929e4ea45e71c0db29b6d | [] | no_license | KBrownASC/allstarcode | a80141c514cac662a9293655cdec3c1656dc53c1 | e22a0c2fa19e1e29ec6cfe273a9cb82ec6ec3865 | refs/heads/master | 2021-01-20T22:19:48.951183 | 2016-08-09T16:00:14 | 2016-08-09T16:00:14 | 63,092,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | from Myro import *
init("sim")
#loops
#Functions
def drawK(size):
turnBy(90,"deg")
forward(2,size)
backward(1,size)
turnBy(-35,"deg")
forward(1,size)
backward(1,size)
turnBy(-95,"deg")
forward(1,size+.2)
turnBy(30,"deg")
def drawB(size):
turnBy(90,"deg")
forward(2,1)
... | [
"Keroneobrownjr@gmail.com"
] | Keroneobrownjr@gmail.com |
0404f601868205f4d85cf25071622a33e7bd409e | 85f96ed9ab5510ec1120a0687c6de5c4a8774a9f | /RestAPI/config.py | 4c6208b12f3b361ae2c9f9c7f0cbe7df16fd8a18 | [] | no_license | ronistone/toilter-APP | cc40e7e65ad68845f9d1a58b9f955dd29a3a1e13 | da211df826045a5cf4b463ebd82fddce3949ee25 | refs/heads/master | 2020-07-11T12:34:06.718155 | 2017-06-14T00:41:36 | 2017-06-14T00:41:36 | 94,269,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | DEBUG = True
DEVELOPMENT = True
SQLALCHEMY_DATABASE_URI = 'postgres:///restapi'
SQLALCHEMY_TRACK_MODIFICATIONS = True
SECRET_KEY = 'a1b2c3d4e5f6g7h8j9k10l11'
BUNDLE_ERRORS = True # related to Flask-RESTful errors, see docs
ERROR_404_HELP = False
| [
"ronistonejunior@gmail.com"
] | ronistonejunior@gmail.com |
560ff9f3f493317e04240dcf5f75f3fb3c0b41e7 | 500bca3e22bd0c30c79b74918e9847742b3c428e | /sdk/python/endpoints/online/mlflow/sklearn-diabetes/src/score.py | 4e2c269f5cb447804f693d12932e283e9219e83f | [
"MIT"
] | permissive | Azure/azureml-examples | 2304c862fd2e36e6640ecc4d09f69c5ed93b48ab | e5f7b247d4753f115a8f7da30cbe25294f71f9d7 | refs/heads/main | 2023-08-31T00:10:14.107509 | 2023-08-30T17:29:22 | 2023-08-30T17:29:22 | 289,334,021 | 1,219 | 1,074 | MIT | 2023-09-14T16:00:55 | 2020-08-21T18:04:26 | Jupyter Notebook | UTF-8 | Python | false | false | 979 | py | import logging
import os
import json
import mlflow
from io import StringIO
from mlflow.pyfunc.scoring_server import infer_and_parse_json_input, predictions_to_json
def init():
global model
global input_schema
# "model" is the path of the mlflow artifacts when the model was registered. For automl
# mod... | [
"noreply@github.com"
] | noreply@github.com |
02b8e5dee5b57fda9c9099b42c6e685df0976663 | 0cc8c7cfeea7aa44436e4b09769033e7dbe75b93 | /scripts/vgg_face.py | 4b1205caf2566e59682e4c88a2436bacb628393b | [] | no_license | carlylou/IndividualProject-AffWild | 75ab5bd34796f8b5d763f6e41d491cf51f6db192 | f0c861fbc83c0d11c74b8ac3b31d90cb768fe3b4 | refs/heads/master | 2020-04-05T20:45:34.020609 | 2018-11-12T10:25:45 | 2018-11-12T10:25:45 | 157,194,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,316 | py | # import h5py
import tensorflow as tf
# import numpy as np
# import cv2
# import os
# import pdb
import copy
class VGGFace(object):
def __init__(self, batch_size):
self.params = None
self.batch_size = batch_size
self.vars = []
self.layers = []
self.names = [] #[line.strip(... | [
"564458176@qq.com"
] | 564458176@qq.com |
aae0e6098f5fffd6f5df5e9109899e0ddfcf5d9b | 5de3f612df0dbda712b39403dbafb0617e597651 | /devel/lib/python2.7/dist-packages/pal_control_msgs/__init__.py | e21ec5fdbefcfd4eaadd1be96174a29e086c69d8 | [] | no_license | AdriiTrujillo/tiago_public_ws | 1bd62d51c2eb694d07db83738f7bebd582d8126c | 6eaeabd1ec177df837b81fd9f42887318128766b | refs/heads/main | 2023-04-03T13:09:09.749190 | 2021-04-01T10:05:43 | 2021-04-01T10:05:43 | 350,026,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | /home/adrii/tiago_public_ws/devel/.private/pal_control_msgs/lib/python2.7/dist-packages/pal_control_msgs/__init__.py | [
"adrii.trujillo@gmail.com"
] | adrii.trujillo@gmail.com |
f7d577610c90e9aa93d478ba5211244881ae4241 | 4711a51655cf8944039246d3cf28f5798af089fe | /coder/wsgi.py | 29f26bbb10285e85a1939e86c02aebaf634743b4 | [] | no_license | GauravTyagi67/myblog | 827756f8334b4e3df5b3fce2f598185d13551530 | 86288bb1b403206654752a1890f70cae4dc9d4c2 | refs/heads/main | 2023-04-20T02:08:23.752116 | 2021-05-11T03:08:12 | 2021-05-11T03:08:12 | 366,239,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | """
WSGI config for coder 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.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('D... | [
"noreply@github.com"
] | noreply@github.com |
d953ca400bd19d3dfe6e933f1f88124d428bbb14 | 4686605ad3c277a0776a653c6b3528db5313ec9c | /PY/PY1.py | 1b819831f1a87ac0b10df6ccab810f61671ef527 | [] | no_license | zhukongh123/- | 4f03c1f20fc5c369aa14d10cdb302bac08b850b9 | 6dfdd84b66fe82bd4b2113c6270d98ea1705401b | refs/heads/master | 2020-11-26T19:10:58.052438 | 2019-12-20T06:52:37 | 2019-12-20T06:52:37 | 229,181,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | d = {"name":"小明","sex":"男","age":18}
d.clear()
print(d)
| [
"364144274@qq.com"
] | 364144274@qq.com |
3ec15a885991693045ca69757489420fd2440bc1 | ee22ec2076a79e8de3011377fe205bc87163ab9f | /src/algo-p5/0828/q27/player.py | 1631f0c162cd5940c1385e5e74a4e95c3ea58bec | [] | no_license | n18018/programming-term2 | 039a95c67372a38a34e2aa8c5975045a9fc731be | 86c455269eed312def529604e1ac3b00f476226c | refs/heads/master | 2020-03-22T08:59:29.545280 | 2018-08-29T07:57:37 | 2018-08-29T07:57:37 | 139,806,131 | 0 | 0 | null | 2018-07-05T06:42:11 | 2018-07-05T06:42:11 | null | UTF-8 | Python | false | false | 12,069 | py | import field_map
import sys
import random
from enemy import Enemy
class Player:
def __init__(self, name):
"""
コンストラクタ
Parameters
----------
name : str
プレイヤーの名前
Returns
-------
自分自身のインスタンス
"""
self.name = name
self.... | [
"n18018@std.it-college.ac.jp"
] | n18018@std.it-college.ac.jp |
e25fb293e8841b87c8979b159fe4daadf9eed51e | 8ed215ee731bc8c55eabdc66ee028a43771510bc | /tasks-deploy/rsa/check.py | 5bac71f193f848b84031ce3a62e0ff96d6fb6acd | [
"MIT"
] | permissive | irdkwmnsb/lkshl-ctf | c6c0b0ae58653d3d7c427073221043d2adea212c | e5c0200ddc8ba73df5f321b87b9763fb1bbaba57 | refs/heads/master | 2020-03-23T22:22:23.499985 | 2019-02-22T13:29:51 | 2019-02-22T13:29:51 | 142,172,055 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,868 | py | def check(attempt, context):
if attempt.answer == flags[attempt.participant.id % len(flags)]:
return Checked(True)
if attempt.answer in flags:
return CheckedPlagiarist(False, flags.index(attempt.answer))
return Checked(False)
flags = ['LKL{RSA_is_s0metimes_insecur3_3Udjwqg6}', 'LKL{RSA... | [
"supermax74.02@gmail.com"
] | supermax74.02@gmail.com |
406c110b30acb23f4d2b89fa97603e853e4b9c26 | 5d263af3a57e0eaa1dfc55df964e61ed74208bb2 | /feature_extraction/extract_features.py | 811abb12454c69f6c67627835c5d8386ede54ef6 | [] | no_license | chenyr0021/multimodal-human-action-recognotion | 1c5374c93050f56eb00f87d00aea400f0158bafb | bf69abb2355de83b53f652416f29bd832ced5afc | refs/heads/main | 2023-02-04T03:22:42.611616 | 2020-12-25T06:35:39 | 2020-12-25T06:35:39 | 318,051,286 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,361 | py | import os
os.environ["CUDA_DEVICE_ORDER"]="PCI_BUS_ID"
import sys
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('-load_model', type=str)
parser.add_argument('-root', type=str)
parser.add_argument('-gpu', type=str)
parser.add_argument('-save_dir', type=str)
args = parser.parse_args()
os.env... | [
"chenyiran0021@163.com"
] | chenyiran0021@163.com |
834876b1059232ee24322d209800d83c0d91d521 | de7b80e949b8890e8beec5da711c33fa74a49f01 | /catnado/properties/choice_property.py | 679b7c73a5872660d58c99d697c6ee75e8c3c629 | [
"Apache-2.0"
] | permissive | tylertrussell/gae-catnado | 39a0d1a7931acbb09ab739d6536f1b475b367a5f | 91a73e9108bb724fb780cc8dcfca4da579313cb9 | refs/heads/master | 2020-03-17T20:24:25.942542 | 2018-07-25T07:02:42 | 2018-07-25T07:02:42 | 133,907,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,242 | py | from google.appengine.ext import db
class ChoiceProperty(db.IntegerProperty):
"""A property for efficiently storing choices made from a finite set.
This works by mapping each choice to an integer. The choices must be hashable
(so that they can be efficiently mapped back to their corresponding index).
"""
... | [
"tigertrussell@gmail.com"
] | tigertrussell@gmail.com |
04cdfacc94cba4b6547b23c48613e764fff8eea7 | c04766334a0c9bec3583c707ac177aedc3247fbb | /example/report/test/SeoulCityDead.py | 3c3e2530b731292973656ffb451b1a24fb1bb2bb | [] | no_license | realwater20/city-seoul | 6abe870447cedcfc29315ebc2f28e6d878dd4cd5 | 8f889a2667de554c83e76492f08c47838198caee | refs/heads/master | 2023-04-07T23:12:30.598955 | 2021-04-21T06:00:05 | 2021-04-21T06:00:05 | 360,049,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,982 | py | # -*- coding: utf-8 -*-
# 서울시 월별 연간 사망자 수 집계
import numpy as np
import matplotlib.pyplot as plt
from operator import eq
import csv
def analyzeDie():
# csv 파일 읽어오기
pieces = []
datafile = '.\\csv\\SeoulDeadReport.csv'
with open(datafile, 'rt') as f :
data = csv.reader(f, delimiter = ',')
... | [
"realwater@staby.co.kr"
] | realwater@staby.co.kr |
de173d2bb760fbf4bd04e8b5784cb2d50c4a74b0 | f4af33b9a46effbd6cbcd84eedbc8992d3f3a5ce | /unit4/sps_function.py | 413e089cb9d718d71765a9b5c49c594758e39c3d | [] | no_license | ajdt/udacity_cs212 | d7fac354e8cc4ee54674cf40baf605f47f758bbf | bc9225ba7e04b7d219fed387a045dfec09c9bbcf | refs/heads/master | 2020-11-30T01:44:36.911165 | 2016-09-17T17:22:27 | 2016-09-17T17:22:27 | 68,466,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,778 | py | # -----------------
# User Instructions
#
# Write a function, shortest_path_search, that generalizes the search algorithm
# that we have been using. This function should have three inputs, a start state,
# a successors function, and an is_goal function.
#
# You can use the solution to mc_problem as a template for const... | [
"ajdt@uw.edu"
] | ajdt@uw.edu |
4c198afdf441b3b85b7630151015f6fc947c91ca | 5d423684f7db6dd3f528e0ccc27ab41d6dfca9bd | /seniors/admin.py | ec0914b79716d1cc384dc3ee739cb1def581bc0e | [] | no_license | tnq/grogosite | e7459080188252c169c5bb71fbd183f06a2fe293 | c528826967aba6240a48f344a9a579c442695ddb | refs/heads/master | 2021-01-02T08:56:20.147735 | 2018-05-07T22:49:11 | 2018-05-07T23:04:11 | 1,848,585 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,137 | py | # -*- coding: utf-8 -*-
import codecs
import csv
from collections import defaultdict
from StringIO import StringIO
from zipfile import ZipFile
from django.contrib import admin
from django.core.paginator import Paginator
from django.http import HttpResponse, HttpResponseRedirect
from django.contrib.contenttypes.models i... | [
"nwiltsie@mit.edu"
] | nwiltsie@mit.edu |
6cbf9974caf542980afdcb04dd20da0afa523385 | a835f4daa719e0060d5f0c9def9b51ff319ea17d | /MyEDmodules/HFraddamAnal/python/hfraddamanal_cfi.py | 493225a7c22025bf8d63b76188548455508b1635 | [] | no_license | pdudero/usercode | 8e2582df407aa81e1d674c5adb498e5268f54aa7 | e53c110632ef046e0944697611d727e1f8841510 | refs/heads/master | 2021-01-01T06:28:25.007997 | 2018-05-04T05:32:32 | 2018-05-04T05:32:32 | 11,696,730 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,654 | py | import FWCore.ParameterSet.Config as cms
hfraddam = cms.EDAnalyzer('HFraddamAnal',
eventDataPset = cms.untracked.PSet(
fedRawDataLabel = cms.untracked.InputTag("source"),
tbTrigDataLabel = cms.untracked.InputTag("tbunpack"),
laserDigiLabel = cms.untracked.InputTag("... | [
""
] | |
333b3e57b03c06635723ab136380a76d369174b0 | edfcd96f0010ea068a4c046bdcf7067ff92d3f9b | /Modules/datetime/1.py | 3dcb2607e4524fae4299e4d4cb1d07b43e896777 | [] | no_license | afsanehshu/python-project | a99ff558f375c1f5e17ea6ffc13af9216ec4733f | 48905cfd24df6d1f48460d421ed774f19403cf53 | refs/heads/main | 2023-08-03T01:53:32.812949 | 2021-09-22T19:36:25 | 2021-09-22T19:36:25 | 409,303,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | import datetime
datetime_object = datetime.datetime.now()
print(datetime_object)
| [
"afsanehshu@gmail.com"
] | afsanehshu@gmail.com |
833150ec357d3ab8a3ffb1d0b530443494e22440 | 6423626dcb7c6d2d261e9c87095736bcff888359 | /mainApp/views.py | 0f89809047fb03adb631c5f00f6269b3e53f4dd1 | [] | no_license | andrew-cmdltt/blog | d39031f7e1c8c5402fb201676c4b360c6b2ad3eb | 96e819ad1da056739c4ed854bbb7426d27f80c39 | refs/heads/master | 2022-11-05T13:32:32.720195 | 2020-06-22T07:07:37 | 2020-06-22T07:07:37 | 274,064,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,654 | py | from django.shortcuts import render
from django.http import HttpResponseRedirect
from django.views.generic.base import View
from django.views.generic.edit import FormView
from django.contrib.auth.forms import UserCreationForm, AuthenticationForm
from django.contrib.auth import login, logout
from posts.models import Pos... | [
"menwhohas2279@gmail.com"
] | menwhohas2279@gmail.com |
8a1ca419dff4adbd0c351ffc4b87553ec6abd288 | b134420ad05667ae191c3a2f3753ce5966594fb1 | /02_Info/hw02/src/docreader.py | 7746f9a82e692830eb169f912e43a82443d4b2a3 | [] | no_license | Fen99/TehnoSphere | aad17f9dca11561378d38ba292db1599e9bcfbec | 8a11c3d26f4eb6ad88c154e10e5411a5f625a17e | refs/heads/master | 2022-03-07T03:56:54.781807 | 2019-09-13T23:03:45 | 2019-09-13T23:03:45 | 106,061,225 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 891 | py | #!/usr/bin/env python
import document_pb2
import struct
import gzip
class DocumentStreamReader:
def __init__(self, paths):
self.paths = paths
def open_single(self, path):
return gzip.open(path, 'rb') if path.endswith('.gz') else open(path, 'rb')
#Document format - <Len><Text>
#documen... | [
"feda.petraykin@gmail.com"
] | feda.petraykin@gmail.com |
8baafd6e359d9fb1be1f926e4333393e9d332c08 | 6ceb5c8d4276165e61063edf4c4d7ddd4e23ad93 | /tests/pf/test_mag_MVI_Octree.py | be0979f77bb644d2fa5708a03a2dc24fdf135846 | [
"MIT"
] | permissive | fperez/simpeg | e3f552c654d1b57b8f6e407a8f9460799a300cba | 5babfbfb0e74a41f20dfa81eb872603fdc33b17a | refs/heads/master | 2020-09-15T19:39:35.547901 | 2020-01-10T00:25:57 | 2020-01-10T00:25:57 | 223,541,836 | 0 | 1 | MIT | 2019-11-23T06:21:14 | 2019-11-23T06:21:13 | null | UTF-8 | Python | false | false | 11,712 | py | from __future__ import print_function
import unittest
from SimPEG import (Directives, Maps,
InvProblem, Optimization, DataMisfit,
Inversion, Utils, Regularization, Mesh)
import SimPEG.PF as PF
import numpy as np
from scipy.interpolate import NearestNDInterpolator
from SimPEG.Uti... | [
"fourndo@gmail.com"
] | fourndo@gmail.com |
c43c7bcbbad1cac818d700eaac5a23d93dc3d3f6 | f701b45d56964f70d2b1a59d42348bde89f9f80e | /ase_extensions/transformations.py | 48a0c96290e977646de0b7d2a8b5d3aa404be6a5 | [] | no_license | Clyde-fare/ase_extensions | 01c8c2433a65e521a1ba867bfd6878d3e22aea0e | d3295d6306b5cc83fe6f7686c84dc7cc07aa91f8 | refs/heads/master | 2021-01-18T22:47:28.733715 | 2017-01-12T12:31:11 | 2017-01-12T12:31:11 | 27,386,500 | 0 | 1 | null | 2016-09-05T16:13:45 | 2014-12-01T15:49:19 | Python | UTF-8 | Python | false | false | 65,592 | py | #taken from http://www.lfd.uci.edu/~gohlke/code/transformations.py.html
# -*- coding: utf-8 -*-
# transformations.py
# Copyright (c) 2006-2012, Christoph Gohlke
# Copyright (c) 2006-2012, The Regents of the University of California
# Produced at the Laboratory for Fluorescence Dynamics
# All rights reserved.
#
# Redi... | [
"clyde.fare@gmail.com"
] | clyde.fare@gmail.com |
6969c5a69023c51c4b9f057fc4d0ebc464317c30 | b4920771048ba1f7cc6ac266c3f3576290c00718 | /session1/HW/ex1.py | fc29c34c92c90a445624ba1c1a341c8b163b3e6c | [] | no_license | dungbk10t/phamtuandung-webmodule-c4e26 | 969779da1d4bd8c1940583f4a11d1cfbe064eea2 | af793ba2765c8c17852c6bebcaf8250543488490 | refs/heads/master | 2021-10-23T12:59:32.532871 | 2019-03-17T14:03:31 | 2019-03-17T14:03:31 | 173,112,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | from flask import Flask,redirect
app = Flask(__name__)
@app.route('/about-me')
def about():
myseft = {
"Name": "Dung",
"Age": "21",
"Hobbies": "Travel",
"Work": "Student",
}
return str(myseft)
@app.route('/')
def school():
return redirect("https://techkids.vn/", code=302)
if __name__ == '__main... | [
"38665090+dungbk10t@users.noreply.github.com"
] | 38665090+dungbk10t@users.noreply.github.com |
770c7164abe7da38b537a93ec34d8f614f0a94cc | ef35552267ac45345c60135845470260afbd6687 | /Artifacts/run_verus.py | 62d4e1cd025febe0970d0d9cd628cd8b3f810c46 | [
"MIT"
] | permissive | xianliangjiang/ALCC | 2bbe7e48aaf7ab273cfea4622855be12e261730f | fc9c627de8c381987fc775ce0872339fceb43ddf | refs/heads/main | 2023-05-16T21:11:06.738812 | 2021-06-10T11:43:23 | 2021-06-10T11:43:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 784 | py | import os
TIME=300
DIR='Results'
NUM_RUNS=20
os.system('sudo sysctl -w net.ipv4.tcp_congestion_control=cubic')
# compile bftpd with alcc verus library
os.system('echo "compiling bftpd for alcc verus" && cd ../Applications/bftpd && cp Makefile_verus Makefile && make')
for trace in ['highwayGold', 'CityDrive', 'Corni... | [
"yasir.zaki@nyu.edu"
] | yasir.zaki@nyu.edu |
e308f0aa83b793bc83ed23a3d964b239a72ed6de | d4a5f8144855b201071c4657e37a7ad6b5994aff | /users/models.py | 7ae3002a7cc0a15449464e78df4109b39fe0abb8 | [] | no_license | Muratcol/Higher-Level-Django-Project | d453761197756d5b345640570f5a7b00c7948319 | cd82cc6bdc01196ad9a602be4bcd11ee655e1e1f | refs/heads/master | 2022-04-26T14:39:05.641565 | 2020-04-25T14:28:46 | 2020-04-25T14:28:46 | 258,793,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | from django.db import models
from django.contrib.auth.models import User
from PIL import Image
# Create your models here.
class Profile(models.Model):
user = models.OneToOneField(User, on_delete = models.CASCADE)
image = models.ImageField(default = 'default.jpg', upload_to = 'profile_pics')
def __str__(se... | [
"muratcolyaran@yahoo.com.tr"
] | muratcolyaran@yahoo.com.tr |
ad77f04ce6810e07fd8407db9354c5b4139ab67e | 17dca703eed28a859bba4984eba5b039b900e3d7 | /.history/nomina/views_20200227181321.py | a9f9c322cb015feead3955c66ebab05f4727ad27 | [] | no_license | alexogch1/SistemaOperaciones | 1a34872daf0e151672edd202a5089ee754805203 | ac72f6e3284061e240aebec6a3300ff463a3544c | refs/heads/master | 2021-01-03T15:32:45.470642 | 2020-03-03T07:47:27 | 2020-03-03T07:47:27 | 240,133,319 | 0 | 1 | null | 2020-02-28T05:21:57 | 2020-02-12T23:02:36 | Python | UTF-8 | Python | false | false | 5,733 | py | from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import render
from django.urls import reverse_lazy
from django.contrib.auth.mixins import LoginRequiredMixin
from django.contrib.messages.views import SuccessMessageMixin
#from .filters import NominaFiltro
from dateutil.parser import pars... | [
"alexogch@hotmail.com"
] | alexogch@hotmail.com |
3d97109bf415ea9269f7025758774cb1e2f9c5ab | e5add4ba0dc980b2129830142d91956f762d9835 | /CovidResourceFinder/urls.py | bf5e8da72bbc53f8764ed3e35dba36556799fb7e | [] | no_license | VirangParekh/CovidResourceFinder | a23ddb0db9167625f2a605ec061d4f8a0bd583aa | 168bc145d1e92e8285f3a38bfd0eb0ea3effea93 | refs/heads/master | 2023-04-08T03:34:51.677830 | 2021-04-25T06:02:25 | 2021-04-25T06:02:25 | 360,268,178 | 0 | 0 | null | 2021-04-22T13:41:36 | 2021-04-21T18:27:36 | Python | UTF-8 | Python | false | false | 366 | py | from django.conf.urls import url
from django.contrib import admin
from django.urls import path, include
from django.conf.urls.static import static
from django.conf import settings
urlpatterns = [
path('admin/', admin.site.urls),
path('resource_finder/', include("ResourceFinderApp.urls")),
] + static(settings.... | [
"44228173+VirangParekh@users.noreply.github.com"
] | 44228173+VirangParekh@users.noreply.github.com |
c771d7fe4dad2294e05f47c1a734db065672f857 | 724713c8d5891e7dda67e8c250018250e6da44bf | /chapter_05/Variavle_length.py | 43a79e76c9e659d146355ac97a62f385eed7b721 | [] | no_license | conanlhj/python_inflearn | 1c5731e8634c18e15360097569541b419410f94e | c9c713ea1d374e8a5b9dfc1568e6a767c4d00305 | refs/heads/main | 2023-02-19T10:23:58.835506 | 2021-01-25T11:40:22 | 2021-01-25T11:40:22 | 332,727,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | def asterisk_test(a,b,*args):
return args
def asterisk_test_2(*args):
x,y,z=args
return x,y,z
def kwargs_test_1(**kwargs):
print(kwargs)
print(kwargs["first"])
def kwargs_test_2(**kwargs):
print(kwargs)
print("First value is {first}".format(**kwargs))
print("Second value is {second}".... | [
"77838360+conanlhj@users.noreply.github.com"
] | 77838360+conanlhj@users.noreply.github.com |
09485a4a913d81b199e0e4f85f59f811f3947951 | 867bb24022e8908e66b9dbe52bcac81cc16e86db | /myshop/Employee/apps.py | 907e9dc183c55890576e53643f99d014415ddbe7 | [] | no_license | Gonza12345/Diplom_shop | 86120886b0bf77cb871d3de2f64075592bed09c8 | 0527561d9746d6e5f73c62b74814135af7aa52e8 | refs/heads/master | 2020-05-31T02:28:52.147478 | 2019-06-03T19:34:39 | 2019-06-03T19:34:39 | 190,066,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | from django.apps import AppConfig
class EmployeeConfig(AppConfig):
name = 'orders'
| [
"uad134679@gmail.com"
] | uad134679@gmail.com |
f5a8b97a66c04bb5a50c0064ce19657b48d5b3ef | 596b6f769a19bd597ca235263b4518be3227b0f7 | /ExeDemo/Exe14.py | 148b0eb6792aa548ad6088c8760e6848c115f327 | [] | no_license | himanim-ept/Python-Execerise-1 | 0ac5022e6cd5f6fe6887b1154258c3c62d393150 | 1663cba8bae6b1e6d186e87c7058c70023e65ca7 | refs/heads/master | 2023-03-15T06:18:51.546786 | 2021-03-10T11:02:19 | 2021-03-10T11:02:19 | 336,448,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | #Write a Python program to count the number occurrence of a specific character in a string.
txt = "Hello, My name is Himani"
x = txt.count("e") # count particular charachter
print(x) | [
"himanim@emiprotechnologies.com"
] | himanim@emiprotechnologies.com |
51fe296f9a06966e6e243a907c4209236b1137e9 | 0c66e605e6e4129b09ea14dbb6aa353d18aaa027 | /diventi/ebooks/migrations/0007_auto_20190429_1732.py | 3b567492131adb79f3e21d1f851220e0b4b14f01 | [
"Apache-2.0"
] | permissive | flavoi/diventi | 58fbc8c947f387cbcc1ce607878a59a6f2b72313 | c0b1efe2baa3ff816d6ee9a8e86623f297973ded | refs/heads/master | 2023-07-20T09:32:35.897661 | 2023-07-11T19:44:26 | 2023-07-11T19:44:26 | 102,959,477 | 2 | 1 | Apache-2.0 | 2023-02-08T01:03:17 | 2017-09-09T14:10:51 | Python | UTF-8 | Python | false | false | 1,340 | py | # Generated by Django 2.1.7 on 2019-04-29 15:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ebooks', '0006_auto_20190429_1727'),
]
operations = [
migrations.AddField(
model_name='chapter',
name='description_e... | [
"flavius476@gmail.com"
] | flavius476@gmail.com |
9b1a400d3281860f99c1cb1c0f0a9b1c2006bf90 | 2d191eb46ed804c9029801832ff4016aeaf8d31c | /configs/_base_/models/deeplabv3_sep_r50-d8.py | bb8c92051e538c75132eb8666ccb1d1cc8698ffc | [
"Apache-2.0"
] | permissive | openseg-group/mmsegmentation | df99ac2c3510b7f2dff92405aae25026d1023d98 | 23939f09d2b0bd30fc26eb7f8af974f1f5441210 | refs/heads/master | 2023-03-02T07:49:23.652558 | 2021-02-15T04:16:28 | 2021-02-15T04:16:28 | 278,537,243 | 2 | 2 | null | 2020-07-10T04:24:16 | 2020-07-10T04:24:15 | null | UTF-8 | Python | false | false | 1,330 | py | # model settings
norm_cfg = dict(type='SyncBN', requires_grad=True)
model = dict(
type='EncoderDecoder',
pretrained='open-mmlab://resnet50_v1c',
backbone=dict(
type='ResNetV1c',
depth=50,
num_stages=4,
out_indices=(0, 1, 2, 3),
dilations=(1, 1, 2, 4),
strides=... | [
"yhyuan@pku.edu.cn"
] | yhyuan@pku.edu.cn |
25d68ca33cbaa85ba2ebd6cc6cd38960029053a9 | 2ddfcb901978b4c8a431406098669d22c0c33c62 | /runaway/config/urls.py | 8feca1fe5a36af1262c8f959baf8fbc42ca3cb14 | [] | no_license | thezpliu/runaway | 1ce3e29e8e4b16d89c4c7bee5b44fc911089f586 | e32b3c9a40f40f3017b2b1d38b327cec78c3cad4 | refs/heads/master | 2020-04-29T21:15:53.971365 | 2019-03-19T02:37:35 | 2019-03-19T02:37:35 | 99,125,026 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,329 | py | # coding=utf-8
from runaway.views.index import index
from runaway.views.login import login, user_login_out
from runaway.views.monitor import monitor
from runaway.views.svninfo import svn_v
from runaway.views.p4info import p4_v
from runaway.api.ldap_login import LoginCheck
from runaway.api.changepasswd import ChangePass... | [
"lzpac@163.com"
] | lzpac@163.com |
26cdf1910bc9e8ac0aefa7ee992aabf7376ac5ae | a2f0abc7e1ec380f387d51dcefd1c5c2e0f6ba21 | /auth/httpclient.py | 4eeac4e2eb21f2faa3c06f0a709419106a2ec479 | [] | no_license | sanand0/sms-greetings | 0771537fd73a0769cb0e5eff2c9db56d401f6889 | ab9d7757104f8b1d1129df598f78e4b507d07bc3 | refs/heads/master | 2021-01-15T11:48:30.030591 | 2010-03-19T14:12:48 | 2010-03-19T14:12:48 | 32,197,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,284 | py | """
web.py httpclient
~~~~~~~~~~~~~~~~
HTTP client to support `tornado.auth` on web.py.
:copyright: 2010 by tipfy.org and s-anand.net
:license: Apache License Version 2.0. See LICENSE.txt for more details.
"""
import functools
import logging
import httplib2
from webpyauth import RequestRedirect
b... | [
"subramanian_anand@localhost"
] | subramanian_anand@localhost |
da33fd90e8e21d2ac80a6cfe717c8d7bd2b41914 | c54f0b3a32e9043ca99a8ffbb6989747eaec50b1 | /infer_module/positional_encoding.py | 1d2b0b973a1a1c59ef6a8bb994e99e68a84eb1d0 | [
"MIT"
] | permissive | daniel-richter/DIN_GAR | bad849a6eeeecaf7f9779c64b75494d8e12c0eb5 | f97759038936ad36359cb8c0d9ff0951d2482e25 | refs/heads/main | 2023-09-02T21:40:11.727572 | 2021-10-29T12:35:03 | 2021-10-29T12:35:03 | 407,142,109 | 0 | 0 | MIT | 2021-09-16T11:41:54 | 2021-09-16T11:41:53 | null | UTF-8 | Python | false | false | 6,752 | py | import torch.nn as nn
import torch
import math
import torch.nn.functional as F
import numpy as np
import cv2
from config import Config
class PositionEmbeddingSine(nn.Module):
"""
This is a more standard version of the position embedding, very similar to the one
used by the Attention is all you need paper, ... | [
"jie980446003@hotmail.com"
] | jie980446003@hotmail.com |
a4c78496e3e6c0ca7c8343f03b0e455be84de413 | 585fcfd09bcc37ad73c6f301cb8b16261a93df7e | /projects/pyDOE-master/pyDOE/build_regression_matrix.py | 5ea2c2f53342a023823a115a04a403407c9ccc3d | [
"MIT",
"BSD-3-Clause"
] | permissive | louisXW/Surrogate-Model | e9e8de3ab892eed2f8ed424e09b770e67126c1f3 | 65ec8a89c1b7a19d4c04c62e2c988340c96c69f8 | refs/heads/master | 2021-07-21T09:37:41.045898 | 2017-10-30T11:49:35 | 2017-10-30T11:49:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,909 | py | """
This code was originally published by the following individuals for use with
Scilab:
Copyright (C) 2012 - 2013 - Michael Baudin
Copyright (C) 2012 - Maria Christopoulou
Copyright (C) 2010 - 2011 - INRIA - Michael Baudin
Copyright (C) 2009 - Yann Collette
Copyright (C) 2009 - CEA - Jean-Marc Mart... | [
"quanpan302@hotmail.com"
] | quanpan302@hotmail.com |
a6f10eb4cac4d9ebb9ce1cafd18a0bd881d177e0 | 9f3151a966b1e682dd24d806d4705145c8b10c47 | /0x11-python-network_1/6-post_email.py | ba2b1dc4d81b3f013abb2827eab4d3cb8942dca6 | [] | no_license | DiegoSusviela/holbertonschool-higher_level_programming | 5ace3a63a1f79fc7d0e870b8308dc10964b7bb21 | 4cd3e677bd0ffd6b7fc034a53b8c357893b87a60 | refs/heads/main | 2023-08-14T05:12:20.926985 | 2021-09-27T15:47:15 | 2021-09-27T15:47:15 | 361,817,218 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 212 | py | #!/usr/bin/python3
"""alibaba y los 40 ladrones"""
import requests
from sys import argv
if __name__ == "__main__":
payload = {'email': argv[2]}
r = requests.post(argv[1], data=payload)
print(r.text)
| [
"dieguitosus@hotmail.com"
] | dieguitosus@hotmail.com |
0dec940c8d9ee73e47f55d49a771aebb21beec6d | 55d560fe6678a3edc9232ef14de8fafd7b7ece12 | /tools/build/test/rescan_header.py | 36a007eb406fa403704cb5091d42f2606d7901ce | [
"BSL-1.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | stardog-union/boost | ec3abeeef1b45389228df031bf25b470d3d123c5 | caa4a540db892caa92e5346e0094c63dea51cbfb | refs/heads/stardog/develop | 2021-06-25T02:15:10.697006 | 2020-11-17T19:50:35 | 2020-11-17T19:50:35 | 148,681,713 | 0 | 0 | BSL-1.0 | 2020-11-17T19:50:36 | 2018-09-13T18:38:54 | C++ | UTF-8 | Python | false | false | 5,653 | py | #!/usr/bin/python
# Copyright 2012 Steven Watanabe
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
import BoostBuild
t = BoostBuild.Tester(use_test_config=False)
# Test a header loop that depends on (but does no... | [
"james.pack@stardog.com"
] | james.pack@stardog.com |
8d2db0e03577849c03ffa9b296d5a266ea0fb0d7 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mysql/aio/operations/_replicas_operations.py | ed2a170e523af5c4bd570d0b9b817e6a9a04d6ce | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 5,650 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | noreply@github.com |
fe613641ae32fcb110bcbb399b2d465ebe57228e | 1ab053667d87389f673c7689b68dbb5c003f85b9 | /dict.py | 7713a2e202b415c6d2a18294a7232deae71528ec | [
"Apache-2.0"
] | permissive | acharyaparag/Compiler | dcf1d3aaf793b4fced7a1672f769caa995747dea | 046f99389d4ce1af46bc4a96a7ac58479986810d | refs/heads/master | 2016-09-05T16:37:20.371806 | 2014-05-14T03:26:27 | 2014-05-14T03:26:27 | 19,764,899 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,324 | py | reservedt = {
'start': 1,
'prog': 2,
'body': 3,
'declpart': 4,
'decllist': 5,
'decllist-': 6,
'declstat': 7,
'declstat-': 8,
'type': 9,
'procpart': 10,
'proclist': 11,
'proc': 12,
'prochead': 13,
'... | [
"acharyaparag@gmail.com"
] | acharyaparag@gmail.com |
21258aa7598c5f930fe4eaed3af4d0a499b648d9 | 98efe1aee73bd9fbec640132e6fb2e54ff444904 | /loldib/getratings/models/NA/na_ornn/na_ornn_top.py | 2ca0d07a4824d85d8de49a6105daf5c1b67f4de7 | [
"Apache-2.0"
] | permissive | koliupy/loldib | be4a1702c26546d6ae1b4a14943a416f73171718 | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | refs/heads/master | 2021-07-04T03:34:43.615423 | 2017-09-21T15:44:10 | 2017-09-21T15:44:10 | 104,359,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,269 | py | from getratings.models.ratings import Ratings
class NA_Ornn_Top_Aatrox(Ratings):
pass
class NA_Ornn_Top_Ahri(Ratings):
pass
class NA_Ornn_Top_Akali(Ratings):
pass
class NA_Ornn_Top_Alistar(Ratings):
pass
class NA_Ornn_Top_Amumu(Ratings):
pass
class NA_Ornn_Top_Anivia(Ratings):
pass
clas... | [
"noreply@github.com"
] | noreply@github.com |
87329ac75e0a03161d9c4ec7e50671e1a8c5b0d0 | 22299195d67f887d8de9f8764e8a85680cd3416c | /class7 (Color Filtering - OpenCV with Python for Image and Video Analysis 7)/main.py | e4430a318df1dc716db227d2a786414f7b6eb3ff | [] | no_license | EnggQasim/PythonOpenCV | 71268cb9bfa603b9aec1e239756f515f9693f74c | 2f1cd61df0fd520dbdc0e41a52ebfc4da410c771 | refs/heads/master | 2021-01-01T15:29:14.768477 | 2017-07-18T18:11:19 | 2017-07-18T18:11:19 | 97,629,494 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | import cv2
import numpy as np
cap = cv2.VideoCapture(1)
while True:
_, frame = cap.read()
hsv = cv2.cvtColor(frame, cv2.COLOR_BGR2HSV)
#hsv hue sat value
lower_red = np.array([150,150,50])
upper_red = np.array([180, 255, 150])
mask = cv2.inRange(hsv, lower_red, upper_red)
res = cv2.bitwise_and(frame, frame, ... | [
"m.qasim077@gmail.com"
] | m.qasim077@gmail.com |
ab25192c92848ca0ed44893a946b6fd0e050f0dd | 23976d5085e2c0b91057a9a4009d4a4bca2f111b | /prod/ttbarSingleLeptonAnalyzer_TTBar.py | 3614d58004994599ac5c37da89d91a6fffa5d590 | [] | no_license | dygyun/TopSemiLepton | 2f7202b1b93e055060911cb222a258e0e462be15 | 9b84415e12fd8146bb4523a1d01b3ab53cae8ca8 | refs/heads/master | 2021-01-24T03:48:35.915247 | 2017-09-20T12:30:04 | 2017-09-20T12:30:04 | 45,440,845 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,912 | py | #------------------------------------------------------------------
# Data or MC Sample
runOnMC = False
# runOnTTbarMC == 0, No ttbar
# runOnTTbarMC == 1, ttbar Signal
# runOnTTbarMC == 2, ttbar Background
runOnTTbarMC = 0
#------------------------------------------------------------------
import FWCore.ParameterS... | [
"dygyun@Dooyeonui-MacBook-Air.local"
] | dygyun@Dooyeonui-MacBook-Air.local |
5e0c3d672b3b5efb05aa6b2d2e55bd0e758f27e2 | 7c3ccfe8fdcbe05d04444da071b9b3469b11f351 | /.github/scripts/filter_test_configs.py | 96dff128572d4ee665a4731138827d928f152d84 | [
"BSD-2-Clause",
"LicenseRef-scancode-secret-labs-2011",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | nihui/pytorch | ad4df723672300d5bd4290d6bc4e2e66a5ff2f0f | 999bae0f54108ffc5b7cf2524a02a83901554b16 | refs/heads/master | 2023-07-07T06:35:37.886490 | 2023-05-30T05:07:59 | 2023-05-30T05:07:59 | 177,545,801 | 3 | 2 | NOASSERTION | 2019-03-25T08:33:23 | 2019-03-25T08:33:23 | null | UTF-8 | Python | false | false | 14,809 | py | #!/usr/bin/env python3
import json
import os
import re
import sys
import warnings
from typing import Any, Callable, Dict, List, Optional, Set
from urllib.request import Request, urlopen
import yaml
PREFIX = "test-config/"
# Same as shard names
VALID_TEST_CONFIG_LABELS = {
f"{PREFIX}{label}"
for label in {
... | [
"pytorchmergebot@users.noreply.github.com"
] | pytorchmergebot@users.noreply.github.com |
2736f96c3498266dc89e81e233c7c4990877fda0 | 3408dbca136a301cdaece4f15bc69e6c3cab3caf | /ism_pkg/tools/rff_layer.py | 53dc0dd8c9479e6b895e2bcf7f794328a1d417c8 | [
"MIT"
] | permissive | fusion-research/stochastic_ISM | 7c832e41aa76853349f266ebcf2d29aef77ade54 | 6438eb17bd391e8698e989156acb9b786c8f7299 | refs/heads/master | 2023-04-05T10:52:13.611747 | 2021-04-15T16:18:58 | 2021-04-15T16:18:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py |
from ism_pkg.tools.RFF import *
# A layer is defined by Wₐ, ℱ = RFF mapping, and maybe Wᵦ
# ℓᴵᴺ:layer input, ℓᴼᵁᵀ : layer output from training only
# A layer is a function f = Wᵦ ∘ H ∘ ℱ ∘ Wₐ
class rff_layer():
def __init__(self, ℓᴵᴺ, σ, RFF_width=400):
self.σ = σ
self.ℓᴵᴺ = ℓᴵᴺ
self.Wₐ = self.W = np.array([]... | [
"juliusctw@gmail.com"
] | juliusctw@gmail.com |
b62cc4bb33d0bd00d4f6f417bd45a4df88c9bfad | be86e0055a3fc1a713ff6c530365cde78e81c2bf | /src/cardinal/db/newbie.py | 00d36673ff2cd09538a8b0e1f7d35833b741b80f | [
"MIT"
] | permissive | Maamue/cardinal.py | 228f3e422bb4884c87e53c6ef59373f772cf2b6d | 8e5a357c896ad0ff899e92a211380aab80c09b79 | refs/heads/master | 2020-08-31T23:46:57.841645 | 2019-04-30T15:40:13 | 2019-04-30T15:40:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,673 | py | from sqlalchemy import BigInteger, Column, DateTime, ForeignKey, Interval, UnicodeText
from sqlalchemy.orm import relationship
from .base import Base
class NewbieGuild(Base):
__tablename__ = 'newbie_guilds'
guild_id = Column(BigInteger, primary_key=True, autoincrement=False)
role_id = Column(BigInteger,... | [
"simon.engmann@tu-dortmund.de"
] | simon.engmann@tu-dortmund.de |
5f1c1351f6599de5efa259519f67b0362771a49c | fc77f5083e4303f589b8e4b06a9cf898c8bffe3e | /users/forms.py | db49143b9091f51c957968a7cdd01bed1790a5e7 | [] | no_license | SaemChan/hotelreservation | fbe364153f2194669219881309c782df45fb6481 | c2df07fff5e0e6cf7d14e65147b774801c231e3f | refs/heads/master | 2023-01-02T11:53:31.098275 | 2020-10-26T17:34:55 | 2020-10-26T17:34:55 | 294,141,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,313 | py | from django import forms
from . import models
# from django.contrib.auth import password_validation
from . import models
class LoginForm(forms.Form):
email = forms.EmailField(widget=forms.EmailInput(attrs={"placeholder": "Email"}))
password = forms.CharField(
widget=forms.PasswordInput(attrs={"place... | [
"scha_@naver.com"
] | scha_@naver.com |
be93dedcd378f0edd7cec8080db95e8c1e31360e | 994ed74e909a59c3aae6428e13c4817865fc5636 | /ar/factory.py | fcbdd587f5ee693b6f1d1ecb28b89e7e259c2017 | [] | no_license | Lance0404/ampos_restaurant | e6bb0d66ac79d93902b30d13631cdb6fda4e8ea1 | 8c8c2039d704235c686cdd797d3962ee6d5cac8e | refs/heads/master | 2020-05-16T12:25:16.243764 | 2019-04-26T12:01:41 | 2019-04-26T12:01:41 | 183,044,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 812 | py | from flask import Flask, current_app
from ar import config
# import os
from ar import db
import logging
import logging.config
from ar import mylogging
def create_app(config_obj=None):
app = Flask(__name__)
app.logger.info(f'flask app is up by Lance!')
app.config.from_object(config)
# if config_obj:
... | [
"virtuouslycan@gmail.com"
] | virtuouslycan@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.