blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7fa376127790af494936c9aab5e68155b1e0b12d | 2942ccbb87ceee789337cf946fc878b530889b41 | /train.py | 327bbccce02f69a36fcf97eaa57bf49dd4706ffe | [] | no_license | ducthangqd1998/Deeplabv3plus-Tensorflow | 6b774caf34d432fb6a5f870b29092f4f34294da3 | 278d07711bd38f5f936d30351a29424e50b97cf4 | refs/heads/master | 2021-01-04T18:36:53.905049 | 2019-05-22T07:43:02 | 2019-05-22T07:43:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,858 | py | #coding=utf-8
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
import tensorflow as tf
import numpy as np
import os
import cv2
import datetime
slim = tf.contrib.slim
import deeplab_model
import input_data
import utils.utils as Utils
flags = tf.app.flags
FL... | [
"zhulf0804@gmail.com"
] | zhulf0804@gmail.com |
8783fd225862f98980ed7674ab0421a2ba7fa60b | 00fee81437a42ecbee4934ee82a8deebc8c5d827 | /query_api.py | 83513efee92cdc94399f65dff8b4d8d8679051bf | [] | no_license | ahbauer/nyt_puppet | 042e835ce134cbf4ce7238be8845f99296cbf289 | 2f5332a4acaf3ed587530982f4a5d8b801be4996 | refs/heads/master | 2020-04-06T04:55:54.818645 | 2015-04-05T05:01:46 | 2015-04-05T05:01:46 | 33,414,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,062 | py | import sys
import os
import datetime
import json
import wget
def main():
if len(sys.argv) != 2:
print 'Usage: query_api outfilename'
exit(1)
logfilename = 'templog.txt'
call = 'http://api.nytimes.com/svc/search/v2/articlesearch.json?sort=newest&fq=source%3A%22The+New+York+Times%22+AND+docum... | [
"ahbauer01@gmail.com"
] | ahbauer01@gmail.com |
fd629182c12d4d84061fd95250e082bfad17438e | 5971c280956cb1ce53d4bab75ac90443ced39218 | /Individual Questions/BinarySearchArray.py | a8173dc1771c1aa6c513d33027ad3f8a85777ea0 | [
"MIT"
] | permissive | dvasavda/Tech-Interview-Preparation | e1a19e0820938aa3abe221d21eba6127829cdaee | 42930ccc0bf86ce72162b3ffe186bd912b0997cb | refs/heads/master | 2022-11-10T17:50:18.009863 | 2020-07-01T18:48:11 | 2020-07-01T18:48:11 | 171,165,034 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | def binarySearchSortedArray(nums, s):
"""
Args:
{List<int>} nums
{int} s
Returns:
{boolean} Whether s is in nums.
"""
# Write your code here.
beginning = 0
end = len(nums) - 1
found = False
while beginning <= end and not found:
mid = (beginning + end) // 2
... | [
"d_vasavda@u.pacific.edu"
] | d_vasavda@u.pacific.edu |
73a1fbf3232070516bfe940f3763fe2da8c37e9f | e63a36870512edb7fd947b809631cf153b028997 | /surveil/tests/api/controllers/v2/auth/test_auth.py | f826fd19633457892325f655e1f92337498b9a8b | [
"Apache-2.0"
] | permissive | titilambert/surveil | 632c7e65d10e03c675d78f278822015346f5c47a | 8feeb64e40ca2bd95ebd60506074192ecdf627b6 | refs/heads/master | 2020-05-25T13:36:59.708227 | 2015-06-29T14:07:07 | 2015-06-29T14:07:07 | 38,249,530 | 1 | 0 | null | 2015-06-29T13:38:04 | 2015-06-29T13:38:03 | null | UTF-8 | Python | false | false | 1,658 | py | # Copyright 2015 - Savoir-Faire Linux 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 required by applicable law or agreed ... | [
"alexandre.viau@savoirfairelinux.com"
] | alexandre.viau@savoirfairelinux.com |
ddb9cad69a65e5191579ada19f9b910281d97041 | ff6f60d02ed8d024f7b2db5c9eb4b1196ebf166b | /my_flask/app/web/book.py | ea9c29ced2fe5f2b7754770161dd96e6bcc73744 | [] | no_license | cekong/learnit | 43b707e347ff552754b6592e01dd106c98cd0cc5 | b4111d6fee95960f7b7ca5421b7159cb6122ad2a | refs/heads/master | 2020-03-25T13:53:37.848843 | 2019-08-29T06:46:48 | 2019-08-29T06:46:48 | 143,848,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,707 | py | ''''''
'''
把视图函数从主文件分离出来
用蓝图注册视图函数
https://coding.imooc.com/lesson/194.html#mid=12773
线程隔离
https://coding.imooc.com/lesson/194.html#mid=12630
使用模板
https://www.liaoxuefeng.com/wiki/0014316089557264a6b348958f449949df42a6d3a2e542c000/0014320129740415df73bf8f81e478982bf4d5c8aa3817a000
'''
from app.spider.my_f... | [
"noreply@github.com"
] | cekong.noreply@github.com |
93246b6bddbe88b106b29b48b5c969490f4097c2 | 97d5563bcbd95987c51fe3fe6390b2542169f715 | /SniperPolicy/cmt/fragments/install.py | cb848f995af2cb6dbc7699f822b107216d502de6 | [] | no_license | SNiPER-Framework/cmt4sniper | 6d48b2c0ad2dd73e909fd956a000d596fe6dd1a6 | 6cc33e8ca8b8170febbb96424c022a67f14b1a0b | refs/heads/master | 2023-04-08T12:36:53.568797 | 2021-04-02T16:09:02 | 2021-04-02T16:09:02 | 354,012,979 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,647 | py | #!/usr/bin/env python
"""
Script used to install files keeping track of the files that have
been installed, so that at the next installation the file removed
from the source directory will also be removed from the destination
directory.
The script provide also the "uninstall" functionality to remove all
and only the fi... | [
"zoujh@ihep.ac.cn"
] | zoujh@ihep.ac.cn |
c4c3253a6b07f19944021bbecf697a2cb8e6faec | 168f705d7283ca060fbcbbd93cf58ff71d001aff | /2/Arbitrage/test_american.py | 4c7fbfa9eb8039cbdcc5da107e7d3dda593b5e3f | [] | no_license | jaceiverson/assign2 | cc403271d64844b3476140e19f6d6d62acd76c8f | 2576fd6d822dd9c8806ce0a63cb656328ed1b428 | refs/heads/master | 2020-08-26T19:24:52.054175 | 2019-12-09T20:33:33 | 2019-12-09T20:33:33 | 217,119,759 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | from payoffs import VanillaOption, call_payoff, put_payoff, american_binomial
spot = 41.0
strike = 40.0
rate = 0.08
vol = 0.30
div = 0.0
expiry = 1.0
steps = 3
the_call = VanillaOption(strike, expiry, call_payoff)
price = american_binomial(the_call, spot, rate, vol, div, steps)
price2 = european_binomial(the_call, s... | [
"jaceiverson@Jaces-MacBook-Pro.local"
] | jaceiverson@Jaces-MacBook-Pro.local |
0013b1e16967cbeac62eae6ea8f98578c863e5bb | f1cc96e94ca7b39e37a2def3a144b8737e402c6b | /dingtalk_sdk_gmdzy2010/base_request.py | d57ef4f6f136ecb02db1bcfb2008c9b9cdf17b5b | [
"BSD-2-Clause"
] | permissive | gmdzy2010/dingtalk_sdk_gmdzy2010 | f3d6fe70d457166d796fef53d86a7f24c32bf25d | f8c9fb130977993daf38137f37edfa3ee3eb4b66 | refs/heads/master | 2022-12-23T01:18:54.563214 | 2022-12-16T03:18:59 | 2022-12-16T03:18:59 | 152,196,653 | 7 | 4 | BSD-2-Clause | 2022-12-16T03:19:00 | 2018-10-09T06:09:40 | Python | UTF-8 | Python | false | false | 3,244 | py | import logging
import os
import requests
class BaseRequest(object):
"""The base request for dingtalk"""
logs_path = os.path.dirname(os.path.abspath(__file__))
request_url = None
request_methods_valid = [
"get", "post", "put", "delete", "head", "options", "patch"
]
def... | [
"noreply@github.com"
] | gmdzy2010.noreply@github.com |
45aaca22b2d1ee117fe7f1cc3ed059e91eb08b11 | c9dc59c06d67eaffd59e924886ae8d33a7c22c18 | /monitor.py | 27fd4acfd5accd8b11f0a18e72614225244e3954 | [] | no_license | arvind181998ad/AWS-RESOURCE-MONITOR | 0659e49e9c954cddbb9cd9ef128d2c1dbc688916 | 600a369271ba4e35dea79e245f31401d8fa89735 | refs/heads/master | 2021-05-10T08:00:00.721156 | 2018-01-25T06:52:00 | 2018-01-25T06:52:00 | 118,871,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,853 | py |
#import statements
import argparse
import boto3
import os
import sys
from pathlib import Path
#regionsCode
regions=['us-east-1','us-east-2','us-west-1','us-west-2','eu-west-1','eu-west-2','eu-west-3',
'ca-central-1','eu-central-1','ap-northeast-1','ap-northeast-2','ap-southeast-1',
'ap-southeast-2... | [
"arvindkec18@gmail.com"
] | arvindkec18@gmail.com |
c4f6f2ac9cf581a356a86df581ca76f783be41d4 | cae30a18b2329ed1c3113b48dbe5095096e7d297 | /sample/app/settings.py | 905864248f2ccd8e175e82812b67645348153001 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | hdknr/djpress | a477c0d8996ee378d27db055361778a5e018daa1 | 9f482d87f2e1f40938dac313bf4c7c3c61ed812f | refs/heads/master | 2020-12-10T21:03:28.982405 | 2017-05-31T12:27:02 | 2017-05-31T12:27:02 | 40,709,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,258 | py | """
Django settings for app project.
Generated by 'django-admin startproject' using Django 1.8.3.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build paths in... | [
"gmail@hdknr.com"
] | gmail@hdknr.com |
1e998c835edcbb4c3b2f76f6cc444af4a37474dd | ef5b59fe56c3a0b68578b58580f769e3e5713c3a | /scripts/gen_index.py | 46438ccadb4feee62cca3c4b1ddfd10072e58db8 | [] | no_license | noahsug/space | 7472f270d6005dc2ee9db0d5f085deaaa7609c1c | abe68e06708eb05d19c1fb2e365258ebc323c8ce | refs/heads/master | 2020-12-24T15:58:25.345015 | 2015-10-22T21:57:54 | 2015-10-22T21:57:54 | 25,186,464 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,697 | py | import fnmatch
import os.path
import re
excluded_files = [
'di/*',
'util/*'
]
impl_files = []
test_impl_files = []
for root, dirnames, filenames in os.walk('app/js'):
for filename in filenames:
path = os.path.join(root, filename)[len('app/js/'):]
should_add = True;
for excluded_file in excluded_fil... | [
"sugarman@google.com"
] | sugarman@google.com |
3fb3276f5ca2daccf98e9e4f20943e8700298d82 | f81b8a10249df65e7e242717a53913432716c3b5 | /testinvenio/records/permissions.py | 6657d874bd74d9099fc88c4fd4b3ff22aef0e44f | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | Alzpeta/testinvenio | 68f14d2b90e9a7524a1e72051098ec2af2a93e07 | 210e4b6ce6b1edcb2ce9ded1bc683745e7eb421a | refs/heads/master | 2023-01-04T13:18:52.704975 | 2020-11-02T17:51:35 | 2020-11-02T17:51:35 | 300,592,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | # -*- coding: utf-8 -*-
#
# Copyright (C) 2020 alzp.
#
# testInvenio is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
"""Permissions for testInvenio."""
from invenio_access import Permission, any_user
def files_permission_factory(obj... | [
"alzbeta.pokorna@cesnet.cz"
] | alzbeta.pokorna@cesnet.cz |
25950a0c8324fe9133c09093b521017005ebb5e3 | 49663f8e687b6df7f8662a7c5d2d56099c73234b | /crawl/company.py | 514bf0d3d63042c52548bf8283b440e2a5b74b6d | [] | no_license | mohammadyousuf/crawler | afb91f19b9c3ce4b59876886841ad33b4baa6654 | 92c5ea30a24e31b4401b811336fac80cf5e20c85 | refs/heads/master | 2020-12-31T01:23:01.416204 | 2016-06-14T11:32:27 | 2016-06-14T11:32:27 | 65,561,917 | 0 | 0 | null | 2016-08-12T15:05:46 | 2016-08-12T15:05:45 | null | UTF-8 | Python | false | false | 186 | py | import requests
url='http://www.crowdfunder.com/browse/deals&template=false'
data={
'entity_only':'true',
'page':2
}
html_post=requests.post(url,data=data)
#再用正则来解析 | [
"zouxuan0626@gmail.com"
] | zouxuan0626@gmail.com |
a09507c7b2dec29ed37933703d1aa4d4a44e9713 | cc774d03112e39e0a6233317e24734c216fa9156 | /index.py | d2e34ce85710f3d57dd98be96d35422ad9d189eb | [] | no_license | PinkyJangir/list | d38a4e6b52d5012706778d7f58d29b991d8db2d7 | 7ae5527afffd557040d9d335f115d7e68389bffd | refs/heads/main | 2023-08-23T17:07:16.976942 | 2021-11-05T17:05:34 | 2021-11-05T17:05:34 | 419,428,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | num=[4,6,8,3,9,2,10,22,35,]
i=0
sum=0
while i<len(num):
pos=num.index(num[i])
if pos%2==0:
sum+=num[i]
i+=1
print(pos)
print(sum) | [
"noreply@github.com"
] | PinkyJangir.noreply@github.com |
ceaab22f98a359b5e28ae89ceb85a659c9b128cc | 24ae9cbef6534da4f43f897c1f03251e47676412 | /blog/migrations/0001_initial.py | e963207b8ca0a7249ec1544e77ba3b3e829b348b | [] | no_license | kermit71/my-first-blog | f726381c907ba8bfca53507edd379049aa9aa80d | 4088d35444bf591720a216cbe1831c9d6c2c6e5b | refs/heads/master | 2020-08-27T06:28:58.768371 | 2019-10-28T06:47:47 | 2019-10-28T06:47:47 | 217,270,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | # Generated by Django 2.2.6 on 2019-10-24 09:49
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"katsushi@gmail.com"
] | katsushi@gmail.com |
9a0d948f397408058c143ca7451ef115e421dacc | 9d48fcc536cf53ae5b37028012b43b2fe07f0e8a | /backend/projects/models.py | 52b01b7eef3dfa65b71ae4ccc37085d69eb605b0 | [] | no_license | gda2048/Collections | 51ac348ebf93583bce109b75d3f3511255ee5e59 | 6e00f54e512e4e16945f87b5f70df3d12e80f844 | refs/heads/master | 2022-12-11T06:24:29.612513 | 2020-01-10T06:33:52 | 2020-01-10T06:33:52 | 223,648,250 | 1 | 0 | null | 2022-12-08T06:59:38 | 2019-11-23T20:24:22 | Python | UTF-8 | Python | false | false | 2,863 | py | from django.core.exceptions import ValidationError
from django.db import models
from django.db.models.signals import post_save
from django.dispatch import receiver
from django.utils import timezone
from profiles.models import Team, User
class Backlog(models.Model):
team = models.OneToOneField(Team, on_delete=mod... | [
"goncharovdma@gmail.com"
] | goncharovdma@gmail.com |
933b91b45f6fecffc5ae724e69228611d5645c2a | 8a2188817aa77badb3f2b1effdf51687da437a55 | /Biblioteca/Biblioteca/apps/estudiantes/views.py | 5fff51dae47b855fb4b0fbb56e9abe08590b3d7f | [] | no_license | juanjavierlimachi/Biblioteca | 9e3d41b130ed77e72424c35e6e62832704ee5858 | 7b839220e9b2ea67c965b722d94467acadb37aae | refs/heads/master | 2016-09-09T22:19:56.334965 | 2015-07-17T03:26:47 | 2015-07-17T03:26:47 | 39,229,848 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,177 | py | from django.shortcuts import render, render_to_response
from django.views.generic import CreateView,TemplateView,ListView
from django.http import HttpResponseRedirect
from django.template import RequestContext
from .formularios import *
from Biblioteca.apps.libro.models import Libro
# Create your views here.
def Reserv... | [
"juan@hotmail.com"
] | juan@hotmail.com |
9fa22717f26d1ef4a14e25f2e2d3c08434fd32a0 | 1af1f89eb9a178b95d1ba023b209b7538fb151f0 | /Algorithms/139. Word Break.py | 577d67934255597ccca105fd503a93467072e38f | [] | no_license | 0xtinyuk/LeetCode | 77d690161cc52738e63a4c4b6595a6012fa5c21e | 08bc96a0fc2b672282cda348c833c02218c356f1 | refs/heads/master | 2023-02-21T16:58:39.881908 | 2021-01-25T08:00:13 | 2021-01-25T08:00:13 | 292,037,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | class Solution:
def wordBreak(self, s: str, wordDict: List[str]) -> bool:
f=[False]*(len(s)+1)
f[0]=True
for i in range(len(s)):
if f[i]:
for word in wordDict:
l=len(word)
if (i+l<=len(s)) and (word==s[i:i+l]):
... | [
"xliu301@uottawa.ca"
] | xliu301@uottawa.ca |
9fd1fc7708f649c1fe1972ea6d7e4f1dda742923 | 9de33c12dc876c0f5acf766aee49689e3ab76a97 | /281a.py | 52a292b2dac442531f89662aec87ec43b3aa6098 | [] | no_license | PinkFromTheFuture/codeforces | 91061d8a35e995566e752d290bc264505eee3bc8 | bf512e92f985467281fd7a36be9ca9197ec37b3c | refs/heads/master | 2022-05-27T06:54:40.546999 | 2018-09-26T05:05:50 | 2018-09-26T05:05:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | # http://codeforces.com/problemset/problem/281/A
# Capitalization is writing a word with its first letter as a capital letter.
# Input
# A single line contains a non-empty word. This word consists of lowercase and uppercase English letters. The length of the word will not exceed 10^3.
word = input()
# Your task is t... | [
"eduardoxfurtado@gmail.com"
] | eduardoxfurtado@gmail.com |
4150bb6a4a34ce887a39ed8abcde93662b505e47 | 262635145ffd34696c42dec3970b0523a2081f8b | /simple-cipher/simple_cipher.py | c4b5e4f6063b7d729adba5168e5e4c8f5b23bf54 | [
"MIT"
] | permissive | amalshehu/exercism-python | 9ff347ab9dde7338d01ccc94edbe0aa538f14a03 | eb469246504fb22463e036a989dc9b44e0a83410 | refs/heads/master | 2020-04-17T17:28:02.482703 | 2016-10-25T17:51:54 | 2016-10-25T17:51:54 | 66,532,839 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,712 | py | # File: simple_cipher.py
# Purpose: Implement a simple shift cipher like Caesar and a more secure substitution cipher
# Programmer: Amal Shehu
# Course: Exercism
# Date: Monday 26 September 2016, 02:00 AM
import random
from string import ascii_lowercase
letters = ascii_lowercase
class Cipher... | [
"amalshehu@gmail.com"
] | amalshehu@gmail.com |
0f527b4f593714362ae575fb6b0d141dc375912e | 55a411a77f23fd827cfbf86524dc2317b67a0097 | /File2.py | 1a75839138907e68ddb3bb5a0384db80ad48a34b | [] | no_license | imradhetiwari/python | 83896d79f7d47fa767b09f22719fbf5111877c02 | b302082bf076d9d1e610c2b38371c22fc8c7d562 | refs/heads/master | 2022-04-25T02:43:51.054655 | 2020-04-26T04:43:59 | 2020-04-26T04:43:59 | 258,942,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | import File1
print("File2 __name__ = %s" %__name__)
if __name__ == "__main__":
print("File2 is being run directly")
else:
print("File2 is being imported") | [
"radhetiwari001@gmail.com"
] | radhetiwari001@gmail.com |
eedec90b012beec34fb98a45089fbfea5ae876f5 | c8270ad3297129247451b06102c85b88b8aacc89 | /Hangman- Angel Vasquez.py | fa56ee644d5df979f9f48f40007660dc0401cbc3 | [] | no_license | AngelVasquez20/CSE | 99a73d1d8e0c53c8dc63a49fced0bf37f29fafc9 | db2c67a935f21bcd47cfd60a25cf6620ec3008c8 | refs/heads/master | 2020-04-02T07:50:58.341218 | 2019-05-23T21:26:33 | 2019-05-23T21:26:33 | 154,217,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,123 | py | import random
import string
guess = 8
pun = list(string.punctuation)
alphabet = list(string.ascii_letters)
words = ["Apple",
"Word",
"Backpack",
"Pencil",
"Legs",
"Mouse",
"Dog",
"Cat",
"Myth",
"Shoe",
"I love dogs!"]
random = ra... | [
"42391751+AngelVasquez20@users.noreply.github.com"
] | 42391751+AngelVasquez20@users.noreply.github.com |
98ed281e779a38d3a97dcf894060c68eaf321f8c | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit_QC1095.py | ba9aa4a123022af05dc1e50f899c06c927cc5564 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,536 | py | # qubit number=5
# total number=54
import cirq
import qiskit
from qiskit import IBMQ
from qiskit.providers.ibmq import least_busy
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import FakeVigo
from ma... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
d22c9363b518f701800c8d0f1854dce1b79d6bbb | 6f4c4c4ae395d8d4ced87d3a287925eb4c3eb887 | /webAdminClient/wsgi.py | 69d87ddbde55b0135c69f10ec0549ee8c41faf82 | [] | no_license | vipinbharti121/webAdminClient | 279bca56c96e88a261c4331f6c5be2a439c7b1cc | 2cd8e870a07b8f44bd5d12ee906ca59e3b08a907 | refs/heads/master | 2021-01-19T09:58:28.837284 | 2017-04-27T03:35:20 | 2017-04-27T03:35:20 | 87,802,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | """
WSGI config for webAdminClient 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("DJAN... | [
"vipinbharti121@gmail.com"
] | vipinbharti121@gmail.com |
a8076f0df1c8c43943182d080ee3a2e0e7acc6e7 | 4fc357805e30cd634c753073f8b9e4750ba6eac7 | /SPCOR/example1.py | fafea848d5f828e8517a8d57ae144d9a6b34b6a7 | [] | no_license | MUDDASICK/CodeSamples | e970634e5b50e93e39261d9af335652da37f60c4 | 1af073e3ad61cf9efe0e26f7097a8414d4bf4739 | refs/heads/main | 2023-08-17T07:34:33.203566 | 2023-06-17T15:42:45 | 2023-06-17T15:42:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,505 | py | import json
import requests
from rich import print as rprint
requests.packages.urllib3.disable_warnings()
def get_token():
token_url = "https://10.10.20.65/api/fdm/v5/fdm/token"
headers = {"Accept": "application/json", "Content-Type": "application/json"}
payload = {"grant_type": "password", "username": ... | [
"noreply@github.com"
] | MUDDASICK.noreply@github.com |
440761660bf6ce25743676c1383266710cbdb766 | 4af090efabd08ef73c411a00ce4972a1c6f30a22 | /python_100days/9day/game_02.py | 828ddc089fc9572c0a06e392bca6079ad8d54afa | [] | no_license | predatory123/byhytest | e52bca664f9461c9309aaa9bf779c02368ed937c | 578206c9ec9253d0d9325e72cdc13dde6eeb2fc1 | refs/heads/master | 2023-04-26T13:33:14.462408 | 2021-05-20T13:33:37 | 2021-05-20T14:26:22 | 369,213,148 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,135 | py | Card = collections.namedtuple('Card', ['rank', 'suit'])
class Poker(MutableSequence):
# 扑克牌的相关定义
ranks = [str(n) for n in range(2, 11)] + list('JQKA')
suits = 'spades hearts diamonds clubs'.split() # 黑桃,红桃,方块,梅花
suit_values = dict(spades=3, hearts=2, diamonds=1, clubs=0)#黑桃最大,红桃次之,方块再次之,梅花最小
def ... | [
"13310948808@163.com"
] | 13310948808@163.com |
88a17af2c77b278374873db91472bee81840c2fd | 915ac708aeac53125f29bef90c2c047eaed4940e | /Anaconda/Lib/site-packages/blaze/server/__init__.py | cc45dd552a001665948f97c616e525f2a682c66e | [] | no_license | bopopescu/newGitTest | c8c480ddd585ef416a5ccb63cbc43e3019f92534 | 5a19f7d01d417a34170a8f760a76e6a8bb7c9274 | refs/heads/master | 2021-05-31T17:00:26.656450 | 2016-06-08T06:43:52 | 2016-06-08T06:43:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | from __future__ import absolute_import, division, print_function
from .server import Server, to_tree, from_tree, api
from .client import ExprClient, Client
| [
"arvindchari88@gmail.com"
] | arvindchari88@gmail.com |
8fb531fec8d28f2ab789a855a44fa97599d92fdd | 49fe43b6626be1a47a1b05bb16b606c582ba84d7 | /tests/message.py | a1294789830dc75dfa578e3caee6d641bfd4ab56 | [
"Apache-2.0"
] | permissive | TheUncleKai/pyeasyb | 3804e066dddef492cbf0471a4aafec3464336572 | 6237d67bfb9ad7599c7706f3ccbe83aa1806464e | refs/heads/master | 2020-11-29T16:28:23.444037 | 2020-02-08T23:07:11 | 2020-02-08T23:07:11 | 230,167,888 | 0 | 1 | Apache-2.0 | 2020-02-08T23:07:12 | 2019-12-26T00:18:29 | Python | UTF-8 | Python | false | false | 6,618 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
#
# 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 ... | [
"kai.raphahn@laburec.de"
] | kai.raphahn@laburec.de |
3c2c415e894e5277ca78bcbfeb452d75e08a1e80 | 0d1b38738bf8d3a46efdf44ef6dd1fd061a0ff3e | /python/xformer/loading.py | 4d5aa713432cbcc7a16a2e1d8eaee5660d113609 | [
"MIT"
] | permissive | nelhage/taktician | aea285e49c97d9212390075239abf4816b0023ee | 8ab398ad8ce65a7615da476c6e99c3f6d5d24d76 | refs/heads/main | 2022-12-08T23:43:26.458026 | 2022-11-06T23:31:12 | 2022-11-06T23:31:12 | 57,939,961 | 60 | 14 | MIT | 2022-11-06T23:31:13 | 2016-05-03T03:54:39 | Go | UTF-8 | Python | false | false | 848 | py | import os.path
import torch
from torch import nn
import yaml
from .model import Transformer
def load_config(save_dir):
with open(os.path.join(save_dir, "config.yaml")) as fh:
return yaml.unsafe_load(fh)
def load_snapshot(model: nn.Module, save_dir: str):
state = torch.load(os.path.join(save_dir, "... | [
"nelhage@nelhage.com"
] | nelhage@nelhage.com |
e91f2530231ab7cbdb7a09e7e41c5b7853538c00 | 985be2d2d979c1d5ffbd6cd73d9da711951e4f1c | /django_channels/asgi.py | 2b6813d966c147f9309c5e271d9d2c4f4d244138 | [] | no_license | sreesh-mallya/django-channels-demo | 6a1492c2ffe3a8f37782ced19562c629fa65ee8f | 8a3ac7d3e04ecd8c5053009f760d84e3b9415882 | refs/heads/master | 2021-01-23T22:16:04.353634 | 2017-09-19T03:44:00 | 2017-09-19T03:44:00 | 102,924,295 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | import os
import channels.asgi
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "django_channels.settings")
channel_layer = channels.asgi.get_channel_layer()
| [
"sreeshsmallya@gmail.com"
] | sreeshsmallya@gmail.com |
74dab3259df5726216ab245a698f4ad633b56a07 | 6d14641ff3806da2ba5a3087e36c475b7e07a336 | /text_mining_code.py | b963126d00a9467c1f36f95a44e716da2f1bd9a2 | [] | no_license | jamiecayley/ALS | 32c4e20f0ee9cd7bc04c0a7870dd20b8ad98a175 | 20a00595adb952eb4ccf74a221cee376d4028900 | refs/heads/master | 2021-05-27T12:39:25.868830 | 2014-08-27T02:19:03 | 2014-08-27T02:19:03 | 15,090,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | import gzip
class TextMinning:
def __init__(self, fileName):
self.fileName = fileName
def read_gz_file_in_chunks(self, chunk_size=1024):
'''Lazy function to read a gz file piece by piece
Default chunck size: 1K.'''
while True:
data = file_object.read(chunk_size)
if not data:
break
yield data
... | [
"materechm@gmail.com"
] | materechm@gmail.com |
1db31bea4b6b755733c4f518e1ca07de05251809 | 77f8bb38f9dd100406365a96fea8940cf8eecfa5 | /django_pro2/wsgi.py | e01dcc3e7ee630f93446db8208db692fa99bfd24 | [] | no_license | yadukrishnan369/cybersquare | 553280825d0852dd72879b135bc33fc5efcbcd77 | 356b7e6f430cc813f47c8f94a7e9bfc346cfdc30 | refs/heads/master | 2023-08-22T11:16:09.047228 | 2021-10-01T04:04:02 | 2021-10-01T04:04:02 | 411,560,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for django_pro2 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... | [
"yadukrish9656@gmail.com"
] | yadukrish9656@gmail.com |
467094675e5091fc349d381f86d9afaa14d38086 | f3db8bd591ab2cdffc926436190dc8f31a37bfde | /project/settings.py | 73eed63fb9e8861e55a15e763c61b3609071f84f | [] | no_license | ravikaran1/civilmain | 5180e88b845aa8ede9ee0b3322dbc6e7e7bfa12b | 9994e1a62ebe8d30b3561f6ff811ff3b8fc4fa08 | refs/heads/master | 2023-06-02T00:57:03.882666 | 2021-06-10T03:06:54 | 2021-06-10T03:06:54 | 375,542,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,250 | py | """
Django settings for project project.
Generated by 'django-admin startproject' using Django 3.1.5.
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... | [
"ravi5sandhu775@gmail.com"
] | ravi5sandhu775@gmail.com |
1665a7e801e38198331918e02cc942dbca6af308 | edc399cbe15f6b0c8dff622e2e2445f1913615e4 | /train/cnn.py | 91b8359226b0493097f9808a574836ab7ead58e8 | [] | no_license | mannysinghh11/Colorify | 1e9e488df5f14cf94fb8adb0b4b64f3e180c95b1 | 936ce5538c1a36366e1bddfe2936b078146a4b2a | refs/heads/master | 2020-09-15T05:38:57.935914 | 2019-11-22T22:58:03 | 2019-11-22T22:58:03 | 223,359,227 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,928 | py | from keras.models import Sequential
from keras.layers import Conv2D, UpSampling2D, InputLayer, Conv2DTranspose
from keras.preprocessing.image import ImageDataGenerator, array_to_img, img_to_array, load_img
from skimage.color import rgb2lab, lab2rgb, rgb2gray, xyz2lab
from keras.layers import Dense, Dropout, Flatten, Ac... | [
"manpreetdot11@gmail.com"
] | manpreetdot11@gmail.com |
379486d00f0e987e17171fdb512a37eede8de8be | 2b485c67c723151f73ec96da9f6337a0c9857dae | /easy/q844 backspaceStrCmp.py | 14e5a37a7c60bca57bec20299809afd8391389f6 | [] | no_license | Anupya/leetcode | c7792e6ac61b655491a1c734f9167281356471d3 | cb45e66a41e0c6a8583bb9c4bf846b470ef4bc0f | refs/heads/master | 2022-10-10T14:01:22.189414 | 2022-09-07T21:36:24 | 2022-09-07T21:36:24 | 151,865,310 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 724 | py | # Given two strings s and t, return true if they are equal when both are typed into empty text editors. '#' means a backspace character.
# Note that after backspacing an empty text, the text will continue empty.
class Solution:
def backspaceCompare(self, s: str, t: str) -> bool:
# preprocess s
new... | [
"anupya@hotmail.ca"
] | anupya@hotmail.ca |
7b0b6659a3a83edf47364333170527adf0b1588a | 4fc33bc0b47557f93458e597bbfaa66d625b9573 | /FaceDetectCamerav3Multiface.py | 9632b2a5f904e20776ea76d183b6c6c93be543b9 | [] | no_license | pedroZenone/FaceDetection | 06eaec9e491359f70bc0f5c0fc740beb53b78b69 | 56fb2e0ba9e9d97d222365f20402c4d45c843aab | refs/heads/master | 2020-04-14T00:10:48.220111 | 2018-12-29T17:09:13 | 2018-12-29T17:09:13 | 163,526,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,328 | py | # -*- coding: utf-8 -*-
"""
Created on Tue May 22 14:44:59 2018
@author: pedzenon
"""
import cv2
from imutils.video import FPS
from google.cloud import vision
from google.cloud.vision import types
import numpy as np
from queue import Queue
from threading import Thread
import operator
import pandas as p... | [
"noreply@github.com"
] | pedroZenone.noreply@github.com |
6cc91dd9608a49fe3e92eb0154fc330d8290deca | 154c2668551ed260e1277bf95b2225f9de7365a7 | /Ejercicios.py/Ahorcados.py | df5bb04509e8920f9b6f4675d69d2e7fc437c4ba | [] | no_license | felipegarciab9601/Ejercicios.py | 8ab5efd749b7edecfa8193ccd3d68e721952772d | b6db8bde34f246e78883c7a97ee26f529f70ac71 | refs/heads/master | 2022-04-24T13:20:37.146167 | 2020-04-22T16:12:02 | 2020-04-22T16:12:02 | 257,684,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,155 | py | import random
IMAGES = ['''
+---+
| |
|
|
|
|
=========''', '''
+---+
| |
O |
|
|
|
=========''', '''
+---+
| |
O |
| |
|
|
=========''', '''
+---+
| |
O ... | [
"felipegarcia9631@hotmail.com"
] | felipegarcia9631@hotmail.com |
85af1d64e52abeaebaed17dddf17a473c39de16f | cb59b3eac9c01ee126077b3d20c474b89fd479ee | /Argishti/Question.py | 8d5b7a9f383428db6e5bedcd642b32c679f110a8 | [] | no_license | Levon187/ufar-python | 0648ee7711c46b1df00d1d04b7b1cbe3c5437c55 | 82c934c7cc017ecac457a339f9ac8ca4d9658431 | refs/heads/master | 2023-04-15T10:56:32.778755 | 2021-04-21T10:28:14 | 2021-04-21T10:28:14 | 335,051,877 | 0 | 0 | null | 2021-02-08T06:56:22 | 2021-02-01T18:53:27 | Python | UTF-8 | Python | false | false | 120 | py | class Question:
def __init__(self, question, answer):
self.question = question
self.answer = answer | [
"tigranyan.argishti@gmail.com"
] | tigranyan.argishti@gmail.com |
3708487f4168be67105fc290391be7c47ce0d308 | 6706c2dc2291a1530d14df2647aa79f787caeb49 | /Assignment_3/Code7.py | 0907b9eefc161512508cc6b2062893bbcb1145bf | [] | no_license | Tanishksingh/cyber_security | f31ecb7b25ed2099f92f614b9664c652d17c5cb7 | cfade3623f921be3905f2df636409998dba71ec5 | refs/heads/master | 2023-01-22T22:12:07.339996 | 2020-12-04T05:01:59 | 2020-12-04T05:01:59 | 293,023,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | def summer_69(l):
sum=0
len=l.__len__()
if len == 0:
return 0
for i in l:
if i!=6:
sum=sum+i
else:
break
for i in range(len):
if l[i]==9:
break
for j in range(i+1,len):
sum=sum+l[j]
return sum
... | [
"noreply@github.com"
] | Tanishksingh.noreply@github.com |
c1d2c127f9400ecd79337517d74aaa2a3243a246 | 8ae2f13c2860ec2c21e0f839fa044cdb12b26059 | /random_lut_generate/LUT1DHist.py | 4b500b63b2fdfe972633a45a10a34e087b7b6f60 | [] | no_license | inyukwo1/LUTFinder | b5fcfc0960b4680926eebc23eb992bebafda88fe | b851e483ce8c8f46f8f77b677c33ed475b71f1f1 | refs/heads/master | 2020-03-19T00:57:28.425952 | 2018-07-30T07:52:55 | 2018-07-30T07:52:55 | 135,512,415 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,588 | py | import os
import sys
import random
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from utils.QuadraticFunction import QuadraticFunction
from utils.LinearFunction import get_linearfunction_from_two_point
from random_lut_generate.LUT1D import LUT1D
def random_0_to_1():
val = random.un... | [
"ihna@voyagerx.com"
] | ihna@voyagerx.com |
f3561d81c6add357eae34a128836a3ea8c0c8073 | 45be19034693c00dbcc87dc2c0e8c3a30f456abb | /bin/rst2s5.py | bb57e73256925cc6efc1a0d676e82c3b4be23d04 | [] | no_license | yochidros/Huffman-Server | 282ad898cdf8637965c2323ad8a6175e2ff4ee69 | 2eeb6a457c8befc44b7ad645ceae53a64ca3c93c | refs/heads/master | 2022-09-03T05:00:22.730865 | 2018-02-04T10:17:18 | 2018-02-04T10:17:18 | 103,617,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | #!/Users/yotio/yochio/python/huffman/bin/python
# $Id: rst2s5.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: Chris Liechti <cliechti@gmx.net>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing HTML slides using
the S5 template system.
"""
try... | [
"mm9.movement.trb@gmail.com"
] | mm9.movement.trb@gmail.com |
561046dc8ce00c3f0a9c89eaa8757544bf3c445f | d54ff297c945f1400418493307036b7d6514c4b8 | /draw_cost.py | 67759eb196def69d6b3691aac2fa97d50e8b9da8 | [] | no_license | whoyao/python-drawing-exercise | b0f54f28776cbd8deb4f75cd0b2aa1b39ecc5e96 | 4fcf3c76659b5cfe29be8ec90a4fe7ef45aadd85 | refs/heads/master | 2020-04-15T03:59:18.138540 | 2019-01-07T02:29:28 | 2019-01-07T02:29:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,142 | py | import os
import time
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib.patches as patches
from io import StringIO
from mpl_toolkits.mplot3d import Axes3D
import numpy as np
cm = plt.get_cmap('rainbow')
read_path = "/tmp/cost_fifo.pipe"
def draw_cost_image(data):
df = pd.read_csv(StringIO(data... | [
"qsct9501@126.com"
] | qsct9501@126.com |
74b42f0bcfe5607557cba09fb5f0be4ade0a28ad | ee0fdbf9616fba410ccdf34f2c8e3f8364eb6f09 | /MultiView/noisyMNIST/MNIST_FG_mv.py | d699f82e5bc224dcd11252585dc02b3ec6237e01 | [] | no_license | zhangqi19880501/CorrelatedEmbeddings | 1bc11d28956c85a8a091d5d0d77e72aee5958857 | 1d899dc341c347847e9da790f98b7577047faa76 | refs/heads/master | 2023-08-25T04:22:36.423074 | 2020-03-09T12:06:01 | 2020-03-09T12:06:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,096 | py | # -*- coding: utf-8 -*-
""""
Convoutional NN script for MNIST based on Tensorflow Tutorial.
Author: fdcalmon@us.ibm.com
"""
import tensorflow as tf
import pickle
import gzip
import numpy as np
import scipy as sp
import time
import pandas as pd
# from util import load_data
from models_mv import *
# Initialize the in... | [
"noreply@github.com"
] | zhangqi19880501.noreply@github.com |
1dac47c4a4a311a2a8edb0ee7423e2b80b7a07d5 | a0fdab5bea482ece570ae798dca5fe19307e8610 | /python/cloneobj.py | e182624c4f07998e8f3cf133a6eb532fbad29059 | [] | no_license | velppa/oracle-scripts | 9cf9345fd291293b3b54cd1374a4e1f3b03e93ef | ee22c9158bf1dd0524e0f6d2c80e74292c7895d1 | refs/heads/master | 2021-05-31T23:31:51.041367 | 2016-06-10T08:50:56 | 2016-06-10T08:50:56 | 8,296,513 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,367 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
cloneobj.py
A module for clone objects from one Oracle Database to another.
history:
0.1.0 (2013-08-01): Initial version
0.1.1 (2013-08-01): + Added ability to create object if it doesn't exists
on target DB
0.1.2 (201... | [
"schmooser@gmail.com"
] | schmooser@gmail.com |
9faf595fcc5468767901d55f56ff17d44f768a1b | 9d5f249748163c22cc69ab5bf34a29b455976f61 | /Product_Hunt/manage.py | 89265361936832c02978d5fc633c75f15cbcef0e | [] | no_license | javed2214/Product-Hunt | b572e12c2040e6e2c7b13e09839493597e2a5edb | f982a6546ef7958f84c2bb59e387376a934821bf | refs/heads/master | 2020-06-22T05:24:59.396923 | 2020-02-13T11:40:47 | 2020-02-13T11:40:47 | 197,644,961 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Product_Hunt.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django.... | [
"javed.ansari4122@gmail.com"
] | javed.ansari4122@gmail.com |
4877a8a4c7be4b0f61b169fea50729f49ce0471a | 8036b0ee78c96dbc78191bfe48e5dbec71593533 | /developer/src/developer/__init__.py | 3052023287ff556db4ea840219538a90b94f13e0 | [] | no_license | jimhansson/tellstick-server | bb4bcf2c249956855af5031a923c508ea734bbde | 040fbb28e9df728f13f0a306bfa6b4d075a433e3 | refs/heads/master | 2021-01-19T03:42:21.653259 | 2017-03-02T15:28:32 | 2017-03-02T15:28:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | # -*- coding: utf-8 -*-
from Developer import Developer
| [
"micke.prag@telldus.se"
] | micke.prag@telldus.se |
ba9874b9f8af165cdc730447c935f81fbb148ff4 | eab00469f2c29d4747e8f93ee9dde776184e583b | /bearded_web/extra/bearded/tools/nmap.py | 8af0591f3a6ab81e5fb2ffb492a6328aee6881d6 | [] | no_license | slonoed/bearded | a36a2b00ba2ae598a181a308d242cde44a520424 | db94c88b0d4b91f728b51d6fbea82acd48ba84fe | refs/heads/master | 2021-01-20T23:47:31.226165 | 2013-06-09T10:59:11 | 2013-06-09T10:59:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | # -*- coding: utf-8 -*-
from bearded.tools.cl import CommandLineTool
class NmapTool(CommandLineTool):
pass | [
"m0sth8@gmail.com"
] | m0sth8@gmail.com |
9388636bc2e2092d6c1bbed3be9ec9c6c7e4326d | aa4c21a5eef13136d97030d3aa6a487f3c587800 | /flask/models/shift_index.py | 3e3cd4aa033c19d076f4747a0ca05848a906de41 | [] | no_license | nicolaseschneider/Revel_Take_Home | 85ea7a24567387c14bf9946f628ec928fad3c9ce | 9bd1a9bc3a8aa420e880f4f66bdab3ccc04976ec | refs/heads/master | 2022-12-19T01:41:11.041668 | 2020-09-10T16:00:30 | 2020-09-10T16:00:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 593 | py | from datetime import datetime
from db import db
from marshmallow import Schema
class ShiftIndex(db.Model):
id = db.Column(db.Integer, primary_key=True)
shift_id = db.Column(db.Integer, db.ForeignKey('shift.id'))
next_vehicle_id = db.Column(db.Integer, db.ForeignKey('vehicle.id'), nullable=True)
created_at = db... | [
"nicolas.e.schneider@vanderbilt.edu"
] | nicolas.e.schneider@vanderbilt.edu |
c2d3e57a5a6b5a10ff258e9de90b260b54892d58 | a09f4fc0051160f264c0aa0a3d060b23161901a4 | /blog/migrations/0001_initial.py | a1a7f23a6b9c6315c597cc03b5fba48d73dd5a85 | [] | no_license | todo-2mari5/my-second-djangogirls | 8ad92c3f3146a1208fa70a389a9822ac59388edc | 0e911f17e73a768b05ad235cb3a463d46899ab2e | refs/heads/master | 2020-06-06T21:14:13.255906 | 2019-06-21T06:51:11 | 2019-06-21T06:51:11 | 192,854,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | # Generated by Django 2.2.2 on 2019-06-20 05:18
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"ha1ma2chi3@yahoo.co.jp"
] | ha1ma2chi3@yahoo.co.jp |
d06917809a1c413d98e8f20232aac174f4a82c3b | 63d1d69021448811e7d42b0c087cbca116f99a86 | /web/web/middlewares/auth.py | 4dd3513c9050d7c2cdbfea66e3062ca7e00d17ba | [] | no_license | jackfrued/xpc | 47ffb9b0059933589c71716e75f99f255758c140 | 92160b05cf4d877aa435a426cef883347b002671 | refs/heads/master | 2020-03-28T20:23:04.961050 | 2018-07-06T09:44:25 | 2018-07-06T09:44:25 | 149,064,323 | 2 | 1 | null | 2018-09-17T03:33:07 | 2018-09-17T03:33:07 | null | UTF-8 | Python | false | false | 952 | py | from django.http import HttpResponseRedirect
from django.conf import settings
from web.models import Composer
from web.helpers.composer import md5_pwd
need_login = ['/']
class AuthMiddleware(object):
def __init__(self, get_response):
self.get_response = get_response
# One-time configuration and i... | [
"guye999@gmail.com"
] | guye999@gmail.com |
e2fa980526ee9288ede168a8cdba489ba891011e | b05761d771bb5a85d39d370c649567c1ff3eb089 | /venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/3/email/mime/audio.pyi | f098016bcd2b5810dfaacbc15e020cb1ea16dc2e | [] | no_license | JawshyJ/Coding_Practice | 88c49cab955eab04609ec1003b6b8c20f103fc06 | eb6b229d41aa49b1545af2120e6bee8e982adb41 | refs/heads/master | 2023-02-19T10:18:04.818542 | 2023-02-06T21:22:58 | 2023-02-06T21:22:58 | 247,788,631 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | pyi | /home/runner/.cache/pip/pool/86/c8/f6/db3c49c0b945e933d70f344c92cbb8a14a319f2a54b2161e9f15d2904f | [
"37465112+JawshyJ@users.noreply.github.com"
] | 37465112+JawshyJ@users.noreply.github.com |
7cdc5eafeefeca965fbcc94d556980727053266c | 48f76de5f7f2055ce5a79a350af6ad5920bb57c4 | /utils.py | e12ac6b28c9ea7a2db236f8ded57cbbb02a150bc | [] | no_license | RahulSundar/DL-ROM-Meth | 5d736e4f70117fb754dd3e5d0ecdff6f93b01897 | ab6edd36eb96a936647283210ddd1b101aab8c69 | refs/heads/master | 2023-03-10T04:38:56.950448 | 2021-02-24T21:09:22 | 2021-02-24T21:09:22 | 432,648,678 | 0 | 1 | null | 2021-11-28T07:37:22 | 2021-11-28T07:37:21 | null | UTF-8 | Python | false | false | 1,036 | py | """
Stefania Fresca, MOX Laboratory, Politecnico di Milano
February 2019
"""
import os
os.environ['TF_CPP_MIN_LOG_LEVEL']='2'
import numpy as np
import scipy.io as sio
import h5py
def read_data(mat):
data = sio.loadmat(mat)
S = data['S'].squeeze()
S = np.transpose(S)
return S
def read_large_data(m... | [
"stefania.fresca@polimi.it"
] | stefania.fresca@polimi.it |
c9273b245d2a6a3149b716d51969d7382a6673a6 | d36e503b4f951824f9ce0f5e5bce244b695e6bac | /guildwars2/database.py | a4cbe59a15906b924432275f62f4850c4ac0eb3c | [
"MIT"
] | permissive | greaka/GW2Bot | 126ab28b919bd3ed9e238ad6292e30172cdd93bc | 103300d5121f2fe92f25081e429fbff60aed652a | refs/heads/master | 2020-03-07T04:39:25.338173 | 2018-06-22T14:06:49 | 2018-06-22T14:06:49 | 127,272,629 | 0 | 0 | MIT | 2018-03-29T09:58:26 | 2018-03-29T09:58:26 | null | UTF-8 | Python | false | false | 17,111 | py | import asyncio
import collections
import re
import time
import discord
from discord.ext import commands
from discord.ext.commands.cooldowns import BucketType
from pymongo.errors import BulkWriteError
from .exceptions import APIKeyError
class DatabaseMixin:
@commands.command()
@commands.cooldown(1, 5, Bucket... | [
"Maselkov@users.noreply.github.com"
] | Maselkov@users.noreply.github.com |
669188eac36b8293c12dd5899a45b26c2a0b8884 | 0377ead8058df100bd415cadc152d6f95688f925 | /system/urls.py | af5771d26a0d26a9e841234d2372de005415e7ca | [] | no_license | laojiuh/DjangoMall | b676112528e8167fdb48153606d68caa298ffdac | 778ed847bee6f5ad36efbbff6cbf18839ad38138 | refs/heads/master | 2022-12-10T18:13:14.950126 | 2020-09-14T08:01:08 | 2020-09-14T08:01:08 | 295,344,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | from django.conf.urls import url, include
from system import views
urlpatterns = [
# 新闻列表
url(r'^news/$', views.news_list, name='news_list'),
# 新闻详情
url(r'^news/(?P<pk>\d+)/$', views.news_detail, name='news_detail'),
# 验证码
url(r'^verify/code/$', views.verify_code, name='verify_code'),
] | [
"huangzeb@kean.edu"
] | huangzeb@kean.edu |
c823246cc4de9cfcf3137a03ec96fe34984eb630 | d25d6368011a6a41e4346330e500d2a93d87981e | /tests/simpletest_camsreg.py | 4301daaaf91348cb86bd0597499bd390bd164f0f | [
"MIT"
] | permissive | andreas-h/mss-chem | f8e0f94850c1ba01f896fb79058632d1a81855dc | ae91f4f5b4c19a4ff0ce8fd342fe0aed4ce2b9ab | refs/heads/master | 2021-01-19T09:24:34.736706 | 2017-07-13T15:21:23 | 2017-07-13T15:23:35 | 82,105,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,889 | py | import datetime
import os.path
import unittest
import urllib
from msschem.models import CAMSRegDriver
from msschem.download import CAMSRegDownload
import msschem_settings
class TestCAMSRegDriver(unittest.TestCase):
def setUp(self):
self.driver = msschem_settings.register_datasources['CAMSReg_ENSEMBLE']... | [
"hilboll@uni-bremen.de"
] | hilboll@uni-bremen.de |
1943786d90c3e350147505fb37ab3c28ffdba700 | 1f882cf88e201906e0188d97da69bdf9393f4a8c | /sara/main.py | 39216c24749b3ece7c2bb96f0e6e2f63d498b4b3 | [] | no_license | kwarwp/ida | 8d5fb4e893e6958cafbe8a91bcb75167634ff391 | 6f8d783e0fd750d164c676d1c20024e891b8be5b | refs/heads/master | 2022-09-13T14:57:35.198924 | 2022-09-06T13:38:24 | 2022-09-06T13:38:24 | 129,903,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,830 | py | # ida.sara.main.py
from _spy.vitollino.main import Cena, Elemento, Texto, STYLE
from _spy.vitollino.main import INVENTARIO as inv
STYLE["width"]=900
PANTANO = "https://1.bp.blogspot.com/-jALpqBrfBW4/VvvS6bpUnVI/AAAAAAAAATo/sd2gRUbk3tc-rdp8iPeEXCgz6LSQGjGzQ/s1600/Swamp%2BHouse.jpg"
ALICE = "https://3.bp.blogspot.com/-o7... | [
"38007182+kwarwp@users.noreply.github.com"
] | 38007182+kwarwp@users.noreply.github.com |
3b01f164671274ebbba3a96bf4a791187d891367 | 640a9e83152b32f2e84f73cf8271215e5fa15c57 | /oscar/bin/tox-quickstart | b8d067fa48faf81e894467d393f42dfcb33545b1 | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | WillisXChen/django-oscar | b230fbf618cd5c5e49d51b8e699202c605ac0dd2 | 78c8516b4dd49a25d6d493287919d033dd674298 | refs/heads/master | 2021-01-20T21:37:29.070560 | 2016-02-09T21:44:26 | 2016-02-09T21:44:26 | 42,301,086 | 0 | 0 | null | 2015-09-11T09:55:07 | 2015-09-11T09:55:07 | null | UTF-8 | Python | false | false | 240 | #!/root/git/django-oscar/oscar/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from tox._quickstart import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"misweyu2007@gmail.com"
] | misweyu2007@gmail.com | |
a2d5bc16a0ada0db1486395bebcfc11c5ed9229b | ca4846107d9fc74a963f544881f4b2bf0c9af825 | /faceRank.py | 32f99e0e3579aa06342ac4dc5cef51aaa71d596f | [] | no_license | marqui5/py | 54dd6a0b566e4461f591d407baea8c15661e2dd9 | 6613b1a0df5d153d11cea871f81d8d4a9a03e708 | refs/heads/master | 2023-03-08T19:52:31.929533 | 2021-02-23T10:05:46 | 2021-02-23T10:05:46 | 294,984,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,160 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
pip install pillow
pip install baidu-aip
pip install tkinter
"""
import PIL
import time
import base64
import tkinter as tk
from PIL import Image
from PIL import ImageTk
from aip import AipFace
from tkinter.filedialog import askopenfilename
# 配置百度aip参数
APP_ID = '15768642'... | [
"marquisv587@gmail.com"
] | marquisv587@gmail.com |
a6ab0392aad5709344249a58c8fb7114bd548332 | 9497f6239025668668206d98c9872b96e84bf182 | /utils/config.py | fa2bc8556e1e6782b0a3e23ebb0f4f15190a9c45 | [] | no_license | richardruancw/StarcraftElite | 7ff33d4adfc6668c550cb4b8ba76c1e870b1fcd2 | b77b3c2721fd9edce79b19b214e7d01820c269e7 | refs/heads/master | 2021-04-28T05:53:36.723189 | 2018-03-15T18:40:09 | 2018-03-15T18:40:09 | 122,189,323 | 2 | 1 | null | 2018-03-10T05:04:43 | 2018-02-20T11:25:03 | Python | UTF-8 | Python | false | false | 992 | py | import tensorflow as tf
class config():
# env specific
evaluate = False
# output config
output_path = "../results/policy_gradient/"
model_output = output_path + "model.weights/"
log_path = output_path + "log.txt"
plot_output = output_path + "Policy_gradient.png"
summary_freq = 1
... | [
"vinyao1994@gmail.com"
] | vinyao1994@gmail.com |
ca8e18abaf220c482618359d83c2e717ef3daf09 | d842a95213e48e30139b9a8227fb7e757f834784 | /gcloud/google-cloud-sdk/lib/googlecloudsdk/third_party/apis/cloudscheduler/v1beta1/cloudscheduler_v1beta1_messages.py | acf9d468339b98a481b54644189c37358b460936 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"MIT"
] | permissive | bopopescu/JobSniperRails | f37a15edb89f54916cc272884b36dcd83cdc868a | 39e7f871887176770de0f4fc6789e9ddc7f32b1f | refs/heads/master | 2022-11-22T18:12:37.972441 | 2019-09-20T22:43:14 | 2019-09-20T22:43:14 | 282,293,504 | 0 | 0 | MIT | 2020-07-24T18:47:35 | 2020-07-24T18:47:34 | null | UTF-8 | Python | false | false | 45,215 | py | """Generated message classes for cloudscheduler version v1beta1.
Creates and manages jobs run on a regular recurring schedule.
"""
# NOTE: This file is autogenerated and should not be edited by hand.
from apitools.base.protorpclite import messages as _messages
from apitools.base.py import encoding
from apitools.base.... | [
"luizfper@gmail.com"
] | luizfper@gmail.com |
4ec4a5bfddb39a5eb3fa4043c7cb581d9dabed25 | 62fb0a3f284c8247a0575d3bdc7d209632577fcd | /handywsgi/context/request.py | fbb1b735a49913e016c35f5f100391b5d613c623 | [] | no_license | haxwithaxe/handywsgi | f8b001e137a71faa4b5037b1fbc2f83c888542b4 | 0cd451033de35868ca846f2d9269230fbbf172cd | refs/heads/master | 2021-01-10T11:36:30.470930 | 2016-01-19T00:44:22 | 2016-01-19T00:45:09 | 45,813,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,972 | py |
import cgi
import urllib
class Request:
""" Encapsulation of the data in the request to the server.
Attributes:
environment (dict): os.envron
wsgi (WSGIData): PEP-3333 wsgi environ
netloc (str): Server name (and port for nonstandard ports).
url (str): The full request URL (c... | [
"me@haxwithaxe.net"
] | me@haxwithaxe.net |
9663dd080e2c85d7828e4b5a15985d44f99590d1 | 16cbb9cd6105b97587c2421a9d6e84e7f3ce3a05 | /UBTAutotest_Linebus_Platform_0708/BusProject/Linebus_Platform_API/common/read_datas.py | cbffee2328c880f180f203e74579637ff94bf245 | [] | no_license | Smallblackincontrast/linebus_auto | 88a433a91b6fd8e93c5c61d5ce7738af18f8afa5 | ae9b33e00122a9510116fbcd4d3408c22d4e0673 | refs/heads/main | 2023-07-21T08:55:05.230244 | 2021-08-24T09:57:08 | 2021-08-24T09:57:08 | 399,413,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,827 | py | # -*- coding:utf-8 -*-
# @Time :2019/4/8 10:07
# @Author :Tester_Liang
# @Email :649626809@qq.com
# @File :read_datas.py
# @software :PyCharm
from openpyxl import load_workbook
from BusProject.Linebus_Platform_API.common.MyLog import MyLogs
import os
class ReadDatas:
def __init__(self, filename):
... | [
"ruanzhe666@163.com"
] | ruanzhe666@163.com |
8b791177c20c6544035723587cac13679ca5be30 | 4331b28f22a2efb12d462ae2a8270a9f666b0df1 | /.history/dvdstore/webapp/views_20190913160121.py | 76f1fffb46dcfc898dc3c617d665465394a1c248 | [] | no_license | ZiyaadLakay/csc312.group.project | ba772a905e0841b17478eae7e14e43d8b078a95d | 9cdd9068b5e24980c59a53595a5d513c2e738a5e | refs/heads/master | 2020-07-26T23:30:22.542450 | 2019-09-16T11:46:41 | 2019-09-16T11:46:41 | 200,703,160 | 0 | 0 | null | 2019-08-05T17:52:37 | 2019-08-05T17:52:37 | null | UTF-8 | Python | false | false | 5,640 | py | from django.shortcuts import render
from .models import DVD, Transaction, Customer
from django.core.paginator import EmptyPage,PageNotAnInteger, Paginator
from django.db.models import Q
from django.contrib.auth.models import User, auth
from django.shortcuts import render, redirect
from django.contrib import messages
fr... | [
"uzairjoneswolf@gmail.com"
] | uzairjoneswolf@gmail.com |
b32100a480b61370780b3e6aa401b2b07809dc8b | 0ac4c32a29cfee6ffe18a85304bb8d61a774d9d0 | /ShowTweetData.py | 8159c415c0fac1661ebe8752c656795683b03e82 | [] | no_license | neondude/TweetInfoExtractor | 32d1c4d95874ef97dd9d4850076c72ab66ee4334 | c15cf0f8ac904a71dd94b32144b66a52e3bf7837 | refs/heads/master | 2021-01-10T07:05:09.009297 | 2016-03-08T01:57:57 | 2016-03-08T01:57:57 | 53,334,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,357 | py | #!/usr/bin/env python
import sys
import rfc822
import time
import json
from sqlite3 import connect
from urllib import urlopen, urlencode
from tweetconnect import *
from auth_and_Secret import TweetOuth
c = None
tweet_id = None
def load_tweets(**kwargs):
args = dict(trim_user=1)
args.update(**kwargs)
url =... | [
"siddharth.nagrajann@gmail.com"
] | siddharth.nagrajann@gmail.com |
9859269d8fba660b528d9985ec913e031aa96775 | ab3d5ea4bf0e48914ed14fcf16e5b1d752f199ba | /pcg_libraries/src/pcg_gazebo/parsers/sdf/stiffness.py | e542a13796da4c2fcd0890a4bfb85285f9bbdecf | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"CC0-1.0",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-public-domain"
] | permissive | boschresearch/pcg_gazebo_pkgs | 5f1004d0de874d4d1abc4eb695777013027158b2 | 1c112d01847ca4f8da61ce9b273e13d13bc7eb73 | refs/heads/master | 2020-06-11T06:28:36.228431 | 2020-02-07T13:05:28 | 2020-02-07T13:05:28 | 193,876,180 | 44 | 3 | NOASSERTION | 2020-02-07T12:00:55 | 2019-06-26T09:45:05 | Python | UTF-8 | Python | false | false | 970 | py | # Copyright (c) 2019 - The Procedural Generation for Gazebo authors
# For information on the respective copyright owner see the NOTICE file
#
# 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
#
#... | [
"Musa.Marcusso@de.bosch.com"
] | Musa.Marcusso@de.bosch.com |
9d06d08ee4d60841884a62b2cda2fcf89dfc02d6 | a4a8bbec98320a09ecaf33e26278bbc228aa5efc | /timer_start.py | d8b8d5e5b74bad30f8ddf4f526128b809d515618 | [] | no_license | ird87/biosynthesis-timer | f78990fb3729d0c8622fee2dc35339d12978dedf | 7d98b7532547c56f4fff8f3ab1f6f36eb9fa31a5 | refs/heads/master | 2020-12-20T13:09:12.429825 | 2020-01-24T21:17:01 | 2020-01-24T21:17:01 | 236,086,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,860 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
import PyQt5
from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import QWidget, QDesktopWidget, QApplication
from timer import Ui_wBiosynthesisTimer
import sys
from conf import Configure
from process import TimerMode, ValveStatus, Process
class TimerWindow(PyQt5.QtWidget... | [
"ird87.post.ru@gmail.com"
] | ird87.post.ru@gmail.com |
437eaf6e18296f938461bc6c976833dfc6d431ab | 6c72880df5cd3b105d0e2a9024d67ad7f0000bf9 | /day5.py | 2c9de2c9012ed19ca96a4232cfd5a1446f23a86b | [] | no_license | cheesepuff90/code-kata | 6d2f5b6de2989ee74054afab42d4a99dca6a90ce | df49df041ba0741ebafbb4b59f6797afec1c7c69 | refs/heads/main | 2023-08-14T19:29:36.788791 | 2021-10-06T01:57:53 | 2021-10-06T01:57:53 | 406,581,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | def get_prefix(strs):
ans = ''
if len(strs) == 0:
return ''
strs = sorted(strs)
for idx,i in enumerate(strs[0]):
if i == strs[-1][idx]:
ans += i
else:
break
return ans
# strs은 단어가 담긴 배열입니다.
# 공통된 시작 단어(prefix)를 반환해주세요.
# 예를 들어
# strs = ['start', 'stair', 'step']
# return은 '... | [
"kimdh1004yo@gmail.com"
] | kimdh1004yo@gmail.com |
21cbfa5ebdcf652d23f9830273248d00894b0745 | d01d546af45ad870ebe38a8c21ac05785bed1d85 | /devel/lib/python2.7/dist-packages/service_demo/srv/__init__.py | b1c2959b36aa7e19764a43a7b899d9273be6a66e | [] | no_license | A201124253/c_s_u | 56adfab067edb179201faa858377c11baa19a59b | fc104e267eeee90e23c98ce3bac25143a9c3d5e7 | refs/heads/master | 2020-03-24T17:14:08.360088 | 2018-07-30T13:45:24 | 2018-07-30T13:45:24 | 142,853,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | /home/fapsros/c_s_u/devel/.private/service_demo/lib/python2.7/dist-packages/service_demo/srv/__init__.py | [
"jimmy-lee_93.06@hotmail.com"
] | jimmy-lee_93.06@hotmail.com |
20fa02a294482db1f1dcaa6f11277daf40316d68 | ecd31d9ab634d6150a8f96b09e4b716e0273d8e6 | /server/models/city_model.py | 282985af0646c183b5f84aaaab2270479566263e | [] | no_license | mtyiska/move-rate-recommeder | 409debd0aeb995b275934772f831fe83945d2b32 | 4cc8e715f5c25372fb4a935d92c4f0532103b6c0 | refs/heads/master | 2020-03-09T00:50:31.041340 | 2018-04-07T05:19:33 | 2018-04-07T05:19:33 | 128,498,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | from db import db
class CityModel(db.Model):
__tablename__ = 'cities'
id =db.Column(db.Integer, primary_key=True)
cityname = db.Column(db.String(80))
rating = db.Column(db.Integer)
user_id = db.Column(db.Integer, db.ForeignKey('users.id'))
image = db.Column(db.String(80))
# user_id = db.Column(db.Integer)
use... | [
"mtyiska@gmail.com"
] | mtyiska@gmail.com |
152f5094d355552012d8c6c65694e2647845bc90 | 1556527f9077813490366d1fef284bc0ae1e02ba | /sdk/lusid/models/corporate_action_source.py | 802af594affa766e4ab9e78cd627b1fcc7d80526 | [
"MIT"
] | permissive | timbarrass/lusid-sdk-python-preview | a04ce8887c7001bd7ddf099027ab94c97d8fa400 | 9a54e98bf748d87469aa7c797607550fe65ba6ba | refs/heads/master | 2020-08-03T20:02:37.282370 | 2019-09-30T10:51:19 | 2019-09-30T10:51:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,424 | py | # coding: utf-8
"""
LUSID API
# Introduction This page documents the [LUSID APIs](https://api.lusid.com/swagger), which allows authorised clients to query and update their data within the LUSID platform. SDKs to interact with the LUSID APIs are available in the following languages : * [C#](https://github.c... | [
"concourse@finbourne.com"
] | concourse@finbourne.com |
5da273e3dcf3aa4e91ee91896e18b031439f6c03 | 87dfd4ac2a43802fc6e01955e527e2c7e637d0ca | /examples/nested/mog4.py | 216a3bb4e5683fece5f2db8c983c5eb34da16c97 | [
"MIT"
] | permissive | mattpitkin/nnest | c5d8e75a655a33129ee14f9d5149afc1e7e62828 | 1f81caba63514349baf6fa06d8db7d6511d08cd8 | refs/heads/master | 2022-07-02T18:32:32.655652 | 2019-12-11T17:19:59 | 2019-12-11T17:19:59 | 260,881,536 | 0 | 0 | null | 2020-05-03T10:25:46 | 2020-05-03T10:25:46 | null | UTF-8 | Python | false | false | 4,211 | py | import os
import sys
import argparse
import copy
import numpy as np
import scipy.special
import torch
sys.path.append(os.getcwd())
def log_gaussian_pdf(theta, sigma=1, mu=0, ndim=None):
if ndim is None:
try:
ndim = len(theta)
except TypeError:
assert isinstance(theta, (fl... | [
"adam.moss@nottingham.ac.uk"
] | adam.moss@nottingham.ac.uk |
a0b3c7b72cb58599fa7cca1862baa3edbb6e27b5 | 0d4b4fa2aa5113bcadac6d5c8f95a95dba07944f | /Variables.py | d4e45d296dc583cc535ca9be4891d353079817f0 | [
"MIT"
] | permissive | imran-ice/iMessage-Visualizer | 559ef103fc48e02ca88b89438dd0b1f1cd865c74 | 933664cc4072eac0e43bd874dede792370ae3673 | refs/heads/master | 2021-10-11T10:49:08.165407 | 2019-01-24T21:52:14 | 2019-01-24T21:52:14 | 271,576,502 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | #############################################################################
#Replace with the persons name that you were texting
leftName = "Bob"
#Replace with your name
rightName = "John"
#############################################################################
| [
"noreply@github.com"
] | imran-ice.noreply@github.com |
e7962ac37ed33844de4f64f61dc9db4739ae414a | ae0408fbe442438cf3a569662eb64c9ca3e41fe4 | /portafolios.py | f4a0c2c330f0e87b08060ee5128c8fbef3f36bbf | [] | no_license | danilhramon/simulacion-Poryecto2 | c9fa15bf38feae5d15cd282ed202dd4cbe3a2489 | 03479847ecec07dd6af9165ead0cd6bcd654f0f8 | refs/heads/master | 2020-12-24T19:04:28.887472 | 2016-04-11T21:53:31 | 2016-04-11T21:53:31 | 55,984,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,821 | py | from pandas.io.data import DataReader
from datetime import datetime
import matplotlib.pyplot as plt
import numpy as np
#"act1 = DataReader("GENTERA.MX", "yahoo", datetime(2015,1,1), datetime(2016,1,1))
#"act1=np.log(act1["Adj Close"])
#"act2 = DataReader("GFNORTEO.MX", "yahoo", datetime(2015,1,1), datetime(20... | [
"danielhramon@hotmail.com"
] | danielhramon@hotmail.com |
53f9953fe16687b2ea912c67e71e5bb8b7141b59 | 97ee29c877e09388e34669d8a93a516d70ff8192 | /tests/robocrys/test_query_operators.py | 4f98da21900140c853389a9513dfd73464be3da8 | [
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-hdf5",
"BSD-2-Clause"
] | permissive | hhaoyan/api | fb4057c502c35e9495894e17d0b692efd4a2ac2b | e2dc71934baecd1a85621f7f7f6ff85f96cbd684 | refs/heads/main | 2023-06-26T05:18:38.225857 | 2021-07-23T16:22:35 | 2021-07-23T16:22:35 | 361,736,552 | 0 | 0 | NOASSERTION | 2021-04-26T12:10:02 | 2021-04-26T12:10:01 | null | UTF-8 | Python | false | false | 1,895 | py | from mp_api.routes.robocrys.query_operators import RoboTextSearchQuery
from monty.tempfile import ScratchDir
from monty.serialization import loadfn, dumpfn
def test_robocrys_search_query():
op = RoboTextSearchQuery()
pipeline = [
{
"$search": {
"index": "description",
... | [
"noreply@github.com"
] | hhaoyan.noreply@github.com |
3b048cb8842f249f36c5b37d58c96a3e9178f74e | 659e3af28a29b68e997d5cabdfb6b3b6ade85b6d | /api/facebook.py | 953e1436d57d34bf9421b25df87c08c20ab75cb6 | [] | no_license | siengsotheara/findmepitch | 4696d90895428632cedb6be34a9a9c3e273ab23a | 01c7a9d4b6c32fe773e417c60482cea737fc65a0 | refs/heads/master | 2022-12-11T22:29:06.241150 | 2017-09-10T15:40:02 | 2017-09-10T15:40:02 | 102,928,791 | 0 | 0 | null | 2022-12-08T00:37:47 | 2017-09-09T05:12:54 | Python | UTF-8 | Python | false | false | 1,718 | py | from flask import Flask, redirect, url_for, session, request
from flask_oauth import OAuth
import requests
import os
import sys
SECRET_KEY = 'development key'
DEBUG = False
FACEBOOK_APP_ID = '159985207843693'
FACEBOOK_APP_SECRET = '7b111fdeb43cf6889725a849013d387c'
app = Flask(__name__)
app.debug = DEBUG
app.secret_k... | [
"sieng.sotheara.7@gmail.com"
] | sieng.sotheara.7@gmail.com |
78fe285f28b682aad7bc6b10277f25fcb6cddbb4 | 175f14c6f94614d8c8532ac3bf6a4dbc027cf48c | /app.py | 9d0329e5d9d6db8d7bc95fa27f6e3d188b4b636a | [] | no_license | iamavailable/uber_rides | 7bc7016a02e411e5a4a8c0b84c1b8a18ec8fd3de | 6d0b5771b510941b7ebb5ddcfef79c1998dcbd21 | refs/heads/master | 2021-07-12T20:02:07.875540 | 2020-02-16T02:27:26 | 2020-02-16T02:27:26 | 240,818,671 | 0 | 0 | null | 2021-03-20T02:56:00 | 2020-02-16T02:23:08 | CSS | UTF-8 | Python | false | false | 667 | py | import numpy as np
from flask import Flask, request, jsonify, render_template
import pickle
import math
app = Flask(__name__)
model = pickle.load(open('taxi.pkl','rb'))
@app.route('/')
def home():
return render_template('index.html')
@app.route('/predict', methods=['POST'])
def predict():
int_featu... | [
"noreply@github.com"
] | iamavailable.noreply@github.com |
08bb02864efb4d8ef55a1ca6d6d165fbff28ec0a | 8a5cb95a574f22a26f726d6bf4c3c4bc45993a03 | /Server/db_firestore_admin.py | b4b9b98f964cd6ff95c28bbb24451add905a8739 | [] | no_license | dharamk/daas | 43fa2996272332bbb523e9b95bbc3c4ff8da4a2d | 30ca6dd3d606b0238e2b243fa60c3737343ccce2 | refs/heads/master | 2022-03-06T01:41:55.875501 | 2019-10-15T02:06:19 | 2019-10-15T02:06:19 | 206,477,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,097 | py | #!/bin/python3
#!/bin/python3
import firebase_admin
from firebase_admin import auth
from firebase_admin import credentials
from firebase_admin import firestore
import db_interface
FIRESTORE_DB_TEST_AGENTS_COLLECTION = "testing_agents"
FIRESTORE_DB_PRODUCTION_AGENTS_COLLECTION = "production_agents"
FIRESTORE_DB_ALL_... | [
"dharam.kumar.gupta@gmail.com"
] | dharam.kumar.gupta@gmail.com |
010bbeb1cf60a81058716701fda29d14b538f0c1 | 0d70e49189a95454ef22f1a21cbac02899e8accd | /controller/users.py | d00ac6fec9ba6b31f83d7faa0a48ad22fb07f7e1 | [] | no_license | EmilieM71/Projet-5-startup-Pur-Beurre | dd6ab2267333521a439b1cc8fdd0e9fa64487449 | 105e7080adfb14fb69b9b404cfda6621d5b7e8ec | refs/heads/master | 2021-07-19T09:18:35.434100 | 2019-10-22T10:05:05 | 2019-10-22T10:05:05 | 197,351,182 | 0 | 1 | null | 2020-07-21T17:32:01 | 2019-07-17T08:46:27 | Python | UTF-8 | Python | false | false | 738 | py | from view.view_home_connect import ViewHomeConnect
class User:
""" This class is responsible for :
- display a hom window with welcome message and ask the user to
log in """
def __init__(self):
pass
@staticmethod
def open_home_connect_window():
"""This feature allows ... | [
"martelemilie@hotmail.fr"
] | martelemilie@hotmail.fr |
6e0e8afd8e60cd83815c5e451171d6fc4ca0eaf1 | 9edb6c478c1c9769c989276834a9fb6aa32dbea9 | /exercise/lesson7-4-prime.py | 6ce90ad3701d65fce634105628140e948cfd3098 | [] | no_license | dsuz/techacademy-python3 | 67cbfeb3ee0803ee3de5e3470e1f647728686ca8 | 8d6f026002e0732a0819e5dadd1abe5efec042c1 | refs/heads/master | 2020-03-23T23:58:16.397310 | 2019-03-19T01:57:49 | 2019-03-19T01:57:49 | 142,266,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,225 | py | # pattern 1: 課題の仕様の条件をそのまま実装するやり方
# ただし、100 までなら問題ないが、このやり方では素数を判定する範囲が大きくなると正しい結果を得られない
print('pattern 1')
for i in range(2, 101):
if i != 2 and i % 2 == 0:
continue
if i != 3 and i % 3 == 0:
continue
if i != 5 and i % 5 == 0:
continue
if i != 7 and i % 7 == 0:
continue
... | [
"bboydaisuke@gmail.com"
] | bboydaisuke@gmail.com |
be5d3eb119948666460f7f37aaa237d499484b27 | 5451676b68c2c85bcfef46c23f596300cef137c4 | /_source/conf.py | 69b13df9efd7f0ed2a1343aa91094c8080c31104 | [] | no_license | telnetning/sphinx-notebook | 16d19ed1ca7080eb773c7916433bbd7cb3b06a5c | 32de101a4371b5f9dd0ed15a689243cbd70dc26a | refs/heads/master | 2020-03-19T11:37:17.951625 | 2018-06-28T15:15:43 | 2018-06-28T15:15:43 | 136,445,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,504 | py | # -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config
# -- Path setup ----------------------------------------------------... | [
"telnetning@gmail.com"
] | telnetning@gmail.com |
0489440d43a55fc3a209170cab154c65853eb696 | c2a46158a91d3dd41e962230d182c80bfc88886e | /test/test_contacts_api.py | d2b476ce812d2c52031cb34f82bc33c081bc6e71 | [] | no_license | martinsauve/doli-swagger-client-python | e5f4308b6a38c34c4c0bcc796f6863e983b6d7da | b2606e6f9f3064fe55f81ab90ec524921086a159 | refs/heads/master | 2023-08-14T00:04:02.228383 | 2021-10-06T15:34:02 | 2021-10-06T15:34:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,362 | py | # coding: utf-8
"""
Restler API Explorer
Live API Documentation # noqa: E501
OpenAPI spec version: 1
Contact: arul@luracast.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_client
from swagger_client... | [
"martin@billesandco.paris"
] | martin@billesandco.paris |
65bfbb32587539be33f925373460965abd890331 | 814420c64f39265378f414e32dffcd7fdec32a6e | /lab/util.py | 308f6e2387468b8d40576a97e1516b0fb78edade | [
"MIT"
] | permissive | Lagikna/QuLab | 02210b35b830b25735a00197827b5d0daa351685 | 57d3e52feced73dcf2466e8582a5c2f32e0266bc | refs/heads/master | 2020-03-18T19:44:22.785660 | 2018-12-13T07:26:11 | 2018-12-13T07:26:11 | 135,174,561 | 1 | 3 | MIT | 2019-12-16T06:10:19 | 2018-05-28T14:49:59 | Python | UTF-8 | Python | false | false | 390 | py | # -*- coding: utf-8 -*-
from qulab.util import (FWHM_of_normal_distribution, Std_of_norm_from_FWHM,
WTodBm, dBmToW, get_probility, get_projection_axes,
get_threshold_visibility, get_unit_prefix, kurtosis,
project_data_into_axes, skew, step_t, step_... | [
"xfh1987@gmail.com"
] | xfh1987@gmail.com |
0bccfa94dce8e7de2c0cba1832bf7c7f84cb96d7 | 6228aec0cb85f6ca24ebb746adc5fddedfd11037 | /pinhole/common/tests/test_utils.py | b5d2ceb62148b526a99f0f7f00ac4e533c9cb111 | [] | no_license | freyes/pinhole | dbadada04f569623de06dd426eb7e27cb15667c5 | bb42647e7c20aed37e5288636285beaca9cce0bf | refs/heads/master | 2016-09-05T10:42:05.485693 | 2014-01-20T22:16:13 | 2014-01-20T22:16:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | from __future__ import absolute_import
from nose.tools import assert_equal
from ..utils import convert
class TestConvert(object):
def test(self):
l = [('CamelCase', 'camel_case'),
('CamelCamelCase', 'camel_camel_case'),
('Camel2Camel2Case', 'camel2_camel2_case'),
('g... | [
"freyes@tty.cl"
] | freyes@tty.cl |
a6541180d6c98c1e419752242e46052594b5af0a | 7ce62f37c121499e630d4c74dd4e150701793c65 | /project2/nothotdog/nothotdog/asgi.py | 70f68e0fe4bed76b1e771d5009406b7a770661a7 | [] | no_license | jesper-trell/trell-hell | 8c0ebf889ebccb4cb0d87d461dc33217d4e521e5 | dc3fabeb7e9367ec2f6a4b4d7069f8b29bebac28 | refs/heads/master | 2023-03-16T13:15:09.595108 | 2021-03-09T21:20:27 | 2021-03-09T21:20:27 | 330,919,056 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
ASGI config for nothotdog project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SET... | [
"jesper@trell.se"
] | jesper@trell.se |
ad69431da5f2601f25b6cd966f3faee816fe0fad | 8496c77dc1bb820d9b28d703697257cc508320bc | /experiments/predict.py | 10de34998b7c799065018f59e3b93ee992ed8e48 | [
"MIT"
] | permissive | TomWattsChem/MTExplainer | bec980894328c094bcc6ee961a247939c14952a4 | 3018ca14dd0aa538e868505939826a89c9c57aa2 | refs/heads/master | 2023-06-17T01:29:02.629119 | 2021-07-16T11:40:20 | 2021-07-16T11:40:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | from __future__ import print_function
from rdkit import Chem
smiles='B.C1CCOC1.CC(C)(C)C1=CCCc2occc21'
def smi_tokenizer(smi):
"""
Tokenize a SMILES molecule or reaction
"""
import re
pattern = "(\[[^\]]+]|Br?|Cl?|N|O|S|P|F|I|b|c|n|o|s|p|\(|\)|\.|=|#|-|\+|\\\\|\/|:|~|@|\?|>|\*|\$|\%[0-9]{2}|[0-9])... | [
"davkovacs97@gmail.com"
] | davkovacs97@gmail.com |
9e3be7ab50d312c9e78cd72d21c20c101af1d795 | 99bf56586dbc1c9227b3edbbac49c1ef60ce1a4d | /const.py | 4f6e16d3201ac501b96fad2f069dabea792d3737 | [] | no_license | StarryYJ/optimizer | 9d8500adf751ed8b7ab4eb9604ebe6d85a0e326f | f006d6a6f62c405752f3b6cf156839bcf0b40a8a | refs/heads/master | 2023-04-13T16:11:15.237702 | 2021-04-22T03:22:22 | 2021-04-22T03:22:22 | 357,015,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,107 | py | """
CovModel 协方差模型:
FACTOR_MODEL_DAILY 日度协方差模型
FACTOR_MODEL_MONTHLY 月度协方差模型
FACTOR_MODEL_QUARTERLY 季度协方差模型
IndustryClassification 行业分类标准:
SWS 申万一级
ZX 中信一级
SWS_1 申万一级,对非银金融进一步细分
风格因子:
beta 贝塔
book_to_price 账面市值比
earnings_yield 盈利率
growth 成长性
leverage 杠杆率
liquidity 流动性
momentum 动量
non_linear_size 非线性市值
residual_volatil... | [
"yjin23@stevens.edu"
] | yjin23@stevens.edu |
34291b2488193e1a2f4ab57818aa28ba397c7b4c | 96a23bee9d6948c652fd8697f9b37c83a5dd676f | /core/migrations/0006_auto_20170506_1307.py | 9136534c6e38ea6925ad98e91a908a3151adb07b | [] | no_license | Lok-tar-ogar/golden | 3a115e5722badefc32e56e7507e051b1d2c5c760 | b7aafd797897fd96bcfa46001a0054403fbfd0c2 | refs/heads/master | 2021-01-19T12:09:21.227211 | 2020-12-29T03:23:30 | 2020-12-29T03:23:30 | 88,020,785 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,325 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-05-06 05:07
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0005_contact'),
]
operations = [
migrations.RemoveField(
... | [
"418586403@qq.com"
] | 418586403@qq.com |
9b7d589c2fd574f22bdb413a8c7ffd98650369b2 | d2a89523297d8973c4e68f59b5c7fb32e224c4b1 | /cloud_sender.py | 6f2779ea765285b0323fc72c9cb593823b22fdd4 | [] | no_license | IoBeer/brewbot-pi | 8acdb8f2e782cd838529786860c2cb5f02145951 | cf17393f724e649ad057eb9e6c17700d54dcd093 | refs/heads/master | 2021-01-20T07:18:07.166916 | 2017-05-02T04:09:35 | 2017-05-02T04:09:35 | 89,988,276 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,814 | py | import dbus.mainloop.glib;dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
from gi.repository import GObject
import paho.mqtt.client as mqtt
from google.cloud import pubsub
from commons import Commons
import sqlite3 as lite
from network_status import NetworkStatus
import NetworkManager
import json
import requests
... | [
"netomarin@google.com"
] | netomarin@google.com |
2720a33f422a856681d8a8db81aaea996e93161a | 52911a335c2c0d156987f18ded9d1e6d71b59eb5 | /src/testspislave/test_rpigpioaccess.py | 8f1f6b317159bdabbef985f2fc03a7772b9091ec | [
"MIT"
] | permissive | anetczuk/SpiSlave | 140343e533357f3a599c442163dfc18971cfb3f5 | 030cadf5cde8e71a9530e1e549854d60c4a8b3b3 | refs/heads/master | 2021-01-24T00:44:23.762501 | 2018-02-24T22:47:15 | 2018-02-24T22:47:15 | 122,780,155 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,919 | py | # MIT License
#
# Copyright (c) 2017 Arkadiusz Netczuk <dev.arnet@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
#... | [
"anetczuk@o2.pl"
] | anetczuk@o2.pl |
43011224b64a05abed58be208483403e34ffb0cb | 51640458ffd9583a2c4839e1a3d94cac17a25692 | /modes/display_mode/menu_top.py | eee544c100a871cc7ad54a50d170963b338c06b9 | [
"MIT"
] | permissive | ZhengPeng7/HCI_lite | eb67efceb0de2a5932eb24ebbecfd67089eb1bf0 | 9fff182d85ff5910dcfa9f6d8d8d7bcde38caa49 | refs/heads/master | 2020-03-16T15:36:23.541154 | 2018-06-27T13:20:42 | 2018-06-27T13:20:42 | 132,751,040 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 821 | py | import cv2
import numpy as np
def attach_menu(frame_bg_with_menu, menu_dict, icon_len_side=80):
"""
Description: Attach menu on the top of frame_bg.
To choose some function, just move your hand over the corresponding icon.
Params:
frame_bg_with_menu: Input from web camera.
... | [
"15732115701@163.com"
] | 15732115701@163.com |
22aeb9101445feebf84676bdca207c9de219fff3 | 3507377718c6f0f04a57ca400c370d2434f057e7 | /qe2e/tests/test_case.py | 86164a3911fef3277d2306c7a29c3921522d3f06 | [
"MIT"
] | permissive | joshmarlow/qe2e | 6092cc4ae2f2a30f60d30f1bd2b4fa2bf48063f0 | 2980dcd296a11c531ef7895c4cb35d9d9dd5c600 | refs/heads/main | 2023-04-17T01:38:11.323265 | 2021-04-24T20:57:50 | 2021-04-24T20:57:50 | 361,186,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,248 | py | import unittest
from unittest import mock
import requests
from qe2e.core import AssertContains, AssertEq, Case, Exec, GetUrl, RunState
class TestCase(unittest.TestCase):
def setUp(self):
self.case = Case(
name="Login screen",
tags=["no-auth"],
steps=[
... | [
"joshmarlow@gmail.com"
] | joshmarlow@gmail.com |
f8c77cb5d3a65a103000fec35f91f539b362a2ca | 050586709c1b728a31e6d273553fab925791e5c8 | /test.py | ad416f1b26d3ee67fd2ce0bfdc66e219718b5efb | [] | no_license | SuphakornHomnan/image_processing_hw1 | 745a982153c5980dfd2285a8d1d9d796d19e1471 | b47a2a00c0de5caee84012ff32823daef212a40c | refs/heads/master | 2021-01-26T13:33:51.913721 | 2020-02-26T17:51:46 | 2020-02-26T17:51:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39 | py | for i in range(255):
print(chr(i))
| [
"kotokikung@gmail.com"
] | kotokikung@gmail.com |
fac03fb7685e4cadaa0707684ffa3ab42dc2eb53 | 00d4b3a28e7638ac7e5767e8ce1fef5c339a194e | /models/AttrNet.py | 5efaf898e03bb0bf1060e0fe5e473022b6317c20 | [] | no_license | peternara/FashionPredictor-roi-pooling | a1b957975deeaf188bba2bb418a0b26247d0aacf | 7a6aa7b3b957b99eba910ff393aa0e1137b4c916 | refs/heads/master | 2021-09-26T10:02:07.354728 | 2018-10-28T23:36:14 | 2018-10-28T23:36:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,531 | py | import torch
import torch.nn as nn
import torch.utils.model_zoo as model_zoo
import math
from config import cfg
from layer_utils.Pool import Pooling
import numpy as np
class AttrNet(nn.Module):
def __init__(self, num_classes=88, init_weights=True):
super(AttrNet, self).__init__()
# self.ro... | [
"zwliu.hust@gmail.com"
] | zwliu.hust@gmail.com |
dafcbc06fa2fa0b0b7683913a3764286f52d34cf | 25a4ea33eefc1840c730c9d99a03f56c8fe841b3 | /nre.py | 02c51165ecc83ae8a8d669cbd53241d114da845d | [] | no_license | mtfrigo/DL-NLU | 81956a641edd9ba52ffc8d67891e0c526f5e768a | 6600c7a7fc53ff17a4390eaf5bc30df1447703ff | refs/heads/master | 2020-12-11T13:14:39.468377 | 2020-01-20T12:48:33 | 2020-01-20T12:48:33 | 233,857,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,955 | py |
import numpy as np
from numpy import zeros
import pandas as pd
from nltk.tokenize import WhitespaceTokenizer
from keras.callbacks import ModelCheckpoint
from keras.preprocessing import text, sequence
from keras.preprocessing.sequence import pad_sequences
from keras.models import Model, Input
from keras.layers import... | [
"matheus.tfrigo@gmail.com"
] | matheus.tfrigo@gmail.com |
fe5319852c04b489d41757d452c90772be5a0a24 | 4d0d162ead661f641b0ed76b47b7bba3a769d34d | /tienda/api/tests.py | 582bd0f63dac69e06d687dffd77f59a5ad39e950 | [
"MIT"
] | permissive | BaniMontoya/Django_api_store | d44f92f4c33e6fe4b6203ebb92ff595ab325fc6d | 9e58bce3efafdd821367522336caee0531a5410c | refs/heads/main | 2023-03-17T05:35:05.544741 | 2021-02-25T04:13:20 | 2021-02-25T04:13:20 | 342,119,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,342 | py | import tempfile
from django.contrib.auth import get_user_model
from PIL import Image
from rest_framework.authtoken.models import Token
from rest_framework.test import APITestCase
from api import models as tienda_models
import logging
logging.disable(logging.CRITICAL)
class TestCaseStock(APITestCase):
def setUp(... | [
"banimontoya@gmail.com"
] | banimontoya@gmail.com |
2431e59efa5919189179d9c5146283b232285086 | ff4b578ae48434cd656fa8f3a88fe332590ad02f | /buffer.py | 03e02c08d3308eec7941c4d9aa6cfad62114fc89 | [
"MIT"
] | permissive | abefetterman/rl-testing | 1944729cc76b47cbbcade0758201d1bfde377585 | 557eadd5895e629632e701a27cdafde96e210215 | refs/heads/master | 2020-03-17T16:55:56.867948 | 2018-10-15T19:02:07 | 2018-10-15T19:02:07 | 133,768,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,559 | py | import numpy as np
import random
class ReplayBuffer(object):
def __init__(self, len):
self.buf = []
self.len = len
def __len__(self):
return len(self.buf)
def add(self, new):
if len(self.buf) >= self.len:
self.buf.pop(0)
self.buf.append(new)
def sampl... | [
"abe@nomiku.com"
] | abe@nomiku.com |
c68931669cfa6c4fe750ddb797f8060f030a8daf | 48d79f14fc307022913217b4dd1ea3abbaa01c65 | /Stepper_Motor_Control/inverse_kinematics_control.py | 21dd46681ff5d0a098fce9c1e96807318c5e77ea | [] | no_license | zmykevin/SPP2_Kevin | 506d2e12f456f470b2383bc27cd106d5c3d250ed | 6aa11db1d267a2a1f0c1b38c6604bc80fb757b83 | refs/heads/master | 2020-04-06T03:40:48.392814 | 2015-12-15T05:19:00 | 2015-12-15T05:19:00 | 38,252,741 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,544 | py | __author__ = 'kevin'
from stepper_motor_setup import *
from camera_setup import *
from time import sleep
import math
def Forward_Kinematics(theta_1,theta_2):
h = 27
z = 1521
r = 32
assert (theta_2 != 0),"theta_2 cannot equal to 0"
X = math.cos(theta_1)*h-math.sin(theta_1)*(z+r*math.cos(-theta_2))/(... | [
"zmykevin@umich.edu"
] | zmykevin@umich.edu |
81bfffd21903b2d8852165aa09091831171679bf | 62a20685d1044f75efb13de25db97bfac7e05236 | /build/icontrol/catkin_generated/pkg.develspace.context.pc.py | ab6a8fe5b2a1f02a87d6bbc10d69c3a559abf643 | [] | no_license | Irakli359/obst_avoidance_Irakli | 184dc2dfd115b964ab12efae0bd6f723e440a12f | 8503c69df885eb34d26733ba21335357db6f7654 | refs/heads/master | 2020-05-27T02:10:06.707618 | 2019-05-24T18:22:11 | 2019-05-24T18:22:11 | 188,448,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "icontrol"
PROJECT_SPACE_DIR = "/home/... | [
"ikelb14@freeuni.edu.ge"
] | ikelb14@freeuni.edu.ge |
b99388307239664522c8b4196709221a72b6ab45 | f14c198ad1b8f6324956e5bcdb4cd910c67eb3e1 | /exercises/migrations/0006_exercise_relevant.py | 723e7b4f8656890e09a7dc417e0bcff931632395 | [
"Unlicense"
] | permissive | rattletat/python-homework-server | 8150e9059d43cc24677a632fbac503856a66e971 | abfac831ed45cc567a6a1610edee934200ffada7 | refs/heads/master | 2022-12-26T02:25:48.455504 | 2020-10-01T11:08:24 | 2020-10-01T11:08:24 | 258,362,901 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | # Generated by Django 3.0.5 on 2020-05-13 18:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('exercises', '0005_auto_20200512_1116'),
]
operations = [
migrations.AddField(
model_name='exercise',
name='relevant'... | [
"michael.brauweiler@posteo.de"
] | michael.brauweiler@posteo.de |
1d9088244fedb844902f6ec924f6f0df2dbc23d0 | 4d5f94dc96edc28d550b187fea51a89a8a5ba5f9 | /products/admin.py | de0b450bec84d197b28524ba1cb88d9b395a1bbe | [] | no_license | curiousTauseef/Django-e-Commerce | f4c36c416150cef63d614739ae309542c33a8bb6 | 6221b83966c6a488fdd7c13a443bc58aee4b8d6f | refs/heads/master | 2022-09-17T23:49:28.406391 | 2019-09-18T20:40:32 | 2019-09-18T20:40:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 564 | py | from django.contrib import admin
from .models import Category, Product
# Register your models here.
@admin.register(Category)
class CategoryAdmin(admin.ModelAdmin):
list_display = ['name', 'slug']
prepopulated_fields = {'slug': ('name',)}
@admin.register(Product)
class ProductAdmin(admin.ModelAdmin):
... | [
"hunter.me33@gmail.com"
] | hunter.me33@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.