blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0f91df3955342d356b8bdf5ba87bb6bf4ba74fd1 | a64d2a7ef8f4dd53cb366c4ba5f0065f9f9ed33c | /flatten.py | 11aaeebf6f8d62104cc0c854e339ce6ed438f08e | [] | no_license | DerekRoy/CMPT414FinalAssignment | 2b5ed011bac50e8759815394c154bd1afa8edac3 | f4ca585e3a9b382f2c1648bbbae17e1da1c810ca | refs/heads/master | 2021-03-15T17:07:57.687593 | 2020-04-11T18:04:46 | 2020-04-11T18:04:46 | 246,867,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | import numpy as np
def is_array(potential_array):
return isinstance(potential_array, np.ndarray) or isinstance(potential_array, list)
class flatten:
def __init__(self, input_shape):
self.output_shape = (np.prod(input_shape), 1)
def out(self):
return self.output_shape
def flatten(se... | [
"alex@minderov.com"
] | alex@minderov.com |
0ad073e1bc65db7c887ea154b22245e55b75a3c8 | 33110712aa0c2ab1c2e7b9e2053a8c1c0daeb028 | /textboxify/__init__.py | c820e3a2ff9513887137d19f3a3ded31cfa76df1 | [
"MIT"
] | permissive | andrehirano10/TextBoxify | b69a4fd6fb8d9797fe886c69be4bd193a2f636f6 | 159bf75d061974190a322e03088617eac51789a3 | refs/heads/master | 2023-03-16T06:48:40.471005 | 2019-11-06T19:47:29 | 2019-11-06T19:47:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | """TextBoxify is a packages for creating dialog boxes in games.
The purpose of this package is to easily implement dialog boxes
in games created with Pygame. The boxes can be simple text or
more elaborated boxes with animations and borders, because the
package offers the ability to easily customize the boxes."""
# T... | [
"henrik@tutamail.com"
] | henrik@tutamail.com |
299e52aceff3116633645892938214e85f2e1ce5 | ef8fea0e7fe917743b79e35e6193eff48c675601 | /sample_players.py | 902fe5801b4ffefdf289e978a8548275fbba9863 | [] | no_license | b-Squad/AIND-Isolation-master | ef878e817f1711ec0f380325fd42c36d2c35a19a | 6dd8c3fb51400f83f01c0542eb540e30f7ae9ad0 | refs/heads/master | 2021-01-23T16:20:57.394383 | 2017-06-04T06:33:34 | 2017-06-04T06:33:34 | 93,294,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,435 | py | """This file contains a collection of player classes for comparison with your
own agent and example heuristic functions.
************************************************************************
*********** YOU DO NOT NEED TO MODIFY ANYTHING IN THIS FILE **********
****************************************... | [
"narsimhb@gmail.com"
] | narsimhb@gmail.com |
932cad2a12e44b2877efbb474a3bd04f002556c0 | d18abe85b1f1a354b04018ac9378a72a14430de9 | /cdrentalDatabase/cd/clerk.py | 019e3d0f5dbceba42cf3eabd8335d88d365fa9e7 | [] | no_license | diofelpallega/CSC-183-Activities | ce73f9d474e6db1df946e7cfb17bf16b484b37ae | 4b83cf93241c7f765546379abd2771c6b7f3b56e | refs/heads/master | 2021-01-01T18:38:13.045771 | 2014-12-11T12:34:30 | 2014-12-11T12:34:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | from dosql import *
class Clerk(object):
def __init__(self):
pass
def checkout(self,cdid,customerid):
b = doSql()
query = "SELECT get_customer_rented('"+customerid +"' );"
items = b.execqry(query,False)
result = []
for item in items:
... | [
"diofel.pallega@gmail.com"
] | diofel.pallega@gmail.com |
7f46726f259a60a0a1580927d4c5d8b74369d2fe | a5805a41fbbdc4d1b7cc322b4ab98e126da87c8d | /99bottles.py | e66113148ca6e3e88a73b0ad410819c16a650fe2 | [] | no_license | paulsenj/HearMeCode | 84bfc34cb4a5fb965d4f0d1a87a422458155e9f0 | 7171af4e97a8771edaea3f7d216fa1c4c5584774 | refs/heads/master | 2021-01-10T05:30:59.757092 | 2017-08-08T12:12:34 | 2017-08-08T12:12:34 | 52,220,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,936 | py | # Difficulty Level: Beginner
# Can you make Python print out the song for 99 bottles of beer on the wall?
# Note: You can use range() in three different ways
# First:
# range(5) will give you a list containing [0, 1, 2, 3, 4]
# In this case, range assumes you want to start counting at 0, and the parameter you give i... | [
"noreply@github.com"
] | paulsenj.noreply@github.com |
186f257abc7925e21ac032fd77c21762f7c90112 | 21d9a124b7ae9529e4f0f07f5643ea0386b2543d | /python/HelloWorld/TFunRef.py | 3eaf2a7834e308462b5ea365feb6461077fa1340 | [] | no_license | gitsoftsun/Learn | 7d8a1257940bf5264db08b46e7af783d59f482eb | c8df897507ccda655b467b35f8d37636a269a5f0 | refs/heads/master | 2016-09-06T18:24:45.318306 | 2015-04-11T09:37:44 | 2015-04-11T09:37:44 | 29,095,566 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,118 | py | #coding=utf-8
# python 中所有参数, -传引用
#function defination is here
def printStr(str):
"print str"
str = "change value in function";
print str;
return;
#you can call printStr function
str = "Hello";
print str;
printStr(str);
#function defination
def printInfo(name, age):
"print info"
print "My name is : %s, I'm %d ... | [
"cstlizy@hotmail.com"
] | cstlizy@hotmail.com |
bcf4694b4be4de84974a88f8c1e0c68664a56527 | 4913fb7fd32c3dd0da53af7a012569ec2254b35a | /59.集合数据的操作.py | 75c83dbf6875876bad10856772cd2746191883a6 | [] | no_license | puhaoran12/python_note | 8a21954050ba3126f2ef6d5d1e4a2904df954b9b | b807e7b7dd90c87cee606f50421400c8f3d0ba03 | refs/heads/master | 2023-07-07T20:20:04.546541 | 2021-08-21T02:17:12 | 2021-08-21T02:17:12 | 398,439,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | #交集intersection() 或者 &
s1={10,20,30}
s2={30,40,50}
print(s1.intersection(s2))
print(s1 & s2)
#并集union() 或者 |
print(s1.union(s2))
print(s1 | s2)
#差集difference() 或者 -
print(s1.difference(s2))
print(s1 - s2)
#对称差集symmetric_difference() 或者 ^
print(s1.symmetric_difference(s2))
print(s1 ^ s2)
| [
"276191374@qq.com"
] | 276191374@qq.com |
ccd699e60459bbf8af8540cc3922d590f42b4547 | a17bed6af99239b59d693fb68bc4163339412469 | /config/config.py | 63ec2023ba7cc7bb0be221e02132d290dbd89898 | [] | no_license | Mubangizi/Epic-Mail-Backend | 43b6b5801273122302675de146cf0ce8a3162fb8 | 8cdb4414a25d08db3aa4eb6141fb91d3dbd207fc | refs/heads/master | 2022-09-27T04:48:38.307997 | 2020-03-20T14:22:31 | 2020-03-20T14:22:31 | 247,948,530 | 0 | 0 | null | 2022-09-16T18:19:15 | 2020-03-17T11:06:58 | Python | UTF-8 | Python | false | false | 584 | py | import os
class Base:
""" base config """
class Development(Base):
""" development config """
DEBUG = True
SQLALCHEMY_DATABASE_URI = "postgresql:///epicmail"
class Testing(Base):
""" test environment config """
TESTING = True
DEBUG = True
# use a separate db
SQLALCHEMY_DATAB... | [
"mubangizia22@gmail.com"
] | mubangizia22@gmail.com |
0c368647695205def899acb08a90a2cba0279ade | 644db7457d18200ffc709f5c24ebeba4f2a7a813 | /TensorFlow/Chapter10/1. GPU基本操作.py | 3d586000e850dd3aab94e29817532f23aac40be4 | [
"MIT"
] | permissive | yisampi/Notes-of-TensorFlow-and-Keras | b3619824b0ea7be322af10ae26a7b5c7f5220ece | 9805c37ae2ccad961214f93101208af6a8efe144 | refs/heads/master | 2020-05-23T21:43:07.820042 | 2019-05-09T02:55:39 | 2019-05-09T02:55:39 | 186,960,119 | 2 | 0 | MIT | 2019-05-16T05:51:03 | 2019-05-16T05:51:01 | null | UTF-8 | Python | false | false | 975 | py | # coding=utf-8
import tensorflow as tf
a = tf.constant([1.0, 2.0, 3.0], shape=[3], name='a')
b = tf.constant([1.0, 2.0, 3.0], shape=[3], name='b')
c = a + b
# 通过log_device_placement参数来记录运行每一个运算的设备。
sess = tf.Session(config=tf.ConfigProto(log_device_placement=True))
print sess.run(c)
# 通过tf.device将运算指定到特定的设备上。
with ... | [
"1679871747@qq.com"
] | 1679871747@qq.com |
cbc7ff8ebf0f55d2d54140505ce153702a872ce4 | 9784a90cac667e8e0aaba0ca599b4255b215ec67 | /convert_models.py | d3b743be02b1e3c57c11c482699a1440c12daa44 | [
"MIT"
] | permissive | osmr/imgclsmob | d2f48f01ca541b20119871393eca383001a96019 | f2993d3ce73a2f7ddba05da3891defb08547d504 | refs/heads/master | 2022-07-09T14:24:37.591824 | 2021-12-14T10:15:31 | 2021-12-14T10:15:31 | 140,285,687 | 3,017 | 624 | MIT | 2022-07-04T15:18:37 | 2018-07-09T12:57:46 | Python | UTF-8 | Python | false | false | 87,933 | py | """
Script for converting models between frameworks (MXNet, Gluon, PyTroch, Chainer, Keras, TensorFlow).
"""
import argparse
import logging
import re
import numpy as np
from common.logger_utils import initialize_logging
def parse_args():
parser = argparse.ArgumentParser(description="Convert models (Gluon/PyT... | [
"osemery@gmail.com"
] | osemery@gmail.com |
ad364d115bc6776a6a8c7228e0e343adfa03863e | 9860ae1038952cc6fe25cddeab0e50d51692baee | /problem/exercise_08_14.py | 633c0a7d34ee4581bd6821cc500550f6fcee7b7b | [] | no_license | messiLiao/ai_for_robotics | e303be6327f6d31eb090457f4b9cbc4a9f4cad62 | 318584dc0a6cce043cd26c472cdb17388d1a6ae4 | refs/heads/master | 2021-09-06T06:51:54.033527 | 2018-02-03T13:25:02 | 2018-02-03T13:25:02 | 104,562,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,867 | py | # Now we want to give weight to our
# particles. This program will print a
# list of 1000 particle weights.
#
# Don't modify the code below. Please enter
# your code at the bottom.
from math import *
import random
landmarks = [[20.0, 20.0], [80.0, 80.0], [20.0, 80.0], [80.0, 20.0]]
world_size = 100.0
class robot... | [
"krobor.lmx@gmail.com"
] | krobor.lmx@gmail.com |
d370737bcbe5ffd75991ed89aaab50c8b82d4490 | f53c1fe797979a3f36458362195b22be2a819f06 | /database.py | 7170cbef29920d91f654ffdffc4bb52bb37556f9 | [] | no_license | Amritha777/MediBoT | 82738f77040bcda7b8814f6c28b283a9c171ef0d | f1070466b5ad0ff6db03b4b15304a2fa957d0d1f | refs/heads/master | 2021-09-05T02:50:22.139714 | 2018-01-23T19:13:46 | 2018-01-23T19:13:46 | 118,656,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | import pymysql
import json
class DB:
db = None
def __init__(self):
try:
self.db=pymysql.connect("localhost","root","123456789","MediBOT")
except Exception as e:
print("Database not Found")
def get_med(disease):
cursor=db.cursor()
cursor.execute("select medicine from medicines where Illn... | [
"noreply@github.com"
] | Amritha777.noreply@github.com |
b7420d59481fb281fa17f4810d519a2e48c5a60e | 5d33fbaec7b29217106e8249800eee3977f677f0 | /load_data.py | 98c685104cb2978ccffd09288d2c1d075b1abe1f | [] | no_license | rk1998/cs7648-project | c4409fa57fb5f92795ccb44e06028b9f6746dd21 | e145cfc8f025e35214b2b44bb22b54759e172bde | refs/heads/main | 2023-06-25T02:05:00.275210 | 2021-07-25T00:56:45 | 2021-07-25T00:56:45 | 351,656,031 | 0 | 0 | null | 2021-04-29T17:31:59 | 2021-03-26T03:57:17 | Python | UTF-8 | Python | false | false | 10,925 | py | import torch
import torch.nn as nn
import torch.optim as optim
import numpy as np
import pandas as pd
import nltk
from nltk import word_tokenize
from nltk.tokenize import TreebankWordTokenizer
nltk.download('punkt')
from tokenizers import BertWordPieceTokenizer
from collections import Counter
import os
import sys
from... | [
"rohithk98@gmail.com"
] | rohithk98@gmail.com |
7f963dcecc9d3f15af04ffcd545a9236de141722 | ef208d5a0cfcba5cfd3fdf3780b9511b4291f71a | /Project/get_tweets.py | c7e15510fdf212ef1aab0a14a04624b9358be253 | [] | no_license | freshlybreemed/BricksquadApplication | df73b0f5d9e5b2513a3e4b7cc124e739b3073d03 | b42ec5f7107f2194f0cf6c6dc9ceb04208dc8978 | refs/heads/master | 2021-05-28T13:03:45.518778 | 2014-03-19T23:14:20 | 2014-03-19T23:14:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,349 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from tweepy.streaming import StreamListener
from tweepy import OAuthHandler
from tweepy import Stream
import json
import re
import sys
consumer_key="Aon0bjz4YJrSvK5AaYOmaA"
consumer_secret="ok6n7nLFnTK7sPgfJy9KePVWWpNLsf66ZjG2qxybE"
access_token="702257119-3JFCScVL8HSioH3Twx... | [
"ebrima.jobe92@gmail.com"
] | ebrima.jobe92@gmail.com |
4e860abb10b550c48e16c59c692326f5f75730fa | f08177abce14672891c34c0eecc064f2b42f2441 | /hydrus/client/db/ClientDBMappingsCounts.py | 5df0ef9fa636429b38e960148136fbb76dc8a01a | [
"WTFPL"
] | permissive | bbappserver/hydrus-userpatch | d217006cc7691a08c11c98ddfd2415da56d6b27d | ef19e2167e24433d960a0811a93a683d62203518 | refs/heads/master | 2022-09-19T03:36:16.575489 | 2022-05-04T21:40:27 | 2022-05-04T21:40:27 | 179,595,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,801 | py | import collections
import sqlite3
import typing
from hydrus.core import HydrusConstants as HC
from hydrus.core import HydrusDBBase
from hydrus.client import ClientData
from hydrus.client.db import ClientDBModule
from hydrus.client.db import ClientDBServices
from hydrus.client.metadata import ClientTags
def GenerateC... | [
"hydrus.admin@gmail.com"
] | hydrus.admin@gmail.com |
7267956f1f7b465699fb043dc755525ce97b5ccf | 2c73882fc59ca85f4854a43bcda8cc9edd282b8d | /polls_api/views.py | 2664dfc220c7e377fed156deed7d18e979f75115 | [] | no_license | mjstealth/guide-to-backbonejs-with-django | 540236f3535ee171c3aa4c43a1be9394a8a7e4bc | e7d5016c800e1e0e282da0386cc6112d4eed63c1 | refs/heads/master | 2021-01-17T22:40:28.191509 | 2012-09-04T22:17:12 | 2012-09-04T22:17:12 | 5,679,419 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 990 | py | from django.shortcuts import get_object_or_404
from django.core.urlresolvers import reverse
from djangorestframework import views
from djangorestframework.response import Response
from polls.forms import PollForm
from polls.models import Poll
from .resources import PollResource
class PollResults (views.View):
def... | [
"mjumbewu@gmail.com"
] | mjumbewu@gmail.com |
e2e964631eef116474cd151983314c48a21da834 | 3596fd6714859644f882d4cf21bdc5988ceadff1 | /loader/migrations/0002_auto_20190731_1821.py | 96be8f3c13eee21a3d848d575074d18ee007b210 | [
"MIT"
] | permissive | and-sm/testgr | 9e54526baad6105f146abd2d40dd35510f4e9a84 | 231f6906fa3a2d29e43d407f0637214fe2bf4fa0 | refs/heads/master | 2023-05-01T14:45:45.742927 | 2022-05-10T06:43:18 | 2022-05-10T06:43:18 | 149,164,578 | 21 | 4 | MIT | 2023-03-31T15:25:03 | 2018-09-17T17:45:01 | Python | UTF-8 | Python | false | false | 755 | py | # Generated by Django 2.2.1 on 2019-07-31 18:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('loader', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='testjobs',
name='uuid',
fi... | [
"and.inbx@gmail.com"
] | and.inbx@gmail.com |
a8cbba2afa5ccdb4f7f8580d54d4c531a781cf8e | b1bddabb1fb57b06c652594ec0e6c09c8d0c4650 | /ROOK/gamestatistics.py | 6f7fa834cd0345a0a6da82e620f54a43a8c7056a | [] | no_license | JacobClark95/Personal_Projects | bda4529a792f870b264676aa287662994f322798 | 56753aff22f6545989e199ae85b2909c17f0866f | refs/heads/master | 2020-04-11T00:47:05.744449 | 2018-12-11T21:39:27 | 2018-12-11T21:39:27 | 161,395,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,929 | py | from player import Team
from collection import Collection
from card import Card
import time
class GameStatistics():
def __init__(self):
self.roundNum = 1
self.roundLeader = None
self.sittingOrder = []
self.teams = {Team.BID_WINNER:[], Team.REGULAR:[]}
self.cardsWon = {}... | [
"jacobclark@Jacobs-MBP-3-010034237103.app.byu.edu"
] | jacobclark@Jacobs-MBP-3-010034237103.app.byu.edu |
26c3ed7037c5e7c99c281a9602db0848de390886 | ce55c319f5a78b69fefc63595d433864a2e531b5 | /前后端分离-vue-DRF/houfen_DRF-projects/15day周末作业/booklogin/user/views.py | ea76a3b29e6788ab22cbcb4e135039d76dd5f722 | [] | no_license | Suijng/1809_data | a072c875e8746190e3b715e53f1afe3323f4666b | 45f8a57089f5c30ccc1a3cddb03b76dc95355417 | refs/heads/master | 2022-12-21T12:38:30.458291 | 2019-09-27T01:14:41 | 2019-09-27T01:14:41 | 211,207,071 | 0 | 0 | null | 2022-11-22T03:16:18 | 2019-09-27T00:55:21 | HTML | UTF-8 | Python | false | false | 7,016 | py | from django.shortcuts import render
# Create your views here.
from rest_framework.views import APIView
from rest_framework.response import Response
from user.serializers import ResgsterUserSerializer,CategorySerializer,\
BookDetailSerializer,BookSerializer,\
ChpaterListSerializer,ChpaterDetailSerializer
from ... | [
"1627765913@qq.com"
] | 1627765913@qq.com |
4e06e836da5cf68854d332fed25e2651f482fe55 | 2ba87ce6df8179d06599c08b9afaadaea0a6dfee | /io模型/BIO.py | 276806b66441af383e6db2328feee980048f0d85 | [] | no_license | github-zbp/operating-system | 1e85446a3748fe663eb064cf64d06f2644cde5ff | 5a55405c2059848abd46ab65de9581d246092675 | refs/heads/master | 2023-01-11T23:04:29.396614 | 2020-11-09T07:20:22 | 2020-11-09T07:20:22 | 264,598,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,102 | py | # coding=utf-8
from threading import Thread, currentThread
import socket
# 服务端代码
# 创建套接字
server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
# 绑定ip和端口
ip = "127.0.0.1"
port = 8000
server.bind((ip, port))
# 监听套接字
server.listen()
print("服务已开启")
def contact(client):
print("客户端 %s 已成功连接" % currentThread()... | [
"1640632344@qq.com"
] | 1640632344@qq.com |
3aa8275b4ed0528fc62812ebb986cdc0e2bfc848 | d02385211c75b168da9eff2acb221a42b9e28fb0 | /File IO/read_write_append.py | 859bf052b9f2a54e505d5f60371abba33aaeb9f8 | [] | no_license | PMLS3/PythonLearning | 0b53c0ca72f61e6a51df5b5399914dd289b22f73 | b936dd70096ebbec3cc14c1b2efa9995dc2c4521 | refs/heads/main | 2023-02-10T05:02:01.525277 | 2021-01-06T14:44:14 | 2021-01-06T14:44:14 | 324,515,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 936 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Aug 23 13:27:09 2020
@author: saura
"""
with open("happy\happy.txt", mode = 'a') as my_file:
text = my_file.write("I am HAPPY!")
print(text) # it prints the no. of letters written into the file
with open("happy\happy.txt", mode = 'r') as my_file:
pri... | [
"peet@partnersinbiz.tech"
] | peet@partnersinbiz.tech |
c51fdfcbfcba03c2c6e8a2f54cd4ea6ac71386b3 | 6ebd656e2eff394454bdaba1a5793859aa3adc17 | /bot/utils/config.py | abe8bd0ffbba562e027c069356f3974412fa9b10 | [] | no_license | streemline/aiogram_template | 7d98e9286675db1ab0d21d65519bb2c9bc94bceb | 8cf2d3ea0a45b5bdf4e672af7397febe786b8c1d | refs/heads/main | 2023-06-02T01:23:26.903261 | 2021-05-11T12:03:49 | 2021-05-11T12:03:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | from yaml import load
from . import exceptions
from .trafaret import config_trafaret
try:
from yaml import CLoader as Loader
except ImportError:
from yaml import Loader
def parse_config(path, check=True):
"""
Parse a config.
"""
try:
with open(path) as file:
config = loa... | [
"zhogalkostya@gmail.com"
] | zhogalkostya@gmail.com |
1265bb8736bd9b11afc120fcc3bdcb77428869ec | 29a4c1e436bc90deaaf7711e468154597fc379b7 | /modules/ieee/doc2/nextpow2.py | 7c5fcf15c55e96875561be4f21550ed813ecbc7a | [
"BSL-1.0"
] | permissive | brycelelbach/nt2 | 31bdde2338ebcaa24bb76f542bd0778a620f8e7c | 73d7e8dd390fa4c8d251c6451acdae65def70e0b | refs/heads/master | 2021-01-17T12:41:35.021457 | 2011-04-03T17:37:15 | 2011-04-03T17:37:15 | 1,263,345 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,923 | py | [{'functor': {'arity': '1',
'call_types': [],
'ret_arity': '0',
'rturn': {'default': 'typename nt2::meta::as_integer<typename boost::result_of<nt2::meta::floating(T)>::type, signed>::type'},
'type_defs': [],
'types': ['real_', 'unsigned_int_', 'signe... | [
"jtlapreste@gmail.com"
] | jtlapreste@gmail.com |
4b4fb06a5c7779a15bbde10c3ca456691d7aa16b | 2ed6ad4a736879a47d192159da45ca56610c089a | /tests/test_utils.py | 5322f50e74f0e19c141fd1adbdd2a5b05e92fb39 | [
"MIT"
] | permissive | poonyisaTH/gsheets-db-api | a82bd35984766697757cc96aa74a1281d948f019 | f023b32986d4da9a501fca8d435f2b6edc153353 | refs/heads/master | 2023-05-29T15:01:10.604324 | 2021-02-17T20:59:41 | 2021-02-17T20:59:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,952 | py | # -*- coding: utf-8 -*-
import unittest
from moz_sql_parser import parse
import pyparsing
from .context import format_gsheet_error, format_moz_error
class UtilsTestSuite(unittest.TestCase):
def test_format_moz_error(self):
query = 'SELECT ))) FROM table'
with self.assertRaises(pyparsing.ParseE... | [
"roberto@dealmeida.net"
] | roberto@dealmeida.net |
0270e9279a918710ee3c169034fee4444e0cf5c2 | 21e0aec25b83feccb3d1dd0e8970fd71971b969a | /main.py | 49b9b47ebbe57208492719c0118f09b3e2039fd3 | [] | no_license | Estex-cyber/battery_check | f8974a0510ad22b06289fb8b245fde48cd7b2116 | 883d053155b27a113f1982c702ab06faf137b9ce | refs/heads/main | 2023-04-03T03:08:11.231774 | 2021-03-24T08:06:40 | 2021-03-24T08:06:40 | 347,199,312 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | import psutil
battery = psutil.sensors_battery()
if battery.power_plugged:
print("Charging", battery.percent, "%")
elif not battery.power_plugged:
print("Not charging", battery.percent, "%")
print("Discharge time", int(battery.secsleft), "sec left")
if int(battery.percent == 10) or int(batter... | [
"noreply@github.com"
] | Estex-cyber.noreply@github.com |
416ebd601da95b4878e39a59b5229fda813725d3 | 0a6cf240f24a59aab28a641c855116bc88ba6047 | /Tests/SSL/test_ssl_containers.py | 556305e5d83cb4d20f319dc1ae1d2870f4c5a0ba | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | ayeaton/InnerEye-DeepLearning | 7e9772721332b7c5dae82a7106568807682152c0 | c2f0d668e8cefc1c3868de86c62131f38ca2531d | refs/heads/main | 2023-05-31T08:39:00.744006 | 2021-06-24T19:53:40 | 2021-06-24T19:53:40 | 376,850,420 | 0 | 0 | MIT | 2021-06-14T14:22:12 | 2021-06-14T14:22:11 | null | UTF-8 | Python | false | false | 8,280 | py | # ------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License (MIT). See LICENSE in the repo root for license information.
# -------------------------------------------------------------------... | [
"noreply@github.com"
] | ayeaton.noreply@github.com |
5c4b29381d1a76a65cb65bf7d3de213c703febac | c63b62dc2eb7e873289040df6377f47a168c6d31 | /flask/bin/jupyter-migrate | 8bf29f46c530501d07406642f52fa211ddd74bd4 | [] | no_license | onepau/baromontres | c801299b0849100fb6b27ba0551c73cafc72afcf | ae538e46c47a76d61c01c5f3d6ad1513eb0dced1 | refs/heads/master | 2021-01-22T19:22:37.271408 | 2017-03-17T17:30:35 | 2017-03-17T17:30:35 | 85,192,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | #!/Users/pauloneil/ML/baromontres_flask/flask/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from jupyter_core.migrate import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"pauloneil@MacBook-Air.local"
] | pauloneil@MacBook-Air.local | |
51cbbc6395a6c0755b0aaf0f460fc91f7dc63457 | 43d7c7721ab991a27b0aa64bdad4bc51255e484e | /hyde/ext/templates/jinja.py | bfe2d1b16afaa0bf660a5ac7250fe02999114524 | [
"MIT"
] | permissive | chewable/hyde | 071f5787dcdfbd8eadc73b58275bb16249b2e638 | 88b701b813440c455d91e73d9b30efe3cb05dacf | refs/heads/master | 2021-01-18T17:33:51.379900 | 2011-02-09T16:58:38 | 2011-02-09T16:58:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,697 | py | # -*- coding: utf-8 -*-
"""
Jinja template utilties
"""
from hyde.fs import File, Folder
from hyde.template import HtmlWrap, Template
from hyde.site import Resource
from hyde.util import getLoggerWithNullHandler, getLoggerWithConsoleHandler
from jinja2 import contextfunction, Environment, FileSystemLoader
from jinja2... | [
"lakshmi.vyas@gmail.com"
] | lakshmi.vyas@gmail.com |
687597834631051ff823fce8248de22de124ebb5 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02553/s242742740.py | 19cb61040111d626c69f31e200e94dcd971f47c1 | [] | 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 | 78 | py | a,b,c,d = map(int,input().split())
s = max(max(a*c,a*d),max(b*c,b*d))
print(s) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c4ff9ba09ddd1c85d4d2a16bd76fc35ec78638d8 | 0c25aeef02a4d97b3d711760520dd9f3815c4826 | /okean/nc/nctypes.py | 83667fd947e48af5d26d42cdee0c21fc7c57a5f4 | [] | no_license | moghimis/okean | 71080c871c5956311d7351e5e043823f8c73505e | 20e707cd4787995b1bf17c19a3b12f232f5867ab | refs/heads/master | 2020-04-05T22:50:18.271043 | 2018-09-21T18:19:35 | 2018-09-21T18:19:35 | 20,712,916 | 0 | 0 | null | 2017-04-11T19:32:39 | 2014-06-11T05:05:19 | Python | UTF-8 | Python | false | false | 7,856 | py | '''
-------------------------------------------------------------------
datatype dtype.name name nc4 description
-------------------------------------------------------------------
f4,f float32 NC_FLOAT 32-bit floating point
f8 float64 NC_DOUBLE 64-bit floa... | [
"martalmeida@gmail.com"
] | martalmeida@gmail.com |
5a4d8c674b599a2c01fdc8fd795bf0ea39b3d9b4 | 0ddcfcbfc3faa81c79e320c34c35a972dab86498 | /puzzles/orderly_queue.py | a373cf1f75c26e6261bdd30af8d0855a2660bb45 | [] | no_license | IvanWoo/coding-interview-questions | 3311da45895ac4f3c394b22530079c79a9215a1c | 1312305b199b65a11804a000432ebe28d1fba87e | refs/heads/master | 2023-08-09T19:46:28.278111 | 2023-06-21T01:47:07 | 2023-06-21T01:47:07 | 135,307,912 | 0 | 0 | null | 2023-07-20T12:14:38 | 2018-05-29T14:24:43 | Python | UTF-8 | Python | false | false | 1,048 | py | # https://leetcode.com/problems/orderly-queue/
"""
ou are given a string s and an integer k. You can choose one of the first k letters of s and append it at the end of the string..
Return the lexicographically smallest string you could have after applying the mentioned step any number of moves.
Example 1:
Input: s = ... | [
"tyivanwu@gmail.com"
] | tyivanwu@gmail.com |
87d25e6b41c0eb727cfc908b91e9860fdcc17135 | d5087da467f07bc88579955a8ce9454cba8a3703 | /gestionusuarios/apps.py | d6ce7ba72cb30b0ef1374db560924a53ea6d416b | [] | no_license | RobJVE/Gestion-TrabajosdeGrado | 99744fcc9542d6c53748acbd79f508b3a8bfc122 | e929d6bca4d48570b5eaaf773c60eb511197a769 | refs/heads/master | 2020-11-28T16:17:01.318021 | 2020-01-08T17:19:54 | 2020-01-08T17:19:54 | 229,865,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | from django.apps import AppConfig
class GestionusuariosConfig(AppConfig):
name = 'gestionusuarios'
| [
"robertojve12@gmail.com"
] | robertojve12@gmail.com |
c663247f79902d830119db43c67ab692f260485a | 46a130d64358681dea6003f2c5555c98bfd69e11 | /load_to_itop/scripts/trans_to_dump.py | dacd6c9aea0802c3c07f30eb1f61fffc8c9d170b | [] | no_license | yyztc/itopV2 | 5220ba2f3419dcfc3b3d5d0d756ea9cd232f6c47 | 855d8c6d61cbe1feea646f9b4ec7825d73d7ecc0 | refs/heads/master | 2020-11-28T08:47:24.809754 | 2018-02-09T01:34:53 | 2018-02-09T01:34:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,286 | py | #encoding=utf8
import shutil
import csv
import os
import numpy as np
import pandas as pd
from pprint import pprint
from config import server_src_csv, vm_src_csv, server_static_csv, network_csv, storage_csv, sync_ds_csv, brand_csv, model_csv, osfamily_csv, osversion_csv, networktype_csv, physicalserver_csv, vir... | [
"root@devops.localdomain"
] | root@devops.localdomain |
af1e5056aec3be9d614a4fd505910033c83a7e61 | 44c1ac9a83b26ab70b7ce0148acbd933e1a946c3 | /inss/src/mossoroposts/tables.py | 4020a530ac55f476c913803c46e565a0ebbdf0ec | [] | no_license | pedromaia02/ls_deploy | b9348d37260b7e55d526c840d6bbcff9a30033e5 | 9c6f8bb077455389bc541e1917974ee6c78e6b6d | refs/heads/master | 2020-04-05T22:57:15.165172 | 2017-10-08T21:08:16 | 2017-10-08T21:08:16 | 68,154,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,397 | py | # -*- coding: utf-8 -*-
# Customizar as tabelas do django-table2
import django_tables2 as tables
from .models import MossoroPosts
class PostsTable(tables.Table):
actions = tables.TemplateColumn("<a href=/inssmossoro/{{record.id}}>Detalhes</a> - <a href=/inssmossoro/{{record.id}}/edit>Modificar</a> - <a href=... | [
"pedromaia02@gmail.com"
] | pedromaia02@gmail.com |
7aeb59e68007f90a70eb8d4027a76867e6acdc54 | df5c8186fa526be8fc6c5295a82d673458b668c3 | /Unit 7/Ai bot/test bots/RandomRoy.py | 3cfc23afb5de89c47a4847168a94abdc056af627 | [
"MIT"
] | permissive | KevinBoxuGao/ICS3UI | 296a304e048080d3a6089a788eb3b74c099d5f1e | 2091a7c0276b888dd88f2063e6acd6e7ff7fb6fa | refs/heads/master | 2020-04-23T03:32:49.424600 | 2019-06-18T21:20:36 | 2019-06-18T21:20:36 | 170,881,750 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,320 | py | from random import *
#STRATEGY: JUST PICK RANDOMLY, MAKING SURE THAT I DON'T LOSE BY CHEATING
def getMove( myScore, mySnowballs, myDucksUsed, myMovesSoFar,
oppScore, oppSnowballs, oppDucksUsed, oppMovesSoFar ):
if mySnowballs == 0: #If I'm out of snowballs...
if myDucksUsed < 5: #.... | [
"kevingao2003@gmail.com"
] | kevingao2003@gmail.com |
2ac308de7ea56c3e49a6bf3d403f763954382164 | d8788a352e84b6184fc65e499fd2e198855b4ab1 | /05_RNN/rnn_imdb.py | b63b931774d18de45b4d4797ce04b1ad3e94ac39 | [] | no_license | yjkim0083/3min_keras | 7cb5c883d2b337beb5dc54ba235fac37bc206640 | 46e192cf37a3407e69b6b81c10cb2b1dff35586d | refs/heads/master | 2020-05-17T00:21:12.795091 | 2019-04-26T09:30:32 | 2019-04-26T09:30:32 | 183,394,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,849 | py | # import library
from __future__ import print_function
from keras.preprocessing import sequence
from keras.datasets import imdb
from keras import layers, models
# 데이터 준비
class Data:
def __init__(self, max_features=20000, maxlen=80):
(x_train, y_train), (x_test, y_test) = imdb.load_data(num_words=max_featur... | [
"yjkim0083@gmail.com"
] | yjkim0083@gmail.com |
42a8dac1509c16a1f9ee4746a23db2e89449bf64 | 11d265eba2ced9de43c339e4014c779b521320cd | /accounts/migrations/0004_auto_20200423_2253.py | eccb31bc3dd7e0a1872e9574429fc5cdc2edd129 | [] | no_license | Sloshpit/budget_old | d9271de625cd7e3aa66ccbec501b005e50cd2812 | a5603996b026542adb3bc8c578c03bcb843bea01 | refs/heads/master | 2022-04-23T08:42:43.377827 | 2020-04-25T14:40:39 | 2020-04-25T14:40:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 606 | py | # Generated by Django 3.0.5 on 2020-04-24 02:53
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('accounts', '0003_auto_20200423_2251'),
]
operations = [
migrations.RenameField(
model_name='account',
old_name='transaction_... | [
"neel.maheshwari@gmail.com"
] | neel.maheshwari@gmail.com |
e3b72e06b1595b812d60964be50b5f7d6587a95a | 32a24714b7450eea329faa19b93475545d3ec7a9 | /app/rapper_wrapper.py | 5aa6a67c44fc380ead94e33d6d18a725247439b7 | [] | no_license | yum-yab/rapper-mod | b32fcf224d0cdd1e75f2f203381efa8a23a6fb69 | a63a2360056f862bceb3b465af274428321e1d1b | refs/heads/main | 2023-03-29T10:22:54.395656 | 2021-04-01T12:53:14 | 2021-04-01T12:53:14 | 353,626,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,433 | py | import os
import sys
import json
import subprocess
import re
rapperErrorsRegex = re.compile(r"^rapper: Error.*$")
rapperWarningsRegex = re.compile(r"^rapper: Warning.*$")
rapperTriplesRegex = re.compile(r"rapper: Parsing returned (\d+) triples")
def returnRapperErrors(rapperLog):
errorMatches = []
warningMat... | [
"streitmatter@informatik.uni-leipzig.de"
] | streitmatter@informatik.uni-leipzig.de |
6166a19921057cbb6fd2c937922458411e917f51 | ffe147e443dbd3c4e42b923393bda72d73e2eb75 | /server.py | fa99c5174a8375ca68aa5bb3616f8b03aa750fac | [] | no_license | jwilson573/counter_assignment | cf7d4418f5f54198dcac8f2dd24e25d62702209d | b958f11f910dfed8b23b885e57c60f807fb47c77 | refs/heads/master | 2020-06-22T23:00:14.943527 | 2017-06-13T15:10:06 | 2017-06-13T15:10:06 | 94,226,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 564 | py | from flask import Flask, session, render_template, redirect, request
app = Flask(__name__)
app.secret_key = "TestKey"
counter = 0
def sessionCounter():
try:
session['counter'] += 1
except KeyError:
session['counter'] = 1
@app.route('/')
def index():
sessionCounter()
return render_templ... | [
"jonathon.b.wilson@gmail.com"
] | jonathon.b.wilson@gmail.com |
eaeb032aefcca3f6234961954e3d3943a85cbe8b | 51e354e58f991d264bb6c3bf1c9277b16c332254 | /Boletín1/Ejercicio22.py | e7b7e0a84cea0bf3e996b921769e4eeb95dd8179 | [] | no_license | matey97/Programacion | 93ec50e26a136de0d53f4b847e92e703ee2a8296 | 929993978057c4c2e86469d11349ecd1fb45ae28 | refs/heads/master | 2021-07-21T16:00:17.170393 | 2017-10-31T18:32:46 | 2017-10-31T18:32:46 | 109,030,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | '''
Created on 1 de oct. de 2015
@author: al341802
'''
from math import pi
radio=float(input("Introduce el radio:"))
area=pi*radio**2
long=2*pi*radio
print("El area es:{0:.2f}".format(area))
print("La longitud de la circunferencia es:{0:.2f}".format(long)) | [
"al341802@uji.es"
] | al341802@uji.es |
4c78ff7b8d99fa7a2c0507d61ea3beb4dacca5b9 | 14828d39e62daa1805fcad2046ee4f7059e89f89 | /build/catkin_generated/order_packages.py | 19733f48c19b3444ef2949ad6d90006b2b27fc26 | [] | no_license | haosen9527/TF_demo | 699afa4c2c2053b6816f79dcd35e7857d9ea2cef | 4ce2c632d8eefc2abd87b7af2a1582982f68f4d2 | refs/heads/master | 2020-03-21T07:53:31.813816 | 2018-06-22T13:35:06 | 2018-06-22T13:35:06 | 138,306,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | # generated from catkin/cmake/template/order_packages.context.py.in
source_root_dir = "/home/micros/catkin_new/src"
whitelisted_packages = "".split(';') if "" != "" else []
blacklisted_packages = "".split(';') if "" != "" else []
underlay_workspaces = "/home/micros/catkin_new/devel;/opt/ros/kinetic".split(';') if "/hom... | [
"ljhao1994@163..com"
] | ljhao1994@163..com |
969ff18c3b0c3ebd06ccfc2dc0dfe97216e6a725 | 6a47ec6800610ea93479f91505e73a3eb4f34ae0 | /user/serviced.py | 74e25a9df84b86e320e670d436afb861e42769b5 | [] | no_license | risification/queue_project | 1158aac7bae3b04f98c106c23c27281c96bcaf41 | e85f9f2d1835f10a0247a569f88d4cb29803538a | refs/heads/master | 2023-04-26T08:05:25.573243 | 2021-06-07T21:03:47 | 2021-06-07T21:03:47 | 374,119,444 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | from django.contrib.auth.models import User
from django.core.mail import EmailMessage
def mailing(username):
email_list = []
obj = User.objects.filter(is_superuser=True)
for user in obj:
email_list.append(user.email)
subjects = 'hi'
body = f'User with {username} register in database, pls c... | [
"sultangaziev01@bk.ru"
] | sultangaziev01@bk.ru |
3c9e94802edf1b2bda9664db98775acda9edceef | d5b187cd25874c73fe18aa534ca6a4fa388b5464 | /python-fundamentals/week2/day4-data_structures_cont/Ans_part2_2.py | 15f15165c23a4a68daa4952cd7294248e9cf2c17 | [] | no_license | jwcrandall/galvanize | dec7618c5e5bb8af7340acad8e07f58b703b317f | e4f05c172a2e046f7ee3c151618ed1295717a0d4 | refs/heads/master | 2022-09-15T02:49:45.927678 | 2020-06-04T19:43:12 | 2020-06-04T19:43:12 | 269,430,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | # Write a script that prompts the user for a state name.
search_state = input("Please enter a state name: ")
search_state = search_state.lower()
#It will then check that state name against the dictionary below to give back the capital of that state.
# However, you'll notice that the dictionary doesn't know the capitals... | [
"josephcrandall@me.com"
] | josephcrandall@me.com |
18dbf87af9420c5a2ca503743e7f290aaeb054b1 | 8f50df9241833fa477687a02448b7f3f929f5d93 | /codeforces/706d/solution.py | b06518e0a9ac9aea9eb4f5b0457a67a89f93b811 | [] | no_license | tjwudi/problem-solving | 7004453d037915892348308a16670eb499577cd5 | d29ba6bce035c9cb75bf2bc4e7b84c062ecda615 | refs/heads/master | 2020-04-05T18:29:32.513172 | 2016-08-31T12:24:49 | 2016-08-31T12:24:49 | 65,372,323 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,772 | py | import sys
import math
def get_bit(num, position, wide = 1):
"""
get_bit(0b00001, 1) == 1
get_bit(0b00010, 2) == 1
"""
return (num >> (position - wide)) & ((1 << wide) - 1)
class DNode(object):
def __init__(self, count=0, bits_group=1):
self.childs = [None] * (1 << bits_group... | [
"webmaster@leapoahead.com"
] | webmaster@leapoahead.com |
3e4e5435d302503d3bc1b51a2fe2084deea94028 | ca4d1f815784ce137c27b2ddfe6515ca0cf7b5b5 | /python/IKnow/iknowFlask.py | c96850eb52cc67debe8c2dad0ceed73310f6f785 | [] | no_license | jacobL/iknow | 152a2d905c0178cbd7d907c2a0d4546ede3c6abb | 135000f94cac4dc450006eddc94415edd0ac3a6e | refs/heads/main | 2023-05-30T16:56:31.668948 | 2021-06-25T07:43:49 | 2021-06-25T07:43:49 | 380,092,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 108,885 | py | from flask import Flask
from flask import jsonify
from flask import request
from flask_cors import CORS, cross_origin
from collections import OrderedDict
from werkzeug.serving import run_simple
import pymysql
import pyodbc
import datetime
import time
import json
app = Flask(__name__)
app.config['JSON_SORT_KEYS'] = Tru... | [
"ukljm.2005@gmail.com"
] | ukljm.2005@gmail.com |
ee6de89868cf2316edb693e794d43ca2ce025e0c | 4866bce3ef5b481849c31b1d74001f3af3525f9e | /todoapp/todoapp/urls.py | 452e6fa67cb0d9af25eae81cea8e7e008e3584d3 | [] | no_license | meliketakan/my-first-blog | 9ad63c821dc179f9ede5eb13d2f014e92e70524a | 33233f6e763c77879339c86faab0f89446cf4d58 | refs/heads/master | 2023-05-30T00:12:52.814151 | 2021-06-18T08:27:07 | 2021-06-18T08:27:07 | 372,640,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | """todoapp URL Configuration
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... | [
"meliketakan0@gmail.com"
] | meliketakan0@gmail.com |
43bf411f069beff4b058247c875c82e5f19f01bc | 4b1965b3d831ab54998973afb26f4327ed010336 | /info/user/views.py | 4edbf7fa25d4329141c2449cb244798b16174185 | [] | no_license | yc12192057/information11_mm | 7d353dfe61962eb0bd2c29b7f0b54a2a62953262 | 2e4052d130b200797aa8a57a0d37f8267d523a8b | refs/heads/master | 2020-03-21T10:22:23.558714 | 2018-06-24T02:34:25 | 2018-06-24T02:34:25 | 138,447,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,383 | py | from flask import current_app
from flask import g
from flask import request
from flask import session
from info.utils.image_storage import storage
from info import constants
from info import db
from info.models import Category, News
from info.utils.response_code import RET
from . import profile_blue
from flask import r... | [
"xwp_fullstack@163.com"
] | xwp_fullstack@163.com |
1fcb9a5bc116b70cacd5ddbd3646b35b3f6e0d8c | e0527bce5c53a196752d3a16adf50cb60754de5f | /05-How to Repeat Actions demos/02-dotty_dots.py | 47bb00a38d29385492c81d3cb4b98ea027472cab | [] | no_license | ARWA-ALraddadi/python-tutorial-for-beginners | ddeb657f419fbc176bea273bc9fb6b88d1894191 | 21cedfc47871ca4d25c2382464c60ab0a2121205 | refs/heads/master | 2023-06-30T20:24:30.688800 | 2021-08-08T08:22:29 | 2021-08-08T08:22:29 | 193,094,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,825 | py | #---------------------------------------------------------------------
#
# Dotty dots - Repeating actions with minor variations
#
# Up until now the only repetition we've seen has been the same action
# done many times. This simple demonstration shows how actions can
# be repeated with minor variations for each differ... | [
"noreply@github.com"
] | ARWA-ALraddadi.noreply@github.com |
f71387df36af9f3c0cb4897aa762c93b0ccbdb5f | 3f60b999ea7bda83c9586f75f52463dc20337f24 | /sensitive_user_portrait/weibo_rank/Offline_task.py | de919db3a2449e8b9e35b521386aa9943040a4ae | [] | no_license | jianjian0dandan/sensitive_user_portrait | 629e49ce71db92b50634bac9c828811cdb5381e9 | cacc30267ebc0e621b1d48d4f1206277a0f48123 | refs/heads/master | 2021-01-20T23:18:07.138057 | 2016-05-22T12:09:40 | 2016-05-22T12:09:40 | 42,869,287 | 0 | 0 | null | 2015-09-21T13:55:12 | 2015-09-21T13:55:11 | null | UTF-8 | Python | false | false | 6,454 | py | #-*-coding: utf-8 -*-
import datetime
import json
import time as TIME
from elasticsearch import Elasticsearch
from time_utils import ts2datetime, datetime2ts, ts2date
from global_utils import es_user_portrait as es
WEIBO_RANK_KEYWORD_TASK_INDEX = 'weibo_rank_keyword_task'
WEIBO_RANK_KEYWORD_TASK_TYPE = 'weibo_rank_ta... | [
"1257819385@qq.com"
] | 1257819385@qq.com |
cb83f4850aea698f5ef2fc3ef219bd74922e880a | beb131847b4f9c3abb5bf7cc868a9c46ed460532 | /setup.py | 39be4f8b8143ba24a9c1f8c12cd7b883cd1d9dc5 | [
"MIT"
] | permissive | mfy68/MfyReport | 46755c7c32f5336ca47d58fad1562bfb2e6f7b8e | 44edd71372c72959e437e92b8fbd2ce78d0766d5 | refs/heads/master | 2023-07-15T16:06:24.845691 | 2021-08-14T03:12:43 | 2021-08-14T03:12:43 | 394,526,847 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 945 | py | #-*- coding:utf8 -*- #
#-----------------------------------------------------------------------------------
# ProjectName: mfyreport
# FileName: setup
# Author: MingFeiyang
# Datetime: 2021/8/9 14:23
#-----------------------------------------------------------------------------------
from setuptools impo... | [
"88566917+mfy68@users.noreply.github.com"
] | 88566917+mfy68@users.noreply.github.com |
6e29a6e6c458214a2a869d88d2a4615e11373078 | adf2e802c7563e4b7b7cc279a54deceb6a803098 | /openapi_client/models/pdf_annotate_parameters.py | 9dc6b17b59f3a07476f94e6f5e9c90548eeb50bf | [] | no_license | Orpalis/passportpdfsdk-python | 2466f7568becf2bd386bd9e4e00b4e3c1e642727 | 257d305ca9e6508d44fe521a1e4721f1835e8d0e | refs/heads/master | 2022-04-24T15:58:21.257112 | 2020-04-27T11:09:37 | 2020-04-27T11:09:37 | 254,665,250 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,981 | py | # coding: utf-8
"""
PassportPDF API
Another brick in the cloud # noqa: E501
The version of the OpenAPI document: 1.0.1
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from openapi_client.configuration import Configuration
class PdfAnnotateParam... | [
"e.carrere@orpalis.com"
] | e.carrere@orpalis.com |
c36e9f213f21c497cd2a8eb0ebdb30eb59bba41e | 3f82466567c664a14c18ea03df2ddcb30678175e | /brain_Tumor.py | 6558b103566c0e171c8d8f0b099ed52884707747 | [
"MIT"
] | permissive | Sumanyu123/An-Efficient-Brain-Tumor-MRI-classification-using-Deep-Residual-Learning | ec295d75fca6199fa152ad556fd0d25054dba8a6 | 2176806f39e4a1054461fa55b7a399345acca5e8 | refs/heads/main | 2023-08-24T19:30:59.522101 | 2021-09-21T19:07:20 | 2021-09-21T19:07:20 | 409,250,074 | 1 | 0 | MIT | 2021-09-22T15:05:53 | 2021-09-22T15:05:52 | null | UTF-8 | Python | false | false | 17,418 | py | from __future__ import annotations
__doc__: str = r'''
>>> Paper Title:
An Efficient Brain Tumor Classification using Deep Residual Learning.
>>> Paper Abstract:
Brain tumor categorization is essential for evaluating tumors as well as determining treatment
ch... | [
"noreply@github.com"
] | Sumanyu123.noreply@github.com |
a57dcb96525131d56ec52c5f7b6ad9f742f6b551 | 2f28c2fb7c7322e98ab9954d1c45888dadd0da80 | /src/models/train_model.py | 681422b4f7ade0412828518149c46bba9c5cc67d | [
"MIT"
] | permissive | markanderson96/AMFMBirdActivity | 6dda0fab6590a05342a0cc07428201b2cfda75cc | 5f133b76dd6c85d09313d588df334f0cdb3feb09 | refs/heads/main | 2023-05-02T13:55:36.186033 | 2021-02-09T20:13:28 | 2021-02-09T20:13:28 | 329,428,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,167 | py | #!/bin/python
import pandas as pd
import numpy as np
import yaml
import logging
import sys
from sklearn.preprocessing import StandardScaler
from sklearn.impute import SimpleImputer
from sklearn.compose import ColumnTransformer
from sklearn.pipeline import Pipeline
from sklearn.model_selection import train_test_split,... | [
"andersm3@tcd.ie"
] | andersm3@tcd.ie |
93d1c4b038d428ed57ee5e22dfd6aa42a7abb5be | d0168d08221da5bf95c0dd511efeecddc9b0a73d | /profiles/migrations/0001_initial.py | cdaa8070d22ad1710c0d0041619d3e087f6b3285 | [] | no_license | alexarirok/roret-farm-software | 900b5842c7b39c4a19543e138a719e4b496531a9 | aa23fd729351f0d045b2e310dc839a8b4d639c6d | refs/heads/master | 2021-04-08T21:03:59.709224 | 2020-05-01T00:07:53 | 2020-05-01T00:07:53 | 248,808,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 853 | py | # Generated by Django 3.0.5 on 2020-04-23 21:43
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Profile',
fields=[
('id', models.AutoField(... | [
"akorir233@gmail.com"
] | akorir233@gmail.com |
116006e27e9db0ac8a63a39f89b241ebcd2a358a | 3554ca28e1cf94fac1173cfee0498e974872561f | /examples/utils/loggers.py | 6829522c3bcd51222c334db31bbc7ebb0e7b21d9 | [] | no_license | tchaton/lightning-geometric | 4a5aeec847df317804f28772554b411923271019 | a8348aa327d240285a921cb2f927c8f94139ea3f | refs/heads/master | 2023-03-28T15:25:08.060346 | 2020-10-03T17:43:27 | 2020-10-03T17:43:27 | 294,764,248 | 44 | 6 | null | 2021-04-04T09:23:50 | 2020-09-11T17:34:52 | Python | UTF-8 | Python | false | false | 1,733 | py | from typing import Dict
import shutil
import os
import subprocess
import hydra
import inspect
from hydra.utils import instantiate
from pytorch_lightning.loggers import WandbLogger
def initialize_WandbLogger(*args, **kwargs):
keys = [k for k in inspect.signature(WandbLogger.__init__).parameters.keys()][1:-1]
... | [
"thomas.chaton.ai@gmail.com"
] | thomas.chaton.ai@gmail.com |
181948742c2599fe0d7f49260c2f25dc93941c71 | 4c37dd485e8415810e7aa5b8dce963f48c9378ba | /singlemovieclawer.py | 672c791d8e1de63b62788fc7697d7ea2ce9729e3 | [] | no_license | biyuxuan12/zona | 0593c6e54938d6c5efba3d5911860e821f6783e0 | 2d033820bb0ae8d14a1c2797bd8a403b2992a183 | refs/heads/master | 2020-04-26T17:01:08.441632 | 2019-03-04T07:55:00 | 2019-03-04T07:55:00 | 173,699,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,174 | py | # -*- coding:utf-8 -*-
import re
import socket
timeout = 100
socket.setdefaulttimeout(timeout)
import threading
import urllib
from urllib import request
from bs4 import BeautifulSoup
import dbsetting
import datetime as dt
import sys
flag=0
dict={}
myclient = dbsetting.myclient
mydb = dbsetting.mydb
# -*- coding: utf-8... | [
"48197709+biyuxuan12@users.noreply.github.com"
] | 48197709+biyuxuan12@users.noreply.github.com |
b74ad33e632198ba342a255f54d4a25b1116e952 | e040e5f33a443fa8ca313968a97471cf9d9db87c | /vagrant/tasks.py | 7094094b2f8d5d55fb20e7f4d2c1131ddd72ff8f | [] | no_license | chrisseto/Archiver | 63605e977849274648195b231b06849e4f365152 | 849e30dd0f6fe177ecd0efd94a2b55d7993ebe02 | HEAD | 2016-09-11T06:34:50.692644 | 2014-09-04T19:46:41 | 2014-09-04T19:46:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,361 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from invoke import run, task
@task
def provision(inventory='hosts', user='vagrant', sudo=True, verbose=False, extra='', key='~/.vagrant.d/insecure_private_key'):
"""Run the site.yml playbook given an inventory file and a user. Defaults
to provisioning the vagrant ... | [
"Chriskseto@gmail.com"
] | Chriskseto@gmail.com |
a815426cb3f10bd195178efb53da646d401835a2 | 2e888bd174fb9088aea80bca0ca2102c4e418dff | /0x09-python-everything_is_object/100-magic_string.py | 0adac5f3d095862c0d25184336471aeff30aa454 | [] | no_license | mauriciosierrac/holbertonschool-higher_level_programming | 9aea13b9f13b1bc80b0782a0699601294776199a | 4ff2198623eebb238689aed60ea2f064bdb2f705 | refs/heads/master | 2023-04-29T23:54:39.063955 | 2021-05-12T23:41:19 | 2021-05-12T23:41:19 | 319,360,492 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | #!/usr/bin/python3
def magic_string(string=[]):
string += ['Holberton']
return (', '.join(string))
| [
"2376@holbertonschool.com"
] | 2376@holbertonschool.com |
924d20afd9dad0f7b5bf8a84d7d57e1cfef8e356 | c2d8493fd9aa1baccff2e70658b1da5e350a3d33 | /prj_auth/models.py | 16a77cc9fdbb59e254da3e5abcaa457008072417 | [] | no_license | tufedtm/dj_aut | 6c5fe1ea148fb2a942dfa815bc5b16f7b7b833f5 | 0b8876263434f97191b0d5a423147ec662c004a4 | refs/heads/master | 2021-01-12T15:12:18.625147 | 2016-09-27T13:23:17 | 2016-09-27T13:23:17 | 69,359,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | from django.contrib.auth.models import AbstractUser
class MyUser(AbstractUser):
class Meta:
verbose_name = 'мой пользователь'
verbose_name_plural = 'мои пользователи'
| [
"tufedtm@gmail.com"
] | tufedtm@gmail.com |
6d9695e33af76ad842572e35c2345d53cbad1a2a | 1b10cfc8ed350baea39e4d265d2378c3da4cd994 | /plugin-sim/local.py | 2c07a963cdc79cf8adee95b46bade25d12f3d13d | [
"MIT"
] | permissive | albertcrowley/coinstac-search | e382cc0ec401d42fd75a548e9f8d014b5fc02387 | 731d38644e1c7dc4c9b65fb986c824ed11a33e8c | refs/heads/master | 2020-03-29T23:16:00.571684 | 2020-02-24T19:52:01 | 2020-02-24T19:52:01 | 150,464,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,000 | py | #!/usr/bin/python
import subprocess
import sys
import json
import os
from nidm.experiment.tools.rest import RestParser
if 'DEBUG' in os.environ and os.environ['DEBUG'] == "1":
directory = '/opt/project/'
else:
directory = './'
#
# To run as a test:
#
# docker run -e "DEBUG=1" -v /home/crowley/coinstac-se... | [
"albert.crowley@tcg.com"
] | albert.crowley@tcg.com |
21a65c73620f2a40477d64a11550fc36704d99f4 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/A3COM-HUAWEI-RS485-MIB.py | 6e4c22f4a88026cd33571d0023c92ae07bce922d | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 10,571 | py | #
# PySNMP MIB module A3COM-HUAWEI-RS485-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/A3COM-HUAWEI-RS485-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 16:52:12 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (d... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
c6c4d8e35d0129f75e49d92bfe882b3936490218 | 56892b9b1cf1f7d674a79d6e2fe0a0a0062441e6 | /lipidnetui.py | 42cf124484e7e69e361bf30db2b69994ce0a9437 | [] | no_license | mannerhybrid/lipidnet | d6ddaf68e898bb67ea94aa08f3af6a9557692c22 | 7421edc5bf9bcceb5196d353fa100241fc744dee | refs/heads/master | 2020-03-19T07:15:41.158632 | 2018-08-28T02:24:28 | 2018-08-28T02:24:28 | 136,099,824 | 0 | 0 | null | 2018-06-05T01:12:20 | 2018-06-05T00:58:28 | null | UTF-8 | Python | false | false | 5,795 | py | # -*- coding: utf-8 -*-
"""
Spyder Editor
This is a temporary script file.
"""
import tkinter as tk
import time
from tkinter import ttk
from Bio import Entrez
from bs4 import BeautifulSoup as soup
Entrez.email = "md.nur.hakim.rosli@gmail.com"
class LipidUI(tk.Tk):
def __init__(self, *args, *... | [
"noreply@github.com"
] | mannerhybrid.noreply@github.com |
e82f2bd71cc0846186353d8c20817723d286fc4f | 4d4fcde3efaa334f7aa56beabd2aa26fbcc43650 | /server/src/uds/reports/lists/__init__.py | 2cb963d21ee727e9b5b0bcc891ec8e5716d7db72 | [] | no_license | xezpeleta/openuds | a8b11cb34eb0ef7bb2da80f67586a81b2de229ef | 840a7a02bd7c9894e8863a8a50874cdfdbf30fcd | refs/heads/master | 2023-08-21T17:55:48.914631 | 2021-10-06T10:39:06 | 2021-10-06T10:39:06 | 414,489,331 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,712 | py | # -*- coding: utf-8 -*-
#
# Copyright (c) 2015-2020 Virtual Cable S.L.U.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright not... | [
"dkmaster@dkmon.com"
] | dkmaster@dkmon.com |
b1a61ea569ceff44af77a9d5860273ddbd1e7943 | 56a40305c2d71d88562ddd0e448415ab118790f1 | /backend/polls/tests.py | fc6ef19a5630ba278fb02c288434c80169e1b70c | [] | no_license | KatherynRizek/states-countries | e990798ca8d61914eea33b5ca04aea54560ae555 | 1aa0210228d04a902b56ecc45c6d712fc7ebca32 | refs/heads/master | 2021-09-28T11:04:17.893622 | 2018-06-07T14:39:37 | 2018-06-07T14:39:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,034 | py | import datetime
from django.test import TestCase
from django.utils import timezone
from django.urls import reverse
from .models import Question
class QuestionModelTests(TestCase):
def test_was_published_recently_with_future_question(self):
"""
was_published_recently() returns False for question... | [
"katheryn@kosmond.2ldxhoqz4w0efi5ajh3u0k0m2g.bx.internal.cloudapp.net"
] | katheryn@kosmond.2ldxhoqz4w0efi5ajh3u0k0m2g.bx.internal.cloudapp.net |
98b96256d9b49f574f1e9e179f2affae1bc20855 | 4cbb9e2213b04b21ab2f283d29cedb9585b26d9b | /setup.py | a7c929b111a7f8bc253d416c660f9025065d7f6f | [
"MIT"
] | permissive | CostRagno/geopolygon | a859bc1f08623b201ece5605536edbb92bfa1335 | f9113f606866f2f58920cefeebe5a1220b2e5a9e | refs/heads/master | 2020-09-05T08:23:21.720871 | 2019-11-17T10:39:32 | 2019-11-17T10:39:32 | 220,040,015 | 3 | 2 | MIT | 2019-11-17T10:39:34 | 2019-11-06T16:21:07 | Python | UTF-8 | Python | false | false | 2,076 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Nov 6 11:12:50 2019
@author: costantino
"""
from distutils.core import setup
setup(
name = 'geopolygon', # How you named your package folder (MyLib)
packages = ['geopolygon'], # Chose the same as "name"
version = '0.1', # St... | [
"noreply@github.com"
] | CostRagno.noreply@github.com |
630d1956e0b63d64523db795b9be2b9148d32cde | 5cb98473ea9972d0a9a0278cde9b6ee8264f9bac | /01. Jump to python/chap05/5_6/260.py | 3716f386db385102e9e74387bd614dd0a58e1cff | [] | no_license | libus1204/bigdata2019 | fd85dbcd8c89db991ab5c3efa11ff85466a823f8 | 5e9a6fa2c340c1fcd2840889ba40c7b805926558 | refs/heads/master | 2020-04-21T10:56:33.519490 | 2019-04-15T05:28:19 | 2019-04-15T05:28:19 | 169,503,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | import time
index = 1
while True:
print(index)
index += 1
time.sleep(5) | [
"libus1204@naver.com"
] | libus1204@naver.com |
89dffaba38711b93fdcb658ebbf0b28432889f78 | 113b962bd5e2eb770067bd374a15dfe8a1c2d09f | /py_scripts/get_mappedcount_byLibID.py | 8a5cee444afcf4ef2e1d1d2b47beaaa11f6be665 | [] | no_license | aungthurhahein/biotech_script | ecce51950bcef69405843da12ece2f84ea5541d6 | 2fda699343e6c46543fa1df2412c8ca2f2622cda | refs/heads/master | 2020-12-24T06:20:13.028141 | 2016-07-06T15:23:34 | 2016-07-06T15:23:34 | 25,574,741 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 827 | py | """
# get occurences of ref_ids by Lib_IDs
# modification tips: file type, column of file ids
# __author__ = 'atrx'
# Date: 22012015
"""
import sys
from Bio import SeqIO
usage = "Usage %s infile" % sys.argv[0] # specific massage for no input
try:
fastafile = sys.argv[1]
contigid = sys.argv[2]
except:
pri... | [
"aungthurhahein@gmail.com"
] | aungthurhahein@gmail.com |
22f3c9cd4a9a1004dd7c7bb512643d2bbf2cbdb2 | 048405bfa0b48eaf78dd2298bdfe61472bd74eef | /scripts/multiproc.py | d0bf77fe6d0ed47a785ac752a9bddf3529d5e1ed | [] | no_license | sousa-edvan/greedy_grasp_ant | 2218ae20f707baa8d5428db76129e5c758a21d07 | 12f5ac99b4d0e9599a2ecd138f8f6a3551fe2473 | refs/heads/master | 2022-01-27T02:30:35.977782 | 2019-07-19T16:39:20 | 2019-07-19T16:39:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | import os
import pandas as pd
import subprocess
from multiprocessing import cpu_count, Pool
from auto_tqdm import tqdm
from notipy_me import Notipy
def score(data):
csv = "scores/{data}.csv".format(data=data)
subprocess.run([
"./gga/greedy_grasp_ant",
"--data=data/{data}".format(data=data),
... | [
"cappelletti.luca94@gmail.com"
] | cappelletti.luca94@gmail.com |
f3a8f4fa0afc7f7f1ea26142d7b365249322a846 | 395b49dd992103e905c97a7b569eb21c1e887791 | /rectangulo.py | aeaef65359087b466480797c97c8026cff31b50b | [] | no_license | joshuaavalos74/Ejercicios-en-clase-2017 | e728995e05b42e9a30d7fd73e5454ab8ff60c898 | 34789d0a3e17fab55039224e438f7f9f336fecde | refs/heads/master | 2021-01-11T19:17:48.730605 | 2017-09-05T16:19:50 | 2017-09-05T16:19:50 | 79,346,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | def rec(alt,anch):
r=""
for i in range (0,alt):
r+= ("*"*anch)+"\n"
return r
| [
"joshuaavalos74@gmail.com"
] | joshuaavalos74@gmail.com |
1d5145aa4f4e80bb677c962c61230d3e563afccf | 348b807deb1fd6f66538c7c233271a5fb08023e2 | /checking_data_type.py | 9ab4b8bda700050c22099daef9d18e7c4d59a08b | [] | no_license | SparshRajGupta/MyPythonStudy | 6cc25ee134963c7ead47ab67716b30b25f88b739 | 6026c7e23273ca5fe42c06ac1709b42ea0e5675a | refs/heads/master | 2021-01-19T11:23:09.941770 | 2017-06-04T21:44:41 | 2017-06-04T21:44:41 | 87,963,178 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | a = 5
print (a, "is of type",type(a))
b = 3.0
print (b, "is of type",type(b))
c = "Hello"
print (c, "is of type", type(c))
d = 1+2j
print (d,"is complex number?",isinstance(d,complex)) | [
"sparsh.raj.1993@gmail.com"
] | sparsh.raj.1993@gmail.com |
ad2e9c6b207b388177519bbb6dfad9c71c71c217 | b78d46eed29dcea6a0679744fcdfecac1e5f15bb | /dir_cleaner/clean.py | db86f1a453e8715935b2164be94224afdd0511c9 | [] | no_license | blzzrd/things-and-stuff | 0ce9a975ef096fddd63b088a9f73e424409ad392 | dd566465a3281de8edf8e42aefebd9a32d32f962 | refs/heads/master | 2020-04-05T09:26:36.226300 | 2019-11-21T22:02:57 | 2019-11-21T22:02:57 | 156,756,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 846 | py | # Import the OS Module, the Time Module, and the System Module.
import os, time, sys
# Get the current working directory
current_path = os.getcwd()
# Get the current time.
now = time.time()
# os.listdir returns a list of files/dirs in the specified directory.
files_removed = 0
for files in os.listdir(current_path):
... | [
"alexcast001@gmail.com"
] | alexcast001@gmail.com |
02e4329074b8d1394dd9e02cf79281aea4bc695a | a34be2a91093ca9e9f79c8b54d5d82be0ce99f41 | /environments/sumo_gym.py | 4d45cdc1618f7c3ef8e7ff0b13f7926468d6c397 | [] | no_license | ndeshp2s/sumo-gym | 7967e84fd5b752de66403e3a68f012ae55718026 | 0bfa8753f692dbaa3f494a7d88cc18d8572d3f11 | refs/heads/master | 2021-06-20T10:19:33.348471 | 2021-01-21T10:21:05 | 2021-01-21T10:21:05 | 172,554,330 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,446 | py | import os
import sys
import gym
if 'SUMO_HOME' in os.environ:
tools = os.path.join(os.environ['SUMO_HOME'], 'tools')
sys.path.append(tools)
else:
sys.exit("please declare environment variable 'SUMO_HOME'")
import traci
from sumolib import checkBinary
class SumoGym(gym.Env):
def __init__(self):
... | [
"niranjan.deshpande187@gmail.com"
] | niranjan.deshpande187@gmail.com |
33383a8382f396f8e69cf09f091ef5f293fcf70e | 012a52b4d75673af95c7dfa1dbc59cb9b763edb9 | /ingest/break_down.py | bc37df9178a9a44af2088bc4b363571dfca0e8df | [] | no_license | oracc/oracc-rest | 459f6b252045d8960df5c6394ce4111ae4c9827d | 49fe5d0e445d9823ac0bcc0123b2826cad0fb0dc | refs/heads/development | 2023-08-07T07:50:14.547683 | 2023-05-22T14:20:18 | 2023-05-22T14:20:18 | 113,996,575 | 1 | 0 | null | 2023-07-25T21:16:56 | 2017-12-12T13:55:16 | Python | UTF-8 | Python | false | false | 6,429 | py | """A module for breaking down a glossary into individual entries."""
import json
import os
import subprocess
import sys
import warnings
# By default, we treat most glossary data as strings, but sometimes we want the
# REST API to return a different type (for instance, counts should be integers).
# The below sequences... | [
"a.georgoulas@ucl.ac.uk"
] | a.georgoulas@ucl.ac.uk |
fa568dcd357b037a884e720bb3f4b2961b3d5e46 | 343413e76c09d2bd3d009f382d9dcd19c984d58f | /.history/main_20201229180214.py | e7c1f84e7a234bab2a2ddd0a968647204387eebe | [] | no_license | rozbeh1212/cipher | 7b81e640501639cefb0fe6bf100647dd2602291e | abdebdd7d1e155ffab78ce38be8bf28074366c42 | refs/heads/master | 2023-02-04T13:44:36.892470 | 2020-12-29T14:44:10 | 2020-12-29T14:44:10 | 325,314,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 991 | py | alphabet = [
'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o',
'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'
'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o',
'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'
]
direction = input("Type 'encode' to encryp... | [
"eb.mehrdad@gmail.com"
] | eb.mehrdad@gmail.com |
3ab2ab497849cf95c4e137ee698165d20cbe687f | 1939f5b78e6dbd0675f6f2a9a0f4f49c2b069389 | /instagram/src/instabot.py | 91bd65f0544dd187a1655c570d6dcb9774751ecf | [
"MIT"
] | permissive | pavel-malin/instagram | cb7988d9fbfad14911bf39567f7b2f6336b1fb34 | b53f00c20521f46f5836946a499f476859d431f5 | refs/heads/master | 2021-03-16T07:54:57.942684 | 2017-11-20T11:23:46 | 2017-11-20T11:23:46 | 111,401,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36,349 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import atexit
import datetime
import itertools
import json
import logging
import random
import signal
import sys
if 'threading' in sys.modules:
del sys.modules['threading']
import time
import requests
from unfollow_protocol import unfollow_protocol
from userinfo impor... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
46716e05f494d85df10a692e589e37f999ee1bdd | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/CJ/16_0_2_anrieff_b.py | 9217d8d49f04d08baad00e10f7695015df8cedd7 | [] | 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 | 570 | py | #!/usr/bin/env python
# Contestant: Veselin 'anrieff' Georgiev
# Round: Google Code Jam Qualification 2016
# Task: B. Revenge of the pancakes
# Solution: Greedy. At each step, find the largest single-colored block at the top, and flip it, until we finish.
TC = int(raw_input().strip())
for tc in xrange(1, TC + 1):
p... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
326d8619cb7051110fe5797a4c857b43a2ce39ff | 4f822a3bfadf6d8cb8a842a9dcd6689d5cd99b8f | /testing4/a1.py | cea6ddea707213f88d15a408c14195bc3078fd05 | [] | no_license | ashishsingh14/Machine-Learning | 71e148fdcc0695ed8c71014674f44ca41001285f | 0e6830b229fd39c5540b1866e8bb4400ac785950 | refs/heads/master | 2020-05-29T16:40:42.469253 | 2016-04-30T08:03:02 | 2016-04-30T08:03:02 | 56,255,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,951 | py | import sys, os
from sklearn import cluster
import numpy as np
from matplotlib import pyplot
import matplotlib.dates as mdates
from datetime import datetime
from math import sqrt
import pandas as pd
from operator import itemgetter
from mpl_toolkits.mplot3d import Axes3D
def plotrelationships():
days = np.genfromtx... | [
"ashish.iitr2015@gmail.com"
] | ashish.iitr2015@gmail.com |
6b98012278b2ef3e02f3bdbc33e146865eb26807 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/59/usersdata/201/46743/submittedfiles/testes.py | 3378d84c86f02731a2be48d3b0f834f8d9cb8366 | [] | 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 | 111 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
r=float(input('Digite um raio:'))
pi=3,14
a=pi*(r**2):
print(a) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
9aa3ab83c5304e5dd042b22eef1c00f745172a1a | b032e30b00ee9a83b6a782b3390ee034f9b79aff | /bin/get_today_ticks.py | a3f1b91350721e7cc1117ef33275ffaa1d7c1781 | [] | no_license | gedong009/stock-selection | ace9cc721bc8790dfa40388a7af014e400976359 | eab69921e422a3e0d7f5cd32c15f4bb98c493a78 | refs/heads/master | 2021-04-27T04:42:28.235282 | 2019-06-01T02:51:28 | 2019-06-01T02:51:28 | 122,584,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,796 | py | #encoding: utf-8
import pymysql
import tushare as ts
import sql_model
import pandas as pd
import numpy as np
from debug import p
import threading
import code_redis
import datetime
import time
import debug
def dd(code, mysql_obj=None, threadName=None):
now = datetime.datetime.now()
# 周末退出
if now.weekday()... | [
"gedong009@qq.com"
] | gedong009@qq.com |
c63356a685b663f6948f971cbbea4317c9ee4d59 | bc46638835f1f248550b05c49450ef6e632cec50 | /Ubidots-Finaltest.py | 460b2ba2c49049a7be2c04efd128cd3d75ec97d5 | [
"MIT"
] | permissive | shijiediqiucunzj/Energy-Management-of-HVAC-Systems | e9da10104b8a1a5a509ec119ded2319356b7dc3b | 64fced60248500ab59e953ad7628ccc533cf983e | refs/heads/master | 2022-07-23T23:04:20.685016 | 2017-05-28T08:50:45 | 2017-05-28T08:50:45 | 182,559,359 | 0 | 0 | MIT | 2022-06-02T21:22:30 | 2019-04-21T16:53:46 | Python | UTF-8 | Python | false | false | 4,091 | py | # FYP2017
# Program to establish ZigBee communication between raspberry Pi and arduino
# Complete control of HVAC elements based on commands sent from the Pi
# Author: Kunal Jagadeesh
# License: Public Domain
import time
import serial
from ubidots import ApiClient
one = 1
zero = 0
f = open('Ubidots_APIkey.txt', 'r')... | [
"kunal.jagadish07@gmail.com"
] | kunal.jagadish07@gmail.com |
84a2a9db3cd847433912ae84459035f42045f6bc | da3e36172daaf863ef73372f8c36cc2629ec1769 | /UMDC/03/17g.py | ce55196990dd77c97e38c5ebc70122baad56ce1d | [] | no_license | mentecatoDev/python | 08eef1cb5a6ca2f16b01ee98192ccf1a65b9380a | 80ddf541d3d1316ba8375db8f6ec170580e7831b | refs/heads/master | 2021-06-30T07:03:51.957376 | 2021-02-22T09:40:46 | 2021-02-22T09:40:46 | 222,322,503 | 3 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,333 | py | """
Ejercicio 17g
Escribir funciones que resuelvan los siguientes problemas:
g) Dadas dos fechas (dia1, mes1, año1, dia2, mes2, año2), indicar el tiempo
transcurrido entre ambas, en años, meses y dias. Nota: en todos los casos,
involucrar las funciones escritas previamente cuando sea posible.
"""
def bisiesto(anio)... | [
"favila@iesromerovargas.com"
] | favila@iesromerovargas.com |
83b4ab7c3c4da8d9afb08d03fde9608fa04f4c09 | ea8e945af461ae6e5a2dcd9dce244391f14ec695 | /yamaguchi/chapter01/knock06.py | 60935e99d3fdfeb6fd7aaa78c8b5e626065af9d7 | [] | no_license | tmu-nlp/100knock2020 | b5a98485e52b88003fa97966c8d6eef292c9f036 | 1133fa833ea32ad3e54833e420bcb1433f3ec2f3 | refs/heads/master | 2023-04-09T06:48:04.571566 | 2020-08-13T05:38:25 | 2020-08-13T05:38:25 | 258,825,143 | 1 | 2 | null | 2020-08-12T15:56:56 | 2020-04-25T16:43:13 | Python | UTF-8 | Python | false | false | 371 | py | def n_gram(target, n):
return [target[idx:idx + n] for idx in range(len(target) - n + 1)]
text_1 = "paraparaparadise"
text_2 = "paragraph"
X = n_gram(text_1, 2)
Y = n_gram(text_2, 2)
print(f'和集合: {set(X) | set(Y)}')
print(f'積集合: {set(X) & set(Y)}')
print(f'差集合: {set(X) - set(Y)}')
print("判定: " + st... | [
"noreply@github.com"
] | tmu-nlp.noreply@github.com |
8ff182862ff5c1544e49022bd0b028e0b7fd99a2 | 2d8517cb6ce3f1eefaffc5bf3acab58eb0331e38 | /tools/inputs/animals.py | 0075001481b1099da0808854933c89e7f7ba0236 | [] | no_license | ryyst/conjurer | e4ce6e270b11d481ff99f78dad472a4cb5738bb7 | 4db5aa7e4daa87b3b26a6d232a33b950de299a55 | refs/heads/master | 2023-07-10T02:47:22.282657 | 2021-08-08T21:07:48 | 2021-08-08T21:07:48 | 313,402,786 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 724 | py | # Most animals already have their own icon that the game provides,
# so this is only for the "unofficial" enemies.
CUSTOM_ANIMALS = [
{"path": "entities/buildings/lasergun.xml"},
{"path": "entities/buildings/lukki_eggs.xml"},
{"path": "entities/buildings/spidernest.xml"},
{"path": "entities/buildings/fi... | [
"rpuolak@gmail.com"
] | rpuolak@gmail.com |
62478de103e5b4226fe148f74b655fb80192b169 | e2919a492ffb1762534739f81a4f78fdb4dcb17f | /sql/primer_1.py | ce6b39fadae4796caf7c6b1d3ac7133944521daf | [] | no_license | AndreyDacenko/traning | 4ab94ead5a64245ca775cc03967598427f680d0f | f6c594ef888c42e9d6f16bfd4ac004e1ac00b139 | refs/heads/master | 2021-12-10T23:40:05.883178 | 2021-08-11T16:52:27 | 2021-08-11T16:52:27 | 202,687,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,511 | py | import sqlite3
# Сперва создадим соединение с нашей базой данных.
# В нашем примере БД - файл расположенный на компьютере, он так же может быть расположен и на сервере.
# Важно помнить что в реальных задачах нельзя коммитить базу данных в репозиторий!
conn = sqlite3.connect('Northwind.sl3')
# Укажем тип получаемых дан... | [
"andrey_dacenko@mail.ru"
] | andrey_dacenko@mail.ru |
12b51993b07c520189e37f6d63646560f98ae82d | ea83b212a42554d1a783c2d5ad2dc2c4c946f330 | /plugin/taskmage2/asttree/renderers.py | 03793fbb0c5bf14455a7128772a1803d44ac33a4 | [
"BSD-2-Clause"
] | permissive | willjp/vim-taskmage | 9e80b5cd7c906221d95feb29e399e7a17b59c44f | adcf809ccf1768753eca4dadaf6279b34e8d5699 | refs/heads/master | 2022-01-07T16:10:34.696385 | 2021-12-27T21:05:26 | 2021-12-27T21:05:26 | 99,585,518 | 1 | 0 | BSD-2-Clause | 2021-02-10T05:42:43 | 2017-08-07T14:16:10 | Python | UTF-8 | Python | false | false | 11,401 | py | #!/usr/bin/env python
"""
Name : taskmage2.parser.renderers.py
Created : Jul 27, 2018
Author : Will Pittman
Contact : willjpittman@gmail.com
________________________________________________________________________________
Description : A collection of classes to render a Parser object
... | [
"willjpittman@gmail.com"
] | willjpittman@gmail.com |
fadcabb3f730cb88d0fc2352df06bd1a08b79edb | 4a4e214268df1ba7b24c1ee4e7a4439055e5d0f2 | /k_closest_points_using_heapmax.py | b69c010979f4ac4cc612d708a42f143e0bbe4f01 | [] | no_license | arturoaviles/k_closest_points | 5a1fc3b0bd024f600f039fa837e3b957bc7b6a9a | 9d9c315ca615f016908a7641ff4ad6b56c06f1b6 | refs/heads/master | 2020-04-30T21:30:15.325606 | 2019-03-22T07:42:16 | 2019-03-22T07:42:16 | 177,094,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 789 | py | import heapq
points = [
(-2, -4), (0, -2), (-1, 0), (3, -5), (-2, -3), (3, 2)
] * 2000000
def closest_points(points, k):
# print(points)
arr = []
for coordinates in points:
x = coordinates[0]
y = coordinates[1]
d = (x ** 2 + y ** 2) ** 1/2
target = tuple((d, x, y))
... | [
"aaviles@nearshoremx.com"
] | aaviles@nearshoremx.com |
0352eb84ce1933e896691dcfd8d602529a7c6ac8 | 6e66abb51d4d4bbf3c335e19530d439c2615ff4e | /deepfake/deepfake/skp/etl/compute_image_hashes.py | 8442a845e134be8e0c3d046f7232de52cda984f1 | [] | no_license | yihhan/3dcnn_code | 19ed5aafe62e7e53c259dedd724b9e970940a870 | 3483e2840c68e69a90304dc4922657e0e9a590d8 | refs/heads/main | 2023-07-31T04:37:00.616853 | 2021-09-20T03:21:07 | 2021-09-20T03:21:07 | 408,280,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,445 | py | import pandas as pd
import numpy as np
import decord
import imagehash
import glob, os, os.path as osp
from tqdm import tqdm
from PIL import Image
def load_video(filename, max_frames=100):
vr = decord.VideoReader(filename, ctx=decord.cpu())
return np.asarray([vr[i].asnumpy() for i in range(max_frames)])
def... | [
"tanyihhan@gmail.com"
] | tanyihhan@gmail.com |
9ebb3ef4090282a4cf52fcc2b5888d18b54359f9 | 9308f06d79f7045f4a2866b103384231751e21b8 | /fetchURL-es.py | c71adb38e942c784d093a37079c34fa65ddbfdf5 | [] | no_license | orgullomoore/watchingamerica | ef51251caa74916599f787a6197e9c099d02be7a | d08f26fe73d027b68e4cb6b3d7a0b92ba9d80897 | refs/heads/master | 2016-08-04T15:15:49.906676 | 2014-07-11T17:11:30 | 2014-07-11T17:11:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,007 | py | import urllib.request
from urllib.error import URLError
import urllib
import codecs
import time
import re
currtimestr=''
currtime=time.gmtime()
for i in currtime[:6]:
currtimestr+=str(i)
logName='Log-'+currtimestr+'.html'
def fetchURL(someurl):
print('Fetching '+someurl)
opener = urllib.request.build_opene... | [
"orgullomoore@gmail.com"
] | orgullomoore@gmail.com |
c861a7bd871a32d79e69a95945186ca90b111af0 | 5e97b099899704a7525b6b0ce98dcf761bbf6763 | /finance/blotter.py | fb88f514a7cc740df3298d08fe4c58a43bc73f56 | [] | no_license | fswzb/zipline | 004d76d1658ec9185c125de96513e7312923205f | a504049d46f0d4518375b525c7b6ae083b4a3ea0 | refs/heads/master | 2020-05-23T10:20:57.972088 | 2017-01-12T17:23:27 | 2017-01-12T17:23:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,740 | py | #
# Copyright 2014 Quantopian, Inc.
#
# 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 to in wr... | [
"liu.jy.nku@gmail.com"
] | liu.jy.nku@gmail.com |
eee6c26c594ab5b9fa6e26288db0e7e9dee3d498 | ff886f5f947460576feaec2a049f6a9f78f2a63f | /core/management/commands/wait_for_db.py | 460989d579a419bc219cba5e76cc9fcb204aa701 | [
"MIT"
] | permissive | devendraprasad1984/loan_payment_app | 2bc927afbc084504bb10a959105d72f6f419e2c8 | 1a4c31d03a8c5ecf4dae2a981373649f4f699aa3 | refs/heads/main | 2023-07-21T19:00:40.692978 | 2021-09-09T03:36:04 | 2021-09-09T03:36:04 | 400,111,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 707 | py | import time
from django.db import connections
from django.db.utils import OperationalError
from django.core.management.base import BaseCommand
class Command(BaseCommand):
"""django overriding default app run until database is made available"""
def handle(self, *args, **options):
self.stdout.write('w... | [
"devendraprasad1984@gmail.com"
] | devendraprasad1984@gmail.com |
0d543afecf4a0144548d3602be45f8e851f1657b | a61dae5e34605f708cec4ba661a3e6d2ed78ab73 | /Weather/GUI.py | 595c6a018becfbd6c4cf78563b0fa83b0d9947dd | [] | no_license | ChyiYaqing/PythonPrj | a475c2f83db2a607377d24a78a8c0aa1220229e3 | a7f8e9c0263b4f0f3827c5488ab4fed002962a1b | refs/heads/master | 2020-06-02T01:27:05.095901 | 2017-06-25T12:48:30 | 2017-06-25T12:48:30 | 94,090,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,424 | py | #!/usr/bin/env python3
#-*- coding: utf-8 -*-
try:
# for Python2
from Tkinter import * ## notice capitalized T in Tkinter
except ImportError:
# for Python3
from tkinter import * ## notice lowercase 't' in tkinter here
from Weathers import *
import urllib2
from threading import Thread
import tkMessageBox... | [
"chyiyaqing@gmail.com"
] | chyiyaqing@gmail.com |
c026b6ef4d2e37bdbbe47238b809473c7ddfcf8e | d28ab4b215eda33a64dc81e40c824bc008680c18 | /python practice/Heap/373_find_k_pairs_with_smallest_sums.py | 43bea98c5177694695521bdaf8482168ff44fad2 | [] | no_license | SuzyWu2014/coding-practice | f7efc88c78877b841a4fcc8863a39223eca4c307 | 41365b549f1e6b04aac9f1632a66e71c1e05b322 | refs/heads/master | 2021-01-23T22:15:34.330828 | 2016-12-13T05:16:10 | 2016-12-13T05:16:10 | 58,106,714 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,867 | py | # 373. Find K Pairs with Smallest Sums
# You are given two integer arrays nums1 and nums2 sorted in ascending order and an integer k.
# Define a pair (u,v) which consists of one element from the first array and one element from the second array.
# Find the k pairs (u1,v1),(u2,v2) ...(uk,vk) with the smallest sums.
#... | [
"shujinwu@oregonstate.edu"
] | shujinwu@oregonstate.edu |
8d171a5022415dbcc2597a1fcc88f810666aa159 | 227b4e6af73f56f7d17b79f9351b7b10b7b3c842 | /17/17-1-3.py | eefb39346e30e62a6379d1f4ac78e51939476103 | [] | no_license | phootip/advent-of-code-2018 | 32782e8525475efa2cc93c21e9c93d746483a71d | a335f2b333bb01caef6822592c051e3f13686d5d | refs/heads/master | 2022-12-10T15:01:50.349531 | 2018-12-28T17:26:30 | 2018-12-28T17:26:30 | 161,011,308 | 0 | 0 | null | 2022-12-08T01:38:12 | 2018-12-09T06:25:29 | Python | UTF-8 | Python | false | false | 2,813 | py | from PIL import Image, ImageDraw
# f = open('./17/17.txt')
f = open('./17.txt')
# f = open('17-test.txt')
nodes = [(500,0)]
revisit = []
maps = [['.' for i in range(2000)] for j in range(2000)]
for line in f:
line = line.strip().split(',')
line = list(map(lambda x: x.strip().split('='),line))
line[1][1] = list(... | [
"phootip.t@gmail.com"
] | phootip.t@gmail.com |
4e00a1dbf4061dd58654ba69bca13d9e6499f794 | c10e2a73d15bbbeeda9ceb5321fc423b0b2ec98c | /mysite/settings.py | 07fc9230f56c09403d471ae021b61cfb295d20df | [
"MIT"
] | permissive | bennett39/pulitzers | 9822c5628901ea80d90fdb162148d5bdf0dc509a | 73b932275fe61af204c6a681f43778317c97c0fb | refs/heads/master | 2023-06-09T00:59:16.035391 | 2023-05-24T21:36:15 | 2023-05-24T21:36:15 | 188,304,164 | 0 | 0 | MIT | 2023-01-03T23:30:45 | 2019-05-23T20:46:29 | CSS | UTF-8 | Python | false | false | 3,629 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.2.1.
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 os
imp... | [
"34491412+bennett39@users.noreply.github.com"
] | 34491412+bennett39@users.noreply.github.com |
e25ee8942b20a0704262265705ad3ad2b5b7b407 | f99f30752e9bb9e023b37c731f64fb2155ac3daf | /03/zip.py | 69160f8e55ebbe1da4acd417e0cd571fe8488b3e | [] | no_license | chu83/python-basics | 148ff6977f5ca04775951d90ed1f5f763c51a9ff | 19fe0937842c668f604876be0aeb0962a2630dd2 | refs/heads/master | 2023-01-19T01:29:25.203738 | 2020-11-29T18:34:33 | 2020-11-29T18:34:33 | 311,258,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | print('========== zip() 함수 사용 예 ===========')
s1 = ['foo', 'bar', 'baz']
s2 = ['one', 'two', 'three', 'four']
z = zip(s1, s2)
print(z, type(z))
print('========== 순회1 ===========')
for t in z:
print(t, type(t))
z = zip(s1, s2)
for a, b in z:
print(a, b)
print('========== 순회2 ===========')
z = zip(s1, s2) | [
"59534807+chu83@users.noreply.github.com"
] | 59534807+chu83@users.noreply.github.com |
03a6dcc503549409d4e92b79d56834442c467eaf | ddef88284b7ec08364f99b43d74a99410f49303e | /code/Assignment1_2D_RNG/2DRandomNoGens.py | 19636408deeb9df085d1eacb297e2e2b13a0fc7e | [] | no_license | IDS6145-Fall2019/assignment1-amajoy | 6f9094eb126055daf6fe9b4dcc162ca74abd7f7f | 5fb31ba4271f6f35b47c5c72e67ca136bb7ead82 | refs/heads/master | 2020-07-23T01:00:41.524726 | 2019-09-24T00:20:11 | 2019-09-24T00:20:11 | 207,392,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,450 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Sep 21 21:54:35 2019
@author: Amanda
"""
import matplotlib.pyplot as plt
import random
import sobol_seq
#time to make plots - I can't figure out how to for loop this
#Pseudo-Random up top
plt.subplot(2, 5, 1)
x100 = [random.uniform(0,4) for x i... | [
"noreply@github.com"
] | IDS6145-Fall2019.noreply@github.com |
a4b3840315ea96ca28729257ee1a111f26226833 | 87d87c3c621c7f49cb1e7a5a4405aed4ee333857 | /.venv/bin/pip3.6 | 3c859a8ef91b0e61ab44a7c932c77a6958f7b3c6 | [] | no_license | victor-s-santos/Workshopgenetica | 32296f4b04216013562720688b14eb7fdb2877eb | 79233821b8919a564e37e0b6961c4e64b65797e8 | refs/heads/master | 2021-06-20T14:58:58.110529 | 2019-06-19T19:31:48 | 2019-06-19T19:31:48 | 192,790,662 | 0 | 0 | null | 2021-06-10T21:36:24 | 2019-06-19T19:17:23 | Python | UTF-8 | Python | false | false | 237 | 6 | #!/home/victor/Django/unesp_apps/.venv/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())
| [
"victorsantos.py@gmail.com"
] | victorsantos.py@gmail.com |
5802eeeb0ab8d6f8d89deb95c876c1ac27840b2a | 4fc9cb4cf01e41c4ed3de89f13d213e95c87dd33 | /angr/procedures/definitions/win32_wdsclientapi.py | dcbb07c74c314d0c5708a98cc0f55187713044fc | [
"BSD-2-Clause"
] | permissive | mborgerson/angr | ea5daf28576c3d31b542a0e229139ab2494326e9 | 8296578e92a15584205bfb2f7add13dd0fb36d56 | refs/heads/master | 2023-07-24T22:41:25.607215 | 2022-10-19T19:46:12 | 2022-10-20T18:13:31 | 227,243,942 | 1 | 2 | BSD-2-Clause | 2021-04-07T22:09:51 | 2019-12-11T00:47:55 | Python | UTF-8 | Python | false | false | 14,784 | py | # pylint:disable=line-too-long
import logging
from ...sim_type import SimTypeFunction, SimTypeShort, SimTypeInt, SimTypeLong, SimTypeLongLong, SimTypeDouble, SimTypeFloat, SimTypePointer, SimTypeChar, SimStruct, SimTypeFixedSizeArray, SimTypeBottom, SimUnion, SimTypeBool
from ...calling... | [
"noreply@github.com"
] | mborgerson.noreply@github.com |
6700c063471e30cfe487dee40901fad3323c7060 | 404ad77945e7ff8a57dac8753b00cb7187bd7f4e | /105/001.py | dce8d85ee6ea0834af75a97b3fa8fd5befcc6430 | [] | no_license | dennisliuu/Coding-365 | 5d773493fbf69bce03de20e4a03c5fdf108612f6 | 8e1cab65837ebe2cb36fa0e4b74fb07d0ee6b081 | refs/heads/master | 2020-03-24T22:33:58.299791 | 2018-08-07T05:06:21 | 2018-08-07T05:06:21 | 143,091,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,241 | py | class Stack:
def __init__(self):
self.items = []
def isEmpty(self):
return self.items == []
def push(self, item):
self.items.append(item)
def pop(self):
return self.items.pop()
def peek(self):
return self.items[len(self.items) - 1]
def size(self):
... | [
"dennisliuu@gmail.com"
] | dennisliuu@gmail.com |
0ac0305052893eb0942f039d2bc543f72d5454e5 | cf09d6430e37b5460d7208d6cae6d3af0fa15925 | /jsonbot/jsb/lib/reboot.py | 9209bd73573898a076abeb23cc8bd8fa26b3fd6a | [
"MIT"
] | permissive | Lujeni/old-projects | 2bbf0ff89852a3e4a9677475a615d2ee4b07d635 | 657304c8b017a98935de9728fc695abe8be7cc4f | refs/heads/master | 2021-03-12T23:08:34.054777 | 2014-10-16T23:10:15 | 2014-10-16T23:10:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,632 | py | # jsb/reboot.py
#
#
""" reboot code. """
## jsb imports
from jsb.lib.fleet import getfleet
from jsb.imports import getjson
json = getjson()
## basic imports
import os
import sys
import pickle
import tempfile
import logging
import time
## reboot function
def reboot():
""" reboot the bot. """
logging.warn(... | [
"julien@thebault.co"
] | julien@thebault.co |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.