blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5fc12459c06d983683095037677ec9e3ae40582b | dfb701b247c8dddf479b90ea6ac1808820341e86 | /finalProject/inverse.py | d43b617fcf46dd5f01056bce7313fc8011d293f2 | [] | no_license | rafid1970/Machine-Learning-and-Data-Mining | 19aba66549bed4c9002c86cebe9262639d089f94 | c9f4df3a5a0ea6285a08661fac9be5c225581e83 | refs/heads/master | 2020-04-15T01:40:07.452565 | 2017-06-14T03:43:29 | 2017-06-14T03:43:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | import pandas as pd
df = pd.read_csv('submission.csv')
df['is_duplicate'] = df['is_duplicate'].apply(lambda x: 0 if x == 1 else 1 )
del df['test_id']
df.to_csv('flippedValues.csv', sep=',')
| [
"brandonlee503@gmail.com"
] | brandonlee503@gmail.com |
f8a5447cc2e15a5395f1dd03fe2b11ce54523af7 | 13156575ec13b43b48bc6531a1ccd5018a5dac13 | /features/steps/openbrowser.py | 7964d449a9247e17bdd0c6c01c1c0a1e9d8bf779 | [] | no_license | VladimirovaAnastasia/Behave | aaa3ad9ed32407cda421668d0d292b75332cb818 | 53348ea9cec36ec1f966dbefcefd91254a603a9a | refs/heads/master | 2020-08-13T02:11:26.165791 | 2019-10-13T20:41:11 | 2019-10-13T20:41:11 | 214,888,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 962 | py |
from behave import *
@given('I open seleniumframework website')
def step_impl(context):
context.browser.get("http://www.seleniumframework.com")
@then('I print the title')
def step_impl(context):
title = context.browser.title
assert "Selenium" in title
@then("I print current url")
def step_impl(context):
... | [
"vladimirova.a-a@yandex.ru"
] | vladimirova.a-a@yandex.ru |
cfadc6c0fad4440415bad446d43be5235ed031a9 | cf5f9fc378cdbbcd7e552b04d9db2db8efcb8f8b | /Basic/1_Datatype/Example/datatype.py | e6a6294a98321c7879c640741d605121142fa2f0 | [
"MIT"
] | permissive | s1ko/LearnPython | 572bc0556ff3afc3f8be84b13c4cdfb0ca111159 | ea3b01fc93f541c8d136f866a8fd448dbed72ef2 | refs/heads/master | 2020-03-31T22:50:43.971204 | 2018-10-07T22:41:19 | 2018-10-07T22:41:19 | 152,633,317 | 1 | 0 | MIT | 2018-10-11T17:56:05 | 2018-10-11T17:56:04 | null | UTF-8 | Python | false | false | 452 | py | # Date: 05/15/2018
# Author: Mohamed Sheikh
# Description: Datatypes
# strings. Any value that is inside quotes
secret_message = 'This is a secret message'
name = 'Sami'
str_age = '32'
str_age = '87'
str_isAlive = 'False'
# integers. Any whole number
age = 15
speed = 98
# floats. Any decimal num... | [
"noreply@github.com"
] | s1ko.noreply@github.com |
557a5ed8ae632f3de0ab468bd5e52697ab174391 | 4fe713d02c2007b3ff1a8cc2d54167c950d73b67 | /bookmark/models.py | 649017234c07890df24ce6428198f63b1ed33a6a | [] | no_license | bvldog/testDjango | 2c86eef381061306f9034f001a4338e8e61fd8db | e2c77c126b33f993ca7a6c101dfe1a5b9456fd55 | refs/heads/master | 2020-05-27T08:05:06.397422 | 2019-05-25T09:19:18 | 2019-05-25T09:19:18 | 188,539,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | from django.db import models
from django.urls import reverse
# Create your models here.
class Bookmark(models.Model):
site_name = models.CharField(max_length = 100)
url = models.URLField('Site URL')
def __str__(self):
return "이름 : "+ self.site_name + ", 주소 : " + self.url
def get_absolute_url... | [
"bvldog@gmail.com"
] | bvldog@gmail.com |
2c2a553fb25893672df0de7091194bccfa9869b9 | a9a0ea40a2592f148101cbf26cdc1929c64c92fe | /src/joins/admin.py | d029fc050e9dd6000d1636e552aa90913c0b2955 | [] | no_license | TrellixVulnTeam/sharewithcode_TZY5 | b0177882e7c31f1b163329d7e922cecd8abc964c | e489fd42d6c47a87e715e5f5ac36966469f62bd8 | refs/heads/master | 2023-03-19T12:07:18.188238 | 2017-06-01T17:23:23 | 2017-06-01T17:23:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | from django.contrib import admin
# Register your models here.
from .models import Join
class JoinAdmin(admin.ModelAdmin):
list_display = ['email','friend', 'timestamp', 'updated']
class meta:
model = Join
admin.site.register(Join, JoinAdmin)
#admin.site.register(JoinFriends)
| [
"ajeetsingh1646@gmail.com"
] | ajeetsingh1646@gmail.com |
537b95a9ce2b4a0227b3dcee632a38c8bef0796a | 1d00caa19baa262b9611e6b0f4f2fab4f2ca882e | /app/services/FaceRecService.py | 068e1be6ec462f69378bdf56fa1e85a7dca4b06e | [] | no_license | Free2y/Freezy-AI-DL | b808293fc9304ff085ee3cc82b83bc0b5f62fe46 | da848eeb5d0f9a5ee08300fcb65f843234295e25 | refs/heads/master | 2023-02-04T21:59:17.119823 | 2020-12-30T01:06:38 | 2020-12-30T01:06:38 | 325,421,344 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,466 | py | # -*- coding: utf-8 -*-
# 视频眨眼检测
# 导入工具包
from collections import OrderedDict
from keras.models import load_model
from scipy.spatial import distance as dist
import numpy as np
import cv2
import os
import paddlehub as hub
# 设置判断参数
from models.src.anti_spoof_predict import AntiSpoofPredict
# 关键点排序
from models.src.gene... | [
"hm"
] | hm |
f4a3bc79827d32eee2f03334b95db36697fa1b8a | 0ae71755e3093703015348096900c9fb34f45d42 | /proxy2.py | ba1c48703e1ebe001312dfa669185ad30fbe00bf | [] | no_license | eggertj12/http_proxy | 86806e695aeca51486112c35149a8c55336f36fa | b5f8834d1fe44e5a3a6093269f9975993f8669a6 | refs/heads/master | 2021-03-27T15:11:32.667742 | 2014-11-09T23:27:21 | 2014-11-09T23:27:21 | 25,377,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,083 | py | # ----------------------------------------------------------------------------------------------------
# http_proxy.py
#
# Simple http proxy server
#
# Uses some helper classes
# Message for representing the messages (request or response) and operations on those
# SocketReader is a wrapper for sockets which prov... | [
"eggert@hugsaser.is"
] | eggert@hugsaser.is |
14da75d78e7b49e02eedc62d6071ce110809fa0c | cf5e767faabe7307a8e081b35fd9600d003f8665 | /src/config/urls.py | e923d44714df37efef2d8c4f37df88bf212e29b5 | [
"BSD-3-Clause"
] | permissive | FuShengRuoXian/django-spms | bfd0ec8cc7ef957c8e6e308e1e9bf4259cf7c551 | 95ac193891f93da07c3a26feeaf846e6030f3466 | refs/heads/master | 2023-05-23T20:09:17.964349 | 2020-03-12T09:58:27 | 2020-03-12T09:58:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,029 | py | # coding=utf-8
"""tutorial 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, nam... | [
"spunkmars@gmail.com"
] | spunkmars@gmail.com |
3e772f98aeb80b6ec68f02ac944700a678a03a9e | 7a72ef64482e5f54d226493b39235960d9e129b9 | /salmon/triplets/samplers/utils.py | f20f0a78e1580e2f07212dd152dbdafb9f1552e5 | [
"BSD-3-Clause"
] | permissive | stsievert/salmon | 63061bd61b99416c6740273e0587d6bd57367b8a | b850b170c523e7a412d3768b06838f1ce9dc27b0 | refs/heads/master | 2023-06-22T07:34:35.671912 | 2023-06-16T16:12:39 | 2023-06-16T16:12:39 | 221,306,375 | 8 | 2 | BSD-3-Clause | 2023-06-16T19:59:17 | 2019-11-12T20:32:16 | Python | UTF-8 | Python | false | false | 324 | py | import logging
import pickle
from typing import Any, Dict, List, Tuple
from pydantic import BaseModel
from salmon.utils import get_logger
Query = Tuple[int, Tuple[int, int]] # head, (choice 1, choice 2)
logger = get_logger(__name__)
class Answer(BaseModel):
head: int
left: int
right: int
winner: ... | [
"noreply@github.com"
] | stsievert.noreply@github.com |
0288e235ef59eef85294d55ef4934cc66e58e2dd | 09e5cfe06e437989a2ccf2aeecb9c73eb998a36c | /modules/cctbx_project/cctbx/multipolar.py | 6deeacb4df764f36dd136cdf508e9154915b5e57 | [
"BSD-3-Clause",
"BSD-3-Clause-LBNL"
] | permissive | jorgediazjr/dials-dev20191018 | b81b19653624cee39207b7cefb8dfcb2e99b79eb | 77d66c719b5746f37af51ad593e2941ed6fbba17 | refs/heads/master | 2020-08-21T02:48:54.719532 | 2020-01-25T01:41:37 | 2020-01-25T01:41:37 | 216,089,955 | 0 | 1 | BSD-3-Clause | 2020-01-25T01:41:39 | 2019-10-18T19:03:17 | Python | UTF-8 | Python | false | false | 233 | py | from __future__ import absolute_import, division, print_function
from cctbx.array_family import flex # for tuple mappings
import boost.python
ext = boost.python.import_ext("cctbx_multipolar_ext")
from cctbx_multipolar_ext import *
| [
"jorge7soccer@gmail.com"
] | jorge7soccer@gmail.com |
98d7b30f1b9130e8536534801804e18aecd0d74c | 8d919cec13aac294a17640da244970e1501a7f72 | /pos/admin.py | 6d2d4acf76e6b0acfdc47a5f53dc21bfefc941ea | [] | no_license | rumahaah/posq | c1ba74141d49f30f57acc926495f3c689f4ebb63 | ef7f6284a1a6cd3ba83ad766cffb2aada2a11abd | refs/heads/main | 2023-03-28T02:31:29.446502 | 2021-03-25T04:17:49 | 2021-03-25T04:17:49 | 349,239,888 | 0 | 0 | null | 2021-03-18T23:11:56 | 2021-03-18T23:00:09 | null | UTF-8 | Python | false | false | 246 | py | from django.contrib import admin
from . models import Product, Order, Cash, OrderItem, Sequence
admin.site.register(Product)
admin.site.register(Order)
admin.site.register(Cash)
admin.site.register(OrderItem)
admin.site.register(Sequence) | [
"rumahaah@outlook.com"
] | rumahaah@outlook.com |
85cc6d7941875d0aa571c21c739706dce53b04e0 | e2a545f54dbcbd26406e84ce1b3a2881e473ff0f | /Ejemplo11.py | b67dd9ed48e11eae18ac534627c4274e833f6644 | [] | no_license | danieljobvaladezelguera/CYPDANIELJVE | 736bbec0700d36722de24ccb2272281cfbfa54a4 | ce32a71f6f559749a9e5eb9d95a6cc7099de213f | refs/heads/master | 2021-06-28T21:38:52.079378 | 2021-01-25T22:04:35 | 2021-01-25T22:04:35 | 207,672,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | A = int(input("Dame un numero"))
B = int(input("Dame un numero"))
C = int(input("Dame un numero"))
D = int(input("Dame un numero"))
print ("Los numeros dados son { D } { C } { B } y { A } ")
| [
"valadezlender@gmail.com"
] | valadezlender@gmail.com |
00fdc906660d104b8b62761e93694744748b46a5 | 32631291e7fa5e4abb0d99a84dc7f153502bcdae | /关键词替换模板生成网页/python关键词替换模板生成网页.py | 8ab8d73a02c34b3e9ac942c9c83f252793cad9f3 | [] | no_license | FGFW/FCNNIC | ba5b7c4e8a7fa35b4658169b3e5cb14e78b4fa1e | 24c7abd11a4390f289ae0ebf0b7194542365f0c0 | refs/heads/master | 2021-01-10T17:14:28.040943 | 2017-03-17T18:50:07 | 2017-03-17T18:50:07 | 44,691,126 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 843 | py | """
python关键词替换模板生成网页.py
http://www.bathome.net/thread-37777-1-1.html
依山居 1:07 2015/11/24
→_→强烈鄙视做垃圾站的
"""
import random
import os
with open("host.txt",encoding="utf-8") as f:
host=[r.rstrip() for r in f.readlines()]
with open("key.txt",encoding="utf-8") as f:
key=[r.rstrip() for r in f.readlines()]
with open... | [
"yishanju@gmail.com"
] | yishanju@gmail.com |
f42e8a9828e631d190c3141533622da976aa2b2a | 4119a196ef64f6be0ca05a22a3e06ace95df8835 | /TrainingCode/Comparison of left and right side/fc.py | 442b15a3d4432c21c7ca38e8d1eb86de7f61ad08 | [] | no_license | uhomelee/DeepInverseKinematicsSolver | 7358a2cf5a6e3222aab3066fedef56c35c68b7ad | bbf79d8f75883a53d4c0d9cff53a8ca9ccff4cd2 | refs/heads/master | 2020-03-23T05:19:39.066233 | 2019-06-16T09:23:04 | 2019-06-16T09:23:04 | 141,137,272 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,344 | py | import numpy as np
import tensorflow as tf
#import matplotlib.pyplot as plt
X_train = np.loadtxt('./train_x_5_10f.txt')
y_train = np.loadtxt('./train_y_5_10f.txt')
#X_test = np.loadtxt('test_x.txt')
#y_test = np.loadtxt('test_y.txt')
n_dim = 15
"""
n_neurons_1 = 256
n_neurons_2 = 512
n_neurons_3 = 512
n_neurons_4 = 1... | [
"1057980213@qq.com"
] | 1057980213@qq.com |
0fe37e6ee18079c74d7bf6b0291667ce4c3633db | fc56f5f55653f44b23c66c18ac277bf02a4272c9 | /producer.py | 4e45b98772b7b992d97d4e25108464bb1f0cd19c | [] | no_license | gogeterobert/Tema1ASC | e036166f285ed5cbc97bfe29fc610180d9a8d051 | 3c44f7f545221ff3e0da6a8a7f7d079bd1e5ef56 | refs/heads/main | 2023-04-13T19:00:00.457533 | 2021-04-04T11:41:28 | 2021-04-04T11:41:28 | 354,524,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,437 | py | """
This module represents the Producer.
Computer Systems Architecture Course
Assignment 1
March 2021
"""
from threading import Thread
import time
class Producer(Thread):
"""
Class that represents a producer.
"""
def __init__(self, products, marketplace, republish_wait_time, **kwargs... | [
"gogeterobert@yahoo.com"
] | gogeterobert@yahoo.com |
35b4d9c5e3ee0f075cd9c9bec33be7a16b2e8eda | cde9682e6f02441b2667336ef438d5f5476751ea | /Week 1/Hello World/hello world.py | 857db6e37bb124f4b019b39b94f7cea35f9a818f | [] | no_license | TANISHCHHABRA/MIT-s-6.00.01x | 83319a28effa41edace07184835dac8ed09b9419 | 0abcd2264935f0445e51bbd855ab081805b5e33e | refs/heads/master | 2020-08-28T01:22:41.548740 | 2020-05-09T13:54:19 | 2020-05-09T13:54:19 | 217,545,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26 | py | print("hello world")
None
| [
"noreply@github.com"
] | TANISHCHHABRA.noreply@github.com |
de6fd5366e7dab8e688fc0b811d7a49ab8dec335 | e0960c86f6ac0a7d2adf1a4a7b44da9c0a18b4aa | /Codes/p/p.py | fc1ee7553d4a3e8b722ff9664022343fe10be034 | [] | no_license | wenchao-h/WorkSpace | 3fd4c5f3c18a8e2062fcc1248ce7d6de191df530 | 6b1abec2d27fef57397e9e8945e7886c93c1d958 | refs/heads/master | 2020-03-16T07:03:37.612724 | 2018-04-13T10:51:06 | 2018-04-13T10:51:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,370 | py | import loadov
import numpy as np
from scipy import signal
import matplotlib.pyplot as plt
data, label, info = loadov.loadov('D:\Myfiles\openvibefiles\MI-CSP-r1\signals\GH\GH-171225-acquisition-2') #!Path
left=[]
right=[]
ch=info['channal']
for i in range(0,len(label)):
if label[i]==0:
left.append(data[:,:,i])
else:... | [
"450472377@qq.com"
] | 450472377@qq.com |
06c6a6658e179d4299c1d81ea39e70d5a6e23564 | eedf8b85c65f8732cc66967c5f62d248d7a1d1c1 | /smart_traffic_video_processing/paths.py | 819fba02971764cabc43af95a2818abb72e9a3e9 | [] | no_license | Abuelseaoud/Smart-Traffic-light-control | 06232a624e0b40fe7c0c4533e00620ba06685f4d | b2ec7fa4b67d692d2f486e38e28eb4f605a16f91 | refs/heads/master | 2020-05-19T21:29:40.233067 | 2019-05-06T13:45:50 | 2019-05-06T13:45:50 | 185,225,871 | 0 | 0 | null | 2019-05-06T15:42:02 | 2019-05-06T15:42:02 | null | UTF-8 | Python | false | false | 210 | py | EW_VIDEO_PATH = '/Volumes/SSD 1/Smart-Traffic-light-control1/cars3.mp4'
NS_VIDEO_PATH = '/Volumes/SSD 1/Smart-Traffic-light-control1/cars3.mp4'
IMAGE_PATH = "/Volumes/SSD 1/Smart-Traffic-light-control1/output"
| [
"muhammedmagdy.dev@gmail.com"
] | muhammedmagdy.dev@gmail.com |
640dc97dd5255c32176c195d4fdf6b170e999328 | 35b14d71ed97297165fd5bc970c2c465ee9c7a84 | /FaceDetection/app/FaceDetectionApp.py | cc04f5e95f1901e0ca01acf357211797a0b42ea3 | [] | no_license | PushpaYa/FaceRecognition | a9e0f3d4c39410101765fad29d6d932114f3ee27 | 3598b40aa9bde173f17ffe3c052e1ee8890da7d0 | refs/heads/master | 2022-02-20T10:10:38.659185 | 2022-02-12T17:28:46 | 2022-02-12T17:28:46 | 249,934,156 | 1 | 2 | null | 2021-01-15T05:55:07 | 2020-03-25T09:16:51 | Python | UTF-8 | Python | false | false | 7,366 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri March 27 12:23:59 2020
@author: pushpa
"""
from flask import Flask, request, redirect, url_for, send_from_directory,send_file
from flask import Flask, request, jsonify,render_template
from flask_debug import Debug
from flask import Flask, request, jsoni... | [
"pushpa.yadav@bostonlogix.com"
] | pushpa.yadav@bostonlogix.com |
b6562cd716423d6c50a73aeb2eccdc5912c75bed | 796f7a3f214353372df626a9fc26fc84de7ce4d7 | /lab2/2Task15.py | c60282744bf9d8b5477ea8fbfcefdb6ab3f53b83 | [] | no_license | saipavans/pythonrepo | 5ec52efb055bb67b87a2301eef8e3c1a8dee571b | c22c9d5317568c7fd5c3598601e64426b0738686 | refs/heads/master | 2021-07-07T10:19:32.294714 | 2017-10-04T13:37:27 | 2017-10-04T13:37:27 | 103,655,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 709 | py | def first(word):
return word[0]
def last(word):
return word[-1]
def middle(word):
return word[1:-1]
######## task 15 - 1 ##########
word1 = "ab"
word2 = "a"
word3 = ""
print("testing middle with two letters ", middle(word1))
print("testing middle with one letter", middle(word2))
print("testing middle with empty s... | [
"sp403250@dal.ca"
] | sp403250@dal.ca |
c00f60909a37be1910e82edde0016b6d7ac38bd3 | c263de2879f12e20efdc7044f21edd3b78d8d959 | /Data_for_analysis.py | fb09fd2aff4f610d4053d7c577a1a6fc88b0447f | [] | no_license | legovaer/Indoor-positioning-using-machine-learning | f55c7aaf559b9534b13eb83aa58224e22492ae44 | 917452622dc65f5585023477b2f4a540ee31e9b5 | refs/heads/master | 2021-12-23T04:14:29.045169 | 2017-10-29T04:33:03 | 2017-10-29T04:33:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,386 | py | import serial
import csv
serial = serial.Serial("COM1", 115200)
with open("data_unfiltered.txt", "w") as f:
i=1
while i<=5000:
for v in range(1,22):
data = serial.read()
#print (data)
if v==21:
f.write("\n")
elif v==17:
... | [
"noreply@github.com"
] | legovaer.noreply@github.com |
b193aa0c060db359de32a986431ab19710b810b9 | fdd6e734b53666a0deddd6acf295aee189cb6729 | /prototipo/whois/migrations/0009_remove_linksp_fecha.py | db86e234530f02395d2cef274ba5dd8bcba36e95 | [] | no_license | Tatiana1999/hellow-word | 75f3bdc23a3ae8d63b059ba736f8f3c1b32f9d76 | 73397755d33c4b8d9cc3d910c6a16d63c105db66 | refs/heads/master | 2021-04-30T03:31:58.300498 | 2018-05-28T15:00:09 | 2018-05-28T15:00:09 | 121,519,099 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-01-04 20:11
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('whois', '0008_linksp'),
]
operations = [
migrations.RemoveField(
model_na... | [
"noreply@github.com"
] | Tatiana1999.noreply@github.com |
d506c5086780f8d69a61cf9028c0c5f2ddeecc78 | 0b2bf68d50e585afbe46875955cd6472bce0e9ae | /train_segment.py | 4317bd5e542736f5d4ee856b335158b5de8d86f5 | [] | no_license | tachitachi/CycleConsistency | 80e194f9b8faad44aff8e76dbeb83681a32d7a37 | 1b5246248f3b88b163a07b940b4cc388773fbafd | refs/heads/master | 2020-03-23T03:01:58.420498 | 2018-07-21T05:15:06 | 2018-07-21T05:15:06 | 141,005,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,059 | py | import argparse
import tensorflow as tf
import data
import numpy as np
from preprocessing import preprocess
from postprocessing import postprocess
import time
import model
from tqdm import tqdm
import os
from labels import labels
def main(args):
# get datasets
dataset = data.get_dataset(args.dataset, args.split, i... | [
"aaronkeech@gatech.edu"
] | aaronkeech@gatech.edu |
dd35422618681f9e7ae5ba8f11324048bd7a2807 | 453b3edc0d92207e39cff76a0818026bf050c879 | /tic_tac_toe.py | 98540d1252ee682a560e881c871223c07e2b1647 | [] | no_license | shukl08vk/tic_tac_toe | d3f227f4c87535000232af9977a2eea5b1ccbc0e | 4901e32b74f16a612ae6c131dcb27511cb15d4b6 | refs/heads/master | 2023-01-28T19:34:31.590358 | 2020-12-08T17:44:01 | 2020-12-08T17:44:01 | 319,707,384 | 0 | 0 | null | 2020-12-08T17:44:03 | 2020-12-08T17:10:39 | Python | UTF-8 | Python | false | false | 2,123 | py | board={7:' ',8:' ',9:' ',
6:' ',5:' ',4:' ',
3:' ',2:' ',1:' '}
def printBoard(board):
i=9
while i !=0:
print(board[i-2]+'|'+board[i-1]+'|'+board[i])
print("-+-+-")
i-=3
i=0
def winner(board):
for i in range(1,4):
if board[i]==board[i+3]==board[i+6]!=' '... | [
"21shukla08@gmail.com"
] | 21shukla08@gmail.com |
c7bc3c2ab170180b665ad50dc5405b76ebec96fd | 77985a0973731044c7c73873116403ea381c9cfa | /Cryptography/break-cert.py | 34b2a38d137853cfe96ab4ad666ba9ff326db143 | [] | no_license | samirettali/ctf-scripts | 1dc7338e9969cf376087717175cb9cef48e971c8 | 27d6c886903e9b4a1958c3868a51bd0c707604c2 | refs/heads/master | 2021-07-15T19:28:42.619409 | 2020-09-26T07:41:15 | 2020-09-26T07:41:15 | 192,199,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 582 | py | #!/usr/bin/env python3
import primefac
import OpenSSL.crypto
from sys import argv
# This script tries to break a PEM certificate that uses weak primes
def main():
if len(argv) != 2:
print('Usage: ./%s <pem_file>')
exit(1)
cert = OpenSSL.crypto.load_certificate(
OpenSSL.crypto.FILETYPE... | [
"ettali.samir@gmail.com"
] | ettali.samir@gmail.com |
b9026089df37762b4bd1e3b3ae2b11109493b806 | 1fcdccf5d651b60bfe906f2ddafd6745f4e29860 | /nufeeb.button/reports/test_instockorderCase.py | 96c6850aa19dd022b985209874f6696bb87540b3 | [] | no_license | LimXS/workspace | 6728d6517a764ef2ac8d47fe784c4dba937a1f1d | 9669d653f4a7723947da645de526f4c580ddc88b | refs/heads/master | 2021-01-21T06:39:14.126933 | 2017-04-14T03:24:36 | 2017-04-14T03:24:36 | 83,257,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,646 | py | #*-* coding:UTF-8 *-*
import unittest
import xml.dom.minidom
import traceback
from common import browserClass
browser=browserClass.browser()
class instockorderreportTest(unittest.TestCase):
u'''报表-进货报表-进货订单统计'''
def setUp(self):
self.driver=browser.startBrowser('chrome')
browser.set_up(self.d... | [
"xsx2018@yahoo.com"
] | xsx2018@yahoo.com |
c0d3be7cd952fece2cbf790db1b52a51c174be72 | d5ebb9ec001028eec9ca6448ec306400c1f9c1dc | /venv/Scripts/runxlrd.py | 00cb9080c15c845f6a35ad86ff1497f73ccbd6e4 | [] | no_license | ysBA2018/Rapp_myRDB | 9062f0b3fc2e36b8e69b8b721a772a50b23f7bf3 | a1b7786e641b234cfdef8af1e330d1bd107c447c | refs/heads/master | 2020-05-30T23:05:52.661719 | 2019-10-16T07:20:41 | 2019-10-16T07:20:41 | 190,004,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,343 | py | #!C:\Users\Yannick Simchen\PycharmProjects\Rapp_myRDB\venv\Scripts\python.exe
# Copyright (c) 2005-2012 Stephen John Machin, Lingfo Pty Ltd
# This script is part of the xlrd package, which is released under a
# BSD-style licence.
from __future__ import print_function
cmd_doc = """
Commands:
2rows Print the... | [
"yannick.simchen@student.mi.hs-rm.de"
] | yannick.simchen@student.mi.hs-rm.de |
c1329f935163bf276dc5c80575b1a20f0a14c512 | 9bceba3fdde706db6705fac549e048723e7c56bc | /cpepc_server.py | 156052f7f755c8462ee7120b433a144a901d04e3 | [] | no_license | qsq522439539/factorytest | 6a744e96dc632d8395b7e966c3c471aefdca572c | a47f300ce668eaa0d0d0e26c8bd24605eb6c5b46 | refs/heads/master | 2021-05-11T17:54:18.605443 | 2018-01-19T10:06:55 | 2018-01-19T10:06:55 | 117,809,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,598 | py | #!/usr/bin/env python
#coding=utf-8
from ctypes import *
from socket import *
import paramiko
import subprocess
import multiprocessing
import threading
import time
import json
import sys
import re
import os
import struct
import _cffi_backend
import mul_process_package
hoolog = "D:/Autotest/Logs/hoonetmeter.txt"
clas... | [
"522439539@qq.com"
] | 522439539@qq.com |
1c1bc1d51d094dbdbef416b89e4502aac2fdd706 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/4/usersdata/146/3817/submittedfiles/swamee.py | 08dfd15fbc717a20c0e5b5b9831d84fdac069f8b | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
f = input ('Digite o valor de f: ')
l = input ('Digite o valor de L: ')
q = input ('Digite o valor de Q: ')
dh = input ('Digite o valor de delta H: ')
v = input ('Digite o valor de v: ')
e = 0.000002
D = ((8*f*l*(q**2))/(math.pi**2)*9.81*dh)**0.2
Re... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
62007b025aac0170cbd6463ff0983879358ae68c | f19383a230662ce5d161cc7f7eb61ec8e4b7f37b | /apps/operadores/urls.py | 398796c4af12acc1a826f0d0db78ae37f5adecf5 | [] | no_license | juanesduque/EPBA | 5fb907630f3607c18270233e623926bb109899c8 | 733003801f06d5d1a69466e3ea4f79b65788a0d2 | refs/heads/master | 2023-04-09T01:16:57.072765 | 2021-04-26T16:09:33 | 2021-04-26T16:09:33 | 310,967,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | from django.urls import path
from . import views
app_name = 'operadores_app'
urlpatterns = [
path('operadores',views.operadores.as_view(),name = 'operadores'),
path('operadores/ejemplo-1',views.ejemplo1.as_view(),name = 'ejemplo1'),
path('operadores/ejemplo-2',views.ejemplo2.as_view(),name = 'ejemplo2'),
... | [
"j.duque1@utp.edu.co"
] | j.duque1@utp.edu.co |
f3c3bb4ec38551ff5d7db0438fc30090c6e2691f | 9a43cf826910f937213317ba60fbe33471d635ec | /Inventario/apps.py | 5f88e2667fdec227c7af806845f767722dd069d6 | [] | no_license | JanoVilches/TheAllMightys_ISW | 9094622a40343761d9b7097d503c3f23fe366516 | 512f691acfda4c05e463ba271c5126784e3b0b0a | refs/heads/master | 2020-03-12T12:16:53.706535 | 2018-08-30T02:45:28 | 2018-08-30T02:45:28 | 130,614,656 | 0 | 1 | null | 2018-08-06T02:53:01 | 2018-04-22T22:58:03 | Python | UTF-8 | Python | false | false | 100 | py | from django.apps import AppConfig
class InventarioConfig(AppConfig):
name = 'Inventario'
| [
"vanessa.guzman@sansano.usm.cl"
] | vanessa.guzman@sansano.usm.cl |
be48fd61b46fec863128846d2efbdf19eaab87b5 | 5f653640dbae67f9798fb937c9775e80ea5fb118 | /33 - Tabuada v.2.py | 32b80d5676d5f6371ee7bd399f9e6327bd996033 | [] | no_license | GabrielReira/Python-Exercises | 92f9cdb4b3d927b86ceb434dfebfd0e9bd45c2f2 | 51ea2f3f36e516a7cc33dc9af4f65e844b0e6df4 | refs/heads/master | 2023-02-26T19:00:13.048520 | 2021-02-03T18:56:10 | 2021-02-03T18:56:10 | 274,241,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | # VERSÃO 2.
print('O programa será encerrado caso você digite um número negativo.')
while True:
num = int(input('Informe um número para saber sua tabuada >>> '))
if num < 0: break
for i in range(1, 10):
print(f'{num} x {i} = {num*i}') | [
"gabrielmfreira@gmail.com"
] | gabrielmfreira@gmail.com |
b1b3e38c4b2dc01db735731182f547fd1f393fbf | dcd70115345e56e4aa27d7093f426313557c690f | /main.py | 0feec3575e47937f55e5f8fde2cae75f4c12cee9 | [] | no_license | josemariasosa/music-theory | a79f9eed24a89e6029a2034600a802aeca689bc4 | 7dbdf4bc7cb81942cf7811abf83ffd2c449aa603 | refs/heads/master | 2021-08-06T20:46:16.753667 | 2020-07-02T00:03:24 | 2020-07-02T00:03:24 | 195,426,373 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,295 | py | #!/usr/bin/env python
# coding=utf-8
# ------------------------------------------------------------------------------
# Scales harmonization | Music Theory
# ------------------------------------------------------------------------------
# jose maria sosa
import json
import math
import numpy as np
from root import Ro... | [
"josemaria@rigs.com.mx"
] | josemaria@rigs.com.mx |
b7df0160ae164b6c2154ba2eae297e324d81eb9c | c2177b7679c38315006d2f477e7d3ac1675678ca | /maintenance/bitbucket_issues/issue_56/fixit_7.py | 9460690b75422a5e8125da88217ee1cd336022c9 | [] | no_license | sebotic/wikidataBots | 17a2cc4301770707443d063926c1df90fa36fcf8 | c444d4aadc4a870ac5cdc472a787dd99c78b0d96 | refs/heads/feature/metabolites | 2020-12-27T23:54:36.328120 | 2016-09-17T05:18:53 | 2016-09-17T05:18:53 | 68,481,272 | 1 | 0 | null | 2016-09-17T22:24:37 | 2016-09-17T22:24:37 | null | UTF-8 | Python | false | false | 2,008 | py | __author__ = 'andra'
# This is a maintenance bot which removes all occurences where a protein is incorrectly being encoded by another protein
import time
import sys
import os
sys.path.append(os.path.dirname(os.path.abspath(__file__))+"/../../../ProteinBoxBot_Core")
import PBB_login
import PBB_settings
import PBB_Core... | [
"andra@micelio.be"
] | andra@micelio.be |
f7d2dc40aafa004affe72771d18597426fa848ff | 6ea9a54e083a306da263a996ab43f921e2556e7d | /Case/migrations/0002_caseoverview_datecreated.py | f3c3f4003a49538db023d5056dafdf4cf9242ef9 | [] | no_license | Kalviz/CaseTracker | 188c2dffb0132c61f7544545587c8df91125a22b | e90a62479f0e709137fc3ae65b72e62ec123ce18 | refs/heads/master | 2020-04-05T04:51:08.638250 | 2018-11-07T15:47:11 | 2018-11-07T15:47:11 | 156,569,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | # Generated by Django 2.1.1 on 2018-11-05 10:28
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('Case', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='caseovervie... | [
"noreply@github.com"
] | Kalviz.noreply@github.com |
9bc8b9a2dae8571371e8b53e846ad5b5291d7df9 | e8eb4a03f89be52de5b2400b93808beea0b28b7a | /quandlExample.py | 89107721f4fb464a2a49e56d4e5ab153aa6ffc6a | [] | no_license | vkrishnam/FinancialAnalysis | 992e0d6fde3d70e0e5575fb32cf11ed39ecc1a3e | 253d4f1b128dc8ca44a2b1ba060fee4ca0699228 | refs/heads/master | 2023-07-23T06:37:29.073282 | 2023-02-07T16:19:47 | 2023-02-07T16:19:47 | 196,515,414 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | #############################################
## https://www.quandl.com/data/TC1-Indian-Equities-Adjusted-End-of-Day-Prices/usage/quickstart/python
#############################################
import quandl
quandl.ApiConfig.api_key = "1Rw_ovhmRsBYyzx4p3cL"
#mydata = quandl.get("FRED/GDP")
mydata = quandl.get("DEB/IN... | [
"vkrishnam@nvidia.com"
] | vkrishnam@nvidia.com |
e900b33635375b77cbe1283be0d3aefab4fe6cbf | 4e008b002c70f3a7179bee2d86062e7fc79f6dea | /ssq.py | 08ac26393e432f0754c9ddc3c6beacee6c388df9 | [] | no_license | lixiangheng/learn | 948632def882d972d39b21faea7a0481671263ad | d5c6041f5c1a9f0758e198f4edec5a196c760c06 | refs/heads/master | 2021-06-09T13:34:13.429264 | 2021-04-13T02:25:03 | 2021-04-13T02:25:03 | 131,359,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py |
import random
import sys
i= 0
try:
y = int(input('请输入要选择的注数:'))
# y = int(sys.argv[1])
except ValueError:
print('请输入数字!')
while i < y:
red = random.sample(range(1, 34), 6)
blue = random.sample(range(1, 17), 1)
red.sort()
print("%s - %s" %(str(red), str(blue)))
i +=1
| [
"noreply@github.com"
] | lixiangheng.noreply@github.com |
f412d4ab4d0dd14f5091d8ff033eac1effd5749f | e9333f51cf76e94b68cce9d0daf5da545ced54a7 | /server.py | 58a5a81c278ed515ed79b123716dda546fa935db | [] | no_license | locnguyen14/HAR-data-collection | a5be42ebb261bedb3b62dd3b736b7b3c5da27467 | 681ccd94208f624fe224fa7e944c9437ee8d31ca | refs/heads/master | 2022-11-14T03:47:44.158681 | 2020-06-01T20:05:55 | 2020-06-01T20:05:55 | 268,619,084 | 0 | 1 | null | 2022-11-02T05:33:39 | 2020-06-01T19:57:10 | C | UTF-8 | Python | false | false | 3,211 | py | def listen_once():
import matplotlib.pyplot as plt
import socket
from collections import defaultdict
import json
# Get host from Wireless LAN adapter wi-fi ipv4.
# Standard loopback interface address (localhost)
# HOST = socket.gethostbyname(socket.gethostname())
HOST = '192.168.1.4'
... | [
"ndxloc1995@gmail.com"
] | ndxloc1995@gmail.com |
94507bb96277abb7d1a650690d87d2a5ac9ffdf4 | d8849023c5d309e8f4ae10f383e1eeda2e37f25e | /maximumNumberOfVowels.py | 358ab20d8655ec310f8ad59fa464d924f6064f75 | [] | no_license | Darshak1997/leet-Code | ba54c0c2e042c437a0fca72902367db3c82a0317 | 075ebadf554dca682466bda3176f68fb1152d7b6 | refs/heads/master | 2021-07-09T20:22:42.287957 | 2020-11-12T07:50:55 | 2020-11-12T07:50:55 | 209,810,290 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | class Solution:
def maxVowels(self, s: str, k: int) -> int:
res = j = vowels = 0
for i, c in enumerate(s):
vowels += c in 'aeiou'
if i - j + 1 > k:
vowels -= s[j] in 'aeiou'
j += 1
if i - j + 1 == k:
res = m... | [
"noreply@github.com"
] | Darshak1997.noreply@github.com |
06c66a2feee91220ce7a7719c25f1bd59d258626 | 6f6ef78716d3e2ea335c9e079cb4027e2c921bd9 | /uart/decrypt.py | 3223b05c4718ea1dedf0758ef6953f70e3cec1d4 | [] | no_license | Aithu-Snehith/image_stegenography_fpga | eb68ddf0ec1aeec7160490223ff99b7540786a85 | 2ccb81cad3ea495ffd3b6d4a5fb5b79264054b78 | refs/heads/master | 2020-04-27T12:44:28.437831 | 2019-04-26T11:46:56 | 2019-04-26T11:46:56 | 174,342,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | import numpy as np
import sys
import numpy
numpy.set_printoptions(threshold=sys.maxsize)
from scipy.misc import imread, imsave
def frombits(bits):
chars = []
for b in range(len(bits) / 8):
byte = bits[b*8:(b+1)*8]
# print(''.join([str(bit) for bit in byte]))
chars.append(chr(int(''.join... | [
"ee16btech11041@iith.ac.in"
] | ee16btech11041@iith.ac.in |
5cc6efa4923287e64173d99b8588aea459f0e66e | 2176d2e4e2425660ffe0ef14b42e8433ddd8faea | /npl/evaluate/logreg_ll.py | 2832eb580a7daece8b4d3930ea3d40579f2ae0f8 | [
"BSD-3-Clause"
] | permissive | edfong/npl | 87e6f72ace4ed9b7658b06b74f029b17a104244d | 9e94287a7c253a33addcafb431c384be8a7dd8df | refs/heads/master | 2020-05-17T09:34:05.754240 | 2019-05-18T18:01:39 | 2019-05-18T18:01:39 | 183,636,918 | 9 | 2 | BSD-3-Clause | 2019-05-02T11:43:47 | 2019-04-26T13:50:32 | null | UTF-8 | Python | false | false | 2,310 | py | """
File used to evaluate predictive performance on test data of posterior samples
"""
import numpy as np
import scipy as sp
#For all:
#beta = posterior coefficient samples with shape (B,D)
#alpha = intercept coefficient samples with shape (D)
#y = test data classification with shape (N)
#x = test data covariates w... | [
"noreply@github.com"
] | edfong.noreply@github.com |
0cadb46f04ad4bca411d095743cfc2925a262c36 | 6c922b75cd0f7b76d80d1f0e0b4e7e65b2d6ed52 | /code/plotting/base/movie_buddy.py | 5c88c63bdf9b8e861ebc23033ae998d152a511d7 | [] | no_license | mahdikooshkbaghi/stratified_heat_transport_paper2017 | 5f879e690908604272617915a8e2461b09d003a3 | db5864e37494f271da8cc0d533381e7378944daa | refs/heads/master | 2022-08-26T07:32:43.489533 | 2018-04-27T19:57:27 | 2018-04-27T19:57:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,814 | py | from plot_buddy_base import *
import matplotlib
matplotlib.rcParams.update({'font.size': 11})
from scipy.stats.mstats import mode
import matplotlib.colorbar as colorbar
POSITIVE_DEFINITE = ['enstrophy']
class MovieBuddy(PlotBuddy):
def __init__(self, dir, profile_post_file=None, **kwargs):
super(Mov... | [
"evan.anders@colorado.edu"
] | evan.anders@colorado.edu |
788fe02433f5803b8af2dbf85c5e7cbd09b6e185 | 081df6c86f261e3d168f0ea39099e28e1e61c01b | /Flask_api.py | 6215d5d00246a893e54b2eb0945b4f44358a4adb | [] | no_license | Usamamalik11/Pakistan-Super-League-Score | 7e050d08673866f8d190d1c826a029e795032b45 | b8459005cd3088a8c9cee61efc8e651a88a8acc8 | refs/heads/main | 2023-01-06T12:35:52.229393 | 2020-11-09T15:18:42 | 2020-11-09T15:18:42 | 310,600,248 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,884 | py | from flask import Flask,request
import pandas as pd
import numpy as np
import dill as pickle
from sklearn.base import BaseEstimator, TransformerMixin
from sklearn import preprocessing
app=Flask(__name__)
with open('model' ,'rb') as f1:
loaded_model = pickle.load(f1)
with open('sc','rb') as f2:
stand = pickle.... | [
"ushakeel.bee16seecs@seecs.edu.pk"
] | ushakeel.bee16seecs@seecs.edu.pk |
3c2417f97db9a810dda8d7ab3bebdd355be46d39 | 5b3ddae168daf35a95788269d6f4d97c68cf21a0 | /CryptoSPN/aby_conversion/ABY.py | 0758130ff5804081424e49496389c35f5594a90d | [
"MIT"
] | permissive | encryptogroup/CryptoSPN | 0b9bd99f6c862a1c4418e86c46f91f0ee57f4e2d | bb4cb6c035eaa02f8ac789ab66321d8e0160304b | refs/heads/master | 2020-12-21T13:35:21.960894 | 2020-04-29T16:18:58 | 2020-04-29T16:18:58 | 236,446,056 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,871 | py | """
Created on January 9, 2019
@author: Amos Treiber
"""
import subprocess
import tempfile
from spn.structure.Base import Product, Sum, Leaf, get_nodes_by_type
from spn.structure.leaves.parametric.Parametric import Bernoulli, Poisson, Gaussian
from spn.structure.leaves.histogram.Histograms import Histogram
from math ... | [
"treiber@encrypto.cs.tu-darmstadt.de"
] | treiber@encrypto.cs.tu-darmstadt.de |
0200c688bffd077a67cc58902a058bd882a27bda | 6ea14d2de6bf34ae66bb35e8d9f11ffda1b65205 | /notebooks/telegramBot/bot.py | cc690eb61a19170feae7ac00838c9a1f06560136 | [] | no_license | ostapkharysh/AutomatedResponseMessenger | f10ec136d7b1a6686d787ccbf93c92fbf9ced180 | a72ec74f356bdbf187583c000f8f8dc1ea3b2b24 | refs/heads/master | 2021-04-06T20:12:19.677054 | 2019-01-31T15:22:49 | 2019-01-31T15:22:49 | 125,359,022 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 710 | py | from telegram.ext import Updater, CommandHandler, MessageHandler, Filters
updater = Updater(token='554425042:AAHnLVakFnVxyUAfnO27sMGUxOc8jqg3ylU')
dispatcher = updater.dispatcher
def start_command(bot, update):
bot.send_message(chat_id=update.message.chat_id, text='Whats up')
def text_message(bot, update):
... | [
"olha.bakay@eleks.com"
] | olha.bakay@eleks.com |
34561a1b7934a0de12ecdb733f78ec540ce47ece | 72fa9e96e9eeae6ac213e9355407168483f1a447 | /lab4.py | f5105e773abd11b8b98cbefe6056a0b1c6cb1a40 | [
"MIT"
] | permissive | kendallsmith327/IA-241 | d65dca1773692730836192725520642c3e1e0c1b | 7c1492ff635249849c20c083b5d7fc0518c1ab8a | refs/heads/main | 2023-05-02T11:50:35.945176 | 2021-05-04T14:40:08 | 2021-05-04T14:40:08 | 332,523,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | """
lab 4 dict and tuple
"""
#3.1
my_dict = {
'name': 'Tom',
'id':123
}
print(my_dict)
#3.2
print(my_dict.values())
print(my_dict.keys())
#3.3
my_dict['id']=321
print(my_dict)
#3.4
my_dict.pop('name',None)
print(my_dict)
#3.5
my_tweet = {
"tweet_id":1138,
"coordinate... | [
"ec2-user@ip-172-31-54-218.ec2.internal"
] | ec2-user@ip-172-31-54-218.ec2.internal |
3aedcff2997d62f490182dff85f9a046504d7ecc | ede4380d48abfaafd81d6846255ca8f482d043cc | /clustering on Mldata/dbscan/dbscan.py | 81afbc4c1d117cc8199297968a66bb73edeb0988 | [] | no_license | harsh4723/Intern_projects-2017-summer- | cc16a520b418759c794e68995791aeeb7fadc554 | 06e6e79521c3871c0e4ce06643caccd16e7e0ac7 | refs/heads/master | 2021-01-01T19:44:19.809410 | 2017-07-28T15:46:11 | 2017-07-28T15:46:11 | 98,664,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,570 | py | """
DBSCAN test on multilabel data
"""
import numpy as np
import csv
import math
from sklearn.cluster import DBSCAN
from sklearn import metrics
loc=6
def dataload(filename): #load data and convert into a list
with open(filename,'rb') as csvfile:
dataset=csv.reader(csvfile)
data=list(dataset)
d... | [
"noreply@github.com"
] | harsh4723.noreply@github.com |
167d321ae89718b7f15ef4f4ebe01e32629453a9 | c6b19dba34bfc9259168b56a0e34dedad488eacd | /tools/compute_z.py | e837bcb5bbc2442dadee0523de6d0d02d52f521f | [] | no_license | tspurway/learnyx | 7a5ddf083b14e5264233a182df247a89edccdf0f | 4ebdb0e2ecaa421f47114c6b3c245dcef6f8fe65 | refs/heads/master | 2016-08-08T15:26:16.480877 | 2015-04-30T00:58:10 | 2015-04-30T00:58:10 | 24,125,218 | 0 | 2 | null | 2015-02-24T03:39:35 | 2014-09-17T01:43:04 | Python | UTF-8 | Python | false | false | 2,744 | py | #!/usr/bin/python
import sys
import re
import logging
from optparse import OptionParser
from math import sqrt
def read_hist(filename):
total = 0.0
histogram = [0]
f = open(filename, "r")
for line in f:
chunk = re.split(',', line)
count = int(chunk[1]) * 1.0
total += count
... | [
"tspurway@gmail.com"
] | tspurway@gmail.com |
8cd7a52275e204cadbc101ee0dd3a91b5a3cf40b | 9d5ae8cc5f53f5aee7247be69142d9118769d395 | /219. Contains Duplicate II.py | be4a241a6c98d774f6c7b50f1b12ab279242bda2 | [] | no_license | BITMystery/leetcode-journey | d4c93319bb555a7e47e62b8b974a2f77578bc760 | 616939d1599b5a135747b0c4dd1f989974835f40 | refs/heads/master | 2020-05-24T08:15:30.207996 | 2017-10-21T06:33:17 | 2017-10-21T06:33:17 | 84,839,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | class Solution(object):
def containsNearbyDuplicate(self, nums, k):
"""
:type nums: List[int]
:type k: int
:rtype: bool
"""
if len(nums) == 0 or k <= 0:
return False
if k + 1 >= len(nums):
return len(set(nums)) < len(nums)
s = s... | [
"noreply@github.com"
] | BITMystery.noreply@github.com |
0fa7bd45588c07090cd2cb309e2cbea474f5db0c | 8a5de861c874190d9503e33fc583402bc90e1dc7 | /W14/EX2.py | 3a5d0a36376416abf22cf2adb94e3c8eb03cf568 | [] | no_license | hj8239ka45/MachineVision | 7a7b0c00932fcbc88b18dbadea2597d2677fe035 | 2eeb72872f948ecfb403b0a58a118417d0ce15bc | refs/heads/master | 2023-04-13T08:46:36.732849 | 2023-04-05T05:13:56 | 2023-04-05T05:13:56 | 276,903,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,087 | py | import cv2
import numpy as np
import glob
def draw(img, corners, imgpts):
imgpts = np.int32(imgpts).reshape(-1,2)
# draw ground floor in green
img = cv2.drawContours(img, [imgpts[:4]],-1,(0,255,0),-3)
# draw pillars in blue color
for i,j in zip(range(4),range(4,8)):
img = cv2.... | [
"hj8239ka45@gmail.com"
] | hj8239ka45@gmail.com |
960bc80f0bf50741ad3d776671f7ea2798a1d770 | 26e8c952b4d7235c35fa4d2b5ad668931d3c0ef8 | /tests/test_eddystone_scanner_example.py | 88ebac795feeec4430e9a1097a162e20ef74cb19 | [
"MIT"
] | permissive | ukBaz/python-bluezero | fb7a2e1eea4ee4ef8b58dda308884bceaa62ef0d | 2b0aba891655bae44c1f281852d5669d5dc9db19 | refs/heads/main | 2023-08-17T06:33:27.460187 | 2023-08-06T16:19:09 | 2023-08-06T16:19:09 | 49,202,026 | 360 | 134 | MIT | 2023-08-06T16:14:33 | 2016-01-07T11:57:01 | Python | UTF-8 | Python | false | false | 1,507 | py | import dbus
import dbusmock
import io
from pathlib import Path
import subprocess
# from gi.repository import GLib
from unittest import mock, skip
from tests.mock_eventloop import MockAsync, run_pending_events
from examples import eddystone_scanner
class TestExampleScanner(dbusmock.DBusTestCase):
"""
Test moc... | [
"barry_byford@yahoo.co.uk"
] | barry_byford@yahoo.co.uk |
d39ae8b0d3f623d7faa51d9415dce15c13f2d14a | c6f001c85a2c0664a00393dd026b2b36851a5ec2 | /comentarios/api/urls.py | 8a60dfb3327cac8697b5eae3ef6db6e0ec75e9db | [] | no_license | OscarRuiz15/BackendTG | 061816c3014c81d5f109738f5707efba2961bb2c | c254f6f7dd5df7b7364fbf673d9525e3901423dd | refs/heads/master | 2022-12-11T10:42:50.922058 | 2021-04-15T17:49:43 | 2021-04-15T17:49:43 | 147,595,067 | 0 | 0 | null | 2018-09-08T22:16:45 | 2018-09-06T00:29:14 | Python | UTF-8 | Python | false | false | 240 | py | from django.urls import path
from .views import ComentarioListView, ComentarioView
urlpatterns = [
path('', ComentarioListView.as_view(), name='comments-create'),
path('<int:id>/', ComentarioView.as_view(), name='comments-rud'),
]
| [
"andres.medina@correounivalle.edu.co"
] | andres.medina@correounivalle.edu.co |
131f9a0dcf44ee0c7a6ce552a572bf306f625caa | 9e4fd9dce2483272a4d6c3feece3f92f7af69f5d | /core/utils/table.py | 01ec5a2105e37cb460042511d721161c9799084d | [] | no_license | matavclez/hakuna_datata | 25f3f9a05adee17bb14c000ef97c6c8b31a0bb72 | 0d6f19e85093e872d4880f1951a208b0a6edd6fa | refs/heads/master | 2021-02-12T17:15:26.157228 | 2020-03-03T14:39:34 | 2020-03-03T14:39:34 | 244,610,861 | 1 | 1 | null | 2020-03-03T14:42:18 | 2020-03-03T10:48:23 | Python | UTF-8 | Python | false | false | 1,495 | py | """
En este script se define la clase base Table.
Con esto crearemos otras clases que se encargarán de leer y guardar las tablas que generemos.
"""
import pandas as pd
from core.data_pipeline.rutas import schema, relative_paths
class Table:
"""
:param usuario: En un string, insertar una de los sigu... | [
"matiasluis.avila@bbvadata.com"
] | matiasluis.avila@bbvadata.com |
f2c5f33f36f9726635338f174ba2502274d94595 | 2455c474528f2b73c7190fe2318453d32006bd30 | /cogs/yags_youtube_message.py | aeda7e941c38334c8ef9029fb32cc7c45a02e004 | [] | no_license | fadedmax/Apple.Py | 1a6f818eb6d82611cbfb080609ca8103581db6e9 | 454a21afb33db5acc06e939caec8e545d762142e | refs/heads/master | 2023-02-06T02:36:16.970248 | 2021-01-02T01:07:46 | 2021-01-02T01:07:46 | 305,582,687 | 0 | 1 | null | 2020-11-02T10:32:35 | 2020-10-20T03:46:32 | Python | UTF-8 | Python | false | false | 1,009 | py | import discord
import voxelbotutils as utils
class YagsYoutubeMessage(utils.Cog):
GUILD_ID = 208895639164026880
YAGS_USER_ID = 204255221017214977
YOUTUBE_UPDATE_ROLE = 731597271690510346
@utils.Cog.listener()
async def on_message(self, message:discord.Message):
"""Send a message to peopl... | [
"callum@voxelfox.co.uk"
] | callum@voxelfox.co.uk |
89db34097f928f54d80cd16ac5675fa925277241 | 55d4c531c6e0454dd5c4d1d5c93e01df4c6c442a | /train.py | 756d04c2276d2c3c367faac4d879a674bfb56876 | [
"MIT"
] | permissive | freefly518/facenet-tf2 | 6c5c3345e85d92eb812b70f4c02de7b9978892bf | b7febab7c235f71a5d9594416916060cb29878d2 | refs/heads/main | 2023-07-26T04:38:00.146469 | 2021-09-05T06:36:08 | 2021-09-05T06:36:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,882 | py | from functools import partial
import numpy as np
import tensorflow as tf
from tensorflow.keras.callbacks import EarlyStopping, TensorBoard
from tensorflow.keras.optimizers import Adam
from nets.facenet import facenet
from nets.facenet_training import FacenetDataset, triplet_loss
from utils.callbacks import (ExponentD... | [
"noreply@github.com"
] | freefly518.noreply@github.com |
04444af37f384c2e6e1ca403a162c4a2e52aa8c9 | de5ed11c9a33eb732fda7130ad8d2f5bc0f15929 | /carla_rllib/utils/spectators.py | ec9171dca129067162119dcf4ee5adb4c35de548 | [
"MIT"
] | permissive | 50sven/carla_rllib | f6eeb44193eb1e88e3e1a37d303b7f6ea63b5998 | b5f8bd4de884e591f80a7148db60362882af5b37 | refs/heads/master | 2020-12-26T08:40:19.701538 | 2020-06-05T08:49:20 | 2020-06-05T08:49:20 | 237,451,207 | 0 | 0 | MIT | 2020-01-31T15:36:16 | 2020-01-31T14:53:18 | Python | UTF-8 | Python | false | false | 8,133 | py | """Spectator
This script allows the user to operate a spectator camera.
It enables to switch between all agents in the environment.
"""
import time
import os
import queue
import numpy as np
import pygame
import carla
from carla import ColorConverter as cc
from pygame.locals import K_ESCAPE
from pygame.locals import ... | [
"sven.mueller92@gmx.de"
] | sven.mueller92@gmx.de |
d3b0c86722a9f79458ce6e73576156a377a39788 | d970993d08d5a40c6ddaec66ff4a21c7f1929624 | /myjinja02.py | 80aebeae6339cc673558e6109f0c9286228b3678 | [] | no_license | ccmiller214/python_api_class | 59d0f7a3c236476c7897905b6303bcc85cab722c | a284a3d91dfe560a39e85e806d4887be7ea817d6 | refs/heads/master | 2020-06-26T03:58:21.185736 | 2019-08-02T18:37:43 | 2019-08-02T18:37:43 | 199,519,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | #!/usr/bin/python3
from flask import Flask
from flask import render_template
app = Flask(__name__)
@app.route("/")
def index():
return render_template("hellobasic.html")
@app.route("/<username>")
def userbuilder(username):
return render_template("hellobasic2.html",name = username)
if __name__ == "__main__... | [
"ccmiller214@gmail.com"
] | ccmiller214@gmail.com |
86533b2ee92b41abb4a1952a9198a001a68dcce3 | 1ded6c4aeeee677925d3a951b2c85b4f3e8cb772 | /Python自动化开发/day作业/03/1.py | c81aafba7a85b3d76e33f8729648e8ea3d54f575 | [] | no_license | zhangyu-yaoshen/Python | 90ec2aafcfaeabcdf2df66688be2d27e7062a021 | be7d3e5cc80d4a961fc0fe44e4dbafe318e7fdec | refs/heads/master | 2021-01-18T16:37:51.692730 | 2019-09-16T00:49:51 | 2019-09-16T00:49:51 | 100,464,481 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,466 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
import os
#第一部分 sql解析
def sql_parse(sql):
parse_func={
'insert':insert_parse,
'delete':delete_parse,
'update':update_parse,
'select':select_parse,
}
# print('sql str is %s '%sql)
sql_l=sql.split(' ') #list
func=sql_l[0]
... | [
"494167883@qq.com"
] | 494167883@qq.com |
117cbdf9377a4d39b7d4177b25af8c3cada3fe34 | eb2633ab48c0d625f13d44cee9f67f3cf437fd25 | /Projet 6/projet6_3_8.py | 5ca27a03dc29f662ac68c6bacb2da4971c76e878 | [] | no_license | marecmat/Simulation-numerique | 178f3a7c99fd27da9d071e6bc91b2537ea6d49c1 | 2959c345e4902f4f7a9efd1a2668c49df87976e1 | refs/heads/master | 2021-10-09T01:38:28.397862 | 2018-12-19T23:28:39 | 2018-12-19T23:28:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | import numpy as np
import matplotlib.pyplot as plt
from scipy.io import wavfile
rate, data = wavfile.read('Projet 6/PROJET6.3/chirp.wav')
t1 = np.linspace(0, len(data)/rate, len(data))
#2e chirp: 1.75 --> 4
def find_nearest(array, value): #https://stackoverflow.com/questions/2566412/find-nearest-value-in-num... | [
"oupsmajdsl@gmail.com"
] | oupsmajdsl@gmail.com |
6a19f05a1a3b2e3f50a4957a1dae14b715edae24 | 7fc0ec7a1e066e696b3151bea4c83d21574f1805 | /profiles/migrations/0002_auto_20170301_1823.py | fc59530a25d169aca3aff73d09ebe11d0fab5ba6 | [
"MIT"
] | permissive | pyladieshre/pyladies | 8dd2cd441f87fc25a377b43397b1a1d518346903 | 5cbea02a48ac64b1194d6329c5bc55183142f2ab | refs/heads/master | 2021-01-11T18:51:19.056554 | 2018-01-12T01:12:06 | 2018-01-12T01:12:06 | 79,638,956 | 0 | 9 | MIT | 2020-10-01T02:48:39 | 2017-01-21T10:25:26 | Python | UTF-8 | Python | false | false | 1,075 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2017-03-01 16:23
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('profiles', '0001_initial'),
]
operations = [
migrations.RemoveField(
... | [
"amakarudze@gmail.com"
] | amakarudze@gmail.com |
dc75ff660a6fb321a4d206363f9563b6d1989a29 | 06e7c28feded88780ea8540d1ffbc1cd374643c6 | /app/main/views.py | 8eaeb982a58f6f909e226fb1a04a8b8de047270b | [] | no_license | Niel2016/FlaskApp | 16232c89b2394b8a4b6e921408765307922dc074 | 64cec2bd14bc8dab44369b8238132893f04729f8 | refs/heads/master | 2020-09-22T05:56:21.982752 | 2016-08-22T09:56:16 | 2016-08-22T09:56:16 | 65,982,291 | 0 | 0 | null | 2016-08-22T09:56:16 | 2016-08-18T09:05:20 | Python | UTF-8 | Python | false | false | 1,080 | py | from datetime import datetime
from flask import render_template, redirect, url_for, session
from . import main
from .. import db
from .forms import NameForm
from ..models import User, Role
from ..email import send_mail
@main.route('/', methods=['GET', 'POST'])
def home():
form = NameForm()
if form.validate_on... | [
"montainlion2012.cn@gmail.com"
] | montainlion2012.cn@gmail.com |
d09ac153152c07aa6b0b24b4f8b0201f963fd8ad | ab49f8e9332d477fd6a188899856930872de7828 | /Dennis/base/urls.py | 20878b112d6034732cc9bf8abaa22ab4af980d1f | [] | no_license | RodolfoMoralesTH/Discord-Clone | b7725b29985a4bd8538a71fbfe619a6dd252a151 | 8e9f408d5ee97e9691fa7704945b3766848940b6 | refs/heads/master | 2023-08-27T22:53:47.859157 | 2021-11-09T14:59:24 | 2021-11-09T14:59:24 | 425,206,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | from django.urls import path
from . import views
urlpatterns = [
path('login/', views.loginPage, name='login'),
path('logout/', views.logoutUser, name='logout'),
path('register/', views.registerPage, name='register'),
path('', views.home, name='home'),
path('room/<str:pk>/', views.room, name='room'... | [
"agnesmoralesth@gmail.com"
] | agnesmoralesth@gmail.com |
00dbdd43df691997b6371d541be8e7078d570941 | d561af33f149261e3c75ffa69472f8fe6c01e0bc | /hickory/crawler/iextrading/stock_data_import.py | 75e89ec11cd1edae569b4a110606427c8169f511 | [] | no_license | eggyolktech/hickoryStrats | 0131e4053a37d3be2d8990b0371a3192c1f28f30 | 1ca632313d21ba785f0de5a61b88c330df7753c8 | refs/heads/master | 2021-01-19T21:22:04.196906 | 2018-05-24T15:27:04 | 2018-05-24T15:27:04 | 88,647,483 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,558 | py | #!/usr/bin/python
from bs4 import BeautifulSoup
import requests
import locale
import json
import re
from hickory.util import stock_util
from hickory.db import stock_us_db
from datetime import datetime
import concurrent.futures
import random
import traceback
import logging
EL = "\n"
DEL = "\n\n"
TAG_RE = re.compile(r... | [
"eggyolktech@gmail.com"
] | eggyolktech@gmail.com |
a18135c296aebdbf4445f38d131edbd7571e458a | 6f0fb2cec6c32ddd94fa97499b5aa77e43f583dc | /getml/placeholder.py | a0bee5c25aea3358da700fe0ad85f27f7102fa7f | [
"MIT"
] | permissive | srnnkls/getml-python-api | 22e84056e9e2efd8bf837844f74295a78bcb124f | 032b2fec19a0e0a519eab480ee61e0d422d63993 | refs/heads/master | 2021-01-06T13:40:53.036206 | 2020-02-24T16:48:51 | 2020-02-24T16:48:51 | 241,345,467 | 0 | 0 | MIT | 2020-02-18T11:36:16 | 2020-02-18T11:36:15 | null | UTF-8 | Python | false | false | 7,128 | py | # Copyright 2019 The SQLNet Company GmbH
# 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, publish, ... | [
"patrick@sqlnet.ai"
] | patrick@sqlnet.ai |
9ff9ef555394dd9af0c6365a29d98a0803cc0f28 | ecad3cb4d0347bc91f2d9bf0453349f953cb0182 | /SE01_Dojo_Exercise-2-2_HannaBieri.py | 627844729073db462f1c1417bd67065be82acfe5 | [] | no_license | hannabieri/SE01_Dojo | 9d964e0c4dafe6e4f125c5615a8f7e02cfe43301 | e1d0b6fa583b80c0ce8f2f4366303601cbc0d1f7 | refs/heads/main | 2023-01-19T12:53:36.512200 | 2020-12-01T17:27:38 | 2020-12-01T17:27:38 | 317,202,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,617 | py | '''
This was my back-to-version-1 attempt of getting the game logic working.
However
'''
# Function to display beaker to user
def create_beaker(beaker):
print("Beaker 1:", beaker[1][0], "|", beaker[1][1], "|", beaker[1][2])
print("Beaker 2:", beaker[2][0], "|", beaker[2][1], "|", beaker[2][2])
print("Beake... | [
"h.bieri@mbpr-hbieri.local"
] | h.bieri@mbpr-hbieri.local |
992fe6ae1eb2ae5f729204e5b8780b9ca27d14f6 | 17e9a8f87c83e5856f8c83882a1d19bc6c072ede | /display/data.py | ccd478fdf321a5fc57f0dbfc0cd0f69b7578a644 | [] | no_license | tobygaskell/hello_world | a778598ae0fd34b344daa3e5ce08d711f9912c8d | ea285118c749c3a013733bd93bc0fdabfa3f605a | refs/heads/master | 2022-12-16T10:15:51.071795 | 2020-09-09T15:42:21 | 2020-09-09T15:42:21 | 292,222,939 | 0 | 0 | null | 2020-09-02T08:42:05 | 2020-09-02T08:22:03 | null | UTF-8 | Python | false | false | 77 | py | import json
def display_data(dict):
print(json.dumps(dict, indent = 1)) | [
"toby96@sky.com"
] | toby96@sky.com |
65093a6df3302f004eabd7153db265171358e010 | 91ae95209bad9fbdd9d0efe4c3dee2d1aa902068 | /Pipe.py | 95eada45ca54ed4175e7d4c1e1fd582f2ae14b39 | [] | no_license | carminechoi/Blappy-Fird | 6f4ae45b53ed63723b6452e52c81705963cd5bc7 | d7c5e99252902c487cbd7fbe700d02adec7b6004 | refs/heads/master | 2020-06-20T15:10:21.602873 | 2019-09-09T20:51:48 | 2019-09-09T20:51:48 | 197,160,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,871 | py |
# PIPE Class
import pygame
import random
import Constants
class Pipe:
def __init__(self, win, lower_pipe, upper_pipe):
self.lower_pipe = lower_pipe
self.upper_pipe = upper_pipe
self.pos_X = 350
self.gap_height = Constants.PIPE_GAP
self.pos_upper_Y = -200
self.po... | [
"carminec@uci.edu"
] | carminec@uci.edu |
e1228a7eeadd50e92196f70b679938555cff3a44 | 98f05737c7bbf70351ef7977ae74696d980deac9 | /PythonGame/classfile.py | 1dfce75aad18532a4ab625476dcd7dc4326eb0cf | [] | no_license | steelbath/gameMitPlebs | 3b16adf6b19fb2044697538f2ad4c543e6cbb7a8 | 925f9bfe20ff25c12bde180956e0258ae9c75bc3 | refs/heads/master | 2020-12-29T09:25:18.450045 | 2020-02-21T17:26:47 | 2020-02-21T17:26:47 | 238,554,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,004 | py | import pygame as pg
import GameFunctions as gf
import numpy as np
from GameFunctions import cmap
class GameSettings():
def __init__(self):
#screen
self.screen_width = 1024
self.screen_height = 768
self.bg_color = (50,50,50)
class Creature():
def __init__(self, screen, image, ... | [
"horizonation@gmx.de"
] | horizonation@gmx.de |
25e845e67303200ddfb11f671a2bfbd40396ac48 | 21b79105e8d6f6370cbbd80c75cb2bcdae6e7278 | /migrations/versions/b4752d1e2173_.py | 835db85b8f26cc054b16af31853ad6656406108f | [] | no_license | rbarket/whereismyshelter | d6a4571ff48ccb71d3dff04a2387ea6b27a0340d | d8c609c1e5b6a751ceee33e1afb957e6bb1bcd48 | refs/heads/master | 2020-04-18T23:51:54.063446 | 2019-01-27T10:41:52 | 2019-01-27T10:41:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,162 | py | """empty message
Revision ID: b4752d1e2173
Revises:
Create Date: 2019-01-27 02:36:09.711382
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'b4752d1e2173'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto gene... | [
"hurjun1995@gmail.com"
] | hurjun1995@gmail.com |
bd08997a4a71ca78417b912f995788e96df2fc64 | ccc92254d0aa153bee94b6f4de9e12f368c5b342 | /mgrbic_HW2_3.34.py.py | 367baec3207fc43834465e0dff1ffd3af05ea4e3 | [] | no_license | mgrbic12/i210 | dc03147b3385a3861336da0b603a31e4d4490f33 | 1cf1abc9fe4f10325670488b7f8e6892633b37dc | refs/heads/master | 2020-04-13T00:46:28.498585 | 2018-12-23T01:46:13 | 2018-12-23T01:46:13 | 162,854,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | def pay(wage, hrs_worked):
if hrs_worked > 40:
OT_pay = ((wage * 1.5) * (hrs_worked - 40)) + ( wage * 40 )
return(OT_pay)
else:
weeks_pay = wage * hrs_worked
return(weeks_pay)
wage = eval(input("Please enter your hourly wage: "))
hrs_worked = eval(input("Please enter how ... | [
"noreply@github.com"
] | mgrbic12.noreply@github.com |
21d4123a395d8ecbfbf790f39be30e7bdab5ed45 | 36afe806f4dd97b1673fe915436116df578c8049 | /bin/easy_install-2.7 | b0e5056cb67443b57d4b941bebc4de9037867bd3 | [] | no_license | cpbnicholson/scrapper | 7511b987264626442a39a0323a7215f7b0d38633 | 4ffefe2130704b8b8c105f302cf619418e0552bc | refs/heads/master | 2021-01-10T13:12:40.880394 | 2016-01-30T09:09:14 | 2016-01-30T09:09:14 | 47,851,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | 7 | #!/Users/cnicholson/PycharmProjects/Scrapper/scrapper/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==0.9.8','console_scripts','easy_install-2.7'
__requires__ = 'setuptools==0.9.8'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('setuptools==... | [
"cpbnicholson@gmail.com"
] | cpbnicholson@gmail.com |
cf4e6af66b7f89f75baf7df1ed489f55253040f1 | a75d9050638778ae72260cb9d88fc74ce2ba33a2 | /XFouth course/7th semester/Information_Security/Lab5 - Digital signature/main.py | 1d19e049187bb6479cbe62333d75594d90186f26 | [
"MIT"
] | permissive | gHuwk/University | aeacc242bd1d5fe588a84878bd8abd8eb349d615 | 9a0196a45c9cf33ac58018d636c3e4857eba0330 | refs/heads/master | 2023-06-11T02:24:24.459902 | 2021-07-03T12:56:03 | 2021-07-03T12:56:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,664 | py | import rsa
import sys
import os
from Crypto.Hash import SHA256
def hash_file(message_file):
h = SHA256.new()
with open(message_file, "rb") as f:
while True:
buf = f.read(1024)
if len(buf) == 0:
break
h.update(buf)
return h.digest() # hash like ... | [
"noreply@github.com"
] | gHuwk.noreply@github.com |
b1fd6a4b81ebcc306a54f38c27a4223b2c68fbd8 | 90814aea40ee3864c30a70bbbcab4790f91f8f70 | /chap05/quick_sort.py | ae27e80b010fee6c8745a0f3e8b691f8bf44220b | [] | no_license | chc1129/python_algorithm | 408fcd33bc11d8cb4f31b96ab9353833379b0f23 | b097fbc1e15379a05590b83db4307f15c1c475ff | refs/heads/master | 2022-04-05T15:12:05.471796 | 2020-02-22T10:01:57 | 2020-02-22T10:01:57 | 240,675,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | data = [6, 15, 4, 2, 8, 5, 11, 9, 7, 13]
def quick_sort(data):
if len(data) <= 1:
return data
pivot = data[0] # ピポットとしてリストの先頭を使用
left, right, same = [], [], 0
for i in data:
if i < pivot:
# ピポットより小さい場合は左に
left.append(i)
elif i > pivot:
# ピポットより大きい場合は右に
right.append(i)
else:
same += 1
lef... | [
"chc1129@gmail.com"
] | chc1129@gmail.com |
b3b37db72e75824ce9edb42e2a654fc899b43922 | 3e321a7c381bf77d7563869b494a6d3a84816e75 | /Back-end/Abogados/detalleusuario/migrations/0001_initial.py | 49055f1b4b10174211f015336741a1612507e1eb | [] | no_license | MrDavidAlv/Abogados | 865541efe223582f1eff42ae65d7295a5cc3407f | e1f2c4d7957e5686a6035f468f72d1b3fe6d2182 | refs/heads/master | 2023-03-18T22:14:07.010015 | 2021-03-08T15:06:38 | 2021-03-08T15:06:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 761 | py | # Generated by Django 3.0.4 on 2020-05-25 03:12
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('usuario', '0001_initial'),
('rol', '0002_rol_nombrerol'),
]
operations = [
migr... | [
"efnaranjo6@misena.edu.co"
] | efnaranjo6@misena.edu.co |
f0e7ce7611a4fcc3f21a0921054fa88f1d015553 | 3b227fb1b724314d069cd7eb8197ed33ad9282e3 | /grocery_list/apps.py | 0af6fbb49f0c4e2ce113b4fe16518f34b405a815 | [] | no_license | mansiverma28/Grocery | 5494d41542d6cffe441916025653df723e519003 | 9c76a1bb14770354662a761762c3b11a33e326ad | refs/heads/master | 2023-07-12T01:29:04.635376 | 2021-08-14T13:00:38 | 2021-08-14T13:00:38 | 396,008,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | from django.apps import AppConfig
class GroceryListConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'grocery_list'
| [
"mansiverma805@gmail.com"
] | mansiverma805@gmail.com |
d3111715d70c7120db24a4557cf52fadd9bca899 | 895f5d2ad563f1e8ecad1c6c308e2addf1d9a70f | /Algorithms/Birthday_Cake_Candles.py | 32f81178bf425e52de81e959c85d9ad60de69a21 | [
"MIT"
] | permissive | JavaGarcia/HackerRank | 6b056e724a33d3178061564d87617215a6c92b1a | a5797627181ee2d970f45e91639a88ddd47c3a54 | refs/heads/master | 2022-11-22T17:51:14.110116 | 2020-07-27T01:52:48 | 2020-07-27T01:52:48 | 282,374,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | #!/bin/python
#Javier Garcia
import math
import os
import random
import re
import sys
# Complete the birthdayCakeCandles function below.
def birthdayCakeCandles(ar):
return ar.count(max(ar))
if __name__ == '__main__':
fptr = open(os.environ['OUTPUT_PATH'], 'w')
ar_count = int(raw_input())
ar = map(i... | [
"javier.garcia454@gmail.com"
] | javier.garcia454@gmail.com |
6cffb35c85d7adc498df112da42d1e4f44c2bf56 | 3ae3dc8fd39a98e14ae68853b801d57077ba406c | /intermediate/beyond-basics/1-organizing_programs/executable_directories/reader/reader/reader.py | a1bd61abf3b820c459fe2951eac213a4ae0b9f7d | [] | no_license | diegogcc/py-pluralsight | e2047621af2f56ef145dd06af246da5bbd23db00 | 128568228d03f0cba12bd409a495e2e66e2e2505 | refs/heads/master | 2020-09-26T06:51:44.553133 | 2020-05-27T03:22:28 | 2020-05-27T03:22:28 | 226,195,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | import os
from reader.compressed import bzipped, gzipped
extension_map = {
'.bz2' : bzipped.opener,
'.gz' : gzipped.opener,
}
class Reader:
def __init__(self, filename):
extension = os.path.splitext(filename)[1]
opener = extension_map.get(extension, open)
self.f = opener(filename,... | [
"diegoc906@gmail.com"
] | diegoc906@gmail.com |
9d2b8983f65c85b28c4249d3c748c5c51ba90fb3 | 259c57ac5ec9d5b58d3a5bfaff184a167801aeec | /do_eval.py | 52d41e1193fac16e155de67aabe69e3d52629547 | [] | no_license | dongzhuoyao/py_img_seg_eval | d654ddcfce9330d9076bfe02d91de2913b386200 | 5b321b87c4f9952f34c323419b875307c9edb04b | refs/heads/master | 2021-01-13T03:27:39.053081 | 2016-12-29T06:38:06 | 2016-12-29T06:38:06 | 77,545,314 | 0 | 0 | null | 2016-12-28T16:13:30 | 2016-12-28T16:13:29 | null | UTF-8 | Python | false | false | 1,123 | py | import argparse
import os,glob
import cv2
import eval_segm as es
# Import arguments
parser = argparse.ArgumentParser()
parser.add_argument('--gt_dir', type=str, required=True)
parser.add_argument('--result_dir', type=str, required=True)
parser.add_argument('--list_path', type=str, required=True)
args = parser.parse_ar... | [
"929109550@qq.com"
] | 929109550@qq.com |
f3837420701692e028a0ce0ea143fda81311e84b | f8d3f814067415485bb439d7fe92dc2bbe22a048 | /cv2samples/python/plane_tracker.py | b092d48dc8e8b80ac8191a1e8088ec0adbfb681e | [] | no_license | gmonkman/python | 2f9ab8f159c01f6235c86cb0cd52062cd3fdedd3 | 9123aa6baf538b662143b9098d963d55165e8409 | refs/heads/master | 2023-04-09T15:53:29.746676 | 2022-11-26T20:35:21 | 2022-11-26T20:35:21 | 60,254,898 | 0 | 2 | null | 2023-03-24T22:58:39 | 2016-06-02T10:25:27 | Python | UTF-8 | Python | false | false | 6,110 | py | #!/usr/bin/env python
'''
Multitarget planar tracking
==================
Example of using features2d framework for interactive video homography matching.
ORB features and FLANN matcher are used. This sample provides PlaneTracker class
and an example of its usage.
video: http://www.youtube.com/watch?v=pzVbhxx6aog
Us... | [
"gmonkman@mistymountains.biz"
] | gmonkman@mistymountains.biz |
2feeb385b52e6c3b40f419f07977b3255425a8c6 | 8d18b10db6f001856f6aa6cc9b4367318d933db2 | /functional/hello.py | 724b2ae6fd004347224e24ad9053aa0fdd16284e | [] | no_license | Aanjansai/Python-Programs | 39463f47c6fbff3eaeb993cf175529eac8a33ad1 | d7afe955c1530fe7e18e6f3e0591d0b794626fa4 | refs/heads/master | 2020-04-17T10:56:31.542628 | 2019-03-18T07:06:19 | 2019-03-18T07:06:19 | 166,519,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22 | py | print("hello!!! sai")
| [
"aanjan567@gmail.com"
] | aanjan567@gmail.com |
8782ef8c6b5cc795c1320286692f127ef513d023 | 404ffbd9f7cddf4c81f95b6e1c74009ee4ec7d39 | /auction/urls.py | 36cb9df7fb84f1f31e5bb58d70d669a3fa4f7d95 | [] | no_license | anindyamanna/enguru-auction | 0274f3acb2a0e7f8acf56d46b04f252158b6b0f7 | e92ca9328bfff1d0c514403b697f98bb5a5cabf6 | refs/heads/master | 2022-01-12T10:29:18.552035 | 2018-10-08T05:52:46 | 2018-10-08T05:52:46 | 151,985,270 | 0 | 0 | null | 2022-01-06T22:27:46 | 2018-10-07T21:04:41 | Python | UTF-8 | Python | false | false | 747 | py | from django.contrib.auth.decorators import login_required
from django.urls import path
from rest_framework import routers
from rest_framework.authtoken import views
from auction.views import ListAuctionItems, AuctionItemDetails, ListBids, SubmitBid
router = routers.DefaultRouter()
app_name = 'auction'
urlpatterns = [... | [
"anindyamanna92@gmail.com"
] | anindyamanna92@gmail.com |
40f2c10bf97d4438619050d8e63c3e51319d17b5 | 2e1935b4eda33f86f20487987fa2e1f5d7a61473 | /BE_Project-2015-08-15/BE Project/Sentiment Analysis using Machine Learning/html_helper.py | 8978053ed4263edc696c1d3c002be5fa11665eff | [] | no_license | SumitAnglekar/SentimentalAnalysis | 246cb7675cdd7d07247598fa5b9e1ae59cdd63f9 | 23656faa8546f365878f18aae9dbdac52388d307 | refs/heads/master | 2022-01-05T08:22:04.968562 | 2019-05-11T05:22:38 | 2019-05-11T05:22:38 | 186,091,206 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,984 | py | import urllib
import datetime
from datetime import timedelta
class HTMLHelper:
#start __init__
def __init__(self):
self.html = ''
self.currDate = datetime.datetime.now()
self.weekDates = []
#self.weekDates.append(self.currDate.strftime("%Y-%m-%d"))
self.weekDates.append... | [
"anglekar.s@husky.neu.edu"
] | anglekar.s@husky.neu.edu |
839db5b423c7fa092c7942c19df2fd38d5f2f3a2 | 5a864dcc6a5875ed46b8dc5a502dde528aab0733 | /Views/wechat_applet_UI/venv/Scripts/easy_install-script.py | 36b435c0818a5d3ab7d4d50a89b965855ae9880f | [] | no_license | ZhouRuiXiang/Flask_Note | bd4d345bbc57cce49506fa2d14d02550df54d07c | 9b20c5e40a30f6ae6f0b9d06fcceb0749d3ea13a | refs/heads/master | 2020-07-24T13:55:18.331731 | 2020-02-11T05:22:46 | 2020-02-11T05:22:46 | 202,512,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | #!F:\wechat_applet_UI\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.ar... | [
"1215686977@qq.com"
] | 1215686977@qq.com |
2dff885dc58e3d09f9288861c11cedb3521ffaae | 9c6f045d3c6fc767e05318e72bf9ed3af25452dd | /zvt/recorders/eastmoney/finance/base_china_stock_finance_recorder.py | 682c681274c7ba44e193f304bd7daf9c459fec13 | [
"MIT"
] | permissive | wuhgogo/zvt | 5f1230aebd8d87113453c375ba2251b4fb6f21b2 | 6ffd15e3030fafeeedd2afbbc17e89194c20714a | refs/heads/master | 2023-06-25T21:51:01.702178 | 2020-10-10T04:18:04 | 2020-10-10T04:18:04 | 295,753,879 | 1 | 0 | MIT | 2020-09-15T14:27:50 | 2020-09-15T14:27:49 | null | UTF-8 | Python | false | false | 8,417 | py | # -*- coding: utf-8 -*-
import pandas as pd
from jqdatapy.api import get_fundamentals
from zvt.api.quote import to_jq_report_period
from zvt.contract.api import get_data
from zvt.domain import FinanceFactor
from zvt.recorders.eastmoney.common import company_type_flag, get_fc, EastmoneyTimestampsDataRecorder, \
cal... | [
"5533061@qq.com"
] | 5533061@qq.com |
9e9d7761fbb90394ad7d3014e79b73f6fa262659 | 916eb769fae98b941602dcad774af7267b4f3025 | /lg/globals.py | f653316b0c9c799a2ef302d928936fe7986502c0 | [] | no_license | joeedh/implicit-surface-nodes | 1630dfe9fdbb4b99489b450aa35cb37b36183c0a | 60ea0617848fb661b33b6a3d0dafbdb486ca39bf | refs/heads/master | 2021-07-14T05:51:17.897665 | 2021-03-06T00:48:17 | 2021-03-06T00:48:17 | 40,988,561 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22 | py | timers = []
jobs = []
| [
"joeedh@gmail.com"
] | joeedh@gmail.com |
03397b0fc672d4553685521d098acb895c9a0ad8 | b7c93b3b012fd3a8e1eed5c3454088c941315383 | /src/hybrid_circuits.py | 5def7b58eb69a2d6a793bb75cc2338822663fa95 | [
"MIT"
] | permissive | 00mjk/FT_qRAM_Circuits | 49e44eeabe361f8d35bdb87c7befb71f015d7eda | c3bba4f19e5cd6ad1adf1a6055282b02a97f8962 | refs/heads/master | 2023-03-19T05:59:32.861876 | 2019-12-16T21:35:55 | 2019-12-16T21:35:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,730 | py | # -*- coding: utf-8 -*-
#
# hybrid_circuits.py: Hybrid qRAM circuits and parallelized versions.
# ... | [
"dimatteo.olivia@gmail.com"
] | dimatteo.olivia@gmail.com |
efd1ec744696d9e1102ffc2cffcbb803a95ddcf2 | 9c8804de344b74bb54f53e5092aa30a19c000a08 | /sum-ex.py | 7e27897bfccd8cf17fbec23a7c8a7a5f91cb998e | [] | no_license | ajauntor/sum-ex | 37e3f77ed50855c5d50339a6ff6feb44ba0f6dde | 65ba46bc923b678262320a5c79ab49476cd1d1cf | refs/heads/master | 2023-03-22T17:19:27.308672 | 2021-03-16T05:38:10 | 2021-03-16T05:38:10 | 348,226,368 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25 | py | print("Hello, AJ Auntor") | [
"auntorknocks@gmail.com"
] | auntorknocks@gmail.com |
09fc2b083153bca04544201a232010d562c456ce | f5548f2219ac7a5530ddbbb5789ef9a8616399c9 | /horovod/__init__.py | 41666401d9c3bb48618db348f773be8f555a9f2e | [
"BSD-3-Clause",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | jcchai/horovod | 8b237c923b804e2d582c1ffbf293a509e9ee09f7 | 1480e75d088a49c1b3cb93e6abfcaff5bb5db7b0 | refs/heads/master | 2023-05-22T17:03:02.211125 | 2021-06-10T13:18:27 | 2021-06-10T13:18:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55 | py | from horovod.runner import run
__version__ = '0.22.0'
| [
"noreply@github.com"
] | jcchai.noreply@github.com |
0feb4ae8bc4b0fec63d2204c90cc43ac43e639ba | 5fa17eeebf24cf1973693de992352ef283f86d31 | /Todolist_Backend/API/models.py | 0bb19c4fab0d0cbe9ad2b587e1b468188024a870 | [] | no_license | jadonbarnes/Todolist-backend | a0acf3fae3272d716c90fcf000ef9161ceab5b33 | fc2875d70bfd28e1ceba5aa1b6f037a1e2e65fa9 | refs/heads/master | 2020-08-29T17:38:33.615658 | 2020-01-06T14:28:42 | 2020-01-06T14:28:42 | 218,114,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,487 | py | from django.db import models
from django.contrib.auth.models import User
import re
import datetime
class Task(models.Model):
#Fixed fields
Name = models.CharField(max_length=100)
Content = models.TextField(blank=True, null=True)
Notes = models.TextField(blank=True, null=True)
Due_Date = models.Dat... | [
"email@jadonbarnes.co.uk"
] | email@jadonbarnes.co.uk |
a89b03b60fbefdde9bbbdde0ef520e40a92121a5 | 034a61353c94713a926fb601bc7aefee81644636 | /model/urls.py | 2dbc1efe6f0667cbba5178f8771d1de05ead3c1c | [] | no_license | TaeWonJin/reexample | 07469a5528617727b38b892dd55c53a1f7b371a9 | feba0dbaf800dba3dbcd94c154d27046584262ae | refs/heads/master | 2023-05-04T00:22:51.514733 | 2019-07-29T20:15:24 | 2019-07-29T20:15:24 | 195,457,967 | 0 | 0 | null | 2023-04-21T20:33:26 | 2019-07-05T19:25:40 | JavaScript | UTF-8 | Python | false | false | 1,326 | py | """model URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.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-based v... | [
"wlsxodnjs1@naver.com"
] | wlsxodnjs1@naver.com |
53d20df8348f4ae59a429f2409ae483ae8302815 | b94790631da3d9c98f2edf495e79eded77a71b2c | /the_wall/apps/wall_app/migrations/0002_auto_20180719_2232.py | e2e8a15b4a86c3bd0c5e079caa084ea713af07d4 | [] | no_license | estarlight/coding_dojo_django | c7894c2a5f310b5cb6f072aca60bf2834de6a510 | 577a714512c3b1bd5e280a987c20666dfd7504ed | refs/heads/master | 2020-03-23T11:01:29.056778 | 2018-09-25T18:21:10 | 2018-09-25T18:21:10 | 141,477,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2018-07-19 22:32
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('wall_app', '0001_initial'),
]
operations = [
... | [
"noreply@github.com"
] | estarlight.noreply@github.com |
ce50b97bc6950b8198d59226e4f3d69dc58249f9 | 96e66a2ec795104b7e75a8bc42fe499397ec804a | /restwebservice/api/controllers/v1/root.py | eb34b84c8a592fac505582f6be0271c609e1ba26 | [] | no_license | aratim/REST-Web-Service | eaf5631f05bfc83a7058b47981699d534ac270e0 | 7a8b5916cb4669c5d24dcac2c8ad3b837b6702e8 | refs/heads/master | 2020-04-23T17:40:33.062835 | 2014-06-16T16:48:17 | 2014-06-16T16:48:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | from pecan import expose
from webob.exc import status_map
from restwebservice.api.controllers.v1 import fibonacci
class RootController(object):
fibonacci = fibonacci.FibonacciController()
@expose('json')
def index(self):
msg = "Welcome to REST Web service"
return msg
@expose('err... | [
"arati.mahimane@rackspace.com"
] | arati.mahimane@rackspace.com |
8ad0b231772083ee7d66c657a27e361c086667e2 | 00cfd0283816234879f480071f3b3952930a243b | /Apps/Droplet/build/bdist.macosx-10.7-intel/python2.7-standalone/app/temp/fcntl.py | 8366b51aae8b174c3e8a80d61ffb3920bba3de57 | [] | no_license | rwal127/Qube | aa94788133e20396f0fd36d4cee8a6d718cf3929 | 41264283dc764f55080d6d4e7538b9955fe3812d | refs/heads/master | 2021-05-27T04:34:01.923205 | 2012-04-27T16:26:49 | 2012-04-27T16:26:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py |
def __load():
import imp, os, sys
ext = 'fcntl.so'
for path in sys.path:
if not path.endswith('lib-dynload'):
continue
ext = os.path.join(path, ext)
if os.path.exists(ext):
#print "py2app extension module", __name__, "->", ext
mod = imp.load_dynam... | [
"brennan.chapman@gmail.com"
] | brennan.chapman@gmail.com |
4007b809d87f4b517e582bfcc8d53fa884bce8d0 | 97062249c6eb04069c6fb01e71d06bc334c828e1 | /desktop/core/src/desktop/management/commands/clean_history_docs.py | 7d8e2273128e023c9b6c2efbd0867977b6776dd3 | [
"Apache-2.0"
] | permissive | Albertsss/hue | 1c8b31c64cc420a029f5b5b80712fb3d0c6cbd6e | 454d320dd09b6f7946f3cc05bc97c3e2ca6cd485 | refs/heads/master | 2021-07-08T17:21:13.237871 | 2018-05-30T06:03:21 | 2018-05-30T06:03:21 | 135,386,450 | 0 | 1 | Apache-2.0 | 2020-07-25T13:36:58 | 2018-05-30T04:06:18 | Python | UTF-8 | Python | false | false | 2,457 | py | #!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you ma... | [
"540227148@qq.com"
] | 540227148@qq.com |
08b2d8c34d5b15fed1f3df058fa68c95b1438f4a | 83a0eed4b2a792161b46519bf217f0cf5c2cde95 | /ws_serv.py | 95c5994c6d6c0b033d8fc4ec8f210e8e99f41d8c | [] | no_license | ning412128/Lntelligent-Toy | 03c52e208a63d5d5ca12eaa9c51ad886e36d28d6 | 6ce9ba35bd18f2d704f8dc7979ea7f0480c24d26 | refs/heads/master | 2020-04-30T23:24:54.489322 | 2019-03-22T13:27:30 | 2019-03-22T13:27:30 | 177,143,562 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,419 | py | from flask import Flask,request
import json
from geventwebsocket.handler import WebSocketHandler
from gevent.pywsgi import WSGIServer
from geventwebsocket.websocket import WebSocket
ws_serv = Flask(__name__)
user_socket_dict = {}
@ws_serv.route("/toy/<toy_id>")
def toy(toy_id):
user_socket = request.environ.get(... | [
"you@example.com"
] | you@example.com |
1726be3204bcc16f66b21039a4e1959f3a1a66db | de8f894f3e82c7581ec64ce7767ef6f2c97592b5 | /popex/test/test_popex_objects_PoPEx.py | 346efba3adb97b47ca40379db40ae9d95e8aa60f | [] | no_license | pjuda/PoPEx-1 | d553ec1762ea2c71567b0a52c210dd95e6cda8a1 | ae79192507fc91ad2a579c4be83e4e5bf156b794 | refs/heads/master | 2022-04-27T06:58:56.377658 | 2020-04-16T12:52:25 | 2020-04-16T12:52:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,938 | py | """ TEST FILE
Some tests are run to check the behaviour of the class
- 'PoPEx'
in 'popex.popex_objects'. Some toy models are created and added to the PoPEx
structure. The tests are all formulated in terms of the 'assert' method.
"""
# -------------------------------------------------------------------------
# Au... | [
"christoph.jaeggli@unine.ch"
] | christoph.jaeggli@unine.ch |
4ec91cb675a6bcfd705ef5ff70da47d5fdd5929d | a043207e157e745eb0d005fc658b57f77c202e5f | /yunServer/fee/tests.py | 449a050748e83707eccf48af53e1fc367194975b | [] | no_license | seanlian/lian | 2f485fafd954eeeababf3897d1ba5c2f187de7a1 | aa4c1f624c5d82032a31bb8f1570d87567c902e9 | refs/heads/master | 2020-04-07T20:37:33.975609 | 2018-12-04T14:19:17 | 2018-12-04T14:19:17 | 158,696,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | from django.test import TestCase
import time
# Create your tests here.
print (time.strftime("%Y-%m-%d %H:%M:%S",time.localtime()))
str1=str(time.strftime("%Y-%m-%d %H:%M:%S",time.localtime()))
str1=str1.split(" ")
print(str1)
then_time=time.strftime("%Y-%m-%d %H:%M:%S",time.localtime()).split(" ")[0]
print(then_time) | [
"maryclearlove@163.com"
] | maryclearlove@163.com |
a506bd9f67613ce45f4e61a147bed302494deecc | 927b5041c54830c60bb764fc0e4098bed2617eca | /entity_recognition/Entity_recognition_json_utry_v2/tornado_server.py | 53da704758341aceb2239c621fab7d06d31b8102 | [] | no_license | jxz542189/model_house | ab625297962bb941f79cf5584a9437cad3b3efed | 1fd3d360a2a980a0eddb5b3ee600f2976d1a8dba | refs/heads/master | 2021-07-18T09:33:08.196544 | 2019-01-22T10:49:24 | 2019-01-22T10:49:24 | 144,448,043 | 10 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | #coding=utf-8
from tornado.wsgi import WSGIContainer
from tornado.httpserver import HTTPServer
from tornado.ioloop import IOLoop
from entity_server import app
http_server = HTTPServer(WSGIContainer(app))
http_server.listen(6000) #flask默认的端口
IOLoop.instance().start() | [
"1318394945@qq.com"
] | 1318394945@qq.com |
bed79e548883a0b395c3d0dee2bf341e7b9efcbc | e6c65e2e354336a4bea5b6a4ccbccd3682915fe2 | /out-bin/py/google/fhir/models/model_test.runfiles/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/python/eager/test.py | 8cc80312cb261946dc8a72d181a77028ee729bfb | [
"Apache-2.0"
] | permissive | rasalt/fhir-datalab | c30ab773d84983dd04a37e9d0ddec8bf2824b8a4 | 3e329fc8b4226d3e3a4a7c23c306a86e7a9ea0de | refs/heads/master | 2021-10-09T05:51:04.593416 | 2018-12-21T18:11:03 | 2018-12-22T05:38:32 | 162,744,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | /home/rkharwar/.cache/bazel/_bazel_rkharwar/0ddaa3627472ad9d1367a008236ce2f5/external/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/python/eager/test.py | [
"ruchika.kharwar@gmail.com"
] | ruchika.kharwar@gmail.com |
56edc8600a3adfcba9494a4bebbaa47a16fef0fd | 62a36ff985ba59766fe7f74e0df92f574372b982 | /meds/current_session.py | 0da738e45b4c00f4ef4a0445578ec0fd64f34a93 | [] | no_license | brandones/ces-metadata-util | 389ca5324ab2b2761795e0cbd42928f9a0739357 | 88f5f5b88bd3930ffb7a995bb5482d8187f2525a | refs/heads/master | 2021-06-26T04:08:36.474764 | 2019-07-04T05:24:24 | 2019-07-04T05:24:24 | 148,912,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,544 | py | # coding: utf-8
import pandas as dp
import pandas as pd
pd.load_csv('results/meds-ces.csv')
pd.read_csv('results/meds-ces.csv')
ces = pd.read_csv('results/meds-ces.csv')
extant_ciel = pd.read_csv('input/ciel-in-concepts-dict.csv')
extant_ciel
any(extant_ciel[1])
extant_ciel[1]
extant_ciel[0]
extant_ciel.columns.values
... | [
"bistenes@gmail.com"
] | bistenes@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.