blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
49c8129426eeffff345ae304991e2b9e7e5cf774 | 147b94f148dcaf10dbc3dfbcf571c1fa6d47a115 | /code/enclosure_test.py | 26a9cf737d3f2212aab46b39dd207bbf3572cbeb | [] | no_license | indra-n/env-context-detection | 4ad608af9a7b32920d57339d7b9e450862622b46 | 433d377448c3e807ac0ff833a4f1733e12e6931a | refs/heads/master | 2021-01-22T01:38:33.787931 | 2017-09-02T21:27:39 | 2017-09-02T21:27:39 | 102,221,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,074 | py | import numpy as np
import pandas as pd
from sklearn import ensemble
from sklearn.model_selection import ShuffleSplit
from sklearn.metrics import confusion_matrix
import matplotlib.pyplot as plt
import random
import csv
random.seed(42)
# Tests if location is surrounded by walls
#Load the data
fp_indoor_cutsark_in1_sp... | [
"indra.niedre@gmail.com"
] | indra.niedre@gmail.com |
2f827b2603f3b2e2da3faa274a618d5620244e37 | 6b2794ac7ee275654f753659c83e9c6f115b4bbc | /budget/migrations/0008_auto_20190311_1818.py | d6e2d7ac6e8893eb63a9eb2da9d501d480441d49 | [] | no_license | mtmbutler/simplefi | 5ae667b93a69b77070652ecf6d1808badc68cc46 | e1afd06c525a1231a01dd4760d2aa145c9862be9 | refs/heads/main | 2021-06-25T01:27:32.008217 | 2020-12-22T18:48:30 | 2020-12-22T18:48:30 | 183,545,508 | 1 | 1 | null | 2020-12-24T17:21:16 | 2019-04-26T02:51:31 | Python | UTF-8 | Python | false | false | 1,214 | py | # Generated by Django 2.1.7 on 2019-03-12 01:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('budget', '0007_auto_20190311_0740'),
]
operations = [
migrations.AlterModelOptions(
name='statement',
options={'orde... | [
"mtmbutler@icloud.com"
] | mtmbutler@icloud.com |
0ab0e12de59845ee780146749d355e57acb66977 | 1783102b22fae04b4c32552d9b6191cc18ef6eee | /app/map_maker_app.py | 51fbfc331ab15d54e43e89c3068c288cbbe14ab8 | [] | no_license | ryanbeales/photo_library | 61b3f13db19ccd3e4cd45441aceced9793ce2b5f | 41295b26d7fde5a1783fce72e932472ec704bd3b | refs/heads/main | 2023-08-16T22:00:24.539270 | 2021-10-15T14:58:09 | 2021-10-15T14:58:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,441 | py | from config import config
from processed_images.processed_images import LockingProcessedImages
from progress.bar import Bar
from datetime import datetime
import folium
import folium.plugins as folium_plugins
import os
import base64
import io
from PIL import Image
from concurrent.futures import ThreadPoolExecutor, ... | [
"ryanbeales@gmail.com"
] | ryanbeales@gmail.com |
6e6ab7d02971a974af8aa461a3f148f5f4eb1a9a | d0ee0d199ee5595ba38615ecd89ada5be334a0f9 | /button.py | 886e4b542c33024d533ee064950f15c00beb24ca | [] | no_license | davidChibueze/Alien-Force-Invasion | ab045388aee61a0e9c3c6ced726a83cb8e50531a | 68fe0634273a1a019a0a3dfe06c34b9a7e0603de | refs/heads/main | 2023-04-22T06:06:52.932349 | 2021-05-14T12:06:19 | 2021-05-14T12:06:19 | 367,349,070 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,099 | py | import pygame.font
class Button:
def __init__(self, ai_game, msg):
"""Initialize button attributes."""
self.screen = ai_game.screen
self.screen_rect = self.screen.get_rect()
# Set the dimensions and properties of the button.
self.width, self.height = 200, 50
self.button_color = (0, 255, 0)
s... | [
"noreply@github.com"
] | davidChibueze.noreply@github.com |
d42d3fd35bef84a4bc8c882075bcd8e35c62b2e5 | 3d2d7c223314acf338d9e1aedb9463ac780ed8aa | /fujiblog/urls.py | 49f160e2124df99f58dd2dfb8b7729694d1f2342 | [] | no_license | fuji97/fujiblog | 79b4d751c466e8fd6a82d99385f6bf3d7248258d | d00b6652cad3673a9b4ecc6ca37c0e17ecebc58c | refs/heads/master | 2021-01-20T10:05:12.595966 | 2017-06-08T22:54:54 | 2017-06-08T22:54:54 | 90,153,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,055 | py | """fujiblog URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-b... | [
"fuji1097@gmail.com"
] | fuji1097@gmail.com |
e8e564dd8a81a7204c2c1219c8828de5d75a5b39 | b76615ff745c6d66803506251c3d4109faf50802 | /pyobjc-framework-Cocoa/PyObjCTest/test_nsexpression.py | 10aca71722b9813074d199da83ce3d260fed8d3b | [
"MIT"
] | permissive | danchr/pyobjc-git | 6ef17e472f54251e283a0801ce29e9eff9c20ac0 | 62b787fddeb381184043c7ff136f1c480755ab69 | refs/heads/master | 2021-01-04T12:24:31.581750 | 2020-02-02T20:43:02 | 2020-02-02T20:43:02 | 240,537,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,427 | py | from PyObjCTools.TestSupport import *
from Foundation import *
class TestNSExpression(TestCase):
def testConstants(self):
self.assertEqual(NSConstantValueExpressionType, 0)
self.assertEqual(NSEvaluatedObjectExpressionType, 1)
self.assertEqual(NSVariableExpressionType, 2)
self.asse... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
1f3ff6b0e0ffd238536bc4cba66923da5ef896f3 | b8be27aa871f298e9b9a53f417219ebb080378d6 | /deep-dive-convolutional-neural-networks/vgg/vgg.py | b4985404ee4a610b23290e35edbb125bbbe411be | [] | no_license | Bayesian4042/computer-vision | f0d9e010ecf043b72b49a8118cf334310200f031 | afe969a1be2e8f396f2fe6282d0027534f88281d | refs/heads/master | 2023-02-15T20:03:34.237416 | 2021-01-10T16:30:35 | 2021-01-10T16:30:35 | 135,942,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,644 | py |
from collections import OrderedDict
import numpy as np
import tensorflow as tf
from models.model import Model
from preprocessing.imagenet.bgr import resize_crop
from weight_loading.numpyfile import load_weights
from helper.layer import fc, conv
class VGG(Model):
"""
VGG16 model definition for Tensorflow
... | [
"singhabhilasha4042@gmail.com"
] | singhabhilasha4042@gmail.com |
1fceb20404030a5fec787e594da373dd6185278b | 20dc3427454e86c949e4d0e44c89a9f0ec0ff76a | /tests/watcher.py | 9ce156b16248902bfd948f5e076ea084b2367399 | [
"MIT"
] | permissive | simonwittber/fibra | a0d01e1b1a040ea8d8d84c6150c781bfa63b4ebe | 1761ba79cb643b0392bb82d7e80ce9e55bb75275 | refs/heads/master | 2021-01-23T13:16:53.985148 | 2011-05-31T02:21:14 | 2011-05-31T02:21:14 | 1,824,259 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | import fibra
def task():
yield None
print 'raising'
raise Exception('ARGH')
def watcher(e):
print "watcher received:", type(e), e
schedule = fibra.schedule()
t = task()
schedule.install(t)
schedule.watch(t, watcher)
schedule.run()
| [
"simonwittber@gmail.com"
] | simonwittber@gmail.com |
580cbb2d0c363236cfddb8740feec72eacf3119a | e9db45dc23454e256decaabc697016b18cc79cd1 | /game.py | d06e0fa7b641346b8909d0745de62f4ebd0f241d | [] | no_license | siyan38000/WikiGame | 4d7eebe41546ac7d8e038933b9065c96e0950979 | 5bd3949cddca71c5add7923384caa010754a4490 | refs/heads/main | 2023-03-07T08:53:24.773947 | 2021-02-15T11:03:43 | 2021-02-15T11:03:43 | 326,699,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,233 | py | from bs4 import BeautifulSoup
import requests
import urllib.request
import random
import tkinter as tk
window = tk.Tk()
window.title('Wikigame')
var = tk.StringVar()
global start_links
global startURL
#Definition des deux pages aléatoires
def getRandomPage():
return requests.get('https://fr.wikipedia.org/wiki/Sp... | [
"yanis.petit@epsi.fr"
] | yanis.petit@epsi.fr |
15cfbda2f912b5560429a9729b5ac0d60497f097 | 97495220db95d0ba4a4a7e7ad1863f8a49fc97df | /feat_ext/nets/resnet_v1.py | ee92afabd43407f356494d1605f8b9191ecc746a | [
"Apache-2.0"
] | permissive | forwchen/HVTG | cfdbc7a774fb3b911519a0e83b9edf88f772653a | b800ea3e1b9067389db98e4a9f6de3ce702aa081 | refs/heads/master | 2022-12-07T03:48:45.334685 | 2020-08-25T03:01:24 | 2020-08-25T03:01:24 | 278,540,659 | 17 | 2 | null | null | null | null | UTF-8 | Python | false | false | 16,634 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | [
"forwchen@gmail.com"
] | forwchen@gmail.com |
d3a7bdf0bdf102bef366ae9b245a8a5f800eb96d | 8def256b361cb117e291d435f20ee9b4b27fe9f7 | /getpubmed.py | 50d5e9323f6ec327c212519d69d01d401f6dd248 | [] | no_license | dvdmrn/citation_scraper | 44011afc4cda515b512ce6aceb32fc7412e6c292 | ff5a81dca7e31463c1793755863dedc11c7f7215 | refs/heads/master | 2021-05-13T23:51:09.950508 | 2018-01-14T04:18:42 | 2018-01-14T04:18:42 | 116,526,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,667 | py | import metapub
import confidence as c
import helpers
fetch = metapub.PubMedFetcher()
listOfCitations = []
def get_pmid(descriptor):
"""
gets the pmid of an article based off a descriptor
descriptor: name or doi
returns: pub med id, or False
"""
candidates = fetch.pmids_for_query(descriptor)
if len(candidat... | [
"damarino@cs.ubc.ca"
] | damarino@cs.ubc.ca |
e17345f6cf00a1d2eedbf04969bc6da4e66e9878 | cce1b624c5d41d8a5e832217a928225b45f62b15 | /mysite/polls/models.py | 93d1e0a3856579251dbc219036c60bdf13f0f39c | [] | no_license | SauravL3010/Django | 8b192c9d57606ebd3d1f0f310689b3c14ad6e2f6 | 021c80357e98ebafc2bbb6e60b1a5a473a79f20f | refs/heads/main | 2023-02-06T15:34:11.876571 | 2020-12-31T01:56:38 | 2020-12-31T01:56:38 | 324,661,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | import datetime
from django.db import models
from django.utils import timezone
class Question(models.Model):
question_text = models.CharField(max_length=200)
pub_date = models.DateTimeField('date published')
def recently_pub(self):
return self.pub_date >= timezone.now() - datetime.timedelta(days=1... | [
"slgurhal@uwaterloo.ca"
] | slgurhal@uwaterloo.ca |
5574fa697c20b9926bc62f49277b71d1dcd3a57d | 672fa6128c88e43bf14b4168c7c08c60061477bd | /day5/page_object/loginPage.py | 89fcacd15f93afadc07573b5f125d363b627bcad | [] | no_license | zuhui940615/selenium7th | 80128efc75f58bfa1e296506e60c3102d871b8e0 | a752edd16311424360cef4d0b746259b4e424cc4 | refs/heads/master | 2020-03-21T10:42:49.519768 | 2018-06-24T08:46:12 | 2018-06-24T08:46:12 | 138,466,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,991 | py | #这种框架的设计思想,叫做page—object设计模式,是一种高级框架设计思想
#这种思想的主旨是把业务逻辑和代码技术分离开
#测试用例的类,专门负责业务逻辑
#元素定位和操作交给 网页对象
#在pageObiect这个类中,把每个网页看成一个类
#其中,网页中的每个元素看成类中的一个属性
#针对这个元素的操作,看成类中的一个方法
#元素的信息,定位是名词性,所以可以看成属性(成员变量)
#元素的操作是动词性的,所以可以看成是方法
#那么,下面我们封装一下登录这个网页
#这个类主要做的就是把元素定位,改一个易于理解的名字
'''driver.get("http://localhost/index.php?m=user&c=pu... | [
"15032683126@163.com"
] | 15032683126@163.com |
9102058651fbf91cbac1b616a121c35f0eb0973e | 8ab173ee437170afd5e4179f4e44d46b829f3ab0 | /Validation/RecoTrack/python/plotting/html.py | 04c09289f18ce2745bf5d1c2b56af89db89b9cc2 | [
"Apache-2.0"
] | permissive | suchandradutta/cmssw | 6b085313fe15868bd3f7dfddfb850debe111410e | ed3aa96ca24548294076d466db17b0bca44d1359 | refs/heads/Phase2Digitizer_91X_170420 | 2023-06-25T09:47:56.111691 | 2017-04-20T09:59:31 | 2017-04-20T09:59:31 | 12,500,444 | 1 | 1 | null | 2018-11-06T10:34:46 | 2013-08-31T04:15:48 | C++ | UTF-8 | Python | false | false | 25,818 | py | import os
import collections
def _lowerFirst(s):
return s[0].lower()+s[1:]
_sampleName = {
"RelValMinBias": "Min Bias",
"RelValTTbar": "TTbar",
"RelValQCD_Pt_600_800": "QCD Pt 600 to 800",
"RelValQCD_Pt_3000_3500": "QCD Pt 3000 to 3500",
"RelValQCD_FlatPt_15_3000": "QCD Flat Pt 15 to 3000",
... | [
"matti.kortelainen@cern.ch"
] | matti.kortelainen@cern.ch |
186e04c580756ed5fcd2b7e91ca54ec476d908a3 | 017b95b21359aedb77b5a1df390ecb4130c2a9ea | /django_blog/myblog/models.py | 1dfdff15fced66ab2951b1a2b5374413de70c0a9 | [] | no_license | havidri/Django-Blog | 721880a1eddc7d62a9b75f34d8a039e5b404dee9 | db79e155bf326ede2b88ae120356d8def2a30d97 | refs/heads/main | 2023-07-04T12:44:59.372176 | 2021-08-12T06:35:00 | 2021-08-12T06:35:00 | 394,821,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,665 | py | import reserve as reserve
from django.contrib.auth.models import User
from django.db import models
from django.contrib.auth import get_user_model
from tinymce import HTMLField
from django.urls import reverse
User = get_user_model()
class Author(models.Model):
user = models.OneToOneField(User, on_delete=models.CAS... | [
"havidriyono@yahoo.com"
] | havidriyono@yahoo.com |
950cc3ec633927641e6bc1b3f51f4408ecff16e7 | 5f5ea1011786269376ec09f43c3b9bb246e9d98b | /login-robot/src/services/user_service.py | 4a581e0d11c439c7d0e7adfb1f74d0ea2493329a | [] | no_license | tholsti/hy-ohtu-syksy-2021-tehtavat | 30561b84e0da768f15b9f6787e34136f60bf6d00 | 5613e033fbddb5833f7e69b3c148204554c5dd3a | refs/heads/main | 2023-04-04T23:44:26.248025 | 2021-04-18T11:10:48 | 2021-04-18T11:10:48 | 334,141,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,501 | py | from entities.user import User
import re
class UserInputError(Exception):
pass
class AuthenticationError(Exception):
pass
class RegistrationError(Exception):
pass
class UserService:
def __init__(self, user_repository):
self._user_repository = user_repository
def check_credentials(self... | [
"tomi.holstila@gmail.com"
] | tomi.holstila@gmail.com |
c4b60be269cb804c222514ca84f971ba53fe0a2b | 7590d16f6db2c0b16982fc644b5d536ab1f98c7e | /src/webapp/apps/profiles/management/commands/followers_from_csv.py | 7da4fdec687f5479e19b365a51ac2a350a0c6591 | [] | no_license | GeoRemindMe/GeoRemindMe_Platform | 33444bd8e2fcbf1c8fc42a78140fa5848441ae84 | 30436fba4f16cd787903a667302a3b34a2b8a8e2 | refs/heads/master | 2016-09-05T22:02:51.526975 | 2012-07-12T20:08:26 | 2012-07-12T20:08:26 | 2,743,081 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 838 | py | # coding=utf-8
from django.core.management.base import BaseCommand, CommandError
from django.contrib.auth.models import User
from apps.timelines.models import Follower
import csv
import sys
class Command(BaseCommand):
args = '.csv'
def handle(self, *args, **options):
file = csv.reader(open(args[... | [
"javier@georemindme.com"
] | javier@georemindme.com |
a9812104f466c0374fbccf71d0cd2b8edbf21fb8 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/network/v20200601/route_filter.py | 91eecb201ea5a51babd94a74b8238698682e23f2 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,170 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
e257d259dbfc021d53cf6ad1b76045bdfbe6eb01 | 1567a3af5e8bec0735cde692a2ed9e25614b3625 | /TestEnv.py | 788e1611dfe604cdb92aea8610742f919662db88 | [] | no_license | lroin/Py_Cralwer | bbae9022299ffa28d8ef3833af7d67585ffe6bf6 | 84ccab0ecdc260e59e149893ff12871b7ba9951b | refs/heads/master | 2023-03-21T02:43:08.184180 | 2016-12-19T09:03:18 | 2016-12-19T09:03:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,200 | py | from MajorCrawler import *
# ==============================<<func>>==============================
def getBJ(): #北京, dic->DB, 有验证码
url_i='http://www.bjcourt.gov.cn/ktgg/index.htm?c=&court=&start=&end=&type=&p='
header=['省级行政区','网址','内容']
flag=True
for i in range(1,10):
#url=url_i+s... | [
"eyu.yang@gmail.com"
] | eyu.yang@gmail.com |
f4005d99185dc2e01e9b1daf8d65d901d29911ca | b7d155502d3494866becbfbd5237a45425054b5d | /DAY_9/Face detection using HAAR CLASSIFIERS/Face_Eye_Detection_in_OPENCV.py | 955641f2f9d7c0002059b15cac205a066bebffc3 | [] | no_license | IEEESFIT1/31DaysOfCode | 1b1f01fb73efde32ab68d170a4ecb1dc18824cff | 2eac7a720ad15734a7020dcb3aab31a2d6d55cc8 | refs/heads/main | 2023-08-06T09:20:49.980701 | 2021-10-01T14:03:09 | 2021-10-01T14:03:09 | 317,566,761 | 7 | 3 | null | 2021-10-01T14:03:10 | 2020-12-01T14:27:11 | Python | UTF-8 | Python | false | false | 870 | py | import cv2
from numpy.lib.type_check import imag
face_cascade = cv2.CascadeClassifier('haarcascade_frontalface_default.xml')
eye_cascade = cv2.CascadeClassifier('haarcascade_eye_tree_eye_glasses.xml')
frame = cv2.VideoCapture(0)
while frame.isOpened():
_,img = frame.read()
gray = cv2.cvtColor(img... | [
"noreply@github.com"
] | IEEESFIT1.noreply@github.com |
24b6a392193af3ed499ed5481be0d574615aa635 | fa0f12a6d63be22b588133bfb9c130f1eeecab3d | /myvenv/lib/python3.7/site-packages/pip/_internal/cli/autocompletion.py | 1295e23141c110930d3bf02637af4990d0143b8e | [] | no_license | 8th-caulion/high-hat | 6b2c455be14b5e617bf993cfb67c68975df3aa65 | fc1f9793747892b7b58f066c45ab95d3f0269db9 | refs/heads/master | 2023-08-02T12:07:36.540488 | 2020-06-03T17:36:32 | 2020-06-03T17:36:32 | 267,542,957 | 0 | 6 | null | 2021-09-22T19:09:26 | 2020-05-28T09:04:29 | Python | UTF-8 | Python | false | false | 8,237 | py | """Logic that powers autocompletion installed by ``pip completion``.
"""
import optparse
import os
import sys
<<<<<<< HEAD
from itertools import chain
from pip._internal.cli.main_parser import create_main_parser
from pip._internal.commands import commands_dict, create_command
from pip._internal.utils.misc import get_... | [
"rldnjs9347@gmail.com"
] | rldnjs9347@gmail.com |
06c79cf2ab054537d61dc9f297aec93bfa26b767 | 4f43cb4a2cbdafde4d9070aace0edca633cb6ab4 | /stats.py | bfb89069fc6f8e55e8d7ab98671bde3a69d70d0a | [] | no_license | trevorc/blackscholes | 72a05ec97b52e2c4d15b2bfd5db86991724ffda3 | 2b927a5f0c469ea52b7de6709572a3a8f2105ffc | refs/heads/master | 2016-09-05T19:20:58.816374 | 2010-08-09T00:53:14 | 2010-08-09T00:54:53 | 825,545 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | import collections
import math
import scipy.optimize
Errors = collections.namedtuple('Errors', ['rss', 'r_squared', 'rmse'])
def lm(f, y, x, b0, **kwargs):
def compute_residuals(b):
return y - f(x, b)
return scipy.optimize.leastsq(compute_residuals, b0, **kwargs)
def errors(f, y, x, b):
Y = f(x,... | [
"trevor@caira.com"
] | trevor@caira.com |
b9132f16bfc5b5e0cc2704d85af65a089cffd7cb | eee647635af1583d9b1150b7cd3195336291e1d2 | /ABC133/c.py | eb49ffdc05d6db403c85c8227196668dd8d288ac | [] | no_license | lilium513/competition_programing | 42f69222290b09b491477b8a2b9c2d4513ebe301 | 45082bf542224b667e753ad357cf145f683fde54 | refs/heads/master | 2020-06-22T03:16:34.510906 | 2019-07-31T18:22:31 | 2019-07-31T18:22:31 | 197,619,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py |
def do():
L, R = list(map(int, input().split(" ")))
ans = 10 ** 15
if R - L < 5000: #差が小さい場合は全探索
for i in range(L,R + 1):
for j in range(i+1,R + 1):
if (i*j) % 2019 < ans:
ans = (i*j) % 2019
else:#そうでなければ確実に一つ2019の倍数がある
ans = 0
print... | [
"lim.intefx@gmail.com"
] | lim.intefx@gmail.com |
d6f9576e15f4246ceca27311ec1c907b2dde14b7 | e06a996c9f78bd8767bde431951e91859dc6ae8a | /experimentalComponents/gupta_paper_brian2.py | 8f6e78cb4d1b3abc295fc6460508c62b8b415f08 | [
"MIT"
] | permissive | Jbwasse2/snn-rl | 7dbe8bd5c23837cb76f492e7b911081dee7a4e4a | 29b040655f432bd390bc9d835b86cbfdf1a622e4 | refs/heads/master | 2020-08-07T10:28:16.533162 | 2019-10-07T15:21:02 | 2019-10-07T15:21:02 | 213,411,865 | 0 | 0 | NOASSERTION | 2019-10-07T14:53:54 | 2019-10-07T14:53:54 | null | UTF-8 | Python | false | false | 852 | py | #While reading fninf-08-00006.pdf I copied some useful snippets of code here
#Leaky integrate and fire with refractoriness
G = NeuronGroup ( number_of_neurons,
'dv/dt = -(v - v_0)/tau_m : volt # membrane potential',
threshold='v > v_th',
reset='v = v_0',
refractory='(t-lastspike) <= 2*ms');
#Random in... | [
"tartavull@gmail.com"
] | tartavull@gmail.com |
8b3bfe75a888d9cb49b2f4c56c83b47f04bfaa01 | 7de174ec684fe60717b2757fe5e194cc597fee38 | /plugins/plugin_clone.py | 312d2f5ae7f840bba90736e8b0d4e3c654b8abc7 | [] | no_license | oma256/repo_scan | 41ad4972908859f947d7226dd80f09a6f582301c | 03971eea701a0079d9a824261f6ee0e21c1d2f79 | refs/heads/master | 2022-03-26T06:40:20.388127 | 2019-12-05T15:09:11 | 2019-12-05T15:09:11 | 222,365,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 740 | py | import os
import subprocess
import sys
from loguru import logger
from plugins.base import Command
from utils.parser import create_parser
class Clone(Command):
def execute(self) -> None:
parser = create_parser()
args = parser.parse_args()
if not args.repository:
create_parse... | [
"oma.dulatov@gmail.com"
] | oma.dulatov@gmail.com |
c33583ccd6b33f5b384c1373a54f70a46388cc88 | 9888ef3bb4408a4cef8b2ad49d3b6eb873056694 | /multiclass_allH5_data/step2_write_all_H5_tfrecord.py | f34eb929cb07fbe2d0d0722c4d6dff8cd268ecc1 | [] | no_license | MeiliLiu-STEM/TFSeg_BraTS | bd3d52a8cbfeeea1b188fc268f0dfb74c0171efa | d6f482a57a859b59a5c507094efa928a21239198 | refs/heads/master | 2021-04-08T02:41:10.564845 | 2018-08-20T14:45:17 | 2018-08-20T14:45:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,577 | py | # -*- coding: utf-8 -*-
# @__ramraj__
from __future__ import division, print_function, absolute_import
import tensorflow as tf
import sys
import numpy as np
import cv2
import os
from sklearn.utils import shuffle
from sklearn.model_selection import train_test_split
import config
import h5py
def _int64_feature(value... | [
"cramraj8@gmail.com"
] | cramraj8@gmail.com |
06d8642d821b8be29fbef654e1e24ef1fe4d3a1e | f480589c6f8c1d33fccb0dad4380dada77340660 | /migrations/versions/ac3f2179013d_.py | 90ab319f620ac1efe4ff2779223877201e2f8817 | [] | no_license | carlosribas/backend-coding-challenge | 519cb35bfd57caf014dfcd4505a7a84da6ae9bda | 32b9fa7dd7940a27a10eff3af01f4ce2e93ccdbd | refs/heads/master | 2020-04-05T04:29:42.085218 | 2018-11-12T12:28:26 | 2018-11-12T12:28:26 | 156,553,812 | 0 | 0 | null | 2018-11-07T13:53:30 | 2018-11-07T13:53:30 | null | UTF-8 | Python | false | false | 926 | py | """empty message
Revision ID: ac3f2179013d
Revises:
Create Date: 2018-11-07 20:12:02.753303
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'ac3f2179013d'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto gene... | [
"caduribas@gmail.com"
] | caduribas@gmail.com |
58bb65a58ddad2e7ba4755e15c3698f3ff9b3301 | cb33113c4063867fa41cb74943d0a056a383b6a1 | /codexpert/Snake.py | bf0365b45c2712a8fdc2e057e76157dea480dae5 | [] | no_license | manuck/Algorithm | 9c6280095da6b88473460da52d07fb23ee6c3f9f | 4c15ff42f39224eb9b29728544c92dce9341fdfa | refs/heads/master | 2020-04-18T02:06:53.437576 | 2019-06-26T08:59:16 | 2019-06-26T08:59:16 | 167,148,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48 | py | import sys
sys.stdin = open("Snake_input.txt")
| [
"snc9000@naver.com"
] | snc9000@naver.com |
e798b57fa3a276c7acb65be428cc91e5a58aca43 | e3f2ab2999a851121897c02ee81bd85c2543bb96 | /ketan/codes/ee18btech11030/ee18btech11030_1.py | 7034225e0dcac1c1afe24ced57259387f4318dfb | [] | no_license | yashwanthguguloth24/control | ee38822c00d709ab63a35a9ebf7be886abae7eb7 | cff91230294686a4ee9432b04aea4333198512c1 | refs/heads/master | 2022-09-16T14:49:10.111030 | 2020-06-01T03:21:08 | 2020-06-01T03:21:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,349 | py | ###################################################################
# This is python code for Bode plots.
# By Moparthi Varun Sankar
# April 28 , 2020
# Released under GNU GPL
###################################################################
from scipy import signal
import matplotlib.pyplot as plt
from pylab ... | [
"gadepall@gmail.com"
] | gadepall@gmail.com |
d871c5cfc9ab2fb5f9fd61aa0dca96c2093b5d22 | d15db6af7db42745262775a7402877bcee37e22b | /HaiZhiTestEngine.py | 86915fb8c4b7fb93d612043b3e5712e3833f47a9 | [] | no_license | NotTodayNotMe/HaiZhiInterface | 0838916245f56ae369a7de3a64d597cc40065b7d | 7ad1c555fbc9b3bf53a1235c523c24910d1cf71a | refs/heads/master | 2020-03-28T22:36:16.689070 | 2018-08-27T09:28:34 | 2018-08-27T09:28:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,519 | py | #coding:utf-8
import datetime
import json
from HistoryTrading import HistoryTrading
from RealTimeTrading import RealTimeTrading
from HaizhiData import HaizhiData
'''装饰器'''
def input_checker(func):
'''
用于监测函数输入是否合法,code,volume均转化为str
:param func:
:return:
'''
def _input_checker(self,**kwargs)... | [
"787162506@qq.com"
] | 787162506@qq.com |
c9f81bef1f3181735e2d92ff5e734356f7d6e16f | 14373275670c1f3065ce9ae195df142146e2c1a4 | /stubs/SQLAlchemy/sqlalchemy/cimmutabledict.pyi | 1a1a3006afc360bf3f13c4a33677a997d14fb729 | [
"Apache-2.0",
"MIT"
] | permissive | sobolevn/typeshed | eb7af17c06a9722f23c337e6b9a4726223155d58 | d63a82640390a9c130e0fe7d409e8b0b836b7c31 | refs/heads/master | 2023-08-04T05:59:29.447015 | 2023-06-14T21:27:53 | 2023-06-14T21:27:53 | 216,265,622 | 2 | 0 | Apache-2.0 | 2022-02-08T10:40:53 | 2019-10-19T20:21:25 | Python | UTF-8 | Python | false | false | 737 | pyi | from _typeshed import SupportsKeysAndGetItem
from collections.abc import Iterable
from typing import Generic, TypeVar, overload
from typing_extensions import final
_KT = TypeVar("_KT")
_KT2 = TypeVar("_KT2")
_VT = TypeVar("_VT")
_VT2 = TypeVar("_VT2")
@final
class immutabledict(dict[_KT, _VT], Generic[_KT, _VT]):
... | [
"noreply@github.com"
] | sobolevn.noreply@github.com |
6399e8279ba126093ebb5008d5f3db2f7f0e9f0f | e4c1cc89b0014ec932014eb25302c0f431800017 | /polls/models.py | 0264edf31be5314445db6416b6f03c6d2ca17f62 | [] | no_license | jungdoyoon/polls_example | f3b5f98adb68a0fc87d6b591fffcc1ada4baf63b | c05f5841867dbf08a4c21bf5ea1864a5f94c0484 | refs/heads/master | 2022-07-27T17:45:52.365080 | 2020-05-20T05:57:48 | 2020-05-20T05:57:48 | 265,464,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | from django.db import models
# Create your models here.
class Question(models.Model):
question_text = models.CharField(max_length=200)
pub_date=models.DateField('date published')
def __str__(self):
return self.question_text
class Choice(models.Model):
question = models.ForeignKey(Question, on... | [
"jungdo8016@naver.com"
] | jungdo8016@naver.com |
64b7d70b08eb9417de61cee04e088e8fa686e7e3 | 9f4705a8472dc42427c5509ccce94106c38bd9ee | /Q3.py | dc28bed1e17d458d14072f3e05e63b542a27a38d | [] | no_license | Aniket-Bhagat/Computing_tools_8 | 305382aaa6bb3d6020ccf00d10aa3e2783c5de67 | 109a21b6647fadd3c5e7e9503b517b3c010a0d8f | refs/heads/master | 2020-04-22T04:13:18.329327 | 2019-02-11T11:12:44 | 2019-02-11T11:12:44 | 170,115,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 920 | py | import numpy, matplotlib.pyplot as plt
from scipy.stats.kde import gaussian_kde
data = numpy.loadtxt('data.dat', dtype='float', delimiter='\t', unpack=True)
def probdist(colno):
global data
plt.subplot(2,2,colno+1)
kde = gaussian_kde( data[colno] )
dist_space = numpy.linspace( min(data[colno]), max(data[colno]), ... | [
"noreply@github.com"
] | Aniket-Bhagat.noreply@github.com |
9023e00f19ae2dd73801a944716c50ce967f6522 | ff99e4847f91a288cec57124d7beb4b672db2f1e | /maestro/providers/aws/vpc_location.py | c79afa0de62d6c133d13b85bc2d0e8b0932e1234 | [
"Apache-2.0"
] | permissive | tunein/Maestro | e50afdbc9fe61340a2c4e82511bcec4d50957567 | 789205fdbe85242189c50e407445c57ca916e42c | refs/heads/development | 2021-09-29T23:21:14.327896 | 2021-09-21T21:06:31 | 2021-09-21T21:06:31 | 130,405,209 | 12 | 2 | Apache-2.0 | 2021-09-21T21:06:31 | 2018-04-20T19:26:32 | Python | UTF-8 | Python | false | false | 2,463 | py | #Import external libs
import boto3
import sys
import json
import os
from botocore.exceptions import ClientError
#This is only here for printing pretty colors
class color:
PURPLE = '\033[95m'
CYAN = '\033[96m'
DARKCYAN = '\033[36m'
BLUE = '\033[94m'
GREEN = '\033[92m'
YELLOW = '\033[93m'
RED... | [
"mmoon@tunein.com"
] | mmoon@tunein.com |
20a079bd1af4db6c499e81e182bb3635f71069b9 | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/I_to_M_Gk3_no_pad/pyr_Tcrop256_pad20_jit15/pyr_3s/L8/step09_3side_L8.py | 492f375600b24d9111789d8a77bc4776a8444e6d | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82,606 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
84b0c5269b2439b5b470b7c84eed3eb96c57cd6d | 28979d6e7873687ee5dd2ff3b838629d03baaa58 | /djangoTutorials/djangoTutorials/wsgi.py | 6aa24c0f51532e0f8900408e467b4426e5ffbffd | [] | no_license | NSNSingh/tryingDjango | 469768d92b5b2398042aef27016ae3d3078233d4 | 22acaa189c5ce2f22bb861a41a72f970a52706df | refs/heads/master | 2021-01-02T08:44:40.961863 | 2017-08-03T12:35:46 | 2017-08-03T12:35:46 | 99,059,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | """
WSGI config for djangoTutorials project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJA... | [
"sachinsngh64@gmail.com"
] | sachinsngh64@gmail.com |
f96decde8d13d57b8a17e6a18603082d48517ed8 | 091d605dcd15b61abb88b7e7c00fc2ccadc5c51a | /KIM_dipole.py | a27f6fed3ffb721d594d6ec9241146fad23d6f0b | [] | no_license | yqian1/OpenKIM | cb0abeee3f5e3d3b9d649118d8c85a5e283c8ab6 | 2f8d7469b4f67eac4c20265ef11815838307c04e | refs/heads/main | 2023-01-06T09:28:46.923355 | 2020-10-28T23:51:23 | 2020-10-28T23:51:23 | 308,100,239 | 0 | 0 | null | 2020-10-28T18:40:50 | 2020-10-28T18:01:31 | Python | UTF-8 | Python | false | false | 6,077 | py | import numpy as np
import itertools
'''
This script generates MD++ supercells for core energy calculations
The dislocation plane normal is along the x-direction
The dislocation line is along the z-direction
Nicolas Bertin, 08/31/2020
'''
def find_burgers_coord(theta, c2, n2, c3, n3):
# compute Burgers vector... | [
"noreply@github.com"
] | yqian1.noreply@github.com |
38a31c1facdab62182e07fb91d89b3bbd83243e6 | 15961f319555c38ebb80b4801edcc84a24f9415b | /loader.py | 13c80e259f87a77668787c28d9ab90ed9859d98e | [] | no_license | elifiner/crmz | f4a7897cbbcc6b7d0fac4fc8ad7705bc55e81c5f | cd15ff574a1e523aa1594f2929b62c3f3f75d153 | refs/heads/master | 2020-12-26T02:49:29.500188 | 2015-06-29T12:56:44 | 2015-06-29T12:56:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | import sys
companies = []
for line in open(sys.argv[1]):
companies.append(eval(line.strip()))
print(companies) | [
"eli.finer@gmail.com"
] | eli.finer@gmail.com |
6e0e7be32af312f6e4e5c22864d619f58343b46b | 07ec5a0b3ba5e70a9e0fb65172ea6b13ef4115b8 | /lib/python3.6/site-packages/qtconsole/usage.py | 9748f0e934f04e3c18259feed28ecd2d79a87874 | [] | no_license | cronos91/ML-exercise | 39c5cd7f94bb90c57450f9a85d40c2f014900ea4 | 3b7afeeb6a7c87384049a9b87cac1fe4c294e415 | refs/heads/master | 2021-05-09T22:02:55.131977 | 2017-12-14T13:50:44 | 2017-12-14T13:50:44 | 118,736,043 | 0 | 0 | null | 2018-01-24T08:30:23 | 2018-01-24T08:30:22 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:4999bdffa49207a0fc3b0d1a32be17cab386bc93cb7e7f592a5154ee85dcc4e9
size 8349
| [
"seokinj@jangseog-in-ui-MacBook-Pro.local"
] | seokinj@jangseog-in-ui-MacBook-Pro.local |
68d7bf5e288f8d694bff5efa73f76d5d085e833e | 24c8c76dee0cfbeaa3bc61666e63801aaf86afbc | /acmicpc.net/2798/test/script.py | 3b02d2dfb3a6b5edce5714ff49fb0809cb7d0a71 | [] | no_license | developers-algorithm-study/mjy9088 | e018f93f87394e106163259659a913b2ec2dd7f5 | 04f8fa0611a76aba45956ef82218b0e15152faa9 | refs/heads/master | 2022-09-16T17:55:21.387115 | 2022-08-18T14:32:35 | 2022-08-18T14:33:46 | 173,717,731 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | import sys
from os import path, sep
from importlib import import_module
base_path = path.dirname(path.dirname(path.abspath(__file__)))
root_path = path.dirname(path.dirname(base_path))
sys.path.append(root_path + sep + 'test')
if import_module('pipe').test(
prelaunch_tasks=[['cargo', 'build']],
popen_params=s... | [
"mjy9088@naver.com"
] | mjy9088@naver.com |
6daa8b703512b7e2e3c7130d9d9b62f52575be17 | 5d049b79b10480e0e03dbd699c496b5eaa050eb5 | /tests/test_preprocessing.py | 26b4df9beff58bd1556114ab91b4a684dcb652f5 | [] | no_license | isseychua/type-hints-demo | 96bd46fd3c54acd5fa2f14913a2e1c1522d109dd | 2e2ae03e9b2c1254807a7f01bc47869ecea6bb24 | refs/heads/master | 2023-08-02T16:36:36.479644 | 2021-10-10T11:26:19 | 2021-10-10T11:26:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,073 | py | import unittest
import numpy as np
import pandas as pd
from sklearn.tree import DecisionTreeClassifier
from pandas.testing import assert_frame_equal, assert_series_equal
from src.preprocessing import (add_derived_title, add_is_alone_column,
categorize_column, impute_nans, train_model)
... | [
"davidtan@thoughtworks.com"
] | davidtan@thoughtworks.com |
31af98181d7dd6927e3d2117e9d1f89471704af2 | 23a8b03599b0e97157739c367168b481f046726f | /vocabchallenge/dictionaries/french_dict_edit.py | 2861d4fd9f9037fe02a7f792bde2f9ad0a532a0f | [] | no_license | lzbotha/VocabChallenge | 04be101d5a6bf49dcaf895417a9ecf095b69fd14 | 5abff66a397c66c9ce79aaf2fd27925289013db9 | refs/heads/master | 2021-01-19T18:11:07.222922 | 2014-03-17T07:59:59 | 2014-03-17T07:59:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,132 | py |
f = open('french_dictionary.tsv','r')
outpt = open('french_dictionary_v1.tsv','w')
def remove_formatting(text):
temp = ''
for c in text:
if not c =='[' and not c==']' and not c =='#':
temp = temp + c
return temp
# as it stands now this seperates all words with a direct translation
for... | [
"leonardzbotha@gmail.com"
] | leonardzbotha@gmail.com |
96a1a69d636663d00ed646ff53f6c1fde2ee639b | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /9zsDKijmBffmnk9AP_4.py | f1bdc518936ccc7193328054c14e0aff9757174a | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py |
def programmers(one, two, three):
return max(one, two, three)-min(one, two, three)
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
c23e2c7b72b4b8a49f79f3091cb3eb3ca241fb0f | a3123495438f8054f15711be138e10bef4b8c8ce | /parallax_eddie_robot/src/parallax_eddie_robot/msg/_Velocity.py | c57d36e43ccd2d56f604a02ce4b991f1402545b3 | [] | no_license | haikalpribadi/haikalpribadi-ros-pkg | 53aeb2335dee131bcc626afb13ceb39a56f00556 | a3f9c2580e82beabe83a463cdbe46c40dc70ea1b | refs/heads/master | 2021-01-10T20:32:15.132608 | 2020-05-20T13:41:45 | 2020-05-20T13:41:45 | 3,742,934 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,195 | py | """autogenerated by genmsg_py from Velocity.msg. Do not edit."""
import roslib.message
import struct
class Velocity(roslib.message.Message):
_md5sum = "9d5c2dcd348ac8f76ce2a4307bd63a13"
_type = "parallax_eddie_robot/Velocity"
_has_header = False #flag to mark the presence of a Header object
_full_text = """fl... | [
"haikal.pribadi@gmail.com"
] | haikal.pribadi@gmail.com |
7ab25735908dffad4ff145d77a16b3adf7334ef5 | d094ba0c8a9b1217fbf014aa79a283a49aabe88c | /env/lib/python3.6/site-packages/djcelery/tests/_compat.py | 4969b5c033405ba7bf924e2166b838b11922e304 | [
"Apache-2.0"
] | permissive | Raniac/NEURO-LEARN | d9274e0baadd97bb02da54bdfcf6ca091fc1c703 | 3c3acc55de8ba741e673063378e6cbaf10b64c7a | refs/heads/master | 2022-12-25T23:46:54.922237 | 2020-09-06T03:15:14 | 2020-09-06T03:15:14 | 182,013,100 | 9 | 2 | Apache-2.0 | 2022-12-09T21:01:00 | 2019-04-18T03:57:00 | CSS | UTF-8 | Python | false | false | 113 | py | # coding: utf-8
try:
from unittest.mock import patch
except ImportError:
from mock import patch # noqa
| [
"leibingye@outlook.com"
] | leibingye@outlook.com |
4b2a96ef55a632d0fcb49ebd4f0e74caf63bdc4b | 6804c33960e66afa43c54f147e4ca86f32b2ee70 | /stands/recognizer/gender_detect.py | 76806f349f582ea4cc556999d2079cddb56533c8 | [] | no_license | ApiProdject/apiproject | 9cd6be2781f75338a41c2376e8303b910bbc4307 | 6e35244e0c003b6b5331def17c8c1d7ad671dab2 | refs/heads/master | 2022-07-10T16:44:50.954386 | 2020-05-17T05:37:54 | 2020-05-17T05:37:54 | 244,185,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,047 | py | import os
import cv2
import numpy as np
from apiproject.settings import STATIC_DIR
from infoPoints.models import InfoPoint
from stands.recognizer.SSRNET_model import SSR_net_general
class GenderRecognizer:
__instance__ = None
@staticmethod
def get_instance():
if not GenderRecognizer.__instance_... | [
"egorgavrilenko6@gmail.com"
] | egorgavrilenko6@gmail.com |
00158ec2eee07a649a6064356b537bc1f351953c | d292e8094cdfbd2dd6e35d775f6edfa8e209db47 | /src/tests/test_profiled_forward.py | 8d869d8d2f7ad953dbfc20f8331029c0c13c6f71 | [
"MIT"
] | permissive | SpookyWoogin/robot2018 | 81562d96ffd42aa3642f8f746a8126a2940827ec | a8ddf6a64b883904b15031e0ae13b2056faed4f5 | refs/heads/master | 2020-09-02T01:05:00.897963 | 2019-01-26T05:00:02 | 2019-01-26T05:00:02 | 219,100,518 | 0 | 0 | MIT | 2019-11-02T03:55:26 | 2019-11-02T03:55:26 | null | UTF-8 | Python | false | false | 2,129 | py | from unittest.mock import MagicMock
from data_logger import DataLogger
from robot import Rockslide
from commands.profiled_forward import ProfiledForward
def test_ProfiledForward1(Notifier):
robot = Rockslide()
robot.robotInit()
command = ProfiledForward(10)
command.initialize()
command.execute()... | [
"ellery-newcomer@utulsa.edu"
] | ellery-newcomer@utulsa.edu |
047660a9b15f645d34c790dbd31c938415f1e740 | bad62c2b0dfad33197db55b44efeec0bab405634 | /sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2021_02_01/models/__init__.py | 82c172aa1eb5e798e13af3d8f39e6216f291614d | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | test-repo-billy/azure-sdk-for-python | 20c5a2486456e02456de17515704cb064ff19833 | cece86a8548cb5f575e5419864d631673be0a244 | refs/heads/master | 2022-10-25T02:28:39.022559 | 2022-10-18T06:05:46 | 2022-10-18T06:05:46 | 182,325,031 | 0 | 0 | MIT | 2019-07-25T22:28:52 | 2019-04-19T20:59:15 | Python | UTF-8 | Python | false | false | 12,525 | py | # 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) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | test-repo-billy.noreply@github.com |
8cb2376ed52ba4138dc95464f109798211500d6a | 4d9b71dc822dd62cade383629ea8ef469d2e83ae | /planning/SpCoNavi0.1.py | d05de2b52e4530add0ef3afd16f9a86a6519b889 | [
"MIT"
] | permissive | sunnySKYwhy/SpCoNavi | cb2eaded8de5c0d5ec254d415dcc3418783db7f1 | 88edac8b204ad58380a00685f7d5159d5d937271 | refs/heads/master | 2023-03-19T23:52:29.411030 | 2020-02-19T11:57:54 | 2020-02-19T11:57:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46,383 | py | #coding:utf-8
###########################################################
# SpCoNavi: Spatial Concept-based Path-Planning Program (開発中)
# Akira Taniguchi 2018/12/13-2019/3/10-
###########################################################
##########---遂行タスク---##########
#テスト実行・デバッグ
#ムダの除去・さらなる高速化
#######... | [
"a.taniguchi@em.ci.ritsumei.ac.jp"
] | a.taniguchi@em.ci.ritsumei.ac.jp |
abc4485dd7fd0ee1e358442f4b46caf996041df3 | 7c9425e73f12622042bdc783b014976e8e8498dd | /django/pages/views.py | 38dcfa4cb9e002ace8e4c2f9a3a79d003575ad7b | [] | no_license | SameerKhan5669/python-WebFramworks | 7f6822780ac7d133e2f2f54d3ad53c816db37943 | 62d1d1d61d698d9dd4b4aba386b9e75aa14cf676 | refs/heads/main | 2023-08-31T18:17:27.791069 | 2021-10-04T17:22:16 | 2021-10-04T17:22:16 | 407,669,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | from django.shortcuts import render
# Create your views here.
# pages/views.py
from django.http import HttpResponse
def homePageView(request):
return HttpResponse('Hello, World!') | [
"sameer.khan@freshbooks.com"
] | sameer.khan@freshbooks.com |
5f7755aabf8fbe67914c3bbf540ddcfad5fe2dca | 036fb4fc50bb1fab2cca125484bfe3a0726894bc | /note.py | 8f21429c0e16dfa22801f6af73dc70acbbde5a8c | [] | no_license | SWC-Painist/Backend_Api | 8df5ebc46bde9831dbd04e63be47bf4815868d16 | 34924745985780eb832edaf5d3c4f809c86b1d30 | refs/heads/main | 2023-04-14T04:17:34.969567 | 2021-03-29T10:58:22 | 2021-03-29T10:58:22 | 351,360,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,986 | py | NUM_NOTENAME_LIST = ['Not Piano Key' for i in range(0,109)]
TELVE_TONE_TEMPERAMENT = ['c_','c#_/db_,','d_','d#_/eb_','e_','f_','f#_/gb_','g_','g#_/ab_','a_','a#_/bb_','b_']
#Generate Notename List
for i in range(0,109):
if i < 24 :
continue
else:
octa,num = int((i-24)/12), ((i-24)%12)
... | [
"noreply@github.com"
] | SWC-Painist.noreply@github.com |
ce0c8512a2373bffac1635858e730b38b204d9dd | 37bc60b070be22a5e22321655c8490df2285b07c | /translate.py | 5f414fdbd164ef00cfcaa2c3eddd47a0378d4518 | [] | no_license | TheWover/DidierStevensSuite | 2ab56d33472a242a5d49359d643c4e669c7a7e04 | 17f08aee76b98f95fc94b4e9c6131786d62b4716 | refs/heads/master | 2020-07-30T01:00:00.497949 | 2019-09-17T18:46:00 | 2019-09-17T18:46:00 | 210,027,232 | 1 | 0 | null | 2019-09-21T17:32:54 | 2019-09-21T17:32:53 | null | UTF-8 | Python | false | false | 27,454 | py | #!/usr/bin/env python
__description__ = 'Translate bytes according to a Python expression'
__author__ = 'Didier Stevens'
__version__ = '2.5.6'
__date__ = '2019/02/26'
"""
Source code put in public domain by Didier Stevens, no Copyright
https://DidierStevens.com
Use at your own risk
No input validation (neither outp... | [
"didier.stevens@gmail.com"
] | didier.stevens@gmail.com |
7ab15aaa9ab86f2169fe7e677124ec25d9b66c6e | 6071edc45eace43e4c9335650986c7588652a714 | /NER-AV.py | 7094e5d9ba46880ceadb3e9846542cde72daefe5 | [] | no_license | Chadni-Islam/cybersecproject1 | 47e685ab34e544f2229bac39895a6bac3275a9d8 | e3b5892295637f814924c66e9e9bfe37dea27bca | refs/heads/master | 2020-04-12T00:41:51.842388 | 2018-12-16T06:09:56 | 2018-12-16T06:09:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,170 | py | # Named Entity Recognintion on Alien Vault blog posts
# Scrapes info about malware/threats from page and attempts to extract threat data
import utils
import spacy
import pandas as pd
import csv
from bs4 import BeautifulSoup
import requests
import pprint
from OTXv2 import OTXv2
from OTXv2 import IndicatorTypes
from goog... | [
"a1706489@student.adelaide.edu.au"
] | a1706489@student.adelaide.edu.au |
c58f1c2970ecc1f52452603ec752fee605c737c0 | 053221e1d90b365f68701dbd5b6466f30d1f6fd7 | /Day2/vd9.py | fd7cce53fa7b1ae816f5b6dbeb603d15b41e478e | [] | no_license | pytutorial/py2011E | eceb4d563cc807294b08b818edadd521ed8da488 | 306437369b0bfe55a2fa827b098283856242e731 | refs/heads/main | 2023-02-28T23:57:32.851536 | 2021-01-30T14:56:12 | 2021-01-30T14:56:12 | 318,186,117 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | # vd9.py
# Chương trình dự báo thời tiết
# Cho T(độ C), w (km/h), p(atm)
# In ra : Có mưa ?
T = float(input('Nhiệt độ (C):'))
w = float(input('Tốc độ gió (km/h):'))
p = float(input('Áp suất khí quyển(atm):'))
rain = False # default
if T >= 21:
if w >= 3 and p > 0.87:
rain = True
else:
if w >= 7 o... | [
"duongthanhtungvn01@gmail.com"
] | duongthanhtungvn01@gmail.com |
c830596b2f898d2ead4f94528ad2f3100de2be7b | 7786de317489fa258c7504b2fc96341e970e45db | /tests/unit/test_cf_storage_object.py | 40cecc402ed6e56b9c96465a85a7524220df10d6 | [
"MIT"
] | permissive | tvaught/pyrax | 7207158d832721ca6ccde2e9c328855155a60915 | 8a310435239c536921490e04a984ff8a82b18eb8 | refs/heads/master | 2020-12-25T10:10:54.714401 | 2013-05-30T19:56:21 | 2013-05-30T19:56:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,903 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import random
import unittest
from mock import patch
from mock import MagicMock as Mock
import pyrax
from pyrax.cf_wrapper.storage_object import StorageObject
import pyrax.exceptions as exc
from tests.unit.fakes import FakeContainer
from tests.unit.fakes import... | [
"ed@leafe.com"
] | ed@leafe.com |
d59306979796aafc1ce71802b7397335571e7929 | e4df66483ef535aa89e6348b72a7d683f472b034 | /products/migrations/0004_auto_20210703_1331.py | b7d13cbbb8a1cea2c4dcab80894d85b6efbcce80 | [] | no_license | Summersby95/james-boutique | 595b083c996dfd2f78f6912058b83118e77627a2 | ceeeddd796fe9a807d24d4ed222536762e565cf1 | refs/heads/master | 2023-06-20T09:27:54.979372 | 2021-07-14T21:52:42 | 2021-07-14T21:52:42 | 381,137,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | # Generated by Django 3.2.4 on 2021-07-03 12:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('products', '0003_auto_20210629_1032'),
]
operations = [
migrations.AlterModelOptions(
name='category',
options={'ver... | [
"47246572+BigbyWolf95@users.noreply.github.com"
] | 47246572+BigbyWolf95@users.noreply.github.com |
586bebcb89179bee8bb4bb171079ab83e1625aa4 | e0da81d30c5178cee999801c8d6673d782878bfa | /create_tables.py | b7b8e401daa01509b4388a3ae021767ff7398c3c | [] | no_license | as234545/Sparkify_ETL | 22bf7c233dcf7f53e1870c304fd564f5e16a0628 | ecc6758e44e79736f4ad8d3b0d5bfb86be9234e9 | refs/heads/master | 2022-10-17T08:50:40.238072 | 2020-06-11T18:16:31 | 2020-06-11T18:16:31 | 262,396,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,713 | py | import psycopg2
from sql_queries import create_table_queries, drop_table_queries
def create_database():
"""
- Creates and connects to the sparkifydb
- Returns the connection and cursor to sparkifydb
"""
# connect to default database
conn = psycopg2.connect("host=127.0.0.1 dbname=postgres ... | [
"noreply@github.com"
] | as234545.noreply@github.com |
fd2de93e61b8ec7175144413c12aa76acc68faf3 | 16841aa873355de23833f4a78e77cf7440345f6d | /code/server/es_run_all.py | e6aba881549458302a29449b1c089f8ed433b300 | [] | no_license | ShyGuyPy/Shiny_Forecasting_Automation | bf42ad603fbcd3c82849c79e4667e0c4391d428d | 60f060bacf90ed593c92e2f17092c44480b2fd77 | refs/heads/master | 2023-05-04T22:05:06.680250 | 2023-04-18T19:50:03 | 2023-04-18T19:50:03 | 224,223,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,580 | py | ##this is a workaronud to an issue were win32com module would not
#import properly whe run through r reticulate module
import win32com.client
import win32gui as wg
import win32con
import time
#
# if (__name__ == '__main__'):
def open_and_ID(prog_ID, win_ID):
program_handle = win32com.client.Dispatch(prog_ID)
... | [
"luke.vawter1@gmail.com"
] | luke.vawter1@gmail.com |
2b2292edfd105992c36aa4fca01ce951238696ab | 439add47001009e173418b30cfb820b0e92989ed | /apps/users/urls.py | 03905571d8e624a6de7bd52b2762f03ca522ec43 | [] | no_license | AngelMercado/primeTed | 31b410d7c64da1001f40bae824f7a700f46dcd40 | 7a05d2ea257334cb726d39e80e2209f9cdbf0578 | refs/heads/master | 2021-01-01T17:59:28.360220 | 2017-07-24T17:27:57 | 2017-07-24T17:27:57 | 98,215,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | from django.conf.urls import patterns, include, url
from .views import PanelView,RegistrateView,LogOut,LoginView
from apps.home.views import HomeView
urlpatterns = patterns('',
url(r'^$',PanelView.as_view(),name='panel'),
url(r'^login$',LoginView.as_view(),name='login'),
url(r'^registrateGratis$',RegistrateView.as_v... | [
"myjava@outlook.es"
] | myjava@outlook.es |
9f17a97976b8031844c5b47af19eedcf16363869 | e03250b86ba042c55f05882998c6a19cd4f39c31 | /sicknote_app_v00_01.py | d3a1e941ef6455949b2f67cfab4e0366544cf4a2 | [] | no_license | nzwi/sicknote-flask-endpoint | a467d519a0fd31b5ff9d45b8dfd8306cb88eadc7 | cf7241c951b04292df9a4b8161446e30db8b4f84 | refs/heads/master | 2020-03-09T06:50:36.832533 | 2018-04-08T14:32:04 | 2018-04-08T14:32:04 | 128,649,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 742 | py | ##
# Title: Python Flask endpoint within Amazon Virtual Private Cloud (VPC)
# to allow lambda to communicate with ethereum helper functions
# Version: v00_01
# Author: Nzwisisa Chidembo <nzwisisa@gmail.com>
##
from flask import Flask, jsonify, request
# Replace <helper function file> with your helper python file
impor... | [
"nzwisisa@gmail.com"
] | nzwisisa@gmail.com |
5088ff9a441d0a89a9acc0d64fff0a8dc6f8e028 | 9c0f298d56ef554b6bb004545dcd02988211df7d | /uebung07/uebung07-examples/tasks-show.py | fde8acdb8d610cd2ba32c22be0559d10cc9a70d5 | [] | no_license | n1tr0-5urf3r/InTech-2020 | 96d418360b47c17a7c2e4f00d32680fcb603a802 | 43d5659907586e6f5b55eb872cc8136c0b059678 | refs/heads/master | 2022-11-17T20:58:31.782540 | 2020-07-14T12:05:45 | 2020-07-14T12:05:45 | 259,252,184 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 811 | py | #!/usr/bin/python3
# coding=utf-8
from tasks_lib import read_all_tasks, get_done_tasks, get_open_tasks
from tasks_lib import print_header, print_tasks, print_footer, print_form, print_navigation
import cgi
form = cgi.FieldStorage(encoding='utf8')
# Welchen Zustand sollen die angezeigten Tasks haben? Default-Wert: a... | [
"fabi@ihlecloud.de"
] | fabi@ihlecloud.de |
8be8b9d514ef8af40f16b0f5750beca00056be18 | 661ccc272af5d72a4aea6cecebd59879ab8458f5 | /test_scores.py | 8bbbb94312640aef4bdc7d5c8d9fba98e5442c39 | [] | no_license | Monitor-Wang/ERMDA | 9e03718292404f5a0a8cf0bb29974ef2ea981675 | cdafa1e3bba24b16f81c427c29009ecbbc716a88 | refs/heads/main | 2023-08-30T19:32:34.156473 | 2021-11-05T12:52:03 | 2021-11-05T12:52:03 | 424,944,508 | 0 | 0 | null | 2021-11-05T12:42:11 | 2021-11-05T12:42:11 | null | UTF-8 | Python | false | false | 1,979 | py | # -*- coding: utf-8 -*-
from sklearn.metrics import roc_auc_score
import numpy as np
def calculate_performace(num, y_pred, y_prob, y_test):
tp = 0
fp = 0
tn = 0
fn = 0
for index in range(num):
if y_test[index] ==1:
if y_test[index] == y_pred[index]:
... | [
"noreply@github.com"
] | Monitor-Wang.noreply@github.com |
449d5c2f3a0a020d0c74ca688990cf14ec87f350 | c99b89e8b4d5ebdae4aaaf26c33dd8075e61b5e4 | /AnchorDxLimsApp/RandDTaskAssignment.py | 852174993b8a463ae1c594f0e83a627c6404016d | [] | no_license | ranandrom/Lims | 1afa9f86829b5c09b10bc802501f745c489045c6 | 8a762cad72a334054f4211e46a4b36b403dc06c2 | refs/heads/master | 2020-03-12T00:14:45.192049 | 2018-04-23T09:44:45 | 2018-04-23T09:44:45 | 128,862,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,184 | py | # encoding: utf-8
from django.shortcuts import render
from AnchorDxLimsApp import models
from itertools import chain
# Create your views here.
#coding:utf-8
from django.shortcuts import render,HttpResponse
# 研发样本实验任务分配首页
def RandDExperimentalTaskAssignmentHomePage(request):
try:
username = request.sessio... | [
"ramandrom@139.com"
] | ramandrom@139.com |
cf3ee11aac574e0f1e461602f57fd51ffa9135bb | 4fdc839b92bf50d342467d7f453093fa4233af9d | /templateLoader/help/source/conf.py | b2993fe10b57ab82126175183061902aef62b806 | [] | no_license | lpofredc/Qgis-plugin-templateLoader | f8d848192639018d655eb2ca6c8846d608ad2a4d | c3b46eecd5481693315e7d294cd82a513508bdc8 | refs/heads/master | 2020-03-27T14:13:54.580319 | 2017-05-10T13:51:48 | 2017-05-10T13:51:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,047 | py | # -*- coding: utf-8 -*-
#
# templateloader documentation build configuration file, created by
# sphinx-quickstart on Sun Feb 12 17:11:03 2012.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
... | [
"amandine.sahl@gmail.com"
] | amandine.sahl@gmail.com |
a5a11cfef9f4349cd1bbbda6164070d5f154324b | ad682d2145f440c078a431a40d2153a204771026 | /method/DepBased/WM_OLPDM.py | 7889685fa719f8816d1f5051b2aece6f7cb45c2f | [] | no_license | barry800414/NewsCrawler | d81f1ee4b0e0c4a997dda1efd24d1430e222d318 | 18c10f10508558600f734d659e724d4e27f071a3 | refs/heads/master | 2021-05-03T13:11:29.696108 | 2015-07-01T16:38:05 | 2015-07-01T16:38:05 | 26,075,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,697 | py | #!/usr/bin/env python3
import sys
import json
import math
from collections import defaultdict
import numpy as np
from scipy.sparse import csr_matrix, hstack
from sklearn.grid_search import ParameterGrid
import WordModelImproved as WM
import OneLayerPhraseDepModel as OLPDM
from PhraseDepTree import loadPhraseFile
fro... | [
"barry800414@gmail.com"
] | barry800414@gmail.com |
047c84b87840d1b7ec7ee3291c29a71e590f7b89 | 8341678973612363868a36d89b1c464cbe0f4a79 | /app.py | c3b2815b752fcfd98f7940020234f803e7b9c6ed | [] | no_license | sveco86/magiogo-iptv-server | 45c80ce8e21d6488933e6cd4be9ed3873c013581 | 00610e6e73cfd0b79c136c48dcf4f87c08239040 | refs/heads/master | 2023-03-26T12:04:46.038199 | 2021-03-10T12:29:42 | 2021-03-10T12:29:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,348 | py | import atexit
import gzip
from pathlib import Path
import xmltv
from apscheduler.schedulers.background import BackgroundScheduler
from flask import Flask, redirect, render_template
from magiogo import *
from parse_season_number import parse_season_number
app = Flask(__name__, static_url_path="/", static_folder="publ... | [
"lukas.kusik@gmail.com"
] | lukas.kusik@gmail.com |
f5ec3f1b0f0acf25ad487555a7f33120f6d5522a | 63cb8173f398a99b69c6345e05943ec1c5bdccd6 | /main.py | 53e4564a5e1c358618aff9084bc49191c9e348c7 | [] | no_license | Blender3D/Deskboard | 596ff809ae1f7ad15bff0eca4f8e36e44ee8976f | 693361c010c1b1a7489480c406ec92354d8dc766 | refs/heads/master | 2021-01-22T05:24:36.441601 | 2012-09-17T03:07:52 | 2012-09-17T03:07:52 | 5,835,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,024 | py | #!/usr/bin/env python2
import os, re, sys, json, datetime, time, glob, ConfigParser, subprocess
from functools import wraps
import psutil
import dbus
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from PyQt4.QtWebKit import *
from dbus.mainloop.qt import DBusQtMainLoop
from WebkitQObject import WebkitQObjec... | [
"452469+Blender3D@users.noreply.github.com"
] | 452469+Blender3D@users.noreply.github.com |
c3269a9d2921b1dd7aedb9e987d48a9a1cb04198 | 99a5e59f1f6dccd580989e92fc148143bef9ae23 | /store/models/customer.py | b9b79996b4d8e12facf7e9df4adc870b19fb17d9 | [] | no_license | Sachin-Kahandal/eshop | 743ce2c48c913f6aa41c6388395478b3fc01c1aa | c58b7f959ff4294c069bba1f1bca8f78294a4483 | refs/heads/master | 2023-02-22T13:01:22.113343 | 2021-01-26T14:56:57 | 2021-01-26T14:56:57 | 331,246,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,072 | py | from django.db import models
from django.contrib.auth.hashers import make_password, check_password
class Customer(models.Model):
first_name = models.CharField(max_length=30)
last_name = models.CharField(max_length=30)
phone = models.CharField(max_length=10)
address = models.CharField(max_length=100)
... | [
"54132749+SachinKahandal@users.noreply.github.com"
] | 54132749+SachinKahandal@users.noreply.github.com |
8ea369755709ea09b07fed508e95099cc47b316a | 406d942b98d15f45393cb864b21ee3345eb9cc8f | /Coursera_Algorithms/max_mult.py | e81e650090f64723bc6c303c457c8ff250116381 | [] | no_license | msekhar12/Algorithms_Exercises | c3804d64f9cf43da92e20b151807952b41ac89c3 | c2454987060f8c0404d4fdb215c7b2eb6f8c677a | refs/heads/master | 2020-04-07T06:17:24.602842 | 2019-02-03T14:34:49 | 2019-02-03T14:34:49 | 158,129,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 794 | py | # python 3
# Max product of 2 numbers from an array of integers
# Input will be 2 lines.
# The first line will contain the number of elements in the array, and the second line will be space separated numbers:
def find_max_product(n, l):
if n <= 1:
return None
comps = 0
if l[0] > l[1]:
ma... | [
"sekhar@Sekhars-MacBook-Pro.local"
] | sekhar@Sekhars-MacBook-Pro.local |
5f32e4fa86ea444a96fde64ff2b9e4259b98b9f7 | 5002037a61b129ade69f675137cd9e16966518a2 | /apps/gallery/migrations/0007_auto_20190801_1340.py | 1f0c84144319147a27c1d5b54a3f020d9da65176 | [
"Apache-2.0"
] | permissive | mrtaalebi/sitigo | e290f1e952a3c47b9fb356177e5c7ea708dcd708 | cce8b4f5299b58d7365789ead416d4568b443743 | refs/heads/master | 2022-12-11T00:09:07.196902 | 2020-11-19T20:34:58 | 2020-11-19T20:34:58 | 194,496,364 | 0 | 0 | Apache-2.0 | 2019-07-05T14:29:39 | 2019-06-30T09:06:47 | JavaScript | UTF-8 | Python | false | false | 489 | py | # Generated by Django 2.2.3 on 2019-08-01 09:10
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('gallery', '0006_auto_20190801_1338'),
]
operations = [
migrations.AlterField(
model_name='image... | [
"the.doors.are.locked@gmail.com"
] | the.doors.are.locked@gmail.com |
b8b058c24e942784ccc2a2b2ef0ed358711175a1 | 400086979e153dea632339ff23e0a2cce3e40d77 | /starting_kit/code/model.py | eb9f26fa61b3eeba03160dc4ff64357707d068ca | [] | no_license | PhamAlexT/MOSQUITO | 99b1c7c3eb2490ec5c073bbf1da1d5697d4032bf | 6c93a49367c62b9159bfa3291b0dd0de9a4558e4 | refs/heads/master | 2020-12-30T05:19:39.235458 | 2020-05-09T12:37:11 | 2020-05-09T12:37:11 | 238,873,909 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,523 | py | '''
Sample predictive model.
You must supply at least 4 methods:
- fit: trains the model.
- predict: uses the model to perform predictions.
- save: saves the model.
- load: reloads the model.
'''
import pickle
import numpy as np
from os.path import isfile
from sklearn.base import BaseEstimator
from sklearn.ensemble im... | [
"liliaizri99@gmail.com"
] | liliaizri99@gmail.com |
565584f78e17bf14cc57d09723b4166b4d3c8e6f | a0a7c9997676217387738f4c89e0665fd403b2c0 | /basic/perceptron.py | aa96363c3aeeb78fe704d83b5dcbfd81f0ff02d7 | [] | no_license | whoisalan/MACHINELEARNING | 86f51bd64fc46c68574b89846d6a11c88cf94272 | 3a658eae6e8818a8286045665b7e3e4d23c284db | refs/heads/master | 2020-04-09T18:15:47.313308 | 2018-12-05T14:23:02 | 2018-12-05T14:23:02 | 160,506,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,213 | py | import random
import numpy as np
import matplotlib.pyplot as plt
def sign(v):
if v>=0:
return 1
else:
return -1
def train(train_num,train_datas,lr):
w=[0,0]
b=0
for i in range(train_num):
# 随机梯度下降
x=random.choice(train_datas)
x1,x2,y=x
if(y*sign((... | [
"alanznala@163.com"
] | alanznala@163.com |
fed740e3a86c5c0992ca482c58875e9b14269012 | 1bfad01139237049eded6c42981ee9b4c09bb6de | /RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/pimsm/router/interface/learnedmdtinfo/learnedmdtinfo.py | b27f8bb6f94a4485f17effd4ef1a42a2e0f065ba | [
"MIT"
] | permissive | kakkotetsu/IxNetwork | 3a395c2b4de1488994a0cfe51bca36d21e4368a5 | f9fb614b51bb8988af035967991ad36702933274 | refs/heads/master | 2020-04-22T09:46:37.408010 | 2019-02-07T18:12:20 | 2019-02-07T18:12:20 | 170,284,084 | 0 | 0 | MIT | 2019-02-12T08:51:02 | 2019-02-12T08:51:01 | null | UTF-8 | Python | false | false | 4,210 | py |
# Copyright 1997 - 2018 by IXIA Keysight
#
# 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 to use, copy, modify, merge, p... | [
"hubert.gee@keysight.com"
] | hubert.gee@keysight.com |
2a632ed951bfbd64396511d30034e84b2fb566c2 | 6a1174a7215cfd4c345cc8723cfb9a3bf053b108 | /conditional_image_manipulation/data/preprocess.py | 5b8fe0e726ad94bbe9b499668959e940bd8b6a00 | [
"MIT"
] | permissive | jlezama/disentangling-jacobian | e55e84bafe3c4f41d76e108bcb1dfb9cd6697b1e | c570945055c735a15b9adba093b7c688c7310aad | refs/heads/master | 2021-06-30T03:09:21.393511 | 2020-10-06T14:35:11 | 2020-10-06T14:35:11 | 169,459,503 | 26 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,488 | py | # Code from FaderNetworks by Facebook
#!/usr/bin/env python
import os
import matplotlib.image as mpimg
import cv2
import numpy as np
import torch
N_IMAGES = 202599
IMG_SIZE = 256
IMG_PATH = 'data/images_%i_%i.pth' % (IMG_SIZE, IMG_SIZE)
ATTR_PATH = 'data/attributes.pth'
def preprocess_images():
if os.path.isf... | [
"jlezama@gmail.com"
] | jlezama@gmail.com |
efdf6baebd3af374b832d92ff380d8150baa87ab | 5b41d2e551982784a1e53e49f12c7b058403bca8 | /venv/Scripts/easy_install-script.py | 1bbb1a2552e96f5fe5ac7d0cb9794956d25349a1 | [] | no_license | TsvetkovEvgenij/HelloWorld | 79b67793bc49e9f1fe717e3dc5ec98f2f9ea58cf | 1fa97bbb2015502c1289828fc36e598fb874d29a | refs/heads/master | 2020-09-23T21:33:43.203083 | 2019-12-03T10:27:07 | 2019-12-03T10:27:07 | 225,592,335 | 0 | 0 | null | null | null | null | WINDOWS-1251 | Python | false | false | 469 | py | #!C:\Users\Ковшикова\PycharmProjects\HelloWorld\venv\Scripts\python.exe -x
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-scrip... | [
"tsvetkov.evgenij@gmail.com"
] | tsvetkov.evgenij@gmail.com |
35dcdc43f617001a03482a66d869671fe3c327ec | 867b776ad26475b4fffb28cb4a7dbbff167863dc | /src/CsvReader.py | 4f5a987fa9454f377b78579e649bdbeb273161f7 | [] | no_license | knp56/Calculator | 2e108bb144edc98523c5bf055e5daa3c39bad867 | 4e8ff3064ebbc6ecf511c6283b29f84c184c39a1 | refs/heads/main | 2023-06-22T12:04:52.687412 | 2021-07-01T21:02:11 | 2021-07-01T21:02:11 | 382,148,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 646 | py | import csv
#from pprint import pprint
def ClassFactory(class_name, dictionary):
return type(class_name, (object,), dictionary)
class CsvReader:
data = []
def __init__(self,filepath):
self.opdata = []
with open(filepath) as text_data:
csv_data = csv.DictReader(text_data)
... | [
"knp56@njit.edu"
] | knp56@njit.edu |
175fc58cdec9dfa2614265d9e8687f6653571759 | 9ddb76f8bac669e89e2ae0c5de68bef6e81b7dd6 | /GamebotsParser.py | 865a444d3a048ea5f293af25aac7c910f18928bf | [] | no_license | formica-multiuso/ugc | 51598755823c912c9ba0af8fc75fa1c0b26817db | 0aa35de26412bc3855acb2407abafde77a430137 | refs/heads/master | 2016-09-06T16:25:06.158155 | 2013-08-05T10:31:56 | 2013-08-05T10:31:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 906 | py | import sys
import socket
import threading
import select
class GamebotsParser(threading.Thread):
def __init__(self,socket,name):
threading.Thread.__init__(self)
self.socket = socket
self.name = name
def run(self):
while 1:
rlist, wlist, elist = select.select( [self.socket], [], [] )
self.messageBuffer... | [
"formica@member.fsf.org"
] | formica@member.fsf.org |
10235484ece4de8311785cbc4ef11abeb245c5aa | 577aa26c18c7ae5a2be3b1d4ef6cc4a88f0f455a | /bot.py | 379414f1d2d588c384aa3390f91f5be270390603 | [] | no_license | boringcactus/head-receiver-bot | add9f78ee771b597be8e342d914601a1270abcfe | e8012db3c2cae22771e1f68965eff7ff85a14014 | refs/heads/master | 2021-04-18T17:42:25.066518 | 2020-03-24T02:31:15 | 2020-03-24T02:31:15 | 249,567,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,972 | py | import logging
import os
from io import BytesIO
import telegram
from telegram.ext import Updater, MessageHandler, Filters
from dotenv import load_dotenv, find_dotenv
from PIL import Image, ImageDraw, ImageFont
load_dotenv(find_dotenv())
font = ImageFont.truetype("SourceSansPro-Regular.ttf", 48)
def apply(name, ph... | [
"melody@boringcactus.com"
] | melody@boringcactus.com |
66e2289930010858f17f6b47cd882273cfaacfe3 | 2d009dceeb7893d7441e42b1944b7ef317e561ab | /Bisection.py | 7ffb910041ff7d3efd04283482a133810206349c | [] | no_license | dweatherstone/calculusdrw | d22a3abf238aa29657ece79c8227411c38e82709 | 9eaf7f059ed219cdfc1f8968dadafdb2387ea059 | refs/heads/master | 2022-04-18T20:24:02.323455 | 2020-04-20T15:44:05 | 2020-04-20T15:44:05 | 257,258,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,793 | py | from Generalroots import RootStatus, Root
class Bisection(Root):
"""The simplest root finding algorithm is the bisection method. The
algorithm applies to any continuous function on an interval where
the value of the function changes sign from to . The idea is simple:
divide the interval in t... | [
"davidweatherstone@gmail.com"
] | davidweatherstone@gmail.com |
27460d30d032a0d1bdc979b8ff2544520320a468 | 240f4b564a53ead9076276258e5f3749fc9efb99 | /yproblem/utils.py | 68982c510dd39d6f80232e5fd0460f3e155bc350 | [
"MIT"
] | permissive | dbojanjac/effective2D | fe7c5fd8d53684274b3ffa28f43723d5d4d8c276 | 8d124a103a5bd8e68d1bc23c4e10fe4d3cd27759 | refs/heads/master | 2023-02-17T12:06:08.483294 | 2020-09-10T17:23:21 | 2020-09-10T17:23:21 | 168,364,828 | 1 | 0 | MIT | 2021-01-13T16:35:32 | 2019-01-30T15:21:40 | GLSL | UTF-8 | Python | false | false | 386 | py | import dolfin as df
import matplotlib.pyplot as plt
def save_field_plots(output_folder, f1, f2):
df.plot(f1)
plt.savefig(output_folder + "/plots/f1.pdf")
df.plot(f2)
plt.savefig(output_folder + "/plots/f2.pdf")
def save_pvd(output_folder, f1, f2):
f = df.File(output_folder + "/PVD/f1.pvd")
f ... | [
"darko.janekovic@fer.hr"
] | darko.janekovic@fer.hr |
76ba16f3571ee2c45140eede623e32fb986c8881 | 25cab1a6c2d5370be53ba54236f5947e2eb9cb28 | /data/audio/__init__.py | bf7c93a9fb836f15bd0979177f3a783ab03b8c24 | [] | no_license | chenliming-1/tr_apiCode | b9aca368e656ae4651dc9e2a4bfae80ecb59ec95 | 36cd39a9d1dac4df5a4ecc57c1bb391a863c0035 | refs/heads/main | 2023-08-26T22:49:25.086745 | 2021-10-20T10:22:55 | 2021-10-20T10:22:55 | 402,780,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | #!Date:2019/02/21 17:02
# !@Author:龚远琪
from .uploadaudio import uploadaudio
__all__ = ['uploadaudio'] | [
"gongyq@histudy.com"
] | gongyq@histudy.com |
f66d8eca2d435b8587e7ca130d23d12400ed0211 | 3fbd28e72606e5358328bfe4b99eb0349ca6a54f | /.history/a_Young_Physicist_20210607193741.py | 863458084f547b6a9bf662840ab4c6ff7880d758 | [] | no_license | Tarun1001/codeforces | f0a2ef618fbd45e3cdda3fa961e249248ca56fdb | 576b505d4b8b8652a3f116f32d8d7cda4a6644a1 | refs/heads/master | 2023-05-13T04:50:01.780931 | 2021-06-07T21:35:26 | 2021-06-07T21:35:26 | 374,399,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | n= int(input())
x=[]
for i in range(n):
p=map(int,input().split()))
x.append(p)
a=b=c=0
for i in x:
a+=i[0]
b+=i[1]
c+=i[2]
if a==b==c==0:
print("YES")
else:
print("NO")
| [
"tarunsivasai8@gmail.com"
] | tarunsivasai8@gmail.com |
20076d99682732c095519240df2c951bfe0aae37 | 55ab64b67d8abc02907eb43a54ff6c326ded6b72 | /scripts/startup/tila_OP_SmartDelete.py | cc9ba649d4972b3487b5351419e9a875b4d2745a | [
"MIT"
] | permissive | Tilapiatsu/blender-custom_config | 2f03b0bb234c3b098d2830732296d199c91147d0 | 00e14fc190ebff66cf50ff911f25cf5ad3529f8f | refs/heads/master | 2023-08-16T14:26:39.990840 | 2023-08-16T01:32:41 | 2023-08-16T01:32:41 | 161,249,779 | 6 | 2 | MIT | 2023-04-12T05:33:59 | 2018-12-10T23:25:14 | Python | UTF-8 | Python | false | false | 2,449 | py | import bpy
bl_info = {
"name": "Tila : Smart Delete",
"author": "Tilapiatsu",
"version": (1, 0, 0, 0),
"blender": (2, 80, 0),
"location": "View3D",
"category": "Object",
}
class TILA_SmartDeleteOperator(bpy.types.Operator):
bl_idname = "object.tila_smartdelete"
bl_label = "TILA: Smart... | [
"tilapiatsu@hotmail.fr"
] | tilapiatsu@hotmail.fr |
26f2074d53662e3b75784826d1b3d465efd230e4 | 91397c476203a77c597f80769b9b8ac850a2dedb | /mongodb app/main.py | 2501f63bdb9279a0539f7b97b9511c019bf851c3 | [] | no_license | firdaussalim/Perpustakaan-App | 29cdf2d0963065f6d89901a19a0f258ebc165ac6 | dcf579f725b8ef90a3f6412599b77ac47b7b50a4 | refs/heads/master | 2023-06-06T11:34:05.261274 | 2021-06-25T10:06:23 | 2021-06-25T10:06:23 | 380,193,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | from fastapi import FastAPI
from books_route import router as books_router
app = FastAPI()
app.include_router(books_router)
@app.get("/")
async def read_main():
return {"message": "Hello Bigger Applications!"} | [
"firdaus.salim24@gmail.com"
] | firdaus.salim24@gmail.com |
3c3083f149d724f150c0f60864c4c9d6ed10495d | 27856ac3b3311728fe103911f7cbc0f20cbdfa8f | /bot/config.py | 549488d5ab4942dbe9d3762ea0d3e81b3afc860a | [] | no_license | 535521469/crawl_free_ip_proxy | 2c314f5037e45508071593bbcfa27e16751e4078 | 977c7fc422e8d49dd1d195cf8d7d1475da427e04 | refs/heads/master | 2016-09-06T13:25:25.738769 | 2013-05-01T07:28:25 | 2013-05-01T07:28:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | py | # encoding=utf8
'''
Created on 2013-4-24
@author: corleone
'''
from bot.configutil import ConfigFile
import os
def read_config():
cfg_path = os.sep.join([os.getcwd(), os.curdir, 'fetchproxy.cfg'])
configdata = ConfigFile.readconfig(cfg_path).data
return configdata
configdata = read_config()
| [
"535521469@qq.com"
] | 535521469@qq.com |
e7af462a10aa2b01aba8dc9f51eaeb8d8f8f1589 | d9df48207e020367a2195bc3381db61c4eee4d9a | /Python/05.plot/01_bar.py | e31d9ea8c39aa23c9988a0b5448584e37556d445 | [] | no_license | surkjin/kosmo41_surkjin | d1872c39784b9c34f3016bf9cc1f347414b61816 | 2a262c4ae44415690034e8ce04e858732aa12c70 | refs/heads/master | 2020-03-21T04:42:09.070599 | 2018-12-12T06:52:33 | 2018-12-12T06:52:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 734 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Dec 11 14:38:07 2018
@author: kosmo30
"""
#!/usr/bin/env python3
import matplotlib.pyplot as plt
plt.style.use('ggplot')
customers = ['ABC','DEF','GHI','JKL','MNO']
customers_index = range(len(customers))
sale_amounts =[127, 90, 201, 111, 232]
fig = plt.figure()
ax1 = fig... | [
"surkjin@gmail.com"
] | surkjin@gmail.com |
2e0c29033010b2955a644b542267326c9713f927 | 0581b4564d1e9683b49d754565c9b6f21a75d387 | /shop/models.py | 428c095c6557bc850101eca14ab7d66adb31631d | [] | no_license | AndreyIvanyutin/Webshop | 0deffcf5094fb86e74c6fe8b2d06d4dd2cdda93d | 8839824a5513b2e8d1c0d7f73f442095474cc8aa | refs/heads/master | 2020-12-14T09:56:12.219190 | 2017-07-08T17:25:29 | 2017-07-08T17:25:29 | 95,473,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,618 | py | from django.contrib.auth.models import User
from django.db import models
# Модель категории
class Category(models.Model):
name = models.CharField(max_length=200, db_index=True)
slug = models.SlugField(max_length=200, db_index=True, unique=True)
image = models.ImageField(upload_to='category', blank=True, n... | [
"andrey.ivanyutin@gmail.com"
] | andrey.ivanyutin@gmail.com |
964276026958767292e65a825344e9d65be28f17 | aedc785e2666674aa638e09b39f990956e01e546 | /src/testoob/running/processed_helper.py | ce9c99487e3afb02b805b3964c4a4035cd146d2f | [
"Apache-2.0"
] | permissive | callmewilko/testoob | 9be21f2b0d6b6a95cb6a0e14918c55e6e9c1593f | b71b53c15d1b0a736ab40dbad4255e0984968373 | refs/heads/master | 2020-04-04T08:00:35.098595 | 2018-11-05T16:41:10 | 2018-11-05T16:41:10 | 155,756,643 | 0 | 0 | null | 2018-11-01T18:20:24 | 2018-11-01T18:13:15 | Python | UTF-8 | Python | false | false | 1,616 | py | # Testoob, Python Testing Out Of (The) Box
# Copyright (C) 2005-2006 The Testoob Team
#
# 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
#
# Un... | [
""
] | |
37c86035036c62d52190241df1ef24d041718a06 | 35212726c5c6d60eb48660068c962eeebea3353f | /utils/options/example.py | b1e24cce6a10d3ffa407ad7a1f94a33b54562f5a | [] | no_license | frankfralick/Charted | 5dfaa8c2e56f239c89d107ed5722d3d30cefa074 | 3ee6053549074da03f8c9881baf5b44d8d1c81ac | refs/heads/master | 2021-01-10T19:37:04.746769 | 2013-06-20T15:43:30 | 2013-06-20T15:43:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,136 | py | """
Demonstration code used in, or while writing, the documentation.
"""
from options import Options, attrs, Unset
class ClassicShape(object):
name = 'Shapes Rule!'
color = 'purple'
height = 50
width = 50
def __init__(self, name=None, color='white', height=10, width=10):
self.nam... | [
"frankfralick@gmail.com"
] | frankfralick@gmail.com |
ff224afdc46082bd19994708a0dc8289239eb5e4 | 9bc0d33e1c3454393ea74d85b531801d6aa28a55 | /baselines/duet/test_ranking.py | 20ddb3c6a7f5158fc67751c3eb22e468eb15f604 | [
"MIT"
] | permissive | skallumadi/mnsrf_ranking_suggestion | 4c604ce5fc394c6d1d1efebb68af08bd2349c696 | 37cbf55d27e8595b990c0a66449e7bfe3027cc8c | refs/heads/master | 2021-01-25T14:03:23.465568 | 2017-10-09T06:40:10 | 2017-10-09T06:40:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,189 | py | ###############################################################################
# Author: Wasi Ahmad
# Project: https://www.microsoft.com/en-us/research/wp-content/uploads/2016/10/wwwfp0192-mitra.pdf
# Date Created: 7/23/2017
#
# File Description: This script evaluates test ranking performance.
##################... | [
"wasiahmad@ucla.edu"
] | wasiahmad@ucla.edu |
5570cc0247c6ea3b0cdc3dc2629e40b676e7e7e7 | 02ec15c829f1755fb7981c561a40c8f4a968a028 | /corn/consumption.py | 5e852833107ff9c83d9df7d77a7a7a7763de6f50 | [
"MIT"
] | permissive | UGA-BSAIL/Corn-Segmentation | 0cf2b4beadf99c0f0ecf679264a50892188e6d14 | 79df856e3fc487508e24e9821e5ca49911064c73 | refs/heads/master | 2023-02-19T01:52:48.751927 | 2021-01-17T23:13:57 | 2021-01-17T23:13:57 | 250,403,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,312 | py | # -*- coding: utf-8 -*-
"""
@purpose: This file is used for batch detection of images using all models.
@input: Add all Model paths to "weights" list, and test image directory path "strDirectory".
@output: Masked images along with percent consumption will be saved under output/ directory. A matlab file will be created ... | [
"noreply@github.com"
] | UGA-BSAIL.noreply@github.com |
8dcc2947e1a739ffad867c6bf674d20d81008c49 | 0abd812a50ba3330734fcbb0088a74c5ad6735a2 | /python/utf8_for_emojis.py | 695f4f879e0986f5202ac4876ea2878fd0bf97aa | [] | no_license | scMarth/Learning | a914af6f6327454234e5f98dfc8cf95d6d4f8077 | ae696461c2c8edc9944879503cce01d525cf4ce0 | refs/heads/master | 2023-08-03T05:13:03.162533 | 2023-07-28T22:58:51 | 2023-07-28T22:58:51 | 120,689,926 | 2 | 0 | null | 2022-12-11T13:14:07 | 2018-02-08T00:33:42 | JavaScript | UTF-8 | Python | false | false | 3,984 | py | # convert json to csv
import arcpy, os, shutil, numpy, json, codecs
fields = {
'request' : [ \
'id', \
'master', \
'addDate', \
'addDateUnix', \
'lastAction', \
'lastActionUnix', \
'dept', \
'displayDate', \
'displayLastAction', \
'st... | [
"vlantaca@gmail.com"
] | vlantaca@gmail.com |
2b8f12babeff6dcb5935f88b5bbc52db63205ad7 | 3b1a27c72024dc6ac932b39df28d2fb3a6e26a5b | /22_sum_floats/sum_floats.py | ac5da9e7fe7bc8d0012faf56b9f8f6f6c2894334 | [] | no_license | petermoyano/py_ds | 423f95dd5ae308343e52db9a7178936062c8ce36 | 3b1ff9880a8a1c08ee1061c2f239be31c167a0fc | refs/heads/master | 2023-07-18T05:43:07.387039 | 2021-09-07T23:21:58 | 2021-09-07T23:21:58 | 402,805,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | def sum_floats(nums):
"""Return sum of floating point numbers in nums.
>>> sum_floats([1.5, 2.4, 'awesome', [], 1])
3.9
>>> sum_floats([1, 2, 3])
0
"""
# hint: to find out if something is a float, you should use the
# "isinstance" function --- research how ... | [
"pedromoyano454@gmail.com"
] | pedromoyano454@gmail.com |
1c9e3b879141282edd5569d79e16594bb83d4f29 | f51ac19ce4d1df15eba02c4b3481533087d5ef9e | /day03/xiaohuar/start.py | 06058cbe787a1bb3530230ff1fa09be09169f548 | [] | no_license | disenQF/xpy903_scrapy | c9e0818f4ad08614f933ec800d680439e3f22ea6 | 7fd1f89f2cbf046b59774071c48801dfc3c5b54d | refs/heads/master | 2022-08-09T13:53:10.104037 | 2019-09-27T09:06:15 | 2019-09-27T09:06:15 | 210,261,888 | 1 | 0 | null | 2022-07-29T22:35:50 | 2019-09-23T04:05:10 | Python | UTF-8 | Python | false | false | 156 | py | #!/usr/bin/python3
# coding: utf-8
from scrapy import cmdline
if __name__ == '__main__':
cmdline.execute(['scrapy', 'crawl', 'hua', '-o', 'hua.json']) | [
"610039018@qq.com"
] | 610039018@qq.com |
95141bfe82d59cd91b74d094bbf932c628c5c5be | 04d76de80ac3d57c6b7428cfed3d86f85cef3ab5 | /Week-4-Good-Programming-Practices/Problem_Set_4/Problem 2 - Dealing with Hands.py | 89c250947d83b8c8b29ec2b5484cb6273e1737f9 | [] | no_license | ojwills/MIT-6.00.1x-Intro-to-CS-and-Python | 2d1e7bfff3af302ffb7377528e81c5e423dd36aa | e92a8421e8967d4f482868334bdb16e0aaf0fea8 | refs/heads/master | 2022-06-24T19:36:13.595243 | 2020-05-09T16:57:18 | 2020-05-09T16:57:18 | 139,490,535 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,712 | py | #Problem 2 - Dealing with Hands
#10.0/10.0 points (graded)
#**Please read this problem entirely!!** The majority of this problem consists of learning how to read code, which is an incredibly useful and important skill. At the end, you will implement a short function. Be sure to take your time on this problem - it may... | [
"noreply@github.com"
] | ojwills.noreply@github.com |
17e914aac8110ab19e8448f67594dcc2b1be380c | cee96536d5115a20bd271d7ff5626da496197ac6 | /test_coco.py | ce245527e8ec25e646dbf982ae9dda955ca58fb4 | [] | no_license | YaojwDefgun/new-YOLOv1_PyTorch | 0855a8b0dcf8960057ccf82dcf341f480069a789 | f81b1b033fe2ad9a62bd61ad0bab0f47a4463f42 | refs/heads/master | 2023-01-03T21:28:34.243705 | 2020-10-22T12:21:31 | 2020-10-22T12:21:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,138 | py | import os
import argparse
import torch
import torch.nn as nn
import torch.backends.cudnn as cudnn
from data.cocodataset import *
from data import config, BaseTransform, VOCAnnotationTransform, VOCDetection, VOC_ROOT, VOC_CLASSES
import numpy as np
import cv2
import time
from decimal import *
parser = argparse.Argume... | [
"1394571815@qq.com"
] | 1394571815@qq.com |
d5ccdd17e5f6a90bc2827ddfac825f3f325a9b19 | 11ef04d5323d2972429adc93ca3795f4c9b3ca35 | /blog/views.py | cbf3e15b60fcf326667bb452194741102230c997 | [] | no_license | ZveRuss/my-blog | b976895cc89f2896c39cfb45c2e4bcb13f4a3393 | 46913b368d13d6a724ae25278d3b43d3695c02ca | refs/heads/master | 2020-04-15T16:44:39.905856 | 2019-01-11T08:59:27 | 2019-01-11T08:59:27 | 164,848,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | from django.shortcuts import render
from .models import Post
from django.utils import timezone
# Create your views here.
def post_list(request):
posts = Post.objects.filter(published_date__lte=timezone.now()).order_by('published_date')
return render(request, 'blog/post_list.html', {'posts': posts})
votes =... | [
"jack8644@yandex.ru"
] | jack8644@yandex.ru |
544f012ed613c50b88a731844aa93e3c38e64a57 | 79047f578878605269c454b05a43e7fb085dbe48 | /fairseq/playaround.py | 76821ecd0a59bace39acbd2cc08c31c94be313c2 | [
"MIT"
] | permissive | PANhuihuihuihui/NLP | 463249d7a7e374cf157096785363becd5da850eb | 9b00d54ad3e64355f02feeb4f045cacf7fca0bc9 | refs/heads/main | 2023-06-06T03:55:36.571861 | 2021-06-29T06:12:48 | 2021-06-29T06:12:48 | 330,099,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80 | py | import pandas as pd
import numpy as np
df = pd.read_csv('../input/alldata.csv') | [
"phjhk@connect.hku.hk"
] | phjhk@connect.hku.hk |
954aed060f4c9eddef7723e818e80e360517b911 | 7d6cb605a02dff3031da0bc6a334fdf9f0579412 | /Project/nn trim and preprocessed/muti_layer_nn.py | ec1d62419cb8c0181e7fe1dd5b192f402c5f26f1 | [] | no_license | 18369766918/Matthew_Project | f98fc4aec156e8920521863b25abf805649cf5c5 | 938a5b20865f842ef8695b2a0413ece31766fe00 | refs/heads/master | 2020-12-30T16:58:47.804504 | 2017-05-12T21:16:00 | 2017-05-12T21:16:00 | 91,042,943 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,203 | py | import tensorflow as tf
import numpy as np
from math import exp
from LoadDataSet import load_and_process_training_Data,load_and_process_test_data
tf.set_random_seed(0)
# Get all pre processed data
# load training data, test data
#train_x,train_y= load_and_process_training_Data('targfeatures_train.txt','nontarg... | [
"matthew@desktop-jo4saar.algomau.auc.ca"
] | matthew@desktop-jo4saar.algomau.auc.ca |
93fe75d32ccb18339ef6ff1b37d1cfbe0b3c0c1e | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_2/dlymuh001/question2.py | 34d73fd549c0a400164a5301a2e7cc2b38ba5c3b | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,297 | py | def cat():
lick = input("Did the cat lick it? (yes/no)\n")
if (lick == "yes"):
healthy = input("Is your cat healthy? (yes/no)\n")
if (healthy == "yes"):
return "Eat it"
elif (healthy == "no"):
return "Your call"
elif (lick == "no"):
return "Ea... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.