blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2b5c2b47741847463dd2ef27f3cfc82839073bb1 | 54bc8c0d95e8d28a8d7e4a6eb9add31030f2c5fc | /From Jump Drive/class8s/c8.py | 1f36e21396626c9d71048da3399631f7e5634909 | [] | no_license | matthewpleasant/python_for_gis | 9a3f7925b45a42c65b69be1de49691230e51d8f0 | c9676133ecaf3231d91a75c2ff0e9b2ad515c0c9 | refs/heads/master | 2021-04-25T14:17:26.701244 | 2017-12-07T22:09:17 | 2017-12-07T22:09:17 | 110,298,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,358 | py | import arcpy
home=arcpy.env.workspace = "C:/Users/mpleasan/Desktop/class8s/working/class8.gdb"
path1 = "C:/Users/mpleasan/Desktop/class8s/"
fcs = arcpy.ListFeatureClasses()
print fcs
sc = arcpy.da.SearchCursor("pointsSP", ['Shape@'])
##for r in sc:
## print type(r[0]) # ex. output: <class 'arcpy.arcobje... | [
"matthewpleasant@gmail.com"
] | matthewpleasant@gmail.com |
d2e05c3cfab86f28eff962c80f13b1284c221ed6 | fee2a81dfa111038c1986e7797f371b1f791ef46 | /src/tajo/rowdecoder.py | f1277b96d30d62d6078e0a726b010dc5cc2d873e | [
"Apache-2.0"
] | permissive | charsyam/python-tajo-rest-api | 863abe0f1b087ba52e5d34c7dcbc551f1dd991c1 | 739581acaa50f50162192cc395331a7175ee2b59 | refs/heads/master | 2021-01-22T17:47:35.153669 | 2015-07-28T23:51:43 | 2015-07-28T23:51:43 | 37,017,406 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,750 | py | # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use ... | [
"clark.kang@kakao.com"
] | clark.kang@kakao.com |
51ddb757a62ae6e72e67154b814429ba16760036 | d22c05787c28dbbcbc889c66d71d6a8e9bc1c407 | /Get_Requests_From_Local_NIC/NIC_package_get.py | 01830018bce79b77832d9869092beece00aea024 | [
"MIT"
] | permissive | muxinsq/2020-Works-ApiSecurity | fe1f0319558e30f1b345968a693830b278171dea | 95569f7c19ab59731623b8f40658714643d304e4 | refs/heads/master | 2021-04-11T01:59:56.370877 | 2020-03-21T04:17:45 | 2020-03-21T04:17:45 | 248,984,504 | 1 | 0 | MIT | 2020-03-21T13:44:12 | 2020-03-21T13:44:11 | null | UTF-8 | Python | false | false | 850 | py | #coding:utf-8
from scapy.all import *
import sys
package_output='document' #'screen'/'document'/'all'
def package_print(packet):
if (package_output == 'screen') or (package_output == 'all'):
print("\n".join(packet.sprintf("{Raw:%Raw.load%}").split(r"\r\n"))+'\n\n\n')
if (package_output == 'document') or... | [
"58980928+Luz233@users.noreply.github.com"
] | 58980928+Luz233@users.noreply.github.com |
c47fccc01fc9a053870024da3c03694e2581fa93 | f83dec9a439dac4033948719c43a5faba315171b | /article/migrations/0001_initial.py | 0195b1f910e543f45a73f0369dc7571852f691de | [] | no_license | kevinngetich/showcase | 446d49950963a0401eec1a156b46ab023d6b0483 | c3a5bfd26e0bf084815073f6d702109257fd4c23 | refs/heads/master | 2020-05-19T00:48:21.239700 | 2019-05-03T11:21:43 | 2019-05-03T11:21:43 | 184,743,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | # Generated by Django 2.1.3 on 2019-02-10 15:27
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Article',
fields=[
('id', models.AutoField(... | [
"ngetich79@gmail.com"
] | ngetich79@gmail.com |
67d18a6184ac4dcad18c5acd2ecb55388c9e1b90 | fe9c15246ef41d353f6e4ecd7ceca27d155861ed | /Time Complexity/TapeEquilibrium.py | a57b2243606a7063493bcd570204952a022b03e5 | [] | no_license | LaurentiuMM/Codility-Lessons---Python | e078e9c962cde6b565e0570261da70295763bb62 | f6a2459d2e4771eae2ec2651fdd3e27d9c19cb56 | refs/heads/master | 2020-07-06T03:42:29.556261 | 2019-08-17T12:13:20 | 2019-08-17T12:13:20 | 202,876,630 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | # <<< start solution
import sys
import time
def solution(A):
N = len(A)
sums = [0] * N
sums[0] = A[0]
for i in range(1, N):
sums[i] = sums[i - 1] + A[i]
min_diff = sys.maxsize
for i in range(0, N - 1):
min_diff = min(min_diff, abs(2 * sums[i] - sums[N - 1]))
return min_diff
# end solution >>>
star... | [
"lau@fraudsolve.com"
] | lau@fraudsolve.com |
49dd4df042d6c013c345ea9fb026e7f1835e8969 | 7673ea54ff4d1a61373a0900efe27351bf63a2a8 | /Debugging/trainres.py | 075851cc1c57541a1c34a4cc02e041643be4d4fb | [] | no_license | mdkul22/ece285sp19-project | d7a048f727ed02830ad7a5fc61483bca564845c8 | cc789eae150102eff4972169d64145d1904cf779 | refs/heads/master | 2020-05-18T23:26:34.587607 | 2019-06-10T02:27:08 | 2019-06-10T02:27:08 | 184,711,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,567 | py | import os
import numpy as np
import torch
import torch.nn as nn
import torch.utils.data as td
import torch.nn.functional as F
import torchvision as tv
from PIL import Image
import nntools as nt
import matplotlib.pyplot as plt
from dataloader import VOCDataset, myimshow
import model
class statsmanager(nt.StatsManager):
... | [
"deck@ucsd.edu"
] | deck@ucsd.edu |
fa3ae7f5ccd6a41322f07b548a062a83ba1d35b3 | b6e02f46e2e8c8582fa53329d69577ac192b3519 | /scraper.py | 224e3ebaf68a5b148a9db6db492a3695b70522cb | [] | no_license | AxSmasher44/simple-amazon-listing-webscraper | 7afe56a52f2bba4e27bdf4294dad752a3bd99613 | f741b51e88a69cdfb6d2e44dd2772280baa0103e | refs/heads/master | 2022-12-17T18:12:56.504114 | 2020-09-29T12:41:34 | 2020-09-29T12:41:34 | 299,605,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,286 | py | import requests
from bs4 import BeautifulSoup
from csv import DictWriter
"""WARNING:Don't send requests continuously!!!
Only works for amazon india"""
def amazon_scraper(item):
if " " in item:
url_item = item.split(" ")
url_string = "+".join(url_item)
URL = "https://www.amaz... | [
"noreply@github.com"
] | AxSmasher44.noreply@github.com |
9ed6c6ad5e53713efd3778aebd13d1c36a523e85 | 3caed455cffc9fbc1a23dd362fcd4af147902b54 | /02-Data-Toolkit/01-Data-Analysis/01-Notebook/hello.py | 2263a2fe4977121dcc8155d3ca589138e8a495bb | [] | no_license | flo1222/data-challenges-old | 3d06b782cede11fdba6123583259878b870f8653 | b93f93d09892e7b5aec08810029a450ed011c704 | refs/heads/master | 2023-08-16T04:51:13.032204 | 2021-09-26T11:41:52 | 2021-09-26T11:41:52 | 410,534,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | # pylint: disable=missing-docstring
def hello_world():
return "Hello from hello.py"
| [
"flo12.martin@hotmail.com"
] | flo12.martin@hotmail.com |
a516166dbb3533ae75e2a0c8ace848504fad019a | 925ccdf93bb69ad3160057cc04cd0457a4def0e6 | /simurg/logger/logstash_formatter.py | d9ed823b8b24983b8219bd40a9bdb750d5a93a79 | [
"MIT"
] | permissive | pasmod/simurg | e9fe185bb4ddb1dfe35d3459b89891a168a8fb4b | 9fe84fb300810ab7f703385c2dd1e5e7afa712f9 | refs/heads/master | 2021-04-12T03:42:26.815547 | 2017-03-28T08:05:04 | 2017-03-28T08:05:04 | 53,422,442 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,093 | py | '''
This library is provided to allow standard python
logging to output log data as JSON formatted strings
ready to be shipped out to logstash.
'''
import logging
import socket
import datetime
import traceback as tb
import json
def _default_json_default(obj):
"""
Coerce everything to strings.
All objects ... | [
"pashutan.modaresi@pressrelations.de"
] | pashutan.modaresi@pressrelations.de |
b4c7dc9e5dd44603c578afbbbbda6d03f98ab0c0 | da61401d1d520ecead67a7c9bbf53bcc61784968 | /competancy_mgt/applications/competancy_mgt_app.py | c0f6e56a73785c21f97431ea6d34841a382b9184 | [] | no_license | saifsayyad/Competency_mgt | ecb9ff91d136242f9ccda8d9fc7a1f8dbd706f27 | ef0e67a10eac7896e06374ea7a7ed5c74d0a84dd | refs/heads/master | 2020-11-27T00:56:17.546672 | 2020-06-15T12:09:17 | 2020-06-15T12:09:17 | 229,249,771 | 1 | 0 | null | 2020-04-30T13:47:23 | 2019-12-20T11:07:59 | CSS | UTF-8 | Python | false | false | 590 | py | import os
from groundwork import App
from competancy_mgt.applications.configuration import APP_PATH
class COMPETANCY_MGT_APP:
def __init__(self):
# Let's be sure our APP_PATH really exists
if not os.path.exists(APP_PATH):
os.makedirs(APP_PATH)
self.app = App([os.path.join(os.p... | [
"Saifali.Saiyyad@partner.bmw.de"
] | Saifali.Saiyyad@partner.bmw.de |
983e5124705f4cb91b3e31c3652d19a6497e3c25 | fe0fff66d2d0f56b87882dfe41c577a87865e6f1 | /Img_to_word.py | 1d7c7e974ae083c84b70e079acc956daac0e6825 | [] | no_license | ymmh123456789/OCR | 7b73933b2c5bf23a5cfc9e60395271d5819301b3 | f8fd503c530934633002d17bdd9fe0a99c33686f | refs/heads/master | 2021-01-01T15:43:07.293151 | 2017-08-02T01:18:35 | 2017-08-02T01:18:35 | 97,682,598 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,160 | py | # coding:utf-8
import os
rootdir = os.path.join(os.getcwd(),"Book\\8\\")
files = [os.path.join(rootdir,item) for item in os.listdir(rootdir) if item.endswith('.xml')] # 舉例找出檔名結尾為.xml的檔案
def load_text(file):
with open(file,'r') as I:
print rootdir
count = 0
flag = False
for line in... | [
"ymmh123456789@gmail.com"
] | ymmh123456789@gmail.com |
1154b16d6df238a8dda389b0016c8502dba497ac | 304fa43e6d8b78ef27a52dc31fc6d70f27ae856e | /league/Leagues.py | efc33f99e923fefed85e6b32e4d3d8c8dc1702ba | [] | no_license | yaooo/Stock-Fantasy-League | 0049a303eeecc0c72a960321780d0da29babc961 | 01ce360d569c767e229c6cf60171600f12cedd6b | refs/heads/master | 2021-05-09T04:48:39.119384 | 2018-03-24T21:46:24 | 2018-03-24T21:46:24 | 119,289,339 | 3 | 2 | null | 2018-01-29T00:37:51 | 2018-01-28T19:14:16 | null | UTF-8 | Python | false | false | 167 | py | from flask_restful import reqparse, abort, Resource
class Leagues(Resource):
@staticmethod
def get(cur, LID):
return 'Hello, Brian, ID = ' + str(LID) | [
"bgm31@scarletmail.rutgers.edu"
] | bgm31@scarletmail.rutgers.edu |
7b14e461e9ba7105b24ef8d77b490e8ec0419f57 | c0239d75a8199ec84ad683f945c21785c1b59386 | /dingtalk/api/rest/OapiChatTagDeleteRequest.py | 2292ed627d4873421afe37fd82864be50c362d9b | [] | no_license | luss613/oauth_dingtalk | 9f253a75ce914c577dbabfb84e97fd883e80e04b | 1e2554642d2b16c642a031670d08efa4a74e8252 | refs/heads/master | 2023-04-23T01:16:33.450821 | 2020-06-18T08:22:57 | 2020-06-18T08:22:57 | 264,966,287 | 1 | 1 | null | 2020-06-18T08:31:24 | 2020-05-18T14:33:25 | Python | UTF-8 | Python | false | false | 348 | py | '''
Created by auto_sdk on 2019.10.31
'''
from dingtalk.api.base import RestApi
class OapiChatTagDeleteRequest(RestApi):
def __init__(self,url=None):
RestApi.__init__(self,url)
self.chatid = None
self.group_tag = None
def getHttpMethod(self):
return 'POST'
def getapiname(self):
return 'ding... | [
"paul.lu@belstar.com.cn"
] | paul.lu@belstar.com.cn |
77415745cb1aa2ac72dc1415a343d7a3c84e3fa2 | a6c86e21f66968b8ddce0382e7bcceb43765d29e | /src/serialio.py | 63613d515ce5bcf7666aa8a76470af627b28e356 | [] | no_license | HenkVanAsselt/IFR1200 | 5ef5491d9d0077bfd5b2af9f98841d27b93d5863 | 8c39f7d6b590795fb45733c40cb03108c36822e5 | refs/heads/master | 2021-04-04T15:34:14.087285 | 2020-08-13T11:38:19 | 2020-08-13T11:38:19 | 248,463,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,451 | py | """IFR 1200 serial commands and tests
"""
# Global imports
import time
import serial
# Local imports
import src.lib.helper
from src.lib.helper import debug
# ============================================================================
class IFR1200Io:
"""Class representing the serial Interface to IFR 1200"""
... | [
"Henk.van.Asselt@gmail.com"
] | Henk.van.Asselt@gmail.com |
cc99431e6928a9a383dda93218d492c8f7bfd8f9 | c09f9e22658cdf54fbb308b79595f7e0e4b6d6a7 | /color space change/track_blue.py | 04a95458e3b7197e517cc0c18a2585b54b61b9d8 | [] | no_license | zx563147474/opencv_learning | ce252a9e161be60dae1b46a45c45cd064efd8201 | 679934f68a70aed375fcb33ff12f54e62acfecd9 | refs/heads/master | 2020-06-26T05:45:13.377899 | 2019-09-30T05:07:40 | 2019-09-30T05:07:40 | 199,551,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 970 | py |
# 蓝色的HSV值
import cv2
import numpy as np
blue = np.uint8([[[255, 0, 0]]])
print(blue)
hsv_blue = cv2.cvtColor(blue, cv2.COLOR_BGR2HSV)
print(hsv_blue) # [[[120 255 255]]]
# 3.追踪蓝色物体
capture = cv2.VideoCapture(0, cv2.CAP_DSHOW)
# 蓝色的范围,不同光照条件下不一样,可灵活调整
lower_blue = np.array([100, 110, 110])
upper_blue = np.array([... | [
"zx563147474@gmail.com"
] | zx563147474@gmail.com |
eba8e549a12d0b22421b0407b63826019b87c74c | 92ee5595f23ac1076b5e76d2679dd31ab89705fe | /sequencinator/matrix_tools.py | 639e10407e45a3889629e62fe7023eb92b4c4843 | [] | no_license | DiogoM1/MBINF-AASB_Projeto | 188f9c94968066186e98f773112adb7e81e4de00 | 144b6ebc18a4da4dd70f5d0d9ba9f1acdd768ae2 | refs/heads/main | 2023-01-27T11:53:01.331760 | 2020-12-02T18:17:38 | 2020-12-02T18:17:38 | 309,809,268 | 0 | 0 | null | 2020-12-02T15:27:38 | 2020-11-03T21:17:08 | Python | UTF-8 | Python | false | false | 894 | py | def max_matrix(matrix):
# finds max value
# https://www.educba.com/numpy-argmax/
max_list = []
for a in range(0, len(matrix)):
max_list.append(max(matrix[a]))
return max(max_list)
def find_last_max(matrix):
# finds the last max coordinates
max = max_matrix(matrix)
max_index_sum... | [
"diogodpmacedo@gmail.com"
] | diogodpmacedo@gmail.com |
5b451f8fca2b8cdfbc03a067f3d1368e8042e36c | 056a1050e0e0bf78eeedaf978841a61e5203936a | /Python/Flask_Blog/05-Package-Structure/flaskblog/models.py | 8dd3af1c5fdbfc8535f369b1cab4ddc0456a738a | [
"MIT"
] | permissive | DSNR/snippets | cc3990f0ac467e19754f0a76598809eddede95fd | 12006dd083be60c6444d8b5ca48fd917005e081b | refs/heads/master | 2023-08-23T18:55:34.038472 | 2021-10-11T02:35:28 | 2021-10-11T02:35:28 | 415,750,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,017 | py | from datetime import datetime
from flaskblog import db
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String(20), unique=True, nullable=False)
email = db.Column(db.String(120), unique=True, nullable=False)
image_file = db.Column(db.String(20), nullab... | [
"stuart@ariia.co.uk"
] | stuart@ariia.co.uk |
187ba8799480652d89c93f0faa7a2c97b7f99b6a | d61f7eda203a336868c010abb8f9a6f45dd51adb | /497. Random Point in Non-overlapping Rectangles.py | 01542c98bf043ff665c52427319b5c46b11bdf49 | [] | no_license | Mschikay/leetcode | b91df914afc728c2ae1a13d3994568bb6c1dcffb | 7c5e5fe76cee542f67cd7dd3a389470b02597548 | refs/heads/master | 2020-04-17T12:11:38.810325 | 2019-10-06T02:37:32 | 2019-10-06T02:37:32 | 166,570,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 761 | py | class Solution:
def __init__(self, rects: List[List[int]]):
self.rects = rects
self.prefix = [0]
for x1, y1, x2, y2 in rects:
self.prefix.append((x2 - x1 + 1) * (y2 - y1 + 1) + self.prefix[-1])
def pick(self) -> List[int]:
num = random.randint(0, self.prefix[-1])
... | [
"chikaytong@gmail.com"
] | chikaytong@gmail.com |
3b65c4d7657ad654a6586dcd3158a572adc38cb0 | ea04e29123cdbe5f49be236ee1df8397da25b330 | /reportcards/urls.py | 8a6a5fc8ba1879bbb8b6c936ab33b55758529138 | [
"MIT"
] | permissive | Davy-71993/MySchool | bf187673e4796010dd8fd4bcbf27b0b87199794d | fa02c8ec19d71873fc0d714cf652d8ad05f2f0e7 | refs/heads/master | 2022-05-28T23:24:06.865580 | 2020-05-04T19:03:04 | 2020-05-04T19:03:04 | 261,251,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 606 | py |
from django.urls import path
from . import views
urlpatterns = [
path('', views.creat_marklist, name='creat_marklist'),
path('<mkl>', views.setup_marklist, name='setup_marklist'),
path('marklist/<pk>/', views.marklist, name='marklist'),
path('marksbysubject/<mkl>/<sub>/', views.marks_by_subject, name... | [
"59330475+Davy-71993@users.noreply.github.com"
] | 59330475+Davy-71993@users.noreply.github.com |
ba802b9c190c3083aa933b00887236c6ad1b4277 | 71f39b722f1204738b53e90d8566bcf6da99d494 | /apps/incubator/migrations/0004_auto_20181106_1401.py | 08eb2dabca3ab2ddac44d79bf4d15373287cca68 | [] | no_license | kingvern/txplatform | cd9fc36fe3ba536b7578d734f520d0f091db4b22 | 235465b742d0ba13132f872e0f3818990f232888 | refs/heads/master | 2022-12-17T00:03:50.675329 | 2018-11-16T10:02:35 | 2018-11-16T10:02:35 | 149,862,235 | 0 | 0 | null | 2022-11-22T02:53:29 | 2018-09-22T09:17:06 | JavaScript | UTF-8 | Python | false | false | 751 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2018-11-06 14:01
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('incubator', '0003_couveuse_financial_park'),
]
operations = [
migrations.AddFi... | [
"kingvern@foxmail.com"
] | kingvern@foxmail.com |
68c69662eccb7e28430427119124efb2630482b3 | 04ab24e9e7742895771de803959d1167e416a57e | /app/main/services/category_service.py | 4f566ef30aca6a112baede20ead7f70131098cf4 | [] | no_license | TTomas78/Taller-Python | 2ee35c4a72d59b5e1b83a454d071ed40b547371d | 2e9d72b9621c022cad916d6494528daee81182d2 | refs/heads/master | 2022-10-10T03:13:03.162248 | 2019-11-27T22:05:53 | 2019-11-27T22:05:53 | 211,518,544 | 1 | 0 | null | 2022-09-16T18:10:58 | 2019-09-28T15:09:18 | Python | UTF-8 | Python | false | false | 180 | py | from app.main.repositories.category_repository import CategoryRepository
class CategoryService():
@staticmethod
def get_all():
return CategoryRepository.get_all() | [
"bourgeoistomas@gmail.com"
] | bourgeoistomas@gmail.com |
1158637ae1565bfda9ea360030dc766550d3b79e | 734104aef567d19e2d7cdcf05f1f887bbd29c5eb | /hawkeye_autotest/selenium/crondns.py | 54491f62e148582dbd986c3953dc1a83bc61c3bc | [
"Apache-2.0"
] | permissive | miaolujing/python_script | 4d7719bc9294013bacf261e03dd06aa216e389cc | 57ccf89f53ce0ce551804b5693515d8a8db4ce78 | refs/heads/master | 2021-01-10T06:33:08.120663 | 2017-02-17T05:58:09 | 2017-02-17T05:58:09 | 47,525,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,501 | py | # -*- coding: utf-8 -*-
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import Select
from selenium.common.exceptions import NoSuchElementException
from selenium.common.exceptions import NoAlertPresentException... | [
"miulujing@miulujingdeMacBook-Pro.local"
] | miulujing@miulujingdeMacBook-Pro.local |
80dc412129683b4b0477fa6e4975e286fb8875a3 | 15703d435938a852e0ca586840e412c1e54740ce | /logistica/models.py | 87df9929625f0d7d99bc2992bda31aa81373b9b5 | [] | no_license | fcaapps/dashcase | 718f0b18545e27b302abfb41e0ce49ca77b185bf | e6d6e498783439ad78f666c7658b761ed30127e0 | refs/heads/master | 2022-12-10T09:59:23.683301 | 2018-10-16T13:10:41 | 2018-10-16T13:10:41 | 150,775,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | from django.db import models
class PermissoesLogistica(models.Model):
class Meta:
managed = False # No database table creation or deletion operations \
# will be performed for this model.
permissions = (
('logistica_permissoes', 'Permissão Global de Logistic... | [
"fca.apps@gmail.com"
] | fca.apps@gmail.com |
f5ee8b5d8dd3b3a4a43097ae43519dc2bac3abce | 45e56bbdf63bdefad218fe00de5441f06a5b6d30 | /tests/test_models.py | b16bf4205e0ce2bfa5f917cfc1f3e6821b037acd | [] | no_license | ssciolist/quantified-self-django | 25768e7ebbbb4380f2303fdc627a3a9d33af930b | 81cca994c1e30223b9fb925bc6db04b0bcbf9bd6 | refs/heads/master | 2020-03-22T10:21:40.125705 | 2018-07-12T13:20:17 | 2018-07-12T13:20:17 | 139,762,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,282 | py | from django.test import TestCase
from qs_app.models import Food, Meal
class FoodTestClass(TestCase):
def setUp(self):
Food.objects.create(name="Croissant", calories='400')
Food.objects.create(name="Salad", calories='300')
def test_food_attrs(self):
buttery_goodness = Food.objects.get(... | [
"ssciolist@gmail.com"
] | ssciolist@gmail.com |
1ec433659be952df3dbd83f186482baaffd5b2fe | 6f5b206e416ba8a16d3a559ad9e9329fbaed672b | /pinballbase/fpsmeter.py | 7c2adad96d5e64ebef736247099a6b62aff88bd4 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | OpenDisneyGames/PiratesPinball | 66a51935db81f4698d35e55f97ffddbb2a98cb8a | 411728429083e2f36a691b8db7966f91a1ea6a1f | refs/heads/master | 2022-10-06T00:58:58.861183 | 2020-06-08T07:34:38 | 2020-06-08T07:34:38 | 270,551,727 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,651 | py | import direct.directbase.DirectStart
from direct.showbase.DirectObject import DirectObject
from direct.gui.DirectGui import *
import direct.task.Task, time
from functools import reduce
class FPSMeter(DirectObject):
__module__ = __name__
def __init__(self, displayFPS=True, numSamples=20):
self.displayF... | [
"comradenapcal@aol.com"
] | comradenapcal@aol.com |
b83dd742d29f7987ba26646427a8b0001749c6d4 | 90974492bf7b78969e976ba97f6a51510fb84fe8 | /qlearning-3-qtable.py | 4a1ce78aabee227a05b56f16bd170a2bacdee8b5 | [] | no_license | nexthybrid/Python-Q-Learning | 82c719d475ad871fd6ed5648c7abddbea1fcc4dd | 23d2392dbb379d2981b1845679f4cf7dacbe90ad | refs/heads/main | 2023-01-01T22:36:43.105496 | 2020-10-08T02:21:07 | 2020-10-08T02:21:07 | 301,920,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 983 | py | from mpl_toolkits.mplot3d import axes3d
import matplotlib.pyplot as plt
from matplotlib import style
import numpy as np
style.use('ggplot')
def get_q_color(value, vals):
if value == max(vals):
return "green", 1.0
else:
return "red", 0.3
fig = plt.figure(figsize=(12, 9))
ax1 = fig.add_subpl... | [
"zhao.1991@osu.edu"
] | zhao.1991@osu.edu |
5554458edaa0679f072cf8de87922210dcb52f07 | 13d52041d7ba53ccc1708a5931b69f8b13ebd0f6 | /1_cohesion_and_coupling/good_exemple.py | 4d7b397a8b8aab350d579b329a7acd62613e4268 | [] | no_license | iemsec/DesginPattern | 0967c5cae53e228311e3003900eeafd1bccc908d | 80b5426f1f83b646819188c7fb22c207ba1d05c7 | refs/heads/main | 2023-07-12T19:44:08.563756 | 2021-08-06T05:46:28 | 2021-08-06T05:46:28 | 389,579,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,366 | py | import string
import random
class VehicleInfo:
brand: str
catalogue_price: int
electric: bool
def __init__(self, brand, electric, catalogue_price) -> None:
self.brand = brand
self.catalogue_price = catalogue_price
self.electric = electric
def compute_tax(self):
... | [
"3.870007366.96000062@carte-cps.fr"
] | 3.870007366.96000062@carte-cps.fr |
ca6d981f70f9f5e2d0d59bf1cec839c78115a1ef | a1bc22600af8889ea1b96b102a021a4a360654d5 | /restapi/libs/ConnectionManager.py | d0eddd35935d2ac3a2b6e9da225c5336c50530e1 | [] | no_license | IndominusByte/hydro-tech-backend | 940e32f3d4981ec92f78c7efb2f11add0fa17bf5 | ac1ae3f05eb0b5a2c9da80560e7ee5e66e52848f | refs/heads/main | 2023-05-04T14:11:12.267438 | 2021-05-30T01:08:30 | 2021-05-30T01:08:30 | 371,831,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,048 | py | import logging, json
from fastapi import WebSocket
from fastapi_jwt_auth import AuthJWT
from fastapi_jwt_auth.exceptions import MissingTokenError
from controllers.ChatController import ChatCrud, ChatFetch
from controllers.UserController import UserFetch
from controllers.ReportController import ReportCrud
from controlle... | [
"nyomanpradipta120@gmail.com"
] | nyomanpradipta120@gmail.com |
e69cbe6f5d5c2767f1553eace21a5c5ab7485281 | 9df7a73ddb4237bbd752efdc6c7b03da5aa1fa40 | /weiss/planner/liblinearutil.py | 74db82a219a5e197dabfcccd8a4886a8c4e3ca05 | [
"Apache-2.0"
] | permissive | austinlostinboston/mitsWebApp | 39f8ada858def608c2377bdea006590379896a5c | bf30e891f4b0985e636935a82b87e3b100e1fd64 | refs/heads/master | 2020-04-01T12:40:53.615324 | 2015-08-06T20:48:35 | 2015-08-06T20:48:35 | 37,482,873 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,549 | py | #!/usr/bin/env python
import os
import sys
import time
sys.path = [os.path.dirname(os.path.abspath(__file__))] + sys.path
from liblinear import *
from liblinear import __all__ as liblinear_all
from ctypes import c_double
__all__ = ['svm_read_problem', 'load_model', 'save_model', 'evaluations',
'train', 'p... | [
"mindbergh@gmail.com"
] | mindbergh@gmail.com |
32b0d0a1e7c59df238be50af8ed751a950d96502 | 7ca55428503fc915fcffb8059d30654b625a6b26 | /54-merge_sort.py | 97a612c87752b25458be8094ab24483513f62345 | [] | no_license | Akshata2704/APS-2020 | 453e9eafb511e3e5fc73d939180c3402eb93134e | 8f095ae1af9653499f1dedcdfe12b60b1ad1f65c | refs/heads/master | 2020-12-21T03:10:52.043400 | 2020-05-15T18:51:48 | 2020-05-15T18:51:48 | 236,286,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 959 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Apr 28 22:35:40 2020
@author: AKSHATA
"""
def merge(arr, l, m, r):
n1 = m - l + 1
n2 = r- m
L = [0] * (n1)
R = [0] * (n2)
for i in range(0 , n1):
L[i] = arr[l + i]
for j in range(0 , n2):
R[j] = arr[m + 1 + j]
i = 0
j = 0
... | [
"noreply@github.com"
] | Akshata2704.noreply@github.com |
419b6c02dcf9186aa633d2437aefac974a53e4c2 | c51090c1814ab0c3618d059913e9ba7514c18954 | /fabfile.py | d6e834b06af0e25c9fbd2e459710caf2c8a91102 | [] | no_license | Narsiba/RTWPage | 338361a5fcf36a236a760ee834ad9389c6575749 | 8fa1852ccf7e0737019de3ef6fd1d84bccd0323f | refs/heads/master | 2020-06-15T17:31:02.327853 | 2017-02-26T08:36:18 | 2017-02-26T08:36:18 | 75,275,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | true | false | 21,822 | py | from __future__ import print_function, unicode_literals
from future.builtins import open
import os
import re
import sys
from contextlib import contextmanager
from functools import wraps
from getpass import getpass, getuser
from glob import glob
from importlib import import_module
from posixpath import join
from mezza... | [
"gardnersab@gmail.com"
] | gardnersab@gmail.com |
d0523a8eb2d8b4391e899985c3cf03af8655971e | 648f96d16f5413ab4f9f52fd132b7371c39733e1 | /local/get_metadata.py | 0019173cd8ad496d28a06571533222092d5c1824 | [
"MIT"
] | permissive | Akash-Sharma-1/TweepyMR | f608c9862c6af2ff6af3ad803ccf5f82844a58e6 | 901af2014928691d62ad6d90810e3bb8f35b6fcb | refs/heads/master | 2021-02-08T08:52:58.674947 | 2020-07-16T08:01:19 | 2020-07-16T08:01:19 | 244,132,519 | 2 | 0 | null | 2020-03-01T10:56:41 | 2020-03-01T10:56:41 | null | UTF-8 | Python | false | false | 2,831 | py | import sys
import tweepy
import json
import math
import glob
import csv
import zipfile
import zlib
from tweepy import TweepError
from time import sleep
# CHANGE THIS TO THE USER YOU WANT
user = 'narendramodi'
with open('api_keys.json') as f:
keys = json.load(f)
auth = tweepy.OAuthHandler(keys['consumer_key'], k... | [
"33986563+Akash-Sharma-1@users.noreply.github.com"
] | 33986563+Akash-Sharma-1@users.noreply.github.com |
3d6198b0abdc87164e432fd09c0390ecba72de19 | de1abd0ebbb817aa5f23d369e7dda360fd6f1c32 | /chapter8/7-NltkAnalysis.py | 486c02f2c7559694ee722504c06720e50861ed6a | [] | no_license | CodedQuen/Web-Scraping-with-Python- | 33aaa2e3733aa1f2b8c7a533d74f5d08ac868197 | 67f2d5f57726d5a943f5f044480e68c36076965b | refs/heads/master | 2022-06-13T01:34:39.764531 | 2020-05-05T11:07:01 | 2020-05-05T11:07:01 | 261,435,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | from nltk import word_tokenize, sent_tokenize, pos_tag
sentences = sent_tokenize("Google is one of the best companies in the world. I constantly google myself to see what I'm up to.")
nouns = ['NN', 'NNS', 'NNP', 'NNPS']
for sentence in sentences:
if "google" in sentence.lower():
taggedWords = pos_... | [
"noreply@github.com"
] | CodedQuen.noreply@github.com |
48351d6d1b511a8717bd34a114b6e54683357290 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/acllog/flowcounteraghist1d.py | 2e2a886e4137ca0fffa75a3d90db0646a85fbed6 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,371 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
b4ceba382671ec1f1b68a5f95a4f15ae4e570161 | c428f065a7614751ba525599aa0595f02133fbee | /utils/exporters/blender/2.49/threejs_export.py | c69782d7b6eb6b498fd6472af0e6a08712e91a89 | [
"MIT"
] | permissive | jzmudzinski/three.js | b4251e7286e14471ae71224ba8db642de497c8f2 | c186b37be3cd87a0f0aa8e98eb5d88e49b7d519b | refs/heads/master | 2021-01-09T06:18:10.765230 | 2010-12-31T17:59:11 | 2010-12-31T17:59:11 | 1,213,135 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,801 | py | #!BPY
# Based on Anthony D'Agostino (Scorpius)'s Raw Exported provided with Blender
# and on Mr.doob's and Kikko's Blender 2.5a2 exporter
# 'http://mrdoob.com', 'http://github.com/kikko'
"""
Name: 'three.js (.js)...'
Blender: 245
Group: 'Export'
Tooltip: 'Export selected mesh to three.js (.js)'
"""
__author__ = "Geor... | [
"info@mrdoob.com"
] | info@mrdoob.com |
da6286df83fa7d22ced026b70d3ccc9e7a81e3c3 | ad057daedceb42ac62c1aebca9271892d6e0d711 | /lab5/zad1.py | ca076ff742d6d1d3d48f163c9b5faa814da64f40 | [] | no_license | Brouney/Vpython-university | 5f311a02d0acdbdb51c840765888906591f97aef | b0ee5143c1c86f17ff651548e5360ee1fcffebd6 | refs/heads/master | 2022-11-13T05:46:11.764112 | 2020-07-09T11:44:53 | 2020-07-09T11:44:53 | 278,346,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,086 | py | import numpy as np
import matplotlib.pyplot as plt
a = np.arange(1,367,1)
#print(sum(a==2))
file = open("zad1wyn.txt","w")
tab2 = []
tab3 = []
tab4 = []
for N in range(1,367):
liczba2 = 0
liczba3=0
liczba4=0
temp = np.zeros((1000,367))
for t in range(1000):
for i in range(N):
d... | [
"piotreg98@gmail.com"
] | piotreg98@gmail.com |
f17ce69e556c7992b8b72734be67d9a8c66a6a95 | beab1ca3413c3397a4c5a3152b04a58585c75147 | /algos/sorting/bubble_sort.py | 0a542abbef1b7970fdc52fe0983e682342792879 | [] | no_license | john-a-m/snippets | 60c3373e2ae9f4e2ea17884aac665e070e6783f8 | 90c6160220909a30a3503a4243d51d833330c49b | refs/heads/master | 2021-01-21T04:25:28.507958 | 2019-08-05T16:00:15 | 2019-08-05T16:00:15 | 30,418,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | def bubble_sort(nums):
for passnum in range(len(nums) - 1, 0, -1):
for i in range(passnum):
if nums[i] > nums[i + 1]:
nums[i], nums[i + 1] = nums[i + 1], nums[i]
if __name__ == "__main__":
nums = [54,26,93,17,77,31,44,55,20]
bubble_sort(nums)
print nums
| [
"noreply@github.com"
] | john-a-m.noreply@github.com |
00366ebb2a1b53335b701e3f22e14fd88941755c | bca25ecb5677b528cdf3d68b6ead3ef64290fdac | /Solid_rocket_motor_ignition_system_based_on_air-methane_mixture_-_Cantera (1).py | 5874f2923ccf0ba1f6c7e483a53084c3b2415a3b | [] | no_license | gibon1617/mkws | fe78eb8fd09dce38dc568001fab7fb21ef3e1ea2 | 0850f38503c9b664088387f9daa91f719fcf7823 | refs/heads/master | 2020-06-04T02:27:16.808515 | 2019-06-14T10:07:35 | 2019-06-14T10:07:35 | 191,833,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,334 | py | import math as m
import cantera as ct
import numpy as np
import matplotlib.pyplot as plt
# Reaction mechanism GRI-Mech 3.0
gas = ct.Solution('gri30.xml')
# Energy which has to be provided in order to ignite the rocket fuel of A2 rocket motor
ignition_energy = 1.2*1550 # [kcal]
ign_energy = ignition_energy*418... | [
"noreply@github.com"
] | gibon1617.noreply@github.com |
48821661f53b8b2fd7a14393c175437f8f7231b3 | cc856a6efb22c82eaa6bc9bcadb36ab519c2b3eb | /test.py | 7de592f88c9b4629879bdd2da2c3554672ca5170 | [] | no_license | ajaybati/Past-Projects | 59b861f76ca5cd5b1a7b85462b92666660263d57 | 204ada5e7f91cea4d8108c5f66f159b384d7dbdd | refs/heads/master | 2020-12-21T10:05:49.450890 | 2020-01-31T07:43:02 | 2020-01-31T07:43:02 | 236,396,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 734 | py | list=['1', '(8', 'ounce)', 'container', 'plain', 'yogurt', '1⁄3', 'cup', 'chopped', 'seeded', 'cucumber', '(thinly', 'slice', 'remainder', 'of', 'cucumber)', '2', 'tablespoons', 'finely', 'chopped', 'onions', '1', 'garlic', 'clove,', 'minced', '1', 'teaspoon', 'sugarFilling', '1', 'lb', 'lean', 'ground', 'beef', '(I', ... | [
"noreply@github.com"
] | ajaybati.noreply@github.com |
405d7228f719d71c4b76b31841b43bc34e7a2c0d | 80d20d3edd874a011361800939f4ef6982673137 | /balance.py | 321ffc73e54d9c8b635da940facb59a3daaa9543 | [] | no_license | vincelwt/krakenoverview | 2969d1ef9f4bd068521ffefc7421c2c0e414f43a | b7043a3852da866f4097323209b35807ccff9801 | refs/heads/master | 2021-01-22T08:09:47.603675 | 2017-05-27T14:20:10 | 2017-05-27T14:20:10 | 92,603,134 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,175 | py | import krakenex, json, os, time
from termcolor import cprint, colored
from tabulate import tabulate
k = krakenex.API()
k.load_key('krakenvince.key')
liveValues = []
compound = []
# Updates liveValues array with current prices of all currencies
def updateLivevalues():
global liveValues
assets = k.query_public('Tic... | [
"noreply@github.com"
] | vincelwt.noreply@github.com |
78123c2af7bf0854263ba8aa6b53951d3161379b | b1da705aab90be29e17036d4495f945159ea0160 | /bin/restore | a1ba719f2492a6b886fe99cc12b1808664df8d93 | [
"Apache-2.0"
] | permissive | dan-sullivan/mist.api | 06e428fe82f817e79dd7068a205ba0ea6dfea334 | 82ea1780801429336e89be714131d69f4015768b | refs/heads/master | 2022-04-20T03:38:21.191064 | 2020-04-22T17:02:46 | 2020-04-22T17:03:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,126 | #!/usr/bin/env python
import os
import argparse
import requests
from mist.api import config
def main():
argparser = argparse.ArgumentParser(
description="Restore a mist backup"
)
argparser.add_argument('backup', help="Backup to restore.")
args = argparser.parse_args()
cmd = 's3cmd --acces... | [
"dimo@mist.io"
] | dimo@mist.io | |
40dd55c4845e2d28839d9fcd23150afb908217b7 | f9f416b5e4f00c190e3c63546c1442588dd5a504 | /chapter02/Test05-for.py | 72a664e819728738c9c42a2bbef7eee39250d650 | [] | no_license | tongyaojun/corepython-tongyao | 1f4649fa758da20474f0604943635a363d6ab76a | c5869dc29a42b83435b93c7125fcac1bf8d2e6b1 | refs/heads/master | 2020-05-04T04:43:22.233234 | 2014-07-22T12:53:57 | 2014-07-22T12:53:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 60 | py | #!/usr/bin/python
for rag in range(11):
print(rag)
| [
"jintongyao@jintongyao.local"
] | jintongyao@jintongyao.local |
60360235f3c2a84e511dfb8b88931bf1b27d9951 | d930be62c302a01ad1462180519a8646bbf78484 | /my_templates/folder_monitor.py | add7a30f4db020762edaa61f1bf60c4893c37237 | [] | no_license | puneet3LOQ/my_templates | 4e76489a7cd344408288727ec6514bf62e456d73 | b9891d79030f82fd5195f7d089d3da7b624bbfe4 | refs/heads/master | 2021-01-23T03:22:07.259075 | 2015-04-23T12:06:21 | 2015-04-23T12:06:21 | 34,115,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,026 | py | #/home/puneet/workspace/folder_monitor.py
'''
Platform independent file system monitor.
'''
from __future__ import nested_scopes
import os, time
def watch_directories(paths, func, delay=0.1):
'''
Watches a list of directories specified in 'paths' and runs func on each
new/changed file encountered in paths... | [
"puneet@3loq.com"
] | puneet@3loq.com |
2e5b24c6d45a87fa2c12e35d5b432da39edabc4a | 82ebcc53d1c3e80b8960520f934004b945c84f70 | /gumi/models/__init__.py | 66dce650fdf02fea6bbc93b79f43d1dcb08f0817 | [
"MIT"
] | permissive | kumasento/gconv-prune | 404fa15c508be017faf56a0e27edc5410fa459d9 | f81c417d3754102c902bd153809130e12607bd7d | refs/heads/main | 2021-10-06T12:54:49.626589 | 2021-10-04T16:13:59 | 2021-10-04T16:13:59 | 204,706,641 | 10 | 2 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | from .resnet import *
from .preresnet import *
from .densenet import *
from .vgg import *
from .condensenet import *
| [
"vincentzhaorz@gmail.com"
] | vincentzhaorz@gmail.com |
764fc0ffc334d6afffff8b3c00492773cafb869d | c1c0f44de906af90da1aeafa35c3780320b292ac | /build/lib/discogs_wrapper/__init__.py | 2226d09879d2f6b94b11c62e69289d0b942c5956 | [] | no_license | Gargeebhase/Discogs-Python-Wrapper | 696ca79c39d29323bf61635ecba1b7af8873ec67 | 67581337378346b308871310f862d93450e673b6 | refs/heads/master | 2023-05-25T05:13:26.132079 | 2020-06-09T04:01:26 | 2020-06-09T04:01:26 | 270,838,242 | 0 | 0 | null | 2023-05-22T20:44:19 | 2020-06-08T21:51:17 | Python | UTF-8 | Python | false | false | 96 | py | import os
import requests
session = requests.Session()
session.params = {}
from .dv import DV | [
"bhase@usc.edu"
] | bhase@usc.edu |
9e195b586132269338308ac6751fc54a8bb6c43f | e2b137653587d55ff954e59649ae40f7b344a15f | /csvjoin/csvjoin.py | 8ddd5af3da7310a0547a95d5a43ff9604a5407ae | [
"MIT"
] | permissive | lorcan/CSVJoin | f9d7050f1a97d2ad019aef9267b6989b60755fa7 | b547dca4c7bd365896856a33d590645c8f472735 | refs/heads/master | 2016-09-05T12:50:07.595971 | 2014-01-01T10:53:17 | 2014-01-01T10:53:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,386 | py | """
csvjoin.py
Copyright (c) 2013 Lorcan Coyle, http://lorcancoyle.org
License: MIT License
Documentation: https://github.com/lorcan/CSVJoin
"""
import argparse
import csv
import redis
import sys
import ast
import copy
parser = argparse.ArgumentParser(description='Takes two CSV files and attempts to join... | [
"lorcan@gmail.com"
] | lorcan@gmail.com |
2db8223646d69dc09a8a240df878d1dec6ea74d1 | 3979b5ea212395fc66f17c1f8a94ebc00e18d004 | /Part2/main.py | 4e6a21a69924803c67892b306dc7d2a5f9f622bd | [] | no_license | Ibasquare/Nvidia-TX2-LivePanorama | a822d9ee7b31c92396ee138d2a4f6024aafe6180 | 81a15e378773e493b1a741a3f872397a473133c1 | refs/heads/master | 2022-07-26T03:04:02.137700 | 2022-06-27T13:34:49 | 2022-06-27T13:34:49 | 216,547,939 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 25,827 | py | import cv2
import json
import sys
import operator
import numpy as np
from Angle import *
from Panorama import *
from JetsonCam import *
from Reader import *
from Motion_Detection import *
from Util import *
from MaskComp import *
from PersonDetection import *
PROJECTION_MATRICE = None
IMPLEMENTED_MODE = ["panorama",... | [
"sami.benmariem@student.uliege.be"
] | sami.benmariem@student.uliege.be |
b9952317e4681c860e846a7e70a21548261b380d | ec762d868793b43301ac9f7b52e4ecdbe3512b55 | /labs/week6/python/skinDetectionRuleBased.py | dff293930f1354937aa101f7c01f36d64c4ad5f1 | [] | no_license | payalbhatia/opencv_satyamallick | e92094273d89b8ebabc6025defad93f25b54988c | 0a35bfa1a4593b05f633e7f6b0c48fa11e70177d | refs/heads/master | 2021-10-16T16:28:31.652395 | 2019-02-12T05:46:41 | 2019-02-12T05:46:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,930 | py | """
Copyright 2017 BIG VISION LLC ALL RIGHTS RESERVED
This program is distributed WITHOUT ANY WARRANTY to the
Plus and Premium membership students of the online course
titled "Computer Visionfor Faces" by Satya Mallick for
personal non-commercial use.
Sharing this code is strictly prohibited without w... | [
"chedelp@KAUST.EDU.SA"
] | chedelp@KAUST.EDU.SA |
efc4ec62a0ebada56728b089bbcba09c1c3a43e0 | 3dc3070b33f1355aa3fa589e3f029c45f2af14e2 | /Chapter 2/02_05_hangman_play.py | a197409f3d8ca8aef75db094a596564c6608bf28 | [] | no_license | alec-rabold/Intro-Python-Projects | 5a9f297585576d0bfd8688e70e0df469e78b786c | 6d0766d97242e1056a07beeb693cda7178ea7184 | refs/heads/master | 2021-01-23T01:33:50.078305 | 2017-06-01T16:57:28 | 2017-06-01T16:57:28 | 92,879,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | import random
words = ['chicken', 'dog', 'cat', 'mouse', 'frog']
lives_remaining = 14
def play():
word = pick_a_word()
while True:
guess = get_guess(word)
if process_guess(guess,word):
print('You win!')
break
if lives_remaining == 0:
print('You are hanged!')
print('The word was: ' + w... | [
"alecrabold@outlook.com"
] | alecrabold@outlook.com |
0b2a0b151096fb26a50ff2bcd2397014f5308370 | 5aa33c8438645d696c49c1a39d031f3f5eec0917 | /node_modules/react-scripts/node_modules/chokidar/node_modules/fsevents/build/config.gypi | 35186ae6b05180060f69027c6d809a3434770e23 | [
"MIT"
] | permissive | alorr10/catch-of-the-day | 0413087e3bee7d92399ab3100728d48159058e9d | 575be4f7f20781bbbf8885a030e0580e60075967 | refs/heads/master | 2021-07-22T08:45:43.898457 | 2017-10-31T23:19:25 | 2017-10-31T23:19:25 | 108,476,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,110 | 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,
"coverage": "false",
"debug_devtools": "node",
"debug_http2"... | [
"alec@brighten.in"
] | alec@brighten.in |
ab454232840dbe7c1c6602b6ff4d5f9d48c09fe4 | 83d7003aa276549e563c614c59a70603c61402e1 | /EXERCÍCIOS RESOLVIDOS/python/loops/alg4.py | 75c0159296723ef6622922e3cbc9529dc21e78cc | [] | no_license | mendelson/Algoritmos | 66c67d6ccce99272da2d0e7bfd3fdee371e08275 | 68e90aa259464ada915e419fb26416203ce5f896 | refs/heads/master | 2021-01-19T16:01:31.962672 | 2017-08-21T19:11:04 | 2017-08-21T19:11:04 | 100,981,374 | 0 | 0 | null | 2017-08-21T18:35:24 | 2017-08-21T18:35:24 | null | UTF-8 | Python | false | false | 373 | py | # Algorithm 4
def main():
cont = final = 0
while cont < 2:
grade = float(input("Grade " + str(cont) + ": "))
if grade < 0 or grade > 10:
print("Invalid!")
else:
final = final + grade
cont = cont + 1
media = final / 2
print("Final grande = %.... | [
"alexandre@zaghetto.com"
] | alexandre@zaghetto.com |
4ef1b4ad59a6038701ac54ce8f91f3c6bd2f7011 | 2e57fa141bd7fe4903ac5b31367e27686d343806 | /code/run_pretrain_new.py | 885233c44851b525d3eb589749f6c0d5ca45b472 | [
"MIT"
] | permissive | nikit91/ERNIE | 8b9e9efcaa786dc69ce1a931173bef3890f2f942 | a40e498e5b0adbfdce39a478737418199f773d96 | refs/heads/master | 2023-03-03T09:53:04.332667 | 2021-02-13T14:07:26 | 2021-02-13T14:07:26 | 311,699,328 | 0 | 0 | MIT | 2023-05-11T01:48:12 | 2020-11-10T15:21:19 | Python | UTF-8 | Python | false | false | 21,283 | py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HugginFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy... | [
"nikit91@gmail.com"
] | nikit91@gmail.com |
b3c22a904dac91d8b29c6d27d6ce97e5e99f49d8 | a034d4ba39789e4a351112c46dd04a38180cd06c | /appengine/monorail/framework/sql.py | 41fb66b26a0bd748c5788f67fa37cb9b6da157a5 | [
"BSD-3-Clause"
] | permissive | asdfghjjklllllaaa/infra | 050ad249ab44f264b4e2080aa9537ce74aafb022 | 8f63af54e46194cd29291813f2790ff6e986804d | refs/heads/master | 2023-01-10T21:55:44.811835 | 2019-07-01T14:03:32 | 2019-07-01T14:03:32 | 194,691,941 | 1 | 0 | BSD-3-Clause | 2023-01-07T07:12:37 | 2019-07-01T14:45:29 | Python | UTF-8 | Python | false | false | 37,456 | py | # Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file or at
# https://developers.google.com/open-source/licenses/bsd
"""A set of classes for interacting with tables in SQL."""
from __future__ import print_functio... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
241dde377505cb18294f1a598634e2f265b9c22a | fb208d7a31c1cec334991328c32d57ecfcfbbd9e | /models/TFLite/saved_model_to_tflite_float_16.py | c52d3da297b40539a680738115de2f5fdfa60135 | [] | no_license | HanYangZhao/AnimeGAN | c9b8dc031098ef9e0af55fddb71886ee6ce8bb8f | 394a9701af81b4656a9e76b567667ae30f4a0643 | refs/heads/master | 2022-09-13T06:16:12.030109 | 2020-05-30T01:14:11 | 2020-05-30T01:14:11 | 262,147,399 | 0 | 1 | null | 2020-05-07T20:05:21 | 2020-05-07T20:05:21 | null | UTF-8 | Python | false | false | 589 | py | # Run with TF 2.0+
import tensorflow as tf
# Convert the model.
model = tf.saved_model.load('./')
concrete_func = model.signatures[
tf.saved_model.DEFAULT_SERVING_SIGNATURE_DEF_KEY]
'''keep the ratio as close to 3/2 while being divisible by 32'''
concrete_func.inputs[0].set_shape([1, 992, 1504, 3])
converter = tf.l... | [
"hanzhao"
] | hanzhao |
4840d8dc0bb9174550dbc6043c03fcfd6ee37c70 | 78f3af339af51102f9b1312a54ff79604f257e24 | /ssh_remote.py | 8cf925b4593f1868cbc66c3eb738da13587daca3 | [] | no_license | chemila/bin | c3b3b1aaf37619800d07d6708bfad61322a8a64a | 7349e5a1ff0d5095ff65efdc0e663e9c8afeb471 | refs/heads/master | 2021-08-16T20:42:44.880705 | 2021-07-22T06:47:17 | 2021-07-22T06:47:17 | 1,201,992 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,559 | py | #!/usr/bin/env python
import subprocess
import ConfigParser
from threading import Thread
from Queue import Queue
import time
"""
A threaded ssh-based command dispatch system
"""
def readConfig(file="/home/ethan/data/config.ini"):
"""Extract IP addresses and CMDS from config file and returns tuple"""
ips = []
... | [
"chemila@gmail.com"
] | chemila@gmail.com |
8835421c4159ffa65247218af967d81b9433de71 | 4c4fdd5ce7cbf6bc4b0028c35d24f7b871a0b4d5 | /guvipairsum.py | 453e1dc0206c201cdf924864fe3e480e9b14b5fc | [] | no_license | Ashiscodebat/lemmecode | 7df1510e069e851e3f395efec83474813ca20b91 | 4a5dd5377d0c964d03f0e189d5142aece0c730e6 | refs/heads/master | 2020-04-01T16:55:00.731129 | 2018-10-22T15:52:27 | 2018-10-22T15:52:27 | 153,403,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | def checkrep(a,b,dic):
flag = 0
for key,vals in dic.items():
#if key + vals > a + b:
#return 1
if a != key and b != key:
flag = 1
else:
return 0
return 1
n = int(input())
l= []
d = {}
dic = {}
count = 0
an = 0
minsum = 1000000
for i in range(0,n)... | [
"noreply@github.com"
] | Ashiscodebat.noreply@github.com |
e215e64f4961ac65de0386bc2f4edbb5f03c7cb4 | ad432645cc8e08f5e4aeb24b70a075511e740cc5 | /shp/views.py | 1713a9305e5399c6d77f4852599a4ee92686564d | [] | no_license | SamyakLuitel/geodjango | 51bbf94bc23a072fe27eb3eb6b4be5694a16f7dc | c1f4a3e606c62c69a5401501b70a8d38e9ef352a | refs/heads/main | 2023-04-28T06:20:30.587728 | 2021-05-26T15:27:07 | 2021-05-26T15:27:07 | 345,569,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | from django.shortcuts import render
from django.core.serializers import serialize
from django.http import HttpResponse
from .models import ShpNepal
# Create your views here.
def shp(request):
shpData = serialize('geojson',ShpNepal.objects.all())
return HttpResponse(shpData, content_type = 'geojson')
def inde... | [
"samkotaku@gmail.com"
] | samkotaku@gmail.com |
b99ac23720342baf031a4813dfb3e5a9682e6cfa | 57ab38dfeb1e6e5c66dddbb7dd5122ec69229c73 | /meetings/forms.py | cfa5df507a79f57dbe7f654ef4eca7c04ce5ac2e | [] | no_license | japial/meet-django | 97ed37c217af3afb881f084aaaec432b4b435c81 | 4e02daa21079f385ff12537bd4de516da65e3f4e | refs/heads/master | 2022-12-14T23:01:13.531260 | 2020-09-05T14:53:17 | 2020-09-05T14:53:17 | 292,758,322 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 686 | py | from datetime import date
from django.core.exceptions import ValidationError
from django.forms import ModelForm, DateInput, TimeInput, TextInput
from meetings.models import Meeting
class MeetingForm(ModelForm):
class Meta:
model = Meeting
fields = '__all__'
widgets = {
'date'... | [
"jahangiralompial@gmail.com"
] | jahangiralompial@gmail.com |
7b44412ce11d8c6c342152422abcba093327737b | 3a48cfb0b43fe61f52355a67b2b5700aa8c5ddf2 | /src/som/interpreter/ast/nodes/message/generic_node.py | 5cfc38a7257dfdd24617ab9116a1996177084454 | [
"MIT"
] | permissive | SOM-st/RTruffleSOM | ce380d02985b0ef1f41f400409f61377dc3a583e | 1efc698577830ff3fcd1607e7155d9c6423e8804 | refs/heads/master | 2021-01-17T07:25:19.895376 | 2020-12-08T18:56:50 | 2020-12-08T18:56:50 | 17,311,290 | 9 | 2 | MIT | 2020-09-02T16:08:31 | 2014-03-01T08:45:25 | Python | UTF-8 | Python | false | false | 2,256 | py | from rpython.rlib.debug import make_sure_not_resized
from rpython.rlib.jit import we_are_jitted
from ..dispatch import SuperDispatchNode, UninitializedDispatchNode, send_does_not_understand
from .abstract_node import AbstractMessageNode
class GenericMessageNode(AbstractMessageNode):
_immutable_fields_ = ['_disp... | [
"git@stefan-marr.de"
] | git@stefan-marr.de |
954a403a9df50306bafb2a28b887c0d65ca1b1b6 | 2b460c7598914e0fc70515619f19670a44f9ba90 | /backend/test_flaskr.py | 0a854efea85a581352710a1687150944f8f528b0 | [] | no_license | vijaybaliah/trivia | 0fdd5e0c95031c96b58ddb58583355c1ee7371cf | a9396d54188517457e8844ba8d37a7e228101d9f | refs/heads/master | 2023-02-07T17:47:20.443689 | 2019-11-12T19:57:17 | 2019-11-12T19:57:17 | 217,876,153 | 0 | 0 | null | 2023-02-02T06:40:41 | 2019-10-27T15:34:52 | Python | UTF-8 | Python | false | false | 5,438 | py | import os
import unittest
import json
from flask_sqlalchemy import SQLAlchemy
from flaskr import create_app
from models import setup_db, Question, Category
class TriviaTestCase(unittest.TestCase):
"""This class represents the trivia test case"""
def setUp(self):
"""Define test variables and initiali... | [
"vijaybalu1989@gmail.com"
] | vijaybalu1989@gmail.com |
ff1f7ab5f78639ef2e3a0814d0360331c288f048 | 2d29197477e227070c07110183b31812f53c07a0 | /books/apps.py | 97ac2d91eab931ff613a714e85a82f6f15e90db3 | [] | no_license | manish2074/book_management | 8d6a5fb9487a194cb5eb61948b6b09b626289a25 | 13fd5de24cc25bc82c9cd7a79f082d10e9f3edea | refs/heads/master | 2021-09-10T06:00:17.355923 | 2020-03-30T04:34:55 | 2020-03-30T04:34:55 | 242,757,393 | 0 | 0 | null | 2021-09-08T01:48:07 | 2020-02-24T14:28:16 | JavaScript | UTF-8 | Python | false | false | 157 | py | from django.apps import AppConfig
class BooksConfig(AppConfig):
name = 'books'
def ready(self):
from books.signals import language_changed | [
"manish.kharel2074@gmail.com"
] | manish.kharel2074@gmail.com |
5c8711ec3d10513cade5507c7c98f752e3a04760 | 9b60c4cd95949db6771bcd5581b1207d06776cb0 | /mdadm/source/default.py | 0358f93b130e655301a5f87afc201a30bdbb1aed | [] | no_license | OldSchoolOnline/openelec-addons | 251e9112d825228d0362a5a67af3312f36db8f4e | 377f46a63f6ca9cdc284fb9571b901308676a4fa | refs/heads/master | 2020-06-01T18:33:37.340599 | 2013-04-05T15:19:34 | 2013-04-05T15:19:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,150 | py | ################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv)
#
# This Program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Gene... | [
"daniel.kabel@me.com"
] | daniel.kabel@me.com |
e1f076a8b40ac225debbdfe4c6812b58dabf08a9 | ef74d9ad851021bcb0ed12880e14269b6ed7f617 | /Sample/Doudizhu/Server/src/ZyGames.Doudizhu.HostServer/PyScript/Action/Action12001.py | 7d60a50f0c7331ca1c254a61ca9b33c5de93279d | [
"BSD-2-Clause-Views",
"MIT"
] | permissive | sunyuping/Scut | b5e5798e9b519941f0ac3a08a3263dc0f45beb47 | ec2ea35c0e4de1f2da49c50d14e119a4f17cd93a | refs/heads/master | 2020-12-25T23:19:26.597830 | 2013-11-16T07:50:01 | 2013-11-16T07:50:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,188 | py | import clr, sys
from action import *
from System import *
from mathUtils import MathUtils
clr.AddReference('ZyGames.Framework');
clr.AddReference('ZyGames.Framework.Common');
clr.AddReference('ZyGames.Framework.Game');
clr.AddReference('ZyGames.Doudizhu.Bll');
clr.AddReference('ZyGames.Doudizhu.Model');
clr.AddRefer... | [
"wzf_88@qq.com"
] | wzf_88@qq.com |
904780b13a2b9bff1a93d620fd8790a37652d91f | d822501d09895216da854f2db8227164775970bd | /Functions/palindrome.py | ff198055c64c23fc99c5310034c3c4b9e3b3a87c | [] | no_license | Jitendrap1702/Coding_Ninjas_Intro_to_Python | 8bf7418b53d9e4ab1146950d4fef46a51cc33157 | 44371c5595c7507de0a1b4c0e596664d34c026c4 | refs/heads/master | 2022-12-10T22:07:27.213614 | 2020-09-06T16:00:24 | 2020-09-06T16:00:24 | 293,270,812 | 1 | 1 | null | 2020-09-06T13:48:35 | 2020-09-06T12:19:30 | Python | UTF-8 | Python | false | false | 225 | py | def checkPalindrome(num):
k=str(num)
if k==k[::-1]:
return True
else:
return False
num = int(input())
isPalindrome = checkPalindrome(num)
if(isPalindrome):
print('true')
else:
print('false')
| [
"noreply@github.com"
] | Jitendrap1702.noreply@github.com |
3d35ce4bb4ccdf9aece71f129c8f1245dec4ba05 | e6787a3d92d3dd69cea480fef4ccf992cb46c8b1 | /numguess.py | 6cc2c998cba3fc81d997a08ce7578ba4c4cdb31e | [
"MIT"
] | permissive | JuHyeong-K/numguess-flow | bc3f7ec339645c4ad54c9dac6ab57a6790efb989 | ab6fdeda9a6dcc03f28d332098459e72143387f3 | refs/heads/main | 2023-02-22T21:40:28.775412 | 2021-01-29T05:42:54 | 2021-01-29T05:42:54 | 334,043,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | import random
num = random.randint(0, 50)
while True:
user_guess = int(input("Guess the number: "))
if user_guess == num:
print("Correct! Congraturation!")
break
else:
print("you are wrong! Try again!")
| [
"wngud4680@gmail.com"
] | wngud4680@gmail.com |
bf181f4074f25fc1a743940bbca6e1c67d5dd96d | 219e279c1607256f27c0f44ddbd8ed86bf88b48e | /lesson4/string_functions.py | 349bf118b9343352d81fb0cffc31dc701444145c | [] | no_license | PanBohdan/ITEA_Python_Basics | dfdaee4b2b1388a75e0b9b38a5394d1d91a8f6b5 | 41be881fd00c247e15855b22110f6e4fb8900356 | refs/heads/master | 2020-06-01T20:00:27.693189 | 2019-07-21T13:01:39 | 2019-07-21T13:01:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,996 | py | # Без использования методов строк, напишите реализацию таких методов строк:
# replace, split, find. Напишите функцию remove по индексу и по подстроке.
def find(inp_data, what_to_find):
index = 0
if what_to_find in inp_data:
c = what_to_find[0]
for i in inp_data:
if i == c:
... | [
"tru_panku@ukr.net"
] | tru_panku@ukr.net |
c7b9c6378a3dd842cabaa7d5fb31214631d710ee | c02b157399f2ede41abf5119e57f94bfe18c713d | /merc/__init__.py | d8fed445f0d9439793cf5d9c80b0de7600943748 | [
"MIT"
] | permissive | merc-devel/merc | b366befb6285af984c2da7eabdd1063f16e0414e | 15e010db2474b5d9f9720fc83983b03c95063a02 | refs/heads/master | 2021-01-18T17:15:33.553125 | 2014-11-08T03:02:30 | 2014-11-08T03:02:30 | 25,289,852 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | from merc import util
__version__ = util.get_version()
| [
"tony@rfw.name"
] | tony@rfw.name |
d90edc51fc306fd126b52ad7d183e14880a9e586 | ec985f74562c245c5c7b0772536c723df5d53b1f | /wordcount/views.py | c0bb1a7282b8583203f18619e35aab5c572d3901 | [] | no_license | joycezhao23/wordcount-project | b4212b2f482b23a9f16d59368a78c2a2a2194fa4 | 965ce988b75a65af1058e0ba9047781060e88317 | refs/heads/master | 2020-03-14T15:00:01.318324 | 2018-05-01T01:48:43 | 2018-05-01T01:48:43 | 131,666,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | from django.http import HttpResponse
from django.shortcuts import render
import operator
def home(request):
return render(request, 'home.html')
def about(request):
return render(request, 'about.html')
def count(request):
fulltext = request.GET['fulltext']
wordList = fulltext.split()
wordDict = ... | [
"xzhao@Xufeis-MacBook-Pro.local"
] | xzhao@Xufeis-MacBook-Pro.local |
33984d775374f698a16233b294ee3e505d447c22 | 75519d2a9bf55e2d9376ea08a36676948a8b232c | /ui/uikits/TextSteam.py | 222dfb2dcd7959a0cc728b523b9bf881ec8afbf0 | [
"MIT"
] | permissive | CGFanTuan/damgteam | 9c32d59cbd0ecb9d3acffd9b902b918c40797e14 | aec414f084f6ab6ec5897314390605aaa8380d62 | refs/heads/master | 2020-09-17T00:29:24.832648 | 2019-11-25T09:51:13 | 2019-11-25T09:51:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,118 | py | # -*- coding: utf-8 -*-
"""
Script Name: TextSteam.py
Author: Do Trinh/Jimmy - 3D artist.
Description:
"""
# -------------------------------------------------------------------------------------------------------------
from __future__ import absolute_import, unicode_literals
from PyQt5.QtCore ... | [
"dot@damgteam.com"
] | dot@damgteam.com |
5bc9f7cb725e608b584db5bb260968104795a451 | 8aefdf04c115c6c6ab64997576ced97d4727dd06 | /curation-api/src/users/migrations/0003_auto_20170809_0921.py | b1d063c42c10db300647e9e67f63a3b2095bfcd5 | [] | no_license | mohanj1919/django_app_test | a0d47bc98c604d81253c74488dcdbc2ccd039863 | 5d5bc4c1eecbf627d38260e4d314d8451d67a4f5 | refs/heads/master | 2021-05-08T06:01:21.712986 | 2017-10-11T12:12:07 | 2017-10-11T12:12:07 | 106,544,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-08-09 09:21
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0002_auto_20170703_1555'),
]
operations = [
migrations.AlterField(... | [
"mohan.jagabatthula@ggktech.com"
] | mohan.jagabatthula@ggktech.com |
20a27700d4d3cca86f523401878a5f6df4caa327 | 5a5b66513e6b8e77d49662392868452deafeeef3 | /reasoner/rl_agent/write_test_triplestore_1.py | 914a126cb3b9968a6f4464166069d7821e66759c | [] | no_license | broadinstitute/reasoner | e844c6dabbb9524e9b060b0f48095ecb628498c8 | f78fffb771c482bd65d14814bff39e85b4cbac17 | refs/heads/master | 2021-06-06T23:50:36.183081 | 2020-06-19T17:31:06 | 2020-06-19T17:31:06 | 111,457,986 | 5 | 1 | null | 2020-06-19T17:31:07 | 2017-11-20T20:12:42 | Python | UTF-8 | Python | false | false | 2,140 | py | import os
import csv
import re
import numpy as np
from reasoner.knowledge_graph.KnowledgeGraph import KnowledgeGraph
np.random.seed(439572)
def get_preferred_label(labels):
if 'Drug' in labels:
return('Drug')
elif 'Disease' in labels:
return('Disease')
else:
return("ChebiTerm")
o... | [
"mwawer@broadinstitute.org"
] | mwawer@broadinstitute.org |
0cb0301d89aba7935aed0f12f790f27edd0c395d | 6afa8213eb2f583ce3d31d0b2f86adf783694c17 | /dagsage.py | 1a0b907eade51ea9ab242247c4b4e8be1da895b5 | [] | no_license | DLwbm123/GraphEnas | cd2e5523d8a67ac04b2671540affc9d45ae58915 | cc8c0913832a33f7e730b1e7d0709300b8e7ac65 | refs/heads/master | 2022-01-07T16:30:06.684908 | 2019-08-11T20:53:05 | 2019-08-11T20:53:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,837 | py |
import torch
import torch.nn as nn
import torch.nn.functional as F
from fuzzy_relu import fuzzy_relu
ATTENTION_ITERATIONS = 3
class DagSage(nn.Module):
"""
A graphsage inspired convolution on a directional acyclic graph
"""
def __init__(self, input_dim, output_dim, representation_size, attention_ite... | [
"knaan.harpaz@gmail.com"
] | knaan.harpaz@gmail.com |
96874c2a3103ac1f32ede6d5e220bb4334df45cb | f2a3c3800b8dc9dbf6548bf17f7847b6435ef3bc | /test/bridge_init.py | 7a67bd362458b88bdfb7ec99735c5ece8a7c38b0 | [
"BSD-3-Clause"
] | permissive | slongfield/pyfmt | f69f6cb3d5eae283b86c055dd813585e5d225e78 | ea85ff4c361f54bcfc91ede46f88de49eb5f92e7 | refs/heads/master | 2022-03-06T02:39:36.556939 | 2022-02-22T01:26:16 | 2022-02-22T01:26:16 | 105,104,916 | 74 | 3 | BSD-3-Clause | 2022-02-22T01:26:17 | 2017-09-28T05:13:48 | Go | UTF-8 | Python | false | false | 883 | py | import os
from _bridge import ffi
lib = ffi.dlopen(os.path.join(os.path.dirname(__file__), "libbridge.so"))
def FormatOneInt(fmt, a):
return ffi.string(lib.FormatOneInt(fmt, a))
def FormatOneFloat(fmt, a):
return ffi.string(lib.FormatOneFloat(fmt, a))
def FormatOneDouble(fmt, a):
return ffi.string(li... | [
"stephen.longfield@gmail.com"
] | stephen.longfield@gmail.com |
c77a177a70bdda413b7873d59fb732ca95df4c26 | 767318c4ddf2713a8a035aa3bf68cd8260409aa0 | /travellow/migrations/0001_initial.py | b7e329a337e095194ed93a271f0ab43896b0f234 | [] | no_license | sag-coder/travelbooking | 704573b145ca04587bbaf2415f4bbdb6ad50b26f | dfc482ca01d1be324aba900075b2a64dc2fd1d88 | refs/heads/master | 2023-06-11T23:22:44.114545 | 2021-07-10T23:47:37 | 2021-07-10T23:47:37 | 384,562,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | # Generated by Django 3.2.3 on 2021-05-25 14:57
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Destination',
fields=[
('id', models.BigAut... | [
"sagar@sagars-MacBook-Pro.local"
] | sagar@sagars-MacBook-Pro.local |
e2953a819236184ccc205f4be1d4e16384d5849d | 6725e264bbeaa56e7da830d6f13f60d7aa2607a3 | /main.py | 31ee3e2ef38ffd98c318427187043862ee6f737b | [] | no_license | nixiaocang/uploadapp | 5403d1ef4b24088c4e16dafd4762764458685758 | 24587d7fe3833eed6ce83d418b20575eace13bb7 | refs/heads/master | 2021-01-17T11:56:35.625505 | 2017-03-06T09:12:58 | 2017-03-06T09:12:58 | 84,052,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,849 | py | #!/usr/bin/env python
#coding=utf-8
import wx
from login import LoginHelper
from upload import UploadHelper
from add import Addhelper
class MyFrame(wx.Frame):
def __init__(self, parent=None, title=u'BDP文件传输工具 v0.0.1'):
wx.Frame.__init__(self, parent, -1, title=title)
self.panel = wx.Panel(self,... | [
"jiaoguofu@haizhi.com"
] | jiaoguofu@haizhi.com |
c3b3a5014f07cb69548dc3237c5d9b5300052ae6 | 35bb7981230e8a0500a64a07665542cb889064cb | /mysite/polls/models.py | d2d7a7a86901799a3a9db0fb620fa86e2b0ffb90 | [] | no_license | shineping/question_choice_vote | 53019cf630556d2968e9d1ef990397994b355e81 | 57f2aa36bd0a44b40ee5fe9e306fcc1db9c3ee56 | refs/heads/master | 2020-04-12T22:23:50.783893 | 2018-12-22T06:49:04 | 2018-12-22T06:49:04 | 162,788,626 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | from django.db import models
# Create your models here.
from django.db import models
from django.utils import timezone
import datetime
class Question(models.Model):
question_text = models.CharField(max_length=200)
pub_date = models.DateTimeField('date published')
def __str__(self):
return self.ques... | [
"819058449@qq.com"
] | 819058449@qq.com |
92f52ac25e6d526b6ee75266d8e6e3dcecf56332 | bd8136c3ec76ab2d85db9be6cf8ecbd7db36f325 | /split_train_test.py | a83a9f2ecc320ab556826689f75f50f4880e744d | [] | no_license | ViewFuture/Fs-net | 52b5e0510bc137e11adac56eb4511637da741dda | e8e41b47ea00e4d1029d82133caef992f73ba255 | refs/heads/master | 2022-12-01T13:20:05.827782 | 2020-08-10T02:33:34 | 2020-08-10T02:33:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | import random
f1 = open("NIMS.arff","r")
f_train = open("NIMS_train.arff","w")
f_test = open("NIMS_test.arff","w")
lines = f1.readlines()
for i in range(28,len(lines)):
x = random.randint(0,20)
line = lines[i]
if x == 0:
f_test.write(line)
else:
f_train.write(line)
f1.close()
f_train.close()
f_test.close() | [
"18813058598@163.com"
] | 18813058598@163.com |
15758ecc7348e2cb18036fa725588ad5e88e4386 | 5829f36c3d24a8ba3d814288ee45f4ee34e52f74 | /week_4/day_3/daily_challenge/daily_challenge.py | 2c4a45fddf10118c722b1ba29cae96a213b22f9d | [] | no_license | TyranSchmidt/developers_institute | 3c71441e55b9d525f6375c1a66ee67110fee195a | 9cf2b7bcc2a946267c554e3f9763668ea661f6d4 | refs/heads/master | 2021-04-21T11:05:21.085274 | 2020-06-18T14:15:54 | 2020-06-18T14:15:54 | 249,774,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | user_input = input("Do you want to encrypt or decrypt (text-sensitive)?: ")
user_text = input("Please enter the text: ")
enc_text = ""
dec_text = ""
for i in range(len(user_text)):
character = user_text[i]
if user_input == "encrypt":
enc_text += chr(ord(character) + 3)
elif user_input == "decrypt":
dec_text +... | [
"tyransch@gmail.com"
] | tyransch@gmail.com |
0dca24b9c6f29b16158f770d50c5117e462afa62 | 568b99142e5a9a748ad86d81b84efe4fc97a7228 | /untitled1.py | 0fb9b1bf83295d4bb749879857c8c0c9d4815b14 | [] | no_license | WillAlex2017/-offerPython- | 75814a84d602c8e1ebc914a089ab988d60accdc1 | 0ea94c1bda038060e44f7088d857259b147563d6 | refs/heads/master | 2020-04-05T17:56:40.602129 | 2018-11-11T13:27:53 | 2018-11-11T13:27:53 | 157,082,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Apr 25 15:43:17 2018
@author: willalex
"""
class Solution:
def GetLeastNumbers_Solution(self, tinput, k):
# write code here
if k > len(tinput):
return []
else:
return sorted(set(tinput))[:k] | [
"willalex2016@126.com"
] | willalex2016@126.com |
4f96b620da95552342807310090b498dadae38b1 | 9975aae590a527597627715975e2b09b59a06476 | /lab6/lab6_cp2.py | 3a019f1aaeec7247efec14d132724c3f6bd7c4e2 | [] | no_license | LuHaofan/ECE437 | 0ea636cb17711b53abfc5af0f769b656f59ddcd9 | 85a814ffe0accdcfd02e83dfd7c2803be7b37ab3 | refs/heads/master | 2021-01-06T19:41:58.272961 | 2020-05-13T15:48:14 | 2020-05-13T15:48:14 | 241,496,709 | 0 | 1 | null | 2020-04-06T20:54:45 | 2020-02-19T00:21:06 | Verilog | UTF-8 | Python | false | false | 11,385 | py | # NOTE 1
# If your power supply goes into an error state (i.e., the word
# error is printed on the front of the device), use this command
# power_supply.write("*CLS")
# to clear the error so that you can rerun your code. The supply
# typically beeps after an error has occured.
import visa
import numpy as np
import mat... | [
"haofan.17@intl.zju.edu.cn"
] | haofan.17@intl.zju.edu.cn |
8ea3b5fe878c8992db43d66125d44a9c5a56b3e4 | c4755fc30069506249cea50240a42f9765c9a87d | /13_dqn_keras_type_c/05_0_Keras_type_c_frozen_lake_dueling_GREEN.py | b32bc6c23f081ba316f5a235a07cd0aa0f85d058 | [] | no_license | RichardMinsooGo-RL-Single-agent/2_frozen_lake | 32e5ea206b2d7d20bfc226748f1e30fe54def378 | 680810a9ff162cdce646d08bb016cc0661db397f | refs/heads/master | 2022-12-14T17:32:50.642594 | 2020-09-07T05:16:30 | 2020-09-07T05:16:30 | 277,676,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,601 | py | import random
import numpy as np
import time, datetime
from collections import deque
import pylab
import sys
import pickle
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
from keras.layers import *
from keras.models import Sequential,Model
import keras
from keras import backend as K_back
from keras.layers.convolutio... | [
"noreply@github.com"
] | RichardMinsooGo-RL-Single-agent.noreply@github.com |
1434e505ed21fd67e0d5b956ee3d0c00286409d9 | c6125c2d971011a0b9ff602192bb73dc76f46d0a | /music_analysis/neural_networks/cnn.py | 0d316547b52642584f6aecbf8bde43a53bdc227e | [] | no_license | knsushma/CS760-ML-Project | e66127c212a53e17df0189e21f47cb09d72dfe2c | 4aa6071d8a2c8035e674107c0c79a4a5130f2efc | refs/heads/master | 2020-05-01T14:46:53.365573 | 2019-05-06T20:30:51 | 2019-05-06T20:30:51 | 177,529,467 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,186 | py | import tensorflow.keras as keras
from tensorflow.keras.models import Model
from tensorflow.keras.layers import Input, Conv2D, MaxPooling2D, Activation, BatchNormalization, Dropout, Dense, Flatten, GlobalAveragePooling2D, concatenate, ELU, ReLU
from tensorflow.keras.regularizers import l2
from tensorflow.keras.optimizer... | [
"mcrepea@gmail.com"
] | mcrepea@gmail.com |
2e46169ee7920f10d3f35283121fc25deec3598f | 7d82a28dd3b30f147ce0469f8245ee73f5ae15f1 | /Oop/practiseseconf.py | 639a89a1d280982cad70919c93bb51278eb93ab0 | [] | no_license | Shreejan-git/allpy | e9d8530606be18fecb710cb759da9ae03b1e0a7a | f245c34b371090bdb530c25b77337882a3acacf6 | refs/heads/master | 2023-04-20T22:24:26.688556 | 2021-05-12T04:33:38 | 2021-05-12T04:33:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | from abc import ABC, abstractmethod
class Shape(ABC):
@abstractmethod
def printacom(self):
return True
class Rectangle(Shape):
# def printacom(self):
# print("Hahaha")
pass
a=Rectangle()
a.printacom()
| [
"hustlingshreejan@gmail.com"
] | hustlingshreejan@gmail.com |
9cca188f479ea7db11a4f564b341db58ed2c0248 | 5c11238d2798aaccdabfd09102a5839b23619c39 | /game_object.py | ace9b4f9e9c2f6abc2795cc975ce7e27e680e6e8 | [] | no_license | ko-marinov/2048 | e17a5724c45c60b695413c6a97923b7db1d9de6b | e5bdb641064f2532a15fca6d753d1e3ace8de2c9 | refs/heads/master | 2022-04-18T19:19:23.941842 | 2020-04-19T07:17:14 | 2020-04-19T07:17:14 | 255,260,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,522 | py | from vec2 import Vec2
game_objects = []
class GameObject:
next_proc_id = 0
def __init__(self, pos=Vec2(0, 0), parent=None):
self.parent = parent
self._pos = Vec2(pos)
self.processes = {}
self.register()
def destroy(self):
game_objects.remove(self)
def regist... | [
"marinov.kohctahtih@gmail.com"
] | marinov.kohctahtih@gmail.com |
323ec850c34bcc51687b6833ac475f05d6a343e0 | 260bc967aa27a6cfa57e8729bf6fa51322e774ec | /mysite/polls/views.py | d3f1eab59a200c5569b82021815b4291c3b2555a | [] | no_license | mawrobel/django-polls | 136ea97ebf0bb858078f076afd0dbe4a9db3fa3d | 4e9314a8edde9fdc114a635952009d855eb9b027 | refs/heads/master | 2022-01-17T06:07:02.740872 | 2019-07-22T19:49:55 | 2019-07-22T19:49:55 | 198,291,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,155 | py | from django.http import HttpResponseRedirect
from django.shortcuts import get_object_or_404, render
from django.urls import reverse
from django.views import generic
from .models import Choice, Question
class IndexView(generic.ListView):
template_name = 'polls/index.html'
context_object_name = 'latest_questio... | [
"mik4llpl@gmail.com"
] | mik4llpl@gmail.com |
f2f26b0c7d5ec008c4e0789cdad918e0c79ec68d | ddaf98c681ec91ed0150b34f46104aac3ff08be9 | /sum.py | 33164241ddabdda23b89ff28979ba7f28a5f2c61 | [
"MIT"
] | permissive | napman/easy_bench | 50afc13f8e5b8cb2e0fec00f543d38d140d1e610 | 50b948ac67b692845130a6bb8b3a3d54c49d23e9 | refs/heads/master | 2020-05-20T12:24:29.668512 | 2015-09-22T02:03:41 | 2015-09-22T02:03:41 | 42,829,736 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | import sys
from bench import *
for key, value in sum_bench().items():
print key, value
| [
"kotaro.nakayama@gmail.com"
] | kotaro.nakayama@gmail.com |
59919a9d9900991467fcaabb4cc8e2acaff0e9e0 | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/aphotomanager/testcase/firstcases/testcase5_028.py | 6856a16cc6fb6a518aa1c467766e72d1e3596a1c | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,391 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
8ef50d9f03de4d23383e7f97a3e35f396daa2066 | 26c331317a8ccfc8404af8a4750d2b1e7cf8388b | /data_to_pomdp.py | b0b3c5b9888aee0fd0a101aa60fb83655e1b484f | [] | no_license | cfoster0/tangle_simulator | bc9e8f37536483ac4cfd2281095de861241756dd | f6d250d2b93d73d7b610118a15d303621fbc0344 | refs/heads/master | 2021-08-24T15:28:09.624960 | 2017-12-10T07:30:51 | 2017-12-10T07:30:51 | 113,731,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,573 | py | from collections import Counter
import itertools
"""
discount: 1.0
values: [ reward, cost ]
states: list of strings
actions: adopt build
observations: list of strings
start: <name of starting state>
T: adopt : * : <name of starting state> 1.0
// for all the start-end combinations we see in the data:
T: build : <st... | [
"charlesfoster@DN0a235032.SUNet"
] | charlesfoster@DN0a235032.SUNet |
7ded1099f3ff3fd1d8e319d35e46977d4a7f120d | 78e36d40259e207c0fa2d7837188e744871f93dd | /Incomeexpenseapi/wsgi.py | 34b3afabe3f3cedc6f47ba0ddeed205feae93837 | [] | no_license | easylord/Auth | c3f006aeea82ff9807e6805abc3ffa699f83b2d1 | 66da243058d5e294d848c23fbdb7766dbe930333 | refs/heads/main | 2023-01-01T13:54:45.589510 | 2020-10-19T05:37:05 | 2020-10-19T05:37:05 | 305,273,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | """
WSGI config for Incomeexpenseapi project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJA... | [
"yusufisrael007@gmail.com"
] | yusufisrael007@gmail.com |
b15a144177a3426684ef389cecaaf365fc24dcb7 | f54070cd3048a3645cb25f301592a904d387a1c9 | /python_prgrams/testpython/file7.py | d8e98c05bbd14af3e9bf261e2d23c7dc207b2a22 | [] | no_license | mak705/Python_interview | 02bded60417f1e6e2d81e1f6cde6961d95da2a8e | aff2d6018fd539dbcde9e3a6b3f8a69167ffca0d | refs/heads/master | 2020-03-22T21:03:34.018919 | 2019-11-15T08:51:34 | 2019-11-15T08:51:34 | 140,653,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | ##counting lines in a file
fhand = open('mul.py')
for line in fhand:
line = line.rstrip()
if not line.startswith('#From'):
print line
| [
"mak705@gmail.com"
] | mak705@gmail.com |
63d97a4042ea1c94875bb42957b33061db5ac700 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnreggio.py | 32b325c4e4eef33665e12e96b01b39fc616f374c | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 216 | py | ii = [('ClarGE2.py', 1), ('RoscTTI3.py', 1), ('RoscTTI2.py', 2), ('MedwTAI.py', 1), ('HogaGMM.py', 3), ('MartHRW.py', 1), ('WestJIT.py', 1), ('RoscTTI.py', 1), ('BrewDTO.py', 2), ('ClarGE3.py', 2), ('RogeSIP.py', 1)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
351fc1cd117645fd8bb4225b82e2026437414d89 | 5bb5a8c194b7eb9c4e40295b240d8415e6e6b2f2 | /omega_trading/game/bet.py | 815d4a212691d2653f8900bc13d3d79bfde2e7c7 | [] | no_license | crnorthc/omega-trading | 4e5463999ec819e59ee831cc9ae50bd1e069c189 | 74cdd4904695c8bfc4d34773f64a7e32627d922c | refs/heads/main | 2023-07-15T18:55:22.920810 | 2021-08-24T23:00:13 | 2021-08-24T23:00:13 | 341,263,034 | 1 | 0 | null | 2021-08-24T17:53:54 | 2021-02-22T16:25:26 | JavaScript | UTF-8 | Python | false | false | 1,553 | py | from bip_utils import Bip39SeedGenerator, Bip44, Bip44Coins
from .TopSecret import mnemonic
from web3 import Web3
# Binance Chain API - https://github.com/sammchardy/python-binance-chain
def get_address(id, coin):
seed_bytes = Bip39SeedGenerator(mnemonic).Generate()
if coin == 'BNB':
coin = Bip44Coin... | [
"crnorthc@eckerd.edu"
] | crnorthc@eckerd.edu |
7c3d2e7c79c1ed82a4df216081443454e1fd6e0d | d9f66c812c7287187563a15d1dc72e08cf1eaa91 | /Wrappers/java/OpenNI.jni/CreateMethods.py | ff11b3935d05ec820766775a39aef65358db8f70 | [
"Apache-2.0",
"IJG",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Delicode/OpenNI2 | 9c722138a9e45a887dda93b8522a523c59f3376d | 99dd4e7d9f3c08a8e31b9dc9c0fd4d7448bc6ea0 | refs/heads/master | 2021-06-06T00:19:11.533537 | 2021-04-28T08:33:33 | 2021-04-28T08:33:33 | 362,108,942 | 0 | 0 | Apache-2.0 | 2021-04-27T12:44:15 | 2021-04-27T12:44:14 | null | UTF-8 | Python | false | false | 2,398 | py | #/****************************************************************************
#* *
#* OpenNI 1.x Alpha *
#* Copyright (C) 2012 PrimeSense Ltd. *
#* ... | [
"eddie.cohen@primesense.com"
] | eddie.cohen@primesense.com |
c2a0e1d31e6f2d5a7b75e235e08017346dae90ec | 89d203e0c8e4438d8e913a1fff48578a3ac38c78 | /components/node.py | 6700aaffd90cea581241962fd7355fd670f5e197 | [] | no_license | jdvin/spiking-nn | a334516448ffe7750b19996eb77875d3af7b5f7f | fd750ef3afd983ed093ff02117b1c7a41e1fc51d | refs/heads/main | 2023-07-04T12:37:12.241039 | 2021-08-06T13:34:53 | 2021-08-06T13:34:53 | 375,919,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,065 | py | class Node():
def __init__(self, layer, response_function, threshold_function, spiking_method,
base_threshold, abs_refrac, rel_refrac):
self.layer = layer
self.synapses = []
self.threshold = base_threshold
self.potential = 0
self.last_fired = N... | [
"josh.daniel.vinson@gmail.com"
] | josh.daniel.vinson@gmail.com |
19d1b3c6e44ebc76daa3e1357565e60ada33aa77 | 59b208059eb46daa3c6f68acf78beb4184ebb196 | /Method1/Sample_Training_unsupervised/Metrics.py | 80e73cf0f03beac1e8122a179c899e7d59254d70 | [
"MIT"
] | permissive | PhysicsOfAI/PhysicsAI4Imaging | 29df0162c9f1609379cebf93b49f8f5b98601d04 | 25d0ec085cf4a1c7c2b7c51c530efc4d185f2a0c | refs/heads/master | 2022-07-02T06:51:59.388188 | 2020-05-11T01:00:11 | 2020-05-11T01:00:11 | 257,477,739 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,521 | py | import numpy as np
import skimage.measure as sm
def psnr(img, ref, axes=(0, 1), max_intensity=None):
""" Compute the peak signal to noise ratio (psnr)
:param img: input image (np.array)
:param ref: reference image (np.array)
:param axes: tuple of axes over which the psnr is computed
:param max_int... | [
"tichiun@gmail.com"
] | tichiun@gmail.com |
67eabf0ae2a7a48804060b2815b630e26deab170 | b0c811e00137129e725499c99ef7d4d0c7282a60 | /ictivity/wsgi.py | 409630f0d94274cb4477ac8a068bc7906fcd57cd | [] | no_license | mengcz13/Ictivity | 8a3b01e05bb41353dad70d5572b646e475861441 | 850b8ca477a456ee3edf51f7f2ede4d5841f3ff7 | refs/heads/master | 2021-01-21T15:04:46.460606 | 2016-06-24T15:00:40 | 2016-06-24T15:00:40 | 59,628,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
WSGI config for ictivity project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETT... | [
"mengcz13@163.com"
] | mengcz13@163.com |
a57cd9343ff71474af55efd8ce017714a82041eb | fcff90f4f8af055d26715a8f7a997dc4d4f4091d | /Phrasism/urls.py | d7a8dee64ec28ca682a041714b71bbc77bb6ef24 | [] | no_license | weichinhsu/phrasism-backend | 644a75fa276c37c3ca64ac4b04a8642a5d32deb8 | 675dc8fd14e38ae26453358357ebfe8e230e2234 | refs/heads/main | 2023-04-15T21:21:48.468205 | 2021-04-21T08:53:30 | 2021-04-21T08:53:30 | 360,094,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 949 | py | """Phrasism URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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')
Class-base... | [
"winnie860403@gmail.com"
] | winnie860403@gmail.com |
a8be7e35f1526e8eda93504378fb00923e9b8a2d | a0072256bee8821b3fe63dfca6a6574f864cc899 | /app/PyBotEngine/agreeabl.py | 0183c7f5525963c539342c869a0713163165e1c6 | [] | no_license | sinsinpub/sin2gae | 8a81e2c0e7f101119207f58394dee908deb2e2c2 | 2a7f2be0e73611289520127bf888ab8237047f9c | refs/heads/master | 2020-06-01T07:29:05.003964 | 2010-12-11T23:05:49 | 2010-12-11T23:05:49 | 36,711,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,534 | py | # This Python file uses the following encoding: utf-8
"""
This is agreeabl, a friendly little twitter bot
"""
import os
import urllib
import urllib2
import random
import datetime
import logging
import re
import types
import feedparser
import wsgiref.handlers
from dateutil.parser import parse
from google.appengine.ex... | [
"sinsinpub@251f673c-c833-11de-8672-e51b9359e43c"
] | sinsinpub@251f673c-c833-11de-8672-e51b9359e43c |
a8a973fe9ce85b93f99827d4cd97e42e85c8ddc4 | 455c79b1a536bdf17ab54bbe39d3215f05184d57 | /app/movies/utils.py | f0e01e6e5c52cbb7bdd750fda56ff96552f0765a | [] | no_license | shivamsingh14/movie-ticketing | b2f8eeffe1868648edb22ea95f897158fd905568 | 89f27dc280517bad171161805450280c10ab19ca | refs/heads/master | 2020-06-04T08:14:18.858185 | 2019-06-14T12:41:14 | 2019-06-14T12:41:14 | 191,940,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | from app.movies.models import Auditorium
from app.movies.models import Slot
class FreeSlotUtil():
def get_free_slots(self, audi, start_date, end_date):
audi_available_slot = range(audi.opening_time, (audi.closing_time-2), 3)
audi_booked_slots = Slot.objects.filter(
audi=audi,
... | [
"shivamsingh14111997@gmail.com"
] | shivamsingh14111997@gmail.com |
cf231172191fbe06dde2ae86a1570a03ae34181f | e75846f5d88c4c7ea4417735e354a970f882d7e6 | /backend/app.py | d014f61a7ec2307a3ba485650800f7b831cc1fa9 | [] | no_license | somprasongd-forks/Pybott-Covid-Selftracking | 5370b8ffc7e192da73c62be4e29ba940e71bb7a7 | 7ffd97f4a9aaf5fa1099c29fe906f4a12c025c2b | refs/heads/master | 2022-06-27T15:26:48.679136 | 2020-05-09T11:30:47 | 2020-05-09T11:30:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,135 | py | import random
import time
from flask import Flask, abort, request
from flask_cors import CORS
from linebot import LineBotApi, WebhookHandler
from linebot.exceptions import InvalidSignatureError
from linebot.models import *
from BasicFunction.CaseLocationApi import get_location_reccommend_data
from BasicFunction.COVID... | [
"Puttipong.lims@gmail.com"
] | Puttipong.lims@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.