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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0485afd33fb758d0685dc00ab7dc02c61a7c1dfe | b36eace4a335f2518988f5929ffdba6e48c9e97e | /posts/admin.py | 73419fc31cbfc465253fb736228f37c88e9a522a | [] | no_license | berkyaglioglu/Post-Sharing-Application | d3c4187a8b05cf34c65fee5cc90ab6b85740e754 | c169af6d27dd55ea711207e3e4b04cc61e678dca | refs/heads/master | 2020-06-22T22:42:56.720956 | 2019-08-01T08:40:04 | 2019-08-01T08:40:04 | 198,419,497 | 0 | 0 | null | 2019-08-01T08:40:06 | 2019-07-23T11:46:57 | Python | UTF-8 | Python | false | false | 145 | py | from django.contrib import admin
import django
from .models import Post, Ingredients
admin.site.register(Post)
admin.site.register(Ingredients)
| [
"berkyaglioglu@sabanciuniv.edu"
] | berkyaglioglu@sabanciuniv.edu |
f03cbd0776557b97bca758eac8ddf48281a65fe1 | aa55945714117a0a25b45a7ed110a9d42b4e9d47 | /UserStore.py | 811ad60cfd787a3f329f6fd102a7186c1ed27333 | [] | no_license | EnotionZ/FoodListing | 941ef02b648cce181e8d02dce5ab00ead60c0d9a | 8c502674cca4e3f611cef980d103548a4f116583 | refs/heads/master | 2021-01-04T14:06:37.375130 | 2012-03-09T01:25:21 | 2012-03-09T01:25:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,196 | py | """
UserInfo.py -- Grabs user info from the database.
by Sean.
"""
from Config import Config
from pymongo import Connection
from datetime import datetime
import time
from hashlib import sha256
from base64 import b64encode
import logging
class UserStore:
def __init__( self, config ):
self.conf... | [
"elchupa@chupa.com"
] | elchupa@chupa.com |
4671c52d67a2c52405795ec4df4cacd024ba19c0 | e67a3db1aef6c62eb9d419da74b37ea0b2ba8029 | /hkyoon/love_liverpool.py | ce49ca23204239429e75989b4e976880415b9b3f | [] | no_license | lilyyoon/hkyoon | 1ad28f5e5226aee29572a5bf5c976ea7147479a2 | 6d1f38869a3c606e06966e59537eda0a17f4a386 | refs/heads/master | 2020-06-02T00:54:44.441211 | 2019-06-09T09:44:54 | 2019-06-09T09:44:54 | 190,985,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14 | py | YNWA liverpool | [
"lily2138@naver.com"
] | lily2138@naver.com |
abf5f26c55cbaee20359ab26aed91e4d87724511 | bd8c661d0e3e3adebfecfdfbe55ce7b97a8b4fdb | /src/L0_xtc31/train_model.py | 94b8b3cdafab3b307a8ddaa3733ca489ed4adc4f | [
"MIT"
] | permissive | jimthompson5802/kaggle-BNP-Paribas | ea2d8625c0876e517b16914daa9fa36db7aedf63 | 536bcd0b1fe4cb3e1bfd55ee34e9027732cc7d5b | refs/heads/master | 2021-03-08T19:34:09.855388 | 2016-05-10T02:56:06 | 2016-05-10T02:56:06 | 56,448,955 | 13 | 7 | null | null | null | null | UTF-8 | Python | false | false | 1,554 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Mar 2 22:16:47 2016
@author: jim
"""
# py_train.tsv: training data set
import sys
import pickle
import zlib
import pandas as pd
from sklearn.tree import DecisionTreeClassifier
from sklearn.ensemble import ExtraTreesClassifier
from sklearn import ensemble
# model data str... | [
"jimthompson5802@aol.com"
] | jimthompson5802@aol.com |
86e0e080f61ad0e8524181b4748ad09937bf617f | 1fa9ca9ab5bd0121fa557893ae937a2cf312e564 | /ch2/ch2_lexresources.py | fb42b4c068c16227a2c6c757b5a01d822b4140b9 | [] | no_license | alexbumpers/NLTK_Practice | b3c02f16fcfe0a2e40e7febaf4560c47f86b1f0d | 4051ad5da02b2173c73b2d3fb771d717cdd6e366 | refs/heads/master | 2020-04-12T09:44:31.952080 | 2017-01-11T15:33:08 | 2017-01-11T15:33:08 | 65,736,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,690 | py | import nltk
from nltk.corpus import gutenberg
#gutenberg.fileids()
#def unusual_words(text):
#text_vocab = set(w.lower() for w in text if w.isalpha())
#english_vocab = set(w.lower() for w in nltk.corpus.words.words())
## .difference() returns new set with elements in x but not y
## in this example, tex... | [
"alexbumpers@Alexs-MacBook-Pro.local"
] | alexbumpers@Alexs-MacBook-Pro.local |
de3e7c7a99d56bbcd47d532b61dd9abdb705c05a | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nncuthbert.py | 68a51f0d1e582e2bf577eed1be5fba6c8208bebd | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 139 | py | ii = [('PettTHE.py', 1), ('ClarGE2.py', 2), ('BuckWGM.py', 2), ('DibdTRL2.py', 1), ('WadeJEB.py', 1), ('MartHRW.py', 1), ('BrewDTO.py', 1)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
6b47716cb6f55c7cc6a34a6b37043fb59aaa4fbb | 6254584a5febbfcd6babed94ed05c1de4e7c80bd | /genCSS.py | 3c72901514003dc76c716c171c1a975a71bbf32f | [] | no_license | pathumego/font-process-animator | 81304b975d0aebaf5389a3ef8bf3a0c942d341c5 | 88e23f9986b71831710452b7f3f7f3bd3b550049 | refs/heads/master | 2021-01-22T19:31:16.485961 | 2016-11-29T12:14:43 | 2016-11-29T12:14:43 | 40,301,812 | 2 | 1 | null | 2016-11-29T12:14:43 | 2015-08-06T11:41:37 | null | UTF-8 | Python | false | false | 739 | py | import os
def getFileListToArray():
elements = ( os.listdir('fonts/') )
for element in elements:
if element.endswith( '.css' ) or element.endswith( 'Log' ):
elements.remove( element )
elements.sort()
return elements
def writeToFile( fontName, fontFormat ):
CSSFile = open(... | [
"lpsandaruwan@gmail.com"
] | lpsandaruwan@gmail.com |
e3857d5d953a43b0d3e5f393152b820ac12e7d3b | 5d5561589dd5a8c7e0e6fa31a484238cc903d1f7 | /ProgressiveLoader/cetate_img.py | 94bb81034e4dcb9e1bd9e762651673ed5ea4b23b | [] | no_license | peixin/cn2tw | fccda2aa2ed95aae9a038a565f4bc99243e23674 | 6178f9cf1cbdc2de08e9ec575c35735c177b1ae3 | refs/heads/master | 2021-05-29T11:58:18.688251 | 2015-04-17T07:35:11 | 2015-04-17T07:35:11 | 33,116,958 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 586 | py | # coding=utf-8
from PIL import Image
from PIL import ImageFile
from exceptions import IOError
def main():
img = Image.open('2.jpg')
destination = '2_py_progressive.jpeg'
try:
img.save(destination, "JPEG", quality=80, optimize=True, progressive=True)
except IOError, e:
print... | [
"fengyi.mail@gmail.com"
] | fengyi.mail@gmail.com |
fdc2c39b4c6702662ee0e0425034c1cdbe6f6504 | a4dbdd63a6b9693b35d028f1c474afec04a57c77 | /yeonkyung/짝지어 제거하기.py | d392e86a26595e8346a56c2ac0982ee89ecdb156 | [] | no_license | yeonkyungJoo/algorithm_study | 1aead72dad7badb1a7ef52e3fe1eff75feaf578a | f205e5c97202783c246e7dc28f2338da065e9b82 | refs/heads/main | 2023-06-09T03:57:11.055310 | 2021-07-04T01:53:50 | 2021-07-04T01:53:50 | 347,650,540 | 0 | 5 | null | 2021-06-24T21:51:19 | 2021-03-14T13:54:02 | Python | UTF-8 | Python | false | false | 279 | py | def solution(s):
stack = []
for ch in s:
if stack and stack[-1] == ch:
stack.pop()
else:
stack.append(ch)
if stack:
return 0
else:
return 1
if __name__ == "__main__":
s = "cdcd"
print(solution(s)) | [
"younkyong94@gmail.com"
] | younkyong94@gmail.com |
069cfe8f788574fd861f98725e5d9cc0701879d0 | 11395aa469ecd56ea73efaf6f35128f17c42d5f4 | /api/database.py | 538550442a4474bc97bbb19062ccc487d35b6134 | [] | no_license | kottas/http-rest-demo | 4d7f2bd395259f645781e9ff5a3c3cd1f1aa686a | 13fdd391ab69f061767949fef89254754afa59b4 | refs/heads/master | 2023-03-09T06:56:11.050061 | 2021-02-14T21:16:09 | 2021-02-14T21:16:09 | 338,868,090 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,277 | py | from elasticsearch import Elasticsearch, NotFoundError, RequestError, ElasticsearchException
from elasticsearch.client.indices import IndicesClient
from typing import List, Tuple
from .schemas import Document, DocumentIndex, DocumentText, SearchResult
INDEX = "en_documents"
async def document_add(elasticsearch: El... | [
"mkottas@omilia.com"
] | mkottas@omilia.com |
62ccbe5d8ee222ec7df51815f4784d75bac59406 | 284e1e7e79485586e0f347255bba01506fa9b8f3 | /jacobi_fast_prox_nuc_norm.py | e15863d83ba562f83da2e02038d70c5d62f50fd7 | [] | no_license | Harry-MG/jacobi_approx_proximal | 52340bbd57e6177ebcf0245941f22998f8c28462 | df5996f2468405375ea7e550b030de63c1a94896 | refs/heads/main | 2023-05-02T21:12:04.571322 | 2021-05-26T12:26:56 | 2021-05-26T12:26:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,239 | py | import numpy as np
import time
from cyclic_jacobi_sweeps import cyclic_jacobi_sweeps
from cyclic_jacobi_tol import cyclic_jacobi_tol
from prox_l1_norm import prox_l1_norm
def jacobi_fast_prox_nuc_norm(f, grad, max_iter, dimension, step_size, reltol, lambd, tol=None, num_sweeps=None):
if tol is not None and num_sw... | [
"noreply@github.com"
] | Harry-MG.noreply@github.com |
6b00101db5a87305ec976c278a71af8819781aab | ed41ef435122ba229fc5dd1a94d0ec90e049ae31 | /Nathaniel and Selina Plotting.py | 7263b7ab04486dbfae592addf8e8bac5e582e4b2 | [] | no_license | lhaney/Intro-to-Python | 81e632f03a188d14717ce7b5a09b236c58e16604 | 03e929296bdc0d4ab6e14a02badcab3d9580cc2f | refs/heads/master | 2021-04-27T12:18:11.912594 | 2018-04-27T23:33:03 | 2018-04-27T23:33:03 | 122,578,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | '''
Made by Nathaniel and Selina
Writes points in a text file and plots them on a graph
3/22/18
'''
import matplotlib
from matplotlib import pyplot as plt
import numpy as np
#creates a file
filename=open('array.txt','w')
#writes a series of numbers into it
filename.write('3,9'+'\n')
filename.write('12,56'+'\n')
filen... | [
"noreply@github.com"
] | lhaney.noreply@github.com |
0dcb4282491a5b8542b9f778ff9f79a24647d434 | 269f2b3b418083c3c15e84a118d5cb55bc13fc71 | /pythonexercicios/ex037 comversor de bases numericas.py | 88fea769b749da32dfca0669f3dd5839c942eafe | [] | no_license | LindomarB/Curso-em-video-python-git | 0e38d40e091fe64fb590d16779162759f6d402dd | 0d5f7c7eb9eed06b8495ea435f27e6623ea89354 | refs/heads/master | 2022-12-25T04:28:39.580278 | 2018-05-29T14:32:54 | 2018-05-29T14:32:54 | 135,308,766 | 0 | 1 | null | 2022-12-11T19:12:49 | 2018-05-29T14:30:49 | Python | UTF-8 | Python | false | false | 374 | py | #escreva um programa que leia um numero inteiro qualque
#e peça para o usuario escolher qual sera a base de conversao
#1 para binario
#2 para octal
#3 para hexadecimal
n = int(input('digite um numero: '))
r = int(input("""1 = binario
2 = hexadecimal
3 = octal
""" ))
if r == 1:
print(bin(n)[2:])
elif r == 2:
... | [
"Lindomar1802@gmail.com"
] | Lindomar1802@gmail.com |
a95baf7ce1fc8fcf328f10cda2007623bf9c70e5 | 8536fd114a5e3565c7e9958ca668f243eb678f2e | /tl_detection/generate_tfrecord.py | 86100b9d1779b65ae4d8e551e151152ab7a8672f | [
"MIT"
] | permissive | TeamDoernbach/SDCNanodegreeCapstone | e235bb7154d2bef7cf9bd8b0328b22e3d24484d8 | 10bdc59dc1b8f56136bf3f6f4ab64c97082420bb | refs/heads/master | 2020-04-13T23:45:19.297948 | 2019-01-21T20:28:21 | 2019-01-21T20:28:21 | 163,514,891 | 4 | 4 | MIT | 2019-01-21T20:19:27 | 2018-12-29T13:52:26 | Python | UTF-8 | Python | false | false | 3,580 | py | """
Usage:
# From tensorflow/models/
# Create train data:
python generate_tfrecord.py --csv_input=data/train_labels.csv --output_path=train.record
# Create test data:
python generate_tfrecord.py --csv_input=data/test_labels.csv --output_path=test.record
"""
from __future__ import division
from __... | [
"jacobnzw@gmail.com"
] | jacobnzw@gmail.com |
a262d4af2b159ffdb3466c28b7cb4719109837c8 | 11a27fd404adc9a43126017b280ec4e66ce6c8b1 | /calculation.py | c96f995e168d364b97db953b873bfa5b3297f68a | [] | no_license | xm1112/unet-Precipitation-correction | e1f051756e8c05d8b1d346688111e375b69d6d88 | 3da387069619f569cb18f3bfe6ce2c42875208aa | refs/heads/master | 2023-04-15T12:33:55.368401 | 2022-06-01T01:15:58 | 2022-06-01T01:15:58 | 498,146,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,512 | py | """
2021/4/15
Calculate RMSE, CC and re of predicted precipitation and real precipitation
"""
import itertools
import os
import numpy as np
import math
from PIL import Image
import matplotlib.pyplot as plt
np.set_printoptions(threshold=np.inf)
os.chdir("E:/14DL-unet-Regression/run/return/")
##############... | [
"1670613629@qq.com"
] | 1670613629@qq.com |
cd5f45fedd5a29f463733931bc43475a0785a354 | b59f50886181367c35b0ae9a1525a4cc5e6bc930 | /train.py | 3bee12fa13a839bcfd4526d092af99fd1da19bff | [] | no_license | hlfshell/deep_q_network | deaad2129d0b8488e698041a8c3dcc5a2fc9efb5 | 7b23b4b54a5ae1579d3aa4b87974a312bc2f2a2c | refs/heads/main | 2023-03-02T01:48:06.337638 | 2021-02-03T06:03:44 | 2021-02-03T06:03:44 | 328,849,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,654 | py | import torch
from torch import optim
from random import random, sample
import numpy as np
from collections import deque
import pickle
import copy
def train(
# Required inputs
model, environment, loss_function, optimizer_function,
# Standard settings
learning_rate=1e-4, episodes=5000, gamma=0.95, render... | [
"kchester@gmail.com"
] | kchester@gmail.com |
01aba594e0438ffdd0367eefacb37bc81bbda437 | ff91e5f5815b97317f952038e19af5208ef12d84 | /square2.py | 98eb0412527458a11fcc5211790ef83d9f7ee25a | [] | no_license | BryanPachas-lpsr/class-samples | c119c7c1280ca2a86f24230d85f6c712f18d9be8 | a194201dce28299bd522295110814c045927ef5b | refs/heads/master | 2021-01-17T07:03:42.968452 | 2016-06-12T22:35:54 | 2016-06-12T22:35:54 | 48,007,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | #square.py
import turtle
#make out turtle
buzz = turtle.Turtle()
#buzz makes a square
lines = 0
while lines < 4:
buzz.forward(150)
buzz.left(90)
lines = lines + 1
turtle.exitonclick()
| [
"lps@lps-1011PX.(none)"
] | lps@lps-1011PX.(none) |
23603c3747093f0f01f514546c24ce3bad2ff880 | fe6f6d11dde2a3205ae9758c7d4eb1f824b84102 | /venv/lib/python2.7/site-packages/logilab/common/test/unittest_ureports_html.py | c849c4f82d85d7321cc94b30f3be83ecd578cec2 | [
"MIT"
] | permissive | mutaihillary/mycalculator | ebf12a5ac90cb97c268b05606c675d64e7ccf8a6 | 55685dd7c968861f18ae0701129f5af2bc682d67 | refs/heads/master | 2023-01-10T14:56:11.780045 | 2016-09-20T12:30:21 | 2016-09-20T12:30:21 | 68,580,251 | 0 | 0 | MIT | 2022-12-26T20:15:21 | 2016-09-19T07:27:48 | Python | UTF-8 | Python | false | false | 2,918 | py | # copyright 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
#
# This file is part of logilab-common.
#
# logilab-common is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as publ... | [
"mutaihillary@yahoo.com"
] | mutaihillary@yahoo.com |
5915ecc1d4f20c6bcd2de56e75f093ed7e74554e | 485cb787a97caf96537dedc8bcf647dca906d5e3 | /pythonx/test.py | 7138756b901240d3c15c91b373252175d3ed95f6 | [] | no_license | MattWoelk/vim-easymarks2 | d40cfa960c170a33a40055f69e81683c3b0cb2a2 | f6a05d0a009f2636845a20c112afc5402f814325 | refs/heads/master | 2021-01-17T12:47:25.645868 | 2014-02-28T21:44:10 | 2014-02-28T21:44:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,086 | py | import vim
# TODO add more options here TODO make customizable
possible_marks = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
def drr():
marks = get_mark_locations()
old_buf = list(vim.current.buffer)
print(marks)
a_mark = marks['a']
cur_line = vim.current.buffer[a_mark['row'] - 1]
... | [
"matt@mattwoelk.ca"
] | matt@mattwoelk.ca |
f7ecb98c52d86587f015570263ac5a20bdfbe240 | 0567fcd808397a7024b5009cc290de1c414eff06 | /src/1658.minimum-operations-to-reduce-x-to-zero.py | 7f3176eb03955d6bbc0e2d39d5a8afa61e2fd290 | [] | no_license | tientheshy/leetcode-solutions | d3897035a7fd453b9f47647e95f0f92a03bff4f3 | 218a8a97e3926788bb6320dda889bd379083570a | refs/heads/master | 2023-08-23T17:06:52.538337 | 2021-10-03T01:47:50 | 2021-10-03T01:47:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,481 | py | #
# @lc app=leetcode id=1658 lang=python3
#
# [1658] Minimum Operations to Reduce X to Zero
#
# @lc code=start
# TAGS: Greedy, Sliding Window
class Solution:
# LTE. Time and Space O(N^2).
def minOperations(self, nums: List[int], x: int) -> int:
q = [(x, 0, len(nums) - 1)]
visited = {}
... | [
"trung.nang.hoang@gmail.com"
] | trung.nang.hoang@gmail.com |
7c7a476c5669fbb0f5838024df127dccffa90f98 | f115b3351c61c9785b28015813d740a55e36774e | /m2m-relations/articles/migrations/0006_auto_20210912_2105.py | 73e8e189e7b9e46fbc857f0791058ec2e743d66c | [] | no_license | 97wave/dz_ORM.2_4 | dc59b0ea4272bfd6debd161eb173d718f96dbad3 | 0b88a76696d278755d368e0a70d81b89a382dddb | refs/heads/master | 2023-08-06T21:50:50.613856 | 2021-09-22T11:07:01 | 2021-09-22T11:07:01 | 409,170,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | # Generated by Django 3.1.2 on 2021-09-12 18:05
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('articles', '0005_alter_article_tags'),
]
operations = [
migrations.RenameField(
model_name='article',
old_name='tags',
... | [
"e97.wav@gmail.com"
] | e97.wav@gmail.com |
61b401769d07af9b8953298be222d7c0e8eef4b8 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_287/ch6_2020_03_09_20_09_01_051283.py | 43555c7f67b482084ac43022e30452bb1cd602a2 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61 | py | def celsius_para_fahrenheit(C):
F = 9/5*C+32
return F | [
"you@example.com"
] | you@example.com |
1489d378e57780ff3019b198c1954499f4a477e2 | 2dee1b222fcf1bc75efe30679b18c17d0faaa18e | /day19/part1.py | dba8fb487852286125ce76df783cf252c4e3c935 | [] | no_license | bofh69/aoc | 783bd26c400c51aa0407aa39d28d64ee6d13344d | 267c2313cc775f4cd4fd82e6eb4ef386a3a64c48 | refs/heads/master | 2020-11-25T00:29:10.520970 | 2019-12-27T17:24:59 | 2019-12-27T17:24:59 | 228,408,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,409 | py | #!/usr/bin/env python3
import itertools
import sys
prog = [109,424,203,1,21101,11,0,0,1105,1,282,21101,18,0,0,1106,0,259,2102,1,1,221,203,1,21101,0,31,0,1106,0,282,21102,38,1,0,1105,1,259,20101,0,23,2,22101,0,1,3,21101,1,0,1,21101,0,57,0,1105,1,303,2101,0,1,222,20102,1,221,3,21001,221,0,2,21101,0,259,1,21101,80,0,0,1... | [
"sebastian.andersson@lumenradio.com"
] | sebastian.andersson@lumenradio.com |
fc7afe7c321e18b93ea2aaee4b690db7ab2f9a6d | 689d19292c4858f7cd30402d0eaf38405fb21ff5 | /venv/bin/pyrsa-decrypt | 29859a31e55c24b69991089eb158b9b9a467360b | [] | no_license | akhilraj95/CollgeDatabase | 205f8cf9843f70477d11d9ee4a66fbc34c5ae625 | 2d615ed3bdf81b514f1d66d9721ef6cb78f47a08 | refs/heads/master | 2021-01-12T16:41:03.224118 | 2017-02-12T16:20:52 | 2017-02-12T16:20:52 | 71,425,194 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 250 | #!/home/akhil/work/CJ/CollgeDatabase/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from rsa.cli import decrypt
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(decrypt())
| [
"akhil95raj@gmail.com"
] | akhil95raj@gmail.com | |
daac803ef97a17ffd00461cc522a1b737afc3636 | dfaaaedf0c466ccde145873befbb16cf29fee106 | /pyentrypoint/constants.py | 132393f8c8f2c9b94e90b63ee3733eb65974ed2a | [] | no_license | cmehay/pyentrypoint | 8e27c91522f875541aa4be4650f7ab4f2c7b690b | d552129309eeb75c4bb93b7c580bd727ad7beccb | refs/heads/master | 2023-02-20T06:13:19.751500 | 2022-07-24T17:13:21 | 2022-07-24T17:13:21 | 52,220,352 | 15 | 3 | null | 2023-02-08T03:46:34 | 2016-02-21T18:14:38 | Python | UTF-8 | Python | false | false | 44 | py |
ENTRYPOINT_FILE = 'entrypoint-config.yml'
| [
"cmehay@student.42.fr"
] | cmehay@student.42.fr |
68e02bc0b29817b39b36e472da89ec1b87795889 | 9d15ae6577f1cff53a51809a6dd3177c1b4c8f2a | /Size/Geometric_Transform/src/color_interpolation.py | ee9ea9b206dc24d0c8e3e02e9da7184ae4a08ad6 | [] | no_license | LeeChungHyun/Computer-Vision | 89f1b9e48e381e90339cfb3407663347f5fc99b9 | 0ac39478ef4cce5a8065991c8b3b2ead6c7d48e8 | refs/heads/master | 2021-05-21T15:21:07.372918 | 2020-06-22T12:10:22 | 2020-06-22T12:10:22 | 252,695,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | import cv2 as cv
import numpy as np
def color_rect():
g = np.zeros((256,256,3), np.uint8)
for i in range(256):
g[i,:,:] = (0, i, 255-i)
g[i, 255, :] = (255-i,i,i)
for j in range(256):
g[i,j,:] = (1-j/256)*src[i,0,:] + j/256*g[i,255,:]
return g
g = color_rect(... | [
"noreply@github.com"
] | LeeChungHyun.noreply@github.com |
481b8f827a0fecfaff1fbc39d098e6d4f9a3ff51 | a3b90a6c64a13968d01ed18de66c06487378f97f | /flask_project1.0/date.py | 896d2b03908a7768abe4c82c2361d62e4eecfd45 | [] | no_license | RiddMa/SoftwareEngineering2021 | 287ef83c30b351e477dc3e92b9d02201fad555eb | e1ca6e99ac28610bbaa1aa59755595c8fafd7c66 | refs/heads/master | 2023-07-12T22:32:58.202705 | 2021-07-21T15:54:51 | 2021-07-21T15:54:51 | 348,347,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 583 | py | from pytz import utc
from pytz import timezone
from datetime import datetime
cst_tz = timezone('Asia/Shanghai')
utc_tz = timezone('UTC')
now = datetime.now().replace(tzinfo=cst_tz)
#local_dt = cst_tz.localize(now, is_dst=None)
utctime = now.astimezone(utc)
print ("now : %s"%now)
print ("format: %s"%now.strftime('%... | [
"940773417@qq.com"
] | 940773417@qq.com |
6124897fe7745ee9efb97ddf0a74376434848881 | ce6cc66ad9527b32f8bc010b9aff7d44a8a9cc62 | /ffm/singleton.py | f3ffe85f1ae177bd0b8a460fb9eff7c314566fc5 | [] | no_license | wayswang/recommend_sys | 7463ef04b5198178d4f478ef85ccb815b89b5bf3 | 10cb88732a7049197220c48d4fecd11c98e779ba | refs/heads/master | 2023-06-24T23:35:11.998942 | 2021-07-15T08:36:10 | 2021-07-15T08:36:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | # -*- coding: utf-8 -*-
# @Date : 3/2/18
# @Author : zhangchaoyang
class Singleton(type):
def __init__(cls, class_name,base_classes, attr_dict):
cls.__instance = None
super(Singleton, cls).__init__( class_name,base_classes, attr_dict)
def __call__(cls, *args, **kwargs):
if cls.__... | [
"ledi@xinyoudi.com"
] | ledi@xinyoudi.com |
4fddc48a7f0271c0fedfd2bc34e067720cfab81d | 92f0c73936c45d683a2d3b87465840b7b1b9817a | /scripts/rest | 2dce48c36886b3c8f0edf871482f7b0511147132 | [
"MIT"
] | permissive | unixeO/rest-cli | 24b7bb7fd5b549f6d805003ed0ebdad014b5eed4 | b689900f745a2f7456e0aec7d54e77f4af815d2d | refs/heads/master | 2023-03-16T06:25:06.484026 | 2021-01-04T19:21:43 | 2021-01-04T19:21:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | #!/usr/bin/env python
# rest-cli - python REST client
# https://github.com/jfillmore/rest-cli
import sys
from rest_cli.shell import Shell
shell = Shell(sys.argv[1:])
sys.exit(shell.last_rv)
| [
"jonny@spamriot.com"
] | jonny@spamriot.com | |
5c56194f34aae729ad3cf0e25875e5a8ecaf2ec8 | c72710b1712889a096df3253983a8ebf08210bd3 | /PuLink/spiders/incliva.py | 408238d99e4fb7fb52e375560250eaec42cc98c7 | [] | no_license | Angel-RC/PuLink | 74233b365db5c2d5f0b4fa9f0910fd37d199614d | e3a2e3eeffd2728fca2bafadca0c444aac8855b0 | refs/heads/master | 2022-04-20T10:31:23.446094 | 2020-04-17T17:27:19 | 2020-04-17T17:27:19 | 226,748,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,154 | py | import sys
#sys.path.append('C:/Users/Chicote/Desktop/proyectos/PuLink/Pulink')
#from items import PulinkItem
import scrapy
from scrapy.spiders import CrawlSpider, Rule
from scrapy.linkextractors import LinkExtractor
from scrapy.exceptions import CloseSpider
#from PuLink.items import PulinkItem
import datetime
from ... | [
"angel.r.chicote.com"
] | angel.r.chicote.com |
a0d4235c7fc09361cbc96da609fe235b4bbd785b | 772a996b8df470643cb04224d7b869437e8332a7 | /Application/app.py | fc6620a0e8882472cbc260db38b21a59480d3f36 | [] | no_license | aniket312001/Car-Price-Predictor | a562b0c762759f10df74c05a4a5cf9b590438720 | 8e86fd9f5cf06c52a7694e0e0a3ae886350f5e50 | refs/heads/main | 2023-02-09T17:16:22.883562 | 2021-01-02T14:29:21 | 2021-01-02T14:29:21 | 326,198,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,234 | py | from flask import Flask, render_template, request
from flask_cors import CORS
import pandas as pd
import numpy as np
import pickle
app = Flask(__name__)
CORS(app)
model = pickle.load(open('LinearRegressionModel.pkl','rb'))
df = pd.read_csv('Clean_car.csv')
@app.route('/',methods=['POST','GET'])
def hom... | [
"noreply@github.com"
] | aniket312001.noreply@github.com |
6d83bd86d52e7c41b5c8607183656819ac0f9d10 | 120b0b37550c3cebec83a6dbf05e53462c76ab5f | /Oving_2/most_common_player.py | a208c135c9d0e81979ee852a0bdfe7818ab03c34 | [] | no_license | Magnusld/TDT4113_Plab | 72a0175aa6a88ea296361eb672ce1259c0c16d2e | 360045466e543cc6006c24a96df13f01d1f7562a | refs/heads/master | 2023-04-04T09:04:15.616349 | 2021-04-07T09:34:40 | 2021-04-07T09:34:40 | 354,326,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,772 | py | """
This is one of the player classes
"""
from player_interface import PlayerInterface
import random
class MostCommonPlayer(PlayerInterface):
"""
This player looks at what the opponent has picked the most often,
and assumes it will pick it again and then counter that pick
"""
opponents_previous = ... | [
"magnusld@stud.ntnu.no"
] | magnusld@stud.ntnu.no |
070961f5207cfaa07e5c3ac149066c0718aa436f | da13d10e600fe9e31e6d232ccf4f1f9e9a8dd0d9 | /setlist_gen_funcs.py | 3eee988c71af1e422ee6ac5d44f4544c69d77e2c | [] | no_license | dharit-tan/setlist_gen | 5a77fab48f80f3509fc2ff08af5d514106fdd6c1 | 932fffd62e87ac93ad69642762c7bbce269ca161 | refs/heads/master | 2022-05-03T14:28:31.542313 | 2013-12-20T16:31:05 | 2013-12-20T16:31:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,893 | py | # pygame shit
import pygame
import pygame.midi as pymidi
import pygame.key as pykey
import pygame.event as pyevent
import pygame.fastevent as pyfastevent
from pygame.locals import *
# other imports
import socket
import signal
import datetime
import re
HOST = 'localhost'
PORT = 8080
MIX_MIN = 20
MIX_MAX = 106
X_FADE_... | [
"tortorareed@gmail.com"
] | tortorareed@gmail.com |
baa3b7287586e03c59cfa147035055db68506852 | 7ff42d0f1800f6fa80845651c607e1917a6818b1 | /examples/trading_system2/converte_xml_txt.py | 535d2ab94416fabb8bcaa0a596928147afb18e32 | [] | no_license | LCAD-UFES/MAE | cff9a632c2c2bbd8916942c9a514f9306b76d54a | 2ae6664b66091e7919e94582b022dd12b4e5842b | refs/heads/master | 2021-01-10T16:55:44.737700 | 2018-08-02T23:14:27 | 2018-08-02T23:14:27 | 53,516,570 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,570 | py | import sys
import os
from xml.etree.ElementTree import ElementTree
# Cria um dicionario com todos os hora-minutos do dia (das 10:00 aas 16:59). Cada elemento do dicionario contera um preco e um volume.
def init_cotacoes(hora_inicio_pregao, hora_fim_pregao):
cotacoes = {}
# hora inicio pregao (fora do horario ... | [
"filipemtz@gmail.com"
] | filipemtz@gmail.com |
78631f8c427327a030e57ee66b8fe5df5f3beed2 | 2839ece36a5186ae0e7f90af1efa0913f701f066 | /tools/convert_textures.py | 8cd770e3d1d1bdd3ea642dba13d2aaf02443e7b3 | [
"Apache-2.0"
] | permissive | Longi94/rl-loadout | 5d32badffb72d1e16561d31422e470d6e51f735e | 07a248e16c8e5fb615ec4f8018631f3c622ac2a4 | refs/heads/master | 2023-01-08T07:40:42.445982 | 2020-03-14T00:00:37 | 2020-03-14T00:00:37 | 197,087,185 | 18 | 2 | Apache-2.0 | 2023-01-07T08:47:39 | 2019-07-15T23:49:19 | TypeScript | UTF-8 | Python | false | false | 906 | py | import argparse
import os
from PIL import Image
from multiprocessing import Pool
from functools import partial
def convert(file, args):
print(f'Processing {file}...')
image = Image.open(os.path.join(args.dir, file))
image.save(os.path.join('converted', file.replace('.tga', '.png')))
image.thumbnail((... | [
"lngtrn94@gmail.com"
] | lngtrn94@gmail.com |
75edfbac6bf85741f7b0f433d319369072044602 | 2d6855b6940e93c6a77a4b7a16d23ea509cf66e1 | /envdumptests/donothing.py | ab367d6ea74987c0614a91f81cb5284f3b3af111 | [] | no_license | eukaryote/junkdrawer | 7239a01d88159d2728b72e11efcc406ff7b6733a | 696f3e43cffafcc6cf833d26643a97f7b414c7d7 | refs/heads/master | 2020-12-24T17:08:50.021603 | 2016-03-24T03:39:26 | 2016-03-24T03:39:26 | 32,162,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 108 | py | #!/usr/bin/env python
"""
This "null" script takes about 40 milliseconds on my laptop (cpython 2.7.9).
"""
| [
"sapientdust+github@gmail.com"
] | sapientdust+github@gmail.com |
32d8b503fe1035e019f17332a9f9ba9578c65a5c | 94197cf1fd92b55d9ed0fc36772c379f7174d496 | /my_bakery_store/bakery_store/migrations/0005_user_avt.py | 84bd4c3231ed57a4a10465a6a1103001779fa4a0 | [] | no_license | tuyen97/Do_an_cac_cong_nghe_xay_dung_HTTT | 42897e10c304ccef680ac9cf42a862a771edd965 | ccb8739f23d06f8f6b133b9db7efc6b6904d39c4 | refs/heads/master | 2020-04-01T17:01:29.512843 | 2018-12-20T17:31:49 | 2018-12-20T17:31:49 | 153,409,413 | 0 | 0 | null | 2018-11-26T14:57:41 | 2018-10-17T06:53:06 | JavaScript | UTF-8 | Python | false | false | 406 | py | # Generated by Django 2.1.1 on 2018-10-31 09:52
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('bakery_store', '0004_auto_20181031_0920'),
]
operations = [
migrations.AddField(
model_name='user',
name='avt',
... | [
"nguyentrongtuyen15197@gmail.com"
] | nguyentrongtuyen15197@gmail.com |
953960235b1932b88be7cf42442ff1a77defb61a | 9d7bcc1b03de3cf263e5807a81fb4a694f84bf06 | /cLasstd2D.py | 544d3ca8e695e0e05250279926d5d354b5835ec5 | [] | no_license | RiverTate/Chern | 00aac98a0d22fccb0764305703492282c499420c | e6f7b6e826bfc9bfc8a8c1806bba8e82788ee8bc | refs/heads/master | 2021-10-19T23:38:20.174332 | 2019-02-24T17:39:53 | 2019-02-24T17:39:53 | 279,393,140 | 1 | 0 | null | 2020-07-13T19:25:57 | 2020-07-13T19:25:56 | null | UTF-8 | Python | false | false | 8,647 | py | """ Class of infinite two-dimensional lattices.
The module contains hexagonal and square lattices.
"""
import numpy as np
import numpy.linalg as lg
import FL_funcs as fl
########################################
class lattice2D():
""" class of 2D infinite hexagonal lattice in k-representation.
"""
def _... | [
"ahmadi.amin.a@gmail.com"
] | ahmadi.amin.a@gmail.com |
ffcb5dfd61b8ea8406307f4d49316125cb08366c | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/agc006/B/4249708.py | c209881efba18f1680c0d7282393670ecf313f49 | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | N,x = map(int,input().split())
if x in (1, 2 * N - 1):
print('No')
exit()
print('Yes')
if N == 2 and x == 2:
l = [1, 2, 3]
print(*l, sep='\n')
elif x == 2:
l = [4, 1, 2, 3]
rest = list(range(5, 2 * N))
m = len(rest) // 2
l = rest[:m] + l + rest[m:]
print(*l, sep='\n')
e... | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
8743633783fdae100a42fa40825da1188212e3aa | bad9d9b5bfbc7c20a3daa73fea4273b333c778f1 | /fileio_utils.py | 5cd2fa4f011ea77d5127e1f6f6f39badf1d7fdfa | [] | no_license | cmilke/vbf4b_coupling_scan_tools | acb9fef5e5c7ab51e6e87b8be4bf922cf7bdb0bc | c672525a880377fe44a9d50deea25febcb2bca73 | refs/heads/master | 2023-07-14T10:28:49.163247 | 2021-08-31T15:03:08 | 2021-08-31T15:03:08 | 319,711,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,438 | py | import math
import numpy
import uproot
import inspect
Primary_coupling_file = 'basis_files/nnt_coupling_file_2021May_crypto.dat'
def retrieve_lhe_weights(ttree, kinematic_variable, bin_edges, stat_limit=None):
if stat_limit == None:
event_weights = numpy.array(ttree['weight'].array())
event_kinem... | [
"chrisdmilke@gmail.com"
] | chrisdmilke@gmail.com |
63ce31723463f996d20c3df361f6e287eeb675f4 | 208b6665723e6afe32af8a4b7e827a92d028db1b | /Ecom/ecommerce/products/models.py | da0f80abc5c02ebb1928916a32c2fee377fcfa92 | [] | no_license | gautamp114/django | 3ce699473a5b9889317165298754ce06c3a5b4c8 | 5338d36e52c0835fbf502c1e3d283bb713dcb0a0 | refs/heads/main | 2023-02-09T20:15:55.281301 | 2021-01-07T07:03:59 | 2021-01-07T07:03:59 | 327,529,808 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,467 | py | from django.db import models
# Create your models here.
class Product(models.Model):
title = models.CharField(max_length=120)
description = models.TextField(null=True, blank= True)
price = models.DecimalField(decimal_places=2,max_digits=20,default=30.00)
sales_price = models.DecimalField(decimal_places=2,max_digit... | [
"gautamp114@gmail.com"
] | gautamp114@gmail.com |
da48c55d538e85eeafb8462ffa66006f0769a785 | 11c89364bf014d4d75a10572344b4905eea3a6b5 | /pyth.py | d9aba7a5049cc2ff095fe32291a3b5f4cf7ae92a | [] | no_license | wwalid18/pythontraining | aa4eba85dc706489a3ec7c91b4957c9c33321456 | 4bc5b05fc460680810cfda234b6bfbc34965d1f7 | refs/heads/master | 2020-11-24T21:55:35.965931 | 2019-12-16T11:09:00 | 2019-12-16T11:09:00 | 228,356,557 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39 | py | print('hello world')
print('bye world') | [
"agar.io.annonyms@gmail.com"
] | agar.io.annonyms@gmail.com |
5b0f51065868fd2232224cfb6f02ad122dca650b | cc5867196b2309fbfa5ba5f2beb935c512f26a54 | /Orchestonks/test.py | a3257eb8a70dd5ff4baaeea8571d9fa8eb711120 | [
"MIT"
] | permissive | joy13975/Orchestonks | 056544b8376f71a6139a2e618941100628d4b778 | 8b61ce87d0c5ad442a47edb1db2c10893fba5bab | refs/heads/main | 2023-02-09T01:25:40.971761 | 2021-01-04T13:38:52 | 2021-01-04T13:38:52 | 326,351,738 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,480 | py | import sys
import csv
from time import sleep
from datetime import datetime
import numpy as np
from notes import note_to_freq
from tone_player import TonePlayer
def main(file=''):
assert file
with open(file, 'r') as f:
data = list(csv.reader(f, delimiter=','))
with TonePlayer() as tp:
mat ... | [
"joyyeh.tw@gmail.com"
] | joyyeh.tw@gmail.com |
4be4119618f24eb4a854b957e68ff64726717d61 | c27a95964b2740e1ec681b7068f52fb573d90321 | /aliyun-python-sdk-cms/aliyunsdkcms/request/v20180308/QueryMetricListRequest.py | 56216712133c7d35673a04cf20349e748613f843 | [
"Apache-2.0"
] | permissive | mysshget/aliyun-openapi-python-sdk | 5cf0a0277cce9823966e93b875c23231d8b32c8a | 333cdd97c894fea6570983e97d2f6236841bc7d3 | refs/heads/master | 2020-03-17T23:07:02.942583 | 2018-05-17T09:50:53 | 2018-05-17T09:50:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,912 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"haowei.yao@alibaba-inc.com"
] | haowei.yao@alibaba-inc.com |
f48caaa4b5e38cd8d72a7c91e8ec01b32b5c33ae | c67a9c594112bc8bae81e9ab281630527cc6330d | /sync_modbus_tcp.py | 282fe696b994f796cec7d0bb287101d2974b5da1 | [] | no_license | BhavyanshM/SCADA | 79f54a24607ef857bcf1c8178e5aab7824c6cde3 | 6fc5a644b60bbf20be9d1ec6080d7e13f116c8cb | refs/heads/master | 2020-04-12T01:51:03.055460 | 2019-05-10T14:59:38 | 2019-05-10T14:59:38 | 162,229,891 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | from pymodbus.client.sync import ModbusTcpClient
import time
UNIT = 0x00
client = ModbusTcpClient('192.168.0.40')
#client.write_coil(1, True)
f = open("log.txt", 'a')
f.write("\n----------------------------------------------------------------------\n\n"+time.ctime()+"\n\n")
while True:
rr = client.read_holding_reg... | [
"bhavyanshmishra@gmail.com"
] | bhavyanshmishra@gmail.com |
92b81222bf64312ec2fe4cdf6f97ddd2e6f49d7d | ffb56a671654cb9e2193135c9d8d2b32f5b5bef3 | /blog/views.py | 9c545ba4a009ec8fe69577bbf1c99819b1ae7a4f | [] | no_license | Saltyn1/block_molchanov | cf1bf0fd4c6190e4c82f128da6e1aea08cf28f7e | ddb07450f69593189d57adcc05a0e5d827fd23de | refs/heads/master | 2023-05-28T17:00:56.034223 | 2021-06-11T08:49:23 | 2021-06-11T08:49:23 | 375,961,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,671 | py | from django.views import generic
from django.shortcuts import render, redirect
from django.shortcuts import get_object_or_404
from django.views.generic import View, CreateView
from .forms import TagForm, PostForm
from .models import Post, Tag
from .utils import ObjectDetailMixin
# Create your views here:
def posts_li... | [
"saltanat.mambetisaeva@gmail.com"
] | saltanat.mambetisaeva@gmail.com |
021e4be28d20fb9b8e7a62b502f7cba74dea51df | 6bf5db308a2ced233b095c955822ed0c5aba44e9 | /mcs435_(nonlinear_optimization)/Assignment_1/venv/bin/pip | 5c63b385f6926b13027fcf15157ebda99d85fe89 | [] | no_license | AlecHarb/school_projects | 756e2f7f5a7435d9180975069c14391e80347fcc | d0c57fe34a3de0f558475da9f567511a17fdc70f | refs/heads/main | 2023-03-09T10:53:15.099530 | 2021-02-28T08:35:52 | 2021-02-28T08:35:52 | 342,484,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | #!/Users/harberbarber/Python/MCS435/Assignment_1/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0... | [
""
] | ||
1e9ed7185ff402c3b678869fee7e4b503fb7d6bd | e75c5288579e5866f9618dbcd29d0485b1bddbee | /account/forms.py | 3510e0152fb404abfeabdc838eb9bc3d36d85452 | [] | no_license | hkhitesh25/Learnan | 2ae2e0690a1eacfe4d25511c0b7a789553b60516 | a8d79141786fdd5aeb66f9127283d128ce43db02 | refs/heads/master | 2021-07-09T14:36:57.983818 | 2017-07-31T15:59:52 | 2017-07-31T15:59:52 | 98,341,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | from django.contrib.auth.models import User
from django import forms
from .models import Profile
class UserRegistrationForm(forms.ModelForm):
password = forms.CharField(label='Password',
widget=forms.PasswordInput)
password2 = forms.CharField(label='Password Again',
widget=forms.P... | [
"hkhitesh25@gmail.com"
] | hkhitesh25@gmail.com |
254565bcaaa357e4dd2fd04c39baf24bc29f0943 | caef77c22623f8cb660f614282a5ada03223ae8c | /copyScript.py | 013bc275e19244992993a5e01ff85c4a8a624500 | [] | no_license | dimioan/administration_pyscripts | 45440960398127783dba4c8aee2739c1f654bae0 | 09f4a9b91ee3543d9147f348b8320f58b197d983 | refs/heads/master | 2021-01-13T00:15:21.547921 | 2016-01-01T12:03:46 | 2016-01-01T12:03:46 | 48,877,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 945 | py | # the destination folder must not already exist!!!
import shutil
import time
import sys
def copy_directories(source, destination):
shutil.copytree(source, destination)
toolbar_width = 50
# setup toolbar
sys.stdout.write("[%s]" % (" " * toolbar_width))
sys.stdout.flush()
sys.stdout.write("\b" *... | [
"bluesdio@googlemail.com"
] | bluesdio@googlemail.com |
5b3a2e285dac25d8fbaf09b7b6ce6bb8623be7d1 | 6b9084d234c87d7597f97ec95808e13f599bf9a1 | /training/old/detr/eval_step.py | 14c769d423b9428725a45145e5fecae4336afb35 | [] | no_license | LitingLin/ubiquitous-happiness | 4b46234ce0cb29c4d27b00ec5a60d3eeb52c26fc | aae2d764e136ca4a36c054212b361dd7e8b22cba | refs/heads/main | 2023-07-13T19:51:32.227633 | 2021-08-03T16:02:03 | 2021-08-03T16:02:03 | 316,664,903 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,953 | py | import torch
import Utils.detr_misc as utils
from evaluation.evaluator.coco import CocoEvaluator
@torch.no_grad()
def evaluate(model, criterion, postprocessors, data_loader, base_ds, device, output_dir):
model.eval()
criterion.eval()
metric_logger = utils.MetricLogger(delimiter=" ")
metric_logger.ad... | [
"linliting06@live.com"
] | linliting06@live.com |
4ff7317dbd5aec4a5122628aade19c6d7efe7ce4 | 13e3212fe80ab14cf27164045f8d311c2ee52c29 | /Shop/migrations/0002_auto_20210527_0745.py | 2e3fd111af36715bdd86c3abbc83592f6147a8d4 | [] | no_license | prantacse4/MobileBazar | c209915240017a9bd4e07485bf6595eb0ecfbda1 | a69a42b1658532592b19944fd6f25bfb615644c3 | refs/heads/master | 2023-05-14T08:46:50.641283 | 2021-06-03T11:34:04 | 2021-06-03T11:34:04 | 369,074,938 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,558 | py | # Generated by Django 3.1.6 on 2021-05-27 01:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Shop', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Slider',
fields=[
('id', mode... | [
"pranta.cse4.bu@gmail.com"
] | pranta.cse4.bu@gmail.com |
0bdb1aa44a3b4517aeed1e73574cbdff67c94608 | 22a42be59ba2c59e7bb92ee73e6ec5871d70b5cc | /manage.py | d4cb6e7b945178e15f34a6d93876b6eda9f36349 | [] | no_license | devimalka/djangoupload | 7d5d44ca59260af372ba81666b4e84aa66c56483 | 3f25a45afe7dec676b7b4acf807ce433585ce7a3 | refs/heads/master | 2023-08-22T10:34:07.327978 | 2021-10-11T14:17:50 | 2021-10-11T14:17:50 | 415,957,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'sinhaladev.settings')
try:
from django.core.management import execute_from_command_line
except I... | [
"developerimalka@gmail.com"
] | developerimalka@gmail.com |
06374019a4e5f98b7b8f52c6806f9f9824ff284d | 0fb06326f2d17f054699a9943e124704cd824162 | /Project 1 - Air Quality Index/Final_dataset_generator.py | 03cd353808ff2f1f3cf71c49924a6f8017beb777 | [] | no_license | AvAkanksh/Data-Science-Projects | 9cc75e4ad509e33a51c2640ae7dead7c4b6619dc | b16177cca4d1bfcd3ed9057d3dbc6bf24043db61 | refs/heads/main | 2023-05-06T06:24:06.179480 | 2021-05-30T09:30:28 | 2021-05-30T09:30:28 | 370,443,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,990 | py | from Plot_AQI import avg_data_2013,avg_data_2014,avg_data_2015,avg_data_2016
import requests
import sys
import pandas as pd
from bs4 import BeautifulSoup
import os
import csv
def met_data(month, year):
file_html = open('Data/Html_data/{}/{}.html'.format(year,month), 'rb')
plain_text = file_html.read()
... | [
"akanksh@localhost.localdomain"
] | akanksh@localhost.localdomain |
3a8c2a36ba70b28a542910c484faf84b6338657e | 2196d3798497fc7d3d80cd02b008dbb35dbd64d8 | /d01/ex03/capital_city.py | 43c2172c50975816070fc588eec89b5d5b1f9cc8 | [] | no_license | avallete/Python-Django-Pool | d59965e1c6315520da54205848d4f59bf05a9928 | cee52fe4b30cbc53135caf89a8a8843842e2daeb | refs/heads/master | 2021-03-30T06:36:37.546122 | 2016-10-13T15:08:40 | 2016-10-13T15:08:40 | 69,851,733 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | # -*- coding: utf-8 -*-
import sys
def run(state):
states = {
"Oregon" : "OR",
"Alabama" : "AL",
"New Jersey": "NJ",
"Colorado" : "CO"
}
capital_cities = {
"OR": "Salem",
"AL": "Montgomery",
"NJ": "Trenton",
"CO": "Denver"
}
if s... | [
"avallete@student.42.fr"
] | avallete@student.42.fr |
5337ceda808da03a25bf931d536938d1881c73a9 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/paloaltonetworks/azure-mgmt-paloaltonetworksngfw/azure/mgmt/paloaltonetworksngfw/aio/operations/_firewalls_operations.py | 8cc8d9e5ce7f000a913bdbed272f44375a317198 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 50,367 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | Azure.noreply@github.com |
4fee8226361947afb1ef025ada908dc3ad5f97a7 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2526/48083/309473.py | a8d534b2af549d2506c477c229047c81420f23b7 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,340 | py | from typing import List
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def getAllElements(self, root1: TreeNode, root2: TreeNode) -> List[int]:
res = []
def inOrder(root):
if root:
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
7629cbace4c46b36ec498427fe9085047beb7f67 | 9f27ac0e633f1a75a193932eff91c56943deda58 | /Week2/Day2/ParenthesisMatching.py | 15884b572ac4e17b281539268417f6a1dccda3b5 | [] | no_license | afrinh/CompetitiveProgramming | c5a1b8c617dbd8f3bddb1323c4291d419c7bdc8f | 2df8e25698e5ecd54c874e669f2ad0eb00c5513c | refs/heads/master | 2020-03-22T00:01:28.737847 | 2018-07-21T09:28:22 | 2018-07-21T09:28:22 | 139,219,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,047 | py | import unittest
def get_closing_paren(sentence, opening_paren_index):
open_nested_parens = 0
position = opening_paren_index + 1
for position in range(opening_paren_index + 1, len(sentence)):
char = sentence[position]
if char == '(':
open_nested_parens += 1
elif char =... | [
"noreply@github.com"
] | afrinh.noreply@github.com |
6fb6e1524af5bc5732e4bc123217c972f05010a3 | cf9b83d667433a5f912f8981357483197624983d | /editors/content/admin.py | 75694e4aaca1e16700897e8f2668a55b4381efb9 | [
"Apache-2.0"
] | permissive | LeaseMagnetsTeam/editors.art | 08d13e58a17c9930efe78f99d4dc4e25898612f3 | 778ca76439da798f3b7ffbac5b83f3e85b4f4fca | refs/heads/main | 2023-06-26T17:17:52.336540 | 2021-07-26T00:09:30 | 2021-07-26T00:09:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | from django.contrib import admin
from editors.content.models import Edit
admin.site.register(Edit)
| [
"acwangpython@gmail.com"
] | acwangpython@gmail.com |
5998c8bd953812e35fce547ed6dfa101b44f1a4a | 577b733677369f9f02f0c13b0a94171bd633f7c7 | /controllerCode/js_linux.py | 78936b415080c9f2ebd25e9c07f4dc5c61aa6e8c | [] | no_license | hernandez-jesus/Harvard-REU-2017 | 41cdff6fd8357e2b34a0ef5350ff0b2ef3862211 | e32138f3e5a50a3f02b9dd80cba7f86abce9c9c6 | refs/heads/master | 2021-06-23T14:50:11.428818 | 2017-08-16T00:20:25 | 2017-08-16T00:20:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,822 | py | # Released by rdb under the Unlicense (unlicense.org)
# Based on information from:
# https://www.kernel.org/doc/Documentation/input/joystick-api.txt
import os, struct, array
import fcntl
from fcntl import ioctl
# Iterate over the joystick devices.
print('Available devices:')
for fn in os.listdir('/dev/input'):
i... | [
"noreply@github.com"
] | hernandez-jesus.noreply@github.com |
bac3c30d02721d958e23136003c622e9b7874698 | f2e0992e94fa31b640d97f50c576bd360bb323e0 | /portfolio/migrations/0001_initial.py | 1ee3bb0f226b35248c57c7af90444f588b3e5dd4 | [] | no_license | mpmckinley/personal_portfolio-project | 01917d8582144a3a7a40766572db5f24c72a62f3 | 25782c8c8c68ab6a7738e18c889d1b6c438ad97c | refs/heads/master | 2023-01-30T12:52:06.044032 | 2020-12-17T14:37:09 | 2020-12-17T14:37:09 | 322,165,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | # Generated by Django 3.1.4 on 2020-12-15 23:11
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Project',
fields=[
('id', models.AutoField(... | [
"mikepmckinley@gmail.com"
] | mikepmckinley@gmail.com |
cac6a3f45b7111acbedec61c19bcf6ec0f01d43d | 128c1bd8ce38d5c7bfee1f1d3fb1fec0738b3dfc | /venv/bin/wheel | ce977b896c7ae45b2814de6a86fdba70c69cb8d9 | [] | no_license | ajitesh-30/Blog | 58b8b6a520fab32643efaae01c48d5388195a69c | 460f48e2e7d1316855d94644db2ad9d01820af9a | refs/heads/master | 2021-05-08T16:23:32.949050 | 2018-12-12T19:45:48 | 2018-12-12T19:45:48 | 120,154,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | #!/home/rattlesnake/Project/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from wheel.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ajiteshs10@gmail.com"
] | ajiteshs10@gmail.com | |
80bb26a67114fdec2929e2a536de88f8e380d363 | 09b2adcf32f445c2a5dcd3f68cfe7b33b62427b6 | /Sujets/Brut/DFT_003_HM/HM_003.py | 8d6d01b28bfd80ecdc5418d42db3d1c9d793f533 | [] | no_license | aboutelier/ICM_APATHY_TASKS | 5be93afcf43ccf362cd6cb83bac8aac5d9db96ce | f6b732c55656a71f447126415084ca911168dcc7 | refs/heads/master | 2020-04-19T10:33:16.761807 | 2019-02-25T10:19:09 | 2019-02-25T10:19:09 | 168,143,815 | 0 | 0 | null | 2019-01-29T17:08:33 | 2019-01-29T11:31:12 | Python | UTF-8 | Python | false | false | 82,800 | py | Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:01:18) [MSC v.1900 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>>
RESTART: C:\Users\ECOCAPTURE\Desktop\ECOCAPTURE\ICM_APATHY_TASKS\ICM_APATHY_TASKS m faible-p forte.py
Nom sujet :HM_003
TACHE VERBALE FACILE FAIBLE GAIN
... | [
"47143028+aboutelier@users.noreply.github.com"
] | 47143028+aboutelier@users.noreply.github.com |
765b302c85fb439d74794e48f3d108dc132fd8f9 | 41f185a4560b24351897ce19e4d4a71fc229c312 | /aap_whatsapp/cron/whatsapp.py | 93f42f045a5d9bf50ad38817e0abb48e10ba0d98 | [] | no_license | stark3998/Whatsapp-Scraper | 46fbbbb54946f367124702722d9b14c013f31243 | b7e23a15117381de499fe9622854e6f2a5cf8a20 | refs/heads/master | 2020-09-11T22:40:24.753785 | 2019-11-17T07:56:36 | 2019-11-17T07:56:36 | 222,214,172 | 0 | 0 | null | 2019-11-17T08:02:08 | 2019-11-17T07:43:44 | HTML | UTF-8 | Python | false | false | 9,178 | py | # -*- coding: utf-8 -*-
import time
import json
from datetime import datetime, timezone
from aap_whatsapp import db
from flask_script import Command
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support impo... | [
"jatin.madan39@gmail.com"
] | jatin.madan39@gmail.com |
b4a013a5db1bce9ba186a85069333e15577e431f | 438895f04e0032b3f18c3450444b1517c301d8b1 | /RTT/200server.py | fed53005cae66f686e69d5f4eac37fafa905e618 | [] | no_license | iamryanmoreno/ClientServer | 3aed1e9d4bff7609d25febb6b3729fee04f60e42 | 9ce292de9f2848dca7097091cb3fc1a8dc397577 | refs/heads/master | 2020-05-20T19:45:32.732898 | 2017-03-10T03:16:58 | 2017-03-10T03:16:58 | 84,514,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,921 | py | import socket
import sys
import datetime
import time
now = datetime.datetime.now()
print str(now)
# Create a TCP/IP socket
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
# Bind the socket to the port
server_address = ('localhost', 10000)
print >>sys.stderr, 'starting up on %s port %s' % serv... | [
"noreply@github.com"
] | iamryanmoreno.noreply@github.com |
404b57be933409cdc797a676f865e78c845133f9 | bf1c7016681b5b7c6569a5f20d037e9c5db37854 | /VI_semester/mobile_robots/point.py | 4141470fd0bdca014339714df82312b8f323ed3a | [
"Beerware"
] | permissive | dainiusjocas/labs | ae62d4672f4c43d27b4e9d23e126fa9fb9cf58a9 | 25aa0ae2032681dbaf0afd83f3d80bedddea6407 | refs/heads/master | 2021-01-23T23:03:10.271749 | 2011-12-13T15:38:48 | 2011-12-13T15:38:48 | 6,511,648 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | #!/usr/bin/env python
class Point:
''' Class that represents a point in a map '''
def __init__(self, x = 0, y = 0):
self.x = x
self.y = y
def values(self):
return [self.x, self.y]
def __repr__(self):
return "({0}, {1})".format(self.x, self.y)
def __eq__(self, othe... | [
"hanniph@gmail.com"
] | hanniph@gmail.com |
beb51d68a2bfda9d9043f37aca7dfab32345ec5d | 0c66e605e6e4129b09ea14dbb6aa353d18aaa027 | /diventi/blog/migrations/0011_auto_20200502_1924.py | cafdf11a5790066124e2ac11c41e6c0b8e07572d | [
"Apache-2.0"
] | permissive | flavoi/diventi | 58fbc8c947f387cbcc1ce607878a59a6f2b72313 | c0b1efe2baa3ff816d6ee9a8e86623f297973ded | refs/heads/master | 2023-07-20T09:32:35.897661 | 2023-07-11T19:44:26 | 2023-07-11T19:44:26 | 102,959,477 | 2 | 1 | Apache-2.0 | 2023-02-08T01:03:17 | 2017-09-09T14:10:51 | Python | UTF-8 | Python | false | false | 612 | py | # Generated by Django 2.2.12 on 2020-05-02 17:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0010_auto_20200229_1600'),
]
operations = [
migrations.AlterField(
model_name='blogcover',
name='color',
... | [
"flavius476@gmail.com"
] | flavius476@gmail.com |
5802c971baf6a88738677a1750fa3adc94a4f74b | 9ac6dad591f8c1dd512e2b1710f455f19f1ea3d3 | /4.5_import_exercises.py | 0f89e5b1ae3dfbf11744b9a6ca37cf99d2e84330 | [] | no_license | Padraic-Doran/python-exercises | d789b500938f6ca0dee33ab1786897839fb9ea66 | fec5cd3109d899b05214c95603cad21d3630ec2f | refs/heads/master | 2020-07-23T15:14:05.964961 | 2019-09-30T21:10:17 | 2019-09-30T21:10:17 | 207,604,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,527 | py | # from CU_function_exercises import remove_vowels
# remove_vowels('RGJJweapr')
# import CU_function_exercises as cfe
# from CU_function_exercises import remove_vowels as rv
# print(rv('wfjnqergpvpoqweoaf'))
How many different ways can you combine the letters from "abc" with the numbers 1, 2, and 3?
# import ite... | [
"padraic.doran@gmail.com"
] | padraic.doran@gmail.com |
2c8b29f4777567834b9d0affa686caba95f48ef3 | d1c29c9f06d56644ca2fb11fcff8c25703aced79 | /MMCG/make_plots.py | 891af441059f2c0d34f6177672eb9d172bde2fe6 | [] | no_license | jjhelmus/arm_vap_scripts | 4a3d7bbe9e277972312484fe46a35c92dae1c71c | 1d49d0e2f8affea11aabc000f74d8d1c4be75ef5 | refs/heads/master | 2021-01-22T05:24:35.935447 | 2013-04-12T14:38:31 | 2013-04-12T14:38:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 861 | py | #!/usr/bin/env python
import matplotlib.pyplot as plt
import netCDF4
import pyart
# MMCG figure
dataset = netCDF4.Dataset('sgpcsaprmmcgi7.c0.20110520.110100.nc')
refl = dataset.variables['reflectivity_horizontal']
fig = plt.figure()
ax = fig.add_subplot(111)
ax.imshow(refl[0,4], origin='lower')
fig.savefig('mapped_fi... | [
"jjhelmus@gmail.com"
] | jjhelmus@gmail.com |
404e2885ea8d3af435aa70e108f7ee3875cdd93b | d1b842eb17900c2bbfc2238cb29dbf290444152e | /keras/ner/mlp.py | 72003606acf8e1b605edda65b7c1961539e09cc7 | [] | no_license | cambridgeltl/RepEval-2016 | 6d07f2819439096b280cda171038f38e375a1e74 | c52e29312c634df03602bc0d0f2ae0f40a33ca23 | refs/heads/master | 2020-12-25T15:09:14.054893 | 2016-11-11T21:10:18 | 2016-11-11T21:10:18 | 61,438,829 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,672 | py | #!/usr/bin/env python
import sys
import numpy as np
from os import path
from logging import info, warn
from keras.models import Sequential
from keras.layers import Reshape, Dense, Activation
from keras.layers import Merge, Flatten
from keras import optimizers
from layers import Input, FixedEmbedding
import input_da... | [
"billy1985322@gmail.com"
] | billy1985322@gmail.com |
7d22825383aee94201b5b6c2910f536798d1719e | 56550a643bf655ffe5499f4b6ee9db07dae77c40 | /mldl/11.py | 27c22a2edc70bf4d81a5eeb2678da3c6d94f34e3 | [] | no_license | DongJoonLeeDJ/djjsp | 06633d0a7b2d7d72449c253e265b18e3042bec72 | 87de397934748cfaa3898b56b5392c9cc63a12b0 | refs/heads/main | 2023-08-14T04:25:50.524691 | 2021-10-08T01:08:52 | 2021-10-08T01:08:52 | 397,157,486 | 4 | 7 | null | null | null | null | UTF-8 | Python | false | false | 39 | py | # print(rfclf.predict([[9.4,1.6,3.3]])) | [
"ldjgood12@gmail.com"
] | ldjgood12@gmail.com |
af426f37de5914387a99e20ec2eba4baf60691aa | 15905cfe5ccfbc740ee71b890297aac9139dae18 | /computer/urls.py | 91df3c3518b003805ae627294a2817fdbc943f3a | [] | no_license | Yura1224/djangolesson2practise | 82a962986601c0f27c771ea1ed11cd88c46df014 | 23855fc048b241eb1444b2006507a88cd619f6e1 | refs/heads/master | 2023-08-04T12:53:36.339126 | 2021-09-21T11:46:43 | 2021-09-21T11:46:43 | 408,798,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | from django.urls import path
from .views import ComputerListCreateView, ComputerRetrieveUpdateDeleteView
urlpatterns = [
path('', ComputerListCreateView.as_view(), name='computer_list_create'),
path('/<int:pk>', ComputerRetrieveUpdateDeleteView.as_view(), name='car_retrieve_update_delete')
]
# http:localhost:... | [
"yuramoskva28@gmail.com"
] | yuramoskva28@gmail.com |
2c5ec191020dbe6eb0ff6d138d3c4adf6ca3187e | b3c1c93247e83c212f40dd271e15ba296f22be56 | /linearregression.py | b11fa874f740dcd15c90a494003bb2197f8e1945 | [] | no_license | campbellbg/mypythonlearning | dda78f585668dc087443e3312ff02e921686297a | 656725b6ceafbf6408d1308c81cbe430c9f8e123 | refs/heads/master | 2020-03-27T18:51:50.670832 | 2019-05-27T12:19:49 | 2019-05-27T12:19:49 | 146,949,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,697 | py |
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sb
from sklearn.linear_model import LinearRegression
from sklearn.model_selection import train_test_split
from sklearn import metrics
#This config fixes the truncated console writes. Makes things a lot easier
pd.set_option('disp... | [
"campbell.bg@gmail.com"
] | campbell.bg@gmail.com |
0396eb254b1de5fa42497fb6a7b869393ca51085 | 29c58b3bec6ac0fcdb3070efc118600ee92004da | /test/test_unread_count.py | 42aeede4b08156288cd84090b1b6d8c211d1374e | [
"MIT"
] | permissive | mailslurp/mailslurp-client-python | a2b5a0545206714bd4462ae517f242852b52aaf9 | 5c9a7cfdd5ea8bf671928023e7263847353d92c4 | refs/heads/master | 2023-06-23T00:41:36.257212 | 2023-06-14T10:10:14 | 2023-06-14T10:10:14 | 204,662,133 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,807 | py | # coding: utf-8
"""
MailSlurp API
MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://ww... | [
"contact@mailslurp.dev"
] | contact@mailslurp.dev |
a893b8bc1eb62b75bdbe515d99cf5df8147152ae | 7985897a15d89d18597a5cc73fcb5a5bfb81fbff | /powerdnsadmin/models/account_user.py | 81bb43abc78abe866311e9bc5d6cdbc795c24b21 | [
"MIT"
] | permissive | Atisom/PowerDNS-Admin | 5623e93fde89ccfde1ccc19e52732a3e783a1e3b | 1d31b7bf818425c8e2b81008ab14704d16caf2a6 | refs/heads/master | 2021-04-24T00:17:47.919494 | 2020-11-27T14:43:46 | 2020-11-27T14:43:46 | 250,041,982 | 2 | 0 | MIT | 2020-03-25T17:11:53 | 2020-03-25T17:11:52 | null | UTF-8 | Python | false | false | 569 | py | from .base import db
class AccountUser(db.Model):
__tablename__ = 'account_user'
id = db.Column(db.Integer, primary_key=True)
account_id = db.Column(db.Integer,
db.ForeignKey('account.id'),
nullable=False)
user_id = db.Column(db.Integer, db.Foreign... | [
"k@ndk.name"
] | k@ndk.name |
5f16b6848d8b04d6ee0612be889a4e855a2b016d | 87c5fcc4b167a3c09bfc96787e8f3e44216ccf51 | /TextboxTurtle.py | ed42ae5544a76166fa29a4f399c17f23c18281c5 | [] | no_license | debojit666/Python-PracticeFiles | 6c7e7d8e6031985e5484bbdf90b3bf85c2d2af40 | a90d2102b9f9fa217853215a8605b4909c41ce0b | refs/heads/master | 2020-06-30T16:10:50.168861 | 2019-10-03T19:09:33 | 2019-10-03T19:09:33 | 200,880,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | import turtle
name = turtle.textinput("name", "What is your name?")
name = name.lower()
if name.startswith("mr"):
print("Hello Sir, How are you?")
elif name.startswith("mrs") or name.startswith("miss") or name.startswith("ms"):
print("Hello Madam, How are you?")
else:
name = name.capitalize()
str = "H... | [
"debojit666@gmail.com"
] | debojit666@gmail.com |
800d097e7641deb96cee13bca8df9f1242e5f9cb | f214ad554e5c227724be6358bd896ed41a0ae866 | /dakota/template_dir/model_command_line_driver3.py | 7667ea0fc2c3fe27fcad19943d07dbe7bfc44e1a | [] | no_license | SiccarPoint/how_wrong_is_the_code | f42584fedf6fbea1c37564994b289ed3a07130ae | 7533b679418d9d9abe78f8c7c73484952acb4641 | refs/heads/master | 2021-05-20T22:03:41.442612 | 2020-07-02T16:00:22 | 2020-07-02T16:00:22 | 252,392,215 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,594 | py | import sys
import os
import numpy as np
from subprocess import call
from yaml import safe_load
from bug_model.simulate_bug_decay import run_with_exponential_num_bugs_floats_in
from bug_model.simulate_bug_decay import DATA_DIR
from bug_model.driver import create_bins
BINNING_SCALE = 20
LOW_COMMITS = 10
REPEATS = 3
# T... | [
"dan.hobley@gmail.com"
] | dan.hobley@gmail.com |
c3a4c828b1b352960cd0ad0b3544c00b0b4a1a0b | f4bca02f5d447c13056767bd1723aaf6af25e7b9 | /attendance/admin.py | db800eb82e231860cbd1ac92552f9a08a96ad836 | [] | no_license | ainc/student-progress | f9ae72f99f741227306dfbf04f2a54498dcebfef | 9959d390822613cd7e3d314e92a7579de91af7a5 | refs/heads/master | 2021-01-21T13:56:35.060947 | 2016-07-19T17:44:42 | 2016-07-19T17:44:42 | 46,016,575 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | from django.contrib import admin
from .models import Coach, Student, Class, ClassSession, AttendanceRecord, Enrollment, StudentGuardian, StudentProfile, CoachNote, StudentGoal, Skill, Subskill, StudentProgress, Relationship, Team, TeamMember, PassPhrase
# Register your models here.
admin.site.register(Coach)
admin.s... | [
"Peter.Kaminski09@gmail.com"
] | Peter.Kaminski09@gmail.com |
509b760ca822fb225e313cddf49de04c4015a78a | 1ab5bc2e1b7a48ef1fd0f3d89618ce7ad55c15a5 | /quizlet.py | 223f164d449452f8fe8d2674bf439bce4182a385 | [] | no_license | joequery/quizlet | bbb99bf8db6c5d0bdecc37383098d50db60f6f00 | 25eabec0668cf4a90657a2e7e7f8258b00bd93bb | refs/heads/master | 2020-03-30T23:11:57.211977 | 2013-04-22T15:59:11 | 2013-04-22T15:59:11 | 9,089,231 | 39 | 7 | null | 2013-04-11T03:31:15 | 2013-03-29T00:24:02 | Python | UTF-8 | Python | false | false | 3,138 | py | import requests
import json
import os
import re
import sys
from quizlet_secret import QUIZLET_CLIENT_ID
###########################################################################
# Constants
###########################################################################
SET_DIR = os.path.join(os.path.dirname(os.path.real... | [
"joseph@vertstudios.com"
] | joseph@vertstudios.com |
8979b51513153b74eb4a26efe75e95c67319ebef | 40b42ccf2b6959d6fce74509201781be96f04475 | /mmocr/models/textdet/necks/fpem_ffm.py | c98b43f1fc2642db598a0f9094b88e4851cc9e75 | [
"Apache-2.0"
] | permissive | xdxie/WordArt | 2f1414d8e4edaa89333353d0b28e5096e1f87263 | 89bf8a218881b250d0ead7a0287526c69586c92a | refs/heads/main | 2023-05-23T02:04:22.185386 | 2023-03-06T11:51:43 | 2023-03-06T11:51:43 | 515,485,694 | 106 | 12 | null | null | null | null | UTF-8 | Python | false | false | 5,999 | py | # Copyright (c) OpenMMLab. All rights reserved.
import torch.nn.functional as F
from mmcv.runner import BaseModule, ModuleList
from torch import nn
from mmocr.models.builder import NECKS
class FPEM(BaseModule):
"""FPN-like feature fusion module in PANet.
Args:
in_channels (int): Number of input chan... | [
"xudongxie77@gmail.com"
] | xudongxie77@gmail.com |
1d9f9d6e6fe20f63cf554997baf332c28a44b7e6 | 7520659adb4bb3a36b29a68894c449cfff2f241e | /trab1.py | 4587ffb68fa3b62c35e4345f5ef38ddf46d1a2b8 | [] | no_license | thiagouft/Trabalho-1-TCLFA | 6df2f78c6f43771a0d314d2015c0b4755271c3ba | 43a5e91e16dc9199da28847d57cc89bceafbb7f6 | refs/heads/master | 2021-05-16T11:06:53.946436 | 2017-09-27T23:37:15 | 2017-09-27T23:37:15 | 104,926,075 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,348 | py | #Aluno: Thiago Silva Pereira
def transicao_estendida(estado, valor):
#print(valor)
if valor == '&':
return 'q0'
i = len(valor)
e = transicao_estendida(estado,valor[:len(valor)-1])
#print(e)
return trasicao_afd(e,valor[i-1])
def trasicao_afd(estado, palavra):
if estado == 'q0':
... | [
"thiagoufma@gmail.com"
] | thiagoufma@gmail.com |
967748c947304582173245dab50b88d282158a96 | eab97fdb3a2fd93afaa4c5ad172c46e42d32b27a | /math_operations.py | a6e8bb0a2d1586a51315fb305472fbaec961a78d | [] | no_license | chdzr/basic_python | ac2c1727677c58ca92404d404aaa6329570d2424 | b2b014526eb6f8c3e618c28df95d504b18719231 | refs/heads/main | 2023-02-28T07:36:20.964822 | 2021-01-30T23:43:41 | 2021-01-30T23:43:41 | 328,090,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | print(2+3)
print(3-2)
print(2*3)
print(6/2)
print(1%2)
print(5**2)
| [
"chidzir.wicaksono@gmail.com"
] | chidzir.wicaksono@gmail.com |
cf27aee94cb1f21c671752c877f0bda9db9d2401 | 025765a4289ad9229225f6627a5a1eaa56fe7726 | /Module/Test8.py | 72dd475a2d82df1ea67f60054c03e3f2e584cca1 | [] | no_license | dongyeon94/Kiwoom_Open_API | dc12b85623994314f4d045a5dda6d5bc7c3e5ef2 | df3bca5f6f8ce92a34947f28b21e277693560e05 | refs/heads/master | 2022-09-07T02:55:03.235742 | 2020-05-23T15:23:28 | 2020-05-23T15:23:28 | 243,203,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,087 | py |
import sys
from PyQt5.QtWidgets import *
from PyQt5.QAxContainer import *
from PyQt5.QtCore import pyqtSlot, QTimer, QObject, QThread, QTime
import datetime
import time
import threading
global current_data
current_data = 0
CODE = "CLJ20" # crude oil
COM_DATE = datetime.datetime.now().strftime('%Y%m%d%H%M%S')
sale_t... | [
"dongyeon94@naver.com"
] | dongyeon94@naver.com |
ffd1967fdd6141f81536c15df8db6f38b79377a7 | edc5caaf86094e01fd1fb94817e8004cefaff780 | /TP4/workspace-buildoutput/catkin_ws/build/turtlebot3/turtlebot3_description/catkin_generated/pkg.develspace.context.pc.py | 6393b6898e69481fcaf13804491f14bd2290a0bb | [] | no_license | waelkedi/IA | 73a04c85e1410ddbf08c3cd11974e8d22f6ef26b | a658ea7600a094a687c6274abef5d49fcbe40688 | refs/heads/master | 2020-03-29T23:14:27.269859 | 2019-01-14T16:11:54 | 2019-01-14T16:11:54 | 150,463,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "urdf;xacro".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "turtlebot3_description"
PRO... | [
"MaximeDeWolf@outlook.fr"
] | MaximeDeWolf@outlook.fr |
aa96742c1637323518cf8e3c63e7ed393d460c7d | d04ed5c974b8cdf41cf1b9fcd48b9c12ac049c77 | /app/__init__.py | 050c5d9eb285800470126b37cbf1e9c04fe552f5 | [] | no_license | KCzenczek/Flask_MG | 5f9a44d30a9f8942e1b5f7a1fceb5fbf6991a654 | f3823af347517ff75b275ea75aa4a7d271b06869 | refs/heads/main | 2023-02-12T03:28:38.115294 | 2021-01-12T20:17:22 | 2021-01-12T20:17:22 | 322,925,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,326 | py | from flask import Flask
from flask_bootstrap import Bootstrap
from flask_mail import Mail
from flask_moment import Moment
from flask_sqlalchemy import SQLAlchemy
from config import config
from flask_login import LoginManager
from flask_migrate import Migrate
from flask_pagedown import PageDown
from flask_wtf.csrf impor... | [
"kinga.czenczek@gmail.com"
] | kinga.czenczek@gmail.com |
70c3c7e641524c77f72502fe9dc156224c6de638 | 2228dbdfd5f1cb4ede5ae87a5e3554f6d4d50258 | /Extended_source/Source_estimation/source_lens.py | 6eabd2ef5376d6f8453bc19edf0217b78bc2c4c6 | [] | no_license | ialopezt/GalLenspy | b5d65403cffecdce8420265b0b220669489b49bf | 59af3329f9c390d0b4dbfe1ef36dd414c1691674 | refs/heads/master | 2023-05-08T07:59:20.275380 | 2021-05-29T04:06:16 | 2021-05-29T04:06:16 | 267,147,572 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,016 | py | from scipy.misc import *
import numpy as np
import pylab as plb
import matplotlib.pyplot as plt
import matplotlib.cm as cm
from scipy.integrate import quad
from scipy.integrate import nquad
from scipy.misc import derivative
import pandas as pd
import emcee
import corner
from astropy import table as Table # For fast and... | [
"noreply@github.com"
] | ialopezt.noreply@github.com |
69aa220a34896f8d7cf9b804ed9aa05956608b82 | 7e0f269b9199d7fc1e56377ad53c5e0011a002a3 | /main/homework6/1.py | 3c91fd0a96f2f063eebbbea7d3ab0c4594c10ec5 | [] | no_license | IgnacioCastro0713/exercises | 8fb91fe3c27f27087a26902c118d313173ec36ec | e45c4dc39fb64ed5d310b5422bc4fdc67b840621 | refs/heads/master | 2020-03-26T13:24:16.862854 | 2018-10-01T03:22:42 | 2018-10-01T03:22:42 | 144,937,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 564 | py | # José Ignacio Menchaca Castro
# 215818166
lista = ['Ana', 'Luis', 'Pedro', 'Juan']
x = 0
while True:
print('Seleciona una opción de la lista a remplazar: ')
for i in lista:
x += 1
print(x, '.-', i)
remove = int(input('Opcion: '))
lista.remove(lista[remove - 1])
print('Lista: ', li... | [
"ignaciomenchaca666@gmail.com"
] | ignaciomenchaca666@gmail.com |
1f03b8aad24c2370d520e48b592152a4703341a1 | a5774cd1c577f4c0ea5353ebbfc752e4ba30326d | /Iteration-1/test/test_bowlinggame.py | e8fe42173fe111f91ad18161a571db1266d187b8 | [
"Unlicense"
] | permissive | xray/py-bowling-game-kata | 9faaa115ea57b38d441bcc083590b4d7f5aa551c | 25da4a8d4bccf6a955ef0bbb7604d0c9d3a4599b | refs/heads/master | 2020-03-31T10:02:43.606459 | 2018-10-08T21:24:34 | 2018-10-08T21:24:34 | 152,120,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,067 | py | from bowlinggame.game import Score
def gen_all_x_except_y_frame(number_to_set, frame_to_change, arr=[]):
game = []
for frame in range(10):
if frame == (frame_to_change - 1):
game.append(arr)
else:
if frame == 9:
if number_to_set == 10:
... | [
"jlamb@Jakes-MacBook-Pro.local"
] | jlamb@Jakes-MacBook-Pro.local |
30a0136e2f51eab008da29509e4c56e638b5286a | 279d4e5428398d0ddc529e4a45b97c830e10469d | /Projects/Project9_test.py | bfd5617a318ac1186de9dbdad72df2c3c2fb575d | [] | no_license | michaelstreyle/CS160 | ffa5a2f7c21b10699458b12dcf14f99a12af397e | b5ac2d5d3d74a1ad131f27480b154556ca6cc0e0 | refs/heads/master | 2020-09-11T10:34:20.278305 | 2019-11-16T02:44:51 | 2019-11-16T02:44:51 | 222,036,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,850 | py | """
Testing the module morse
Karina Hoff, 2018
"""
#!/usr/bin/python3
import pytest
from Project9 import Coder
class TestMorseMethods:
"""Testing module morse"""
@pytest.fixture(scope="function", autouse=True)
def setup_class(self):
"""Setting up"""
self.the_tree = Coder("morse.txt")
... | [
"mstreyle96@gmail.com"
] | mstreyle96@gmail.com |
0285446a48aec8a5abe62bc424a19ff2e89ae8c3 | ac50f3ac63fe399cd229f2a5e584494a9299b759 | /homework.py | 8db383975cbc0a86ae7c5b67b88adc2153173cf9 | [
"MIT"
] | permissive | zoltanvasile/homework-session-2 | 62bed5fe684758239e493f044c850f701915a711 | 7d1149db3115375e471b6f1d7bb1975934b47f8a | refs/heads/master | 2022-11-13T06:31:45.204906 | 2020-06-25T12:55:45 | 2020-06-25T12:55:45 | 274,914,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 792 | py | # 1.Reverse the order of the items in an array.
# Example:
# a = [1, 2, 3, 4, 5]
# Result:
# a = [5, 4, 3, 2, 1]
def reverseFunction(aList):
return aList.reverse()
a=[1,2,3,4,5]
reverseFunction(a)
print(a)
# 2. Get the number of occurrences of var b in array a.
# Example:
# a = [1, 1, ... | [
"vasile.zoltan.bp@nttdata.ro"
] | vasile.zoltan.bp@nttdata.ro |
e61843b913feb2b63ff73da2ce6702eab8d0d073 | 618408b7e89798b8a745ae5aaf6a098d17af5468 | /luo_hao_reid/transforms.py | 7ee514ed3d24e9d5a768d03e943565419472a3ee | [
"MIT"
] | permissive | Mr-Da-Yang/Python_learning | 3fc832325aa9aff4e11a15cad5b3636918dd61bc | 23586139fc44fe76c7dbcd83929a1804485be5f4 | refs/heads/master | 2023-01-08T21:35:42.324510 | 2020-10-26T13:01:02 | 2020-10-26T13:01:02 | 281,889,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,316 | py | '''OK
transform实现数据增广,pytorch中自带的随机翻转,剪切可以解决90%的问题,下面是自己如何做一个transform
'''
from __future__ import absolute_import
from torchvision.transforms import *
from PIL import Image
import random
import numpy as np
import matplotlib.pyplot as plt
class Random2DTranslation(object):#随机放大并crop
"""
With a probability, firs... | [
"noreply@github.com"
] | Mr-Da-Yang.noreply@github.com |
e92271f1c78474217bc02f56b883490d97558c08 | d3ab828a7a11db5f35f308f4e30e4ffc5e2cf964 | /jd/items.py | 0ddb078f594520bd69574980d37a547ad236cd17 | [] | no_license | DahuK/Crawler | 95a693fc3bdfbf8977ecd9351d20949cf3dde472 | f6cd3d0af7a5a9b01bdee92150254b406dc8af11 | refs/heads/master | 2020-04-28T02:09:21.284569 | 2016-01-18T11:27:50 | 2016-01-18T11:27:50 | 40,756,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
from scrapy.item import Item, Field
class TutorialItem(Item):
# define the fields for your item here like:
# name = Field()
pass
class JdbookI... | [
"dahukuang@126.com"
] | dahukuang@126.com |
3652511f4a3c2e9b77748a3cf8132b152949bf44 | ffe4c155e228f1d3bcb3ff35265bb727c684ec1a | /Codes/Quiz/number_of_factors.py | 68ce727aa40589c018b92480a89b9de9e4e47ed7 | [] | no_license | yuuee-www/Python-Learning | 848407aba39970e7e0058a4adb09dd35818c1d54 | 2964c9144844aed576ea527acedf1a465e9a8664 | refs/heads/master | 2023-03-12T00:55:06.034328 | 2021-02-28T13:43:14 | 2021-02-28T13:43:14 | 339,406,816 | 0 | 0 | null | 2021-02-28T11:27:40 | 2021-02-16T13:26:46 | Jupyter Notebook | UTF-8 | Python | false | false | 269 | py | def numberOfFactors(num):
ans = 1
x = 2
while x * x <= num:
cnt = 1
while num % x == 0:
cnt += 1
num /= x
ans = cnt
x += 1
return ans * (1 + (num > 1))
n = int(input())
print(numberOfFactors(n))
| [
"50982416+cyndereN@users.noreply.github.com"
] | 50982416+cyndereN@users.noreply.github.com |
cac3526b274c70a2aac8b446caaa0e96ec4ca392 | 70ea2dc70e9c0aea1fe9af0db8ff362bdfa50676 | /main_cls.py | b414051a8d4a13db9d12b83b48e9063d571b7edf | [] | no_license | guanjz20/MM21_FME_solution | b314814f4b49e18e9a6cf3cccc1063bb7e8d9f42 | 7919833a2112c6387a5a49fdcf0c43e75394a0bb | refs/heads/master | 2023-06-16T05:00:55.101198 | 2021-07-11T07:28:07 | 2021-07-11T07:28:07 | 384,887,886 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,176 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from genericpath import exists
import os
from typing import Final
import cv2
import sys
from matplotlib.pyplot import xcorr
from numpy.random import f, sample, shuffle
from torch.utils.data import dataset
from config import parser
if len(sys.argv) > 1:
# use shell a... | [
"jiazhiguan1698@gmail.com"
] | jiazhiguan1698@gmail.com |
0b8609103dd7f8a320e1b62047793f8513669fc7 | 0d247fea57ee40717166b1ff753fd626092e9e78 | /tests/test_completer.py | 279b880925ed77714e3e343298ac7a331f4a7706 | [] | no_license | sean-heller/dockercli | 362ff0310992b2257ed20077b76245729ca2a227 | ab9ca8f13d01a5d8c5d3f58743c476836b06d186 | refs/heads/master | 2021-05-29T07:27:33.954752 | 2015-07-20T16:21:09 | 2015-07-20T16:21:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,645 | py | from __future__ import unicode_literals
import pytest
from prompt_toolkit.completion import Completion
from prompt_toolkit.document import Document
from dockercli.options import all_options
from dockercli.options import COMMAND_NAMES
@pytest.fixture
def completer():
import dockercli.completer as cmp
return c... | [
"i.chernyavska@gmail.com"
] | i.chernyavska@gmail.com |
876d42eca7d958444943cfd5e550208f8781fe15 | 43c24c890221d6c98e4a45cd63dba4f1aa859f55 | /test/cpython/test_copy_reg.py | 2f49eb711e1c3c92f0d6818c85ca52b10e5eb43c | [
"Python-2.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | jmgc/pyston | c8e4df03c33c6b81d20b7d51a781d9e10148238e | 9f672c1bbb75710ac17dd3d9107da05c8e9e8e8f | refs/heads/master | 2020-12-11T07:51:58.968440 | 2020-09-11T14:38:38 | 2020-09-11T14:38:38 | 39,242,644 | 0 | 0 | NOASSERTION | 2020-09-11T14:38:39 | 2015-07-17T08:09:31 | Python | UTF-8 | Python | false | false | 44 | py | ../../from_cpython/Lib/test/test_copy_reg.py | [
"kmod@dropbox.com"
] | kmod@dropbox.com |
7e1adfe0c0fd5a509cb006c917e00fe88395a01b | 00cb09b91cfccb285be8acd86da9612defd003d7 | /python/infrastructure/lib/command_interface.py | 3d080c16bb83e6e59f78ff89f8586dc42afd6ed7 | [] | no_license | jasonraimondi/flask-command-query | 8838fa61211f0e568e02e5b4ce37a6bff04d850d | 678b7d3f48a5c40b06c122302727392f982482e3 | refs/heads/master | 2021-05-07T08:31:00.273681 | 2017-11-15T03:15:51 | 2017-11-15T03:15:51 | 109,299,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | class CommandInterface(object):
def execute(self):
raise NotImplementedError()
| [
"jason@raimondi.us"
] | jason@raimondi.us |
68d0e1293ce58896cd7ef5a2be74639b3686fcb9 | 7f50d37ba987fade8bce93fb10286292a9a0d7e1 | /sentry.conf.py | f381b1ea1c92503f43337372fa43c0fff2a7968e | [] | no_license | rochacon/docker-sentry | db4ac5be75392b6d7fdabdf211532b3b5b9eca34 | 32d41ab39a2dbc222e5ed6080ca943b2225cc07a | refs/heads/master | 2021-01-18T14:06:01.265851 | 2014-10-27T19:02:54 | 2014-10-27T19:02:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,043 | py | # /etc/sentry.conf.py
# edit this to your liking
import os
import dj_database_url
DATABASES = {'default': dj_database_url.config()}
# No trailing slash!
SENTRY_URL_PREFIX = 'http://127.0.0.1.xip.io' # FIXME modify this to your domain
# SENTRY_KEY is a unique randomly generated secret key for your server, and it
#... | [
"rochacon@gmail.com"
] | rochacon@gmail.com |
23b8ea48b8dcdfd520fd983a55990ac4992ded00 | 4017add8fa767cf2eca9163791aa65ee77c67a07 | /code/gradient_descent/first.py | 2a722d65bc85c82cd02c686f9e1e382f1907852a | [] | no_license | ducksfrogs/numpy_data_ana | 00c0928f2ddc7a8ad0ea9ecdefa3815a8d880969 | 9d89bc377a3015c19c74f6b5aa500f2f2f08cdb1 | refs/heads/master | 2022-10-19T22:37:10.314453 | 2020-06-09T00:05:23 | 2020-06-09T00:05:23 | 268,383,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,939 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from sklearn.datasets import load_boston
dataset = load_boston()
samples, label, feature_names = dataset.data, dataset.target, dataset.feature_names
bostondf = pd.DataFrame(dataset.data)
bostondf.columns = dataset.feature_names
bostondf['Target pr... | [
"ma_yamaki@yahoo.com"
] | ma_yamaki@yahoo.com |
4a2ecbc07be3e1defbf0fed67e0ccfd2451a3d05 | a35ec94d6346fa20ad33aed7b00d3326f67ffa7a | /e_commerce/urls.py | 50e7eef5b4fe3d2b88ef6142825341877d16b05e | [] | no_license | UsamaMashood/e_commerce_project | b2d4c4843c9edc72f4f90341d944647be4dbb098 | 09faf224321ed4de0ea55cc2143d8610f2ed5d99 | refs/heads/master | 2020-05-23T05:52:07.758188 | 2019-05-14T16:03:18 | 2019-05-14T16:03:18 | 186,632,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path('admin/', admin.site.urls),
path('shop/', include('shop.urls')),
path('blog/', include('blog.urls')),
] + static(settings.MEDIA_URL, docum... | [
"usamamashood008@gmail.com"
] | usamamashood008@gmail.com |
c79e23af4259ba1c22d26c8aa3efba74db913669 | 3fb24e6505ffdc3a3961c467bc54ba7c0b526454 | /gravityRK4_resized.py | bb4decb7fef61bfc5574688ebcdd950f6745dc2a | [
"MIT"
] | permissive | martinohanlon/minecraft-planets | 8d76018cb1dc4154becf9ec836f1e00488673b9e | c7017eb9be6260c8c664891a77063305ac97ae57 | refs/heads/master | 2020-06-02T07:50:33.539646 | 2013-03-07T21:19:43 | 2013-03-07T21:19:43 | 8,636,766 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,722 | py | #!/usr/bin/env python
"""
An improved version of my Python-based gravity simulator, using Runge-Kutta
4th order solution of the differential equations - coded during Xmas 2012.
Happy holidays, everyone!
I've always been fascinated by space - ever since I read 'The Family of
the Sun', when I was young. And I always wan... | [
"martin@ohanlonweb.com"
] | martin@ohanlonweb.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.