blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6bae26654c6acef28516545d310b66c3a0191796 | b71fbf427779ec10ab88a9b6d16f8797e24f23c9 | /my_env/bin/epylint | 2d22a7c468ec7552fefef37ee703dc59a0e47722 | [] | no_license | Promphut/mydjango | a01b2d9f7814f697a37b3a7daf9b3cfa3ce9a7b1 | 7aecac416dc8c9af4eb3ff9027f1c451b7c25966 | refs/heads/master | 2020-04-23T04:45:35.631874 | 2019-02-15T19:38:16 | 2019-02-15T19:38:16 | 170,918,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | #!/home/petch/Desktop/project/django-test/my_env/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_epylint
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run_epylint())
| [
"phiphut.ch@gmail.com"
] | phiphut.ch@gmail.com | |
636f0fdca26af0cf9e7468e5467418ca250a8028 | 42f13ecc7c3ca22bab065220c7569d1b9b4f2163 | /face_detection.py | a1611179eb19594bd44fe5d605addffd365f47e2 | [] | no_license | akashshah03/Face-Detection-using-python | bc35b9413a17ffe0d82ff4862f3a01a54284aa91 | 48ad8e766ba3ac43e7cc91ff1c0366f8d0ead164 | refs/heads/master | 2022-09-09T19:34:45.519757 | 2020-05-24T07:17:54 | 2020-05-24T07:17:54 | 266,486,176 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | import cv2
# Load the cascade
face_cascade = cv2.CascadeClassifier('haarcascade_frontalface_default.xml')
# To capture video from webcam.
cap = cv2.VideoCapture(0)
while True:
# Read the frame
_, img = cap.read()
# Convert to grayscale
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
# Detect the fa... | [
"akashshah.dsc@gamil.com"
] | akashshah.dsc@gamil.com |
82ab554569c52ce1941616bf24b0ee3e3cbbbc79 | 3fa0779fe2a16c7bd5786fa33a7f553ebb2c92d7 | /venv/bin/django-admin | e9a9621eef1a6ef34fe26183042426a58a730f9d | [] | no_license | RrodriguezM/djangoReact | 30465097b89bac2ce50f821db0e81a4085e213f0 | 72d607911301c84555d74d8702ecf38ddae392e5 | refs/heads/master | 2022-11-26T11:29:57.946424 | 2020-07-27T10:51:41 | 2020-07-27T10:51:41 | 282,705,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | #!/Users/rafaelrodriguez/Documents/GitHub/djangoReact/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"rafael.a.rodriguez.m@gmail.com"
] | rafael.a.rodriguez.m@gmail.com | |
f9439e8f937e64169b19a169fc685663650a40c3 | 01bf83cb0b6b3a559ee29cbefd86d400725d76a1 | /lockedfile.py | 71735650a6e9b2b8a013b808839d1b4c656d91a3 | [] | no_license | iJunkie22/finderbackdoors | 50841da42c35859ca77c46a63efe1c0657e50335 | 2cfa4b56e699877d357506047670bf4b1f595bfb | refs/heads/master | 2021-01-11T03:49:23.743586 | 2018-02-09T03:12:35 | 2018-02-09T03:12:35 | 71,385,609 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,167 | py | import os
import os.path
import stat
def binflagget(int1, rpad, flag_len=1):
return (int1 >> rpad) % (1 << rpad + flag_len)
def flagnpadlen(int1, exp_bit_len=None, *flag_lens):
work_bit_len = exp_bit_len
if exp_bit_len is None:
work_bit_len = int1.bit_length()
flag_sum = sum(flag_lens)
... | [
"ijunkie22@gmail.com"
] | ijunkie22@gmail.com |
20f07e2ad4bf3481e705987bfa10220dd8f0913d | 43604e15351734ba2e04ea75cba1657c7a1b6a09 | /Practical7/bankersAlgo.py | fa677f9ebae48a0ef1c797ed411a5071acbb6af5 | [] | no_license | ani1311/operatingSystemLAB | e898682e6cba268fc2138779aebae6609463663e | f09b469d080d2216ae7dee6227d494c601a21654 | refs/heads/master | 2020-04-27T02:46:53.161716 | 2019-04-02T05:16:40 | 2019-04-02T05:16:40 | 174,004,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,556 | py |
noOfResources = 3
process = [1,2,3,4]
aquired = [[1,3,2],[1,0,1],[0,3,2],[4,5,1]]
needed = [[2,1,1],[1,0,3],[5,6,3],[1,3,3]]
available = [4,2,4]
def Print():
print("%-20s%-18s%-18s"%('Process no','Aquired','Needed'))
print("%-20s"%(' '),end = "")
for _ in range(2):
for i in range(noOfResources... | [
"aniket.alur13111997@gmail.com"
] | aniket.alur13111997@gmail.com |
fc65c10732aa15e4f9e40c13517d56eff686a49e | d2dc0753adc03ba0f94c92498fe13b9d69d624a8 | /echobot/lib/python2.7/site-packages/watson_developer_cloud/alchemy_data_news_v1.py | e6ce7b315953f3a981ef5408583fc61678b8980c | [] | no_license | Markboerrigter/Sintbot | ed0ab0e85c592ffc87ad857c79a9c0ace9742314 | a8ec68297ee7ed72bf30a534636e68096855c23c | refs/heads/master | 2021-04-30T23:59:05.871466 | 2016-12-07T10:34:19 | 2016-12-07T10:34:19 | 79,110,244 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,939 | py | # Copyright 2016 IBM All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... | [
"mark@greenorange.com"
] | mark@greenorange.com |
aafb03a34640ee73b19ceca0c8b793e83b89c284 | 2405a31eda2604d4c23976ae72154c4c9603112b | /DungeonFinder/messaging/tests/test_campaign_messaging.py | 10d9f4e5e9a3c5cf520dff483e4ac83d12dcf251 | [] | no_license | tomhamiltonstubber/dundjeon-finder | 1e9194ffb8b606960bc7b71adb6bf2cb99b02faa | 182064e9ba09da11318de6d0a403119704db2450 | refs/heads/master | 2023-02-22T18:46:45.215750 | 2021-01-03T22:21:41 | 2021-01-03T22:21:41 | 319,379,761 | 0 | 0 | null | 2021-01-03T22:21:42 | 2020-12-07T16:33:08 | Python | UTF-8 | Python | false | false | 8,862 | py | from django.test import TestCase
from django.urls import reverse
from DungeonFinder.common.test_helpers import AuthenticatedClient
from DungeonFinder.games.factories.games import CampaignFactory
from DungeonFinder.messaging.factories.messages import MessageFactory
from DungeonFinder.users.factories.users import GameMa... | [
"tomhamiltonstubber@gmail.com"
] | tomhamiltonstubber@gmail.com |
30eaeb961ef4b87117f60c1d4d1fbb6327932614 | 6f9f30b6d82159de7d5c66ea130609584118e5bd | /mysite/library/migrations/0003_remove_visitor_tellphone.py | 20da9047314afe8ecf98f4e1fa9a0958d9ef3d8a | [] | no_license | arashi1214/Visitor-Registration | a4c63d76725a0da6fe6aaa8cd2ce5e8003f4dc0a | f4896020f3401079b3e74253f3a2ce1f8708dc1d | refs/heads/master | 2023-07-13T04:56:00.896991 | 2021-08-31T11:21:38 | 2021-08-31T11:21:38 | 382,020,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | # Generated by Django 3.2.5 on 2021-07-08 14:29
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('library', '0002_rename_connect_addres_visitor_connect_address'),
]
operations = [
migrations.RemoveField(
model_name='visitor',
... | [
"opp40519@gmail.com"
] | opp40519@gmail.com |
25bbdadef661bf791ba905765449eea02c40668f | 529a50b8ef8612cc32e2b1f0def7e329cfdd9290 | /scrapy/apps.py | 49ea53c3e4b341328129b9040d3a550219925ee5 | [] | no_license | pss2138/django_ebay_scrapy | cecf1ea8c867a5c4332f54429452f4dcfb09a1c2 | 7f2d787156d0bc60a90af59f4a213af7b549a9ce | refs/heads/master | 2022-12-08T16:45:53.953996 | 2020-09-09T02:29:01 | 2020-09-09T02:29:01 | 292,481,914 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | from django.apps import AppConfig
class ScrapyConfig(AppConfig):
name = 'scrapy'
| [
"pss2138@gmail.com"
] | pss2138@gmail.com |
0b765030b9c2753fc899b737637e0db413e6a969 | 066672f317976847bb2a5d9f1d8a9c951836bd24 | /2020/01 - Report Repair/part1.py | 19f855bf1f92c1185a63708e35d4e58509586980 | [] | no_license | dcthomson/Advent-of-Code | c546ba3ad2b71cc274fe3196993ef24f23c3f198 | 7a6a6481e5e40a9d490b4f7c3b908d41f9b878cb | refs/heads/master | 2023-09-04T10:54:57.412613 | 2023-08-28T18:28:10 | 2023-08-28T18:28:10 | 164,589,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | import sys
nums = []
with open(sys.argv[1], "r") as f:
for line in f:
nums.append(int(line))
for i in nums:
for j in nums:
if i + j == 2020:
print(i * j)
exit()
| [
"dcthomso@ndc.nasa.gov"
] | dcthomso@ndc.nasa.gov |
fadbf48ab4b9b3ac8bca2bcdcb82d07cbb002d77 | ddceca792d2ac3beadbaf5ac5f65044ffd7f2981 | /scripts/EmlServer.py | 7c276498486199d17651d76111a254e9d4501aca | [] | no_license | brieweb/EmailVerify | 9a7a33218a07055c6383fb127e702eef4a4ab487 | ba8e1f45f261e52b243b5e4a6a52a6c99d9ed05f | refs/heads/master | 2020-12-24T17:16:59.198275 | 2013-07-11T02:56:59 | 2013-07-11T02:56:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 997 | py | from datetime import datetime
import asyncore
from smtpd import SMTPServer
class EmlServer(SMTPServer):
no = 0
def process_message(self, peer, mailfrom, rcpttos, data):
filename = '%s-%d.eml' % (datetime.now().strftime('%Y%m%d%H%M%S'), self.no)
... | [
"brian@brie.com"
] | brian@brie.com |
b44081fa968b39c839109db375a834db69361a27 | a2e5f53978e9d5b4286b26788b16d4cb7d7e1322 | /custom_hs/Happycall_bak/HC_190107bu.py | 9e645d851aaa4f69e041b3059d37f82e96da851f | [] | no_license | hakseongkim/hakseong | dce3ace0b88db4228c09511eae06905075680eac | 234817b34cf2961409f4acabd4ca24a67120ac53 | refs/heads/master | 2021-04-15T16:04:49.755200 | 2019-03-25T06:46:52 | 2019-03-25T06:49:14 | 126,677,905 | 0 | 0 | null | 2019-03-25T06:49:15 | 2018-03-25T08:24:54 | null | UTF-8 | Python | false | false | 51,909 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
from concurrent import futures
import argparse
import grpc
import os
import random
from google.protobuf import empty_pb2
from google.protobuf import struct_pb2 as struct
import time
import syslog
import pymysql
import... | [
"36613711+hakseongkim@users.noreply.github.com"
] | 36613711+hakseongkim@users.noreply.github.com |
6a412f8211c39b15d51608475b79640b8e605c99 | 079f2de1a3f4851ff33dee6b5e5640a408d5f312 | /formulaire_alert.py | 24d2a45fca2641ad2d63167e57bd43bec70b4e5b | [] | no_license | FatenFrioui/selenium-python-unittest-smoke-report | 02dd079c06035205bd22cc2a3d4b70205ce1138a | 64b90eb5d837808cc5424ef715cd0f39666db440 | refs/heads/master | 2023-09-01T04:35:00.945116 | 2021-10-12T18:28:46 | 2021-10-12T18:28:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | import time
from selenium import webdriver
from selenium.webdriver.common.alert import Alert
from selenium.webdriver.common.keys import Keys
driver=webdriver.Chrome(executable_path="C:\webdriver\chromedriver.exe")
driver.get("https://www.tutorialspoint.com/selenium/selenium_automation_practice.htm")
driver.maximize_... | [
"faten.frioui.1@gmail.com"
] | faten.frioui.1@gmail.com |
f4676f06c2197e853bce2ca0135df3bc10bbcdaa | 77a5335a780571b2f99cb55f71bb753af8de9647 | /test1.py | 176ff50f7ecfd7e4a256976c5b5630db5a2170d6 | [
"MIT"
] | permissive | wangzhaowzt/WZT | 502efa7abc2bb85dbfa9da5f28e05f9ec85c295c | e4282c6d2ace03f35bce9942e8405cae91f62214 | refs/heads/master | 2020-03-20T23:24:22.747013 | 2018-06-19T06:37:34 | 2018-06-19T06:37:34 | 137,844,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18 | py | name = "wangzhao"
| [
"614361245@qq.com"
] | 614361245@qq.com |
3eb0342dae47455c88ce635ba7837528bec00211 | bd5ff41adf799d3d267f0bd4ab4d6d3a77322578 | /spirometry/migrations/0001_initial.py | 619cf44faaac186e78bd89f94273d68e23a877d0 | [] | no_license | SamuelSilvaAraujo/clinica-admin | d4448dda742aff270ca8b6bc27e859f80151b7ae | 6b01695cd014db21d5b4c981e89ed4db0932b68e | refs/heads/master | 2022-12-30T12:38:29.644625 | 2020-10-10T01:08:02 | 2020-10-10T01:08:02 | 302,784,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,552 | py | # Generated by Django 2.2.7 on 2020-02-16 19:48
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('patient', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='M... | [
"samuelsas.samuel18@gmail.com"
] | samuelsas.samuel18@gmail.com |
e7d6146e8f06ad64e502726293b6f8146f118f2e | 68163f8009b9c34bd8600381ac8bf54e4675f560 | /texttutils/views.py | 5d0916a8d301221399c3532e0b1453f65494ca96 | [] | no_license | Premrajdeore27/TextUtil | 3202de0384cb1a5ff7ab2b2675b959a0f34d9362 | a5ffd903005c75d19d154ab78e3e7fc3689cf607 | refs/heads/master | 2023-07-07T22:36:41.238527 | 2021-08-16T19:54:16 | 2021-08-16T19:54:16 | 396,978,791 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,489 | py | from django.http import HttpResponse
from django.shortcuts import render
def index(request):
return render(request,'index.html')
def analyze(request):
#get the text
djtext=(request.POST.get('text', 'default'))
# Check check
removepunc = (request.POST.get('removepunc', 'off'))
fullcaps = (r... | [
"86760579+Premrajdeore27@users.noreply.github.com"
] | 86760579+Premrajdeore27@users.noreply.github.com |
3fee5b59e3eb1b94bcb75fc43b1ae3e7d7aea85a | c916622b1d23dbead5f8785530ccb2ab6164ab97 | /bert/run_classifier.py | 76bf845fd7d85a6668814de4771317a696322466 | [
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | guojson/ACE-ADP | 3bebb03a96c4f4cf17d46d4088c700ee09c19a78 | 0f4c0fe29c9da859b92f5a2bbfdec0d724a8061d | refs/heads/main | 2023-08-11T19:41:57.357119 | 2021-09-15T13:49:14 | 2021-09-15T13:49:14 | 406,746,119 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,782 | py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ... | [
"gxc@cau.edu.cn"
] | gxc@cau.edu.cn |
3bc0f99a416ba6f34e286b8d92caf92f577dbede | 156438262d49447d925383128b449439488e757a | /ch07/_generate_data.py | b6e48c0cbe9652b2e213ab66158c82df7ce3e3d6 | [] | no_license | sajacaros/python_cleancode | 1f9db55160688bf0e16e909075f721ecc905ad61 | c51270f5570b1ac42cff1fc84a0e7ced2726b44d | refs/heads/master | 2021-02-07T09:37:21.936779 | 2020-03-02T14:32:44 | 2020-03-02T14:32:44 | 244,010,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | import os
import tempfile
PURCHASES_FILE = os.path.join(tempfile.gettempdir(), "purchases.csv")
def create_purchases_file(filename, entries=1_000_000):
if os.path.exists(filename):
return
with open(filename, "w+") as f:
for i in range(entries):
line = f"2018-01-01,{i}\n"
... | [
"dukim@bnpinnovation.com"
] | dukim@bnpinnovation.com |
3f403776cbe66282ea6ee1106d3c6f6480becaab | 1456711961dcd298c228699ee3ce0861a2f419c1 | /models/UserProfile.py | a81ecf0b4e91328878bcea8631de26fb44397874 | [] | no_license | bxji/cruzhacks-challenge | b573f5935f0f55f6bb3b5b8cc42d7776345d4d9b | 9c0fda615991116df95cc0e7e75cda4ea2af82f0 | refs/heads/master | 2020-04-27T05:57:43.775727 | 2019-03-09T00:02:13 | 2019-03-09T00:02:13 | 174,095,284 | 0 | 1 | null | 2019-10-02T04:45:44 | 2019-03-06T07:35:07 | Python | UTF-8 | Python | false | false | 1,178 | py | class UserProfile:
# we can calculate age from taking datetime.now() - birthdate
def __init__(self, UserProfileId, UserTypeCode, Name, School, Major, Street1, Street2, City, StateCode, ZipCode, CountryCode, Phone, Email, BirthDate, ProfileImageUrl):
self.UserProfileId = UserProfileId
self.UserT... | [
"xj9797@gmail.com"
] | xj9797@gmail.com |
52080a362e4c3ceb2822f229da8005edd6ef036e | 4a5f11b55e23999a82b62f5c72b44e9a36d24f63 | /simplemooc/forum/admin.py | 7c813d107c771cc9ce0f430c826d0736f3a53f31 | [] | no_license | diogo-alves/simplemooc | dca62bfcb2ea6357a551a5760778537f083b675c | cfec59f99888e4e23d41f020ff06bfdf39f70203 | refs/heads/master | 2022-05-10T10:32:18.686313 | 2019-06-04T19:30:43 | 2019-06-04T19:30:43 | 190,260,470 | 0 | 0 | null | 2022-04-22T21:34:44 | 2019-06-04T18:46:43 | Python | UTF-8 | Python | false | false | 585 | py | from django.contrib import admin
from .models import Thread, Reply
class ThreadAdmin(admin.ModelAdmin):
list_display = ['title', 'body', 'author', 'updated_at']
search_fields = ['title', 'body', 'author__username']
prepopulated_fields = {'slug': ('title',)}
class ReplyAdmin(admin.ModelAdmin):
lis... | [
"diogo.alves.ti@gmail.com"
] | diogo.alves.ti@gmail.com |
46248fac96121f6b8eb5f785ea4ea44210e4f9c7 | a90a734a04032ab48970857c4d43ff00be639a5a | /poll_project/polling_app/urls.py | 3aca1fdafc69c50c62b96679ea12a08c3d25b5a2 | [] | no_license | saumyadudeja/Survey_tool_updates | 80d7de856f2e5be96210869e0f39b3594124b24f | ce5bfa61846776bc83da593241617eba2d22c85f | refs/heads/master | 2023-03-04T23:47:37.615084 | 2021-02-16T16:12:10 | 2021-02-16T16:12:10 | 339,456,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,262 | py | """The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based views
1. Add an import... | [
""
] | |
e09cb301ca117fd905794987d996e78187545a4d | 43f836fceeae60fcb22de2825293c51e79ea297c | /food_tracker/food/models.py | b98c25c6fbd21290b356e41e4da8f41b8dca32cf | [] | no_license | cebasilio/food_tracker | ccc7d0a026796c576e1b89a81b7e691d1bdf798e | 8478654dab0d27ed3b883b402b7d429e8aeba1df | refs/heads/master | 2020-07-22T03:13:33.738482 | 2019-09-08T07:05:19 | 2019-09-08T07:05:19 | 207,057,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,339 | py | from django.db import models
# Create your models here.
class Food(models.Model):
name = models.CharField(verbose_name="Food Name", max_length=200)
calories = models.FloatField(verbose_name="Calories (kcal)")
total_fat = models.FloatField(verbose_name="Total Fat (g)")
saturated_fat = models.Floa... | [
"noreply@github.com"
] | noreply@github.com |
4746c981797505bf69fd57f0d97bf558710322b5 | 611e5481b709f22d01c7afad4fddd1bb291efcf0 | /LogAndReg/apps/LogAndReg_app/migrations/0001_initial.py | 81ab53f976b6299170ea42bc06d572125577d170 | [] | no_license | AaronDasani/Django | 2ffc5ffc69266d59570c3faa19cfde8e13cdd307 | 7acf0721744accb333f15013d9988f5fe3b1ad5c | refs/heads/master | 2021-07-23T23:30:23.457589 | 2019-01-14T19:23:57 | 2019-01-14T19:23:57 | 150,312,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 957 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2018-10-02 01:22
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
... | [
"maad@Aarons-iMac.local"
] | maad@Aarons-iMac.local |
9a8e5ff5ac645a3cc48a2db51ef611314f4736f6 | 20a358db6e9e9872453a7fb36ef21268054b241d | /pyml/ditech/database/insert_traffic.py | 95f8193ac0e10728700c619c82578331c5c5dc3e | [] | no_license | fengkaicnic/pyml | ee654cdef2ba107e1c1e8d598691af3accb96b3c | a19865cdb9eb69517258416a2b08b86f9d43a023 | refs/heads/master | 2021-01-21T04:40:44.659607 | 2016-07-29T08:33:07 | 2016-07-29T08:33:07 | 44,159,061 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,001 | py | import utils
import traceback
import os
import time
import pdb
start = time.time()
try:
path = 'D:/ditech/citydata/season_2/test_set_2/traffic_data'
conn = utils.persist.connection()
cur = conn.cursor()
num = 0
for pl in os.listdir(path):
if not '.' in pl:
with ope... | [
"fkdhy@163.com"
] | fkdhy@163.com |
002d0f4ce0b61dd442cd36dc1c9e72f71ac89dd4 | d6b835d1e72c347af67df701db803f18278f927e | /visit.py | 210822feca23acb97016b8fa6ba0d415aa28ab3a | [] | no_license | Dodon4/vtkvisit | a7333bb01f6784f756caaa5ab55b316c068aa1a2 | f612d558e18fa99564cf8c5d01e7b9ba2f6703b7 | refs/heads/master | 2020-09-24T20:45:15.465776 | 2019-12-23T14:51:44 | 2019-12-23T14:51:44 | 225,839,315 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 16,606 | py | import re
import math
import numpy as np
class reader:
def __init__(self):
pass
def read_csv(self):
pass
def read_sel(self, filename):
self.filename = filename
file = open(self.filename)
self.values = file.read().split("\n")
self.data = []
... | [
"noreply@github.com"
] | noreply@github.com |
f12909ae3687b94a8897089cdd9e2b9641468040 | 1850d9b3449350f5e985bead1bb2956cf3ec9fcf | /get_title.py | 085add443075ed10d66e2741df9a6adcdbf014eb | [] | no_license | adityashetty0302/selenium-web-scraping-geckodriver | 07b02e614382d7285bb34c8b5bfc2cea1ca262ea | 1ee0249c0d0619946890c6f7e57d0e7b9df4e073 | refs/heads/master | 2020-03-25T00:25:24.371284 | 2018-08-01T17:15:12 | 2018-08-01T17:15:12 | 143,184,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | from selenium import webdriver
if __name__ == '__main__':
driver = webdriver.Firefox()
driver.get('http://google.com')
print(driver.title)
driver.quit()
| [
"adityashetty0302@gmail.com"
] | adityashetty0302@gmail.com |
8e0c690433c7e302e6f8520617120f771d883118 | dca50b689638d1f26f15e9b97c73b6c687f4d61c | /fibonacci test 2.py | 27969f180da62b986b3dafb15ee7f4c8081b6ad9 | [] | no_license | mtakle/learningpython | 3e1d8c1e0a420dfb2746bc67c75054f39500414d | 5cd9616ffcc7e54f215c243a40de580e94f184ac | refs/heads/master | 2020-03-27T09:16:31.644532 | 2018-09-04T11:47:19 | 2018-09-04T11:47:19 | 146,326,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | #test fibonacci sequence
import time
print("Behold...")
time.sleep(2)
print("Pumbas fantastic fibonacci sequence!")
time.sleep(2)
x = 0
x_inc = 1
counter = 1
while counter < 30:
print (x)
counter = counter + 1
x_hold = x
x = x_inc
x_inc = x_inc + x_hold
time.sleep(0.5)
#prints 0
#... | [
"martin.takle@gmail.com"
] | martin.takle@gmail.com |
5ca9fcb65dd52ac01b9cea42017d84e0548f5053 | 66b98283032a9214e758fe851f18e82304406ac0 | /PersonalStylist/settings.py | 000bea7d62e1f349da05bcf8d9b629b7f13bd46d | [] | no_license | Stuti-Saha12/Personal-Stylist | d80f8eae65d695f25bc899f609714e2f21e934b2 | ae1e38f17e8b3231f1296006db4842165ad58e3d | refs/heads/master | 2023-03-30T20:23:18.391323 | 2021-04-08T08:29:04 | 2021-04-08T08:29:04 | 355,810,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,567 | py | """
Django settings for PersonalStylist project.
Generated by 'django-admin startproject' using Django 2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import... | [
"b519054@iiit-bh.ac.in"
] | b519054@iiit-bh.ac.in |
4164bb650ac1f2b89c7848b186d58aea4fd000c5 | 81814509532f00af2a821258235882a50e31bde7 | /tests/encoders/text/tfhub/test_bert.py | ad7f6223fdcce21e207944cf459f76a64ffcda16 | [
"Apache-2.0"
] | permissive | dsp6414/vectorhub | 8639bdea4b3ecef1b2eb94c5bd60bd373205db25 | aac42978e90b8fb2433ce2966e3bd422e7c45319 | refs/heads/main | 2023-02-04T09:55:40.174943 | 2020-12-23T16:47:00 | 2020-12-23T16:47:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | from vectorhub.encoders.text.tfhub import Bert2Vec
import numpy as np
def test_bert_encode():
"""
Testing for bert encoding
"""
client = Bert2Vec()
result = client.encode('Cat')
assert np.array(result).shape == (1024,)
| [
"jacky.koh@vylar.org"
] | jacky.koh@vylar.org |
ec7fd252a95b77db53b5062b981abcbb49d101aa | 4bae4a5ff3089ea478a536c6f9d10803f0a1058b | /manage.py | 9a5a83a4199a701fff98fe0afa24fde7ab5e8ad9 | [] | no_license | mohamed-amine-maaroufi/social-network-django | db6a36bbb6519361ed5b44f5f91ec1f6615a9970 | 4c8fe63a7060427c172b7cede4c5a44258de10d1 | refs/heads/master | 2021-08-28T18:26:05.297170 | 2017-12-12T23:23:17 | 2017-12-12T23:23:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 807 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ArticleVF.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that th... | [
"aminemaaroufi40@gmail.com"
] | aminemaaroufi40@gmail.com |
6a6afc43a4b884765203d1c136ab7a64752ee595 | 44116b4dbc69046d5947ec7087be9eb87303e211 | /src/tact/server/websocket.py | 1db591283c587148c660788ee47bee65cf843d14 | [
"MIT"
] | permissive | wabain/tact | 76ae0258069ca9f84ee0382dd22268fadabf5acb | bd95608bebc640e47f31f6d0a403108fe998188d | refs/heads/master | 2020-04-13T04:02:20.404999 | 2019-07-07T21:42:56 | 2019-07-07T21:42:56 | 162,949,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | py | """Base definitions for the websocket interface"""
import json
from abc import ABC, abstractmethod
class WebsocketConnectionLost(Exception):
pass
class AbstractWSManager(ABC):
@abstractmethod
async def send(self, conn_id: str, msg: dict) -> None:
# This is implemented as a separate method primar... | [
"bain.william.a@gmail.com"
] | bain.william.a@gmail.com |
bda8328e8e1c9a1ef0fde6461ed58bd0cae16a37 | 588915c92a1c546293e251db05720016b97a1d3e | /tests/__init__.py | a3283795fd07468739ce30dce3c8db5e01780a0c | [
"MIT"
] | permissive | ielia/prtg-py | 1ec9f316e98c914b493b4b881d1ef9a792f76454 | 438087b68e5f26d3517186580575199f16527c62 | refs/heads/master | 2021-01-10T18:42:16.556033 | 2015-05-21T21:42:38 | 2015-05-21T21:42:38 | 31,963,171 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27 | py | __author__ = 'kevinschoon'
| [
"elia.ignacio@gmail.com"
] | elia.ignacio@gmail.com |
37a6ef549d519244c685812adcf0bc114fca9be2 | ebe9f5c8196ec0a381542c05f8d6a13c24b99e98 | /test/test_v.py | 80ebe1c2cac4ddf1b69b1a8ec012a5a2145bed58 | [] | no_license | Ferdi265/subleq-verilog | dfabfefeb27bf970796273e8194f8cdda44d1fed | c66c34be30dbc12b4b4b6df609638d9ecb3d4538 | refs/heads/master | 2023-05-26T13:56:44.756669 | 2023-05-10T11:48:57 | 2023-05-10T11:48:57 | 230,788,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 985 | py | import sys
import os.path
from subprocess import check_output
from hlsubleq.sim import *
from hlsubleq.hlasm import *
import test_hl
subleq_dir = os.path.realpath(os.path.dirname(os.path.realpath(__file__)) + "/..")
class VSimAssembler(SimAssembler):
def simulate(self, n = None):
with open(subleq_dir + "... | [
"theferdi265@gmail.com"
] | theferdi265@gmail.com |
5e1db68f4a4076d21071d6c0ef6884c57ef81d51 | e2e3982c626b49d57c51b5abafc0a0eb20915e6a | /factorization-machines/lightFM_plots.py | dd52379ce7229a1e23b79d35d12407e49dcbc859 | [] | no_license | mindis/thesis | ee683869627e54b620c8582c8365205e0b5fd424 | 3676aa32be4f115ea0c79448ee6391d3386d496d | refs/heads/master | 2022-04-25T22:55:51.846029 | 2020-04-27T18:39:11 | 2020-04-27T18:39:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,315 | py | import time
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
from lightfm import LightFM
from lightfm import cross_validation
from lightfm.datasets import fetch_movielens
from scipy.sparse import csr_matrix
from scipy.sparse import coo_matrix
from lightfm.evaluation import precision_at_k
from lig... | [
"nick_gianno@hotmail.com"
] | nick_gianno@hotmail.com |
f90b85d5e509620f16028f193e78c9d441e42ff3 | e2f525606d213767e85de9f55df236b7a21ea237 | /code/class_ui_rankwindow.py | 7440d7108cb1f6201a331ccbf8f384fad7f6da41 | [] | no_license | ricew4ng/Slim-Typer-v1.0 | b975697fd5d0fcd719c25fb61a80f69d244e4ed4 | 9b066770457027f0a5ad1476d525bad156d8e925 | refs/heads/master | 2022-10-27T07:39:27.420377 | 2018-09-23T02:12:20 | 2018-09-23T02:12:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,170 | py | #coding:utf8
# "本地记录"这个窗口的类脚本
from PyQt5 import QtWidgets
from ui_rankwindow import Ui_rankwindow
class ui_rankwindow(QtWidgets.QWidget,Ui_rankwindow):
#创建实例时需有参数QMainWindow对象
def __init__(self,mainwindow):
super(ui_rankwindow,self).__init__()
self.setupUi(self) #初始化ui
self.radio_blank.hide()
self.mainwind... | [
"noreply@github.com"
] | noreply@github.com |
66c6106ce862911772a432abc48e73209d3f4d47 | ca00910013499f5f3c8e970fc9379ddc74c23ddb | /bin/pip | d78922611a3bdf12114c6e1484a6884a87b93955 | [] | no_license | saposki/saposki7 | 71feb479bf39614d91780f858d90ad776704f0ff | a1c67c4423f2ef80ce3a8a02dc7cccd143bba8b8 | refs/heads/master | 2020-06-04T14:54:38.367872 | 2015-01-20T09:34:45 | 2015-01-20T09:34:45 | 29,083,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | #!/Users/blackrob/Dropbox/saposki_flask/sf/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"saposki@gmail.com"
] | saposki@gmail.com | |
13304ad34c9181779d72a2811439ff96eabc20cf | f8201014d20832d4cc217b473500501cf16df8ba | /virtool/genbank.py | 7035b74b89e201906c6cfa858afebbf05f253176 | [
"MIT"
] | permissive | gitter-badger/virtool | abc996ef8dc160f1fe879a55d6eec4e9043c9840 | 628acc377fb0497c2bfe75e9fa0a61decc59e0e6 | refs/heads/master | 2020-04-23T04:47:02.186926 | 2019-02-15T03:01:12 | 2019-02-15T03:01:12 | 170,919,108 | 0 | 0 | null | 2019-02-15T19:42:26 | 2019-02-15T19:42:25 | null | UTF-8 | Python | false | false | 1,933 | py | import logging
import string
import virtool.http.proxy
logger = logging.getLogger(__name__)
EMAIL = "dev@virtool.ca"
TOOL = "virtool"
FETCH_URL = "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi"
async def fetch(settings, session, accession):
"""
Fetch the Genbank record for the passed `accessio... | [
"igboyes@gmail.com"
] | igboyes@gmail.com |
fc563352b05665f7e7e956ba37bb51637d95c6b5 | bb4ddec71c91d64bda34f2002bcea3e7639b45f2 | /03-services-redis/main.py | b32d10a62769eaaa0be52eb7c1766b4c2ce68619 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | alexwillzhj/python-machine-learning-api | 4dc0ae759694a59fa0b478c08a646fee3407098b | 917c4ad08f8fe8ba1ada4e71eb708149b1fe7dc1 | refs/heads/master | 2021-01-20T13:58:10.603821 | 2017-05-08T01:00:43 | 2017-05-08T01:00:43 | 90,543,495 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,452 | py | """
A simple app to show redis service integration.
Author: Ian Huston
License: See LICENSE.txt
"""
from flask import Flask
import os
import redis
import json
app = Flask(__name__)
# Get port from environment variable or choose 9099 as local default
port = int(os.getenv("PORT", 9099))
# Get Redis credentials
if 'V... | [
"alex.zhang@ge.com"
] | alex.zhang@ge.com |
fef3b2923673ec798f0c1f02da5775dc032ad1b8 | ac9b76ea5a3bd4618fbcadc4008b21174af6b913 | /TreeNode.py | 5194bafe672437cb0230593bcfcf1ba7d55b4153 | [] | no_license | olawesterlund/DecisionTree | 5c9040b4070f59b693c29a9199173f39198b9605 | bfd3be66a23eb24898fcbd34e57ba918ea254fd8 | refs/heads/master | 2022-03-15T16:36:35.074957 | 2018-03-19T09:32:23 | 2018-03-19T09:32:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,390 | py | class TreeNode:
def __init__(self,att,att_dict,classes,children=None,child_examples=None):
self.attribute = att
self.children = children
self.child_examples = child_examples
self.att_dict = att_dict
self.classes = classes
def add_child(self, node, list_index):
se... | [
"ola.oj.johansson@gmail.com"
] | ola.oj.johansson@gmail.com |
d631c815c2c1ba0870f891182e8369ce24c3be49 | 278060c3e3fce8c2d78640ac748188e80758deac | /tax_app/migrations/0002_auto_20191020_1607.py | d78e86314c315ed836c08685fd62b3ca35a1e8d3 | [] | no_license | ajisaq/BusinessTaxApp | 33507bb64cfabc4a84a56826db3ae90d55539359 | 08031f03a7018c59b2e9b0095e80a5ff0b7b0b70 | refs/heads/master | 2022-05-03T17:29:47.635710 | 2019-12-02T09:25:14 | 2019-12-02T09:25:14 | 219,758,403 | 1 | 3 | null | 2022-04-22T22:50:39 | 2019-11-05T13:59:07 | Python | UTF-8 | Python | false | false | 1,131 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2019-10-20 15:07
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tax_app', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | [
"mohammedaliyu136@gmail.com"
] | mohammedaliyu136@gmail.com |
bead62e20492a2819230be41a9c5f127aba73e03 | ff4fc971fd73ca30101589ea5152672905c71d05 | /django/portfolio/contact/migrations/0002_auto_20210101_0735.py | 3ae7836c59864c7e298c30f50217ef188c5e7236 | [] | no_license | farhadict17/django-vue-start | 41e5cc59c92af1c454904d6548aa2aed0867c235 | c9a3a8a91ca16f941843cb22ffdd0f6c0fba8a4c | refs/heads/master | 2023-02-10T08:21:26.152534 | 2021-01-11T02:57:52 | 2021-01-11T02:57:52 | 328,530,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | # Generated by Django 3.1.4 on 2021-01-01 07:35
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('contact', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='contact',
name='name',
fi... | [
"farhadict17@gmail.com"
] | farhadict17@gmail.com |
dd3ea63e4a978a236d5ad87b031ef9a80b39082c | af4e2d54714c9db7a1d11f0d1dee67ec8873cfdc | /Tetris_game.py | 28e77210398913a0f18165a6ef3aee12bd0d87e9 | [] | no_license | nastprol/tetris | 6cd34d354c47cd75ccee1ff3a1bb144d390b8504 | 4c562a20625d2084a22f67cd355b3eb52ad85dfe | refs/heads/master | 2020-04-02T11:11:16.315166 | 2018-10-25T16:49:13 | 2018-10-25T16:49:13 | 154,375,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,467 | py | import sys
from PyQt5.QtWidgets import QMainWindow, QApplication
from Board import Board
from PyQt5.QtWidgets import QLineEdit, QPushButton, QLabel, QSpinBox
class Form(QMainWindow):
def __init__(self):
super().__init__()
self.resize(300, 300)
self.name = ""
self.lbl_name = QLab... | [
"nastprol@users.noreply.github.com"
] | nastprol@users.noreply.github.com |
30771aa74b83f38d6af9f40d00e581dbe58ccac6 | 01322837bc9e8fd74980b53f9b4f02867309588b | /Pytorch Story Net/Main.py | f110cb046e03921f37f5b27163d43a867ce03c0c | [] | no_license | JCSteiner/Directed-Study-Fall-2020 | fc39c382f0f96488fd6bd594925b349c0c3095f2 | 0ec90ecb834c8005129b11257bd2c34f16800b73 | refs/heads/master | 2022-12-29T18:43:50.601154 | 2020-10-20T11:52:15 | 2020-10-20T11:52:15 | 289,676,809 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,005 | py | ###############################################################################
# #
# Main.py #
# J. Steiner ... | [
"noreply@github.com"
] | noreply@github.com |
9f082efbc61644874f5ec6acf1a35d025d6bcbff | 263c8801cf5fc46270cde2a79af3029da0d2b682 | /wine_admin/wsgi.py | 6cdb09b1a0ee48086b3124d5ef59ec07f439335a | [] | no_license | shybeeJD/wine_admin | 1a6c465c326d3d519db000fb6b924deb3dd26397 | 87262be75fa7bcc8d48fbc21ea7b59cd95e13971 | refs/heads/master | 2023-08-24T03:31:44.176055 | 2021-10-04T14:25:08 | 2021-10-04T14:25:08 | 401,797,347 | 0 | 0 | null | 2021-09-03T16:33:33 | 2021-08-31T17:58:52 | Python | UTF-8 | Python | false | false | 397 | py | """
WSGI config for wine_admin 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/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SE... | [
"1639938697@qq.com"
] | 1639938697@qq.com |
371b70b5199d49ec2db85f7e1ccd506400ea44d0 | c2ae65792af1fab2e7843303ef90790819f872e8 | /testing/ds/bin/jupyter-troubleshoot | 7134b7d07b8dd90f5c6d6f159e2fc0a8167a0183 | [] | no_license | behappyyoung/PythonSampleCodes | 47c224ca76ce509a03c8b75ef6b4bf7f49ebdd7f | f7640467273fa8ea3c7e443e798737ca5bcea6f9 | refs/heads/master | 2023-03-15T00:53:21.034605 | 2023-02-13T17:12:32 | 2023-02-13T17:12:32 | 26,919,763 | 3 | 3 | null | 2023-03-07T12:45:21 | 2014-11-20T15:57:16 | Python | UTF-8 | Python | false | false | 274 | #!/Users/s0199669/github/PythonSampleCodes/testing/ds/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from jupyter_core.troubleshoot import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"behappyyoung@gmail.com"
] | behappyyoung@gmail.com | |
e4987ae5f98f6ae7c5d175a1db16e518931677b5 | a3b327960e9435ea2193446b68cd0d5421b2d327 | /recursion/PrefixParserBase/main_program.py | 308fe1ea0db4b78d43058a0a5b4d0d03f8d3be66 | [] | no_license | Illugi317/gagnaskipan | b29063ad875d555a4d05d92b83a6047ddd4240fc | 3223106e8d68bbcc471e4653c2e96a34d7302f03 | refs/heads/master | 2023-03-29T18:38:42.479267 | 2021-03-22T19:08:09 | 2021-03-22T19:08:09 | 343,486,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,770 | py | import tokenizer
from tokenizer import Tokenizer
# throw/raise this exception if a
# division by zero occurs.
class DivisionByZero(Exception):
pass
# IMPLEMENT HERE!!!! -----------------------------------------------------
# This function is the actual recursive
# implementation of the prefix parser.
#... | [
"illugi@illugi.com"
] | illugi@illugi.com |
d6f3ef2b5af85a6b9cb9421677956bf5484c8549 | a155e08f55bad461bd6f5de7e18aac93b298e2b7 | /work-at-olist/channels/tests/test_utils.py | 8af3e0bb3bb1107d05e4c9b10741fa56b32c236b | [] | no_license | joaorafaelm/work-at-olist | dbc054430371a4d2ca02e3e6bd86925e4c345b7c | 6cef733dd0b507f776f26bbaeb6bd2b401f0b612 | refs/heads/master | 2021-08-17T16:46:09.094861 | 2017-10-05T21:28:45 | 2017-10-05T21:28:45 | 96,346,170 | 0 | 0 | null | 2017-12-24T20:16:37 | 2017-07-05T17:49:04 | Python | UTF-8 | Python | false | false | 735 | py | """Test file for the utils functions and classes."""
from channels.utils import Attrgetter
from django.test import TestCase
class TestUtils(TestCase):
"""Tests for the utils functions and classes."""
def test_attrgetter(self):
"""Test if the Attrgetter class retrieves attributes correctly."""
... | [
"joaoraf@me.com"
] | joaoraf@me.com |
3571c8cc983bb908e5fefc686b7dd1d85062152c | 530201d1bf8370a94ddf6ffcffd0c256389b42c9 | /mazeclass.py | 9d240b9505411691b0fd735472fb78dd60b9e784 | [] | no_license | chefakshito/cs520 | 1169a714c1e93bfb546df62b71662ff307a8de98 | 97b81f619e6f54f5125d14b58f04faa325227bd1 | refs/heads/master | 2021-01-21T06:39:35.828236 | 2017-02-27T04:22:37 | 2017-02-27T04:22:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,431 | py | from random import randint
from PIL import Image
imgx = 500; imgy = 500
image = Image.new("RGB", (imgx, imgy))
pixels = image.load()
color = [(0,0, 0), (255, 255, 255)]
sx=101
sy=101;
nm=50;
maze = [[[0 for x in range(sx)] for y in range(sy)] for z in range(nm)]
dx=[0,1,0,-1]
dy=[-1,0,1,0]
"""
cx=randint(0,mx-1)
cy=r... | [
"="
] | = |
391a282e05a447f05ae685668d80e3ca37b0de3f | 1eb8426b9c4af7642ac1d7bfa0e7f9dd7fc6a619 | /copycat.py | d41684a2a391a9b7b50ce618aed2e93477d60ed4 | [
"Unlicense"
] | permissive | foshizzledawg/copycat | ec8841825443240bbc5c96dae9593a17e2e4ed74 | da9f440c229bde81a3c4c74a5366d964fb00398c | refs/heads/master | 2021-01-23T11:34:51.357148 | 2015-06-20T12:47:08 | 2015-06-20T12:47:08 | 29,200,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 90 | py | from sys import argv
script, filename = argv
target = open(filename)
print(target.read())
| [
"foshizzledawg@users.noreply.github.com"
] | foshizzledawg@users.noreply.github.com |
4983aad5ddb2fb70df592f1c4dd4d89dfd244507 | 30cfcde7ef63dbd879568ac5088ea82319aa5093 | /cantons_districts_cr/models/canton.py | 2987ce8b6a283b76293c08dfe12f1c905f119e06 | [] | no_license | gabriumaa/OdooCV | 6cccc1ed7173c2385fa6bb0d6192fcfcc2cb03da | 9a9e06b30cdc5908d953c467fd6a5d64eeaf2bc8 | refs/heads/master | 2020-04-03T23:13:28.532005 | 2019-06-14T20:46:40 | 2019-06-14T20:46:40 | 155,623,222 | 0 | 1 | null | 2019-03-28T22:07:17 | 2018-10-31T21:04:48 | null | UTF-8 | Python | false | false | 575 | py | # -*- coding: utf-8 -*-
from odoo import models, fields, api
class Canton(models.Model):
_name = "res.country.state.canton"
_description = "Cantón"
name = fields.Char(string="Nombre cantón", required=True)
code = fields.Char(string="Código de cantón", size=4, required=True)
state_id = fields.Man... | [
"fmelendezg@ice.go.cr"
] | fmelendezg@ice.go.cr |
4f86ca68d750e927852514244aa44a8cc386ccfc | a5d6167ec3cd70c5c9e2e1dde209478ced4c625f | /neural_testbed/agents/factories/ensemble.py | 5193d3e19a5e7b2dde9811eeae63cd684d65debf | [
"Apache-2.0"
] | permissive | Aakanksha-Rana/neural_testbed | 914eafa443f1b34980d73a929ed858a6a3b7009d | cc2e3de49c29f29852c8cd5885ab54fb6e664e2e | refs/heads/master | 2023-08-10T15:57:05.926485 | 2021-10-12T16:50:49 | 2021-10-12T16:50:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,799 | py | # python3
# pylint: disable=g-bad-file-header
# Copyright 2021 DeepMind Technologies Limited. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org... | [
"noreply@google.com"
] | noreply@google.com |
c68d6ebbadb6d5ca9c872511c913b706c9693f5b | 6fb4419f219fcf2453becfd3fe2d31dca3401da6 | /get-influences.py | 6df1a95dda8a74b2d99570fca626c49ecff004b1 | [] | no_license | christopher-beckham/wiki-lang-influence | dccc04e3565a9df408353a247058a74a9c44f5bb | 9c2832cafc5d5c25f39aff739b0004af08a5234b | refs/heads/master | 2020-04-14T23:53:33.941193 | 2014-06-19T09:57:59 | 2014-06-19T09:57:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,123 | py | #!/usr/bin/python
from cz import cz
import sys
import re
import time
import urllib2
from sys import stdin
def get_langs(st):
st = "".join(cz.striphtml(st))
st = re.sub('\\[.*?\\]', '', st).replace('\n', '')
st = st.split(',')
st = [ st[0] ] + [ name[1::] for name in st[1::] ]
return st
def fe... | [
"chrispy645@gmail.com"
] | chrispy645@gmail.com |
828ba88e8fa668802482e976be1d35158909f3e7 | 5d907c7eaf77bdd0395d93beea57d26b18ee0864 | /test/log.py | 64ddd432a0300365498c784262d2d3dedda51bc9 | [] | no_license | wangfeng7399/task | 3fc4e580d77837dc39985fad8ca2018fdbbec11a | f58b51334a61b0455b83d4ea046fa0eae48d25ea | refs/heads/master | 2021-01-09T20:52:59.792319 | 2017-02-27T02:43:47 | 2017-02-27T02:43:47 | 58,896,542 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,370 | py | #!/bin/env python3
#coding:utf-8
import os
import time
import re
import MySQLdb
def mysqlinsert(sql):
conn=MySQLdb.Connect(host="10.10.3.56",user="root",passwd="task",db="task",charset="utf8")
cur = conn.cursor()
Recoue=cur.execute(sql)
conn.commit()
cur.close()
conn.close()
t=time.strftime("%... | [
"wangfeng17399@163.com"
] | wangfeng17399@163.com |
a1fd5d1ba5523c8ee5579338e6ee4707b5c82688 | a89dfda3732eb73863b3e2fb1ebb46f1cb40973a | /txweb/lib/str_request.py | 0f90d8107e18a716cf7df54ddaea62f846c72d1f | [
"MIT"
] | permissive | devdave/txWeb | 543ccb7be0671a5e83959bb7cfc8e7804f04a74a | e447fbefd16134cb2f83323c04c20c41638d7da3 | refs/heads/master | 2022-12-15T18:11:50.880675 | 2021-03-24T18:48:16 | 2021-03-24T18:48:16 | 2,116,693 | 1 | 0 | MIT | 2022-12-08T04:28:41 | 2011-07-28T03:55:43 | Python | UTF-8 | Python | false | false | 12,567 | py | """
STATUS PENDING
Redo web Request to act as a str<->bytes proxy between our
application and twisted library.
Since Py3, all strings are unicode which is problematic for twisted as it
only works with bytes (and to some extent ascii). Instead of rewriting the entire library
and bedazzling it... | [
"devdave@ominian.net"
] | devdave@ominian.net |
d0eecd2114502f42f828a8d2ecbec82f6dafb9b5 | 3e00e19a1b8ab53a525ce358eeed276899a044e0 | /craigslistscraper/scraper.py | c6a73260fb89ab47c58bda51170ab2d85fa5d15c | [
"MIT"
] | permissive | thirtyHP/CraigslistScraper | c910619d2b8a6ccaf19ae68c55a28453be18a3e7 | ab2c3d6454d1f36332947ac59723ddb120b258d6 | refs/heads/master | 2023-08-23T17:36:25.706407 | 2021-09-21T18:31:41 | 2021-09-21T18:31:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,995 | py | from craigslistscraper import domain
import requests
from bs4 import BeautifulSoup
import pandas as pd
import json
class CraigslistSearches:
"""
Object that pulls all relevent ad information and returns them
in arrays to be parsed to a JSON file.
"""
def __init__(self, domain_get):
self... | [
"ryanirl@icloud.com"
] | ryanirl@icloud.com |
d7d700537ef471799c3f698252d1209eb49e897c | dc92202c0033ee7f330b558743913a9c0d06ae5c | /certificate_formatter.py | d6c045186a6c44bb68bbe91e9e6cacc5e167bc1f | [] | no_license | DasHaSneg/Checkblockchaindiplomas | ca091e881313ace7833d2f05c2fe263be1592b78 | 4501bcb5c0baa8342f6add1ff08fa19940fd3f6b | refs/heads/master | 2022-12-10T01:43:54.680061 | 2021-10-05T06:40:42 | 2021-10-05T06:40:42 | 186,687,853 | 0 | 0 | null | 2022-12-08T05:14:08 | 2019-05-14T19:35:22 | JavaScript | UTF-8 | Python | false | false | 1,575 | py | import helpers
from cert_core import BlockchainType
def certificate_to_award(displayable_certificate):
tx_url = helpers.get_tx_lookup_chain(displayable_certificate.chain, displayable_certificate.txid)
award = {
'logoImg': displayable_certificate.issuer.image,
'name': displayable_certificate.re... | [
"dashasneg@mail.ru"
] | dashasneg@mail.ru |
25f478d4079115b4defb2e4b4b853c3a75b52a9e | d4bb84c8a805f297f80e91ea0149244034743739 | /PyGame/Tanks/Tanks.py | 1d71c1b558c20e4b92392d40bbf74ffdb6f61a71 | [] | no_license | AcePjoez/Python | 53da5893ac7fa22648caef647ce24c697f4db11b | 4217ba59b24f9f2c74c472e00e58b2cc59d3ddc1 | refs/heads/master | 2021-04-15T18:26:20.703159 | 2018-03-24T18:16:58 | 2018-03-24T18:16:58 | 126,230,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,324 | py | import pygame
import time
import random
pygame.init()
display_width = 800
display_height = 600
gameDisplay = pygame.display.set_mode((display_width, display_height))
pygame.display.set_caption('Tanks')
# icon = pygame.image.load("apple.png")
# pygame.display.set_icon(icon)
white = (255, 255, 255)
... | [
"noreply@github.com"
] | noreply@github.com |
2383868cb40c9ad8cc904de78599d183924388d9 | 376888dc5005de12a4df2de7ee6a9407d6691fe5 | /jobs/migrations/0001_initial.py | cd17dfa206c4c4567b3fcbf2b8e2380792ed6615 | [] | no_license | SahilChoudhary22/django-portfolio-blog | 41e7d94cb6fab973d5f25992d46def6f6cb0198b | 30e282224303e5a55de1e253702b4211b938205c | refs/heads/master | 2023-05-01T17:42:11.080673 | 2020-06-10T19:00:27 | 2020-06-10T19:00:27 | 209,122,622 | 0 | 0 | null | 2023-04-21T20:37:23 | 2019-09-17T17:58:23 | HTML | UTF-8 | Python | false | false | 645 | py | # Generated by Django 2.2.5 on 2019-09-17 13:52
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Job',
fields=[
('id', models.AutoField(auto... | [
"sahil.codes.it@gmail.com"
] | sahil.codes.it@gmail.com |
4df7849c6844bd581bb8841111f635cbbab50830 | 4dfd539c530c5cff6874f2fa0c06ffd893212ad3 | /tencentcloud/chdfs/v20201112/errorcodes.py | d4604add29d3d07f8131cc49457ff2038e6d3425 | [] | no_license | TencentCloud/tencentcloud-sdk-python-intl-en | aac605d1a0458b637ba29eb49f6f166fe844a269 | 042b4d7fb609d4d240728197901b46008b35d4b0 | refs/heads/master | 2023-09-01T19:39:27.436454 | 2023-09-01T04:02:15 | 2023-09-01T04:02:15 | 227,834,644 | 4 | 6 | null | 2023-07-17T08:56:56 | 2019-12-13T12:23:52 | Python | UTF-8 | Python | false | false | 3,853 | py | # -*- coding: utf8 -*-
# Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses... | [
"tencentcloudapi@tencent.com"
] | tencentcloudapi@tencent.com |
630ff6a5ad626ea10a5e3ddb440d4b01416a9d3b | 0533d0ceb5966f7327f40d54bbd17e08e13d36bf | /python/LinkedList/Linked List Cycle II/Linked List Cycle II.py | 996a20582aa17746b392099fe2d2bb7ca6441e83 | [] | no_license | danwaterfield/LeetCode-Solution | 0c6178952ca8ca879763a87db958ef98eb9c2c75 | d89ebad5305e4d1a185b0c6f101a88691602b523 | refs/heads/master | 2023-03-19T01:51:49.417877 | 2020-01-11T14:17:42 | 2020-01-11T14:17:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | # class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution(object):
def detectCycle(self, head):
"""
:type head: ListNode
:rtype: ListNode
"""
slow = head
fast = head
step = 0
while slow a... | [
"zjuzjj@gmail.com"
] | zjuzjj@gmail.com |
b2001f4905ca18d64754a9a6aafb71893fbb0f10 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_3/Luca.Paterlini/C.py | cd79d12c9e0577d934dba12922fbf43c13a8215c | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 1,364 | py | import math
def AtkinSieve (limit):
results = [2,3,5]
sieve = [False]*(limit+1)
factor = int(math.sqrt(limit))+1
for i in range(1,factor):
for j in range(1, factor):
n = 4*i**2+j**2
if (n <= limit) and (n % 12 == 1 or n % 12 == 5):
sieve[n] = not sieve[n]
... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
49c3b03d19632d9b4da234da479e74307f3bdbf9 | 1f8540dc62cfe27a9f6b0da5aefd40e814fb4b57 | /notifier/main/validators.py | 8d3024794fa1edbe35594d3a12a4af95ac640f4b | [] | no_license | fmarchenko/mailganer-test | 7506d349601189eed37d356dc06a053d5955931f | 3316f7769fac6096194b9eaf57cf7e54753de266 | refs/heads/master | 2022-07-25T09:47:37.068088 | 2019-06-10T19:03:39 | 2019-06-10T19:03:39 | 191,227,905 | 0 | 0 | null | 2022-07-06T20:10:40 | 2019-06-10T18:54:35 | Python | UTF-8 | Python | false | false | 1,215 | py | # -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals
import lxml.etree
try:
from StringIO import StringIO
except ImportError:
from io import StringIO
from django.template.loader import render_to_string
from django.core.exceptions import ValidationError
from django.template.exceptio... | [
"mfs90@mail.ru"
] | mfs90@mail.ru |
33192420f4a034f07c13792859bfea745d17c1d1 | 55c6489732dc42ae760a51e154db1d66c6a6905e | /step2/step2_test.py | 7b03cefd58c467c2d03c8879212cbf42ccb5f029 | [] | no_license | keikosanjo/http_server | 85a9ea7269fad5a29ed331fca42d731c0bf4c04e | 0a27a734f044113a991ef2c4701197ebe38cc9bc | refs/heads/master | 2020-03-08T14:57:35.349501 | 2018-04-28T17:30:08 | 2018-04-28T17:30:08 | 128,198,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,118 | py | import unittest
from lucky_server_method import Method
class TestMethod(unittest.TestCase):
"""test class of lucky_server_method.py
"""
def test_get_statusline(self):
""" test method for get
"""
print("test case1 : hello")
expected1 = "HTTP/1.0 200 OK"
msg1 = "hello... | [
"sanjo.keiko@fujitsu.com"
] | sanjo.keiko@fujitsu.com |
cdc1cfa4a1eb481d4e817b068541248211b778f2 | 1098e955e15dd259c9e92d653f2b489a702a5d96 | /catalog/migrations/0001_initial.py | cb8c480f565ff7f4f0b7637cb87174e21c4bc49e | [
"Apache-2.0"
] | permissive | ashik4715/thanosback | 40c320c95cdcb0cbd7823b76b3bc206585b35684 | 08db204dbda2672dd5a53c577c12899f39e73af0 | refs/heads/master | 2023-06-05T23:27:52.016748 | 2021-06-24T19:05:36 | 2021-06-24T19:05:36 | 380,023,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 902 | py | # Generated by Django 3.0.1 on 2021-06-21 19:27
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Catalog',
fields=[
... | [
"ashikurjhalak@gmail.com"
] | ashikurjhalak@gmail.com |
5aab9762701d196ef905a7515cb2ae35400008cc | ebf3c9a10afb7199c75f6abd92cd65a12b06ebab | /net.py | 2aab45bed79d2be20622121ac5dd31d48c504ad8 | [] | no_license | bianjiang1234567/GPND | 0d887cab9876494efb73fdf107cecfa5e18c86cc | ce8b0cd7a3c707b87cb73745dcb50ea181a21604 | refs/heads/master | 2021-09-29T02:09:06.869422 | 2018-10-18T12:44:25 | 2018-10-18T12:44:25 | 159,532,954 | 1 | 0 | null | 2018-11-28T16:36:30 | 2018-11-28T16:36:30 | null | UTF-8 | Python | false | false | 6,411 | py |
import torch
from torch import nn
from torch.nn import functional as F
class VAE(nn.Module):
def __init__(self, zsize):
super(VAE, self).__init__()
d = 128
self.zsize = zsize
self.deconv1 = nn.ConvTranspose2d(zsize, d * 2, 4, 1, 0)
self.deconv1_bn = nn.BatchNorm2d(d * 2)
... | [
"erik.kj.kratz@gmail.com"
] | erik.kj.kratz@gmail.com |
873f399a3fc2fb55ed3c9320f9bdce8d298bc065 | 474e74c654916d0a1b0311fc80eff206968539b1 | /venv/Lib/site-packages/asposewordscloud/models/paragraph_link_collection_response.py | f18fa21cf6270818d46552834022303a45595eff | [] | no_license | viktor-tchemodanov/Training_Tasks_Python_Cloud | 4592cf61c2f017b314a009c135340b18fa23fc8f | b7e6afab4e9b76bc817ef216f12d2088447bd4cd | refs/heads/master | 2020-09-04T10:39:23.023363 | 2019-11-05T10:36:45 | 2019-11-05T10:36:45 | 219,712,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,084 | py | # coding: utf-8
# -----------------------------------------------------------------------------------
# <copyright company="Aspose" file="ParagraphLinkCollectionResponse.py">
# Copyright (c) 2018 Aspose.Words for Cloud
# </copyright>
# <summary>
# Permission is hereby granted, free of charge, to any person obtainin... | [
"vtchemodanov@hotmail.com"
] | vtchemodanov@hotmail.com |
b7e6ccbf91282fd4b1135b33210324ead1541bbf | 50008b3b7fb7e14f793e92f5b27bf302112a3cb4 | /recipes/Python/577619_user_and_root_directory_logfile/recipe-577619.py | a1ea4b4ab355197464452fb26ca1eb8516cd6dac | [
"MIT"
] | permissive | betty29/code-1 | db56807e19ac9cfe711b41d475a322c168cfdca6 | d097ca0ad6a6aee2180d32dce6a3322621f655fd | refs/heads/master | 2023-03-14T08:15:47.492844 | 2021-02-24T15:39:59 | 2021-02-24T15:39:59 | 341,878,663 | 0 | 0 | MIT | 2021-02-24T15:40:00 | 2021-02-24T11:31:15 | Python | UTF-8 | Python | false | false | 339 | py | #! usr/bin/python
import dircache
import getpass
import time
logfile = open("spam.txt", "w+")
localtime = time.asctime( time.localtime(time.time()) )
print >> logfile, 'local current time :', localtime
usr = getpass.getuser()
print >> logfile, 'current user :' + usr
lst = dircache.listdir('/')
print >> logfile, ls... | [
"betty@qburst.com"
] | betty@qburst.com |
3e237a3b618f6babfcc45fed3d29a91f5c1caf5e | 5cb9dccbcccb8a2137368dd0615fe3e3c7761707 | /simulations/kinova/build/moveit_ros_visualization/catkin_generated/pkg.installspace.context.pc.py | be8bbf82db3fed001402ea244273aafcf024b20f | [] | no_license | Simon-Steinmann/sim2real-modular-RL-project | b2467a393014e106043f6128a026f5eac934a83d | 4027590ac94de2d5c914731c09efcf2f318b9ca3 | refs/heads/master | 2020-07-29T01:30:56.450919 | 2019-10-12T09:33:00 | 2019-10-12T09:33:00 | 209,605,548 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,016 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/acis/sim2real/simulations/kinova/install/include;/usr/include/eigen3".split(';') if "/home/acis/sim2real/simulations/kinova/install/include;/usr/include/eigen3" != "" else []
PROJECT_CATKIN_DEPEN... | [
"simon.steinmann91@gmail.com"
] | simon.steinmann91@gmail.com |
f61dd5f504fce6b9b5c5368af402735f80c34ca2 | 7d85c42e99e8009f63eade5aa54979abbbe4c350 | /game/lib/coginvasion/distributed/PlayGame.py | 82e93f8b2d73561ef231f29acb3acbd8bdb2e18f | [] | no_license | ToontownServerArchive/Cog-Invasion-Online-Alpha | 19c0454da87e47f864c0a5cb8c6835bca6923f0e | 40498d115ed716f1dec12cf40144015c806cc21f | refs/heads/master | 2023-03-25T08:49:40.878384 | 2016-07-05T07:09:36 | 2016-07-05T07:09:36 | 348,172,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,364 | py | # Filename: PlayGame.py
# Created by: blach (28Nov14)
from lib.coginvasion.globals import CIGlobals
from lib.coginvasion.distributed.CogInvasionMsgTypes import *
from direct.fsm.ClassicFSM import ClassicFSM
from direct.fsm.State import State
from direct.fsm.StateData import StateData
from direct.directnotify.DirectNo... | [
"brianlach72@gmail.com"
] | brianlach72@gmail.com |
ac6de3a9cebc01573b58f7b063a5ec27a52ba20c | c16d228002320d9cbffb888707799c6fd9733f5e | /comparer/common/session.py | b1a40dc0487a74658e19932f5ce6bee948c6d0ff | [] | no_license | vprusa/MediaWiki-to-DokuWiki-Importer | 45648ebc798ee5e4c1ae31b116fc01e2b04fd385 | 52f6a21de91e9eea4b01c04228b0bedbb58743ba | refs/heads/master | 2022-11-15T08:12:56.860237 | 2020-07-15T11:52:12 | 2020-07-15T11:52:12 | 279,854,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,090 | py | from common.base_login import base_login
from conf.properties import properties
from selenium import webdriver
from selenium.webdriver.firefox.firefox_binary import FirefoxBinary
from selenium.common.exceptions import StaleElementReferenceException
from common.ui_utils import ui_utils
import os
import logging
import ... | [
"prusa.vojtech@gmail.com"
] | prusa.vojtech@gmail.com |
a3d446308f50cb599ebfcc1c2196f6b228cae9ec | 9b7d309765c29be70044ade582f92c96abcc97e1 | /turnip/admin.py | 869ae73617c242f7b216e78d84de861ce8781210 | [] | no_license | Tholdan/animal_crossing_turnip | de6f3775bad37c565dce915c723bcee909aff8d1 | c78db10bfe154ff84d4891a54f9e2002ce61a5d1 | refs/heads/master | 2021-04-17T03:43:59.618984 | 2020-03-23T11:13:30 | 2020-03-23T11:13:30 | 249,409,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | from django.contrib import admin
from turnip import models
admin.site.register(models.TurnipWeek)
admin.site.register(models.TurnipDailyCost)
| [
"ivanort97@gmail.com"
] | ivanort97@gmail.com |
049dbc9839f445afb09c852ed69a14d82a04e27b | 5d2c59ccd6fb387ac9e76d1530b27541c07a0393 | /backend/odas_backend/odas/serializers.py | 6dfed759e1bc2404795ca3783fd32dd74d9767cb | [] | no_license | maxorozco213/Operations-Data-and-Mgmt-System | 167c7cc35730b3af21b71a4c699c1dfc340acb5a | 1fc6e8a076886dad5732210f91873f6a09485221 | refs/heads/master | 2022-05-27T02:41:14.970986 | 2020-04-27T21:03:45 | 2020-04-27T21:03:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | from rest_framework import serializers
from odas.models import Satellite, Component, Measurement, Units
# Lead Serializer
class SatelliteSerializer(serializers.ModelSerializer):
class Meta:
model = Satellite
fields = '__all__'
class ComponentSerializer(serializers.ModelSerializer):
class Meta:... | [
"jesus_r_mendoza@yahoo.com"
] | jesus_r_mendoza@yahoo.com |
f6fbc5a8b7742f6f45223f0e0e96d9c2a7b32065 | 85bd5522f5bc58fe0b6a93c93f31ce2b09fa9e10 | /Pi_monteCarlo.py | fbe75639eadb35e492ff9d4ce4a7a3b92b770dac | [] | no_license | jeremlp/Pi-approximation-Monte-Carlo | f72ff70adbf38c9c1954e10f70976c48a6e3c471 | 843c15df66e4badea38db1d16ebebdea7575fe06 | refs/heads/master | 2022-04-20T21:59:27.227547 | 2020-04-17T14:40:59 | 2020-04-17T14:40:59 | 256,528,579 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Mar 21 02:40:37 2020
@author: Jeremy La Porte
Release V1.0
Pi approximation using Monte Carlo method
"""
from random import *
import matplotlib.pyplot as plt
data = 1000000
R=0
for i in range(data):
x,y = random(),random()
plt.scatter(x,y,c='r',s=0.4)
... | [
"noreply@github.com"
] | noreply@github.com |
f80430b48ec9e0b71e51fbfed5dd8c8bcdabbbe4 | 42e8c0992fd845237fa7b1baef494bfb6abc9dba | /ui/data_input_panel.py | 7dd2b4764971de4b2bd9fc109be70c082724291f | [] | no_license | mx1001/animation_nodes | b5ae336512bb43f40e6ca5276a4e05acb5fdc81b | b77b96d991f2b26c03bcbeef4a9fa8a09173ea4f | refs/heads/master | 2020-02-26T17:46:05.676451 | 2016-03-09T15:22:01 | 2016-03-09T15:22:01 | 54,067,761 | 5 | 0 | null | 2016-03-16T21:27:54 | 2016-03-16T21:27:54 | null | UTF-8 | Python | false | false | 554 | py | import bpy
from .. tree_info import getNodesByType
class DataInputPanel(bpy.types.Panel):
bl_idname = "an_data_input_panel"
bl_label = "Data Input"
bl_space_type = "VIEW_3D"
bl_region_type = "TOOLS"
bl_category = "AN"
def draw(self, context):
layout = self.layout
nodes = getNod... | [
"mail@jlucke.com"
] | mail@jlucke.com |
052c2a2cb51a4e27408d96c8675bf650c28a11d6 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /3pzKWEg5oiaMemDdP_20.py | 8a2a185b2383fd368b4c800327192066c7c46a25 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py |
def most_expensive_item(products):
Things = []
for x in products.keys():
Things.append(x)
Worth = []
for y in products.values():
Worth.append(y)
Highest = max(Worth)
Counter = 0
Length = len(Things)
while (Counter < Length):
Item = Things[Counter]
Money = Worth[Co... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
740752810a2183122e52edfcad677fbd485bf6f7 | 17af1d72936b6f5340abcea54535db44c0b6cc20 | /TEBC-Net/relative_Transformer.py | 44ec18f762af20a6808f3e952cffa54bb4e976c0 | [] | no_license | azhe1234/TEBC-Net | 4961d0a91d3a0a8fd99d80e356b3a12902b65c40 | b1e2321db5901613a71304607583808eb1ef24a3 | refs/heads/master | 2023-04-10T03:17:18.670955 | 2021-03-04T01:18:23 | 2021-03-04T01:18:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,016 | py | import torch
from torch import nn
import torch.nn.functional as F
import math
class RelativeEmbedding(nn.Module):
def forward(self, input):
"""Input is expected to be of size [bsz x seqlen].
"""
bsz, seq_len = input.size()
max_pos = self.padding_idx + seq_len
if max_pos > s... | [
"120192227066@ncepu.edu.cn"
] | 120192227066@ncepu.edu.cn |
9f8a9aa777f4e0e856d4eb0612c94910818c0e3f | 203985cab249cfca2b93f66c1d8486e1574348b8 | /Applications/Applications/dock/reframe_scripts/dock_profilef_test2_nv.py | dd3e34c37e876eba6d652d1448d647ba7d8d0a53 | [] | no_license | arm-hpc-user-group/Cloud-HPC-Hackathon-2021 | 873078d634bba26088199fa0f6be36d87017b0f6 | afdd42e0f36afa0e0c73757beb6e2c975d9ca57b | refs/heads/main | 2023-04-10T00:58:37.212005 | 2022-05-20T18:49:20 | 2022-05-20T18:49:20 | 374,724,420 | 30 | 71 | null | 2021-09-10T10:27:06 | 2021-06-07T16:00:59 | APL | UTF-8 | Python | false | false | 4,187 | py | import reframe as rfm
import reframe.utility.sanity as sn
import reframe.core.launchers as rcl
import hackathon as hack
@rfm.simple_test
class DockfpTest2NV(hack.HackathonBase): ###################################################
# Where to run the binaries 'aws:c6gn' on Arm or 'aws:c5n' on Intel
valid_systems... | [
"noreply@github.com"
] | noreply@github.com |
62c8e000ff730bcbea4570291d047b650df3c345 | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog/optimized_44485.py | ad2e839330e7dfc437fe5ef7dea9d16f2ba0db61 | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,844 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
2080c9590d8f599c2b46a7b06a7375201ebc5293 | e656912941a35ff51afd056c406ede34a2dbfa33 | /venv/Scripts/mavgpslock.py | 519f545f580df7f6f7e1dec5691a6f6fa1013178 | [] | no_license | madboi01/GCS-test1 | 85f85bd78c67f88398753694f14156efa36c1e1d | 53c2a5ae07dfa5c63ce6fa5c7c0d29a7ea4840f5 | refs/heads/master | 2023-08-04T14:07:20.208312 | 2021-09-23T13:02:24 | 2021-09-23T13:02:24 | 409,589,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,125 | py | #!c:\users\dell\pycharmprojects\map\venv\scripts\python.exe
'''
show GPS lock events in a MAVLink log
'''
from __future__ import print_function
import time
from argparse import ArgumentParser
parser = ArgumentParser(description=__doc__)
parser.add_argument("--condition", default=None, help="condition for packets")
p... | [
"66716237+madboi01@users.noreply.github.com"
] | 66716237+madboi01@users.noreply.github.com |
b3b06deaa3d53ad7fecd9e726b71f1a4e7ccb8ca | 33b2a4079a1c00e9b20d8dd87abb98ab75b63618 | /posts/tests/test_urls.py | 45d78cbde2354fb0f8063ced0ffc46faa3c3d1a6 | [] | no_license | personage-hub/yatube | f975040cfbb298daf736d66b09753d545f7e7213 | 5cac340a0ae671392b2558416f57034c620bea35 | refs/heads/master | 2023-08-14T23:50:01.520456 | 2021-09-30T20:37:27 | 2021-09-30T20:37:27 | 412,219,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,574 | py | import random
from http import HTTPStatus
from django.contrib.auth import get_user_model
from django.test import Client, TestCase
from posts.models import Comment, Group, Post
URL_HOMEPAGE = '/'
URL_GROUP_PAGE = '/group/test_slug/'
URL_NEW_POST = '/new/'
URL_USER_PROFILE = '/test_user/'
URL_POST = '/test_user/1/'
UR... | [
"alexander.niyazov@yandex.ru"
] | alexander.niyazov@yandex.ru |
c73b2322cd23ac5ea3b5a4646958132b8c3e2e6f | 342364ca8ad9bd0b0fd6629eca55425ef27a069e | /run_dbCheck.py | 98f8fe7f22563f16fdd2d85666ba415e9154417b | [] | no_license | kingking888/spiderIP | a49f813cb40651b4c4a8ce39699b62f2a431fc9d | d171ce4ba4502e3c5089353b3c2b1cf56264aabf | refs/heads/master | 2020-07-02T17:19:20.766704 | 2019-08-10T07:44:50 | 2019-08-10T07:44:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
__title__ = ''
__author__ = '80022068'
__mtime__ = '2019/8/10'
# qq:2456056533
佛祖保佑 永无bug!
"""
from spiderIP.dbIPCheck import DbIPCheck
if __name__ == '__main__':
db_ipcheck = DbIPCheck()
db_ipcheck.del_ip()
| [
"2456056533@qq.com"
] | 2456056533@qq.com |
906cd4d8ad7c433c507a091c53dfd90fe4514f34 | 7f53a1ba1920a5301ca325d4faf480f3799c0a48 | /merger_2012_emb.py | 654e169fbd8f372fa53edddcf0d02d83b14ee90c | [] | no_license | rmanzoni/tools | a7fe8083628954f7f02e80add1d3dd761720e8e6 | e2189860d26be2a4276ec2ca3fe220e90adf9158 | refs/heads/master | 2021-01-01T18:37:33.731578 | 2015-04-15T13:46:12 | 2015-04-15T13:46:12 | 18,681,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,254 | py | import os
import ROOT
from ROOT import gROOT, gStyle, TFile, gDirectory
gROOT.SetBatch(True)
#for mass in [110,115,120,125,130,135,140,145] :
for mass in [125] :
print "Higgs mass =", str(mass)
# search in current dir
matches = []
dirList = os.listdir(os.getcwd())
for fname in dirList:
if str(fname).fi... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
d37d447bd7ce2b1d813f28d559dadf00e8be9f92 | df25eefe4878c08b0f51f6ff19f48054ba6dbc2a | /test/espnet2/text/test_text_converter.py | 0d1f32b94924e5d24b9c95b25a217e07483a5f3e | [
"Apache-2.0"
] | permissive | sas91/espnet | 7f14a9394469993fb948758c7b0b78f76ad12cbe | 8e263d6512eb84cebeaecf6b99204c102a8252b5 | refs/heads/master | 2021-07-13T18:45:13.981483 | 2020-06-02T08:43:25 | 2020-06-02T08:43:25 | 142,748,209 | 1 | 0 | Apache-2.0 | 2018-07-29T09:37:35 | 2018-07-29T09:37:35 | null | UTF-8 | Python | false | false | 2,565 | py | from pathlib import Path
import string
import pytest
import sentencepiece as spm
from espnet2.text.char_tokenizer import CharTokenizer
from espnet2.text.sentencepiece_tokenizer import SentencepiecesTokenizer
from espnet2.text.word_tokenizer import WordTokenizer
@pytest.fixture(params=[None, " "])
def word_converter... | [
"naoyuki.kamo829@gmail.com"
] | naoyuki.kamo829@gmail.com |
77032a87267e6f84a839e1be407d819897f193f7 | 96cd5b21d06c89ec6a3c927dcf410554ad49c720 | /svn_monitor/svn_monitor.py | f4368337ec7825af2923f9ca99adc797ab9f168b | [] | no_license | yongzhizhan/toys | 278d5c1eb977a76baa35c02cef0c620e8553e80e | e720f54dd6e4f7646cf18089c6fe90f047eae520 | refs/heads/master | 2021-01-23T08:03:47.272990 | 2017-01-31T16:56:39 | 2017-01-31T16:56:39 | 80,527,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,290 | py | #!/usr/bin/env python
# coding:utf-8
import threading
from time import sleep
from database import DataBase
from mail import Mail
from svn_model import SvnModel
from models import SvnInfo
from models import MailInfo
import config
class SvnMonitor:
timer = None
session = None
stop_work = False
interval... | [
"yongzhi.zhan@gmail.com"
] | yongzhi.zhan@gmail.com |
561fbf76952e72959088ff99ae838295f3938bc7 | 479d3414e914f144fff20ee71872472ac84ca410 | /codespace/python/telegram/_files/inputfile.py | 730301869bd5e67593a4565ada2e146058b8f953 | [
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | tzpBingo/github-trending | 0fa4e0e08743f0683f68fd54d74eec466bc525e0 | 505014e84bdea7e2732296821028df20c0305390 | refs/heads/master | 2023-07-24T13:29:47.393940 | 2023-07-19T09:39:29 | 2023-07-19T09:39:29 | 102,687,887 | 49 | 20 | MIT | 2023-05-22T21:33:53 | 2017-09-07T03:39:42 | Python | UTF-8 | Python | false | false | 4,191 | py | #!/usr/bin/env python
#
# A library that provides a Python interface to the Telegram Bot API
# Copyright (C) 2015-2023
# Leandro Toledo de Souza <devs@python-telegram-bot.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser Public License as published by
#... | [
"tzpbingo@gmail.com"
] | tzpbingo@gmail.com |
e44aceb67241c06f62b74d6bfc67352c185a1223 | 5f8e8bbe15e36d6d25e80c726b847c686699a279 | /get_yes_or_no.py | ee42d878e16c1bbfa80c553e3649b6e8f50c44af | [] | no_license | gkl1107/Python-algorithm | e55443cc6fe6159c1557f0041b2241d494ac5198 | 06401a93c2675706f3899ec81d1fc563be9d499f | refs/heads/master | 2022-04-13T18:47:59.014878 | 2020-04-04T02:17:25 | 2020-04-04T02:17:25 | 142,956,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | #!/usr/bin/python
def get_yes_or_no(message):
valid_input = False
while not valid_input:
answer = raw_input(message)
answer = answer.upper() # convert to upper case
if answer == 'Y' or answer == 'N':
valid_input = True
else:
print('Please enter Y for y... | [
"kailuguan@Kailu-Air.localdomain"
] | kailuguan@Kailu-Air.localdomain |
684245438a626b9eaaf31134baeaa484f6bfaadc | db91297805de68086054016e643eceea7cf7c27b | /dnn.py | f45fcedac13fcb62eccf2c01b3bdf5e1db8b0650 | [] | no_license | citisy/BasicNeuralNetwork | 85349c919e4cb51465791df96a35fa8f3083d0a5 | a2c7def05f7bb7b886579de93948293436c99499 | refs/heads/master | 2022-05-02T22:01:32.068522 | 2022-03-28T15:39:36 | 2022-03-28T15:39:36 | 211,262,515 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,855 | py | import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as animation
import seaborn as sns
from matplotlib.animation import FFMpegWriter as Writer
sns.set(style="white", palette="muted", color_codes=True)
def get_dataset():
"""
data: [100, 1]
label: [100, 1]
"""
size = 100
... | [
"citisy@163.com"
] | citisy@163.com |
514dc7f9a17391be6ae9cb0b9342308cae1dda3e | d008761adfe0715495efe0cbfed9ec6c3ace2a71 | /lib/atari/helpers.py | f6e5219d30e31e484f6c1a0dcb326980d04b21f4 | [
"MIT"
] | permissive | dennybritz/reinforcement-learning | 6d95152ae44005d0aafcd7cf8008239b174b91de | 2b832284894a65eccdd82353cc446f68d100676e | refs/heads/master | 2023-08-30T02:21:09.480122 | 2022-09-20T23:57:31 | 2022-09-20T23:57:31 | 66,483,240 | 21,070 | 6,725 | MIT | 2023-07-13T09:54:43 | 2016-08-24T17:02:41 | Jupyter Notebook | UTF-8 | Python | false | false | 829 | py | import numpy as np
class AtariEnvWrapper(object):
"""
Wraps an Atari environment to end an episode when a life is lost.
"""
def __init__(self, env):
self.env = env
def __getattr__(self, name):
return getattr(self.env, name)
def step(self, *args, **kwargs):
lives_before = self.env.ale.lives()
... | [
"dennybritz@gmail.com"
] | dennybritz@gmail.com |
0617a144af6f6528355b038ef45fa54c7553e498 | 51de507d6e8990aa28538ab0831721140418e4e9 | /Prodaja.py | 549f4117d7c510dd2fc8d910df781c9fd82e541c | [] | no_license | PetrekanovicBI48/Projekat.1 | 67ea827305c2b891ccb18049fa3f6de56cdf11c4 | bb1ff70299863a26874b9944d7e62f35dd03793e | refs/heads/main | 2023-02-15T21:23:54.152072 | 2021-01-04T16:30:02 | 2021-01-04T16:30:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,869 | py | from racun.racunIO import ucitaj_racun, sacuvaj_racun
from knjige.knjigeIO import ucitaj_knjige
from akcije.akcijeIO import ucitaj_akcije
from datetime import datetime
from korisnici.korisniciIO import ucitaj_korisnike
racuni = ucitaj_racun()
knjige = ucitaj_knjige()
akcije = ucitaj_akcije()
korisnici=ucitaj_korisnike... | [
"kovacevic.bi34.2020@uns.ac.rs"
] | kovacevic.bi34.2020@uns.ac.rs |
830a140f3af9cb75dd17cf22df4d0529f9709007 | 8f1673c2abfed8f372e22fbd1c280486014b4466 | /nmt/embeddings/fresh_embedding_test.py | 02c77c2260cfcd5f01d846f377761ea8db571074 | [
"Apache-2.0"
] | permissive | naivenlp/naivenmt-legacy | be670df40a98c0f28bdacb2a3acf9a5b06667966 | bcceeec0a477eb09c4a8915e638a27dae6c95562 | refs/heads/master | 2021-10-27T02:55:33.160837 | 2019-04-15T14:39:06 | 2019-04-15T14:39:06 | 118,464,831 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 931 | py | import tensorflow as tf
import numpy as np
from nmt.embeddings.fresh_embedding import FreshEmbedding
from nmt import misc_utils
class FreshEmbeddingTest(tf.test.TestCase):
def testFreshEmbedding(self):
vocab_file = misc_utils.get_test_data('iwslt15.vocab.100.en')
embedder = FreshEmbedding(vocab_... | [
"zhouyang.luo@gmail.com"
] | zhouyang.luo@gmail.com |
6afdae640dd9ad3d9adbf1cbc0c7d8cf8b7d3466 | 491c1e520a64e3ebd5349130f35047aaed1e70ec | /two pointer/680 validPalindrome.py | 3ccf25be7a1c357ec82bfd31b9cc88e976d594fb | [] | no_license | pangyouzhen/data-structure | 33a7bd7790c8db3e018114d85a137f5f3d6b92f8 | cd46cf08a580c418cc40a68bf9b32371fc69a803 | refs/heads/master | 2023-05-26T12:02:30.800301 | 2023-05-21T08:07:57 | 2023-05-21T08:07:57 | 189,315,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 740 | py | class Solution:
def validPalindrome(self, s: str) -> bool:
def checkPalindrome(low, high):
i, j = low, high
while i < j:
if s[i] != s[j]:
return False
i = i + 1
j = j - 1
return True
l... | [
"pangyouzhen@live.com"
] | pangyouzhen@live.com |
87116af50b6c30c374ade0f7be56252673c0f14a | 9101d9e1a4e9ea23f8043090704ada6f87295bfe | /optunity/search_spaces.py | 9227b2377eb2a7539a95bd41d2cc35ebb0ea1362 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | gitter-badger/optunity | 2edacb3dfcd9cb21f720ccbd36488e2009637259 | 4094650aeb1bf00506e1f2acf383b5c8f7d596b5 | refs/heads/master | 2020-07-13T05:37:46.615450 | 2015-07-17T17:09:51 | 2015-07-17T17:09:51 | 39,302,683 | 0 | 0 | null | 2015-07-18T15:24:17 | 2015-07-18T15:24:17 | null | UTF-8 | Python | false | false | 11,445 | py | #! /usr/bin/env python
# Copyright (c) 2014 KU Leuven, ESAT-STADIUS
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
# notic... | [
"claesenm@gmail.com"
] | claesenm@gmail.com |
f24c4049415d4f03f01b2917ce79cf044672f535 | c7495a8cd3f04b703b97e23fea129e3c78e55c33 | /crawler.py | 464dca74d5c15af902ce7a2cac0de304d36452c8 | [] | no_license | zhuyul/DoubanCrawler | 8ca0ed164d3fb195552a2789e4052259fb48b602 | 7df36274031fa195671555922650505022973046 | refs/heads/master | 2020-04-13T23:28:55.753983 | 2018-12-31T15:16:04 | 2018-12-31T15:16:04 | 163,507,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,062 | py | # encoding:utf-8
from selenium import webdriver
import csv
def main():
options = webdriver.ChromeOptions()
options.add_argument("headless")
driver = webdriver.Chrome(chrome_options=options)
url = inputURL(driver)
print("Fetching data ...")
commentDict = crawler(driver, url)
writeToCsv(comm... | [
"zhuyul@uci.edu"
] | zhuyul@uci.edu |
497d9f49fe787e753c65fc9bdd2556294660243e | 72cf9558c7b33c1d67a597d4f67882303b2ec76c | /TerminalGames/find_the_name.py | de52980efc183340cd86d1cf24996fd82b425b20 | [] | no_license | PRATHAM1ST/Python-Projects | 127a4a98afc1f9f2036fecda99cf57d52131e094 | f4b99f55cfb2bc8da65d6c2968583e561f3393c7 | refs/heads/main | 2023-05-02T10:16:53.307763 | 2021-05-26T17:14:54 | 2021-05-26T17:14:54 | 371,111,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,832 | py | from random import *
################################################################################
def split(word):
return [char for char in word]
def seperator(list1, list2):
for i in range(len(list1)):
for a in range(len(list1)):
if i <= a:
if list1[i] != '... | [
"noreply@github.com"
] | noreply@github.com |
05f8026f429941abdd6ce606b334f295694c5f27 | 72f026518a27bab1d7d260914fc366cdb8559a6f | /scripts/setup.py | c4e8832eeb5e9b9f9dd28a8dbccbd2d863940b42 | [
"MIT"
] | permissive | wenlien/pyre-check | 30ca42404740517a911fba9b2e786aef38672d77 | 5d97637bacac25f0ca7659163a8617dae1c43f0e | refs/heads/master | 2023-07-06T07:39:34.156671 | 2023-06-25T17:22:01 | 2023-06-25T17:22:01 | 133,370,640 | 1 | 0 | null | 2018-05-14T14:09:04 | 2018-05-14T14:09:04 | null | UTF-8 | Python | false | false | 13,159 | py | #!/usr/bin/env python3
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""
This script provides a the logic used to bootstrap a local opam
switch for building Pyre by collecting all depend... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
9f912bb682f7b967a2fb11f58daaf4b50d5476bc | d585ba3d0891e8f4d091091007c34a61896b3f26 | /TestPackages/MyFirstButton.py | 4c0ed627baefd85a96cf6dd0efa090ab6c80f8f8 | [] | no_license | Bjoneskc/UMKC-Python1 | a1b4c5194bad93d3636190dff02995e3f20f1053 | e1686d1c5129c18262c2b272764477b5be00944f | refs/heads/master | 2016-09-06T08:33:23.721535 | 2014-03-01T04:44:28 | 2014-03-01T04:44:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | __author__ = 'bjone'
import sys
from tkinter import *
widget = Button(None, text='Click Me', command=sys.exit)
widget.pack()
widget.mainloop() | [
"bjoneskc01@gmail.com"
] | bjoneskc01@gmail.com |
7476db67d7a9a1e950e4e9ac795f4d9a8fc1af7d | bdf647d2f626578aa447258b7529f4acfdb2cfba | /tencentcloud/tke/v20180525/models.py | 26b20dc4ac138734595287fda29734009f79bad4 | [
"Apache-2.0"
] | permissive | psixdp/tencentcloud-sdk-python | 2c93528b9d7a5cec1fa38c3dd140a277abf8d26e | 7e0ec01ebb50cbfb92c60ed1f29a59b77199ccea | refs/heads/master | 2020-06-30T22:12:23.331433 | 2019-08-02T03:16:09 | 2019-08-02T03:16:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43,176 | py | # -*- coding: utf8 -*-
# Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses... | [
"tencentcloudapi@tencent.com"
] | tencentcloudapi@tencent.com |
31fdabf14f01efb19bf3c0756328b0bf7d43f9b3 | 394bf1fc97dac38c956f8c3c83185782ac97fae0 | /test.py | 48d0e2d7e427da6daf6c3320a6ecb31ab3a9bcd8 | [] | no_license | Mithsen/VGG50_test1 | ce182c048536bc9e612b912a5b3ca7c132f509cd | 90f2f1f2726e05bbccdfd13758db45ee08f001d8 | refs/heads/master | 2020-03-08T09:29:46.997407 | 2018-04-04T11:08:21 | 2018-04-04T11:08:21 | 128,048,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 974 | py | import os
import sys
import argparse
import numpy as np
from PIL import Image
import requests
from io import BytesIO
import matplotlib.pyplot as plt
import tensorflow as tf
from keras.preprocessing import image
from keras.models import load_model
#from keras.applications.inception_v3 import preprocess_input
from keras.... | [
"mithsendesilva@gmail.com"
] | mithsendesilva@gmail.com |
67260b182f95c2fc11bb0ddc543a22d804d390b2 | 56bfcc353a57855f526ccf39e49e1f63d7ee4e95 | /tensforflow_study/07_linear_regression.py | 280d9a076cc1888fd89115dd83f26653cf9b6924 | [] | no_license | thankslife/AI_Project | 57100026568e228ebbb188469f3ac945aa652a63 | 078a8f0b497316bd24aec5311dbce025c9bc5d51 | refs/heads/master | 2020-03-25T01:56:00.752905 | 2018-04-01T03:34:05 | 2018-04-01T03:34:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,255 | py | import tensorflow as tf
import numpy as np
from sklearn.datasets import fetch_california_housing
# 立刻下载数据集
housing = fetch_california_housing()
print(housing)
# 获得X数据行数和列数
m, n = housing.data.shape
# 这里添加一个额外的bias输入特征(x0=1)到所有的训练数据上面,因为使用的numpy所有会立即执行
housing_data_plus_bias = np.c_[np.ones((m, 1)), housing.data]#np.c_... | [
"945763695@qq.com"
] | 945763695@qq.com |
70b14635298c74a92c574417e14d469cd51dbda8 | e9039ce5e114dae3f02ac00ba8136a3611acf82a | /filter/migrations/0003_auto_20200626_1045.py | 3aed2c226b3f6f82ab5d2827c3df80eb17dfc275 | [] | no_license | Richard-Einsteine/Django-Bootstrap-Filter | 43667210af7ae56dc5f0e50544889ae63f816f1f | 9b6fbf650607af0b6d6a6142f81861407852c072 | refs/heads/master | 2022-11-05T05:53:29.783358 | 2020-06-27T10:31:29 | 2020-06-27T10:31:29 | 275,348,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | # Generated by Django 2.2.2 on 2020-06-26 10:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('filter', '0002_auto_20200626_0940'),
]
operations = [
migrations.AlterField(
model_name='journal',
name='publish_dat... | [
"karasirarichard250@gmail.com"
] | karasirarichard250@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.