blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
54711c7dd2324bbcab304447d698604a428107b0 | 9bbc2f3f4f69296ee9aef2970a0d7d7c4a2ab2ee | /Video Capture/video_stream_opencv-master/cfg/VideoStream.cfg | 272c16323b99f5d4e09e299c2b1bcd773ad9af6f | [] | no_license | rubis-lab/SML | 6b9702f6f13dbc779bfab34640052fdfc63127f0 | b3bbe6f9ff6967890dfce47ce9496f267ed909bc | refs/heads/master | 2020-04-26T22:59:44.709888 | 2019-09-02T17:14:19 | 2019-09-02T17:14:19 | 173,889,450 | 3 | 2 | null | 2019-03-07T12:09:12 | 2019-03-05T06:37:05 | C++ | UTF-8 | Python | false | false | 1,519 | cfg | #!/usr/bin/env python
from dynamic_reconfigure.parameter_generator_catkin import *
PKG = "video_stream_opencv"
gen = ParameterGenerator()
# name type level description default min max
gen.add("camera_name", str_t, 0, "Camera name", "camera")
gen.add("set_camera_fps", double_t, 0, "Ima... | [
"dohkim119@github.com"
] | dohkim119@github.com |
1c6e1b9c12df767cb7a6b9f2532ec92383cd2c87 | 739324fe968beecf2814792c0a85f6690e56a26a | /Codes/Dalily_Flash/Week_2/23Jan/Python/Program1.py | 3babf00ed107d5e5dfc944e100facdbb79e59e38 | [] | no_license | Kunal17sarpatil/kunal_personal | 76e5cd1002c23dc30c1d7d86d495b72992a4c24d | b1c4f8de8b73e34253743deb3c26e00b2b02ef76 | refs/heads/master | 2023-03-22T03:47:46.132195 | 2020-06-17T10:53:19 | 2020-06-17T10:53:19 | 151,773,565 | 0 | 0 | null | 2021-03-20T04:23:24 | 2018-10-05T20:18:31 | Java | UTF-8 | Python | false | false | 91 | py | for row in range(1,5):
for no in range(0,row):
print(row,end=" ")
print();
| [
"hawkeye@pop-os.localdomain"
] | hawkeye@pop-os.localdomain |
e781d00d0e62eba41dfcc5c1dbf741b1d1c2e5d3 | 3b40c1bc2a0616ae2ad1ab94f4b8c68ac43c5cb3 | /AmazonSpider/AmazonSpider/spiders/Amazon_spider.py | bc88f030efa0c3cacf552051d866105abf926021 | [] | no_license | clamli/Amazon-Dataset-API | f0341b54bb0bcbd1ee4d42b94485ff18e7d13a55 | ae68be8a5f311d0f6a11a3330b68b97875a46df1 | refs/heads/master | 2020-03-17T01:39:22.903599 | 2018-05-16T13:33:58 | 2018-05-16T13:33:58 | 133,161,573 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | import scrapy
class AmazonSpider(scrapy.Spider):
name = "Amazon"
def start_requests(self):
urls = [
"http://snap.stanford.edu/data/amazon/productGraph/categoryFiles/"
]
for url in urls:
yield scrapy.Request(url=url, callback=self.parse)
def pa... | [
"boyizjuer2017@gmail.com"
] | boyizjuer2017@gmail.com |
fbfb7242f59b6de918bafe71b564c981ed3c02db | decc60052f0d9e8c84bfae731a3a1e4f86da7659 | /classes/Instrument.py | 48c5ea07e8f97388fcef35fbd833b6e95caa0582 | [] | no_license | dxcv/research | 8370c2baac66b098f61424d6e323233f358239e2 | 153d7633f526a5eefd02c650b1c6264e1f93e73b | refs/heads/master | 2020-09-08T16:02:15.130239 | 2019-11-08T15:50:05 | 2019-11-08T15:50:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 721 | py | import pandas as pd
class Instrument(object):
""" Individual Instrument """
def __init__(self, symbol, df_data, target_freq):
self.symbol = symbol
self.raw_data = df_data
self.date_index = df_data.index
self.frequency = target_freq
for key in df_data:
# tod... | [
"28ideas@gmail.com"
] | 28ideas@gmail.com |
9107cc0a1e028e20c237a6840a6fc50e903497c8 | ca18cd3b72d75e3877bcb8ba1fdccd95b188dc46 | /python_set.py | a03e891b245b87e37a4529f809fedac57138f47a | [] | no_license | ramshree123/ramya | e64490ea6828db1ee952bdbbd35034d0ed487885 | 88df88c198d29dcf50ac699962a21d20fc213b30 | refs/heads/master | 2021-05-16T14:09:42.601497 | 2018-03-19T10:01:17 | 2018-03-19T10:01:17 | 118,075,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49 | py | set1={1,2,3,4}
set2={3,4,6,8}
print("set1&set2")
| [
"noreply@github.com"
] | noreply@github.com |
2e73afe47864bd9ebaf4f8f37c8ee656dbe4e152 | 17713d586f680821759b0bba8e25046c2fa6a90b | /build/turtlebot3/turtlebot3_description/catkin_generated/pkg.develspace.context.pc.py | 949b141090dd163690ebe5bdd2ab60d94da91ef9 | [] | no_license | Saipriyavk/Delivery-Robot | fb899a8330815b02de118275dc6d7a1fad70bc8e | 9255791e683b32573227a1877b5fb92f000dfca2 | refs/heads/master | 2023-06-14T16:32:25.444170 | 2021-07-19T21:43:13 | 2021-07-19T21:43:13 | 387,573,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "urdf;xacro".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "turtlebot3_description"
PRO... | [
"saipriya.vk31@gmail.com"
] | saipriya.vk31@gmail.com |
ef10e6dd4322d781b7c31c1a350b7397e6a752ac | 4ee1d690aee51b13091cb2397bcad8254da446f1 | /word_select.py | a23ad1608880d4e6f343eecaa86f7e0cae210973 | [] | no_license | xyl576807077/BackgroundRemove | 4a80752e09d6e3791f22e726cd4eef0154ec1216 | c6df04e764b3fd172caf89a90e53e1da62c077a7 | refs/heads/master | 2020-03-09T23:06:35.023744 | 2018-05-16T02:52:52 | 2018-05-16T02:52:52 | 129,051,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,116 | py | import copy
import json
import os
import sys
import numpy as np
from char_process import *
from langconv import Converter
from select_rule import *
from util import *
class WordSelect:
def __init__(self, label_path, frequency_path):
with open(label_path, 'r') as f:
_ = json.load(f)
... | [
"xyl576807077@gmail.com"
] | xyl576807077@gmail.com |
dd4c5f0cf3d049124539bf2e96145945474a60c3 | 389569a591284a2adcdc38046114e7b1038afd94 | /python-script/trax/main.py | 9c8e8741e2a3e128b672f4596ae761a0f61aea50 | [] | no_license | xytysingle/AnnotationTool | b797daf2fd472f602341b16f24fb1ed9b702aef1 | a217d4376ceee739e0d8c43515c403133982e86e | refs/heads/master | 2020-04-11T18:16:10.438919 | 2019-07-31T10:21:18 | 2019-07-31T10:21:18 | 161,992,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,827 | py | from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.remote.command import Command
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.common.exceptions import TimeoutException, NoSuchElement... | [
"2463072824@qq.com"
] | 2463072824@qq.com |
3835b22d8900c6b757de48417b42a1a6aa1eda45 | ceabe6221dd70ef6b8e25c14dce2943e8732c453 | /keras06_RMSE.py | c2b71a160e31dcdd92def3c84c4dcc7728728c1d | [] | no_license | seheonpark/Keras | 6a68753ba869becb43f3d46146c73701bcccb676 | cbad985b0e80068e0868228998f888c45c84c81a | refs/heads/master | 2020-09-23T01:16:32.819268 | 2019-12-04T11:54:35 | 2019-12-04T11:54:35 | 225,343,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,222 | py | from keras.models import Sequential
from keras.layers import Dense
import numpy as np
x_train = np.array([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])
y_train = np.array([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])
x_test = np.array([11, 12, 13, 14, 15, 16, 17, 18, 19, 20])
y_test = np.array([11, 12, 13, 14, 15, 16, 17, 18, 19, 20])
#... | [
"noreply@github.com"
] | noreply@github.com |
13c272c3444b1b202eff2b15a9ed3f9dac8dbc7b | 6f293744f62c2e1f33250ade7cebfabc8bc24eda | /sentry_a/views.py | ec3227d201756bc62aa9a4d53a895d705ff13d47 | [] | no_license | 40huo/sentry_test | 1026552f8240404a0b1d7d0178c86a35a7e63b4b | cd57a666a41ad67a4b0f39eddd794ca5acdb4e06 | refs/heads/master | 2020-12-07T10:01:27.203541 | 2020-01-09T01:56:06 | 2020-01-09T01:56:06 | 232,698,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | from django.shortcuts import HttpResponse
# Create your views here.
def index(request):
return HttpResponse("hello")
| [
"git@40huo.cn"
] | git@40huo.cn |
8e6782093b61600cbe22a17ae9e9302e33c03002 | 22e88f41deec7cbfda7d6094d514e5941adc218e | /Bag3D_package.V5/delete_dtseq.py | f8471fcac22e82060bad0320ed026852162b42c5 | [] | no_license | SPURc-Lab/NGS-D9 | 6a2df9c96b4a029dd3672bd3189163e7baa3d1dc | 3e0da35912edb5ecf3b8c6b1b7acf1bc7a5853b4 | refs/heads/master | 2021-01-01T15:55:31.348720 | 2015-06-03T08:15:14 | 2015-06-03T08:15:14 | 34,987,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,309 | py | #!/usr/bin/python
# Usage: delete_dtseq.py <Original FASTA format file> <redundant contig name file>
# <Original FASTA format file> e.g. Dt_all_seq.fa
# <redundant contig name file> is the redundant contig name file generated from Program 3: get_gene_model.py, e.g. deleted_dtnames.txt
# Python program to filter the mu... | [
"yaolina@215-244.priv27.nus.edu.sg"
] | yaolina@215-244.priv27.nus.edu.sg |
60a9319cb5e51a72ea6172acb56753d27d908782 | 9aa52f7e5902ea8f4a2810809218d9631446345d | /backend/course/api/v1/serializers.py | 94b376e43c63bba2216fc46a5939adf50d3f51d9 | [] | no_license | crowdbotics-apps/merchandising-plays-21542 | e662e42b8766a2fc24d6e0ab926580de0b580461 | c0298b28a45a617b88984d074af4a69f4ea00700 | refs/heads/master | 2022-12-29T10:31:41.304017 | 2020-10-15T18:39:00 | 2020-10-15T18:39:00 | 304,412,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,622 | py | from rest_framework import serializers
from course.models import (
Recording,
Event,
Subscription,
Course,
Group,
Module,
PaymentMethod,
SubscriptionType,
Enrollment,
Lesson,
Category,
)
class GroupSerializer(serializers.ModelSerializer):
class Meta:
model = Gro... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
964ebf4b9298853c334657ff5e86b55de08c732c | 33cc5bd288a4f98be57df6ac880d49ab9937f9e7 | /examples.py | 0dcb1b9bbc3670a7a148b9f28110a7b9bfbd95ee | [] | no_license | stefantalpalaru/morelia-pcre | d848d69aab718a27c72ddca6ee5c2a803fd270bc | 814b0b664d3a449889698775e5f1e40217ba77c1 | refs/heads/master | 2021-01-01T17:47:21.614705 | 2015-07-05T17:58:02 | 2015-07-05T17:58:02 | 4,858,206 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 710 | py | #!/usr/bin/env python
import pcre
from pprint import pprint
pattern = r'(?<sna>fo{2})b'
subject = 'foobar FoObaz'
options = pcre.PCRE_CASELESS
compiled = pcre.pcre_compile(pattern, options)
extra = pcre.pcre_study(compiled)
result = pcre.pcre_exec(compiled, subject, extra=extra)
# find the first match
print('%d mat... | [
"stefantalpalaru@yahoo.com"
] | stefantalpalaru@yahoo.com |
0925941fe477c086703afaa2c02bab0a1f36fd82 | 50c1f7e4a3084ecd0ef72c9b20f8ea218cebe14c | /movie/urls.py | 85d544f939f483dd2237188e0c01883acb0a8856 | [] | no_license | rahulshivan05/Coder | 922240a494207d0fcf1a553d1749eb7c09c6425b | 79340971c4c1ac3123e5a65fc9fb423f87eac972 | refs/heads/main | 2023-02-17T13:50:51.491016 | 2021-01-13T15:55:22 | 2021-01-13T15:55:22 | 329,347,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
from django.conf.urls.i18n import i18n_patterns
from django.utils.translation import gettext_lazy as _
from .views import *
from .import views
urlpatterns = [
path('', views.movie, name='movie'),
#... | [
"rahulshivan05@gmail.com"
] | rahulshivan05@gmail.com |
5222fa56f1244047dbb221e092b2f2d0ca6f8e32 | e88436ade391f11aa69138056d926a15bd335ab8 | /home/views.py | c80486e77d5f1712c6c643efac5051f938625f28 | [
"Apache-2.0"
] | permissive | Ethan-Jeong/Django | a492a6c4f5af373e18015db560c03707adfb420b | 01268256f782bc7ca36b8f7116380309def97ea5 | refs/heads/master | 2023-06-24T13:39:27.662976 | 2021-07-29T07:58:35 | 2021-07-29T07:58:35 | 384,298,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | from django.shortcuts import render
# Create your views here.
from django.http import HttpResponse
def index(request):
path = request.path
resultstr = ''
if path == '/home':
resultstr = '<h1>여기는 Home 입니다.</h1>'
else:
resultstr = '<h1>여기는 master 입니다.</h1>'
return HttpResponse(resul... | [
"jds88guy@gmail.com"
] | jds88guy@gmail.com |
35c3037b8282d6a32e0538752d0f07e27be1b439 | f6dd42c6e7cef402c08bccd92c9a0fd3423eded9 | /ex015.py | 53540053af3f85482fdc757dfc8d7f59c5d0e765 | [] | no_license | ronicson/ronicson | 3e122e6fa8a534abc1799ef765ec85323b71f451 | 74b5738bc7467b7f25451d33e9c16f7a733731ea | refs/heads/master | 2023-07-14T23:24:09.419400 | 2021-08-25T18:17:59 | 2021-08-25T18:17:59 | 390,477,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | km = float(input('Quantos kilometros você percorreu:'))
d = int(input('Quantos dias você permaneceu com o veiculo:'))
p1 = d * 60
p2 = km * 0.15
print('O valor em diárias é de R${} de kms é de R${:.2f} e total de R${:.2f} a pagar.'.format(p1, p2, p1 + p2))
| [
"ronikism@gmail.com"
] | ronikism@gmail.com |
2543a1e62c58b091daee385222a1fcbed751cfba | 060c40375aee04f1f68352339ffa24eb74da56ef | /read-n-characters-given-read4-2.py | b25c2b8cc6d2362834bf2664b9b04ed6336dff7d | [] | no_license | cannium/leetcode | be7d9bfb3e2a999eabe6c466a5390005656cec2b | 70f16a872cb203f77eeddb812e734ad1d46df79d | refs/heads/master | 2021-01-23T20:14:47.821782 | 2020-04-12T09:34:20 | 2020-04-12T09:34:20 | 18,369,249 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,709 | py | """
The read4 API is already defined for you.
@param buf, a list of characters
@return an integer
def read4(buf):
# Below is an example of how the read4 API can be called.
file = File("abcdefghijk") # File is "abcdefghijk", initially file pointer (fp) points to 'a'
buf = [' '] * 4 # Create buffer with eno... | [
"can@canx.me"
] | can@canx.me |
9f4bf716ff6b31f433999da81b499aaa0e0761c6 | 724f23eaa94c64b9a72abcb6df90b6ed72114a3c | /day1/var1.py | af7bcd99732d01d19b0b9bd467d099b831f631b3 | [] | no_license | wxwssg/leraning_python | e30f65fa65dd95707a7db9c3966b9514b3b1f880 | 282eae1b10ba6e1e3171e86b427a751918f85eae | refs/heads/master | 2020-04-30T08:05:53.941876 | 2019-08-06T08:47:26 | 2019-08-06T08:47:26 | 176,701,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | # -*- coding:utf-8 -*-
# Author:wizard_wang
name1 = 'wizard'
name2 = name1
print('My name is',name1,name2)
#内存指向 name1 指向被修改 但是值改了但是name2还是指向‘wizard’
name1 = 'old wang'
print(name1,name2)
#变量 奇葩使用 中文做变量 只有python3支持
名字 = '奇葩的中文变量'
print(名字)
#python没有常量 大写表示声明常量
NAME = '声明是常量'
print(NAME) | [
"wangxingwu17@qq.com"
] | wangxingwu17@qq.com |
701836e019bed7dc29f4b99b1ca2d9c0b7724046 | c929fe7a8983f162345ce8a9a5f2bd038c94db65 | /Track2/videowalk/code/utils_videowalk/visualize.py | e01642585e73132e56b1612367e229f950006990 | [] | no_license | YJingyu/UVO_Challenge | 7078cfb3482174badeaa0f708e4b5cb2fde0e299 | 78d1cb6d9299218fae08682e5e081eacbac29e4b | refs/heads/main | 2023-08-29T03:56:34.878106 | 2021-10-29T14:53:49 | 2021-10-29T14:53:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,772 | py | # Video's features
import numpy as np
from sklearn.decomposition import PCA
import cv2
import imageio as io
import visdom
import time
import PIL
import torchvision
import torch
import matplotlib.pyplot as plt
from matplotlib import cm
def pca_feats(ff, K=1, solver='auto', whiten=True, img_normalize=True):
## ex... | [
"dulucas24@gmail.com"
] | dulucas24@gmail.com |
462ff12ed72a87b6f46032cc0eeb6fd1d11f6baf | af669dbef653dd69474f4c0836582bf14262c80f | /price-test/frame/lib/commonlib/configure/configunit.py | d59369edd113378ff64e2167f6f76406ff180d06 | [] | no_license | siki320/fishtest | 7a3f91639d8d4cee624adc1d4d05563611b435e9 | 7c3f024192e1c48214b53bc45105bdf9e746a013 | refs/heads/master | 2021-01-19T21:58:36.807126 | 2017-04-19T09:56:37 | 2017-04-19T09:56:37 | 88,729,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 745 | py | #!/usr/bin/env python
# -*- coding: GB18030 -*-
'''
Created on 2012-3-10
@author: tongdangdang
'''
class ConfigUnit(object):
'''
@author: tongdangdang
@summary: ub conf configure unit
'''
def __init__(self,key,value,father,note = ""):
self.key = key
self.value = value
self.... | [
"lisiqi_i@didichuxing.com"
] | lisiqi_i@didichuxing.com |
9f7caf4fed95bc81250d025326f45ff1780ff678 | 0a995834cfd7cce1defc2e0e5e0bee8103dca2b5 | /luffy_permission/rbac/views/role.py | 7654a58cd7c5a0575b3ef191abdf7e8c98d3e419 | [] | no_license | mling17/rbac | 9bcbc6e3c0cfd66d7399a7c9599801ff9271b20e | 969b4e0c52e1eb8bd29cf67b02b26ae5b1203fe1 | refs/heads/master | 2020-11-29T19:30:56.315369 | 2019-12-26T05:05:57 | 2019-12-26T05:05:57 | 230,197,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,451 | py | from django.shortcuts import render, redirect, HttpResponse
from django.urls import reverse
from rbac import models
from rbac.forms.role import RoleModelForm
def role_list(request):
if request.method == 'GET':
roles = models.Role.objects.all()
return render(request, 'rbac/role_list.html', {'roles'... | [
"mling17@163.com"
] | mling17@163.com |
033635d8b06972430571c7945b9aca52940092cf | 073affd8807eb668f9e7013414a9cc39a6c34f26 | /endgame.py | 68cdc9087984a18a713aa9218c2371b002ef0439 | [] | no_license | dencynluv/Hangman | fca2a972f07cf23b96a75f15661df168b6fc92ee | 36ba194ed0f602a996b36fe45f3a17a94af3555e | refs/heads/master | 2021-01-19T11:53:15.145780 | 2017-02-21T08:39:04 | 2017-02-21T08:39:04 | 82,270,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | # end game module
# imports global variables needed into this module
from setup import good_letters, bad_letters, unique_letters, secret_word, guess_limit
# function to end the game
def is_game_over():
# both lists have to match in length in order to win the game
# or else
# bad letters and the guess lim... | [
"sotocyn@gmail.com"
] | sotocyn@gmail.com |
da255a406ffda289b1c78e5f386fd921f2efbcdd | abe02872257b18a9ad6179a057be71fe04825587 | /task_1/svm/SVM.py | 33340e6abb0e1a75b50ef17f52c0822adb0b7b56 | [] | no_license | georgeahill/tdads | 98924b9b28b826a8bbf1e374a2e1cb12db878c99 | dd7b1742452c205aca2f2abb603bd65be3807721 | refs/heads/master | 2023-03-13T09:28:29.215662 | 2021-03-03T22:20:29 | 2021-03-03T22:20:29 | 274,945,760 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,139 | py | # Preprocesses the dataset using PCA, and increasing image contrast
import numpy as np
from sklearn import svm
from sklearn.decomposition import PCA
# The threshold at which a colour value is increased instead of reduced
# These values were calculated using manual testing
CONTRAST_THRESHOLD = 70 # 70
CONTRAST_REDUCTIO... | [
"oliver.little12@gmail.com"
] | oliver.little12@gmail.com |
0c9ea3acd8dfbd941580cf0d8e50eff68889ee0b | 6c56f13050a3a8c1208030bb96e5a9dddeabd584 | /experiment/cpu_predictions_likelyhood_final_adaptation/nupic_output.py | aaaa36eb45b4a56edfe8fc530767497676dfbd8b | [] | no_license | baselm/self-healing-latex | 089dd97dbc818f65e176d977a65a6fea469684b8 | b43d5fa117aa40e9d4cf256f62f7945391d8681e | refs/heads/master | 2020-03-29T12:51:57.235243 | 2018-12-30T11:47:01 | 2018-12-30T11:47:01 | 149,924,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,438 | py | # ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2013, Numenta, Inc. Unless you have an agreement
# with Numenta, Inc., for a separate license for this software code, the
# following terms and conditions apply:
#
# This progra... | [
"baz@Basels-MacBook-Pro.local"
] | baz@Basels-MacBook-Pro.local |
88ff3ce0379daf9f75d75ac23c9191cfe9db7fb9 | d61c8fed77acfb0b977425a7cb9bbbb6983bfd17 | /blog/forms.py | cc95e11a08a2770858a0e67065adefc525aaea9a | [] | no_license | soukaina-debug/CodeStorm | cc6fcf9bc9e0209a37c2dc87b985a73c65d4dbe4 | b5a02a4520b05e4a0004c4ce62e474fca1821ac6 | refs/heads/master | 2023-08-10T20:31:18.182705 | 2021-09-29T09:42:30 | 2021-09-29T09:42:30 | 411,614,438 | 1 | 0 | null | 2021-09-29T09:41:40 | 2021-09-29T09:41:39 | null | UTF-8 | Python | false | false | 257 | py | from django import forms
from .models import Doubt,Reply
class DoubtForm(forms.ModelForm):
class Meta:
model = Doubt
fields = ['ask']
class ReplyForm(forms.ModelForm):
class Meta:
model = Reply
fields = ['reply']
| [
"apurvaajmera10@gmail.com"
] | apurvaajmera10@gmail.com |
8bc1f3af1ca811d884a225dbd76851c0ad13c46a | 1da15a0ec8eb771d4584b3997d44d2af23d53484 | /D3/1220.Magnetic.py | 2da7b7c711faaafaf1586b556cbc79aeea42fe62 | [] | no_license | cdh3261/Algorithm_Problems | 1e9ad0310490ffe5396f8cef3205885d62ebefb7 | d9ad791e9a0bcdd1c13b8e18fa993b784a53b064 | refs/heads/master | 2020-08-29T07:27:04.331917 | 2020-03-06T11:33:57 | 2020-03-06T11:33:57 | 217,966,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | ####### N극 #######
####### S극 #######
for t in range(1, 11):
n = int(input())
arr = [list(map(int, input().split())) for i in range(n)]
col = []
for i in range(n):
a = []
for j in range(n):
if arr[j][i] != 0:
a.append(arr[j][i])
col.appe... | [
"cdh3261@naver.com"
] | cdh3261@naver.com |
caf4b456838e4066cfe9191405c63b482a8eda64 | 036f11eaae82a9c7838580d141375ab3c03f739a | /unsupervised-semantic-audio-embeddings/main.py | 53c20702308eebe08c34ffa43db3737d513dda3c | [] | no_license | silvadirceu/experiments | 8b6f1739a51803f73da89c137d07871505ddf712 | 2390392726a43aa5587e02d8ee2a423cf281463c | refs/heads/master | 2022-02-19T11:18:52.485742 | 2019-09-26T14:43:51 | 2019-09-26T14:43:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,422 | py | from __future__ import division, print_function
import zounds
import argparse
from data import dataset
from deformations import make_pitch_shift, make_time_stretch, additive_noise
from training_data import TripletSampler
from train import Trainer
from network import EmbeddingNetwork
import torch
import numpy as np
impo... | [
"john.vinyard@gmail.com"
] | john.vinyard@gmail.com |
ef1b5e460b554cf63dd75e50f5f716da3096df96 | 9b483cba8b680c280becd611e136329724b4d4fb | /t_rank.py | 8d07e469f4fd931ed079ca1d0dfc34a2178e6d64 | [] | no_license | dmlicht/FMAssembler | eac29ab82ff81dac196e738b0ba4fe53085c4b2e | 3842390ea3be7cb7d9de1356a0f2a116a965023b | refs/heads/master | 2021-01-01T20:16:26.243439 | 2016-12-18T22:55:18 | 2016-12-18T22:55:18 | 8,988,810 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,362 | py | class TRank(object):
"""Maintains checkpoints of t-ranks for last row in BW matrix
values of characters at checkpoint is 0 if character has not been seen at all"""
def __init__(self, bwt, characters, cp_interval=4):
self.checkpoints = {}
self.characters = characters
self.bwt = bwt
... | [
"Dlichte5@jhu.edu"
] | Dlichte5@jhu.edu |
ad673bc733be8c44e976879669998549baebfa69 | 9180b7c014860820ea28af5876d374c935a8c8d3 | /01.flask/05.static.py | 5ec4c9832c93e58ed58152ba44237f616df0cac0 | [] | no_license | leele91/flask-web | 05d2ce3769b1c0a7196c828acfa3b35072fd7c97 | 7c66205d09cbcc1b044ad31e1ea6a7e882727afb | refs/heads/main | 2023-03-10T21:15:04.997561 | 2021-02-26T06:47:15 | 2021-02-26T06:47:15 | 320,127,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | from flask import Flask, render_template
import os
app = Flask(__name__)
@app.route('/')
def index():
img_file = os.path.join(app.root_path, 'static/img/cat.jpg')
mtime =int(os.stat(img_file).st_mtime)
return render_template('05.index.htm', mtime = mtime) # mtime를 넣어주면 이미지경로가 바뀔때마다 리플레쉬됨 /html에도 동일적용
if _... | [
"wlsduddl013@gmail.com"
] | wlsduddl013@gmail.com |
1275d2dfcb26f9a06de524ae94252ec4c0261fcb | b6df9e7962725e6b4dda7873576a1bc23f748d93 | /.history/crawling_20210906175955.py | d7af46376b00aacfd63666971793f5d6ccf0b9dd | [
"MIT"
] | permissive | jk7g14/keywordcount | 8500288c0d248fc7b9227897170b8d50c8eaf0c6 | 89187bd865716a8cb8a1f50bc80265a2edf95cea | refs/heads/main | 2023-07-21T20:22:05.016630 | 2021-09-08T00:34:10 | 2021-09-08T00:34:10 | 403,511,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,250 | py | from requests_html import HTML, HTMLSession
from time import sleep
import csv
import datetime
file = open(f'data-{datetime.datetime.now()}', 'w', newline='')
writer = csv.writer(file)
writer.writerow(["name", "date", "content"])
session = HTMLSession()
url = 'https://www.ybtour.co.kr/promotion/incRepList.yb'
data =... | [
"llyppp@revhat.com"
] | llyppp@revhat.com |
3a9ee750bfdb695244f25d1a4fe174c316d25b0b | 0125394835e95f5fb4b47ec2a1bc7d5a555b81c4 | /card_layout test.py | db268c3417a9c214541f02a291029381766e7690 | [] | no_license | jayesh59/05-Blackjack | a7c91214bcba446eb2e48502ba5e55ff90ecd344 | ee75275fcc5fcc04b9bca18e40585106ee824ecb | refs/heads/master | 2023-04-13T22:43:38.336361 | 2021-04-27T03:02:45 | 2021-04-27T03:02:45 | 257,320,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,097 | py | import cv2
import numpy as np
import matplotlib.pyplot as plt
#Initiation:
Spade = cv2.imread('Spade.jpg')
Diamond = cv2.imread('Diamond.jpg')
Club = cv2.imread('Club.jpg')
Heart = cv2.imread('Heart.jpg')
shapes = [Spade, Diamond, Club, Heart]
for s in shapes: _, s = cv2.threshold(s, 127, 255, cv2.THRESH_BINARY)
res... | [
"51175318+jayesh59@users.noreply.github.com"
] | 51175318+jayesh59@users.noreply.github.com |
4d0eb742be6248d77f5c482bc1869c2dcbcc2143 | bb1a8acd8b17b687e6ab5e25628ef11c885b9735 | /wc_script/mots_dans_codes_fiscaux.py | c4e49aab1c8ee51a7357b3643dff75b64ad04be5 | [] | no_license | adrienpacifico/french-law-word-cout | d1e4b99fcb568fa14fd29878b0204503c643680d | dfc960058beb67660a1bbef446321e33b332decc | refs/heads/master | 2021-01-10T14:55:44.653122 | 2015-12-10T17:45:54 | 2015-12-10T17:45:54 | 47,777,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,306 | py | # -*- coding: utf-8 -*-
import os, sys, logging, shutil, ntpath
execution_directory = os.getcwd()
#os.system("pdflatex " + "-output-directory='/Users/adrienpacifico/.tmp_latex'" + " " + '"' + tex_file + '"' )
#TODO : allows for relatives path.
cgi_path = "/Users/adrienpacifico/Informatique/loi_versionne_sous_git/... | [
"adrienpacifico@gmail.com"
] | adrienpacifico@gmail.com |
9aef497bd51f3ca575e9f0400deb92ea47e6ae5f | df3c449a70bc985246e9d6263cebcd685781d05b | /Blink_Detection/blinky.py | e2c5901a077b74cdde7fb7c99f79cba749c0cf39 | [
"MIT"
] | permissive | vaaiibhav/Blink-Detection-using-Webcam-in-Python--and-OPenCV | d800a16125e94ed8816b07f0b8c034a9f0286e71 | d0ab756f6a5088223f18b96f962b711daa08db65 | refs/heads/master | 2022-04-23T22:49:07.915855 | 2020-04-28T14:48:54 | 2020-04-28T14:48:54 | 259,666,059 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,321 | py | #!/usr/bin/env python
"""blinky.py:
Starting point of blinky
"""
import extract
import webcam
import pylab
import numpy as np
def main(args):
# Extract video first
data = webcam.video2csv(args)
edgyBlinks = extract.find_blinks_using_edge(data)
outfile = "%s_blinks_using_edges.csv" % args['video_fi... | [
"vaaiibhav@live.com"
] | vaaiibhav@live.com |
da03b2d8448602dd00e2ae9394f8c2537ee7e71f | b4be1cf1ac616abdf12297b3a69226d98ae8c70b | /src/coboljsonifier/fields/field_alphanumeric_ebcdic.py | 32d18049debfef65a752fc01c42d9a4f6a62b9bf | [] | no_license | jrperin/cobol-copybook.jsonifier | 08dc7cd6d6cb95bcb7e0b59b9db949e490b179a6 | 7aefd72956e3c26456327dcd222723a04a115bf3 | refs/heads/master | 2023-09-01T00:05:08.776147 | 2023-08-22T01:28:11 | 2023-08-22T01:28:11 | 405,270,494 | 13 | 7 | null | 2023-08-22T01:23:17 | 2021-09-11T03:11:16 | Python | UTF-8 | Python | false | false | 482 | py | from .field import Field
class FieldAlphanumericEbcdic(Field):
"""
Composite Pattern - Leaf
"""
def __init__(self, type: str, name: str, size: int):
super(FieldAlphanumericEbcdic, self).__init__(type, name, size, 0)
def parse(self, data_in):
if not data_in:
return
... | [
"jrperin@gmail.com"
] | jrperin@gmail.com |
6debc3f00966a216dd43e092a1d80453f069d876 | cfe737ca092cf949f99af67743e2a935f53baecf | /Natural-Language-Processing_prepprocessing_and_feature_extraction/TFIDF.py | 5ef16440787fbe0ebb5ab28f3b7296ae59f086b4 | [] | no_license | Sakil786/Natural_Language_processing | 409147d9c0fac900265c92724161c53d7a574372 | 0dd11c3c848b92837a73f5bc84e239cf3e36f27f | refs/heads/master | 2022-06-26T22:47:59.125026 | 2020-05-10T14:08:11 | 2020-05-10T14:08:11 | 255,063,391 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,020 | py |
import nltk
paragraph = """I have three visions for India. In 3000 years of our history, people from all over
the world have come and invaded us, captured our lands, conquered our minds.
From Alexander onwards, the Greeks, the Turks, the Moguls, the Portuguese, the British,
... | [
"sakilansari4@gmail.com"
] | sakilansari4@gmail.com |
d93c54dd443bb190b38b1b80e83a4f17d08b5b2d | e8ce8f41f8875b2c76d62a69e2aadd1e2503e4e0 | /Alpaca_Blog_First/Alpaca_Blog_First/urls.py | 1804a2b39b0c81fcd6e3f3693e95a29fa19da504 | [] | no_license | Alpaca-H/Pyweb | 9bdc41c9f10360b54fc5a973a4bd054211b0ef4a | 7e7c6bdde9bf24acb5f7931638e9f734a310ff3b | refs/heads/master | 2020-03-19T18:01:12.586189 | 2018-08-19T13:50:54 | 2018-08-19T13:50:54 | 136,789,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,116 | py | """Alpaca_Blog_First URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
C... | [
"1097690268@qq.com"
] | 1097690268@qq.com |
fe7bb503a0a28eaefde625c1ebbd8c2563154270 | 6d9d83eee49c5729afb3c6b4c3f1013d2e65107b | /05_boarding_pass/solution.py | e5154ae8202d5cae334fa061d10e8b62b695af05 | [] | no_license | jpclark6/advent_of_code_2020 | 7aa706849d159ff9cd9117556588d877a9c98c80 | b7255da50c1d555aa671f87b0d44cdb39777c117 | refs/heads/main | 2023-02-18T14:33:31.408534 | 2021-01-14T22:43:36 | 2021-01-14T22:43:36 | 317,354,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,442 | py | """
Advent of code
Day 5
"""
def parse_row(boarding_pass):
possible_seats = list(range(128))
for rule in boarding_pass[:7]:
if rule == 'F':
possible_seats = possible_seats[:round(len(possible_seats) / 2)]
else:
possible_seats = possible_seats[round(len(possible_seats) / ... | [
"jpclark6@gmail.com"
] | jpclark6@gmail.com |
488a72882522860ee0646184122fed08d6f759bc | 5491c6305d3ce2000ad5a509b845c4e9846f6140 | /lle_isomap_plot.py | 9a81c278df20a4b52388c22ec32106fa2873743c | [] | no_license | Eason-Sun/Effects-Of-Different-Dimensionality-Reductions-On-Image-Data | 468bcaee38a8fbef53503959ebe28451ccf4a6c3 | 9697462eca9834b7f1ec01d48e30692866305854 | refs/heads/master | 2020-07-09T06:37:10.524241 | 2019-08-23T02:58:34 | 2019-08-23T02:58:34 | 203,907,911 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,986 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from matplotlib import offsetbox
from sklearn import manifold
df = pd.read_csv('DataB.csv', index_col=0)
class_matrix = df['gnd'].values
# Slice the data matrix so that only samples in class '3' are taken.
digit_3_df = df.loc[df['gnd'] == 3].copy(... | [
"easonsyx@gmail.com"
] | easonsyx@gmail.com |
ad91cb706816e164109bb744100c0b735da2602a | b8584fd8c5d6f7c44e92aa45c82d63ec79f6ec01 | /main.py | 149d3b22d7efaaf4d4d783f07c8e87b99ea7ff99 | [] | no_license | qcwthu/cnn-relation-extraction-with-ranking-loss | 24b2c37881f5cf6793a2a031df12aa90e98f052a | 3a73c445d3ee9bae6693e60188e7aeb5eb4c7c60 | refs/heads/master | 2022-01-13T22:36:36.918461 | 2019-05-22T08:24:50 | 2019-05-22T08:24:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,253 | py | import torch
import pandas as pd
import numpy as np
import csv
import spacy
import os
import re
from torchtext import data, datasets
import argparse
import train as trains
import model
import datetime
print('parse arguments.')
parser = argparse.ArgumentParser(description='CRCNN text classificer')
# learning
parser.add... | [
"xisikongji2354@gmail.com"
] | xisikongji2354@gmail.com |
b012696da3f84d3dfe7b35af80765087353bc29f | a8aa0624c8367d77079366a16671793978f47716 | /traine_genetic.py | 3542b9d4d11f49c39ac4edfad0392a187d79f0af | [] | no_license | Arty-Facts/battleships | 35a976dddf2224999ea9d99663a24479468ccaee | 5c7ede1d5dd49cd5925d4e3715728222411babfa | refs/heads/master | 2022-11-22T06:01:26.600460 | 2020-03-02T07:10:43 | 2020-03-02T07:10:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,987 | py | from ML.neural_tagger_trainer import train_neural
from ML.nn_agent import NN_Agent
from ML.training_agent import Train
from ML.evaluvate import bench
from lib.world import World
from lib.state import State
from lib.ship import Ship
from config import *
from time import time
from random import shuffle
from pathlib impor... | [
"artal938@student.liu.se"
] | artal938@student.liu.se |
9bde88a2b2416002fb786ff4cd29779e70a3c2e9 | b5be3680c2b3404ec9c6156466b7c276bff0cf01 | /salon/admin.py | 7596574aa4e46d3d86c1088f779911155c0efef1 | [] | no_license | aselya0012777/beauty-salon | e2cf861055fd10d6a6f29fcc8306c4be0199a117 | 86abc8c3c90b494bdd16275051cdab8b4b2493fb | refs/heads/master | 2023-07-13T22:09:16.991190 | 2021-09-04T11:37:11 | 2021-09-04T11:37:11 | 370,702,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 812 | py | from django.contrib import admin
from .models import EmployeeSchedule, Salon, SalonServices,Employee,EmployeeSchedule
@admin.register(Salon)
class SalonAdmin(admin.ModelAdmin):
list_display = ['name', 'address','number','rating']
list_filter = ('name','address', 'rating')
@admin.register(SalonServices)
class ... | [
"aselya.0012@yahoo.com"
] | aselya.0012@yahoo.com |
68630c5fbfab57458f2f69b296ec886ae0ac252a | 869bbe81819d15a5a1bfdf591e909d15d41eba33 | /src/nlp_utils/simple_tokenizer.py | c357607198bd69cc76fed14c4ef35a3a5f1949c0 | [] | no_license | LindaMoreau08/nlp_utils | c6b5899b46760c1306c8bf01028d46444fb81d0e | b32582343b764a94af6630ecde196e5e27773c2c | refs/heads/main | 2023-07-02T06:08:42.412320 | 2021-08-04T08:09:42 | 2021-08-04T08:09:42 | 392,092,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,960 | py | # -*- coding: utf-8 -*-
# TODO: turn this into a class and implement it correctly!
import numpy
import regex
import stopwords
from w3lib.html import replace_entities
lang_stopwords = stopwords.get_stopwords('en')
NORM_prefix = 'norm_'
# TOKEN TYPES (TT_)l
TT_email = 'email'
TT_emoji = 'emoji'
TT_hashtag = 'hashta... | [
"lindamoreau08@gmail.com"
] | lindamoreau08@gmail.com |
dc2b280772e197fed6525ef2bb9002c0ee5025f7 | 6e7463cfc51a2b190a42ea45b416cdcade6cffe8 | /Examenes/E1.3.Final/main.py | c993af08190cc29a774e5422c23db332c32ca9cc | [] | no_license | JoanAndoni/CyPS_2018 | f8b510c0c53b6426831678869549abaad169c056 | 945fe2f335f05ecaf829a53ea25d670c8e8c0bc6 | refs/heads/master | 2020-03-25T16:02:39.900345 | 2018-11-20T23:41:29 | 2018-11-20T23:41:29 | 143,912,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,008 | py | # Joan Andoni Gonzalez Rioz
# A00569929
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from time import sleep
import csv
driver = webdriver.Chrome()
driver.get("http://fiware01.cem.itesm.mx:3000/~certificatec/pronosticos")
driver.find_element_by_id("login_username").send_keys("ariel.g... | [
"mcr_joan@hotmail.com"
] | mcr_joan@hotmail.com |
52258e928c4847ff0ce541f546f10238923ecc97 | 086c483bec404a0aaafdd81dd2eb20760d8b6d90 | /prueba_hilos.py | 0e94a7bdfda78d5ca92d7386c99887699f9d4b22 | [] | no_license | MariaFernandaG/raspberry | 9faa8eaa23c9df2597f22e09d5cd825e3d2614d5 | 176ce4b26ef01007d92740ecacbf47b02844f808 | refs/heads/main | 2023-07-17T12:29:13.281874 | 2021-09-02T20:49:49 | 2021-09-02T20:49:49 | 367,141,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,790 | py | #OXIMETRO, PESA, TEMPERATURA Y ALTURA
#lIBRERIAS
import RPi.GPIO as GPIO
import time
from time import sleep
import serial
import threading
#TEMPERATURA
import board
import adafruit_mlx90614
GPIO.setwarnings(False)
#GPIO Mode (BOARD / BCM)
GPIO.setmode(GPIO.BCM)
#set GPIO Pins
GPIO_TRIGGER = 18
GPIO_ECHO = 24
GPIO_T... | [
"noreply@github.com"
] | noreply@github.com |
6e39adc45883cef0bb9f57391ecb69ad5f28f226 | 77ed9133c4c184a93539d0eea303f2da9e4448cf | /models/CNN/LeNet.py | 0350cd1c51aef3a7d7ecd34a5eadd4fd2e175f43 | [] | no_license | AgFeather/StudyNote | 16e1bc34196cd2bce2ef26aed7eb3010e6adba5e | 4c258e73153cf38a6392937a75fa560b2a6bcc97 | refs/heads/master | 2020-06-22T11:31:10.176663 | 2019-10-10T13:08:49 | 2019-10-10T13:08:49 | 197,707,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,594 | py | import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
IMAGE_SIZE = 28
NUM_CHANNELS = 1
NUM_LABELS = 10
# 第一层卷积层的尺寸和深度
CONV1_DEEP = 32
CONV1_SIZE = 5
# 第二层卷积层的尺寸和深度
CONV2_DEEP = 64
CONV2_SIZE = 5
# 全连接层的节点个数
FC_SIZE = 512
class LeNetModel():
def __init__(self, flags):
self.f... | [
"18843740508@163.com"
] | 18843740508@163.com |
f150726c58233152b08d58900602edbd74120923 | 8f6aa9ac9c8c2e409875bbf36fbc49b3eb37d88b | /enthought/util/updates/info_file.py | 8b990c36ca53d32b4dff8ed8376bbc10a937fb35 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | enthought/etsproxy | 5660cf562c810db2ceb6b592b6c12274bce96d73 | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | refs/heads/master | 2023-03-27T04:51:29.297305 | 2020-12-02T09:05:18 | 2020-12-02T09:05:18 | 1,632,969 | 3 | 1 | NOASSERTION | 2020-12-02T09:05:20 | 2011-04-18T22:29:56 | Python | UTF-8 | Python | false | false | 6,573 | py |
import warnings
warnings.warn("Module is deprecated.", DeprecationWarning)
import md5
import os
import re
import warnings
from xml.etree import ElementTree as ET
#========================================================================
# Regex helpers for parsing file names and validating checksums.
#============... | [
"robert.kern@gmail.com"
] | robert.kern@gmail.com |
a0bcdf633e6f26afa8a550121748d1798216dddb | 7994559f1baad2049751ac3c9d20455115d4a48b | /mySpartaSns/urls.py | c9d7678e8b3cf24e3b52e15eb598cf729615e6b6 | [] | no_license | normaljeon/mySpartaSns | 3f76f95aced89484520a8e6ad626b52ed73bfb6e | f934fac265a413dbcf74b04abde9eacb19ceb276 | refs/heads/main | 2023-06-07T01:40:06.608213 | 2021-06-26T16:13:56 | 2021-06-26T16:13:56 | 380,543,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | """mySpartaSns URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-b... | [
"inputjsh@gmail.com"
] | inputjsh@gmail.com |
fd91de5e21ca19d5f64f3219747ad6809612c353 | 10c40d2a919a69f4a680efffd17e326e25e9e73d | /sigopt/magics.py | d65810ab869a51a5098b128e4a519ada018c39f7 | [
"MIT"
] | permissive | XiaozhiShenNovelis/sigopt-python | 34b8930397bd364376a0daef6baaac7f3d34e8fc | 3ba596cfae37a8f987c61f87055b8081a12aeaf0 | refs/heads/master | 2023-08-23T00:59:19.555102 | 2021-10-19T19:25:57 | 2021-10-19T19:25:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,430 | py | import http
import io
import sys
import yaml
import IPython
from IPython.core.magic import (
Magics,
cell_magic,
magics_class,
)
from .config import config
from .interface import get_connection
from .log_capture import NullStreamMonitor, SystemOutputStreamMonitor
from .run_context import global_run_context
from ... | [
"noreply@github.com"
] | noreply@github.com |
0cf7cd7851932bf83ba266a23941fc3516d97cab | 722905ff407bbabcfe9c3a0b1f848ef3bb7a9571 | /randomforest1.py | 8bf8cf1c364c09a6cd292713d3bb6697559f92be | [] | no_license | Anupwilson/datascience-python_code | 469d4178ab3b272e84d67b953b632c36438ab0c2 | 5e067248866c241dc1ece30044540e8a969196e0 | refs/heads/main | 2023-04-01T17:06:21.993684 | 2021-04-23T16:10:07 | 2021-04-23T16:10:07 | 309,037,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,231 | py | import pandas as pd
import streamlit as st
from sklearn.ensemble import RandomForestClassifier
st.title('Model Deployment: random forest classifier')
st.sidebar.header('User Input Parameters')
def user_input_features():
CALLERID = st.sidebar.number_input("Insert the callerid")
OPENBY = st.sidebar... | [
"noreply@github.com"
] | noreply@github.com |
d4b0ecde11724f063f3638035d6adf52935d4f31 | 211f7fab75d54945e98be68974d35ff2ab8ac94a | /client/constants.py | fd9e555539f15c3e61b257342c9a62ddd2a26e7b | [
"MIT"
] | permissive | heni/rem | de0693e7dbdf63539b564ca7923860c3b56d9fff | 7472bc3b106f512355cfc2ca646e8290d19661c6 | refs/heads/master | 2022-02-23T15:06:59.926472 | 2022-01-19T11:52:42 | 2022-01-19T11:52:42 | 9,545,619 | 15 | 6 | null | 2015-11-17T05:33:49 | 2013-04-19T13:05:55 | Python | UTF-8 | Python | false | false | 297 | py | #for Job class
#one week
NOTIFICATION_TIMEOUT = 604800
#two weeks
KILL_JOB_DEFAULT_TIMEOUT = 1209600
#Packet`s names policy
IGNORE_DUPLICATE_NAMES_POLICY = 0b001
WARN_DUPLICATE_NAMES_POLICY = 0b010
DENY_DUPLICATE_NAMES_POLICY = 0b100
DEFAULT_DUPLICATE_NAMES_POLICY = DENY_DUPLICATE_NAMES_POLICY
| [
"lexplua@41d65440-b5be-11dd-afe3-b2e846d9b4f8"
] | lexplua@41d65440-b5be-11dd-afe3-b2e846d9b4f8 |
e1d6a76f3ee7691607e6831868d4cd7850d105a8 | 60cde9d4107b3bb5724ec36618af4b4ecd692165 | /camera.py | 6a2f93f5e942721d3bb04ce5cbb64fdbe2e7022a | [] | no_license | Yemy/security-camera-in-python | 54cc176170c20c9b67dedefe037ced7410beb0d2 | eb9b2a3b549045c5980b12a50c9b43c143659e4a | refs/heads/main | 2023-08-02T16:56:27.780886 | 2021-10-09T10:41:52 | 2021-10-09T10:41:52 | 415,277,859 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | import cv2
capture = cv2.VideoCapture("http://192.168.1.5:8080/video")
while True:
_, frame = capture.read()
gray = cv2.cvtColor(frame, cv2.COLOR_RGB2GRAY)
mirror = cv2.flip(gray, -1)
cv2.imshow('Live', mirror)
if cv2.waitKey(1) == ord("q"):
break
capture.release()
cv2.destroyAllWindows()
| [
"yemybold@gmail.com"
] | yemybold@gmail.com |
fe0fe5ceb581258a2127b48eb65b8201e67adcf1 | 2310bf22a57aae02b09866169ca228a04a160fa3 | /pysfOp/vsGraphOp.py | 686ac1fba2c5b6e905c832cc58f0a307f1e2e4d0 | [] | no_license | lobosKobayashi/PythonSfCp932 | e16f8e94c38cea89879021b3ae4378f37a39e5e1 | 78127ce59cadc54e291d5e0afd4440240be630a1 | refs/heads/master | 2021-01-23T13:42:08.187821 | 2017-01-03T20:21:38 | 2017-01-03T20:21:38 | 11,274,335 | 0 | 0 | null | null | null | null | SHIFT_JIS | Python | false | false | 8,733 | py | # -*- encoding: cp932 -*-
from __future__ import division
"""'
english:
PythonSf pysfOp\vsGraphOp.py
https://github.com/lobosKobayashi
http://lobosKobayashi.github.com/
Copyright 2016, Kenji Kobayashi
All program codes in this file was designed by kVerifierLab Kenji Kobayashi
I release sou... | [
"lobosKobayashi@gmail.com"
] | lobosKobayashi@gmail.com |
fe619f1da9f99173a18dd7df28146699dca5644e | e133ce013b0a3ca56120db66a95884f464308f2f | /learning_logs/forms.py | 102a5d3d7097bca6f7bca5bc17359a91f583d6f9 | [] | no_license | zhouyl02/learninglogs | 27e2ec011cbc3c27db46c66ed42aa849186e1c81 | d23ad9a0bfc72c813140bca07a898ee1e22293a8 | refs/heads/master | 2021-04-01T13:23:45.175845 | 2020-12-04T12:30:54 | 2020-12-04T12:30:54 | 124,403,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 333 | py | from django import forms
from .models import Topic, Entry
class TopicForm(forms.ModelForm):
class Meta:
model = Topic
fields = ['text']
labels = {'text': ''}
class EntryForm(forms.ModelForm):
class Meta:
model = Entry
fields = ['text']
labels = {'text': ''}
widgets = {'text': forms.Textarea(attrs={... | [
"915186072@qq.com"
] | 915186072@qq.com |
f32dc0bf2193c95d85801ddc0ca99e3a0991e3fe | 133dbe47cf8d64d11dfaf2a1109f472c67f56136 | /tests/objects/test_time.py | 1b32001d7b6594eabc6b56e2ad8db8d78cbdecca | [
"MIT"
] | permissive | My-Novel-Management/storybuilderunite | a2bae6f3d79a8bc22d141663a2b09dde12556299 | c003d3451e237f574c54a87ea7d4fd8da8e833be | refs/heads/master | 2021-07-13T16:35:31.922363 | 2021-01-29T00:38:04 | 2021-01-29T00:38:04 | 230,050,595 | 1 | 0 | MIT | 2020-06-24T01:49:03 | 2019-12-25T06:05:42 | Python | UTF-8 | Python | false | false | 966 | py | # -*- coding: utf-8 -*-
'''
Time class test
===============
'''
import datetime
import unittest
from tests.testutils import print_testtitle, validate_with_fail
from builder.objects import time as tm
class TimeTest(unittest.TestCase):
@classmethod
def setUpClass(cls):
print_testtitle(tm.__name__, 'Ti... | [
"nagisc007@yahoo.co.jp"
] | nagisc007@yahoo.co.jp |
a22ecfc5db8d716f603611bc6d34e5846f57d403 | ddb76ba98767c0e042d1eacfa41591ef2ee8bce8 | /case/exchange/trade/test_navigation.py | 9310eead8212d2ff05c16356b42dfcc3df72e747 | [] | no_license | linzhiyang85/CryptoTasks | 710f9b7cec613056090dc2de6109adcf132f28bc | 7e0bfc8a09e32c9a4388ab9ea9b55f0b8dce757f | refs/heads/main | 2023-09-01T08:14:07.790208 | 2021-09-25T20:46:21 | 2021-09-25T20:46:21 | 410,161,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,276 | py | import pytest
import time
from page.exchange import ExchangePage
from page.trade import TradePage
class TestTrade:
@pytest.mark.parametrize('source, target', [('CRO', 'USDC'), ('ATOM', 'CRO')])
def test_navigate_to_trade_page(self, source, target, driver, settings):
# initialize page object
exc... | [
"linzhiyang@aliyun.com"
] | linzhiyang@aliyun.com |
91efd913c270d343c4b45b6d1eb44d4aa58f912c | 35a6b6b5cabcf9fb39527bab020ef7c96265a026 | /p3.py | 5911e61bf240cc3e917c3377949ca16c9c46851d | [] | no_license | mepky/data-structure-and-algorithm | 9a1324142276e6966692c51734613f15234f5300 | 96f64e657f97e46fc2d32cca5294fa0f104d5d01 | refs/heads/master | 2020-03-24T08:57:41.692564 | 2020-02-10T12:40:13 | 2020-02-10T12:40:13 | 142,614,071 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | from collections import defaultdict
t=int(input())
for _ in range(t):
l=defaultdict(int)
n=int(input())
d=2**20
t=0
s=input()
a=[-1]*27
for i in range(n):
if a[ord(s[i])-97]==-1:
a[ord(s[i])-97]=i
else:
d=min(d,i-a[ord(s[i])-97])
t=1
... | [
"noreply@github.com"
] | noreply@github.com |
e03435734d25d798b79681af85b6574d5cbf61f6 | a3ac96f0c7da0b6b03b4b52a35fbae551f488c1c | /Assignment_3_sol.py | 9f978d91192edcbd63e299340d61007e5743209e | [] | no_license | Sohaib-50/OOP-assignment-3 | 4b59c98e74c2ba892d6e746f52f736878c84bee6 | 2974a00927070d5cb328908f6cf01b50d7141a00 | refs/heads/master | 2022-11-08T05:56:38.310520 | 2020-06-30T20:02:01 | 2020-06-30T20:02:01 | 276,196,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,173 | py | #### Q1
##class Circle:
## def setRadius(self, r):
## self.radius = r
##
## def getRadius(self):
## return self.radius
##
## def setColor(self, c):
## self.color = c
##
## def getColor(self):
## return self.color
##
## def getCircumference(self):
## retur... | [
"noreply@github.com"
] | noreply@github.com |
4883732ef5574518d7a8eea9d3610c27c1229f76 | 72371fbbca5e1631844de3a3815be721ad37ad4f | /compilador/simbolo.py | 9abf35cbb0cc6a7ea53456333b78c3dfd9813edb | [] | no_license | gustavokida/compiladores_1 | 7c046386e8b92831e5b1b48afa301732cf29373b | cf50f20381c99784da1e76547f00abe0b51396aa | refs/heads/master | 2023-08-02T19:36:53.712753 | 2021-09-25T22:11:24 | 2021-09-25T22:11:24 | 404,526,949 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | class Simbolo:
def __init__(self, nome, tipo):
self.nome = nome
self.tipo = tipo
def getNome(self):
return self.nome
def setNome(self, nome):
self.nome = nome
def getTipo(self):
return self.tipo
def setTipo(self, tipo):
self.tipo = tipo | [
"45009122+gustavokida@users.noreply.github.com"
] | 45009122+gustavokida@users.noreply.github.com |
f4cc030b9c8573c816c10160ff087a8c68c9d808 | e00cf0bf72421ec31e4d3608c615aeeba5064731 | /wows/move.py | 3165d0d74b85208a58ea1b2ed7ee70fd489a053c | [] | no_license | lorne-luo/auto-wows | b4a84c7d99585c84a635fb5be11fd0f03a5f37fd | 992ad473f1d5a78686e1c4c939c6c218e72373d7 | refs/heads/master | 2020-12-30T00:52:17.497039 | 2020-02-25T11:10:30 | 2020-02-25T11:10:30 | 238,803,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,190 | py | import time
from random import randint
import pyautogui as pag
import settings as settings
from helper import search_template, get_map_image
class WOWS_Move(object):
def move_ship(self):
global MOVE_TO
pag.press('m', presses=1, interval=0.25)
pag.sleep(1.5)
if not MOVE_TO:
... | [
"dev@luotao.net"
] | dev@luotao.net |
69f71e98982e26c3a6a8f76756133b13cb028e93 | 2f7c81de79cfd34770051d9bda3ee3fd1a0c9477 | /solucion_usando_verlet.py | 7fccdfab5b9a2c0dd2c002a6bea23273981abe5f | [
"MIT"
] | permissive | TatiFlores/04Tarea | ae38959d6313c16b5ff628912d88be45ff27d54d | 2f219a4b02865ccac716c76dd5545248b8789f44 | refs/heads/master | 2020-05-29T12:15:21.408718 | 2015-10-22T02:14:26 | 2015-10-22T02:14:26 | 44,268,867 | 0 | 0 | null | 2015-10-14T18:45:56 | 2015-10-14T18:45:56 | null | UTF-8 | Python | false | false | 1,486 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from planeta import Planeta
import numpy as np
import matplotlib.pyplot as plt
condicion_inicial = [10, 0, 0, 0.4]
p = Planeta(condicion_inicial)
dt = 0.1
iteraciones = 60000
x = np.zeros(iteraciones)
y = np.zeros(iteraciones)
vx = np.zeros(iteraciones)
vy = np.zeros(i... | [
"tatiflores.4@gmail.com"
] | tatiflores.4@gmail.com |
672cf8f365696192c08ad050669fd61e20d0a34b | 504398cad76a23e1ad5f4eebf8f499b855d57771 | /manage.py | 2e47f39a342cb53f05ed73b51f03116c9fe19445 | [] | no_license | jvxtaposed/WebFrame | 75cd0c437eb94ed4c78e8e2dd47d0e6d21fa4421 | 4da3d76fb8ed79c8a0f32dccb28ca671688802cf | refs/heads/master | 2020-03-18T16:57:43.814453 | 2018-05-26T21:36:00 | 2018-05-26T21:36:00 | 134,996,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "WebFrame.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that the... | [
"iliketreeslol@gmail.com"
] | iliketreeslol@gmail.com |
265dc95d5597dd6704b8d1810358d09d0ea447cb | ea788d354226634a96fdba62d9f4a7587f6cb09f | /process_dynamixel_data.py | 609ced7ba71a0288cee3a616012e02ea0279529a | [] | no_license | DeinFreund/px4_measurements | 47f7cb2fd00017522df15b4ac6f5f97ee9c98ca6 | a53e5f781634a11c2b24d145304228c7afa66b9e | refs/heads/master | 2020-12-04T06:36:58.166716 | 2020-01-03T20:31:21 | 2020-01-03T20:31:21 | 231,660,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,160 | py | #import rosbag
import matplotlib.pyplot as plt
import numpy as np
import sys
dyn_time = []
angle_measured = np.empty((0,6))
angle_cmd = np.empty((0,6))
for line in sys.stdin:
try:
if len(line.split()) == 14 and line.split()[0] == 'LOG':
dyn_time.append(int(line.split()[1])/1e6)
cmd = []
measured = []
fo... | [
"flyck@ethz.ch"
] | flyck@ethz.ch |
7ce4e5c6f137596f23f8186d9b680431e5a52ceb | ad37bbf3b1b0d4d6ad6bf0c127bd92669a8f3029 | /node_modules/@web3-js/websocket/build/config.gypi | 83aac1135a412270945de7c7f9ac49c1d0349e62 | [
"Apache-2.0"
] | permissive | william-rittmeyer/private_ethereum_blockchain | 9b7bef440186430c0fd293220543abc41a63b4e7 | 079a21a3d9f41784934e5abc7d59024e9fcfd706 | refs/heads/master | 2022-05-23T22:25:26.886789 | 2020-05-02T00:33:33 | 2020-05-02T00:33:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,459 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"build_v8_with_gn": "false",
"coverage": "false",
"debug_ngh... | [
"wittspace77@gmail.com"
] | wittspace77@gmail.com |
cb015eac44936cc54ab38c8fc85c628d7da24a26 | d99a84bfcd2709bb04da73979c3ec5ea7e68cef9 | /data/abilities/move.py | 98965503339949433cd4314a3fdf56969155d212 | [] | no_license | nikolr/PythonIsometricJRPG | 151591cac17682807a202f6d4c47e316451b5078 | d6c631fd06fb2b9a858cb9e36ac8e0ee0cee1334 | refs/heads/master | 2023-08-26T12:37:31.237974 | 2021-10-04T15:38:41 | 2021-10-04T15:38:41 | 408,345,232 | 0 | 0 | null | 2021-09-27T09:42:28 | 2021-09-20T07:16:03 | Python | UTF-8 | Python | false | false | 1,057 | py | from data.abilities.ability import Ability
class Move(Ability):
def __init__(self, name: str, potency: int, ap_cost: int, targeting_type, range: int, user=None):
super().__init__(name, potency, ap_cost, targeting_type, range, user=user)
self.description = "Move 1 square forward"
def activate(se... | [
"nikolai.rantimo@gmail.com"
] | nikolai.rantimo@gmail.com |
ac05dc636b481b86f4960bbd377201c4bffdcfe9 | 569498d8a61dd6cdaa515165415d3a72c5dbf0c5 | /part 2/050.py | a014890e32dbfcda0d6f27e272044b4dc8cee371 | [] | no_license | baikzzi/python | 068e0b05ea13ab30a3798e97a25f9ea48084c36b | 112b4565d8bc09eb08b9c152eaf2dd6dd0ba8b35 | refs/heads/master | 2023-03-04T20:45:03.028018 | 2021-02-15T01:53:04 | 2021-02-15T01:53:04 | 338,942,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | class MyClass:
var = '안녕하세요'
def sayHello(self):
param1 = '안녕'
self.param2 = '하이'
print(param1) #'안녕'이 출력됨
print(self.var) #'안녕하세요'가 출력됨
obj = MyClass()
print(obj.var) #'안녕하세요'가 출력됨
obj.sayHello()
#obj.param1 | [
"qorwlghks120@gmail.com"
] | qorwlghks120@gmail.com |
35fd3b5566f1aaafda384b69fbcda78b39a3b231 | 334a0efacc8abaa26d92d4a06ef1ba8bb5b7b213 | /clockString2image.py | ab8a88dd1535e142436f310ecce5b87b73ee8cce | [] | no_license | gunman-vagabond/gunclock-tensorflow-flask | 84c39e2ca387f4b9bdf13b6ebf65c77af8f32563 | d6a0af8672d2c6583b385c54248364fd555119a2 | refs/heads/master | 2022-12-11T06:14:32.194994 | 2020-02-11T03:04:05 | 2020-02-11T03:04:05 | 236,270,374 | 0 | 0 | null | 2022-09-23T22:35:25 | 2020-01-26T05:18:08 | Python | UTF-8 | Python | false | false | 447 | py | import os,csv
import sys
import numpy as np
from PIL import Image,ImageDraw,ImageFont
def clockString2image(clockString):
text = clockString
text_split = text.split("\n")
clocksize = len(text_split) - 1
img = Image.new("RGB", (clocksize*12, clocksize*12), (255,255,255))
draw = ImageDraw.Draw(img... | [
"noreply@github.com"
] | noreply@github.com |
91e05bb48354f85dc8b7543296aeacca210c3e50 | 2fcef29373541c8707b4047c444cfd567aef03a4 | /src/bttracker/_version.py | 805186d291b945c1733ebe1b3ee68f7d3081fdab | [] | no_license | manjuladangalla/BtTracker | a6c94e752abfca89cad6b47e246847aec7203b3b | 9641d7f6ac62c91986c1fd83879c4852bf208448 | refs/heads/master | 2022-12-03T15:39:31.276673 | 2020-08-07T03:35:02 | 2020-08-07T03:35:02 | 285,728,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,442 | py |
# This file helps to compute a version number in source trees obtained from
# git-archive tarball (such as those provided by githubs download-from-tag
# feature). Distribution tarballs (built by setup.py sdist) and build
# directories (produced by setup.py build) will contain a much shorter file
# that just contains t... | [
"noreply@github.com"
] | noreply@github.com |
8405cbf135eef4a8ea7864cace75bd9e40f91ebf | adbc667076cc5d35f2411239c1d717558df7f9a2 | /ecom/blog/migrations/0001_initial.py | 29cf764f4f6b1bfbc605d0254ade79b4f5b094be | [] | no_license | satyam2912/E-commerce-django | a455f9943c3e04de4b74a4101010fbccf4b10bc4 | 455d28ce6a1ec502bdccfc4c430c5f86a812127b | refs/heads/master | 2023-03-01T17:22:11.923843 | 2021-02-14T11:42:23 | 2021-02-14T11:42:23 | 326,479,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,041 | py | # Generated by Django 2.2.12 on 2020-09-29 16:54
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Blogpost',
fields=[
('post_id', models.Aut... | [
"pandeysatyam1996@gmail.com"
] | pandeysatyam1996@gmail.com |
36303e57f19d8642e572535bcda07112eb1b0a31 | e1266f257c741395be3f9f3fe02c34a652c3612e | /scrapyP1/scrapyP1/settings.py | 3b8e8c21ffcf3c53286d11e9b94ccd902342b438 | [] | no_license | zhaocc1106/Web-spider | 94ffadcaadeb38fbdc1da8f5841a5a623565b236 | ed0de975c22c2d7235dfc668b99ea946ad99a6c5 | refs/heads/master | 2020-04-09T04:01:49.756553 | 2018-12-02T02:51:51 | 2018-12-02T02:51:51 | 160,007,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,091 | py | # -*- coding: utf-8 -*-
# Scrapy settings for scrapyP1 project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.org/en/latest/topi... | [
"450959507@qq.com"
] | 450959507@qq.com |
327de0fb6195fa9d70bb2f59a1b649c60f9ad8da | 31900bdf5648061a3093230711c5394e20b90436 | /usr/lib/enigma2/python/Plugins/Extensions/MediaPortal/additions/porn/cliphunter.py | f0ad44408f3a495045054598cafc29b1ceb97fb7 | [] | no_license | linuxbox10/enigma2-plugin-extensions-mediaportal | aa6f14ecfc42ce91e22c487070541459a1ab820c | e6b388918c186442718e7200e03c83d0db260831 | refs/heads/master | 2021-05-01T18:50:50.332850 | 2018-02-10T11:33:48 | 2018-02-10T11:33:48 | 121,009,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,746 | py | # -*- coding: utf-8 -*-
###############################################################################################
#
# MediaPortal for Dreambox OS
#
# Coded by MediaPortal Team (c) 2013-2018
#
# This plugin is open source but it is NOT free software.
#
# This plugin may only be distributed to and executed... | [
"jaysmith940@hotmail.co.uk"
] | jaysmith940@hotmail.co.uk |
fe11ab8369162212f8ea26d7d1324131d3d39039 | 7c285bc226eb1424a7b9dae154301e92af08e2ee | /.c9/metadata/environment/products/models.py | 2d3c42af567c10672fc988634cbb7a3ce5766a4a | [] | no_license | JShad30/ecommerce | f0755d06e2790a9456b3b90f6e8cd7bb9e3f5f51 | 1634618b00dee14400948d4d06321d02a999a5c4 | refs/heads/master | 2020-06-20T03:40:41.073735 | 2019-07-15T10:45:30 | 2019-07-15T10:45:30 | 196,979,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | {"filter":false,"title":"models.py","tooltip":"/products/models.py","ace":{"folds":[],"scrolltop":0,"scrollleft":0,"selection":{"start":{"row":10,"column":24},"end":{"row":10,"column":24},"isBackwards":false},"options":{"guessTabSize":true,"useWrapMode":false,"wrapToView":true},"firstLineState":{"row":45,"mode":"ace/mo... | [
"ubuntu@ip-172-31-80-73.ec2.internal"
] | ubuntu@ip-172-31-80-73.ec2.internal |
00ea6f281f439dcb4972df7de507c087190b305f | fd8bbeed2fe5de26cce3630bab9ba477b371b3aa | /csv_to_android_table_layout.py | 047c6e145a029d6498d844bbfd513cd120d8fff5 | [] | no_license | himanshugarg/scripts | b905820a1a1e6ddeb0870d183b9ceb8b98c666fe | 88140d9784b2fd236556f766fccd266f36b02da2 | refs/heads/master | 2023-09-02T17:20:17.220500 | 2021-11-21T02:33:32 | 2021-11-21T02:33:32 | 121,906,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,426 | py | import csv
import sys
import os
import pdb
print """<?xml version="1.0" encoding="utf-8"?>
<TableLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:shrinkColumns="*"
android:stretchColumns="*">"""
#extr... | [
"noreply@github.com"
] | noreply@github.com |
8b564330a2dd2c16aace1926c913fcca01a19d48 | fd19e9dc496d7af22cbdd8cd8d185d4e99583c18 | /blog/urls.py | 15b95e2762e9645f4f966fa434d380810ee61a13 | [] | no_license | averlor/Blog_django | aa5e652e6970cf5aac6c8b155134685076bc9a25 | 53c324be0e2ca3b4fe5e4cc245fec361375d57de | refs/heads/master | 2020-04-08T07:39:36.313018 | 2018-11-26T15:39:34 | 2018-11-26T15:39:34 | 159,146,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.post_list, name='post_list'),
url(r'^post/(?P<pk>\d+)/$', views.post_detail, name='post_detail'),
url(r'^post/new/$', views.post_new, name='post_new'),
url(r'^post/(?P<pk>\d+)/edit/$',views.post_edit,name='post_edit'),
] | [
"vabramanc@gmail.com"
] | vabramanc@gmail.com |
70c2e83deb862bcaf5c7853c8fc59b7e6fda372a | 2c4739888c53871524eb883f884470932c93542a | /PyPoll/Main/main.py | 14dffa7ea8bf1fea7e838735332869024f228e15 | [] | no_license | ncastal/python-challenge | c3171530437cd499f40f27cdb0f66b8a336ec62a | cc4eee24dbbf411c067252e4ad5b04672f9d77bc | refs/heads/master | 2020-09-16T14:27:59.102292 | 2019-12-06T03:14:58 | 2019-12-06T03:14:58 | 223,798,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,865 | py | import os #importing libraries
import csv
os.chdir(os.path.dirname(os.path.abspath(__file__))) #change working directory to one where the python file is located
election_csv = os.path.join("..","Resources","election_data.csv") #giving the location for election_data.csv
election_result = os.path.join("..","Output","ele... | [
"nick.cast89@gmail.com"
] | nick.cast89@gmail.com |
5771ab25a8f03b02ce6256a0612f9f2a7e8269a9 | 81a02bce72a7db755eb813cb9619c423bb06684d | /core/migrations/0004_auto_20190314_2308.py | e3e1c39da39e49c4d011f278cb2ddf2d92819f71 | [
"MIT"
] | permissive | tsnaf/semita | 5d6f88ea982b5296649cfe65e4689fad45ac1641 | 23cc7954c9bcdf5607592b8d3bb264f69098d5a8 | refs/heads/master | 2020-08-22T16:59:13.381126 | 2019-09-06T00:12:52 | 2019-09-06T00:12:52 | 216,441,977 | 1 | 0 | MIT | 2019-10-20T23:36:21 | 2019-10-20T23:36:21 | null | UTF-8 | Python | false | false | 1,706 | py | # Generated by Django 2.1.7 on 2019-03-14 23:08
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [("core", "0003_grant_attachment")]
operations = [
migrations.CreateModel(
name="Dashboard",
fields... | [
"hello@rae.li"
] | hello@rae.li |
a6ae38ab912151500b6230c13145389b39b83dc1 | 01677f99acef3c457b49804990321a7db10f35f7 | /LaneCV.py | c11a6e30953006fb4eb6b4b0e2e619d2383e0909 | [] | no_license | pranitdemiri/Cap | d56569b75b17bcba23d13e4177d4f457965a82cd | 5eb2111b9e0d17ab3ec85e939f8986309210972e | refs/heads/master | 2023-01-06T17:43:58.960119 | 2020-10-21T21:20:39 | 2020-10-21T21:20:39 | 306,150,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,321 | py | import cv2
import numpy as np
import logging
import math
_SHOW_IMAGE = False
class HandCodedLaneFollower(object):
def __init__(self, car=None):
logging.info('Creating a HandCodedLaneFollower...')
self.car = car
self.curr_steering_angle = 90
def follow_lane(self, frame):
# M... | [
"pranitpokhrel@gmail.com"
] | pranitpokhrel@gmail.com |
28279a0327096fede9a88609bda8fc917788902d | e022862c20d92931f6b119998792377d028d0137 | /multi-agent-irl/irl/mack/ncdail.py | f13bb1d098d528977b874cc1834e4af99ef3efb1 | [
"Apache-2.0"
] | permissive | renos/CoDAIL | 3519dface3720318c79bd9afa3cc0ae889b9ee05 | 92423c90166ac7c5b88637ca1ef0002f126918db | refs/heads/master | 2023-06-26T06:20:09.275801 | 2021-07-30T03:11:33 | 2021-07-30T03:11:33 | 384,311,940 | 0 | 0 | Apache-2.0 | 2021-07-09T03:36:48 | 2021-07-09T03:36:47 | null | UTF-8 | Python | false | false | 27,922 | py | import os.path as osp
import random
import time
import joblib
import numpy as np
import tensorflow as tf
from scipy.stats import pearsonr, spearmanr
from rl.acktr.utils import Scheduler, find_trainable_variables, discount_with_dones
from rl.acktr.utils import cat_entropy, mse, onehot, multionehot
from rl import logge... | [
"ericliuof97@gmail.com"
] | ericliuof97@gmail.com |
8ef65c6fea59304140275f2c14c1aed2bd814595 | be26f8fa36ea4e52ef94555fc69a104e88d3fd16 | /models/Juan's Models/old scripts/gen_logits_and_embeddings.py | 2427ab44a4892dcff7b042188c28007e2df740d6 | [] | no_license | davidday99/twitter-data-collector | 599eeed1bf0fd995da28053d3547f3b95ddb2385 | bf7d203c380dc727d30f1e17b0297f1c011642b0 | refs/heads/master | 2022-06-02T09:41:26.940830 | 2020-05-06T19:20:47 | 2020-05-06T19:20:47 | 254,766,551 | 3 | 3 | null | 2020-04-27T08:35:19 | 2020-04-11T00:59:04 | Python | UTF-8 | Python | false | false | 13,350 | py | import random
import os
import pandas as pd
import numpy as np
from transformers import BertTokenizer, BertForSequenceClassification, BertModel, BertPreTrainedModel, BertConfig
from transformers import AdamW, BertConfig, get_linear_schedule_with_warmup
from keras.preprocessing.sequence import pad_sequences
import torch... | [
"juanpaez@utexas.edu"
] | juanpaez@utexas.edu |
aa51cfc869fb53ffd850f220d3edca3c6f687c19 | bb9f832674635e264e1950d041c03acdec7bd83e | /Day 27/main.py | d2dc8b3910956424adeeeaec0b72a63f4f5c1ce5 | [] | no_license | guilhermeaugusto9/100daysofpython | 4e8030a2ae63b5d210b72844e2dccd5cfcf95ee3 | 8100ac0c80ae6af8fb4af49fe5973b0b3575ee0d | refs/heads/master | 2023-08-11T16:22:22.681346 | 2021-10-11T14:40:34 | 2021-10-11T14:40:34 | 415,956,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,284 | py | from tkinter import *
# Creating a new window and configurations
window = Tk()
window.title("Widget Examples")
window.minsize(width=500, height=500)
# Labels
label = Label(text="This is old text")
label.config(text="This is new text")
label.pack()
# Buttons
def action():
print("Do something")
# calls action(... | [
"guilherme.augusto9@outlook.com"
] | guilherme.augusto9@outlook.com |
a5b7936e3d25a8f5c8f9deb635771dc4d7de386f | 898f25bb22cd08c191b461934e27c2c6b5bcff42 | /finalcnn.py | 9e0d18cfce01691895ebb723d8b5e5fe2e8a0c03 | [] | no_license | alkadafare01/multiclasscnnmodel | ca4e042d91d3b59774b472d53c6f2622a32e1159 | 2cf12defd0d3c81dc28ee1c06380bf7d6969bdad | refs/heads/main | 2023-04-19T00:12:26.681393 | 2021-05-07T12:36:49 | 2021-05-07T12:36:49 | 322,548,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,957 | py | from keras.callbacks import EarlyStopping, CSVLogger, ModelCheckpoint
from keras.models import Sequential
from keras.layers import Conv2D, Dropout
from keras.layers import MaxPooling2D
from keras.layers import Flatten
from keras.layers import Dense
# Initialising the CNN
#from tensorflow_core.python.client import sess... | [
"pinki.dafare@gmail.com"
] | pinki.dafare@gmail.com |
afc1a666a4f46b1ed0c0e581248921cb5c0ed709 | 3a9ab7e571e992b7af50c23673cb9b31971a8868 | /python essentials/indexing and slicing/indexing.py | 45ac5d5eedadc0db9495a51a432e1fd02c3abf73 | [] | no_license | chenkeyu1997/python | 6e3f3997aa62d245699e1b9066c201a2b015c434 | 9a638242b06735cfa48ad074909842452b104651 | refs/heads/master | 2022-12-18T11:07:10.126932 | 2020-09-21T06:00:05 | 2020-09-21T06:00:05 | 296,557,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | s='hello world'
print(s[0])
"""负向索引,负几则表示倒数第几个元素"""
print(s[-2])
try:
print(s[123])
except IndexError:
print("string index out of range")
| [
"cky123"
] | cky123 |
2a1904b74022c083eb628ee0359acd8f7fb3c450 | 4b93aa80436d4683d0254c4bd4b1e95c41e8c6ce | /ZenPacks/community/zenAppProfiler/ProfileSets.py | 5e8074b104b9d14da519239077c4f3a688f2f899 | [] | no_license | j053ph4/ZenPacks.community.zenAppProfiler | 984d5aa04766cc6209ee76a055ceab3373baa0bd | e41d030d67b5df8e41a40f180fa1f57656f20a03 | refs/heads/master | 2021-01-22T22:39:16.448979 | 2011-10-20T20:39:36 | 2011-10-20T20:39:36 | 2,608,336 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,993 | py | import re
import os
import string
import Globals
from Products.ZenModel.ZenPackable import ZenPackable
from ProfileData import ProfileData
class ProfileSets(ZenPackable):
''' Class containing logic for evaluating rule outcomes.
'''
def __init__(self,dmd):
self.dmd = dmd
self.data = Pr... | [
"janderson@atxg.com"
] | janderson@atxg.com |
a66199c42e47bad003812f72f14cdc6b3c5af967 | 54b52c70ebf3b3c17c72f7c5cc8219a060c1ffdf | /main/migrations/0001_initial.py | d78f2b40b82a4ca0837be9975207f8df6bde8129 | [] | no_license | arslan77/learnobot | e892d990736bd4a882ba6786cfbe00dc00acd326 | 7646cde351231a138b6e30529690f76b3989837e | refs/heads/master | 2020-03-29T10:40:46.554285 | 2018-09-24T03:53:48 | 2018-09-24T03:53:48 | 149,817,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,236 | py | # Generated by Django 2.1.1 on 2018-09-20 23:17
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('Course', '0004_auto_20180921_0417'),
migrations.swappable_depen... | [
"arslanarshad07@gmail.com"
] | arslanarshad07@gmail.com |
f71f2963e3eed53924dacf78596b44a5360a72d6 | ea7555f1a0ae52a3f97268add832ba1e45d23c8e | /plate_tracker.py | e0573c66651ed579341fc45b01fe37f2c9464008 | [] | no_license | alexjfreij/Projects | bae27c580b29e9d40aa2071ac79afbc35d97838f | 71ba51929e62ff2ae0d3de4910bb32ce500b372f | refs/heads/master | 2021-05-25T21:17:02.814498 | 2020-04-07T22:19:10 | 2020-04-07T22:19:10 | 253,923,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,545 | py | # Program to read a jpg files and convert it to one file
# with data that has a time stamp from the file and convert
# the content of the file into a character string of license plate
# and date and time to process
#
#
import os, datetime, time
from datetime import datetime
from os.path import getmtime
... | [
"noreply@github.com"
] | noreply@github.com |
4296ad62182dde60033292fbec716ff5b8b146d6 | fe45c03ac8ee55122e89b4ee2e541cd196c43b93 | /Coffee/apps.py | a1e1644ad55807044d97515b49cbaabd4c882566 | [] | no_license | ssemtner/CheckYoSelf | 593a23b25d36ce7e5550822364b713ec3cfa7a51 | 36b497df3cd87af03b77476d393b56d3ba436edc | refs/heads/main | 2023-02-16T09:23:26.179680 | 2021-01-13T18:23:03 | 2021-01-13T18:23:03 | 312,876,268 | 1 | 1 | null | 2020-12-10T02:25:52 | 2020-11-14T18:22:38 | Python | UTF-8 | Python | false | false | 87 | py | from django.apps import AppConfig
class CoffeeConfig(AppConfig):
name = 'Coffee'
| [
"sjsemtner@gmail.com"
] | sjsemtner@gmail.com |
6884574422f998a6b1d4e95b2c63df25a2b77db1 | ddc7c07a4273aab5289a44fde5230856404a771b | /practica_02/p02e04.py | 6a44df4ae2e37f90f2693033f98b3c0245ae6e05 | [] | no_license | juan81mg/python2020 | 58736dd993461ab4b2952ccf4438df6e87523f54 | e9f8d740569727d95c30ec306ada2774570dd04f | refs/heads/master | 2021-03-16T20:19:56.648054 | 2020-06-22T16:49:27 | 2020-06-22T16:49:27 | 246,938,731 | 0 | 0 | null | 2020-05-25T19:55:44 | 2020-03-12T22:04:13 | Python | UTF-8 | Python | false | false | 597 | py | from random import shuffle
preguntas = [['Buenos Aires limita con Santiago del Estero', 'no'], ['Jujuy limita con Bolivia', 'si'], ['San Juan limita con Misiones', 'no']]
puntaje = 0 #inicializo el puntaje
shuffle(preguntas) #desordeno la lista
print('+++++ Juego de Preguntas +++++\n')
for p in preguntas:
print('>... | [
"juan81mg@gmail.com"
] | juan81mg@gmail.com |
b1bd3b08a695c7d52e2546ee8ac9436a091b47ac | 22a7e337eca6a244205b48e4d06cca67f2b5033a | /SimpleCode/PY_CookBook/chapter8/ceshi_yield.py | 06b50f2eafeb4ee2b61554155e44228699ac437a | [] | no_license | chen19901225/SimplePyCode | 48f373f66e486276ed6603b7d0d8e388bd236a6c | 8276c660e7663688d3d381391a77a50f90e61afa | refs/heads/master | 2021-01-01T19:34:57.697967 | 2014-11-12T10:05:14 | 2014-11-12T10:05:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py |
def echo(value=None):
print "Execution starts when 'next()' is called for the first time."
try:
while True:
try:
value=(yield value)
except Exception,e:
value=e
finally:
print "Don't forget to clean up when 'close()' is called."
ge... | [
"guoning.leng@o2omobi.com"
] | guoning.leng@o2omobi.com |
5e7d45027e713ff5923387f455b14bddd9a31ef3 | 2ae53bf6063c0bb5c227e17c049c0c5963861d7f | /setup.py | 73d9782ed28756e09d357999e1812ddbc45eda21 | [] | no_license | PsychoDramatic/openshift_django | 207e5757e3479ce1baaa6196a4c9175afd089e3a | 0d76a07d3b9559429f3cd8031114949e3f141c62 | refs/heads/master | 2021-01-16T23:11:25.913630 | 2014-03-01T15:33:54 | 2014-03-01T15:33:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | from setuptools import setup
setup(name='MyDjangoApp',
version='1.0',
description='Measuredly website',
author='Yourname',
author_email='your_email@somewhere.com',
url='http://www.python.org/sigs/distutils-sig/',
install_requires=['django==1.6','django-crispy-forms'],
)
| [
"steve@mocarski.com"
] | steve@mocarski.com |
2dd168e0be879c0702c0c7d22fff6db2edb3e519 | 528add9808b43905fb2f71c94fdf20d374b69878 | /usersApp/models.py | 8445c225db2dc6d46af37df5e1a28df75e4342fc | [] | no_license | paulsmalze/singleModelOrm | 5695804a492e1be06650bc0598779df9288c5dac | 30080a33a2a44ba13d595a7af136f5d9fd8ff12e | refs/heads/main | 2023-04-25T12:20:55.718554 | 2021-05-08T15:43:25 | 2021-05-08T15:43:25 | 365,535,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | from django.db import models
# Create your models here.
class User(models.Model):
first_name = models.CharField(max_length=255)
last_name = models.CharField(max_length=255)
email_address = models.EmailField(unique=True)
age = models.IntegerField()
created_at = models.DateTimeField(auto_now_add... | [
"waffwegs@yahoo.com"
] | waffwegs@yahoo.com |
1954811c048f96bc8ce065432708a723ac852065 | 24d9ab3789aa0f7c3c6fffdf876315abb8b3f0ee | /app.py | ede3560a2c5a86c85ad5d62f44c4022c88dd421f | [] | no_license | winocas/project3 | cc876362988c4f418a9c4bc98a3527d667be51c6 | 8e55cffc815eaef38c586aebefc6aec17ecbb351 | refs/heads/master | 2023-03-29T05:29:54.804122 | 2021-03-30T12:28:05 | 2021-03-30T12:28:05 | 352,922,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,160 | py | # from flask import Flask, url_for, redirect
# app = Flask(__name__)
# @app.route('/')
# def home():
# return redirect(url_for('main'))
# @app.route('/service')
# def main():
# return '서비스'
# if __name__=='__main__':
# app.run(debug=True)
from flask import Flask, render_template, redirect, request, url... | [
"sec021122@gmail.com"
] | sec021122@gmail.com |
575b513edcb70131289f04f5a2a9725d843d874e | 0875d9c4ed9bec3794aee6435eb49243ab84ac05 | /Machine Learning/IntroduccionML/Algoritmos/IntroVectorSR.py | 9716ba998a6b438171a84f7cd323db2249efb065 | [] | no_license | AngelSosaGonzalez/IntroduccionMachineLearning | b49ba29a717bd2c3bbd6c93615d3ef3bc5e1561d | d9e13efe5703e6a6375a971c87fd000ba98024c7 | refs/heads/main | 2023-03-05T14:08:23.066293 | 2021-02-20T04:31:34 | 2021-02-20T04:31:34 | 327,723,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,221 | py | """ Vectore de soporte de regresion: En este proyecto veremos en la marcha el concepto de como se puede aplicar este algoritmo de ML,
en este proyecto aplicaremos los conociemiento basicos aprendidos en ML, de los antiguos proyecto que estan en este recopilatorio,
te recomiendo revisar los proyecto que hablan sobre r... | [
"angelsosagonz@gmail.com"
] | angelsosagonz@gmail.com |
eaafa5a0d6f534e474290d094f533956580c7495 | 689fcced10cc920c263e4d85bed5a51f85c76abb | /aragwas_server/aragwas/settings/dev.py | 8c4d30842e367920ea352a2e0638d1fd37694449 | [
"MIT"
] | permissive | 1001genomes/AraGWAS | ddb10ea3e476c8cee31e75f9db6dc2bd79f7f487 | be02c0480bf18228b07853740e63f249fe31d7e5 | refs/heads/master | 2022-12-29T00:12:59.936918 | 2020-08-31T16:32:04 | 2020-08-31T16:32:04 | 82,693,787 | 13 | 9 | MIT | 2022-12-06T20:20:08 | 2017-02-21T15:11:31 | Vue | UTF-8 | Python | false | false | 554 | py | """
Development settings using sqlite3 and DEBUG = TRUE
"""
import os
# Load defaults in order to then add/override with dev-only settings
from .defaults import *
DEBUG = True
TEMPLATES[0]['OPTIONS']['debug'] = DEBUG
DATACITE_REST_URL='https://mds.test.datacite.org/'
# Database
# https://docs.djangoproject.com/en/1.... | [
"uemit.seren@gmail.com"
] | uemit.seren@gmail.com |
cbc7ff8ebf0f55d2d54140505ce153702a872ce4 | 9784a90cac667e8e0aaba0ca599b4255b215ec67 | /convert_models.py | d3b743be02b1e3c57c11c482699a1440c12daa44 | [
"MIT"
] | permissive | osmr/imgclsmob | d2f48f01ca541b20119871393eca383001a96019 | f2993d3ce73a2f7ddba05da3891defb08547d504 | refs/heads/master | 2022-07-09T14:24:37.591824 | 2021-12-14T10:15:31 | 2021-12-14T10:15:31 | 140,285,687 | 3,017 | 624 | MIT | 2022-07-04T15:18:37 | 2018-07-09T12:57:46 | Python | UTF-8 | Python | false | false | 87,933 | py | """
Script for converting models between frameworks (MXNet, Gluon, PyTroch, Chainer, Keras, TensorFlow).
"""
import argparse
import logging
import re
import numpy as np
from common.logger_utils import initialize_logging
def parse_args():
parser = argparse.ArgumentParser(description="Convert models (Gluon/PyT... | [
"osemery@gmail.com"
] | osemery@gmail.com |
3da3e17495525b485fd627a5d52d55b261e728ec | 8d50cc4f37c153fcb51de4501f3fa50c00394d9b | /test/benchmark/resnet_tl_benchmark.py | 0273e724c53f6d0c0598924637c84431b5b3fe0c | [
"MIT"
] | permissive | liujuanLT/InsightFace_TF | dbd239dfdda1866c348e82211932884f73cb3067 | 257b6e0dcf7e7c3523dc7e1c08ba529fab1bf75b | refs/heads/master | 2022-04-27T21:24:01.458277 | 2022-03-17T12:28:15 | 2022-03-17T12:28:15 | 463,040,192 | 0 | 0 | MIT | 2022-02-24T06:51:16 | 2022-02-24T06:51:15 | null | UTF-8 | Python | false | false | 1,255 | py | import tensorflow as tf
import tensorflow.contrib.slim.nets as nets
import numpy as np
from nets.resnet import get_resnet
slim = tf.contrib.slim
resnet = nets.resnet_v1
if __name__ == '__main__':
output_shape = 85164
batch_size = 128
image = tf.placeholder(name='input_x', shape=[None, 224, 224, 3], dtype... | [
"auroua@yeah.net"
] | auroua@yeah.net |
94f2093636ae67fdc8ec2d5431c2b52cbd51d7c2 | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-gsn-edf/gsn-edf_ut=3.0_rd=0.5_rw=0.06_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=25/params.py | 1e06a0ee411f4cd8e4e96c1df8f010d7336d6730 | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | {'cpus': 4,
'duration': 30,
'final_util': '3.041500',
'max_util': '3.0',
'periods': 'harmonic-2',
'release_master': False,
'res_distr': '0.5',
'res_nmb': '4',
'res_weight': '0.06',
'scheduler': 'GSN-EDF',
'trial': 25,
'utils': 'uni-medium-3'}
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
452d72297d0a3b0666a56a4a72ddda202448eb36 | c2c0f1f565a285146a30dcab99e08e8353e03e54 | /geocoding_cache/backup.py | a74de831b589d1e9793dc0a64c2e9ade43388c34 | [] | no_license | adamhammes/geocoding-cache | f522f9be6078ae32a62cf9dd427b94489662285e | 110d6607af73d3ed064e06f432e6da33af2afb80 | refs/heads/master | 2023-06-14T04:42:25.109278 | 2021-07-07T17:47:20 | 2021-07-07T17:47:20 | 274,026,001 | 0 | 0 | null | 2021-03-20T04:25:04 | 2020-06-22T02:55:40 | Python | UTF-8 | Python | false | false | 657 | py | import datetime
import sqlite3
import tempfile
import boto3
def backup_db(source: sqlite3.Connection):
print("Backing up the database")
s3_client = boto3.client("s3")
day_of_month = datetime.datetime.today().day
object_name = f"geocoding_cache/{day_of_month:02}.sqlite3"
with tempfile.NamedTempo... | [
"ahammes@cortexmedia.ca"
] | ahammes@cortexmedia.ca |
e49952bb3039c47341a3a2001f153c1fcea8521c | 05169e203974411667ab947298a74575b8a179e0 | /packages/jet_bridge_base/jet_bridge_base/serializers/relationship_override.py | c985788ccf2e5eeaf886f08eb8bb093846f356d8 | [
"MIT"
] | permissive | jet-admin/jet-bridge | f6b563e1801985063483ddb02e9e1c3301dc0612 | c53d30fb308eed5822083eaf71f641c4098610cc | refs/heads/master | 2023-09-01T14:31:42.261427 | 2023-08-24T13:54:34 | 2023-08-24T13:54:34 | 163,167,532 | 1,564 | 166 | MIT | 2023-03-18T03:20:04 | 2018-12-26T10:27:33 | Python | UTF-8 | Python | false | false | 4,873 | py | from jet_bridge_base.models.model_relation_override import ModelRelationOverrideModel
from jet_bridge_base.store import store
from sqlalchemy import inspect
from jet_bridge_base import fields
from jet_bridge_base.db import get_mapped_base, reload_request_graphql_schema, get_request_connection
from jet_bridge_base.exce... | [
"f1nal@cgaming.org"
] | f1nal@cgaming.org |
2307b6a1bef1cb4612e3ecc93f7bd664bb61386c | 522c2645e1b14727279b417c4e6de16e0248406b | /Livrables/ExtractJson.py | dea1eccd47b7406340421cbe1d6b0cba442a2ef1 | [] | no_license | jerem33620/P5_Pur_Beurre_OC | 532757abd66484398f0389abcd53e647e2a45327 | decc9a341e8f2659cdc9769a9a16659023e0a3a4 | refs/heads/master | 2020-04-23T02:23:14.508665 | 2019-02-19T14:53:23 | 2019-02-19T14:53:23 | 170,844,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,998 | py | #! /usr/bin/env python3
# coding: utf-8
class ExtractFromJson:
""" Permet de recupérer les données brut dans le json
rendu par l'API et de lancer l'initialisation du json """
def __init__(self, json_data):
""" Pour chaque produit enregistré dans la DB, j'aurais besoin de :
id, pro... | [
"jeremyguy@orange.fr"
] | jeremyguy@orange.fr |
042e3b16684fe9c630da6b06a670a60326e24702 | a63e53db61ef8a4596089eb3af99a94b128ce716 | /util/alemutdf.py | 7a5f495486dd37942f5cd7aa88f8e15e65724f49 | [
"MIT"
] | permissive | Aletechdev/ava | 6737214a99846e16b1cf51b4519b3651e000ee6a | fea1f382229c46f83b76ffbce32bf00ff05a37b9 | refs/heads/master | 2022-10-25T07:16:40.338415 | 2021-07-16T02:14:22 | 2021-07-16T02:14:22 | 231,140,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,513 | py | import os
import os.path
import pandas as pd
import numpy as np
from tqdm import tqdm
import os, sys
module_path = os.path.abspath(os.path.join('..'))
if module_path not in sys.path:
sys.path.append(module_path)
from util.mut import get_del_size, get_ins_size, get_inv_size, get_con_size, get_sub_size, get_amp_size... | [
"pphaneuf@eng.ucsd.edu"
] | pphaneuf@eng.ucsd.edu |
ebcd6ed252031397cde74ec58dfbe8518d89830a | 835722d5632969c3857506eed7a8a5b678419190 | /wechatHeadImg.py | 81f9d83c78c4493b7d74797d1dba6d330ce7559f | [] | no_license | Derrick-Wang/wechatFriend | 176451cc83a90112fae107ab84170b0059b68dd9 | 9905ed6f3dd337b46e0e0a329b141938e5bd7444 | refs/heads/master | 2020-04-09T02:08:47.515340 | 2018-12-01T15:24:24 | 2018-12-01T15:24:24 | 159,930,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,005 | py | # coding:utf-8
import itchat
import os
import re
import math
import random
import PIL.Image as Image
import matplotlib.pyplot as plt
from wordcloud import WordCloud
# 获取头像
def headImg():
itchat.login()
friends = itchat.get_friends(update=True)
# 遍历好友数据
for count, f in enumerate(friends):
# 根据us... | [
"wandereding@gmail.com"
] | wandereding@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.