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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d6975104cb7ecc5f7e92a88667057e945d1059b0 | 2016f22390c4d91d848a142805411085e90935fa | /core/forms.py | 9a06ef4295d643b1215e10cf219f5ceff9a90ebd | [] | no_license | matheuslins/SearchSystem | c4de76fbca0e5833deff9f22b7f1e5d5fcb623fc | 37f3c36ddbb078991dc1cd2d68051109c99ed520 | refs/heads/master | 2021-01-12T11:40:43.454847 | 2016-11-07T14:02:00 | 2016-11-07T14:02:00 | 72,256,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | from django import forms
from .models import Box, BoxLog
class BoxForm(forms.ModelForm):
class Meta:
model = Box
fields = ['name', 'number', 'content']
class BoxLogForm(forms.ModelForm):
class Meta:
model = BoxLog
fields = ['box'] | [
"msl@cin.ufpe.br"
] | msl@cin.ufpe.br |
8321df0e4633da445505ba2fe5a951ef62ef9419 | 00b8dff516dde0bb5b05fe82ee9bed20b80ce410 | /PythonCode Meilenstein 6/venv/Lib/site-packages/tensorflow_core/_api/v2/compat/v1/ragged/__init__.py | 8c32616f901edd904041b1ccb18863f89b4bc128 | [] | no_license | georgerich/MyCo-Gruppe-3 | 2f6ef26f9eb7ff0745c045fc84f8300d31e51d03 | fae4426f8b1e56c01906762686c6eb287073fc5b | refs/heads/master | 2020-08-27T13:45:06.672132 | 2020-01-30T03:36:49 | 2020-01-30T03:36:49 | 217,384,271 | 5 | 1 | null | 2020-01-29T23:18:03 | 2019-10-24T19:55:31 | Python | UTF-8 | Python | false | false | 8,415 | py | # This file is MACHINE GENERATED! Do not edit.
# Generated by: tensorflow/python/tools/api/generator/create_python_api.py script.
"""Ragged Tensors.
This package defines ops for manipulating ragged tensors (`tf.RaggedTensor`),
which are tensors with non-uniform shapes. In particular, each `RaggedTensor`
has one or mo... | [
"chzeit02@hs-esslingen.de"
] | chzeit02@hs-esslingen.de |
709471af2874d6df8eb12fa07ee2cbbce98113aa | cba0d86ea6e8f21a2616a0ebcdf53a96449d3ccb | /python/codestat.py | ce8de83199feb2bf70eedc13625344a2e8fc2bbb | [] | no_license | zaopuppy/base | 1bfb4b6bddc60c0138872f4a62ea0518aa4054df | 6bf09bb02120a8edeb1160da0332d5465e6dd556 | refs/heads/master | 2020-04-15T09:58:47.744981 | 2015-01-17T08:20:15 | 2015-01-17T08:20:15 | 8,814,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,911 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import os
import os.path
from functools import reduce
if sys.version_info.major != 3:
raise Exception("Wrong python major version")
class FileInfo():
def __init__(self):
pass
class TextStatisticHandler():
def __in... | [
"zhaoyi.zero@gmail.com"
] | zhaoyi.zero@gmail.com |
fc62026ad385c261dc340d5914e1490389de7b69 | 16abd82b9523f0fc7ae6df0aac11fd03e2e3d9f3 | /boards/tests/test_views.py | c6631a2dcbefbde8dc9659cd11ccf5750f89b5e0 | [] | no_license | msm3858/projektforum | cf5255a5781f3536db56cf1b680557ca876f8221 | c6a0abda9f147d3578e430012780bda3eb4f20b5 | refs/heads/master | 2021-09-10T10:03:32.962523 | 2018-03-24T06:26:18 | 2018-03-24T06:26:18 | 124,791,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,560 | py | from django.test import TestCase
from django.urls import reverse, resolve
from ..views import home, board_topics, new_topic
from ..models import Board, Topic, Post, User
from ..forms import NewTopicForm
# Create your tests here.
#########################
# TEST HOME
#########################
class HomeTests(TestCase... | [
"="
] | = |
87416760e8d527e89eda7274e938fa35d0f5862c | ec551303265c269bf1855fe1a30fdffe9bc894b6 | /topic12_backtrack/T37_solveSudoku/interview.py | aa39e66a9273588c348549634ece2fa51180ca9a | [] | no_license | GongFuXiong/leetcode | 27dbda7a5ced630ae2ae65e19d418ebbc65ae167 | f831fd9603592ae5bee3679924f962a3ebce381c | refs/heads/master | 2023-06-25T01:05:45.683510 | 2021-07-26T10:05:25 | 2021-07-26T10:05:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,380 | py | '''
37. 解数独
编写一个程序,通过已填充的空格来解决数独问题。
一个数独的解法需遵循如下规则:
数字 1-9 在每一行只能出现一次。
数字 1-9 在每一列只能出现一次。
数字 1-9 在每一个以粗实线分隔的 3x3 宫内只能出现一次。
空白格用 '.' 表示。
'''
class Solution:
def solveSudoku(self, board):
"""
Do not return anything, modify board in-place instead.
"""
# 把... | [
"958747457@qq.com"
] | 958747457@qq.com |
6fead26c5691ec527b0a25f5b1bb51407b45423b | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03433/s234156745.py | 8af8f4093c0e131eec273745a1b4cdfd8539bffb | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 108 | py | n = int(input().rstrip())
a = int(input().rstrip())
if n % 500 <= a:
print('Yes')
else:
print('No') | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e62326a6ccb2c56f1fd73a7e059c705feebf05ab | 78632e8b5a9e2193ad313731d1adbf769fa989b3 | /day4/puzzle.py | 87d4e5d9e6c11e957d472684c4438e9fdb846726 | [] | no_license | SudheerBabuGitHub/AOC2020 | 0a1677175b8bf89f6b2e9b2784074291bee4edbe | dfd40e9f4f3a04aba8f4f9fabb2b63676bdd2671 | refs/heads/master | 2023-02-09T05:13:20.727016 | 2020-12-25T02:25:18 | 2020-12-25T02:25:18 | 318,072,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,029 | py | def get_byr (record):
#byr (Birth Year) - four digits; at least 1920 and at most 2002.
chararray = list(record)
recordlen = len(record)-1
foundbyr = False
byr = 0
for idx,c in enumerate(chararray):
if idx==recordlen-3-4:
break
elif chararray[idx]+chararray[idx+1]+char... | [
"75408000+SudheerBabuGitHub@users.noreply.github.com"
] | 75408000+SudheerBabuGitHub@users.noreply.github.com |
04f5d0325e7a0300279d870a928bcd03205e6b62 | bcf84ea70de9f49bb8506a34af3fcafa35421f4a | /wlb_app_dev.py | 1997776e7c825b02ddae4b40bc3d4211c8bb6868 | [] | no_license | awoltman/App_Dev | 44b2c46e85869471a59641a13e9815b09819ebc3 | 710ca49188c42fdd7920fd96d9fd44a0b304fc07 | refs/heads/master | 2020-06-10T21:29:47.103560 | 2019-07-01T19:31:48 | 2019-07-01T19:31:48 | 193,755,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,263 | py | from pymodbus.client.sync import ModbusTcpClient as ModbusClient
import matplotlib.pyplot as plt
import xlwt
from datetime import datetime
import sqlite3
import time
#def init():
conn = sqlite3.connect('test_data.db')
client = ModbusClient(mesthod = 'tcp', host = '10.81.7.195', port = 8899)
UNIT = 0x01
c = conn.cursor... | [
"awoltman@hawk.iit.edu"
] | awoltman@hawk.iit.edu |
96e741b71f0fdae9ef6c8ea3f4c3df4f559e42b5 | 09deb7c2156929e8a65dca55d2142ced87f55bb0 | /Exam5.py | fe9d27fc80599987e3b72355971118978307332f | [] | no_license | nyirweb/python-four | 9495218a01f5ea8e7a3aba7617a2b61db262f2af | 185172d57760a3ce9f4ef56da626f8269d1d3e09 | refs/heads/master | 2020-04-16T11:07:47.173221 | 2019-01-13T15:58:35 | 2019-01-13T15:58:35 | 165,524,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 750 | py | # Kérj be egy egész óra értéket. Ha a szám nem 0 és 24 óra között van,
# akkor adjon hibaüzenetet, egyébként köszönjön el a program a napszaknak megfelelően!
# 4-9: Jó reggelt!, 10-17: Jó napot!, 18-21: Jó estét!, 22-3: Jó éjszakát!
ido = int(input("Add meg az időt!"))
elkoszones = ["Jó reggelt!","Jó napot!","Jó ... | [
"noreply@github.com"
] | nyirweb.noreply@github.com |
3ef5e4152c3be2e2571bcf1fd3c78b7e282b5057 | bf874dd4c151a097616cb48710862d352f82b8ee | /learning_logs/migrations/0002_entry.py | bfe7f6179815e9fa1f1f9d7def65014e759d771b | [] | no_license | whjwhjwhj/PythonLearningOffice | 0fd2763b17ab8bd35640d794916c566774ce31c2 | a828a621c7da468507db0185801f92b22e85a531 | refs/heads/master | 2020-04-03T13:55:53.547106 | 2018-11-26T03:10:34 | 2018-11-26T03:10:34 | 155,303,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | # Generated by Django 2.1.2 on 2018-10-29 06:18
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('learning_logs', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Entry',
... | [
"wei_hj@aliyun.com"
] | wei_hj@aliyun.com |
8dbb60941dda40d486d7ee5f240f7fbb4e73da62 | 227654cd915b560b14f49f388d4256a0ce968b16 | /agent/models.py | f8f5cca2af918c3cf49ac20911596ad878b08d19 | [] | no_license | chitharanjanpraveen/insurance_rdbms_project | cb7d976def7ce3b1a962c4703c53518bcacebb9a | 7a41e9a688efdd216001bf100ae59ac2653a15eb | refs/heads/master | 2020-03-09T15:37:40.403717 | 2018-04-25T05:06:05 | 2018-04-25T05:06:05 | 128,864,014 | 0 | 2 | null | 2018-04-25T05:06:06 | 2018-04-10T02:48:11 | Python | UTF-8 | Python | false | false | 918 | py | from django.db import models
# Create your models here.
class office(models.Model):
office_name = models.CharField(max_length=50, primary_key=True)
adress = models.CharField(max_length=120)
phone_no = models.IntegerField()
manager_name = models.CharField(max_length=40)
def __str__(self)... | [
"chitharanjancharan@gmail.com"
] | chitharanjancharan@gmail.com |
d38c04f002d4092d4b95e17d4581f523d0a76782 | 6de1ea8c6840f714af12edde76395e21854b0214 | /app.py | f3e1b07d7f37d7d5020ced8f70852fa72f315b43 | [] | no_license | VNgit/Youtube_Downloader | 97bbff4b3ecc060b2f0456042aa7b83e0717117c | 0688cd38992c843d194d5eb9bd4d9029c78bbfb6 | refs/heads/master | 2020-08-28T17:44:03.517436 | 2019-10-26T11:39:37 | 2019-10-26T11:39:37 | 217,773,126 | 1 | 0 | null | 2019-10-26T21:46:51 | 2019-10-26T21:46:51 | null | UTF-8 | Python | false | false | 1,315 | py | from flask import Flask,redirect,render_template,request,url_for
from flask_sqlalchemy import SQLAlchemy
from pytube import YouTube
import os
app = Flask(__name__)
# creatimg configs
app.config['SQLALCHEMY_DATABASE_URI']='postgresql://postgres:morgan8514@127.0.0.1:5432/YD'
# dialect+driver://username:password@host:po... | [
"morgangicheha4@gmail.com"
] | morgangicheha4@gmail.com |
8bed32b1d24b6e065eedde91cef18790224a81ef | f757fc2a0f70e7cb25e390f603b8580eb8fe5cfd | /Week_2-Simple_Programs/4.-Functions/Exercise_gcd_recur.py | 545cf01012a3ae71c3d12fffe52ee3f85532162c | [] | no_license | Raj-Yadav/MITx-6.00.1x-Introduction-to-Computer-Science-and-Programming-Using-Python | 03a9659f6d6a1234d60a2f6b9d315dc782ba6b2d | b394681f478fedf877183eb16be55a883531eea4 | refs/heads/master | 2020-09-04T06:41:28.469232 | 2018-04-29T09:42:40 | 2018-04-29T09:42:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 860 | py | # Exercise: gcd recur
# (5/5 points)
# ESTIMATED TIME TO COMPLETE: 6 minutes
# The greatest common divisor of two positive integers is the largest integer that divides each of them without remainder. For example,
# gcd(2, 12) = 2
# gcd(6, 12) = 6
# gcd(9, 12) = 3
# gcd(17, 12) = 1
# A clever mathematical trick (due ... | [
"dlujanschi2@gmail.com"
] | dlujanschi2@gmail.com |
d0e06b60a764d60c8b89feca2c614b4bed4c4f35 | a9d93637a75bf2d074a06897dbf8404657ff2606 | /app.py | 37ddb0fc7ebc9e176753fc7f2e0ae527472080e5 | [] | no_license | Blackscure/flsk-wolf | 76f82ca190a0656e0403f03bb2c2d7bba490b0ed | ef84adcac76f40239848020e0da5dca68b7a5f0f | refs/heads/master | 2020-03-30T12:48:28.492523 | 2018-10-02T13:29:25 | 2018-10-02T13:29:25 | 151,241,709 | 0 | 0 | null | 2018-10-02T13:27:48 | 2018-10-02T11:11:22 | HTML | UTF-8 | Python | false | false | 1,184 | py | from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def index():
movie_names = ['Avator',
'Pirate of Carribbean',
'Spectre',
'The dark Knight Rises',
'John Carter',
'Spiderman',
... | [
"Wekesabuyahi@gmail.com"
] | Wekesabuyahi@gmail.com |
8d8d34714355ffbcb9dc8397fb7b9605238dd8de | bc1c69344fe601eec08a9f411205b436da84a7cf | /1_python/0730/project/problem_d.py | ffa8f7075dfafb0466982031c30c50dbabdc2174 | [] | no_license | mooncs/TIL | 774f01f1ccb2b827060fa0fd8d574bfb560b5443 | 0919d8c894fe8bf9644d72db6a0e474191c9d719 | refs/heads/main | 2023-08-15T07:35:05.055894 | 2021-09-16T05:34:51 | 2021-09-16T05:34:51 | 386,134,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,509 | py | import requests
from tmdb import TMDBHelper
from pprint import pprint
def recommendation(title):
"""
제목에 해당하는 영화가 있으면
해당 영화의 id를 기반으로 추천 영화 목록을 출력.
추천 영화가 없을 경우 [] 출력.
영화 id검색에 실패할 경우 None 출력.
"""
tmdb_helper = TMDBHelper('83b326269660ac3171fddfc110d21cc7')
# 추천작을 검색하는 url을 완성하기 위해서는 영... | [
"csmoong@naver.com"
] | csmoong@naver.com |
300c13b7d14b8eeb64fe0620787ba963d4b4a22d | 3c03ecb8e066f2d4eac73a469a75e5906734c66c | /_2019_2020/Classworks/_21_08_02_2020/_4.py | bb2dfe36b4e2eba4992e43a24a81bc1310665095 | [] | no_license | waldisjr/JuniorIT | af1648095ec36535cc52770b114539444db4cd0b | 6a67e713708622ae13db6d17b48e43e3d10611f2 | refs/heads/master | 2023-03-26T06:29:06.423163 | 2021-03-27T06:27:34 | 2021-03-27T06:27:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | file = open('1(4.py)', 'w')
for i in range(1000):
file.write(f"{i}\n")
file.close() | [
"waldis_jr@outlook.com"
] | waldis_jr@outlook.com |
e0025fafdb890a62fc827f31bb52fdb01549d239 | 183741e464b55916e042fce7467e1318470d3aca | /exercises/rosalind-python/ini3.py | 988e7d5194ae8bd1b9828275ca0d484922b05973 | [] | no_license | phss/playground | 418cda5116a7f47f12dc2d8474e7f8f29be03ab8 | 6e1072d81fc6d06b3ad62eedbde3342ea0044e23 | refs/heads/master | 2023-07-19T22:59:04.272038 | 2021-12-31T12:46:08 | 2021-12-31T12:46:08 | 74,849 | 2 | 0 | null | 2023-07-06T21:08:18 | 2008-11-12T12:49:46 | CSS | UTF-8 | Python | false | false | 244 | py | s = "SP0M7gw0bYZbOQfPTVGPCZ8PlethodondDFgwZc0DqjmMtII8qC0Xu05qnUxqT46YJqh44YRNNPs0ZGlQmHvaXGAEr1dCNayFD47rY5U1YMXqomiiNKnBN7BlEbeYZaHeqHs8L0T8znplagopuslnG0iuTK77I6ex5T."
a, b, c, d = map(int, "23 31 140 146".split())
print s[a:b+1], s[c:d+1]
| [
"paulo.schneider@gmail.com"
] | paulo.schneider@gmail.com |
089e4ed108db3fef009b0d7feab3fd86866630e7 | 61ff23ae86e6a4bc74b0893e7f3b9600416f9dd7 | /mipt/acm.mipt.ru/042/test1.py | 1a9c52180c01920df8a0e559b4c3c0fac59c2fca | [] | no_license | sergia-ch/inf | ee99c560300310cfadac01ff95a2d42869efcf31 | 3c73d6efc9e1c107d720680f6e4865edbb6fb185 | refs/heads/master | 2023-01-30T18:08:52.866094 | 2020-12-07T19:13:24 | 2020-12-07T19:13:24 | 15,929,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33 | py | print 'ABCD'*249
print 'ABC'*331
| [
"etoestja@yandex.ru"
] | etoestja@yandex.ru |
52d086cf4cdc8386facda306ca5a7b87da497e67 | dfdceb3a1893cc52c33dc31c69170a6a60840d7d | /logAnalysis.py | 2e7bff57a89bb2049b60ce599d0fd18b70c55083 | [] | no_license | psk84/Python-Practice | 6bb8aa10da8186610cf83f040f3c72d002424a4a | e5f66d7998109759f96a59d5afab66059fb3adec | refs/heads/master | 2021-01-23T03:28:32.301392 | 2015-01-19T09:48:24 | 2015-01-19T09:48:24 | 29,351,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 929 | py | import sys
import pymongo
# file insert
#f = open("C:/Dev/test.txt", 'w')
#for i in range(1, 11):
# data = "[%d send]success.\n" % i
# f.write(data)
#for j in range(12, 23):
# data = "[%d send]fail.\n" % j
# f.write(data)
#f.close()
success_count = 0;
fail_count = 0;
f = open... | [
"seungkyupark84@gmail.com"
] | seungkyupark84@gmail.com |
733a2ad7b12dde095d29b9fa83d43bb259c76031 | dee4bd3227686c6c1e115287b17b879def3c445f | /django_us_markets/app.py | 9324b0f3b50a8288d90036e1b6e433bf8bee6b4f | [
"MIT"
] | permissive | TabbedOut/django_us_markets | 6f24cd8a22f1d1573f949b53f6f871ffee48389e | 2acb3001a4969fcf5f49217bc7bc677c823301cb | refs/heads/master | 2021-01-10T15:08:18.950544 | 2016-04-08T20:52:08 | 2016-04-08T20:52:08 | 55,809,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | from django.apps import AppConfig
class USMarketsAppConfig(AppConfig):
name = 'django_us_markets'
verbose_name = 'US Markets'
| [
"nosamanuel@gmail.com"
] | nosamanuel@gmail.com |
4e1efa5fc68c6cf783d434aebf74d1157be0268f | 6c1b28fce483c873f627104c8c58c90af54ef22a | /approach_3_solution_2.py | cbb82862b98488db1ddca6a2e88b15cc2ed1fb8c | [] | no_license | rajkan01/hands_on_code_review | dc873857a7d73f75c9d2caa5bba3fa93ba56a4a2 | ac28dabd6eb0d46345714208741ff57345f95149 | refs/heads/master | 2023-09-04T00:20:16.741717 | 2021-10-23T15:45:34 | 2021-10-25T10:56:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | # Approach 3 - Solution 2
from string import ascii_lowercase as lowercase_letters
def is_pangram(sentence):
actual_bits = 0
expected_bits = 0b11111111111111111111111111
for i, char in enumerate(sentence):
if char.isalpha():
letter_index = ord(char.lower()) - ord("a")
bit... | [
"amy.m.haddad@gmail.com"
] | amy.m.haddad@gmail.com |
cc6ad7fc575cee1468c6abf40ef02c2fae92bd9d | 06cde6aef06a8d7a71862a339d2c68716f1ed792 | /venv/bin/f2py | ef04aa82ada83c2c82a232a016bea0c21608f3dc | [] | no_license | MagnusAFyhr/CryptoTensor | fc6a0942bea443bb0b966a977bd4ab168b5e568e | 2ab3856f67c87fca9112a05984db43adfdf09fe0 | refs/heads/master | 2022-12-20T05:48:45.111232 | 2020-10-06T01:15:25 | 2020-10-06T01:15:25 | 301,040,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | #!/Users/magnusfyhr/PycharmProjects/CryptoTensor/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from numpy.f2py.f2py2e import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"magnus.fyhr@marquette.edu"
] | magnus.fyhr@marquette.edu | |
bd29a3919e9e554eae311ed596991eb065b7db1f | b210903908d418d471e0df3b93c5f290ec1c05a9 | /gluon2pytorch/gluon2pytorch.py | ced44d371fe483100a99ec280b38330ca6939d3d | [
"MIT"
] | permissive | chipper1/gluon2pytorch | d7bcf71900172484f1e26c46ba6f051aa1e7d773 | e0fd770a28b1a8bf4d0aa352f360bf5765e8347d | refs/heads/master | 2020-04-19T07:49:38.974250 | 2019-01-22T13:17:23 | 2019-01-22T13:17:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,078 | py | import json
import torch
import torch.nn as nn
import torch.nn.functional as F
import mxnet as mx
import numpy as np
# Import comverters
from .layers import CONVERTERS
# Import PyTorch model template
from .pytorch_model_template import pytorch_model_template
def eval_model(pytorch_source, pytorch_dict, module_nam... | [
"nerox8664@gmail.com"
] | nerox8664@gmail.com |
11b308168ba28877a5c958de927939f0d6578a0b | 868d1bd002a66bce3f86054b00a69c49f285126f | /books/01.DeepLearningScratch/chapter02/02.ArrayAND/AND.py | f9a2f0072f5a98a98a74d7b66abc9f98a71a7f43 | [] | no_license | doukheeWon-gmail/DeepLearningStudy | cf81ac5867373c8028519133a1cca80024f8f0ff | d346d0572c45e2f2229bd14e5aadeb077074ffa9 | refs/heads/master | 2023-03-16T19:05:49.594092 | 2021-03-08T09:03:46 | 2021-03-08T09:03:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | #coding: utf-8
import numpy as np
def AND(x1, x2):
x = np.array([x1,x2])
w = np.array([0.5,0.5])
b = -0.7
tmp = np.sum(w*x) + b
if tmp <= 0:
return 0
else:
return 1
| [
"fain9301@yahoo.com"
] | fain9301@yahoo.com |
283c023713ac72b6528ac5f38534be1c28255c27 | 34f425d7e511fa19220f77f0dbb6c6585451ab14 | /bin/generate_rules.py | 3acaeb921652be97e7639346b7a51772c5707f2b | [
"CC-BY-4.0"
] | permissive | stamhe/YousList | 409d2703005a0152d73af2cf0418f2ebb4d17d7e | 0fbc3cf6db069ea0162babd8a3aed05bf8d0e9be | refs/heads/master | 2021-08-23T03:04:09.268088 | 2017-12-02T17:54:58 | 2017-12-02T20:01:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,808 | py | #!/usr/bin/env python
import os
import sys
import fileinput
import re
import uuid
import six
if sys.version_info[:2] >= (2, 7):
import json
from collections import OrderedDict
else:
import simplejson as json
from ordereddict import OrderedDict
pwd = os.path.dirname(os.path.abspath(__file__))
root = os... | [
"yousbe@gmail.com"
] | yousbe@gmail.com |
e2c904a328be7a8a19032ae1b3c61f04cdb20fc9 | e9ce17a00c4fee7db160297fb3691f739dff099b | /exproject1/settings.py | 532f3762255047f2162c2e3e34192454f470e858 | [] | no_license | srikanthmadhu30/dgex1 | f214173ef3ae36bb475ceddeb22f62449908ae03 | 6ee7c1ac6704aa61297fb18b754f13ecaf2d3699 | refs/heads/master | 2020-05-24T00:00:00.950687 | 2019-05-16T10:33:35 | 2019-05-16T10:33:35 | 187,007,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,113 | py | """
Django settings for exproject1 project.
Generated by 'django-admin startproject' using Django 2.0.13.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import o... | [
"srikanthmadhu30@gmail.com"
] | srikanthmadhu30@gmail.com |
52f8d22f90a6a6870ff064d288a72be4c6ab50de | 7d78a18fcb8f34cc84e9439bd19cf491e3e0ec49 | /Code/Particle_Identification/msc-hpc/hpc-mini-1/model8.py | 7fca90d0b9552dd533fb15cee80aeff0c4a24a33 | [] | no_license | PsycheShaman/MSc-thesis | 62767951b67b922ce5a21cad5bdb258998b7d2ea | 34504499df64c7d6cc7c89af9618cd58d6378e8e | refs/heads/master | 2022-03-12T07:17:57.309357 | 2019-12-10T21:17:39 | 2019-12-10T21:17:39 | 151,471,442 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,794 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Jun 16 18:47:05 2019
@author: gerhard
"""
import glob
import numpy as np
#P_files = glob.glob("C:/Users/gerhard/Documents/msc-thesis-data/P_*.pkl", recursive=True)
x_files = glob.glob("/scratch/vljchr004/1_8_to_2_2_GeV/x_*.pkl")
y_files = glob.glob("/scratch... | [
"christiaan.viljoen@cern.ch"
] | christiaan.viljoen@cern.ch |
e2665c86a8e4a5ab790a047591db59cf721964c1 | fcd8f4935dac3b0b89fa21ace968cb872663a11f | /Python/JewelsAndStones.py | a11bcaf9c7ab3609654741d8575cf5eb3068895d | [] | no_license | peterer0625/Portfolio | 48dab8829455ecff19da9532f23fa42c1d3652f7 | 274d52b571b53ada51551fcbf1872642823cf5af | refs/heads/master | 2022-10-28T10:22:06.908252 | 2022-10-23T14:35:53 | 2022-10-23T14:35:53 | 117,188,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,011 | py |
# coding: utf-8
# In[23]:
#You're given strings J representing the types of stones that are jewels, and S representing the stones you have. Each character in S is a type of stone you have. You want to know how many of the stones you have are also jewels.
#The letters in J are guaranteed distinct, and all charact... | [
"peterer0625@gmail.com"
] | peterer0625@gmail.com |
cfb6ce942daaff03042e09cdb5aa421640b2b65e | 48b449a147004ff9b01228376376b455a17a1905 | /Hello World/Scripts/easy_install-3.7-script.py | 93ba8682f27e62c1ce8fd5dce61f78296ff4bb7f | [] | no_license | Sanzid-Imran/PyShop | 1df0b2989114f3e56519857399bb6ae7c5835247 | 74bb53e3bc06e927ff03f8936f1272d1d863aafb | refs/heads/master | 2020-07-11T13:54:09.382190 | 2019-08-26T21:16:31 | 2019-08-26T21:16:31 | 204,559,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | #!"E:\Python\Python Projects\PyShop\Hello World\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.... | [
"sanzidimran@gmail.com"
] | sanzidimran@gmail.com |
dd54ff3664693406afaf577c7eb07363b7f5de25 | 47c7e2a674c393d4c50766b783e247d01d37fec2 | /Frontend/src/Server/API/python/offer_writing.py | eba824ed3cba86f464189bbe1c5e3a7c1d428eea | [] | no_license | WendyMin/LearningSystem | cdfc8c9cf151d600640dca5f20fe620565aff456 | b2bf05ab42472feed989f11672274826ae8f6947 | refs/heads/master | 2021-04-03T04:59:11.531568 | 2020-06-08T12:49:06 | 2020-06-08T12:49:06 | 124,355,444 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,355 | py | # coding=utf-8
from __future__ import division
import json
import MySQLdb
import time
import datetime
import random
import urllib
import json
from urllib import urlencode
from urllib import quote
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
def get_sentence():
conn = MySQLdb.Connect(host = '127.0.0.1',us... | [
"min711s9d31@126.com"
] | min711s9d31@126.com |
cb9c434cf3db0a544c87a06b7d7f61c2d219ffc2 | 3862936fe9fb54aabaa53889e9140c80b0e7cca9 | /Programs/HackerRank/NumPy/Floor, Ceil and Rint.py | eaba91f2c1cbffb055e5ad8ebe63a2edc23c3f23 | [] | no_license | MZen2610/TrainingPython | 5e7f3a86b31bd1661d5bd4dbc0836704d6052ad1 | c0c86a56fcdf132c9a0610e32831caa4a9829d14 | refs/heads/master | 2020-09-06T02:54:50.919509 | 2019-12-01T11:57:35 | 2019-12-01T11:57:35 | 220,296,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,533 | py | # floor
# The tool floor returns the floor of the input element-wise.
# The floor of is the largest integer where .
#
# import numpy
#
# my_array = numpy.array([1.1, 2.2, 3.3, 4.4, 5.5, 6.6, 7.7, 8.8, 9.9])
# print numpy.floor(my_array) #[ 1. 2. 3. 4. 5. 6. 7. 8. 9.]
# ceil
# The tool ceil returns the... | [
"33858149+MZen1980@users.noreply.github.com"
] | 33858149+MZen1980@users.noreply.github.com |
4267a7d9a4abdcec70ee181694c1027b497830dc | f8d026eb1cf6bb114e14b1c0f4c285d4f8175212 | /polls/urls.py | 84ce1192c295553bef11553b23119c4bbf0774a6 | [] | no_license | PanYubug/mysite | e5e73cc3fea3fffad1d3c6f2fd060236935ed2cf | cc76047dd4ab96cc73162a04a7a0ffd959d481b0 | refs/heads/master | 2022-11-11T19:14:08.425513 | 2020-07-09T17:04:26 | 2020-07-09T17:04:26 | 277,275,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | from django.urls import path
from . import views
app_name = 'polls'
urlpatterns = [
path('', views.index, name='index'),
# ex: /polls/5/
path('<int:question_id>/', views.detail, name='detail'),
# path('specifics/<int:question_id>/', views.detail, name='detail'),
# ex: /polls/5/results/
path('<i... | [
"344146473@qq.com"
] | 344146473@qq.com |
72ffd878190fe379ff49c75827bdfe5a0f51528a | 1a7bb0a40d9402f177f3821e3e488e3302944ce2 | /intent/Loki_query_time.py | 07b0aa6d3c855622422cd8dbd3234f0285ce37d0 | [] | no_license | KevinKang1211/Ticket_Bot | ffbc8c85a292b3516f8771fc17d3f0d8f54495b4 | 7faaf3d1add82d25e555cfd05ecf034fc81c244f | refs/heads/master | 2023-03-13T17:25:08.600501 | 2021-03-05T17:04:14 | 2021-03-05T17:04:14 | 331,863,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 735 | py | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
"""
Loki module for query_time
Input:
inputSTR str,
utterance str,
args str[],
resultDICT dict
Output:
resultDICT dict
"""
DEBUG_query_time = True
userDefinedDICT = {"大": ["大人", "成人"], "小": ["小孩... | [
"kevink861211@gmail.com"
] | kevink861211@gmail.com |
2236dda5b28e62a2e8fcef93e101f6d305b84d8a | 1a8e45bbbcd263473959656d3c35fda724257559 | /TwitterAnalysis/explore/login.py | f5a9e9e78f512e8cab0fe3fbf9b4f03e668aefbe | [] | no_license | claudianorscini/Project | 730e98607fe1cfa5a42923fb7620d13369b46e52 | 0ee8477a1dca95e138133808dff8a0334c34d0e3 | refs/heads/master | 2021-01-22T13:47:59.777917 | 2017-08-25T07:34:23 | 2017-08-25T07:34:23 | 100,685,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | import tweepy
#consumer key,access token, access secret
ckey = "U7A6sqsqmeQHvipknVGmdjzwT"
csecret = "zTDbhjrqJcGLsUn3S9V4SYV5BQi61C1XbrxObSLUbFFxJKTnFV"
atoken = "891974438585081857-3Uw4GCUWC7FJGLRQumzYeLnio5COWT9"
asecret = "S0QriqKzg1JFCHehOvwqhf4ICXfNlNVjJr3r5yNd7k9hG"
def authentication():
auth = tweepy.OAut... | [
"claudia.norscini@gmail.com"
] | claudia.norscini@gmail.com |
c25400f6d2c5e46a0896fc7f06afbd1cc43b2450 | 6977691187176f78db054b2d6e8565ed0276ad53 | /common/get_ieng_teacher_pro_headers.py | d027b3c4f13e095c9155f659b4ff01ff0f4b4d88 | [] | no_license | Lee-hsien-sen/python-excel-unittest | 094ecbe2fcae389bc4dc6857dd59cfdb4706b7c8 | 0baa7a4fa3cd38b90894372d02cc972688dba9bc | refs/heads/master | 2023-02-13T14:33:38.416121 | 2021-01-12T14:53:29 | 2021-01-12T14:53:29 | 329,016,687 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,729 | py | import re
import requests
import json
#
# # 在Cookie Version 0中规定空格、方括号、圆括号、等于号、逗号、双引号、斜杠、问号、@,冒号,分号等特殊符号都不能作为Cookie的内容。
#
def get_ieng_teacher_pro_headers(openid):
# 以下数据获取《IENG公众号》的MELEDEV
method = 'POST'
url = 'https://wxteacher.tope365.com/teacher/login'
headers = {}
# headers = {'co... | [
"17519476710@163.com"
] | 17519476710@163.com |
a124749ac00a5a369031b925acde502a8ddc32e0 | 27da9fc141cee7341f3a5b2de6556a121851b754 | /TOC-Project-2017/fsm2.py | be40fa033613d02ccc9f2212d2779f498c219b6b | [
"MIT"
] | permissive | C14036227/TOC-Project-2017-ver2 | 6b3ca54bcade78ce5a303439c985abb79aa4cdb3 | 0c958c56edf921d24cd16e1e8a457137f8e88a0c | refs/heads/master | 2021-01-23T10:34:48.404606 | 2017-06-01T15:44:06 | 2017-06-01T15:44:06 | 93,073,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 871 | py |
from transitions.extensions import GraphMachine
class TocMachine(GraphMachine):
def __init__(self, **machine_configs):
self.machine = GraphMachine(
model = self,
**machine_configs
)
def is_going_to_state1(self, update):
text = update.message.text
retur... | [
"noreply@github.com"
] | C14036227.noreply@github.com |
0c1bb1c57fb00f0ac5712f22c6993c18079bff76 | 10c3eb5229186bb24b2ed64a7054e36aacd94931 | /submit_sunnybrook_unet_lstm_multi.py | 60a485c674940beb056630b92284ee469446f060 | [] | no_license | alexliyang/cardiac-segmentation-cc | d493bfa66ee2802632f04c5f298e35ee510a39a1 | c78b0a39600467060531c98f4207df0c4240abd4 | refs/heads/master | 2021-04-06T11:22:32.746009 | 2017-12-29T02:33:31 | 2017-12-29T02:33:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,413 | py | #!/usr/bin/env python2.7
import re, sys, os
import shutil, cv2
import numpy as np
from train_sunnybrook_unet_lstm_mul import read_contour, map_all_contours, export_all_contours, map_endo_contours
from helpers import reshape, get_SAX_SERIES, draw_result
from unet_lstm_multi_model import unet_lstm_multi_model, dice_coe... | [
"congchao120@163.com"
] | congchao120@163.com |
9e5ddb8b8df7a4a0133cd8e979a21ba7c73dec76 | a47f8facbd8ee621999ad16736f6aa059440e137 | /water_film_imaging2.py | 4e1417a00ae68920184e9ec7bf03b2648702912a | [] | no_license | wethug/tES-fmri | e14bb207048174e404729196c4036d168317bf1d | 2f18a050a901a8412f6240a771259e7c8bd3d66f | refs/heads/main | 2023-03-19T21:44:37.916345 | 2021-03-13T12:05:46 | 2021-03-13T12:05:46 | 327,240,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,025 | py | # 水膜成像
import matplotlib
import matplotlib.pyplot as plt
bar_width = 0.15
y1 = [809.09, 877.94, 867.09, 883.01, 932.71]
y2 = [743.34, 805.86, 808.02, 842.59, 899.36]
y3 = [742.76, 806.66, 806.97, 843.01, 897.21]
y4 = [745.04, 807.94, 806.09, 841.32, 900.14]
y5 = [745.32, 808.32, 809.76, 844.23, 897.98]
y6 = [745.76, 8... | [
"v-runli@microsoft.com"
] | v-runli@microsoft.com |
fa852b15b22790660899f828bd2b36acf41ab473 | 2b477700384af7ceb67f97908f1bd5899d984596 | /mxonline/second_day/mxonline/mxonline/settings.py | 0c86916a2d658b263215bc8d182ed18fe7d4a103 | [] | no_license | ZhiqiKou/django | 58b743f962e0f7d85b3610e9d09a0e1db32ba9bb | e3d35c981e6b91130472114b121b65fd7d5cacf8 | refs/heads/master | 2020-03-28T20:44:56.286125 | 2018-09-07T02:21:29 | 2018-09-07T02:21:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,544 | py | """
Django settings for mxonline project.
Generated by 'django-admin startproject' using Django 2.0.3.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
i... | [
"1816635208@qq.com"
] | 1816635208@qq.com |
abfc5ca9be07e7df6784355027cea51be8d6ed5e | db24b324b4ae8033250b02987cc4271a40db4e54 | /student/migrations/0002_auto_20200320_1058.py | 71adee97d59a07a4463d26aead518761bee29ce1 | [] | no_license | brightcomputers/brightcomputers | 1c7634b779ae5f9b6fe16b78e44a5da7013fc12c | 98637dac87523783cadc0c580d1697df876e0b55 | refs/heads/master | 2022-12-11T13:42:07.970062 | 2020-05-01T05:33:01 | 2020-05-01T05:33:01 | 247,194,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | # Generated by Django 3.0.2 on 2020-03-20 05:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('student', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='studentdetails',
name='phoneno',
... | [
"brightcomputersinfo@gmail.com"
] | brightcomputersinfo@gmail.com |
c169e6fcf2692886e4ac0f87de10d9fe39168f51 | a0e50cec23451a53d16952d4c55ee924f900ef15 | /Wa_Tor.pyde | 6aaac901eb7e4a8b5dbc16478e1c77cb05642624 | [] | no_license | Freidelf/FMFN05-ChaosProject | 33b8d4c869dcc8bf13291464f9a167fca83148cb | d0e8859c23459b6143794e3bc7095da97d0ca48f | refs/heads/master | 2020-03-17T06:29:00.646910 | 2018-05-24T08:13:14 | 2018-05-24T08:13:14 | 133,357,634 | 2 | 1 | null | 2018-05-21T09:37:32 | 2018-05-14T12:31:11 | Python | UTF-8 | Python | false | false | 11,479 | pyde | import random
import copy
#strogatz nonlinear dynamics and chaos
class Water:
xpos = X
ypos = Y
moved = 0
def __init__(self, X, Y):
self.xpos = X
self.ypos = Y
self.moved = 0
def move(self):
return
def isFish(self):
retu... | [
"noreply@github.com"
] | Freidelf.noreply@github.com |
a4b4a0a3244cac402cda7f3b4ed5278efc2fa651 | c4b47ba53d40e861571c82f8a968a989974dc433 | /fireball/blobs/admin.py | 454a72b4217a2e674b995a6f5a635ca10bde368e | [] | no_license | underlost/fireball | 4be3e441a82f6a0fbb603b33be8493f03019392e | 3cf312fa88860e9f2e9f34479b5b1962dae09f55 | refs/heads/master | 2016-09-01T18:45:18.059628 | 2013-06-03T16:26:12 | 2013-06-03T16:26:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | from django.contrib import admin
from fireball.blobs.models import Blob
class BlobAdmin(admin.ModelAdmin):
list_filter = ('user',)
search_fields = ['description','url',]
list_display = ('user', 'url',)
admin.site.register(Blob,BlobAdmin)
| [
"underlost@gmail.com"
] | underlost@gmail.com |
baac9827d91c255af7cab59e278e6eb5be8f1fe0 | e1db584567a8b8cc135d9beec7c4997685494dd8 | /other/sensor_magnet/tests/test_actuators.py | 37e8e5ec7f0a3eaa50700f73d204f40922a7d5f7 | [
"MIT"
] | permissive | gurbain/tigrillo2 | 459d4b8d950736faea7af77256a7ce11f1338fba | 66ad26c0aff39da74ca76f712b6f01b40d383f34 | refs/heads/master | 2021-08-16T12:02:39.863300 | 2018-06-08T22:44:40 | 2018-06-08T22:44:40 | 113,203,747 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py |
import serial
import sys
import time
c = serial.Serial("/dev/ttyACM0", 9600)
if not c.isOpen():
c.open()
i = 0
while i < 1000:
c.write("A90,90,90,90")
time.sleep(0.01)
while i < 1000:
for read in c.read():
sys.stdout.write(read)
i += 1 | [
"gabrielurbain@gmail.com"
] | gabrielurbain@gmail.com |
ff205523f1fbaee9e28ed6e8585cb6a773b6de04 | 850f599b0afb3ad83893e5f3c037c1738c7ebd7e | /cryptocurrency/crypto/urls.py | 9fa347b317ff01a189c3ce9b04da5ced95bad6d9 | [] | no_license | sparshk/crypto_news | f782dfc298bef7d2c65ce558325d1e6c812a7055 | f1808bbad8a1f8e1477dd02aff7de0abd63560b4 | refs/heads/master | 2020-03-25T04:33:20.042227 | 2018-08-03T08:55:21 | 2018-08-03T08:55:21 | 143,401,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | """cryptocurrency URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Clas... | [
"noreply@github.com"
] | sparshk.noreply@github.com |
6f51ba0a831c70bc2b9a14c70a2d156a6a454c37 | 76c4c6965ca962422408fe3d35b7c0dbd00af68b | /Python/search3_non_recursive.py | e386b50749881c706ca200bceedb6b858af9a78d | [] | no_license | AnandDhanalakota/Vin-Pro | 1a4bce0acefbff0b5d485a9eeeae3c95ccef80f6 | 4ff62d476ce8bb30ffe89b9735907e128d02b2e9 | refs/heads/master | 2020-03-21T10:06:15.553553 | 2017-10-13T21:15:14 | 2017-10-13T21:15:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,444 | py |
import os
"""
__________________d:\___________________
/ / \ \
suneeta softs vin-pro songs_____
/ \ | / \ / \
sunc++,cellsoft .... cs, asm,... saini... | [
"vineelko@microsoft.com"
] | vineelko@microsoft.com |
52ea82d92a9babeebea7a0dd0d767f59a4c54501 | 11fe80e8eb954f89a0e3b9e3961f6c055d993f9a | /receiver.py | 7e5d535b60c5701bb5fe93d3ae855e85e4985f9d | [] | no_license | mehakismail/res-websokt | 6803ca2f42cf5be5f40bd619d5021361b9f360fb | 711d1314c9c1a041ed682aff52968ab3d4771c3d | refs/heads/main | 2023-03-24T18:42:48.081992 | 2021-03-18T21:46:41 | 2021-03-18T21:46:41 | 349,225,327 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | import time
import json
import socketio
import time
sio = socketio.Client()
sio.connect('http://192.168.42.105:2494')
@sio.on('connect')
def connect():
print('connection established')
@sio.on('__TEST')
def message(data):
print(data)
| [
"noreply@github.com"
] | mehakismail.noreply@github.com |
12ee95727eaf7b167e890d616a6ba937a0aed965 | 5865b61a58f3ce20fe84ce8f1eb091434da1456a | /backend/migrations/0022_auto_20210103_1409.py | 93c867f257dafa18296b9f8be217709e1f226e4c | [] | no_license | omgorganica/wh_backend | 6e362bced1021beee5c910e754491300a9474ccc | bab97a3970464605e6ac57d9bec193e3843f985e | refs/heads/master | 2023-03-13T13:55:41.096608 | 2021-03-20T08:11:24 | 2021-03-20T08:11:24 | 315,927,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | # Generated by Django 3.1.3 on 2021-01-03 09:09
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('backend', '0021_auto_20210102_2034'),
]
operations = [
migrations.AlterModelOptions(
name='user',
options={'ordering': ['-cu... | [
"omgorganica@yandex.ru"
] | omgorganica@yandex.ru |
6afd366e3327f8166973d2de937fb4955ff5dd05 | e08319a0eee6ef40eb544b1c694233ac26388de0 | /clue/adafruit-circuitpython-bundle-6.x-mpy-20210209/examples/ssd1608_simpletest.py | 05880b48d5ca02f48517ceed4535faf61876954e | [] | no_license | rwhiffen/circuit-python | 363b873b2429521296bcab5d5c88271eb5270073 | 23b3d577c9d1ed6cb48aa7f48c77911bf62cd5c3 | refs/heads/master | 2021-12-04T11:04:29.368458 | 2021-11-30T00:54:29 | 2021-11-30T00:54:29 | 229,330,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,099 | py | # SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
# SPDX-License-Identifier: MIT
"""Simple test script for 1.54" 200x200 monochrome display.
Supported products:
* Adafruit 1.54" Monochrome ePaper Display Breakout
* https://www.adafruit.com/product/4196
"""
import time
import board
im... | [
"rich@whiffen.orgw"
] | rich@whiffen.orgw |
cafd06c3fd03d5ead92c2a9dbd0bb3a1e82d9bb7 | 29585537e2e96c169ae83cd660070ba3af0a43a9 | /admin_confirm/file_cache.py | 7baaefffd6d41d2e7817da142ddfd47e3bb6e475 | [
"Apache-2.0"
] | permissive | ballke-dev/django-admin-confirm | 4c400e0d6cb3799e7d9901731db99b4a579ec06e | 21f5a37c5ecf1fee30f95d8a2ce01207916a22f8 | refs/heads/main | 2023-06-23T03:54:50.326670 | 2021-07-22T17:04:13 | 2021-07-22T17:04:13 | 386,659,834 | 0 | 0 | NOASSERTION | 2021-07-16T14:11:48 | 2021-07-16T14:11:47 | null | UTF-8 | Python | false | false | 3,633 | py | """ FileCache - caches files for ModelAdmins with confirmations.
Code modified from: https://github.com/MaistrenkoAnton/filefield-cache/blob/master/filefield_cache/cache.py
Original copy date: April 22, 2021
---
Modified to be compatible with more versions of Django/Python
---
MIT License
Copyright (c) 2020 Maistrenk... | [
"noreply@github.com"
] | ballke-dev.noreply@github.com |
a0343c09cb651f68bbb731f118efdaf292f4c557 | 61cbd965173d4fe7f5c1bcea7ba2fa660460b227 | /apps/evaluation/apis.py | e3ee8f85013a9330b8082da777dc6e21e75aff3b | [] | no_license | iLaus/flask_web | ffea50954e1e9e9b21e388e1228e5d59e2b2e94b | 8456880f3db289aa3019bebdac6b43a9f026638d | refs/heads/dev | 2020-04-10T00:45:25.434280 | 2018-12-12T16:50:10 | 2018-12-12T16:50:10 | 160,695,310 | 1 | 1 | null | 2018-12-11T16:40:15 | 2018-12-06T15:37:29 | Python | UTF-8 | Python | false | false | 232 | py | # -*- coding: utf-8 -*-
#!/usr/bin/python
from flask_restful import Api, Resource
def hello():
return 'hello world!'
class HelloWorld(Resource):
todos = {}
def get(self, todo_id):
return {"result": todo_id} | [
"hogon.wang@gmail.com"
] | hogon.wang@gmail.com |
596411c05f2c94b4b357beb48a6cac370bb39083 | 82fce9aae9e855a73f4e92d750e6a8df2ef877a5 | /Lab/venv/lib/python3.8/site-packages/OpenGL/GL/ARB/seamless_cube_map.py | 25e63a7d3f689d0ff11cc0c81f81b889b4c44394 | [] | no_license | BartoszRudnik/GK | 1294f7708902e867dacd7da591b9f2e741bfe9e5 | 6dc09184a3af07143b9729e42a6f62f13da50128 | refs/heads/main | 2023-02-20T19:02:12.408974 | 2021-01-22T10:51:14 | 2021-01-22T10:51:14 | 307,847,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,689 | py | '''OpenGL extension ARB.seamless_cube_map
This module customises the behaviour of the
OpenGL.raw.GL.ARB.seamless_cube_map to provide a more
Python-friendly API
Overview (from the spec)
When sampling from cube map textures, a three-dimensional texture
coordinate is used to select one of the cube map faces and ge... | [
"rudnik49@gmail.com"
] | rudnik49@gmail.com |
f789665473eb4f3fe85e39c56c286c518c116c7a | 895f5581d12379c507018f36c58b63920190f287 | /ShoppingCart/urls.py | db7a92f20ab5b5ff56278559a6c793a21f336dda | [] | no_license | Feras-1998/graduation-project | c1a4d65449b573f5c10c4059d78b423f13ad9be8 | b93e736ecc710d7ec1f31e4db30c3c5288a7bcf5 | refs/heads/master | 2023-03-19T12:06:53.199292 | 2021-03-21T17:56:55 | 2021-03-21T17:56:55 | 350,102,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 777 | py | from django.urls import path
from ShoppingCart import ShoppingCartView as view
app_name = "ShoppingCart"
urlpatterns = [
path('viwe', view.view_shopping_cart, name='view_shopping_cart'),
path('add/product/<int:product_id>/quantity/<int:quantity>', view.add_product_to_cart, name='add_product_to_cart'),
p... | [
"feras@LAPTOP-LNAH19LL"
] | feras@LAPTOP-LNAH19LL |
b9235f24b706833d32ec5e0f7f82633c4ab895c0 | 2aeab3fbd7a8778760a6036557f422fc4356f761 | /pycrescolib/globalcontroller.py | 8ed1ac76655eb17bc33366e59a2f8678dfeac624 | [] | no_license | rynsy/pycrescolib-demo | 8658cdcb950cbcbad1a5206317d4566af66a1e70 | 3a6091247a691888dadd0038a50fc32d49b67a80 | refs/heads/master | 2023-08-22T20:37:27.229250 | 2021-10-20T17:35:15 | 2021-10-20T17:35:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,008 | py | import json
from pycrescolib.utils import decompress_param, get_jar_info, compress_param, encode_data
class globalcontroller(object):
def __init__(self, messaging):
self.messaging = messaging
def submit_pipeline(self, cadl):
message_event_type = 'CONFIG'
message_payload = dict()
... | [
"cbumgardner@gmail.com"
] | cbumgardner@gmail.com |
de5077e4e7e2995c4bcfdc1792f7dab4aef7c588 | d1105ac79b89138a9dd6233b881c541041ee8512 | /chap3_case2_radiationLineConstraint/heatEq_code_generator.py | e5a672d6d9eda59b5b3c797d0ba229bf0ff2c59e | [] | no_license | bowenfan96/mpc-rom | 4db2a165118b07926e5988a92155e740e5d4f18b | a5ab132ea58ea5a4f2229f53eaee1bd180cc6e7b | refs/heads/master | 2023-07-27T12:25:28.804007 | 2021-09-07T13:27:03 | 2021-09-07T13:27:03 | 378,615,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,184 | py | # This file exists to parse A and B matrices into pyomo entries
# While it seems silly, this is necessary because pyomo's simulator (which calls casadi) does not support matrices
# Namely, it cannot simulate variables indexed by more than 1 set (so each variable can only be indexed by time)
# It also doesn't support if... | [
"bowen@users.noreply.github.com"
] | bowen@users.noreply.github.com |
9cbc8919bbd13651a03f5b1e0bce41ea11c7531a | 66b72447770c0848f8f9b89c2d4c2473fb9a0581 | /0938.range_sum_of_bst_E.py | ede7558859e324f7364560fd9a3387c53e70503c | [] | no_license | zvant/LeetCodeSolutions | 5d27a25dbc0ec522bde61d436f88e81c67e1367a | ca2c7959c3ea8912abc0be5575272479a5ef3cb0 | refs/heads/master | 2022-09-21T06:26:17.520429 | 2022-09-08T02:40:16 | 2022-09-08T02:40:16 | 140,584,965 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,134 | py | # https://leetcode.com/problems/range-sum-of-bst/
# 2021/10
# 288 ms
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
# class Solution:
# def BFS(self, root, L, R):
# ... | [
"kzz1994@gmail.com"
] | kzz1994@gmail.com |
fc67a4b14f117567e54950ce6518e138da60cd34 | 11b7a20881ef60d8de74885ca3de9e549eb9ca41 | /temp.py | 7eca941e0b829654d9fcf88cfb71b715a7b640ff | [] | no_license | Buvi14/BIlling-app | 030d6c3f65cd69a3890f5c392e9b6763313f219a | c9b0f8ea798ff89a6082f9436b43e0c489a0633c | refs/heads/master | 2020-03-22T11:02:55.381723 | 2018-07-08T11:41:24 | 2018-07-08T11:41:24 | 139,943,011 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | # -*- coding: utf-8 -*-
"""
Spyder Editor
This is a temporary script file.
"""
#Plotting the graph for given data
import jason
from sklearn.externals import joblib
import matplotlib.pyplot as mp #plotting the graph
import pandas as pd #for impo... | [
"noreply@github.com"
] | Buvi14.noreply@github.com |
d485cfa23c7f446ebfa1be31d86428513cf3a031 | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog/optimized_38775.py | aa5ba685bb6ffb0c7e77e41ce4af889ae20a5bd0 | [] | 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,853 | 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 |
165067404ebd0dfb7de8fe0a0a6fe0a74b393243 | 9f90cf2f09729a3f71b0c8308c72f733906536f3 | /seriesTaylor.py | bbb037200df857d4253b9bb9d184ad35c00283b9 | [] | no_license | bayronortiz/MetodosNumericos | 5c5305defbf85a26ce5b4b232ad8da2393766a12 | 18ff1c44085e049986c40dd4e9cbe122110b177d | refs/heads/master | 2016-09-06T02:40:23.028216 | 2015-12-13T15:35:44 | 2015-12-13T15:35:44 | 42,413,726 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 873 | py | # -*- coding: utf-8 -*-
# Fecha: 08-Sept-2015
from math import *
# Calcula la serie Taylor de la funcion fx=Cos (x)
# Param xi:Xi -- xii: Xi+1
def fxN(xi,xii,n):
h= xii-xi
valor= 0 # Guarda el valor de la funcion
temp= 0 # Guarda el valor temporal de la funcion
negativo= False
signo=(1,-1,... | [
"danilo@linux-vpl0.site"
] | danilo@linux-vpl0.site |
85fe6ee3b3d0c84131b9ebdddf4227cfbc835632 | 42c9fc81ffbdb22bfde3976578337a1fe5f17c2a | /visualization/rviz_tools_py/setup.py | c2244ce79c9c1d742fa1b5b888996b4d42299e3a | [
"MIT"
] | permissive | LiuFG/UpdatingHDmapByMonoCamera | 988524461287bfa8b663cba756a787e4440268ef | dc8f06795a12669da1a8096e38851f78b2e26a62 | refs/heads/master | 2022-06-01T08:33:53.034821 | 2020-04-26T05:32:38 | 2020-04-26T05:32:38 | 258,131,871 | 0 | 0 | MIT | 2020-04-26T05:32:43 | 2020-04-23T07:49:14 | Python | UTF-8 | Python | false | false | 237 | py | #!/usr/bin/env python
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup
d = generate_distutils_setup(
packages=[
'rviz_tools_py',
],
package_dir={'': 'src'},
)
setup(**d)
| [
"2022087641@qq.com"
] | 2022087641@qq.com |
7315210d96c6476125cd7db17cb0c0168b6d400e | 740f54d593e3b808c093ca8da2142c5785393df9 | /nets/VGG16.py | db300b1ef3d9fa0be7022015957fc0b5bc9f2fdb | [
"MIT"
] | permissive | sinianyutian/ssd-keras | d172ad19fde63a5908d3864e6513ddaf3963b5cd | 6453d8471800c54ab2d10bb9a4adc7016eec666d | refs/heads/master | 2023-04-27T09:55:55.961775 | 2021-05-09T17:02:26 | 2021-05-09T17:02:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,906 | py | import keras.backend as K
from keras.layers import (Activation, Conv2D, Dense, Flatten,
GlobalAveragePooling2D, Input, MaxPooling2D, Reshape,
ZeroPadding2D, concatenate, merge)
from keras.models import Model
def VGG16(input_tensor):
#----------------------... | [
"noreply@github.com"
] | sinianyutian.noreply@github.com |
ba1ff9e538afbada798f8e1f3ad399a00974fdcc | bba5101180a75bc1948b7646582ecca39f0e28c1 | /xitou.py | ed56c5e653774dd35611d2eb993a162695ec1ece | [] | no_license | neko2048/wrf_analysis_Xitou | 18ca4fefc2f2d836950270acd33f84fc67b58dd8 | 3f78f415e499ff00b82d86862912976b8cff7667 | refs/heads/main | 2023-09-05T02:03:55.913184 | 2021-11-08T17:46:01 | 2021-11-08T17:46:01 | 425,917,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,900 | py | from matplotlib.pyplot import *
import numpy as np
from netCDF4 import Dataset
import pandas as pd
#from wrf import getvar, interplevel
def findArgmin(data, value):
IdxMinflat = np.argmin(abs(data - value))
idxMin = np.unravel_index(IdxMinflat, data.shape)
return idxMin
class WRFData:
def __init__(se... | [
"uc@UCdeiMac.local"
] | uc@UCdeiMac.local |
d17cbb74786b60ae862fbc2befee64faddd8662e | 8fe6993366229375a1f3978be5fda313476648b9 | /.eggs/PyScaffold-2.5.11-py2.7.egg/pyscaffold/utils.py | 8d8ce1079434d3c8d6430535e16778de9ba3b78a | [] | no_license | ArkhipovK/NER-report3 | 9b6fe6981abc884dec6e48831dff70257ba0efae | 150f7543050c73a89dc807fafdf75ded8ace25dd | refs/heads/master | 2020-03-31T12:15:46.727011 | 2019-01-22T11:12:52 | 2019-01-22T11:12:52 | 152,209,204 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,538 | py | # -*- coding: utf-8 -*-
"""
Miscellaneous utilities and tools
"""
from __future__ import absolute_import, print_function
import functools
import keyword
import os
import re
import sys
from contextlib import contextmanager
from operator import itemgetter
from distutils.filelist import FileList
from six import PY2
fro... | [
"tehbitardcity@gmail.com"
] | tehbitardcity@gmail.com |
4cbaeb52b5d1c78337c769a9cf8875e0f15e3700 | 55e5926ce5dad5b0509fa9336d2db5c7e1e65183 | /startcamp/day02/read_csv.py | cf0bbbada3ddc7a46dd2d2136dfa8763ab4705f5 | [] | no_license | bearsgod/TIL | cb6d234138cab38a9d83c4fe1c612270ef58d3ed | 5c9a268be6687db56587df6616edfe78118ea1fe | refs/heads/master | 2020-04-12T00:40:46.825183 | 2019-01-24T08:52:43 | 2019-01-24T08:52:43 | 162,208,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | import csv
with open('lunch.csv','r',encoding='utf8') as f:
# lines = f.readlines()
items = csv.reader(f)
print(items)
for item in items:
print(item) | [
"bearsgod@gmail.com"
] | bearsgod@gmail.com |
a7e02fbd7355c82ec1aa61752bec20b5cb11b8ab | 0d381e2cb2d66f7ef92c3efff5e6f93aa803963b | /solved/firstBadVersion.py | 61e638086b85708f08f2c839bd9e734efb372d0d | [] | no_license | shannonmlance/leetcode | 2242ce3b1b636d89728860e9bfa7b266d6a2fd6b | f63e7c1df256b5524f7e891d40620946a618fee2 | refs/heads/master | 2021-06-27T22:02:09.346343 | 2021-04-29T00:44:03 | 2021-04-29T00:44:03 | 225,467,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,426 | py | # You are a product manager and currently leading a team to develop a new product. Unfortunately, the latest version of your product fails the quality check. Since each version is developed based on the previous version, all the versions after a bad version are also bad.
# Suppose you have n versions [1, 2, ..., n] an... | [
"shannon.lance@sap.com"
] | shannon.lance@sap.com |
fcd0b3996dcc8bf3891d3ed563e44c660b62677b | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/D/dmsilv/facebook_fans.py | 3fc1f0e56bfce614a8af5c9b37936e98b95a0c94 | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,020 | py | # Blank Python
import scraperwiki
from BeautifulSoup import BeautifulSoup
#define the order our columns are displayed in the datastore
scraperwiki.metadata.save('data_columns', ['Page Name', 'Fans'])
#scrape the fan section
def scrape_fans(soup):
data_table = soup.find("table",{ "class" : "uiGrid"}) #find the ... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
982fb6dfb5536e8d2ea0d6d461feb007703ab20d | 4cdcd0e06497bdeb793abcd98c870db414700bdd | /pyblp/utilities/basics.py | bd2060c78e628c77393492763db5863b5c7a861b | [
"MIT"
] | permissive | markpham/pyblp | bc1d22e6820c0d28905615aec4e8deb79ee03efa | 59714a0d7c46afa10dcd7575bace21026ebb00c7 | refs/heads/master | 2020-07-16T04:14:00.834907 | 2019-08-31T23:05:00 | 2019-08-31T23:05:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,063 | py | """Basic functionality."""
import contextlib
import functools
import inspect
import multiprocessing.pool
import re
import time
import traceback
from typing import (
Any, Callable, Container, Dict, Hashable, Iterable, Iterator, List, Mapping, Optional, Set, Sequence, Type, Tuple,
Union
)
import numpy as np
fr... | [
"jeff@jeffgortmaker.com"
] | jeff@jeffgortmaker.com |
6a29865b89c71e800aac4732a7ddf91d86ed3c24 | f937f65707c7b0d6860475cf51eb8c859338559d | /stock-market-lstm/model.py | ad555a2d048137690c607f5c412291fd28d755e9 | [] | no_license | shashankaddagarla/lstm | 2b7458521891aa908c588c39e34c1b354e066d3d | f154bf47b142389d1651c076cd9a15b710228a5c | refs/heads/master | 2020-03-27T12:10:21.674717 | 2018-09-21T20:52:19 | 2018-09-21T20:52:19 | 146,530,763 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,399 | py | # 10-16-18
#
# currently a two-layer lstm model with dropouts (default .25 dropout) after each layer and a dense layer at the end to produce output
import os
import time
import h5py
import numpy as np
import tensorflow as tf
from keras.layers import Activation, Dense
from keras.layers import LSTM
from keras.layers im... | [
"shshnktj@stanford.edu"
] | shshnktj@stanford.edu |
07765b8bdaa7390420a76f0619c07aa31769d846 | d4f9d104479b6f9a64175a3fe8554860bf0d62b2 | /supply_line2.py | 22571f70a0b7b1e623ef7cc3276ea9935b7daf3d | [] | no_license | pohily/checkio | 9a09c9c52b4f07438cfe4e00914e8d1cfe844c5d | 8a0a49126af6e09b9e5e6067f28efbf085cd87f6 | refs/heads/master | 2020-05-16T03:18:18.068186 | 2019-07-06T13:22:20 | 2019-07-06T13:22:20 | 182,674,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,842 | py | coord = {'A':0, 'B':1, 'C':2, 'D':3, 'E':4, 'F':5, 'G':6, 'H':7, 'I':8, 'J':9, 'K':10, 'L':11}
back = {0:'A', 1:'B', 2:'C', 3:'D', 4:'E', 5:'F', 6:'G', 7:'H', 8:'I', 9:'J', 10:'K', 11:'L'}
checks_odd = [[-1, 0], [0, 1], [1, 1], [1, 0], [1, -1], [0, -1]]
checks_even = [[-1, 0], [-1, 1], [0, 1], [1, 0], [0, -1], [-1, ... | [
"noreply@github.com"
] | pohily.noreply@github.com |
85b96a62ddc3f2a8e2f40d803db0074c61582e2c | 56ec8b23db253964156ed968dfdd1603c249ab87 | /04-Hybrid/mezcla.py | 3ff0990316340ff2476336fab01188bfd17ab932 | [] | no_license | JFCeron/IBIO4490 | bf186a6402975569ee71325e03f01eeefe92226d | 91a84d5aa4323509f42d31d6f3e590ea8bde7fc4 | refs/heads/master | 2020-04-20T09:07:00.834293 | 2019-05-06T04:57:55 | 2019-05-06T04:57:55 | 168,757,640 | 0 | 0 | null | 2019-02-01T20:42:10 | 2019-02-01T20:42:10 | null | UTF-8 | Python | false | false | 2,810 | py | # manipulacion de imagenes
from PIL import Image
import cv2
import matplotlib.pyplot as plt
# matematicas
import numpy as np
# imagenes para mezclar
dante = Image.open("dante.jpg")
pato = Image.open("whiteduck.jpg")
# alinear imagenes
pato = pato.rotate(-2).crop((100,80,pato.size[0]-75,pato.size[1]-30))
# ajustar taman... | [
"juanfceron@gmail.com"
] | juanfceron@gmail.com |
7b47c1b415e3ad729bdce1cdb26e32be6031bda6 | ef66e297a49d04098d98a711ca3fda7b8a9a657c | /snippets/ziroom/detail.py | 32e2f1c346b125a3b9d7882a7320a3f98a252f9a | [] | no_license | breezy1812/MyCodes | 34940357954dad35ddcf39aa6c9bc9e5cd1748eb | 9e3d117d17025b3b587c5a80638cb8b3de754195 | refs/heads/master | 2020-07-19T13:36:05.270908 | 2018-12-15T08:54:30 | 2018-12-15T08:54:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 850 | py | import os
from datetime import datetime
from time import sleep
from random import choice
import requests
from agents import AGENTS
url = 'http://www.ziroom.com/detail/info'
params = {
'id': '61155405',
'house_id': '60185997',
}
headers = {
'User-Agent': choice(AGENTS),
}
while True:
resp = request... | [
"youchen.du@gmail.com"
] | youchen.du@gmail.com |
ee4b4bbe9f8ec2bc0058fd892a1893d49a20fc81 | 2f4e21111234e70ba5dc54979411474d74158c31 | /newMyDataStructureAlgorithm/algorithm/permutation.py | e5d5de5e6d74da63b532c6ccba9fe381b2714a94 | [] | no_license | happydhKim/MyDataStructureAlgorithm | d6db625784d085888ecb2b6cef47022518c1f821 | b47ceb9244c170b4adb6619db581d173b829625e | refs/heads/main | 2022-09-18T15:16:51.704564 | 2022-09-05T14:51:55 | 2022-09-05T14:51:55 | 132,134,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | # https://www.acmicpc.net/problem/15649
from sys import stdout
from itertools import permutations
print = stdout.write
n, m = map(int, input().split())
for k in permutations([i for i in range(1, n+1)], m):
print(' '.join(map(str, k))+'\n')
| [
"happytime870616@gmail.com"
] | happytime870616@gmail.com |
f588bf0d916ba7a047741568bb2946f4fd4c309d | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/53/usersdata/89/22195/submittedfiles/matriz2.py | cd1384dfef6761b0fbf48eaf1aa1f3eaef0a4bc4 | [] | 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 | 1,491 | py | # -*- coding: utf-8 -*-
from __future__ import division
import numpy as np
def somaDiagonalPrincipal(a):
soma=0
for i in range(0,a.shape[0],1):
soma=soma+a[i,i]
return soma
def somaDiagonalSecundaria(a):
soma=0
for i in range(0,a.shape[0],1):
soma=soma+a[i,a.shape[0]-... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
3487c8f46dd7e6ab9677d94e898b3c7b4ba04217 | 5107ef1b20b2fbc9305bf5b885fc830679f4cfcc | /pms/wfpms/wfpms/middlewares.py | 398402955a73f3c940170ad0297eb5d326101caa | [] | no_license | seselinfeng/pms_scrapy | a6540ae1550a520baf2da43cc97e02a37041d3ce | cf9b83bff2037d8bb4e3c98dcf94a43534e61bc1 | refs/heads/master | 2023-01-31T14:14:35.665679 | 2020-12-18T02:46:12 | 2020-12-18T02:46:12 | 321,839,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,751 | py | # Define here the models for your spider middleware
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/spider-middleware.html
import hashlib
from urllib import parse
from scrapy import signals, Request
# useful for handling different item types with a single interface
from itemadapter import is_item... | [
"lifq@m3joy.com"
] | lifq@m3joy.com |
f13e42f723dfc011017c86d5d9d5266a52e16dcf | ba694353a3cb1cfd02a6773b40f693386d0dba39 | /sdk/python/pulumi_google_native/dataform/v1beta1/repository_workspace_iam_member.py | a82ed59fcb5af3a81d30a219472de2490307c4b6 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | pulumi/pulumi-google-native | cc57af8bd3d1d6b76f1f48333ed1f1b31d56f92b | 124d255e5b7f5440d1ef63c9a71e4cc1d661cd10 | refs/heads/master | 2023-08-25T00:18:00.300230 | 2023-07-20T04:25:48 | 2023-07-20T04:25:48 | 323,680,373 | 69 | 16 | Apache-2.0 | 2023-09-13T00:28:04 | 2020-12-22T16:39:01 | Python | UTF-8 | Python | false | false | 13,541 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _u... | [
"noreply@github.com"
] | pulumi.noreply@github.com |
f839cb133cafa4a6f32e624b50f22da03c38c619 | 433fd38347ef7cc8e2d2af3fc5f07b88b4278b12 | /computeroots.py | bf2eeb14fc0ed3f807d5bac9ac661b6c38bf6b8d | [] | no_license | PyDataWorkshop/IntroPython | 72ffc4421488f8a84c143bfdfd974919c65b6e9f | 078ace77ec3dc00a4a8e1a50060748cd05147acb | refs/heads/master | 2021-06-22T04:57:05.987274 | 2017-08-29T11:50:57 | 2017-08-29T11:50:57 | 16,390,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 637 | py | from math import sqrt
print("Quadratic function : (a * x^2) + b*x + c")
a = float(input("a: "))
b = float(input("b: "))
c = float(input("c: "))
r = b**2 - 4*a*c
if r > 0:
num_roots = 2
x1 = (((-b) + sqrt(r))/(2*a))
x2 = (((-b) - sqrt(r))/(2*a))
print("There are 2 root... | [
"noreply@github.com"
] | PyDataWorkshop.noreply@github.com |
b0e675a66588e8634b1b1524e860f5399ed48426 | 051910d10f4597cd1148207b1f5f2030c01d7ddf | /py/src/consts.py | e63df96ef48d5d3fb483637f645611bd156ae172 | [
"MIT"
] | permissive | LaplaceKorea/rosettaboy | 831cd285e1a305690f2ee76861ccff91d77fa4a7 | fb238cb8b73eb7903ce8b9b298896c549e75fccb | refs/heads/master | 2023-08-15T15:41:36.459790 | 2021-10-12T12:13:55 | 2021-10-12T12:13:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,381 | py | class Mem:
VBLANK_HANDLER = 0x40
LCD_HANDLER = 0x48
TIMER_HANDLER = 0x50
SERIAL_HANDLER = 0x58
JOYPAD_HANDLER = 0x60
VRAM_BASE = 0x8000
TILE_DATA_TABLE_0 = 0x8800
TILE_DATA_TABLE_1 = 0x8000
BACKGROUND_MAP_0 = 0x9800
BACKGROUND_MAP_1 = 0x9C00
WINDOW_MAP_0 = 0x9800
WINDOW_... | [
"shish@shishnet.org"
] | shish@shishnet.org |
2af0f12e7354e6f077015d9bbceb59604426c06b | 976f1c40043972e4236c2699b6cf4212c773156a | /tags/models.py | c4151b5a589017b323d851e7b8e0fc8b3b217269 | [
"LicenseRef-scancode-public-domain",
"CC0-1.0"
] | permissive | lidel/mmda | b13901cf33bd733ed07ff3b624143e02617f7214 | d605a8c635167e1bd634eb04f4e78b989a7cfb74 | refs/heads/master | 2021-01-01T15:24:00.148173 | 2014-11-22T23:07:40 | 2014-11-22T23:07:40 | 817,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | from couchdbkit.ext.django.schema import Document, DictProperty
from mmda.engine.cache import CachedDocument
class CachedTag(Document, CachedDocument):
"""
Contains tag related meta-data fetched from various sources.
"""
cache_state = DictProperty(default={})
| [
"m@lidel.org"
] | m@lidel.org |
a7a7d34db8b105e67c352abaceb211f4a7e084c3 | a97f789530412fc1cb83170a11811f294b139ee8 | /疯狂Python讲义/codes/12/12.6/writebytes_test.py | 36e61f54a785fdf550bc07aebcbd19870b13ad75 | [] | no_license | baidongbin/python | 3cebf2cc342a15b38bf20c23f941e6887dac187a | 1c1398bff1f1820afdd8ddfa0c95ccebb4ee836f | refs/heads/master | 2021-07-21T19:23:32.860444 | 2020-03-07T11:55:30 | 2020-03-07T11:55:30 | 195,909,272 | 0 | 1 | null | 2020-07-21T00:51:24 | 2019-07-09T01:24:31 | Python | UTF-8 | Python | false | false | 413 | py | import os
f = open('y.txt', 'wb+')
# os.linesep 代表当前操作系统上的换行符
f.write(('我爱Python' + os.linesep).encode('utf-8'))
f.writelines((('土门壁甚坚,' + os.linesep).encode('utf-8'),
('杏园度亦难。' + os.linesep).encode('utf-8'),
('势异邺城下,' + os.linesep).encode('utf-8'),
('纵死时犹宽。' + os.linesep).enc... | [
"baidongbin@thunisoft.com"
] | baidongbin@thunisoft.com |
9606fc118d763b54512c8278ba1755a594d973cb | 61e98b0302a43ab685be4c255b4ecf2979db55b6 | /sdks/python/.tox/docs/lib/python2.7/site-packages/sphinx/environment/__init__.py | f760583ece5807e4a028e2fb675ec70d4f9836db | [
"BSD-3-Clause",
"EPL-2.0",
"CDDL-1.0",
"Apache-2.0",
"WTFPL",
"GPL-2.0-only",
"BSD-2-Clause",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"CDDL-1.1",
"Classpath-exception-2.0"
] | permissive | dzenyu/kafka | 5631c05a6de6e288baeb8955bdddf2ff60ec2a0e | d69a24bce8d108f43376271f89ecc3b81c7b6622 | refs/heads/master | 2021-07-16T12:31:09.623509 | 2021-06-28T18:22:16 | 2021-06-28T18:22:16 | 198,724,535 | 0 | 0 | Apache-2.0 | 2019-07-24T23:51:47 | 2019-07-24T23:51:46 | null | UTF-8 | Python | false | false | 50,863 | py | # -*- coding: utf-8 -*-
"""
sphinx.environment
~~~~~~~~~~~~~~~~~~
Global creation environment.
:copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import re
import os
import sys
import time
import types
import codecs
import fnmatch
from os ... | [
"alex.barreto@databricks.com"
] | alex.barreto@databricks.com |
7fc8ab4fa4ffbe0793f8121162c803a687c45882 | 9a1e181a6e7a7a93f387b9269620f204160eb152 | /backend/accounts/migrations/0007_auto_20210325_2215.py | e138eda697922ff3605e57761ee5d12691e41697 | [] | no_license | ha9011/django_drf_react_gabom | b4eb8b475879669047b24a46c9364d337effc208 | 2b29bef085361f3ce6d600c6eb954488d8bbbbed | refs/heads/main | 2023-04-03T02:37:59.311406 | 2021-04-05T12:56:39 | 2021-04-05T12:56:39 | 354,827,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 730 | py | # Generated by Django 3.0.11 on 2021-03-25 13:15
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('accounts', '0006_auto_20210306_0104'),
]
operations = [
migrations.AlterF... | [
"ha90111@naver.com"
] | ha90111@naver.com |
2b68130fbff02ea4e15ff6aca8bd248f9a3d3f79 | a0d0dafc26ebfb84ff72c61cb85c587d93257a6c | /KIDs/analyze_single_tone.py | 09573a4659654e3073eecb6f0bce454336a2c07b | [] | no_license | rmcgeehan0/submm_python_routines | 0486d5f874b169629378374058f0fe666ebbb440 | d37e676dc1946807edaec7143780307e2894c6c6 | refs/heads/master | 2020-03-27T09:32:51.519444 | 2018-08-25T20:23:47 | 2018-08-25T20:23:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,470 | py | import numpy as np
import matplotlib.pyplot as plt
from KIDs import resonance_fitting
from KIDs import calibrate
from scipy import interpolate
import pickle
from scipy.stats import binned_statistic
def calibrate_single_tone(fine_f,fine_z,gain_f,gain_z,stream_f,stream_z,plot_period = 1,interp = "quadratic"):
fig... | [
"Wheeler1711@gmail.com"
] | Wheeler1711@gmail.com |
43b853c93483bb95c43fdbf54259605d1a1f11a8 | a9a87b95237b11b8808850110e696aa0ca3553a7 | /usedadvan.py | 4b64d7e6d8877f1a1a39707ea01924825f82ff09 | [] | no_license | tpanthera/testpyblock | 3713873ab49e6fcce4a896a396e26c5794f4c704 | d14bef2bb25040d6bff788d5f5f0e7e67ada3b04 | refs/heads/master | 2020-03-27T17:10:19.983182 | 2018-08-31T06:07:45 | 2018-08-31T06:07:45 | 146,832,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | # Python advance concepts used
# while solving questions in hacker earth this was common to use :
# below code will take input from user , strip will remove white spaces , split() will return list after spliting
# the given separator by spaces , here its , map will convert the every elements in list to integer and ret... | [
"noreply@github.com"
] | tpanthera.noreply@github.com |
1f31c768f9d581da1b7ad412a23ad6d4e24ce3e6 | ede5e159641ba71a1a25a50a1328c11175459cce | /day-3/generate.py | d2f956f398b09d0fff8c03fbfb6e5c34d5a4d14d | [
"BSD-3-Clause"
] | permissive | sbu-python-summer/python-tutorial | 1cf23c700b7b2588680ad78a06a3582dfcce873b | c93ac1d75188d762df7d17df7045af39dbc1bee8 | refs/heads/master | 2021-01-20T18:08:21.393092 | 2017-06-16T18:50:06 | 2017-06-16T18:50:06 | 90,908,339 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | # generate data for a histogram example
import numpy as np
N = 100
a = 10*np.random.randn(N)
for i in range(N):
print("{} {}".format(i, a[i]))
| [
"michael.zingale@stonybrook.edu"
] | michael.zingale@stonybrook.edu |
7848ffce0b6988c96aae1efeb96a21b0d8bb93f4 | c762ab8c1c25ffa97229a62ff43a33543093f963 | /venv/bin/easy_install | 06e9fd8505708c760e9975bfea10710ea86251e7 | [
"Apache-2.0"
] | permissive | nahyunkwon/multi-ttach | e68948d66541e85b764216efc54a82f6fc9ac044 | 971d0d93cc39f295deb23ea71146647f6db50ebc | refs/heads/master | 2023-08-09T18:25:31.658950 | 2023-07-24T17:46:04 | 2023-07-24T17:46:04 | 297,783,964 | 0 | 1 | Apache-2.0 | 2021-04-07T07:46:24 | 2020-09-22T22:08:53 | G-code | UTF-8 | Python | false | false | 458 | #!/Users/kwon/PycharmProjects/digital_fabrication_studio/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\... | [
"skgus2624@gmail.com"
] | skgus2624@gmail.com | |
6c8c5c41b634bf773212a73f580e465cefb4528b | 0f38803a7536cbff35202d68b0eef948bd628a96 | /common/datasets/asr/librispeech/oggzip.py | a17ef77e60c4187d1caa0b6028beaacda4822d57 | [] | no_license | jotix16/returnn_common | b41523ffebac07f54061a2c16336c56d5f826dce | 686bcb8b1a42002b8ab1c776b5055569c0f20682 | refs/heads/main | 2023-05-12T01:26:31.311641 | 2021-06-03T10:08:21 | 2021-06-03T10:08:21 | 373,462,667 | 0 | 0 | null | 2021-06-03T10:08:21 | 2021-06-03T10:06:02 | null | UTF-8 | Python | false | false | 3,736 | py |
from __future__ import annotations
from pathlib import Path
from typing import Dict, Any
from ..features import make_gt_features_opts
from .vocabs import bpe1k, bpe10k
from ...interface import DatasetConfig, VocabConfig
from ....data import get_common_data_path
_Parts = [
"train-clean-100", "train-clean-360", "tra... | [
"zeyer@i6.informatik.rwth-aachen.de"
] | zeyer@i6.informatik.rwth-aachen.de |
09041bdaebbf07267af971eeb85b47fa5ff47c96 | 64438e1fc5fcb9f6e9859d3b2eb33dd94e1633d6 | /PartThree/spark_analysis.txt | 46c5e9d3aa957033925107b67a22fc7b951d918f | [] | no_license | obriematt/PDLChallenge | 78090b5a7ff7ba06ebefed8b0cea303e858ebb2b | 03af7cd174aecfd64b905e7a0ee841cc2a37be08 | refs/heads/master | 2020-05-02T22:13:15.386654 | 2019-03-28T17:00:03 | 2019-03-28T17:00:03 | 178,245,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,217 | txt | #!/user/bin/env python
import os
from pyspark import SparkContext
import json
from pyspark.sql import SparkSession
from pyspark.sql.functions import *
from pyspark.sql.types import *
import datetime
from json import dumps
from dataschema import myschema
os.environ['PYSPARK_SUBMIT_ARGS'] = '--packages org.apache.spark... | [
"matthewo@pdx.edu"
] | matthewo@pdx.edu |
b5941ae0f40b6c52b788e8a07bffd43c07d5b679 | d2fd372b98a85f91a017f4bc188d7cc198d66e8e | /venv/Common/Common.py | 584e824d393b872f1cbc12821af32426c83b772b | [] | no_license | v-anjia/ICU__STRESS | 28cc5b7fd780ffcec2411572f40361f1119ecc1c | 04b2de675db6c4f40bd50dc5bdceb1a2604e2a4d | refs/heads/master | 2022-11-11T00:23:19.414529 | 2020-06-27T23:49:06 | 2020-06-27T23:49:06 | 272,986,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101,458 | py | '''
deposit public class or function
data:2019-3-28
@author antony weijiang
'''
#coding=utf-8
import subprocess
import re
import os
import time
import sys
import uiautomator2 as u2
import requests
from bs4 import BeautifulSoup
from log import logger as loger
import json
import zipfile
import serial
import random
# fr... | [
"bdty2013antony@163.com"
] | bdty2013antony@163.com |
8bd350e303191df5a7e316990bd5b28b2a31e3a6 | 7756a341e0034b30a799ad8ef456c6b02565b188 | /main.py | 9099e035874bddade9630ce606277f64d883bfbc | [] | no_license | AnishN/integration | c26cca7aa5af7626110f144b1e8d6eb3a71c1dec | b1cab2c5e5df40a68bcc31049b4bac29e5a79ca5 | refs/heads/master | 2020-06-16T13:54:13.758520 | 2019-07-09T14:13:56 | 2019-07-09T14:13:56 | 195,599,598 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,536 | py | import timeit
setup_mktout = """
def mktout(mean_mu_alpha, errors, par_gamma):
mu10 = errors[:, 0] * math.exp(mean_mu_alpha[0])
mu11 = math.exp(par_gamma) * mu10 # mu with gamma
mu20 = errors[:, 1] * math.exp(mean_mu_alpha[1])
mu21 = math.exp(par_gamma) * mu20
alpha1 = errors[:, 2] * math.exp(mean... | [
"anish.narayanan32@gmail.com"
] | anish.narayanan32@gmail.com |
c2cbb7da7160e2b8b71bd4172683ea0fc5d28f98 | 8bf1009d6bad0cbb82deee03b831dd1d443e8d4d | /new_customers/simulation.py | a24f082458504c25210c9e4db6ee386b0a3525cd | [] | no_license | joiemoie/CloudGameTheory | 974f6700c5f328dbccfdb0456bef485e02daf103 | 8419f4d082e4b8bafb89b4ee90e3860d6d392504 | refs/heads/master | 2020-05-05T06:39:50.559079 | 2019-05-05T06:36:46 | 2019-05-05T06:36:46 | 179,797,097 | 4 | 1 | null | 2019-04-17T04:46:12 | 2019-04-06T06:27:04 | Python | UTF-8 | Python | false | false | 4,873 | py | import numpy as np
import functions
import matplotlib.pyplot as plt
import matplotlib.cm as cm
import matplotlib.patches as mpatches
import csv
bufs = []
for index in range(10):
# Set these parameters
num_providers = 4
num_users = 2000
num_resource_types = 1
# Set the max prices for the users
random_pric... | [
"joiemoie2004@gmail.com"
] | joiemoie2004@gmail.com |
ad7fc8c0adf2cc245667ae640affb4172b7d3866 | cba18d5bbf1c320d28d6b407abfefd6fcf10329d | /clients/models.py | 1ab49a4ee66d8c64226be7770733b74728fa8ca9 | [] | no_license | casttroff/AbmTest | 52c61d493e51020df6f22575549d58b35d84ce54 | e01ad409fc50ca6884746a2c494a1b95e03413b7 | refs/heads/main | 2023-06-07T14:10:29.268501 | 2021-06-18T23:11:33 | 2021-06-18T23:11:33 | 378,282,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | #CLIENTS/MODELS
import uuid
class Client:
def __init__(self, name, company, email, position, uid=None):
self.name = name
self.company = company
self.email = email
self.position = position
self.uid = uid or uuid.uuid4()
def to_dict(self):
return vars(self) ... | [
"casttroff@gmail.com"
] | casttroff@gmail.com |
54ba8db9db77211eab644e3a6209be27a079a967 | 77f76ddf9b33052fc39532aaaeded5e4971ad865 | /migrations/versions/77b4b6ae646d_database_update.py | 28f9b3701beff7c0a15d11363d0cf31297911966 | [] | no_license | PythonPerfect/PythonPerfect | 32c8c8a04999f4c49df19b21e265b083b3e93141 | ad70e07d1abaf272d5ad4866189a25a9ad4d5db1 | refs/heads/master | 2023-05-12T22:28:57.225071 | 2021-05-18T03:41:38 | 2021-05-18T03:41:38 | 358,127,863 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,723 | py | """Database update
Revision ID: 77b4b6ae646d
Revises: ed279c7f2160
Create Date: 2021-05-12 08:39:04.816417
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '77b4b6ae646d'
down_revision = 'ed279c7f2160'
branch_labels = None
depends_on = None
def upgrade():
... | [
"wassuprt@gmail.com"
] | wassuprt@gmail.com |
1e24144a7cf422eb8aed4964ee92309dbd9dafec | 6b1dd40d16ae6169e7ed780c5062e88d10502c85 | /Demo/Caffe-demo/demo_train.py | 1e72565d91468c3f044f049942af2e183e29f6f1 | [
"MIT"
] | permissive | hehuanlin123/DeepLearning | 8a59680a341cfc525d50aa5afc3e44202ca4acc4 | 6b7feabbbde9ac9489f76da4c06eeb6703fb165a | refs/heads/master | 2022-07-12T09:26:08.617883 | 2019-06-10T11:31:37 | 2019-06-10T11:31:37 | 183,748,407 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | import sys
sys.path.append('/home/kuan/AM-softmax_caffe/python')
import caffe
solver = caffe.SGDSolver("/home/kuan/PycharmProjects/demo_cnn_net/cnn_net/alexnet/solver.prototxt")
solver.solve() | [
"hehuanlin@13126771609@163.com"
] | hehuanlin@13126771609@163.com |
28406623a7d58705959d97d793833a218b938765 | 07a59784d27ab7dcbba1b893345c32355d45947d | /docs/conf.py | d7f8483ad08bf37c060471a1d7e3c3e6cd2f675d | [] | no_license | konikkar/Covid-19-Dashboard | 822a8a08e98cf041b3b580d50878df38d662795e | 3e1a7ebd9bf27ac880aced2ad500e5a5a0cf5c4e | refs/heads/master | 2022-12-05T15:56:16.033220 | 2020-08-25T12:46:36 | 2020-08-25T12:46:36 | 288,080,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,789 | py | # -*- coding: utf-8 -*-
#
# ADS_COVID-19 documentation build configuration file, created by
# sphinx-quickstart.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All configuration values h... | [
"69574081+konikkar@users.noreply.github.com"
] | 69574081+konikkar@users.noreply.github.com |
4cbc0ba6e9100415dbf4ce1c478cfdddfc1267ce | 9f735b190f30bd11f1d14d4c413b2c958c7b17a7 | /travel/migrations/0032_remove_user_uid.py | 22817cf5a2486e0e21274a97208adea11444cdcc | [
"MIT"
] | permissive | sausage-team/travel-notes | e5a18a38a486e7971be371c40a5a655851f85c49 | 3c2454ebad7764906c5ff30cbdfe296cb7c64eb4 | refs/heads/master | 2020-05-23T10:53:33.906472 | 2019-05-22T05:14:20 | 2019-05-22T05:14:20 | 186,726,475 | 0 | 0 | MIT | 2019-05-22T05:14:21 | 2019-05-15T01:24:41 | Python | UTF-8 | Python | false | false | 322 | py | # Generated by Django 2.2.1 on 2019-05-15 08:04
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('travel', '0031_auto_20190515_1603'),
]
operations = [
migrations.RemoveField(
model_name='user',
name='uid',
),
... | [
"1197633750@qq.com"
] | 1197633750@qq.com |
b577f0d8e1d931be4eb3ff721911ce9e9b179843 | d1e95aa28914f4ef4a6906b6a70ae9be79b0544d | /Spectrum Based Fault Localization/forbes.py | 5f303701baf931c10df9bbc595602ec8eb510778 | [] | no_license | Achal-Gupta/SpectrumBasedFaultLocalisation | 00d886ea71d6d6131b13be4bdc85089d0c5bc813 | 7611e37085f7027be4738fc6dd5c243e3898bd07 | refs/heads/master | 2022-08-01T21:36:17.475108 | 2020-05-29T11:57:38 | 2020-05-29T11:57:38 | 267,845,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,530 | py | import sys
import time
from datetime import datetime
start_time=datetime.now()
import pandas as pd
import numpy as np
import math
import os
import csv
cwd =os.getcwd()
version=cwd.split("/")[-1]
program_name=cwd.split("/")[-2].split("_")[0]
print(cwd)
str_cwd=cwd.replace("/"+program_name+"/"+version,"")
print(str_cwd... | [
"noreply@github.com"
] | Achal-Gupta.noreply@github.com |
52d1966e0b46fbd58e2c48d3edf2a752d4edf8bf | e4382c802e3c6d340d9ed9f2ba4e6c4068b5545b | /users/urls.py | ba84bbc2250b0a98b02c32e1b00cfea2f4c4d249 | [] | no_license | Trishala13/COC2 | 23965cc30a9f8aeda468773889611595bda6c6b0 | e3d3efe5f4fbd282e822b26a0d66bf01bc7f6d02 | refs/heads/master | 2021-05-07T02:08:05.692281 | 2017-11-13T06:16:59 | 2017-11-13T06:16:59 | 110,505,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,268 | py | from django.conf.urls import url
from . import views as user_views
urlpatterns = [
url(r'user_site', user_views.user_site),
url(r'sign-in', user_views.sign_in),
url(r'sign-up', user_views.sign_up),
url(r'sign_up_form',user_views.sign_up_form),
url(r'sign_in_form',user_views.sign_in_form),
url(... | [
"noreply@github.com"
] | Trishala13.noreply@github.com |
e8cc41d8cebbacff3bf0b457e0313e4cf766ae89 | 5a28841b8598ad3bfc9aac824a2d556278f006aa | /rgbd_seg/models/encoders/enhance_modules/ppm.py | 90a06a2bc51099110a2636329835dccad406fdce | [
"Apache-2.0"
] | permissive | thanyu-hub/ShapeConv | ac60b332c89ea7c51f6d1e3fd310ea200123e9a2 | 25bee65af4952c10ed4e24f6556765654e56575f | refs/heads/master | 2023-07-15T02:02:49.077406 | 2021-08-30T11:13:21 | 2021-08-30T11:13:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,099 | py | # modify from https://github.com/hszhao/semseg/blob/master/model/pspnet.py
import logging
import torch
import torch.nn as nn
import torch.nn.functional as F
from .registry import ENHANCE_MODULES
from ...utils import ConvModule
from ...utils.act import build_act_layer
from ...utils.norm import build_norm_layer
from .... | [
"lhc3538@gmail.com"
] | lhc3538@gmail.com |
86624abf9e511fc127ad47f21f6f9f4b1c09a79a | 68463eaf559a3063ac9d490dc36676d714f817c5 | /statsy/urls.py | 4978648065a6a51c735a09dae387298c5e269706 | [
"MIT"
] | permissive | zhebrak/django-statsy | 6ba1e94e19da0ed8d25ed1f9f5b32f33ddafc83e | d74845e75c78842fc3890db123ab6e36fe2d3973 | refs/heads/master | 2020-05-25T13:37:02.105397 | 2019-03-29T21:59:41 | 2019-03-29T21:59:41 | 27,049,965 | 60 | 11 | MIT | 2019-03-29T21:59:42 | 2014-11-23T22:12:29 | JavaScript | UTF-8 | Python | false | false | 70 | py | # coding: utf-8
import statsy
urlpatterns = statsy.site.get_urls()
| [
"fata2ex@gmail.com"
] | fata2ex@gmail.com |
ff1e607f26dac021267ce5410b9957b6443d2a24 | 41e18ddf25105a7760286b276191ad40273a8b10 | /twocaharDownward.py | 4fcad1de576be73395dc3b5214be898570f54d26 | [] | no_license | himanshuamplify/DTU_Python | 9e231aa41b0cf1276b7a673a59bbafd11fd00dad | 56857e754f4bfcab6fc4431a8e0b0dace101115a | refs/heads/master | 2020-11-28T02:31:26.958557 | 2019-12-26T10:02:57 | 2019-12-26T10:02:57 | 229,681,627 | 7 | 7 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | def printTwocharDownward(symbol,n):
ch='.'
number_of_space=0
number_of_character=n
if n%2==0:
total_no_of_line=int(n/2)
else:
total_no_of_line=int(n/2)+1
count=1
while count<=total_no_of_line:
print(ch*number_of_space,symbol*number_of_character,ch*number_o... | [
"noreply@github.com"
] | himanshuamplify.noreply@github.com |
ad94567b4862afe2ff1de2f46b5864cbb56a525b | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/sdssj_162711.80-000950.8/sdB_SDSSJ_162711.80-000950.8_lc.py | 29d244111b17ca32fa317154ab63ad362a67cc25 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[246.799167,0.164111], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_SDSSJ_162711.80-000950.8 /sdB_SDSSJ_162711.80-000950.8_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.01038889... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.