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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a3717cc3e36cf3503192398c17a60fe57613198c | e651496a8acb437be45130fdaf69eb73055c254b | /classification/perceptron_pacman.py | 79e3179f3af18e9dca62ea7cff1b7d4ba1d92ae1 | [] | no_license | ntp28459hteam/INT3401_9 | 40390dd9d4ff6e872c24ac07f1949e1327b87eb1 | 32b239771d45cb5cb5a7d6a53c456a26e85945ff | refs/heads/master | 2022-03-09T05:09:02.113812 | 2019-11-19T17:48:57 | 2019-11-19T17:48:57 | 208,970,229 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,571 | py | # perceptron_pacman.py
# --------------------
# Licensing Information: You are free to use or extend these projects for
# educational purposes provided that (1) you do not distribute or publish
# solutions, (2) you retain this notice, and (3) you provide clear
# attribution to UC Berkeley, including a link to http://a... | [
"ntp28459hteam@gmail.com"
] | ntp28459hteam@gmail.com |
044ef52da86b27d924c896886eba492a10f16d0d | c843ff5e1471dfac4e470de88784966473057079 | /keywords/ruby_keyword.py | d0214870befd0a44a5062b2b405dc6f809d51194 | [] | no_license | tkyaji/CocosRubyEditor | a48a3a3a504d0f359757589bc9c302bc32fe030b | 4fbb5674db5ad64bd49c6f1181fe7a3519236b64 | refs/heads/master | 2021-01-10T18:41:06.673502 | 2015-03-18T04:46:49 | 2015-03-18T04:46:49 | 32,151,393 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,382 | py | import ruby_cocos2dx_3d_auto_keyword as cocos2dx_3d_auto
import ruby_cocos2dx_audioengine_auto_keyword as cocos2dx_audioengine_auto
import ruby_cocos2dx_auto_keyword as cocos2dx_auto
import ruby_cocos2dx_experimental_auto_keyword as cocos2dx_experimental_auto
import ruby_cocos2dx_experimental_video_auto_keyword as coco... | [
"tkyaji@gmail.com"
] | tkyaji@gmail.com |
5ef08391fa1fa480f963802b9e34f6077002e815 | d12b59b33df5c467abf081d48e043dac70cc5a9c | /ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/interface_ddc6ed85db77afb3c40ee4824b274478.py | 7eb7f7341abf23ea8aaaf6c991a7897c8183a845 | [
"MIT"
] | permissive | ajbalogh/ixnetwork_restpy | 59ce20b88c1f99f95a980ff01106bda8f4ad5a0f | 60a107e84fd8c1a32e24500259738e11740069fd | refs/heads/master | 2023-04-02T22:01:51.088515 | 2021-04-09T18:39:28 | 2021-04-09T18:39:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,852 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify,... | [
"andy.balogh@keysight.com"
] | andy.balogh@keysight.com |
0418b9c1cbf29490405340e1e46c8ae785ffc414 | d11a49197ef92d23d5d77253b224a54380cbbe8d | /testapp.py | ccff800ae00094775a2a4e481a2de374c65bddc1 | [] | no_license | sockheadrps/BaxterAndFriends | 9bf8a7b8007fa34e28f8ddac0022be9efae09dda | 7f0d153d46d223a0028863d55deec43900d2d8e7 | refs/heads/master | 2022-08-04T22:35:20.267632 | 2020-05-31T02:00:23 | 2020-05-31T02:00:23 | 266,780,423 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,507 | py | import hug
import falcon
def look_for_current_request():
next_up = None
with open('songRequests.txt', 'r+') as fin:
data = fin.readlines()
if data:
next_up = data[0]
if next_up is not "\n" and next_up is not None:
user = next_up[:next_up.index(":")].replace("{", "")
... | [
"r.p.skiles@gmail.com"
] | r.p.skiles@gmail.com |
52f3d10940eb5f5efd8b9faf107b3cfc0cebc8c1 | 8c836f4422d28b289d2e2e05cecbb3ad283fc32b | /matrix_generator.py | 8883efc42c92e51af6c081dfe3bee9a92871e251 | [] | no_license | J3FALL/MatrixEvolution | 75588bdd00ac4f242847f55c69f5808b6e69330d | 3a91708fda3c6b070ba3bac646af8e6cfd983cae | refs/heads/master | 2023-07-21T18:14:38.612502 | 2020-04-16T00:28:45 | 2020-04-16T00:28:45 | 219,976,301 | 1 | 0 | null | 2023-07-06T21:49:52 | 2019-11-06T10:59:48 | Python | UTF-8 | Python | false | false | 2,446 | py | from functools import partial
from math import (
cos, sin,
radians)
import numpy as np
from scipy.optimize import (
minimize)
def initial_diag_matrix(matrix_size, range_value):
diag_vector = initial_diagonal_scaled(size=matrix_size, range_value=range_value)
matrix = np.diag(diag_vector)
retu... | [
"crisp.coad@gmail.com"
] | crisp.coad@gmail.com |
cf231e55c68e90e0cf6334ab13286bd140164514 | 7af496ea625b6fe21d71d980b744857bc53495bc | /Curso/ex039.py | 80a38c99007f804dd490cf98ddc0d4c5b48bdd6e | [] | no_license | DiogoM14/Python-Exercicios | 52fad65f271f8846f04d9317a29322a276009aef | 7ecf7615a649f229e54032ffaf419504a4d9c12f | refs/heads/main | 2023-02-03T08:12:25.454313 | 2020-12-17T23:40:31 | 2020-12-17T23:40:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | py | idade = int(input('Qual é a tua idade? '))
if idade == '18':
print('Está na hora de ires à inspeção!')
elif idade < 18:
n = 18 - idade
print('Faltam {} anos para ires para a inspeção!'.format(n))
else:
n2 = idade - 18
print('Já foste à inspeção há {} anos!'.format(n2))
| [
"diogomartins200214@gmail.com"
] | diogomartins200214@gmail.com |
f4eb8b1786097761faab44c8b7108bc2429527f2 | afa24f666ecbecd25d74baefe014127970e1e3c5 | /VideoUtils.py | 8eaaff3927e8302426296416e668b9d958007c64 | [] | no_license | shashank879/AI | 9a4edf80d53d0fc21b74eb4a6a75f9f15477d414 | a27868154194a84d655093440695a5389925bacf | refs/heads/master | 2020-09-21T04:19:39.583576 | 2016-12-15T14:35:21 | 2016-12-15T14:35:21 | 67,039,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,700 | py | import cv2
import re
from datetime import datetime
def time_in_range(start, end, curr):
"""Return true if curr is in the range [start, end]"""
if start <= end:
return start <= curr <= end
else:
return False
def mm_ss_exclusions(file_path):
"""Exclude ranges annotated in a file. """
... | [
"shashank.879@gmail.com"
] | shashank.879@gmail.com |
1a0673132ce3a3857c1937ecfc17012d78b7f11d | 6e840a384968c7711479637c1d9451ce75767cc5 | /music.py | f7e07d0602c8a5599a9ecdda48eb82d86fce1e88 | [] | no_license | mariafbarrera/music-recommender-final-project | 6ac751d96dcbee5d1e793eb6b6ba3d154d17a0c7 | efc5241d24c57686e6aff65cc506db31ad1fa91e | refs/heads/master | 2022-11-23T12:54:01.892203 | 2020-07-28T19:47:40 | 2020-07-28T19:47:40 | 283,001,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,954 | py | # MVP: Music Recommender
print(" _ _ _ _ _ ___ ___ _ ______ _ ")
print("| | | | | | | | | | | | | \/ | (_) | ___ \ ... | [
"mfbarrerab2@gmail.com"
] | mfbarrerab2@gmail.com |
088161084dc2576df5bc96e4eb1d6578c97c42f5 | 0f7127951bbaf9a7559365d13f562f7af8f1bba1 | /Python/5kyu/Find the smallest.py | 41f2f67a16f4fa96c6529b6bc7ac7fb1c180f3e9 | [
"BSD-2-Clause"
] | permissive | SamiaAitAyadGoncalves/codewars-1 | c5548640341b4453bca2bdf53193960b4026dc78 | 915149b052dc5ec7d2276f1a235076028a3ba997 | refs/heads/master | 2020-07-27T02:38:29.497964 | 2019-08-19T10:52:06 | 2019-08-19T10:52:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,033 | py | # https://www.codewars.com/kata/573992c724fc289553000e95
#
# You have a positive number n consisting of digits. You can do at most one
# operation: Choosing the index of a digit in the number, remove this digit
# at that index and insert it back to another place in the number.
#
# Doing so, find the smallest number you... | [
"noreply@github.com"
] | SamiaAitAyadGoncalves.noreply@github.com |
b08074bd44154944cfb6114db650296021f40ab8 | ec50e0f401cbcb0eddadf38d576f434688df1be6 | /loss/models.py | 98d8b41d6ab18803134814bb785f67561c1cbb6b | [] | no_license | ayush180/djangoProject2 | ecbd1d74843be87b56e6bac457797c51f9e2ca9a | 6cdc58592b6e8ee517a2f095557e16dfbce7e41f | refs/heads/master | 2023-06-20T11:10:31.028099 | 2021-07-17T11:20:42 | 2021-07-17T11:20:42 | 381,335,957 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | from django.db import models
from product.models import product
from datetime import datetime
from django.urls import reverse
# Create your models here.
class loss(models.Model):
date = models.DateField(default=datetime.utcnow)
product = models.ForeignKey(product, on_delete=models.CASCADE, related_name="loss")
... | [
"ayush180670107041@gmail.com"
] | ayush180670107041@gmail.com |
cab72ee5c66639fea08c549b6600c6b7dc735786 | a8c6661e002eabd497e688cbbdaad197b7e9ba9f | /Embedded/Main/models.py | 74866d725c5d047aef60b897cb95ee49f05cc96e | [] | no_license | jyahn0623/Embedded-Lab-s-site | 35418ab5e987bdcd51c9400269c6957a54c5f812 | 58a025c17021e41264ac39123b1375e1b4708edf | refs/heads/master | 2020-12-04T17:55:41.505816 | 2019-07-02T00:34:04 | 2019-07-02T00:34:04 | 231,859,244 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,421 | py | from django.db import models
from django.contrib.auth.models import User
from django.db.models.signals import post_save
from django.dispatch import receiver
# Create your models here.
def save_pic_user(instance, name):
return "{0}/{1}".format("Profile", name)
class RankPicture(models.Model):
r_rankcode = mo... | [
"jyahn0623@gmail.com"
] | jyahn0623@gmail.com |
86089daeedc71651ae0564812bf24553d130050a | f399fbac7e35dcc2c2f2ad4d3202b0839d9b7d48 | /user/send_mail.py | 0cb781b2301d5d6442e6f1cfdfd49aada05a621f | [] | no_license | AktanKasymaliev/django-toilets-service | 480f56b652a88e1422290de8906f0bb6d5693cff | 225d71b164c36bab5fded86390b17ce265694a17 | refs/heads/main | 2023-07-14T12:46:12.399114 | 2021-08-23T17:14:04 | 2021-08-23T17:14:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,328 | py | from django.template.loader import render_to_string
from django.utils.html import strip_tags
from django.core.mail import send_mail
from django.contrib.sites.shortcuts import get_current_site
from django.core.mail import EmailMultiAlternatives
from decouple import config
from django.utils.http import urlsafe_base64_dec... | [
"aktan.kasymaliev@icloud.com"
] | aktan.kasymaliev@icloud.com |
d941801758acdae714ecb26fe79b3331a4daef77 | db21d9daf62e3ea31f30da152f86ecfbb0d4814a | /PDDI-Datasets/HIV-Insite-interactions/hiv_insite_extraction.py | 2b661e7e80a4d33688017d50391a8f4de6f70d8b | [] | no_license | axel-op/public-PDDI-analysis | 487b1ebd650a21aa2df03893b896d80f37b0516b | 8199ee66b60bcb337f777889a210dd0d72a96e8f | refs/heads/master | 2021-07-06T06:50:04.438330 | 2017-10-02T19:04:08 | 2017-10-02T19:04:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,168 | py | # hiv_insite_extraction.py
# Read .html files in folder:
# HIV-Insite-interactions
# Retrieve 2 drug names, quality of evidence, summary, and description of ddi
# Consolidate all such DDI's from each folder as .tsv file
import glob
import os
import codecs
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
from ... | [
"echou53@gmail.com"
] | echou53@gmail.com |
d3df0d4a64a56492d1ec603be919eb0c002e95f5 | ab9e12bad0ff511d1c2b4c5b42bb0ceddb2cf34f | /examples/echo_server.py | 30c55e1c650d7a9863ad3b509d85450d040a1fb4 | [
"BSD-3-Clause"
] | permissive | elijahr/aiolo | a6014eefb72a615d0c6a5bed843b79385779b230 | c5ec8a3a5df93d4d7a19ccc0181c8a7d8bad75a9 | refs/heads/master | 2023-08-08T19:50:17.593860 | 2020-07-23T04:24:06 | 2020-07-23T04:24:06 | 232,236,708 | 7 | 1 | BSD-3-Clause | 2023-08-03T14:14:05 | 2020-01-07T03:42:32 | Python | UTF-8 | Python | false | false | 818 | py | import asyncio
from aiolo import Address, Midi, Server
async def main():
server = Server(port=12001)
server.start()
# Create endpoints
# /foo accepts an int, a float, and a MIDI packet
foo = server.route('/foo', [int, float, Midi])
ex = server.route('/exit')
address = Address(port=120... | [
"elijahr@gmail.com"
] | elijahr@gmail.com |
2ed87c256e5bf9f70115c96c9aec2798f8b5a5af | 14913a0fb7e1d17318a55a12f5a181dddad3c328 | /63.snake.py | 990234c17a8d9d056195b13ae470723aa887b84e | [] | no_license | Jesuisjavert/Algorithm | 6571836ec23ac3036565738c2bee94f416595f22 | 730549d19e66e20b3474a235a600958a8e036a0e | refs/heads/master | 2023-02-16T06:34:50.984529 | 2020-09-25T09:40:30 | 2020-09-25T09:40:30 | 330,849,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | import sys
sys.stdin = open('input.txt','r')
T = int(input())
for testcase in range(1,T+1):
arr = [list(map(int, input().split())) for _ in range(4)]
print(arr) | [
"jesuisjavert@gmail.com"
] | jesuisjavert@gmail.com |
d4e78f9b2e39fc5020173a64a9f37e7020c532ed | 77f6ff840e2e62965d83b509118ea0e053753108 | /src/quicksort.py | 12938a1ab83d3569e69cfd8b9f7d33fd8498080e | [
"BSD-3-Clause"
] | permissive | phiysng/python-algs | 116af6d4ca9154129112e80933e61aa2c3545518 | 1448a252e48d0c005db5301fc7126c7e695ac034 | refs/heads/master | 2020-05-21T17:03:59.934343 | 2019-05-11T08:50:57 | 2019-05-11T08:50:57 | 186,115,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | # -*- coding: utf-8 -*-
'''
快排算法的简单实现
TODO:使用了O(n)的空间 两次遍历了数组
'''
def quicksort(arr: list) -> list:
if len(arr) == 1 or len(arr) == 0:
return arr
pivot = arr[0]
left = [x for x in arr[1:] if x < pivot]
right = [x for x in arr[1:] if x >= pivot]
# 递归排序
lr = quicksort(left)
lr.app... | [
"wuyuanshou@protonmail.com"
] | wuyuanshou@protonmail.com |
ee4fe39711fc77d9a0fb62f3b590008b142f4b3b | 3e2d2175b3d5407a71f8e423105c7b3a9d55666a | /online_gobang/urls.py | 59a866cdb8ce5cd0c614a87f9ba88d021ac0f743 | [] | no_license | slgu/online_gobang | cb040918fc6048fd413d8d573fe25f95dec3f062 | 51418e18a85d9a47ddd2cb931c25e7df12357a2b | refs/heads/master | 2020-05-03T05:32:59.331652 | 2015-08-05T07:27:58 | 2015-08-05T07:27:58 | 39,301,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 646 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'online_gobang.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url("", include('django_socketio.urls')),
url(r'^gobang/static/(?P<path>.*)$', 'd... | [
"blackhero98@gmail.com"
] | blackhero98@gmail.com |
e493ea3032e1051ad60fa7c44027e35dbaecaf29 | f537166c2daa186eab63eb89742d848cfb83ac89 | /colorhexasearch.py | 9b4ac54da7ee63c2f98ca490c53a793668bd6e0f | [
"Apache-2.0"
] | permissive | evaneliasyoung/ColorHexa-Search | e4ec130a9fd875d25ed179439c991bf13693cf28 | e6c6d2813921d073002032f1900d0e88e56ddd19 | refs/heads/master | 2021-06-27T15:48:47.662339 | 2017-09-15T14:53:36 | 2017-09-15T14:53:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,749 | py | import sublime, sublime_plugin
import re
from sys import platform
from os import startfile
from subprocess import Popen
__version__ = "1.0.0"
zeroPad = lambda txt: txt[::-1]+"0"*(2-len(txt))
def getFmt(txt):
"""Determines the format of the color
Arguments:
txt {str} -- The text to determine
"""
... | [
"DocCodes@users.noreply.github.com"
] | DocCodes@users.noreply.github.com |
8201d7cd3b6d9595dbf87a0a429d27b71306562b | 3b6bae8f1cd3f703bd15c55b8d6a327b0b19d39b | /scopes.py | d910c23a17244efad9205633acd5b925310397f3 | [] | no_license | AndreyNaidenko/GmailToVK | 721e00215961fd69e00ba1ad248886d37bee7500 | 73f2e62d98ad228cda7475860308f5cd57eada49 | refs/heads/master | 2020-04-13T10:39:37.391729 | 2019-02-26T18:06:49 | 2019-02-26T18:06:49 | 163,148,109 | 1 | 3 | null | 2019-02-27T13:19:17 | 2018-12-26T07:04:12 | Python | UTF-8 | Python | false | false | 90 | py | SCOPES = [
'https://www.googleapis.com/auth/gmail.readonly',
'https://mail.google.com/'
]
| [
"37630193+MedvedevDenis@users.noreply.github.com"
] | 37630193+MedvedevDenis@users.noreply.github.com |
90e640949012d95c3e5daa5e794cbd2d4fcecc7d | ca504fc52c635860ac141a21e453be5f721f4fe7 | /fb_router.py | 7370718b8f52f1c8d0bf0ca4dfda9643586b2a66 | [] | no_license | baconcho/baconchoproject | 844a92842937f63615d689cf3973b59d540a2ef5 | 57e4165419d8e5eca76c5c9ec00108055b2c9cf5 | refs/heads/master | 2020-05-18T20:38:38.477516 | 2011-09-30T07:10:36 | 2011-09-30T07:10:36 | 2,448,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | #this file define all the route related to the facebook application
import Util
from Canvas import CanvasHandler
from CreateCoverHandler import CreateCoverHandler
routes = [(r'/', CanvasHandler),
(r'/fb/', CanvasHandler),
(r'/fb/canvas/', CanvasHandler),
(r'/fb/createcover', Cre... | [
"truongducthang@gmail.com"
] | truongducthang@gmail.com |
e7b26c237632de6eb32b9fcf15a30857b52e9551 | 940713a19ae36c48e8b6f83b8dad3f3aa2ca9562 | /remainder.py | 52999dc56308b74aa752074f2131b03f222b16d1 | [] | no_license | girishpillai17/class-work | cbc2a43ea4b077fac8b1a121de741eba09d165f5 | 7e14841d1b371f6791526fd35d03f0d779b8554d | refs/heads/master | 2021-09-08T03:18:18.666530 | 2018-03-06T17:17:16 | 2018-03-06T17:17:16 | 121,372,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | t = int(input())
for i in range(t):
a, b = map(int, input().split())
d = a % b
print(d) | [
"noreply@github.com"
] | girishpillai17.noreply@github.com |
f0b2769ee9e69bd66465e108cb54e7908f6174e4 | 826c50246d5a09f794509155465f77c43e179967 | /04_evaluation/06_Hourly_to_Daily_SW_Conversion.py | d3d88d941f13e86bf5f887a40c42693f59bf8125 | [] | no_license | JohnnyRyan1/clouds | 38bb767360aef68f45a6123944901135fa48ae89 | afdadaeb6a61c675275f4a5c932f5e61e51879e8 | refs/heads/main | 2023-04-11T03:05:31.188286 | 2022-07-12T22:52:50 | 2022-07-12T22:52:50 | 481,300,745 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,851 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
DESCRIPTION
Compute hourly to daily correction for SW from ERA5.
"""
# Import modules
import numpy as np
import pandas as pd
import netCDF4
from datetime import timedelta, datetime
import pyresample
# Define destination
dest = '/home/johnny/Documents/Clouds/Data/ER... | [
"jryan4@uoregon.edu"
] | jryan4@uoregon.edu |
beed14a3c1aff89d035020396a37556f4cf88ed1 | 24d8cf871b092b2d60fc85d5320e1bc761a7cbe2 | /wicd/rev519-537/right-branch-537/wicd/backends/be-wireless/threadedwirelessinterface.py | ab1a5d1e45f9fa860b190118e1d14d918ce5832a | [] | no_license | joliebig/featurehouse_fstmerge_examples | af1b963537839d13e834f829cf51f8ad5e6ffe76 | 1a99c1788f0eb9f1e5d8c2ced3892d00cd9449ad | refs/heads/master | 2016-09-05T10:24:50.974902 | 2013-03-28T16:28:47 | 2013-03-28T16:28:47 | 9,080,611 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,698 | py | from misc import WicdError
from baseinterface import needsidle
from encryptablewirelessinterface import EncryptableWirelessInterface
from asyncrunner import AsyncManager, AsyncError
class ThreadedWirelessInterface(EncryptableWirelessInterface):
def __init__(self, interface_name):
EncryptableWirelessInterfac... | [
"joliebig@fim.uni-passau.de"
] | joliebig@fim.uni-passau.de |
3f38298a0205c6057eae97a9b96395d892ab83bc | 8c24de6b63f4a7d5280e9a993e2666239563d93e | /base/base_page.py | 024cde348fd65f2ad1d1592ea46f31f8e69a155b | [] | no_license | duanchaoxin/AppAutoTest | 0bc3ec8cc4b923a3f164220dfe47344273c42dc2 | e7099cecd1200931ecc992ee20758057b999f213 | refs/heads/master | 2022-05-24T00:39:55.256637 | 2020-04-14T08:36:40 | 2020-04-14T08:36:40 | 255,523,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 777 | py | from selenium.webdriver.common.by import By
from selenium.webdriver.support.wait import WebDriverWait
from utils import DriverUtil
class BasePage(object):
def __init__(self):
self.driver = DriverUtil.get_driver()
def base_find(self, location, timeout=5, poll=0.5):
return WebDriverWait(self.... | [
"1539436284@qq.com"
] | 1539436284@qq.com |
68d3a28305f521b755b7fb016365e9e81bc67736 | 902b066e8b8b869d0a6eaac82ca26a0d7b42d8b7 | /subjectsapp/models.py | 60cb959e19222a67c094b13a620cbc09a4f10a67 | [] | no_license | manojb7996/rscpro | 4f6b613119a5b8257796e7b4535b027b0d60b770 | 3f2a1a183844968cf7af8170803a57d9c87fa49b | refs/heads/master | 2021-05-04T21:59:03.151471 | 2018-02-02T14:52:35 | 2018-02-02T14:52:35 | 119,992,911 | 0 | 0 | null | 2018-02-02T14:52:36 | 2018-02-02T14:42:04 | HTML | UTF-8 | Python | false | false | 1,329 | py | from django.db import models
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
# Create your models here.
# displays all subjects
class TechType(models.Model):
subject_name = models.CharField(max_length=30, help_text='Add the technology type ..like python , jave and mysql etc... | [
"santhoshcusat17@gmail.com"
] | santhoshcusat17@gmail.com |
d898539884fba4fbbea36f5cffcaef951b97aa96 | 7303a3e219352011ed210eaa522283c9f436f127 | /main.py | dbaa72367593b4498701dc685e2a1363ff70c720 | [] | no_license | Harish1503/6.-Swapping-of-two-numbers-using-temporary-variable. | a3e4627bcc5090a8916b58d495aca0849cd11ce2 | 11dc909bf772d9602041577b30ae5bb54d087082 | refs/heads/master | 2023-01-16T00:03:18.748183 | 2020-12-01T08:33:24 | 2020-12-01T08:33:24 | 317,475,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | a = int(input("Enter first number: "))
b = int(input("Enter second number: "))
print("Before Swapping")
print("a is", a)
print("b is", b)
temp = a
a = b
b = temp
print("After Swapping")
print("a is", a)
print("b is", b) | [
"n.harishkumar1503@gmail.com"
] | n.harishkumar1503@gmail.com |
8f789582668896d0476c9662231bb5fbf4edd209 | d6bd031f28dc317208e2a41d24ed520e0e2846d3 | /code/RSA/data_source.py | 302a387641495235746e381e45e10c53341cf4d1 | [] | no_license | oliver-contier/rirsa_tmp | 29e8584c03263f3cb471dcd954a2727c66bf5d7c | 8aa718ef690b6123209fde6aa55b06b44a68bd5f | refs/heads/master | 2020-08-23T06:38:48.369288 | 2019-10-21T12:30:38 | 2019-10-21T12:30:38 | 216,562,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,862 | py | #!/usr/bin/env python
import copy
import csv
from os.path import join as pjoin
import numpy as np
import pandas as pd
from mvpa2.tutorial_suite import fmri_dataset
def get_training_stims(sub_id,
sess_id,
behav_data_dir='/home/my_data/exppsy/oliver/RIRSA/raw/my_data/beha... | [
"oliver.contier@ovgu.de"
] | oliver.contier@ovgu.de |
e534714face0022b5bcd0add8b639c65f3106c87 | 85832b772afde033c77770a8eb268404bc96545e | /lib/operate_web/exceptions.py | b414fea64c9174c202222488c585ae500f072c25 | [] | no_license | yesseecity/light-novel-parser | ce8fdec66b55e8ae7c484402c57f2bbda7926f9b | 0c58c24360ab85585ba4a6230d90d8d32e6b57c7 | refs/heads/master | 2022-11-10T06:55:37.906276 | 2022-10-17T16:41:35 | 2022-10-17T16:41:35 | 234,101,534 | 0 | 0 | null | 2022-06-11T14:36:15 | 2020-01-15T14:44:56 | Python | UTF-8 | Python | false | false | 491 | py | class ElementNotFoundException(Exception):
def __init__(self, dom_id=None, class_name=None, xpath=None, msg=None, mode=None, wait_time=None):
self.dom_id = dom_id
self.class_name = class_name
self.xpath = xpath
self.mode = mode
self.wait_time = wait_time
self.msg = ms... | [
"yesseecity@yahoo.com.tw"
] | yesseecity@yahoo.com.tw |
be7975289ea7397570ae5a442d590aae139acd82 | 214dde26c268d1d0b7991318c5e2d43aa27af89b | /backlooking/order_analysis.py | c7b7acc13a43f9796ee1e1050048258fb6cc19ad | [] | no_license | hellobiek/smart_deal_tool | f1846903ac402257bbe92bd23f9552970937d50e | ba8aad0a37843362f5833526921c6f700fb881f1 | refs/heads/master | 2022-09-04T04:41:34.598164 | 2022-08-04T22:04:09 | 2022-08-04T22:04:09 | 88,258,362 | 36 | 14 | null | null | null | null | UTF-8 | Python | false | false | 3,559 | py | #-*- coding: utf-8 -*-
import os
import sys
from os.path import abspath, dirname
sys.path.insert(0, dirname(dirname(abspath(__file__))))
import datetime
import const as ct
import pandas as pd
from futu import TrdEnv
from datetime import datetime
from base.cdate import get_dates_array
from tools.markdown_table import Ma... | [
"hellobiek@gmail.com"
] | hellobiek@gmail.com |
9f9452d0846ce2ffe12f31dd25cd16d638492f05 | ddeb775900fc389b2f05b5cc990bf123bd60272f | /Aula17/Ex80.py | eb39c792d6f1130c24605495ffffe703211c28a9 | [] | no_license | rexayt/Meu-Aprendizado-Python | f61e1559c43ff76fb2d10ae1e8634ed82176bedf | 2571d26ab91f45d3440193dda32a487a0ad7bb46 | refs/heads/main | 2023-04-13T15:40:36.056624 | 2021-04-22T18:21:08 | 2021-04-22T18:21:08 | 360,639,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | lista = []
for c in range(0, 5):
n = int(input('Digite um número: '))
if c == 0 or n > lista[-1]:
lista.append(n)
else:
pos = 0
while pos < len(lista):
if n <= lista[pos]:
lista.insert(pos, n)
break
pos+=1
print(list... | [
"noreply@github.com"
] | rexayt.noreply@github.com |
ba7f120c0d5551658bacbd572127dbb325214ffa | 11b420a9e6dbe371167227f41ef8e344e3382612 | /ConvNets/Comparison_Plots/Pooled_Images/Pooled_Images.py | 15a23b6ae92fc9bdfccb8654ccf3350027e0953e | [
"MIT"
] | permissive | tarek-ullah/Active-Learning-Bayesian-Convolutional-Neural-Networks | 7092386758b68dc922efaa2c2eba055930bf2896 | f8b68038bd3b97c473e9c1de6b6cdee4538021f4 | refs/heads/master | 2021-01-13T06:57:19.343775 | 2016-11-02T12:22:16 | 2016-11-02T12:22:16 | 81,338,773 | 1 | 0 | null | 2017-02-08T14:34:15 | 2017-02-08T14:34:15 | null | UTF-8 | Python | false | false | 3,650 | py | from __future__ import print_function
from keras.datasets import mnist
from keras.preprocessing.image import ImageDataGenerator
from keras.models import Sequential
from keras.layers.core import Dense, Dropout, Activation, Flatten
from keras.layers.convolutional import Convolution2D, MaxPooling2D
from keras.optimizers i... | [
"riashat.islam.93@gmail.com"
] | riashat.islam.93@gmail.com |
54c162b29e9001c19ac7d6dca301deb9f0baaeda | 69e318f2b60175108bc74ee669bfe16287a71cb6 | /plugins/modules/fortios_firewall_vipgrp46.py | c17473a84beae56fcf18f1d94f460da32776abe1 | [] | no_license | chillancezen/ansible-galaxy-fortios-collection | 5268a5fd97fb4594772349b8d89cb818ec54b3bd | 66a331cd4493d1b0f49798d5c2cd6ef5aeba84d3 | refs/heads/master | 2022-04-09T19:20:59.073193 | 2020-03-26T07:17:09 | 2020-03-26T07:17:09 | 250,185,374 | 0 | 0 | null | 2020-03-26T07:06:16 | 2020-03-26T07:06:16 | null | UTF-8 | Python | false | false | 11,486 | py | #!/usr/bin/python
from __future__ import (absolute_import, division, print_function)
# Copyright 2019 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the Lic... | [
"fshen01@fortinet.com"
] | fshen01@fortinet.com |
08fbb51cd24de98123d6393d2ea88e54c2531a02 | 5035dc491ad5d8e786944a4eb1625590254f0494 | /GoogleMapi.py | 944eca4ac912778f4115388d82eccb7d3be92c5f | [] | no_license | Ltunstall92/Personal-Projects | 383083180d0abf8569effd5cd74a520ee527c80d | 261ed4c69452971094321a89637efc3b57da89b3 | refs/heads/master | 2020-04-03T13:43:41.696705 | 2018-11-05T23:31:30 | 2018-11-05T23:31:30 | 155,295,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,694 | py | import googlemaps
import json
import string
import time
gmaps = googlemaps.Client(key='KEY')#@@@@@@@@REPLACE WITH API KEY!!!!@@@@@
s_num = 1 #step number
origin = None
print("For input below please follow the format: City, State Code /n Example: Boston, MA")
if origin == None:
origin = input("Enter a place of orig... | [
"noreply@github.com"
] | Ltunstall92.noreply@github.com |
eee47352250b1354c790e2f7624fae5c7205dbdd | d45b87ba22649cb9c0f003479112c50a7ce09ba0 | /Counting Sort 3.py | 65bd53aba0bb44a886e5ed534ec574b1d9fdc902 | [] | no_license | chishui/HackerRankAlgorithmsChallenge | 7458f6553f52846b9de5b68c0f692f72be13dfa8 | 611096a0c362675ce68598065ea3fe0abbbe5b99 | refs/heads/master | 2020-12-24T13:35:43.829308 | 2014-09-02T10:36:57 | 2014-09-02T10:36:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | #https://www.hackerrank.com/challenges/countingsort3
N = input()
li = [int(raw_input().strip().split()[0]) for i in range(0, N)]
li.sort()
last = -1
index = 0
out = []
for i in range(0, 100):
while index < len(li) and i >= li[index] :
index = index + 1
out.append(index)
print ' '.join(map(str, out))
| [
"chishui2@gmail.com"
] | chishui2@gmail.com |
79e89da491df1b01cf2db1375aa85bf04472dfce | f29a31354a66798e2c398fc2a01bc285b6e35dfb | /NeuralNetworks/l-IntroToNeuralNetworks/Perceptrons.py | 8b97e96224a7febd95bb5ca02c32f3a2c2cb5e9d | [] | no_license | ajpiter/UdacityDeepLearning | 2fd8b6ba7f29aa03ab9dfdd557dbdcc692e7ada0 | eb343a8be223f4bcc15a87483f7945023c2c9a0e | refs/heads/master | 2021-01-02T09:00:34.221125 | 2017-08-28T16:32:45 | 2017-08-28T16:32:45 | 99,121,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,764 | py | #Perceptrons
#Also known as neurons
#Inputs
#Weights
#Start out as random values, then as the neural network learns more about the input data and results the network adjusts the weights
#The process of adjusting the weights is called training the neural network
#The higher the weight the more important it is in ... | [
"noreply@github.com"
] | ajpiter.noreply@github.com |
2a9046c5ee3b7dd7ead91f9a86e5601efaf67688 | 15d936f6f300e744dbd4d826a95740b1c155f9da | /libarsdkctrl/python/internal/device_handler.py | 2034195ea3d734a8d8c1158af706d460161dfa14 | [] | no_license | Parrot-Developers/arsdk-ng | 783aff771eccb295f2e5ca7057309b6026b062fd | e30d41eb1c7871139a933a04c953aa284fe61308 | refs/heads/master | 2023-05-06T06:34:40.269861 | 2023-04-19T13:45:04 | 2023-04-19T13:45:04 | 183,210,114 | 3 | 4 | null | null | null | null | UTF-8 | Python | false | false | 4,171 | py | # Copyright (c) 2020 Parrot Drones SAS
import ctypes
import logging
import libarsdk
from libarsdkctrl_bindings import (
arsdk_device_connect,
arsdk_device_create_cmd_itf,
arsdk_device_disconnect,
arsdk_device_get_info,
struct_arsdk_cmd_itf,
struct_arsdk_cmd_itf_cbs,
struct_arsdk_device_co... | [
"nicolas.brulez@parrot.com"
] | nicolas.brulez@parrot.com |
2fbbd183b02fc3f961d32a9f9a9bf87a801392d7 | c5f2e56d7adcdab9474c78ebbc14e199d20ef95f | /examples/dahua/chatServer.py | fee1e2b1bf6713472da62d8a56389d67011ead5b | [] | no_license | nullzhengwx/pythonStudy | ad4131edaef41c700ec6490096f557292d370cc6 | be59e5b4f19013fff0291bcd13ccb02d49ccba30 | refs/heads/master | 2020-03-26T08:09:54.985328 | 2018-07-27T03:31:07 | 2018-07-27T03:31:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,073 | py | from asyncore import dispatcher
from asynchat import async_chat
import socket, asyncore
PORT = 5005
NAME = 'TestChat'
class CommandHandler:
"""
类似于标准库中cmd.Cmd的简单命令处理程序.
"""
def unknow(self, session, cmd):
# 相应未知命令
session.push(b'Unknow command:' + str.encode(cmd))
def handle(self,... | [
"173601321@qq.com"
] | 173601321@qq.com |
72655e0d239fb7752d956948112e58f2ba5f52b8 | 3637fe729395dac153f7abc3024dcc69e17f4e81 | /reference/ucmdb/discovery/os_platform_discoverer.py | 02d93f540190842835fd968afa055cc09e7172c3 | [] | no_license | madmonkyang/cda-record | daced6846c2456f20dddce7f9720602d1583a02a | c431e809e8d0f82e1bca7e3429dd0245560b5680 | refs/heads/master | 2023-06-15T08:16:46.230569 | 2021-07-15T16:27:36 | 2021-07-15T16:27:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,272 | py | # coding=utf-8
'''
Created on Dec 27, 2013
@author: ekondrashev
'''
import logger
import entity
import command
import flow
import post_import_hooks
import service_loader
from service_loader import load_service_providers_by_file_pattern
class Platform(entity.Immutable):
def __init__(self, name):
self.name... | [
"silentbalanceyh@126.com"
] | silentbalanceyh@126.com |
c6c9c9fd3add6b71c82d0a67b2ad1afdaeaf38b8 | 5ae9609559fd3352e894ebc21e072cbc7e7efa89 | /imsteg.py | 52f545d9b40775a5cd27aa0f997dac4ead519489 | [] | no_license | TheLonelyNull/imsteg | d65d3391b5d2ed79ce67777e1add67ca9d4aa0c4 | 2f6425b8cac02d6cfd2be2a9d7259bb016ee2ba9 | refs/heads/master | 2020-12-05T01:33:28.073073 | 2019-12-24T11:48:32 | 2019-12-24T11:48:32 | 231,968,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,383 | py | """A basic steganography program to hide text in an image file"""
from PIL import Image
import readline
import getpass
from random import seed, random, randint
# TODO make autocomplete work
readline.parse_and_bind("tab: complete")
def get_mode_and_exec():
selection = input("Mode(Select 1 or 2)\n1. Encode\n2. De... | [
"chris.rossouw5@gmail.com"
] | chris.rossouw5@gmail.com |
27fac4f1aaf8414c571f63b38f3416535871b864 | e7fcc1d64cd95805918ab1b5786bf81a92f973ef | /2020/day06/test_day06.py | dcfa4fa5d4d7f186a72866d92f905fc5c31bff00 | [] | no_license | trolen/advent-of-code | 8145c1e36fea04e53d4b7a885efcc2da71fbfe57 | 0a4e022a6a810d86e044a15036a2f5778f0d38af | refs/heads/master | 2023-02-26T13:11:58.341006 | 2023-02-20T23:22:27 | 2023-02-20T23:22:27 | 54,579,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 881 | py | #! /usr/bin/env python3
import unittest
import day06
class TestDay06(unittest.TestCase):
def setUp(self):
self.raw_data = [
'abc',
'',
'a',
'b',
'c',
'',
'ab',
'ac',
'',
'a',
... | [
"timothy.rolen@gmail.com"
] | timothy.rolen@gmail.com |
91df374bba45a92207655510d73d15b4b347d239 | 1b77a59afaf8f525160de213e902357ba543ea14 | /demo/webSpider/web_spider.py | 4c84af38f1eb5bef81082c57146dc6997539fe17 | [] | no_license | Miracleslop/python_daily | 8e7711194b96538144581163f4cc3f09f0560638 | 11b66dff63dad01bea858aadc828e450e5470cc4 | refs/heads/master | 2020-03-19T01:07:41.982764 | 2018-09-21T10:01:10 | 2018-09-21T10:01:10 | 135,524,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,858 | py | from urllib import request
from urllib import parse
from urllib import error
from commun.logger import clog
from demo.webSpider.htmlity import HtmlTagStart
from demo.webSpider.htmlity import HtmlTagEnd
import io
lg = clog.Logger("web_spider")
class FilterStrategy(object):
def __init__(self, text: str):
... | [
"windous999@hotmail.com"
] | windous999@hotmail.com |
cdb896df7dafbf9b574f7853ffe03b2a0ab849e0 | 5c4cc78698a8cdadb10c45799a67c95ca17a4d5a | /custom_components/usage.py | f93d2655364330efe4fac2599f2b0bc5244848ee | [] | no_license | gitumarkk/dash-custom-components-blog | fb044f14735d686bbf0c3e07b863c0eb39830c6b | 3a94e3fd7e3047eb082be901f2c2962b42b27964 | refs/heads/main | 2023-05-31T06:40:33.337975 | 2021-06-11T06:22:31 | 2021-06-11T06:22:31 | 375,925,178 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | import custom_components
import dash
from dash.dependencies import Input, Output
import dash_html_components as html
app = dash.Dash(__name__)
app.layout = html.Div([
custom_components.MyCustomComponent(
id='input',
value='my-value',
label='my-label'
),
html.Div(id='output')
])
@... | [
"gitumarkk@gmail.com"
] | gitumarkk@gmail.com |
191db6f8ca5bb50f81b0a602940e6003d3f27b1b | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/4/usersdata/112/1803/submittedfiles/swamee.py | 0993e51e919e7a77d0aa3da61db48e12e1ca660d | [] | 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 | 448 | 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:')
DeltaH= input('Digite o valor de Delta H')
v= input('Digite o valor de v')
g= 9.81
e= 0.000002
D= ((8*f*L*Q)*(2/5))/((math.pi)**2(g*DeltaH))
Rey= (4*Q)... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
cc86bef58c7d155debfcde3377df2e4dbe6dfa6d | bf32d19e5cf9650099d4f3a05f24ad3f5d0332a3 | /datagen.py | 0b65a8b378b3d8b516ff0d137a9bda72e359cbef | [] | no_license | DableUTeeF/dictionaries | 5d01b7936ff567c6ca6aac45394370a8168ad816 | c529727325232291a4103d4b1bc72c888cec05f1 | refs/heads/master | 2023-04-11T05:46:31.548797 | 2021-04-22T06:06:55 | 2021-04-22T06:06:55 | 343,296,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,290 | py | from torch.utils.data import Dataset
from torchtext.vocab import Vocab, Counter
import torch
from nltk.corpus import wordnet as wn, stopwords
from torch.nn.utils.rnn import pad_sequence
from torch.utils.data.sampler import SubsetRandomSampler
import numpy as np
import pandas as pd
import re
from transformers import Aut... | [
"palm22180@gmail.com"
] | palm22180@gmail.com |
8c98bff38d91ed5a44a71a4aa02dfad006406174 | 049c6607e64e89bb4ddfe43d86a4bd41c9f1b1e1 | /overay_noscale.py | b81839eeee1f8a839c49f43b1b00ba2c94595d62 | [] | no_license | sverrirbjarna/Python | 4cf5058f3895f12eb1239d036f36ec8317048662 | 0f1500b9939a395f7c7240d037ef16dd67870301 | refs/heads/master | 2023-02-12T10:30:17.629585 | 2021-01-11T02:22:02 | 2021-01-11T02:22:02 | 252,490,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 855 | py | from __future__ import print_function
from PIL import Image
import cv2 as cv
alpha = 0.2
try:
raw_input # Python 2
except NameError:
raw_input = input # Python 3
print(''' Simple Linear Blender
-----------------------
* Enter alpha [0.0-1.0]: ''')
#input_alpha = float(raw_input().strip())
#if 0 <= alp... | [
"sverrirbjarnason@gmail.com"
] | sverrirbjarnason@gmail.com |
ae840301c016aef5a128d64fcf9aea85c19267c3 | bf70b30f3a9f91c2994dda2f130e73eddf87161d | /ldpred/util.py | c19a9271059ed61303bd3fe1a00ac885697b5004 | [
"MIT"
] | permissive | choishingwan/ldpred | 892fd5fb168fdf3d9ace8ad1ce3dc1cf9c767888 | f7f2648dd7aebe9fcc919875823f379de309896b | refs/heads/master | 2021-01-20T07:50:50.155301 | 2019-02-19T14:14:39 | 2019-02-19T14:14:39 | 90,049,563 | 0 | 0 | MIT | 2019-02-04T16:02:48 | 2017-05-02T15:35:46 | Python | UTF-8 | Python | false | false | 3,632 | py | """
Various general utility functions.
"""
import scipy as sp
from scipy import stats
# LDpred currently ignores the Y and MT chromosomes.
ok_chromosomes = ['%d' % (x) for x in range(1, 23)]
ok_chromosomes.append('X')
chromosomes_list = ['chrom_%s' % (chrom) for chrom in ok_chromosomes]
#Various auxiliary variables
... | [
"bjarni.vilhjalmsson@gmail.com"
] | bjarni.vilhjalmsson@gmail.com |
7ec51630d622901b2d88dfdd17df2eebdafa22be | 9d58caaabce0289738d485135cda2e178575c9a4 | /kotti_bootswatch_theme/tests/test_resources.py | 97392a7f785c0a224f73154dd874981b9e8057c1 | [
"BSD-3-Clause-Modification"
] | permissive | mete0r/kotti_bootswatch_theme | 61202aeccbb729df5380ce540633d9a555225b78 | 4ee6fbf24501b89d4076dbee4323c70c72542e7e | refs/heads/master | 2022-11-24T07:59:07.560943 | 2020-05-05T10:36:56 | 2020-05-05T10:36:56 | 27,492,192 | 0 | 0 | NOASSERTION | 2022-11-22T05:06:19 | 2014-12-03T14:56:56 | CSS | UTF-8 | Python | false | false | 521 | py | # -*- coding: utf-8 -*-
"""
Created on 2014-12-03
:author: mete0r (mete0r@sarangbang.or.kr)
"""
from pytest import raises
def test_model(root, db_session):
from kotti_bootswatch_theme.resources import CustomContent
cc = CustomContent()
assert cc.custom_attribute is None
cc = CustomContent(custom_a... | [
"mete0r@sarangbang.or.kr"
] | mete0r@sarangbang.or.kr |
663a5aa9df2a0620bc5e0f0dfe063853cd4c8171 | d429431864b3699029f52ca1a232a152c21fb9e6 | /codekata/pali.py | ed6ade1a7df282d0e83a461cdff5b2049294a74d | [] | no_license | kirubah18/guvi | 32e1baeae3371dc14cb95b61421ddac269e3f56d | 5a642b07b6defaf344847e29c5f6bee574aa7c4e | refs/heads/master | 2020-06-03T00:09:17.428442 | 2019-06-24T05:04:21 | 2019-06-24T05:04:21 | 191,355,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | a1=input()
a=int(a1)
b=a
i=0
while(a!=0):
p=int(a%10)
i=int(i*10+p)
a=int(a/10)
if(b==i):
print("yes")
else:
print("no")
| [
"noreply@github.com"
] | kirubah18.noreply@github.com |
4cd27ec2a6296f942376e8e41767de6dd42b8cba | 3efe7813bb3c4f48f508c464f24b78acaccd827b | /actions.py | 475586444fb2906bb7612bd32f78d38310d0ef12 | [] | no_license | SamButers/Le-Chat | 05110b2b9fa0484380b214abbcec590635a6ed27 | af0af4512456dceeb364abe80b4e9169be1fc46e | refs/heads/master | 2021-07-03T01:54:23.995599 | 2019-04-06T05:10:30 | 2019-04-06T05:10:30 | 178,958,398 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 773 | py | from rasa_core_sdk import Action
from rasa_core_sdk.events import SlotSet
import requests, json
class ActionInformCat(Action):
def name(self):
return "action_inform_cat";
def run(self, dispatcher, tracker, domain):
cat = tracker.get_slot('cat');
cat_url = 'https://api.thecatapi.com/v1/breeds/search?q=' ... | [
"sambuters@gmail.com"
] | sambuters@gmail.com |
cbf272103a5b17ce360b512e13f10fb16434d0cb | 8b82bb7488961596a5f868c96ac61a5e4ca05c42 | /max_value.py | 01d0aad6279fa48a1bd0f51e705a10750ac9b837 | [] | no_license | ashasuj/Python-newby | cb400bb00cfdba04891fdd339fc771b83993182f | 6f907d93ba2610bf4edc7c9f3f1feca76d9096e7 | refs/heads/master | 2020-04-09T22:17:13.304147 | 2019-11-24T01:15:11 | 2019-11-24T01:15:11 | 160,624,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | numbers = [22,43,14,10,1]
max_value = numbers[0]
for item in numbers :
if item > max_value :
max_value = item
print(max_value)
| [
"noreply@github.com"
] | ashasuj.noreply@github.com |
62011be163fcd16e0c89f50f2b772060031a4830 | 103c0ab0aa8645890af45a9825b9130fa498fb15 | /travelapp/models.py | 06ec2f405122e5136dc941c3f616cf4071642702 | [] | no_license | JohnDBlaze/travel | fcf23f4f42ebdefba2c9a5af6d9a6c36b7befadd | 19e10e19d2cfdc9bcd95f72742e2f531b813f8d1 | refs/heads/master | 2023-08-14T18:35:53.132105 | 2021-10-10T13:11:53 | 2021-10-10T13:11:53 | 415,590,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | from django.db import models
# Create your models here.
class place(models.Model):
name = models.CharField(max_length=100)
img = models.ImageField(upload_to='picture')
desc = models.TextField()
price = models.IntegerField()
offer = models.BooleanField(default=False)
class blog(models.Model):
... | [
"abhilashfrancis88@gmail.com"
] | abhilashfrancis88@gmail.com |
b31b2e1e03da902449ac1d6c84e33183f1d07823 | 7e372094fde657891fdfad0e1fe2f3d9693bdf64 | /instapi/exceptions.py | 097eba4057636202fd4eb326edc7e7e743aaa204 | [
"MIT"
] | permissive | uriyyo/instapi | b92c95a8adc2cdb73fc563649d3d14752c1e42c4 | f15b45727a08fd9b203c71b2a8c9d103478a50dc | refs/heads/develop | 2023-06-30T17:46:25.307092 | 2023-06-26T08:43:57 | 2023-06-26T08:43:57 | 203,244,044 | 37 | 4 | MIT | 2023-09-08T03:08:27 | 2019-08-19T20:17:36 | Python | UTF-8 | Python | false | false | 100 | py | class ClientNotInitedException(Exception):
pass
__all__ = [
"ClientNotInitedException",
]
| [
"1998uriyyo@gmail.com"
] | 1998uriyyo@gmail.com |
6e8afb0f588cd9bd417b3f790e1acf42db700d9e | 22f83d2dd088b31ce32a394cfcf5013ad72e2cbc | /网络爬虫/ip池/Improve/DataBase.py | a9e131e995a27ca1067bf249184d8bb28eba40d1 | [] | no_license | Lawlighty/Python | 375908669373be2ffb38c148f6ba523058dd74b8 | 757261ab74e5aac14a5e29a7781b7581cfd223b9 | refs/heads/master | 2020-05-04T16:39:39.640378 | 2019-11-16T04:37:11 | 2019-11-16T04:37:11 | 179,284,076 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,382 | py | import config
import pymysql
#数据库操作
#初始化
def init():
try:
db = pymysql.connect(config.mysql_localhost, config.mysql_root, config.mysql_psw, config.mysql_dbname )
cursor = db.cursor()
sql = 'CREATE TABLE IF NOT EXISTS {}(ip_port varchar(30) primary key not null)'.format(config.mysql... | [
"noreply@github.com"
] | Lawlighty.noreply@github.com |
b18d91a68a5d42b0f2f054ca6b2d456eab45041a | 9ed3770babe66fd7f1ba86b1245978cf86f77d1b | /client.py | 19c8e91e4b992d25d18bc220a89f1fc0fc842aa4 | [] | no_license | lwx940710/TCP-Concurrent-Upload-Download | ff0065fb0c5190e51c0b53ebb75edf6e4313dcad | cf402e1d5498a740becdc1210d6ea7f5e185e533 | refs/heads/master | 2021-01-16T18:56:42.928643 | 2017-08-12T19:22:44 | 2017-08-12T19:22:44 | 100,133,218 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,447 | py | #!/usr/bin/env python3
from struct import pack, unpack
import socket, sys, os, io, math, time
# terminate server: client <host> <port> F
# download: client <host> <port> G<key> <file name> <recv size>
# upload: client <host> <port> P<key> <file name> <send size> <wait time>
def tryInt(s):
try:
int(s)
return True... | [
"w254li@uwaterloo.ca"
] | w254li@uwaterloo.ca |
5216a13d8d872dec242e77027299a6e3e1ff4e34 | 4e711136a2cbf3a16ee50f2076b0d992561b7557 | /users/models.py | 5e93afb21dfd1a4ae766e593f211401d2bf3e1cc | [] | no_license | SATYENDRARANJAN/YOURPHYSIO | 30e324f65352bf3890df019023782f13732a42e6 | 829245309e2f1800cf8127b37df6134dcf3ced20 | refs/heads/main | 2023-06-25T14:14:52.112859 | 2021-07-30T00:01:24 | 2021-07-30T00:01:24 | 390,877,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,495 | py | from datetime import datetime
from django.db import models
# Create your models here.
class Patient(models.Model):
name = models.CharField(max_length=40,null=True)
phone = models.IntegerField(max_length=10)
email = models.EmailField()
created_at=models.DateTimeField(default=datetime.now)
updated... | [
"satya@getvital.com"
] | satya@getvital.com |
5c9ae93b8c8b6056f60afc3d451483318bba5335 | 53548996d9dce7f6127126f2df8b1ed43ce96e0a | /tweetsearch.py | 3e450cdf5952a3bcd332b4bb60fca070210bb8bc | [] | no_license | keivahn/W205__Assignment2 | 35eb46cb8a9f772480e9dd82e57e46cf9da09b66 | f5c1bb6abda62547534ca9c1431fe370a8b12e16 | refs/heads/master | 2020-04-20T03:51:26.584638 | 2015-07-11T02:39:38 | 2015-07-11T02:39:38 | 38,150,147 | 0 | 0 | null | 2015-07-11T02:39:38 | 2015-06-27T06:38:41 | null | UTF-8 | Python | false | false | 2,472 | py | # Alex Smith
# MIDS - W205
# This program searches for tweets within a given date range
# for all tweets containing two queries.
import sys # import the system module, read command line arguments
import urllib # import module to interact with web
import datetime # import modu... | [
"Alex@Alexs-MacBook-Pro.local"
] | Alex@Alexs-MacBook-Pro.local |
312460ac8bca6af84350206ee751570d59d027a3 | 1a639d185f9c883b7bebf33c577c58b22ac93c7e | /graphics/moving_pan.py | 37ad05954d8428b128a6f418e6a6d7232f4c8994 | [] | no_license | gofr1/python-learning | bd09da5b5850b1533a88b858690ed4380b55d33e | 19343c985f368770dc01ce415506506d62a23285 | refs/heads/master | 2023-09-02T15:42:27.442735 | 2021-11-12T10:17:13 | 2021-11-12T10:17:13 | 237,828,887 | 0 | 0 | null | 2021-11-12T10:17:14 | 2020-02-02T20:03:42 | Python | UTF-8 | Python | false | false | 767 | py | from superwires import games
path_to_images = '../../Pictures/img/'
games.init(screen_width = 640, screen_height = 480, fps = 50)
class Pan(games.Sprite):
'''Pan moving with mouse'''
def update(self):
'''Move object to mouse position'''
self.x = games.mouse.x
self.y = games.mouse.y
... | [
"gofr.one@gmail.com"
] | gofr.one@gmail.com |
69d50785ab8f1b14cf54f382e8aae15f81e7eab9 | 816f1b2efd6c33da1177694a1bacc65c6dd7309c | /views/predict.py | 9fa1aef52df8f288d1735ae3febd85835c38aa96 | [] | no_license | harbaouiiii/etyp | 7ea2f411100b0f50fb44523cd8445336e3aa4ea4 | 1b0f51caf80005a01d97cf6cc4645d2714352f4f | refs/heads/main | 2023-06-03T00:16:24.021112 | 2021-06-20T16:27:24 | 2021-06-20T16:27:24 | 378,690,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,178 | py | from flask import Flask, render_template, request, jsonify, json, Blueprint, redirect, url_for, session
from flask_sqlalchemy import SQLAlchemy
from wtforms import SelectField, Form
from flask_wtf import FlaskForm
from flask_login import current_user
from views.forms import Form
from models import City, Municipality
im... | [
"harbaouiiii"
] | harbaouiiii |
6f44e55609bce00b517938584610a93d2b86c024 | 8b21142cccab05509cad8fe0dd7af867cd7fa6ff | /pybullet/noros/solo.py | 31a42a840a9716da3cedd786f09ce26694f6665d | [
"MIT"
] | permissive | WPI-MMR/simulation_playground | 2c7763b5d5b4ee388d0d101af1d6f4235307bcd0 | b5ebfc58feed6d380c92fb65988032cbab5b32bc | refs/heads/master | 2022-12-22T09:36:50.376379 | 2020-10-04T21:32:25 | 2020-10-04T21:32:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,788 | py | import functools
import math
import util
import os
from typing import List, Tuple
from pinocchio import utils as se3util
from pinocchio import robot_wrapper as se3robot_wrapper
import pinocchio as se3
class BaseSolo(object):
"""The base solo class
Args:
model_path (str): The path to the root of the model f... | [
"rukna1000@gmail.com"
] | rukna1000@gmail.com |
930727de4fc9a819568fa813409d808229907aeb | 3da246077831519b40aa45ce6bb6ac63fc1a17fe | /models/regularizers.py | e6a7729c1644ee207936c4e77bc1e6134614ea4c | [] | no_license | jamesoneill12/SupervisedMetaEmbedding | b4d9728ce501e4661f1d9f9191affb7dbe8daab3 | 9d379d7bb9049e475bffb78f2e1df2d0ed72684d | refs/heads/master | 2022-11-12T23:28:17.058219 | 2020-07-04T00:47:18 | 2020-07-04T00:47:18 | 277,012,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,967 | py | import torch
from torch.nn import Parameter
import torch.nn as nn
from torch.autograd import Variable
import numpy as np
"""module, weights, dropout=0, variational=False"""
def dropconnect(module, weights, p=None, dim=None, method='standard'):
"""module, weights, dropout=0, variational=False"""
if method ==... | [
"james.oneill@insight-centre.org"
] | james.oneill@insight-centre.org |
c1064fc49e796bcf0aefae3556c05fc32fd0952f | d4d16e48357eeb759d979c1777bf93b437f8d69a | /page/__init__.py | 5ce10e61df1804de6a73f86870f1834d93850e60 | [] | no_license | jianxiaohui18/xuechebu_project | abc2f32f8688fa47ed87d041dfafd3151cdb213a | 974ffb10d648873151cb586fa153d4dd491b30f9 | refs/heads/master | 2020-12-13T16:23:27.643807 | 2020-01-17T10:37:21 | 2020-01-17T10:37:21 | 234,470,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 610 | py | from selenium.webdriver.common.by import By
#首页
mine_btn = By.XPATH,'//*[contains(@text,"我的")]' #我的按钮
#我的页面
log_reg_btn = By.XPATH,'//*[contains(@text,"登录")]' #登录/注册按钮
username_text = By.XPATH,'//*[contains(@text,"用户")]'
#登录页面
username_box = By.ID,'com.bjcsxq.chat.carfriend:id/login_phone_et' #用户名输入框
passwor... | [
"624767241@qq.com"
] | 624767241@qq.com |
3cd88b7155f943721061204a47fa62099cc6acd0 | bf4209c0846a1c237dd996267c8eadd7717ae19e | /timer_tracker.py | 0eab39fcd28105062a931c59184961366d0cb19f | [] | no_license | bulhakovolexiy/movieParser | f312fb8c0037536dea8ca15f79ec280fdcbdc129 | 72235789a26dc828ab605f63de0e7370310393ba | refs/heads/master | 2023-08-15T04:02:19.478610 | 2021-10-13T19:24:49 | 2021-10-13T19:24:49 | 415,060,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,515 | py |
class TimerTracker(object):
def __init__(self):
pass
# def find_main_beep_freq(source):
# fft_spectrum = np.fft.rfft(source)
#
# freq = np.fft.rfftfreq(source.size, d=1. / sampFreq)
#
# freq_coords = [int(x) for x in range(0, len(freq)) if 1500 <= freq[x] <= 3250]
# fft_spectrum = fft_spe... | [
"dzot161995@gmail.com"
] | dzot161995@gmail.com |
a1bdcdb481696a4cde9e5264a2cddcb522103db0 | 02081cb12f02c0481701c53efabd0a73e889f42d | /model/CR.py | 4f4731c1ec7cbfa88a34e74d8c0ed8463765a42d | [] | no_license | zr1048028670/AECR-Net | 900484711dd9c1e1d0e54157c9662d437b9f0a4a | d2eb15b9fd98d6f1bedd64b72d49548ebfadeedb | refs/heads/main | 2023-08-12T11:53:02.742030 | 2021-10-13T02:16:30 | 2021-10-13T02:16:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,271 | py | import torch.nn as nn
import torch
from torch.nn import functional as F
import torch.nn.functional as fnn
from torch.autograd import Variable
import numpy as np
from torchvision import models
class Vgg19(torch.nn.Module):
def __init__(self, requires_grad=False):
super(Vgg19, self).__init__()
vgg_pr... | [
"704289013@qq.com"
] | 704289013@qq.com |
f7d11bab716283917a00ac4cf88bbe0e1409eb96 | 1818aaf61380ed516097cb40ab378d36e3c1a06a | /tests/unit/validate/example_templates/component/unnamed/a.py | 9c803aa2b037621b19d514b789ef78274e3bddc3 | [
"Apache-2.0"
] | permissive | JackBurdick/crummycm | a4504ba3efd42e4d93c62120ad4fece89c6b3ae2 | ffa9dad9b5c4c061d3767d700e90d5e34f92eac8 | refs/heads/main | 2023-01-18T20:07:24.102504 | 2020-11-25T00:56:57 | 2020-11-25T00:56:57 | 304,761,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,462 | py | from crummycm.validation.types.placeholders.placeholder import KeyPlaceholder
from crummycm.validation.types.dicts.foundation.unnamed_dict import UnnamedDict
from crummycm.validation.types.values.element.numeric import Numeric
from crummycm.validation.types.values.element.text import Text
# from crummycm.validation.ty... | [
"jackbburdick@gmail.com"
] | jackbburdick@gmail.com |
bdf68b56c5eb18f09a7ad8ccc33d711cf58a4939 | bebc8db5f0da1a0e44bc99a5d4922243a7d5ccdf | /LAB_0_MFAA.py | 83cf2930c9c789a554455f994156dd1a25528fab | [] | no_license | MaferAnso/LAB_0_MFAA | 3d29825fa112a950a0e40599daf28b9a4b714d2d | 502a69c20df4768b57ee28af2d35e8874e639125 | refs/heads/master | 2020-12-23T17:26:02.477897 | 2020-02-24T14:15:29 | 2020-02-24T14:15:29 | 237,217,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,134 | py | # -- ------------------------------------------------------------------------------------ -- #
# -- Proyecto: Repaso de python y análisis de precios en OANDA -- #
# -- Codigo: Laboratorio_0 -- #
# -- Rep: https://github.com/MaferAnso/LAB_0_MFAA -- #
# -- A... | [
"mafer.ansoleaga@gmail.com"
] | mafer.ansoleaga@gmail.com |
dd983b475450134d57eea146369f3c3af92487a9 | c3c9f799c6163162d31916968eab9bc827f6fd7c | /trainlesk.py | d52736afb1a27dbb54ae839f4758993e52da67c0 | [] | no_license | Sayan-m90/Thats-Punderful | b52faba8574a37bed5059572c29f306605a81bf3 | 3885553d98575df003bc4a13173d4f17784384e5 | refs/heads/master | 2021-09-05T17:45:45.565902 | 2018-01-30T01:46:18 | 2018-01-30T01:46:18 | 119,462,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,892 | py | from __future__ import division
from nltk.corpus import wordnet as wn
from nltk.stem import PorterStemmer
from itertools import chain
from nltk.corpus import stopwords
import csv
from sklearn import tree
import pdb
import string
from sklearn.metrics import confusion_matrix
from sklearn.model_selection import GridSearch... | [
"noreply@github.com"
] | Sayan-m90.noreply@github.com |
0a9ceb15dff10ffe4f727308fc88a2b199140f7d | e6bbdf531b4c6452be6d007829d9ff8da5a5c42a | /tests/test_local_planner.py | 586bc8b27cb87b34577f017a06b2fda1fd93921d | [] | no_license | DevotionZhu/simple_scenario_validation | e3c3e61a72c3d4774514c3a116088bfef88c470c | b84a9f0d6c5023171526f37fa8b36edb4308f714 | refs/heads/master | 2022-01-15T06:52:15.312433 | 2019-07-17T13:35:46 | 2019-07-17T13:35:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | import carla
from utils.local_planner import LocalPlanner
from utils.in_memory_map import InMemoryMap
ip = "10.51.6.52"
port = 2006
client = carla.Client(ip, port)
world = client.get_world()
world_map = world.get_map()
local_map = InMemoryMap(world_map)
local_map.setup()
vehicle = world.get_actors().filter('vehicle... | [
"pravinblaze@hotmail.com"
] | pravinblaze@hotmail.com |
87610080866d9cad3191923528acbeeed82d6233 | 547548a6ae8db52b1b183d6f3ba3ad63f4247962 | /train/gen/kl/paths.py | 5bc1abac26c206f66572dc7988a9abdd8620b8c0 | [
"MIT"
] | permissive | jeffkrupa/SubtLeNet | 21870c8cc88080c101edffb414832d863c299455 | e0e74b7a0a1c76fd6d6e21c80ce57302a2cd6b6f | refs/heads/master | 2022-06-25T16:33:36.427635 | 2022-06-10T16:15:53 | 2022-06-10T16:15:53 | 187,670,116 | 0 | 2 | MIT | 2019-08-02T20:26:20 | 2019-05-20T15:44:13 | Python | UTF-8 | Python | false | false | 288 | py | #basedir = '/fastscratch/snarayan/genarrays/v_deepgen_3/'
#figsdir = '/home/snarayan/public_html/figs/deepgen/v3/'
basedir = '/data/t3serv014/snarayan/deep//v_deepgen_4_small/'
figsdir = '/home/snarayan/public_html/figs/deepgen/v4_kl/'
from os import system
system('mkdir -p '+figsdir)
| [
"sidn@mit.edu"
] | sidn@mit.edu |
c185379f5cef1cca71aa3cc90ae80bd7a5f7afef | f03621c7ad9ee423439e55fba23f6ffa53fc8599 | /src/python/07-test-grapy.py | 46459f0870aaecebf3c37cf739658f6e778485c2 | [] | no_license | kimkangbo/mlforhighschool | 313c059db83350f5f30efedb22e9ae0225e55b08 | 9fc8fbc5574a8dbf973bdddaf8130eea1c49fe59 | refs/heads/master | 2021-06-03T16:26:40.529569 | 2020-05-17T15:56:22 | 2020-05-17T15:56:22 | 135,787,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,631 | py | # Example of solving simple linear (y(x) = mx + b) regression in Python.
#
# Uses only Numpy, with Matplotlib for plotting.
#
# Eli Bendersky (http://eli.thegreenplace.net)
# This code is in the public domain
from __future__ import print_function
from matplotlib import cm
from matplotlib.animation import FuncAnimation
... | [
"kimkangbo@gmail.com"
] | kimkangbo@gmail.com |
a904615bd096feb7bf4831dd78ed92d7eebcda1f | 8293eea2e15ea057ffcc496f528dddd48b0ee2cd | /script/luatex_node_inspect.py | d3183f62449dbc293ec5e7d33bcdcc83ed793fa6 | [] | no_license | xziyue/luatex-node-inspect | 5a0c162a4c50eb47e8935872b46cb433f16253d9 | 7ba1e80f60dadb337bb231a4c92f3831e256a915 | refs/heads/master | 2023-01-24T16:25:21.295622 | 2020-12-15T16:25:50 | 2020-12-15T16:25:50 | 321,552,792 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,315 | py | import copy
import re
import os
import json
__node_common_field = [
'id', 'prev', 'next', 'subtype'
]
__node_id = {
0: 'hlist', 1: 'vlist', 2: 'rule', 3: 'ins', 4: 'mark', 5: 'adjust', 6: 'boundary', 7: 'disc', 8: 'whatsit',
9: 'local_par', 10: 'dir', 11: 'math', 12: 'glue', 13: 'kern', 14: 'penalty', 15:... | [
"xziyue@qq.com"
] | xziyue@qq.com |
71fd4b0019784bfea40cddbd9b8a5bf51b2edb78 | 4dabe29fcc463c334530b5dac48c9009a803cdda | /Levinson-Durbin.py | 0bedd09c4e00cb1ba827a758a7296f9ae912137b | [] | no_license | Abdel-Malik/Projet_ASAR | 7567934426fe7cbcc328774f90f7bec152a00bd2 | 8d9b089c531845f94a293b371329f6a11e5abfa0 | refs/heads/master | 2021-01-18T22:22:31.649306 | 2017-04-24T09:30:02 | 2017-04-24T09:30:02 | 87,048,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,731 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Apr 10 18:00:01 2017
@author: ledentp
"""
# Caclul du vecteur contenant les coefficients d'autocorrelation
# Yn est le vecteur des donnes
# R est un vecteur contenant les coefficitens d'autocorrelation
# Complexite O(n*n)
def coeffsAuto(Yn,p):
# r ... | [
"noreply@github.com"
] | Abdel-Malik.noreply@github.com |
53f22c793897b67ba555bf2fec3f3bd3b6be2bb4 | 343885d6a1901a045c79132d25fad91f21be3626 | /cs224n/a5/model_embeddings.py | 0992b20a7cb2eece2be4925cd100e48b9d2ddd8c | [] | no_license | DeCinB/nlp_learning | 04acf0c2e6c2b89e7496013338623106505bf497 | 251387484d09add52d7a0f24ac89deb8b6633fd9 | refs/heads/master | 2023-01-31T03:17:06.442021 | 2020-12-09T15:12:27 | 2020-12-09T15:12:27 | 319,951,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,752 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
CS224N 2019-20: Homework 5
model_embeddings.py: Embeddings for the NMT model
Pencheng Yin <pcyin@cs.cmu.edu>
Sahil Chopra <schopra8@stanford.edu>
Anand Dhoot <anandd@stanford.edu>
Michael Hahn <mhahn2@stanford.edu>
"""
import torch.nn as nn
# Do not change these imp... | [
"1481410986@qq.com"
] | 1481410986@qq.com |
e11d12473f0b5708c3e7481974b91923f8e075f3 | c021c17736f8839d66d2f875cc37b48c319b74f3 | /disabler.py | 5a9752613cf1e1f81f1899be366f28e4b2c2a6f2 | [] | no_license | bianfusia/WinKeyDisabler | 310363a2b85aac36e9bbd897e9bd65e35c64c55d | c5e6b4689ef59d0c2c866b984aa1967d02eab626 | refs/heads/master | 2022-12-02T07:01:46.145850 | 2020-08-11T15:00:22 | 2020-08-11T15:00:22 | 267,564,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | import keyboard
keyboard.block_key('left')
input("this is included here to make a persistent console to ensure script stays alive.")
| [
"noreply@github.com"
] | bianfusia.noreply@github.com |
81a9468e822101750e73217c4b2e6d17f02e75b2 | 7a3fc3ea3dd71e4ec85ac73e0af57ae976777513 | /.history/flaskblog_20210524215327.py | 3dc704c3d526e4ab9cbfa1dbab452f4fb649c5bb | [] | no_license | khanhdk0000/first_proj | 72e9d2bbd788d6f52bff8dc5375ca7f75c0f9dd0 | bec0525353f98c65c3943b6d42727e3248ecfe22 | refs/heads/main | 2023-05-12T10:36:08.026143 | 2021-06-05T15:35:22 | 2021-06-05T15:35:22 | 374,148,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
@app.route('/home')
def hello_world():
return render_template('home.html')
@app.route('/about')
def about():
return render_template('home.html')
if __name__ == '__main__':
app.run(debug=True) | [
"khanhtran28092000@gmail.com"
] | khanhtran28092000@gmail.com |
40801f7d40c23e8ef9fd71aef06229192814b53d | 738b6d6ec4572f5848940b6adc58907a03bda6fb | /tests/pymcell4_positive/3000_reports_check/model.py | 03fdbc184e2cc0fea4c8bae504524b1bb53ba093 | [
"MIT",
"Unlicense",
"LicenseRef-scancode-public-domain"
] | permissive | mcellteam/mcell_tests | 09cd1010a356e0e07c88d7e044a73c5606c6e51a | 34d2d967b75d56edbae999bf0090641850f4f4fe | refs/heads/master | 2021-12-24T02:36:24.987085 | 2021-09-24T14:19:41 | 2021-09-24T14:19:41 | 174,733,926 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,470 | py | #!/usr/bin/env python3
import sys
import os
MCELL_PATH = os.environ.get('MCELL_PATH', '')
if MCELL_PATH:
sys.path.append(os.path.join(MCELL_PATH, 'lib'))
else:
print("Error: variable MCELL_PATH that is used to find the mcell library was not set.")
sys.exit(1)
import mcell as m
params = m.bngl_utils.load... | [
"ahusar@salk.edu"
] | ahusar@salk.edu |
19c958c9aeb6d3f7038d4699459b22ccbfeb451c | 693a6631f854e04775f546cef91af3e93d6c6f27 | /blog/models.py | 02091040fa991fedd038588cfb640164121cbb65 | [] | no_license | edsonjnior/my-first-blog | ff9c2d90466ac177acc9652b6b7f8f1c93327444 | f245216761ff69face9ee5bfb25684d8f2c03017 | refs/heads/master | 2020-03-22T11:55:50.819475 | 2018-08-20T23:29:48 | 2018-08-20T23:29:48 | 140,005,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | from django.db import models
from django.utils import timezone
class Post(models.Model):
author = models.ForeignKey('auth.User', on_delete=models.CASCADE)
title = models.CharField(max_length=200)
text = models.TextField()
created_date = models.DateTimeField(default = timezone.now)
published_date =... | [
"edsonjnior@gmail.com"
] | edsonjnior@gmail.com |
55c7a91a2d15442966a2c78923fa3cc202a4b7c3 | 2331bca795bf4dff9b58e05b18922847fd401818 | /Search Algorithms/BFS.py | 3fa5036a36439ece39558cf04ad92731c3fe948c | [] | no_license | MrAliTheGreat/AI_Projects | 794fe46754ca16324294dc08d255cda26304f0c0 | 6b25079473dcc4343fd5be6c998621f7f2dbb59d | refs/heads/master | 2023-07-27T21:26:28.124077 | 2021-08-20T08:55:12 | 2021-08-20T08:55:12 | 352,749,710 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,416 | py | import time
class State():
def __init__(self, curLoc_x , curLoc_y , curCapacity , curNumRemainingBalls , needDelivery , hasPicked ,
parentState=None , depth=0):
self.curLoc_x = curLoc_x
self.curLoc_y = curLoc_y
self.curCapacity = curCapacity
self.curNumRemainingBalls = curNumRemainingBalls
self.needD... | [
"alibahari007@gmail.com"
] | alibahari007@gmail.com |
be2a2cffd88039d7e883315a60934503019a8713 | c313288fe7a31f75e562afec42ef82ce79001cae | /tests/test_main.py | c04ef37849bff81f033be8c44f2bf8b67abd37fb | [] | no_license | 3slab/pygisapi | 1ba4138da13152c9152cac3f7e34462529f7d810 | ccead89919a9ef342d36bedfc528b906bfd9930d | refs/heads/master | 2022-12-12T14:40:27.985938 | 2020-10-02T14:45:01 | 2020-10-02T14:45:01 | 221,058,634 | 1 | 0 | null | 2022-12-08T10:54:47 | 2019-11-11T19:53:50 | Python | UTF-8 | Python | false | false | 188 | py | # -*- coding: utf-8 -*-
from . import client
def test_home():
response = client.get("/")
assert response.status_code == 404
assert response.json() == {'detail': 'Not Found'}
| [
"jonathan.bouzekri@gmail.com"
] | jonathan.bouzekri@gmail.com |
abbfb2d604c1dd871e29b62445be0039b0e26849 | f64e9de2a5f8cd677180172591256a651fe20cbc | /examples/list1.py | 8a18ad28e39f8a252c7df3374926d0a7605803f6 | [
"MIT"
] | permissive | schlichtanders/pyparsing-2.0.3-OrderedDict | c85455a65ea610a959a41d035175912ba3762e11 | 50bb1a10b63ac623ef58ffa3ee59bb08be172ff4 | refs/heads/master | 2021-01-10T04:07:10.044763 | 2015-10-23T11:03:14 | 2015-10-23T11:03:14 | 44,807,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,660 | py | from pyparsingOD import *
# first pass
lbrack = Literal("[")
rbrack = Literal("]")
integer = Word(nums).setName("integer")
real = Combine(Optional(oneOf("+ -")) + Word(nums) + "." +
Optional(Word(nums))).setName("real")
listItem = real | integer | quotedString
listStr = lbrack + delimitedLi... | [
"Stephan.Sahm@gmx.de"
] | Stephan.Sahm@gmx.de |
7d7faf9f09aff41374a60d36ae6d52a4afb8344f | e5ee1b485c0dc12f8e1121daeff9a4d78a40f9f9 | /travesty/__init__.py | cf9ae069a98ed1267b27bf435630b1995b526cbe | [] | no_license | CodeMan99/travesty | ac2e194f6c7a326891460ffae176ceb5b6f55f72 | 0357d1db9db6ff3b1bf249628c5522f7d6308f4e | refs/heads/master | 2021-01-17T23:04:01.341515 | 2016-09-24T03:19:39 | 2016-09-24T03:39:14 | 34,356,089 | 0 | 0 | null | 2015-04-21T22:47:40 | 2015-04-21T22:47:39 | Python | UTF-8 | Python | false | false | 1,979 | py | from .base import Leaf, unwrap, core_marker, GraphDispatcher, Marker
from .base import Wrapper, Traversable, to_typegraph, make_dispatcher
from .base import graphize, validate, dictify, undictify, associate_typegraph
from .base import clone, mutate, traverse, IGNORE, CHECK, CHECK_ALL
from .datetypes import DateTime, Da... | [
"dplepage@gmail.com"
] | dplepage@gmail.com |
0ae0b7cc11a68a67ca5c8f5f511bf81476008878 | 54c850a8d5f02295020ca5caf1f0b74167b3adf5 | /3 - Infection Transmission/calculate_rdmst.py | 810d0ffdd376ce9551a74570e9cceb61a7424459 | [] | no_license | ThisIsRoy/Algorithmic-Thinking-Projects | 9706e00d308bb9ffb0d2f2e4de10258d4f68b460 | 70215fcb14f6f0e2d4c6b3d1ee7325d50814b687 | refs/heads/master | 2021-04-04T06:16:27.985614 | 2018-04-30T05:15:12 | 2018-04-30T05:15:12 | 125,116,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,726 | py | from collections import *
from copy import *
def compute_rdmst_helper(graph, root):
"""
Computes the RDMST of a weighted digraph rooted at node root.
It is assumed that:
(1) root is a node in graph, and
(2) every other node in graph is reachable from root.
Arguments:
... | [
"rs58@rice.edu"
] | rs58@rice.edu |
0cb8793177ffef90d8390d28c3b577deb8cb9e29 | 370e95125f5bd6ba4103a04aa9492035f7dc5994 | /lab4/patterns/pattern06.py | 25bb9512a6546ac451f992bf709f8bdda9aba59e | [] | no_license | TariniS/lab4_CS | 1c074a89b5be32676cb6ce56603ce849f98f87cc | 17e36d490a557db9492a36f19a7c37b66e3923bc | refs/heads/main | 2023-02-04T01:37:14.565019 | 2020-12-21T22:09:09 | 2020-12-21T22:09:09 | 323,458,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | import driver
def letter(row,col):
if((row==col)or((col+row==6))):
return 'X'
else:
return 'O'
if __name__ == '__main__':
driver.comparePatterns(letter)
| [
"noreply@github.com"
] | TariniS.noreply@github.com |
4eb772561fe04abfb679dd1063c0227fdab4288c | dffc8bb91840e85a102a3680a409bc03a2c2cda4 | /routers.py | 7be903ab25b6c413e1645d397179076474aa4632 | [] | no_license | quanted/qed_pisces | 0cca18bc6f1c97c4e3aa25cc468a57ec446639cc | 7a3a84a697ac193d440db3fc84d66abfed3e01d7 | refs/heads/master | 2021-05-01T23:52:43.294938 | 2017-10-16T17:04:04 | 2017-10-16T17:04:04 | 78,057,905 | 0 | 1 | null | 2017-10-16T17:04:06 | 2017-01-04T22:24:07 | Python | UTF-8 | Python | false | false | 1,180 | py | #Class for pisces_db routing
class PiscesRouter(object):
"""
A router to control all database operations on models in the
pisces application.
"""
def db_for_read(self, model, **hints):
"""
Attempts to read hem models go to pisces_db.
"""
if model._meta.app_label == '... | [
"kurt.wolfe@gmail.com"
] | kurt.wolfe@gmail.com |
98096f66b312e6ddd29fff6907327916490295c7 | e8294bb01d47a59745065bf50ca718d1321c7184 | /accounts/urls.py | e8227847fe408eb693d9683b54ea4ac58eb4699e | [
"MIT"
] | permissive | ko-naka-3010527/accup-python | 59164929ae2eadef5820f2f0b8c2edbd92f78c19 | e10ff96111be889573d830f4b710d9b8b19e1828 | refs/heads/master | 2023-03-22T04:46:52.998623 | 2021-03-18T05:15:16 | 2021-03-18T05:15:16 | 348,617,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 889 | py | from django.urls import path
from . import views
app_name = 'accounts'
urlpatterns = [
path('', views.index, name='index'),
path('<str:fmt>/', views.index, name='fmt'),
path('html/login/', views.login, name='login'),
path('html/redirect/', views.login_redirect, name='loginredirect'),
path('html/log... | [
"ymbk@k-off.org"
] | ymbk@k-off.org |
a042d6383847e72133f0b16ca96826a94468373b | cb8c9fd1699d26afaa656396c7636f398b77ae0a | /musicdisplay/myapp/views.py | 94d1e8b5d98ff920bb75c07420e0ab39036691f3 | [] | no_license | JannyBiubiu/DAM | 98d305a40b941d2c7b7115f1a00193cd2065afe1 | ffe81d582c001236b631f2e0c25df5d711343cc6 | refs/heads/master | 2020-03-31T11:59:04.332152 | 2018-11-15T16:32:16 | 2018-11-15T16:32:16 | 152,198,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,918 | py | """
Routes and views for the flask application.
"""
#-*- coding:utf-8 -*-
from datetime import datetime
from flask import render_template,request
from myapp import app
import os
import json
with open("./myapp/static/meta.json","r+",encoding="utf-8") as code:
obj=json.load(code)
fields=obj["media_src"]
def getmeta(pa... | [
"3160102525@zju.edu.cn"
] | 3160102525@zju.edu.cn |
44bccce4581a9be8d40ef02613ab79ebd72ed817 | ba98e2171d38c85ddc122cb35b400df30c952cd6 | /translifyapp/migrations/0001_initial.py | 8969cb9d1c1107c49d17b532ffb9a14f60b156c3 | [] | no_license | dbribe/DemoANPR | 5f760b39aaa324be2539e3366bddd5b3516550e7 | 4cbc761b97d67685faa6586b2e671aa57e49621b | refs/heads/master | 2020-03-21T09:50:34.174266 | 2018-06-25T16:49:54 | 2018-06-25T16:49:54 | 137,877,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,901 | py | from django.contrib.postgres.operations import CITextExtension
import django.contrib.postgres.fields.citext
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import translifyapp.models
class Migration(migrations.Migration):
initia... | [
"kir141996@gmail.com"
] | kir141996@gmail.com |
fd2c1ef20a11bfa71fa0c756a103e4bc46115f21 | 27ac3a2b2ee81d43d0381f50fbe4c866e90d2c25 | /crm/migrations/0001_initial.py | 02b533913f06aaf65fb971fa6aca167a99ef4097 | [] | no_license | Anzalsk/crm | 3557288517a9980e9ed9f13dea27827aff299940 | 5378b60bd1775ec8f671d72da2b78ff0b528be65 | refs/heads/main | 2023-02-22T03:29:31.931947 | 2021-01-29T13:40:31 | 2021-01-29T13:40:31 | 334,154,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | # Generated by Django 3.1.5 on 2021-01-20 09:51
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Customer',
fields=[
('id', models.AutoField... | [
"ejaz.sk124@gmail.com"
] | ejaz.sk124@gmail.com |
3f6b280bdd02b4576ac013f02d7caa5265b2339d | fc9bf6483a22dff83c6251e1425fa494f7a41563 | /main.py | b141641a5ef525c00516c617f3d7a0524ee8c5f6 | [] | no_license | nicholasosto/Trembus-Tech | dc390ba07850ef53c58ec6d211635b5adcb0ba67 | a9ab1ee054dacc07549b77ad16c414fe987686af | refs/heads/master | 2016-09-09T17:56:59.063235 | 2014-07-31T22:18:50 | 2014-07-31T22:18:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 823 | py | import os
import urllib
from google.appengine.api import users
from google.appengine.ext import ndb
import jinja2
import webapp2
JINJA_ENVIRONMENT = jinja2.Environment(
loader = jinja2.FileSystemLoader(os.path.dirname(__file__)),
extensions = ['jinja2.ext.autoescape'],
autoescape = True)
class MainPage(webapp2.... | [
"nicholasosto@Nicholass-iMac.local"
] | nicholasosto@Nicholass-iMac.local |
71a647bc0c4861ce9748d1653962bd9272ed223d | 7f32426d36f10d57bc52382a03132093830434eb | /reindeer/sys/handler/user.py | c7b27e2c4e448e0046f45584b0c6f4c1952145a2 | [] | no_license | CuiVincent/MCMS-Python | a7b5b922f3ae5352f0535a9c42b92b76f06db73e | 07f1b8c811d0eb23ebe9bf91ab17d0a6eaa692bd | refs/heads/master | 2022-07-10T16:06:40.863179 | 2015-06-20T14:53:31 | 2015-06-20T14:53:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,413 | py | __author__ = 'CuiVincent'
# -*- coding: utf8 -*-
import reindeer.sys.base_handler
from reindeer.sys.model.sys_user import SysUser
from tornado.escape import json_encode
import random
from reindeer.sys.exceptions import BusinessRuleException
class UserListHandler(reindeer.sys.base_handler.BaseHandler):
def get(se... | [
"xoyoshin@gmail.com"
] | xoyoshin@gmail.com |
5b204d08c098c4b40f0d851978139606c080d14f | bc42b64d28ef03622cc1de3fc22d25c0f4ef5e6d | /bsPipe/bs_ui/bsui_asset/bsui_assetManager.py | 46faf6eed6c45bb3cb225d4dee63c07c69b40c93 | [] | no_license | amolrupnar/bsPipe | fcc032f5c74c12497291e3ee1f582d4cc728ad22 | db9c0039e7fae8d856f7b3f34c2bca18fd588272 | refs/heads/master | 2021-08-30T20:12:53.319618 | 2017-12-19T08:54:17 | 2017-12-19T08:54:17 | 113,181,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,429 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'D:/bsw_programation/01_maya/Pipeline/bsPipe/bsPipe/bs_ui/bsui_asset/bsui_assetManager.ui'
#
# Created: Tue Dec 19 12:41:12 2017
# by: pyside-uic 0.2.14 running on PySide 1.2.0
#
# WARNING! All changes made in this file will be lost!
fr... | [
"crashsonu@gmail.com"
] | crashsonu@gmail.com |
720fc250757a422d1392d63e837b0e5d97ab5faa | 114d78320fb2bcd99c9dc802a3ed5bab47c537e6 | /ksp_scraper/tests/user_utilities_test.py | a78de591f5e943dd497f3a80ac7faf51078f5014 | [] | no_license | johnnie172/scraper-web-app | 1d36ffe9e476c0590c023e4907bbf0d44e0e7539 | 2b6c72c4d34a5a30c485c90f879aab30325af25d | refs/heads/master | 2023-03-28T14:47:37.148053 | 2021-02-28T10:17:50 | 2021-02-28T10:17:50 | 336,233,542 | 0 | 0 | null | 2021-02-28T10:17:51 | 2021-02-05T10:07:30 | Python | UTF-8 | Python | false | false | 429 | py | import unittest
from unittest import mock
import UserUtilities
import consts
class TestUserUtilities(unittest.TestCase):
# @mock.patch('builtins.input', side_effect=["walla@walla.com", "123456", "gmail@gmail.com", "123456"])
# def test_user_login(self, side_effect):
# self.assertEqual(users_utilities... | [
"jmpstillsart@gmail.com"
] | jmpstillsart@gmail.com |
acc4182cbee129776c793f9c60c02d618d834485 | 59e53439e205f7252bef8fe72d658211c9f22bf8 | /{{cookiecutter.project_name}}/{{cookiecutter.app_name}}/migrations/__init__.py | 9f19b1712a5651649c6cf8441e26cbc63005d765 | [] | no_license | D-Bits/Django-Cookiecutter | 291a991620777e5569d484ac2bc2d4ba14f31b5f | 7c4a653eb61f386b6379422508cd868c27838a2d | refs/heads/master | 2023-04-29T20:02:53.231144 | 2019-12-05T01:31:56 | 2019-12-05T01:31:56 | 212,965,058 | 0 | 0 | null | 2023-04-21T20:40:40 | 2019-10-05T08:06:04 | Python | UTF-8 | Python | false | false | 24 | py | # Package for migrations | [
"Dana.Lockwood2@seattlecolleges.edu"
] | Dana.Lockwood2@seattlecolleges.edu |
7d7c1bbc6e3d39f628484db6de2dbae30a640adc | 95a08c7d63e7b47b42f4a56a40615e6fd7ddfd10 | /venv/bin/easy_install | 9742d91681c24d9fab91db729019ea86bac73878 | [] | no_license | ShahrokhGit/take-a-break | 361569c8f43023f69a2615debc05e6fdb6c3e45b | 40e475603847e9ec6438b2727d6763242e179d92 | refs/heads/master | 2020-04-14T02:34:15.495333 | 2019-01-07T06:39:33 | 2019-01-07T06:39:33 | 163,585,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | #!/Users/shahrokh/Documents/ShahProjects/take-a-break/venv/bin/python3.7
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"shahrokh.zita@gmail.com"
] | shahrokh.zita@gmail.com | |
b626e2a94b9b88f526ed11ae5ece091ffd01df8a | 7e99ded7f8f300651f99e4b8b295d6f4bccb9a85 | /venv/Scripts/django-admin.py | 47f2b0ed24a9536a97ee93d864b73b1fb1bb7597 | [] | no_license | Godwinjthomas/Full-stack- | 075b604c590fab1ca15660e1fc8b30e1308edc6e | eb51942913ae2134584c3dd42e2002c0a9ef5879 | refs/heads/master | 2023-07-02T17:58:23.468193 | 2021-08-04T12:39:25 | 2021-08-04T12:39:25 | 392,565,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 707 | py | #!c:\users\godwin\pycharmprojects\textoperations\venv\scripts\python.exe
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise ImportError(
'django... | [
"87801046+Godwinjthomas@users.noreply.github.com"
] | 87801046+Godwinjthomas@users.noreply.github.com |
4e36fc5436291385399f6f1b6bcdf595e9102b42 | bbc0c6116117ab835d8fe28d4aa1dedb2a64200e | /SplashScreen.py | 7f24c3bb07298516e86d55b3df98ca2e97bbf149 | [] | no_license | osakhawalkar/tartanhacks18 | 4aa2ae84d29592491e02bd675da8ffe08bebfb3d | cf9384b0e0ad9231dccc75e92a3e26feab2d4cf5 | refs/heads/master | 2021-05-01T19:52:58.597937 | 2018-02-10T20:26:15 | 2018-02-10T20:26:15 | 120,954,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,838 | py | from tkinter import *
def startScreen(canvas,data):
canvas.create_rectangle(0, 0, data.width, data.height,
fill='AntiqueWhite1', width=0)
(helloX , helloY) = data.hello
#canvas.create_rectangle(helloX - 60 , helloY - 20, helloX + 60, helloY + 20, width= 5, fill = "grey... | [
"noreply@github.com"
] | osakhawalkar.noreply@github.com |
6546eaac9531d7194aec8eac4caf36a6fda8ad87 | 249a30f5d0913dfd0f289f59d4943bf9253f847d | /del_bupp_files.py | e5ca01b04890817a6b1a02dac6b18fa52f23cc83 | [
"MIT"
] | permissive | SciLifeLab/standalone_scripts | 40d45c6a55ee89ec5ee089d6893df22d544d882f | cc3c6c13395d463b21764a2c7d3e950a002ff21a | refs/heads/master | 2023-05-12T08:56:24.927233 | 2023-05-08T13:36:10 | 2023-05-08T13:36:10 | 24,371,145 | 4 | 23 | MIT | 2023-05-08T09:37:09 | 2014-09-23T12:50:27 | Python | UTF-8 | Python | false | false | 2,278 | py | #!/usr/bin/python
"""A script to clean up among files which will be backed up on tape.
slightly adapted from the original, kindly supplied by it-support@scilifelab.se.
"""
import glob
import datetime
import os
import argparse
import sys
def main(args):
files = glob.glob("/home/bupp/other/*")
for f in files:... | [
"alneberg@kth.se"
] | alneberg@kth.se |
d2532abf4853a00083e27afaff4c1ee3781091b1 | b92d59b1d78276c2f642b640fbb495fa85e222c9 | /debugger_tools/sitepackages_libs/pygments/styles/borland.py | e7494b0b556f302ed49dc2d3d8cb49a7d0731409 | [] | no_license | tin2tin/weed | d69d27ed9fb0273d0bbcbcf6941d9d9bfd4bbb44 | dade41a9f6e82a493d4817d53a5af3dcdf31f21c | refs/heads/master | 2020-12-27T06:21:09.047047 | 2020-02-02T18:03:15 | 2020-02-02T18:03:15 | 237,793,836 | 0 | 0 | null | 2020-02-02T15:43:25 | 2020-02-02T15:43:25 | null | UTF-8 | Python | false | false | 1,613 | py | # -*- coding: utf-8 -*-
"""
pygments.styles.borland
~~~~~~~~~~~~~~~~~~~~~~~
Style similar to the style used in the Borland IDEs.
:copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
from pygments.style import Style
from pygment... | [
"cristian@blender.cl"
] | cristian@blender.cl |
6cb5a5e75a9c8324286d70e2893b91e427710002 | 60cbdf1f9771159f872e632017fa736800784297 | /Codewars/Find-the-odd-int.py | c1567718b97f70ca035fd5cb5332e8b15ddf1595 | [] | no_license | AG-Systems/programming-problems | 6ea8c109f04c4d22db6e63fe7b665894c786242a | 39b2d3546d62b48388788e36316224e15a52d656 | refs/heads/master | 2023-04-16T16:59:20.595993 | 2023-04-05T01:25:23 | 2023-04-05T01:25:23 | 77,095,208 | 10 | 3 | null | 2019-10-14T16:16:18 | 2016-12-22T00:03:14 | Python | UTF-8 | Python | false | false | 355 | py | def find_it(seq):
hashtable = {}
for x in seq:
if x in hashtable:
hashtable[x] += 1
else:
hashtable[x] = 1
for key,val in hashtable.items():
if val % 2 != 0:
return key
"""
def find_it(seq):
for i in seq:
if seq.count(i)%2!=0:
... | [
"noreply@github.com"
] | AG-Systems.noreply@github.com |
d1d7b3d188456c9ce66966bb6625e2af07ecdf85 | e6b41b3c70ce572c64fdb7ea475f426945190ab2 | /lab10.1.py | f9432834f94bad6bac8ac92dc88c1fac5cc0f268 | [] | no_license | CodeLyokoZ/lab_Ex | fd6f7be963c8a80b9810a21705b3e974e6d963c8 | a0081b288fcd4b16182d5b4d278d9a3ed17148c1 | refs/heads/master | 2022-06-17T14:53:29.504476 | 2020-05-12T17:20:09 | 2020-05-12T17:20:09 | 257,349,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,415 | py | def read_file(filename): # funtion for read file
file = open(filename, 'r')
content = list(map(int, file.read().split(',')))
print(content)
file.close()
return content
def save_file(filename, content): # funtion for save file
file = open(filename, 'w')
file.write(content)
file.close... | [
"noreply@github.com"
] | CodeLyokoZ.noreply@github.com |
590718870c9a1af82d2b270b04cdca68e6a53547 | d9366ddca913f561474ecfbf7b613c2da41ac974 | /posts/forms.py | 81907dab299da60530ef724fc0295167a7c661d4 | [
"MIT"
] | permissive | Duskhorizon/discoplaytogether | cba2b1e510e79166bac5dfe4ea0296fab42f153a | e74a11b0f65d14db6f15d1bb0536411dd546eda6 | refs/heads/master | 2021-03-15T09:43:56.634236 | 2020-04-05T14:12:49 | 2020-04-05T14:12:49 | 246,829,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 768 | py | from django import forms
from django.forms import ModelForm
from .models import Event, Game
from .widgets import XDSoftDateTimePickerInput
class EventForm(ModelForm):
title = forms.CharField(label='Nazwa wydarzenia:')
description = forms.CharField(label='Opis:')
game = forms.ModelChoiceField(queryset=Game... | [
"duskhorizon.ggmu@gmail.com"
] | duskhorizon.ggmu@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.