blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M โ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b0f03d06d9223ce7f593796a991af26bc1c4bfd1 | 01a45aa09bd266e25dae4d2ba9fceddea2441844 | /todo_back/todos/serializer.py | e89a5ee7e7d956df2ee97ace0e468bd6dc0a0c8b | [] | no_license | gusk94/Vue-Django | 1959e75ffee39f3839fc9bafaf79eead724023fa | 82213a96e8d5bc684beb7cf3fcf212bbfcaf8019 | refs/heads/master | 2023-01-10T15:20:08.635383 | 2021-01-06T15:12:59 | 2021-01-06T15:12:59 | 222,366,577 | 0 | 0 | null | 2023-01-05T01:06:52 | 2019-11-18T04:55:18 | Python | UTF-8 | Python | false | false | 467 | py | from rest_framework import serializers
from django.contrib.auth import get_user_model
from .models import Todo
User = get_user_model()
class TodoSerializer(serializers.ModelSerializer):
class Meta:
model = Todo
fields = ('id', 'user', 'title', 'completed', )
class UserDetailSerializer(serializers... | [
"h3652k@gmail.com"
] | h3652k@gmail.com |
3dea6f3140dec8ac1306cefb20ce77918b2be273 | df8e16369f9e24dce76b740dbf879c4a77a3c78c | /Data/create_sample.py | 4288c42c7c202885aa3d9e5464bed71422ca3830 | [] | no_license | HubertRonald/Seattle_Track_2 | 268ea3dca105a3f0ece600f01fa4f3f42213d613 | 49875df048879de8ca6d98be3a86fb445a26883f | refs/heads/master | 2021-02-13T19:13:34.093528 | 2018-09-26T04:19:41 | 2018-09-26T04:19:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Sep 21 18:57:27 2018
@author: saramelvin
"""
import pandas as pd
import pickle as pkl
def read_in_sample():
data_all = pd.read_csv("AIS_LA_SD_Jan_1_to_15_2016_Filtered_by_Proximity.csv")
data_true_pos = pd.read_csv("Example_COLREGs_Interactio... | [
"saramelvin@Saras-MacBook-Pro.local"
] | saramelvin@Saras-MacBook-Pro.local |
e9be6664dfeea854335fd27a2ead99255732394c | acb5896ac838bc8c3593de2e21b21ff031233439 | /PracticaGuiada1/PracticaGuiada.py | ba21d495c378f93245f7cb7cc1c6a5f16d5fb74f | [] | no_license | vidaljose/pruebasPython | 5c72e1ced4f78b39c481aab7fb958f9e05662645 | 73f7cdd9ddcc95d53fa7aafedd8b30c7b224face | refs/heads/master | 2020-05-07T05:46:31.231577 | 2019-04-09T04:27:13 | 2019-04-09T04:27:13 | 180,284,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,531 | py | from tkinter import *
from tkinter import messagebox
from PracticaGuiada1 import PracticaGuiadaBBDD
raiz = Tk()
raiz.title("Practica Guiada")
# -------------------------------Variables
miId = IntVar()
miNombre = StringVar()
miPass = StringVar()
miApellido = StringVar()
miDireccion = StringVar()
miComentario = StringVa... | [
"vidaljose2004@gmail.com"
] | vidaljose2004@gmail.com |
d902613aadcf2bec9d31efa6e223a0237416cd61 | 2750d410e88b1b9e66c99eaaa98d7e9c3a132de7 | /src/crypto.py | aeb40f8d2c39fb2b23b34b40271c4347db9714d5 | [] | no_license | cypher9/PyPlanner | a67e95d913ba41551ff2e1791240c50becf982dd | 07a7cc8cd2d371875a3d4e546d2845280870dc45 | refs/heads/master | 2021-01-21T04:41:30.196406 | 2016-06-27T18:29:32 | 2016-06-27T18:29:32 | 53,264,223 | 0 | 3 | null | 2016-06-21T19:27:32 | 2016-03-06T16:23:51 | Python | UTF-8 | Python | false | false | 2,008 | py | '''
Created on 08.06.2016
@author: cypher9
'''
import random, base64, hashlib, getpass
from Crypto.Cipher import AES
BLOCK_SIZE = 32
PADDING = '{'
pad = lambda s: s + (BLOCK_SIZE - len(s) % BLOCK_SIZE) * PADDING
KEY = None
def generate_key(password):
key = hashlib.sha256(password).digest()
return key
... | [
"cypher1337@protonmail.com"
] | cypher1337@protonmail.com |
0d4b5ab246bcd2e91a31ac44a798d0bed067d702 | bc233c24523f05708dd1e091dca817f9095e6bb5 | /bitmovin_api_sdk/models/ad_analytics_contains_filter.py | 354ab8dfcae40bdd9aa2cf0bd8e53fb1c6d34042 | [
"MIT"
] | permissive | bitmovin/bitmovin-api-sdk-python | e3d6cf8eb8bdad62cb83ec77c0fc4950b06b9cdd | b0860c0b1be7747cf22ad060985504da625255eb | refs/heads/main | 2023-09-01T15:41:03.628720 | 2023-08-30T10:52:13 | 2023-08-30T10:52:13 | 175,209,828 | 13 | 14 | MIT | 2021-04-29T12:30:31 | 2019-03-12T12:47:18 | Python | UTF-8 | Python | false | false | 3,799 | py | # coding: utf-8
from enum import Enum
from six import string_types, iteritems
from bitmovin_api_sdk.common.poscheck import poscheck_model
from bitmovin_api_sdk.models.ad_analytics_abstract_filter import AdAnalyticsAbstractFilter
from bitmovin_api_sdk.models.ad_analytics_attribute import AdAnalyticsAttribute
import ppr... | [
"openapi@bitmovin.com"
] | openapi@bitmovin.com |
0833717628a80b38c69325f8536c3136fe2f1c1b | 512c7561596cf46928a9904b4f2a2b484c47e739 | /simplecapp_calculation_engine/exceptions.py | 3e9da460a583719c29c3dcbec1db22a2aed5b879 | [] | no_license | GustavoRonconi/simplecapp_calculation_engine | 110fb84eacdbe4076e21e6e7e6057b37e4d72ef3 | d005bdca7b141dee6d862bf50002df1b14c58434 | refs/heads/main | 2023-05-30T22:10:56.611498 | 2021-07-01T01:10:58 | 2021-07-01T01:10:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | class InvalidAnnualSummary(Exception):
msg = "invalid_annual_summary"
| [
"gustavoronconi95@gmail.com"
] | gustavoronconi95@gmail.com |
d984996776b3ea153d203518e3b9b95d6a4ce351 | fc2fa418295e015f867b26b6ab91133f26eff0bb | /ExampleCode/gathering.py | 5d31cc8d1e1f5136712e91fdadabfb3a873d7c1e | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | land-boards/PiCluster | 893b0809d5ceeaba2425cd3cfd79598911a65989 | e7a508ab1be25e50b79c585ea861118e37ba9bb3 | refs/heads/master | 2022-04-28T13:02:10.307315 | 2022-04-20T09:55:52 | 2022-04-20T09:55:52 | 62,474,727 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | from mpi4py import MPI
import numpy as np
comm = MPI.COMM_WORLD
size = comm.Get_size()
rank = comm.Get_rank()
numDataPerRank = 10
sendbuf = [rank, size]
print('Rank: ',rank, ', sendbuf: ',sendbuf)
recvbuf = None
if rank == 0:
recvbuf = []
comm.Gather(sendbuf, recvbuf, root=0)
if rank == 0:
print('Ra... | [
"doug@douglasgilliland.com"
] | doug@douglasgilliland.com |
823f39203dec17fdc778ad33dcc6296c31fcf5a4 | 86cd22354f2431087c9b3ff06188f071afb3eb72 | /113. Path Sum II.py | 702d8007e664f27151d6db9cd322c6f685000c06 | [] | no_license | tlxxzj/leetcode | 0c072a74d7e61ef4700388122f2270e46c4ac22e | 06dbf4f5b505a6a41e0d93367eedd231b611a84b | refs/heads/master | 2023-08-31T11:04:34.585532 | 2023-08-31T08:25:51 | 2023-08-31T08:25:51 | 94,386,828 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 926 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def pathSum(self, root: TreeNode, targetSum: int) -> List[List[int]]:
ret = []
q = []
... | [
"tlxxzj@qq.com"
] | tlxxzj@qq.com |
58031043f16f68a8aeec4dd903bd58ef62d5e307 | 42c63d5f9c724c99ba93f77bdead51891fcf8623 | /OpenStack-Mitaka-src/designate/designate/mdns/notify.py | 8f3de6c53a97c1fedd4eb1bf6bb8a1af254f72a6 | [
"Apache-2.0"
] | permissive | liyongle/openstack-mitaka | 115ae819d42ed9bf0922a8c0ab584fa99a3daf92 | 5ccd31c6c3b9aa68b9db1bdafcf1b029e8e37b33 | refs/heads/master | 2021-07-13T04:57:53.488114 | 2019-03-07T13:26:25 | 2019-03-07T13:26:25 | 174,311,782 | 0 | 1 | null | 2020-07-24T01:44:47 | 2019-03-07T09:18:55 | Python | UTF-8 | Python | false | false | 13,514 | py | # Copyright (c) 2014 Rackspace Hosting
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless req... | [
"yongle.li@gmail.com"
] | yongle.li@gmail.com |
5b7df660ee7701e34eea19a2b1b94169c502436b | 0fe9336b4c7b435759c32b8c400497798327e0f0 | /fmframework/model/__init__.py | b005eca2c39580755209d4967ff3b07a1a1f6b16 | [] | no_license | Sarsoo/pyfmframework | 53e313f3eb434f23d2e991295c7628867e81c9cf | 0561b0036e9f45bc35f51ff83fb33d79f61329e7 | refs/heads/master | 2022-12-23T03:59:17.134576 | 2022-12-10T09:44:05 | 2022-12-10T09:44:05 | 175,917,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,573 | py | from dataclasses import dataclass
from datetime import datetime
from enum import Enum
from typing import List
class Image:
class Size(Enum):
other = 0
small = 1
medium = 2
large = 3
extralarge = 4
mega = 5
def __init__(self, size: Size, link: str):
self... | [
"andrewjpack@gmail.com"
] | andrewjpack@gmail.com |
f8f7ce5994c6a5c8be5690040c6ae3e271794bd7 | 20cda6f6b14d9b91e64d43b8261f7832572be85f | /pyschema/f143_structure/ArrayULong.py | 4954b9b5940f5c8444c0ab0ad08e5b807c97ded1 | [] | no_license | ess-dmsc/lauschangriff | f9f2bacb7a5483423919fbfc8948e8a56a070800 | 3735c5f84798efc280e0931bc48129339658f400 | refs/heads/master | 2021-08-19T13:22:41.702602 | 2020-04-21T15:13:18 | 2020-04-21T15:13:18 | 168,178,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,603 | py | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: f143_structure
import flatbuffers
class ArrayULong(object):
__slots__ = ['_tab']
@classmethod
def GetRootAsArrayULong(cls, buf, offset):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x... | [
"mark.koennecke@psi.ch"
] | mark.koennecke@psi.ch |
719502011e9a893593a19a8760e6d0f6b400f272 | d48bb46fe6e46ca24e8c514d274f4b3f2cc602b2 | /tools/conv_cifar_2.py | bf2caba93ce583610ff6f8a68b2333b8351e9e53 | [
"MIT"
] | permissive | satishjasthi/cwcf | 76dca0740a64666a8c46b83c3cb9b1563012cf18 | 6617691f69a162b197f122c957da6aaf0e4b7424 | refs/heads/master | 2020-04-21T06:16:00.865439 | 2019-02-06T11:03:37 | 2019-02-06T11:03:37 | 164,435,454 | 0 | 0 | MIT | 2019-01-07T13:18:12 | 2019-01-07T13:18:12 | null | UTF-8 | Python | false | false | 1,713 | py | from torchvision import datasets, transforms
import pandas as pd
import numpy as np
COLUMN_LABEL = '_label'
SEED = 998822
#---
np.random.seed(SEED)
#---
def get_data(train):
data_raw = datasets.CIFAR10('../data/dl/', train=train, download=True, transform=transforms.Compose([
transforms.Grayscale(),
tr... | [
"jaara.j@gmail.com"
] | jaara.j@gmail.com |
d605004a43e9c6bfffeb41b5a4af64b8f0c32c86 | f2d7e8d536d77e786dc519fc54e13cb496663f51 | /t2t_bert/distributed_single_sentence_classification/model_interface.py | d76ef1883cd7001f4cf830209683115dcb9f99b0 | [
"Apache-2.0"
] | permissive | CBHell/BERT | a8ecfb36e3ddf1741f1e523dbab8b5ea350c0850 | 049ba2dc1cffe8eb3dbecf13ba3aaf17f4c3293f | refs/heads/master | 2020-09-08T09:37:22.421778 | 2019-11-11T11:54:01 | 2019-11-11T11:54:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,616 | py | from distributed_encoder.bert_encoder import bert_encoder
from distributed_encoder.bert_encoder import bert_rule_encoder
from distributed_encoder.gpt_encoder import gpt_encoder
from distributed_encoder.bert_encoder import albert_encoder
from distributed_encoder.classifynet_encoder import textcnn_encoder
from distribut... | [
"albert.xht@alibaba-inc.com"
] | albert.xht@alibaba-inc.com |
62440746b0d3fd1916415e079d0bfe1620d32437 | 5f9ee3c4ba97b20efbd07338f92af6e41d8aa654 | /test_urllib_weibologin.py | faaeac1c012d67266e63addaf3c3cc9e180808ec | [] | no_license | liyouzhi/python-practice | 70161cc2ebabe070376e62837fb1878d5acb106e | f7c8fe3d21e92b2d3e8d15d371a52962769976a3 | refs/heads/master | 2021-01-19T12:07:07.910380 | 2017-04-12T06:52:39 | 2017-04-12T06:52:39 | 88,018,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,027 | py | from urllib import request, parse
print('Login to weibo.cn...')
email = input('Email: ')
passwd = input('Password: ')
login_data = parse.urlencode([
('username', email),
('password', passwd),
('entry', 'mweibo'),
('client_id', ''),
('savestate', '1'),
('ec', ''),
('pagerefer', 'https://pass... | [
"lyz@buaa.us"
] | lyz@buaa.us |
a0dac36bbe1f2c1d009e9ea4b9aee9aab1968df1 | 9922b58a98753806ae836d0357b5451575f7e15b | /data/urls.py | f0f34aefbdc639aeabb2e2545f2d4c66b6387d65 | [] | no_license | ohhhhmy/hackathon | 41bbb9e9c7b73d366a11e73a7f0598344f48c159 | f42b3258bcc0fff6b559842f3ee3b786ae95d281 | refs/heads/master | 2022-12-21T01:40:06.953930 | 2019-07-30T05:32:30 | 2019-07-30T05:32:30 | 199,580,026 | 0 | 0 | null | 2022-12-08T05:56:56 | 2019-07-30T05:21:05 | HTML | UTF-8 | Python | false | false | 402 | py | from django.urls import path
from . import views
urlpatterns = [
path('show', views.show, name="show"),
path('search', views.search, name="search"),
path('<int:data_id>', views.detail, name="detail"),
path('show/sortName', views.sortName, name="sortName"),
path('show/sortPrice', views.sortPrice, na... | [
"dmsdh316@naver.com"
] | dmsdh316@naver.com |
594cdad708a08bfdabee9afb17a6462235d503d6 | 8600ea155f279e5a8dfe5a1926038511f6b6a7ea | /base_module_quality/pep8_test/pep8_test.py | 395520a63f88c32bd97b8c0358546252a2444e06 | [] | no_license | MarkNorgate/addons-EAD | c2fff89ab16fce3ba19fbe433ee5863705a6f4e5 | 840f28642b5d328e4b86839c413e5164622295a5 | refs/heads/master | 2020-04-23T22:11:00.164438 | 2015-07-22T12:24:53 | 2015-07-22T12:24:53 | 39,501,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,797 | py | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved
# $Id$
#
# This program is free software: you can redistribute it and/or modify
# ... | [
"mark.norgate@affinity-digital.com"
] | mark.norgate@affinity-digital.com |
88de90beb87dc98e7b6cecbef0885d4eb331071d | b01eee55884e21412a1812593996a0d9156e20bc | /cipp/parser.py | a61415f56a03d5a2ccf442dd729ad537e1406db5 | [] | no_license | JacquesLucke/cipp | 46bdb7eebaeb863f424c92542ea56b49b5f0fe2e | d4f38fd1fc84aed9cbf49b85bf6c4b96f2561f71 | refs/heads/master | 2021-10-27T18:29:23.288884 | 2019-04-18T15:36:52 | 2019-04-18T15:36:52 | 123,611,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,498 | py | from . import ast
from . lexer import Lexer
from . token_stream import TokenStream
from . tokens import (
createSingleCharToken,
IdentifierToken, IntegerToken,
CommentToken, WhitespaceToken
)
SingleCharToken = createSingleCharToken("(){}[],=+-*/@;<>!")
cippLexer = Lexer(
[IdentifierToken, IntegerToken... | [
"mail@jlucke.com"
] | mail@jlucke.com |
643a7b2091b878e7481a7ba0950e51a72cd4a379 | 6a4abacf7005bc4c24e0719b72106415e7e9b905 | /alarm_clock.py | db2bb0abfda575ae2a0c75f163065765dd320983 | [] | no_license | saikarthik007/Alarm-Clock | 342415c60e7b50cff39c36fe254e9cf30deda8c2 | a95fb1745720a73cd67333efdec204e720d4b0ea | refs/heads/main | 2023-06-25T19:25:22.457016 | 2021-08-03T09:56:52 | 2021-08-03T09:56:52 | 392,268,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,748 | py | """
Application to set alarm based on date and time
Developed by : Karthik C
"""
import time
from datetime import datetime
from playsound import playsound
class AlarmClock:
"""class to set alarm on time based on user input"""
def __init__(self, alarm_date, alarm_time):
""" init function"""... | [
"noreply@github.com"
] | noreply@github.com |
3187010c119673201a32665997e3af25e74ff962 | c4caf34cfdbce7a843c5be6b8776334015fac9bd | /v1/views.py | 173a484d0192c4b0e0bdeb8cfa26d120a0194f06 | [] | no_license | DanielVisca/Thinking-of-You-Server | 9c84c23adc5cb693643ceaa249d6704fb93a1f47 | 14834c49467e54ae9d1727a5cf15344e5bf9b3df | refs/heads/master | 2022-04-23T01:15:32.199666 | 2020-04-14T00:40:24 | 2020-04-14T00:40:24 | 255,435,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,877 | py | from django.http import HttpResponse, JsonResponse
from v1.models import *
from rest_framework.decorators import api_view
from rest_framework.decorators import parser_classes
from rest_framework.parsers import JSONParser
from django.shortcuts import render
from django.core.exceptions import ObjectDoesNotExist
import ... | [
"danielvisca96@gmail.com"
] | danielvisca96@gmail.com |
98a42ed886c33115fee8f67642016d2738ab1d25 | d60be98f0b9b81249cc2c565796062b4a1c32197 | /bank/AuthenticationService.py | 3cb578a7e9921d4ffeb253cb0a15b0cfc425715e | [] | no_license | softchris/katas | 5a667547a32b5ea7135263d5e22774516f104ac5 | 946c0a514a528a40dc937f8d92ccc173eee58c0e | refs/heads/master | 2021-01-01T05:48:34.932361 | 2013-07-26T18:31:41 | 2013-07-26T18:31:41 | 11,687,335 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 522 | py | import User
class AuthenticationService:
def __init__(self):
self.isAuthenticated
self.user = None
self.users = []
def initUsers(self):
user = User.User("pelle","persson")
self.users.push(user)
def login(user,self,username,password):
for user in self.users:
if user.username == username and user.passw... | [
"christoffer.noring@softhouse.se"
] | christoffer.noring@softhouse.se |
ad8c19923c52f03b06c8c3c8ad57650d961ed9e0 | ccddedd15256742713ed8298f50fbd9f29238d38 | /Misc/video_capture.py | e25bbc2ca7b0b7accc43aa58470706e13027423e | [] | no_license | roshankr/DS_Competition | d9c27915eddfa0b39b20445882442b15975d6e5e | c765172f1f673fd3c774a4c3b45f61e41e7e5e52 | refs/heads/master | 2021-01-10T04:26:24.417215 | 2019-01-02T21:02:39 | 2019-01-02T21:02:39 | 44,562,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,915 | py | #!/usr/bin/python
import platform
import sys
import os
import pickle
import time as tm
import pandas as pd
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.feature_extraction.text import TfidfTransformer
from sklearn.multiclass import OneVsRestClassifier
from sklearn.svm import SVC
from sklearn... | [
"roshankr@gmail.com"
] | roshankr@gmail.com |
84a53172ac55cc0fb355a96df27090c3e5ccdad8 | 2f3991446af4dff47d9bbc6192c92af45efe88c2 | /level3-dependencies/test_build_order_private.py | 55afb702d106863bfe83993eb3e7addc55c75430 | [] | no_license | fedora-python/pyconcz-challenge | e3b2fc6ab9caebe9c3f55b6f89d9aea7481f8429 | f3b038fe1eb4d76d2e99f0e32a34a3f7716a2670 | refs/heads/master | 2022-11-17T01:16:01.307190 | 2022-10-31T10:25:02 | 2022-10-31T10:25:02 | 93,522,072 | 3 | 6 | null | 2022-10-31T10:25:03 | 2017-06-06T13:33:01 | Python | UTF-8 | Python | false | false | 1,565 | py | import pytest
def is_valid_result(pkgs, result):
built = {pkg: False for pkg in pkgs}
for pkg in result:
if pkg not in built:
print(f'{pkg} was not supposed to be built at all')
return False
if built[pkg]:
print(f'{pkg} already built')
return Fal... | [
"lbalhar@redhat.com"
] | lbalhar@redhat.com |
f8128fff9d6839dfb0a004533a916b2972314baa | 2111790241a7fb0501fc1561c040d4147795013c | /libs/drf_auth/drf_auth/__init__.py | 8849f032d057925d80c04362a1438de4f3f7ba20 | [
"LicenseRef-scancode-unknown-license-reference",
"MulanPSL-1.0",
"LicenseRef-scancode-mulanpsl-1.0-en"
] | permissive | cnicgpaul123/killNCP | e67d6030bf8a5f3cb739de9c1e5c02e65b688efb | aa153919389784354d1efa0c9669393a7ffe7cf7 | refs/heads/master | 2022-12-12T10:31:32.696763 | 2020-02-24T06:35:55 | 2020-02-24T06:35:55 | 242,639,784 | 6 | 0 | NOASSERTION | 2022-12-08T05:26:34 | 2020-02-24T03:39:51 | Python | UTF-8 | Python | false | false | 548 | py | # -*- coding: utf-8 -*-
"""
Licensed under the MIT License (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at http://opensource.org/licenses/MIT
Unless required by applicable law or agreed to in writing,
software distributed under the License is dis... | [
""
] | |
154873806933fc5055c4498b02af97faca74ccf3 | e0c6c2a5e87c51d84add566c2410bf2dcbd7bc42 | /cs231n/classifiers/fc_net.py | a38254c51cd959c26049e5e48638391f1cfa8590 | [] | no_license | aashish2894/cifar10_convnet | b1f5042f4a878d4a4f8bacabad767f8c96a10d0c | 1df93036c5ae59ab5bdf0591498b46d2090e845f | refs/heads/master | 2021-10-02T18:30:18.613270 | 2018-11-30T03:27:05 | 2018-11-30T03:27:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,670 | py | from builtins import range
from builtins import object
import numpy as np
from cs231n.layers import *
from cs231n.layer_utils import *
class TwoLayerNet(object):
"""
A two-layer fully-connected neural network with ReLU nonlinearity and
softmax loss that uses a modular layer design. We assume an input dim... | [
"anshu.2894@gmail.com"
] | anshu.2894@gmail.com |
96e37d7f2ee89bdab87e242f7b8a2d08be5778a4 | d853a0103622cc3b3ada632b9c33c131bdad3a2d | /tests/callbacks/test_stochastic_weight_avg.py | e10f99d33d564dd5019c7a7af229d2aa2ee1fb51 | [
"Apache-2.0"
] | permissive | acharjee07/pytorch-lightning | aad24f872dbfd815585fa7cf2b6594ebe27eb2b1 | 2ee3127661493ba5d0513e543a78b6596f0a216b | refs/heads/master | 2023-09-05T20:58:44.829610 | 2021-10-25T17:33:52 | 2021-10-25T17:33:52 | 421,125,136 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,883 | py | # Copyright The PyTorch Lightning team.
#
# 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 i... | [
"noreply@github.com"
] | noreply@github.com |
ed6cc8e324e0e9d722dcff91f07aa8abc8df16f3 | a606893da1e354c7c617d0c9247b23118be2813a | /ๆจกๆ่่ฏ/7_20/t8.py | 178465ca3405c74f23f6334c46828faea35f0af3 | [] | no_license | lindo-zy/leetcode | 4ce6cb9ded7eeea0a6953b6d8152b5a9657965da | f4277c11e620ddd748c2a2f3d9f5f05ee58e5716 | refs/heads/master | 2023-07-22T06:19:00.589026 | 2023-07-16T12:35:14 | 2023-07-16T12:35:14 | 229,958,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | #!/usr/bin/python3
# -*- coding:utf-8 -*-
from itertools import product
from typing import List
class Solution:
def letterCombinations(self, digits: str) -> List[str]:
ds = {2: 'abc', 3: 'def', 4: "ghi",
5: 'jkl', 6: 'mno', 7: 'pqrs',
8: 'tuv', 9: 'wxyz'}
words = [ds[in... | [
"492201845@qq.com"
] | 492201845@qq.com |
f889a1191f24e0efa33abc9e969d0f9330c75227 | 5a094639f077d85f530c1df874aa4aaf39087757 | /basicPatternGeneration.py | b25271946dbaf5bf73ec794226b04f94503a7edd | [] | no_license | priyanshu1994/LAD-Tools-BTP- | 6936003c9887026f1b0a68526000423ae019dc0b | d0d9c3e27520c7f8a97de905832220e8303d62d4 | refs/heads/master | 2021-01-21T13:29:59.522102 | 2016-05-05T06:55:34 | 2016-05-05T06:55:34 | 53,981,183 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | import binarisationVariables as BV
from excelFileReader import *
import json
def convertBinaryToInt(list):
val = 0
for attribute in list:
val = val * 2 + attribute
val = val - 1
val = val / 2
return val
def basicPatternGeneration():
dict = {}
i = 0
for item in BV.items:
if item[BV.numberOfAttributes - 1] ... | [
"priyanshu581994@gmail.com"
] | priyanshu581994@gmail.com |
9e705405bf51c0c78f3aa9cea75c16792a078e88 | 197f89938ff9b056c32b5fcdd9386c02f02f5ca8 | /rlkit/examples/variant.py | fc279c71bab63b2a79dd28c176fcb00a5a981331 | [
"MIT"
] | permissive | cvigoe/DRL4MAAS | b8a4a4529c1df8bfe698b83fdffd05646a54cd82 | 95539197c9b82a34f9128fd265749d0f8f76157f | refs/heads/main | 2023-08-11T05:56:16.587227 | 2021-09-19T21:40:18 | 2021-09-19T21:40:18 | 404,843,072 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,836 | py | variant = dict(
mlflow_uri="http://128.2.210.74:8080",
gpu=False,
algorithm="PPO",
version="normal",
layer_size=64, # Need to tune & fix in code
replay_buffer_size=int(3E3),
algorithm_kwargs=dict(
min_num_steps_before_training=0,
num_epochs=3000,
... | [
"cvigoe@gmail.com"
] | cvigoe@gmail.com |
b8b2d770fa56dc2737b20940196ba21100eeede9 | 85eff920f0f285abad84c2f6bcfd4f236f3976ab | /webservices/views/product/Discount.py | 2addd7a58ad5beee740e07d16fa28b10c0c2115c | [] | no_license | obxlifco/Web-Picking-App-GoGrocery | 8cf5f7924005a19764e5c4722a47bfd963965f2e | 6b084547bed2af43a67bada313d68e56f4228f96 | refs/heads/main | 2023-05-26T08:32:30.297317 | 2021-06-12T10:05:01 | 2021-06-12T10:05:01 | 315,206,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67,390 | py | from webservices.models import *
from django.http import Http404
from webservices.serializers import *
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status
from django.views.decorators.csrf import csrf_exempt
from django.http import JsonResponse
from re... | [
"mjamal@lifcoshop.net"
] | mjamal@lifcoshop.net |
f60a796426a088065e486da9f6fc3e3d52b7acb5 | d671ae8abe44541b6942c1ddb799dc23353157c1 | /cart/contexts.py | 71b966dfc82175dea5e8642e8a74acd51f0c237f | [
"MIT"
] | permissive | Walachul/milestone4 | f3dbbca09c49feeb39dbb4a46691012eeadfaae2 | ce3be4d39b5d28141f41d4783d3e7211480ce64d | refs/heads/master | 2022-12-11T15:06:49.227485 | 2020-02-27T21:47:16 | 2020-02-27T21:47:16 | 205,703,804 | 0 | 1 | MIT | 2022-12-08T06:58:37 | 2019-09-01T16:34:58 | Python | UTF-8 | Python | false | false | 712 | py | from django.shortcuts import get_object_or_404
from products.models import Product
def cart_contents(request):
"""
Stores the cart items and keeps them in the session when the user is logged in
and he navigates the site.
Cart items are gone when the user logs out.
"""
cart = request.session.ge... | [
"42890101+Walachul@users.noreply.github.com"
] | 42890101+Walachul@users.noreply.github.com |
1e5bef82c6328f42d541657e2b7873943f399850 | 5a5f58c3de67e6668f565c01071aab4ab301d43e | /function_multiple_arguments.py | ebc47cace9a71257419e8df6b72a99c81ea4b42f | [] | no_license | FabianTauriello/Problem-Solving-And-Programming-Textbook-Problems-Python- | bde9d59abca7307e0b413529e12736d13c817cee | 59a99131bd3addd5278c427d0c0d6a44508a1363 | refs/heads/master | 2021-09-07T00:29:06.672161 | 2018-02-14T07:11:52 | 2018-02-14T07:11:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | # This program demonstrates a function that accepts two arguments
def main():
print('The sum of 12 and 45 is')
show_sum(12,45)
# The show_sum functions accepts two arguments and
# displays their sum.
def show_sum(num1, num2):
result = num1 + num2
print(result)
# Call the main function
ma... | [
"noreply@github.com"
] | noreply@github.com |
c1a849a3ef968a12653876769b2c0efefab85133 | 8569b19a31f0b506ab6ded1da8f1e9b2c6a54238 | /moderate/urls.py | a43ea376faa64edd6fa1367c9ab69212016a329b | [
"MIT"
] | permissive | sandnima/blog-with-Django | 460a5a8bb78357cfcfab44d456f3e452ddaa443e | 77cb90f4e3aa70efa8d5190146f6acb4cd22d9a7 | refs/heads/main | 2023-06-24T20:45:25.346095 | 2021-07-27T14:26:05 | 2021-07-27T14:26:05 | 378,387,526 | 0 | 0 | MIT | 2021-07-12T19:17:16 | 2021-06-19T10:43:26 | JavaScript | UTF-8 | Python | false | false | 289 | py | from django.urls import path
from .views import (
moderate,
article_list
)
app_name = 'moderate'
urlpatterns = [
path('', moderate, name='index'),
path('blog/', article_list, name='article_list_index'),
path('blog/p-<int:page>/', article_list, name='article_list'),
]
| [
"46921550+sandnima@users.noreply.github.com"
] | 46921550+sandnima@users.noreply.github.com |
86c4579e69639f21cd77bf45cfc84b101d9ccfff | cf5b2850dc9794eb0fc11826da4fd3ea6c22e9b1 | /xlsxwriter/test/drawing/test_drawing_chart01.py | 5c7893a9c2c67067496a261dfe31cb992bb3ae86 | [
"BSD-2-Clause"
] | permissive | glasah/XlsxWriter | bcf74b43b9c114e45e1a3dd679b5ab49ee20a0ec | 1e8aaeb03000dc2f294ccb89b33806ac40dabc13 | refs/heads/main | 2023-09-05T03:03:53.857387 | 2021-11-01T07:35:46 | 2021-11-01T07:35:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,125 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# SPDX-License-Identifier: BSD-2-Clause
# Copyright (c), 2013-2021, John McNamara, jmcnamara@cpan.org
#
import unittest
from io import StringIO
from ..helperfunctions import _xml_to_list
from ...drawing import D... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
4dfad2ec527357f9654b531f2f4558bcd9651f47 | 2179ae6ea7da99fd58c968281f9dcdb28684214c | /ZhangYiwuHomework05Sec01.py | 99027497422680542f8c329692e5cfa1e4bceb30 | [] | no_license | Wintus/MyPythonCodes | 86d5aad9fabae0f6ed58b63741e44135bfee903e | 316d20c39c2de5960b094611c092805895037df7 | refs/heads/master | 2023-08-31T21:07:27.630010 | 2023-08-21T18:00:33 | 2023-08-21T18:00:33 | 29,950,620 | 0 | 0 | null | 2023-08-21T18:00:01 | 2015-01-28T04:32:30 | Python | UTF-8 | Python | false | false | 3,876 | py | # Project: Throw dice(ZhangYiwuHomework05Sec01.py)
# Name: Yiwu Zhang
# Date: 06/03/14
# Description: This program will let user throw five dices
from graphics import *
from random import randint
def textbox(center, text, width, height, win):
#calculate the p1, p2 from the center, width, he... | [
"132e84e5@opayq.com"
] | 132e84e5@opayq.com |
2971c2d688f374cbce35fdd93a9da5acb61919cb | 148082a4062cfa40e72a7ff435b0b6c6adaf7241 | /economic_analysis/economic_analysis/search_and_visualization.py | 6de8e6a1c85b605aba37fb0c936230df849e09bc | [
"MIT"
] | permissive | Nazar4ick/Homework-research | ccf3cba45718de7e4c100284c4b5a75b691b3411 | 6fce361ab2ed2fab5e367eab47d4b4a3b435d5d1 | refs/heads/master | 2022-07-24T01:06:53.733976 | 2020-05-18T05:23:13 | 2020-05-18T05:23:13 | 250,268,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,947 | py | import countries_data
import matplotlib.pyplot as plt
from custom_array import Array
def get_countries():
"""
gets information about all researched countries
:return: tuple
"""
ukraine = countries_data.get_ukraine()
bulgaria = countries_data.get_bulgaria()
hungary = countries_d... | [
"noreply@github.com"
] | noreply@github.com |
185916b8c6ed4dfc3a2880a20b9cdaf3fd075629 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/8/sV-.py | dbd279c3dd10a5a0e31f79253387b280f6d56b03 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
a818f026d27f1f4910ccaef03767ee79b55b13be | b4afd14e3b4e9cff0a99906a69587e348b243aeb | /website/ใ็ฎๆๆ็จใ/ๆฐๆฎ็ปๆ/ds_reference.py | ad8d28d89f29f5b7de173ab94ebdd97be12402cf | [] | no_license | zhankq/pythonlearn | d694df23826cda6ba662e852e531e96a10ab2092 | cb714fbb8257193029f958e73e0f9bd6a68d77f1 | refs/heads/master | 2021-12-16T13:51:23.381206 | 2021-12-03T01:13:36 | 2021-12-03T01:13:36 | 205,632,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | print('Simple Assignment')
shoplist = ['apple', 'mango', 'carrot', 'banana']
# mylist ๅชๆฏๆๅๅไธๅฏน่ฑก็ๅฆไธ็งๅ็งฐ
mylist = shoplist
# ๆ่ดญไนฐไบ็ฌฌไธ้กน้กน็ฎ๏ผๆไปฅๆๅฐๅ
ถไปๅ่กจไธญๅ ้ค
del shoplist[0]
print('shoplist is', shoplist)
print('mylist is', mylist)
print('Copy by making a full slice')
# ้่ฟ็ๆไธไปฝๅฎๆด็ๅ็ๅถไฝไธไปฝๅ่กจ็ๅฏๆฌ
mylist = shoplist[:]
# ๅ ้ค็ฌฌไธไธช้กน็ฎ
del mylist... | [
"zhankq@163.com"
] | zhankq@163.com |
a754b722541480ba073c1e0b7bb44a477bd042d7 | d74bb5500cf01c740c21b6764604d5355c6b2116 | /calculator.py | f4ae76f1064ed58f661b25159d16017790a9b9ef | [] | no_license | aarmlovich/assignments | 5d1a875703790662aa7852cb18375ea101f666d1 | 0141cedb7986dec8f2834893414d86be512ab483 | refs/heads/master | 2021-10-11T04:21:21.708724 | 2019-01-21T23:38:27 | 2019-01-21T23:38:27 | 164,486,400 | 0 | 0 | null | 2019-01-09T02:10:32 | 2019-01-07T20:01:04 | Python | UTF-8 | Python | false | false | 260 | py | def multiply(a,b):
return a * b
def add(a,b):
return a + b
def subtract(a,b):
return a - b
def divide(a,b):
return a / b
def square(a,b):
return (b ^ 2)
print("I'm going use the calculator functions to square (5+6)
x = (6^2)
print(x) | [
"aarmlovi@gmail.com"
] | aarmlovi@gmail.com |
cda2926915916edda8332981140a91b32000fea7 | e5e56b7309abd035ef9e33354392cbf8afbd8162 | /humidity-webthing.py | b0e2a6ce59d8df18eb0b48a266c6b4efdc62cc87 | [
"Apache-2.0"
] | permissive | ricklon/sensehat-webthing | 8b703c29d22693933f5d7bd9f8b27b3d1c20adf5 | f2f4982538cfbcae325b7b7603d95bc2ece56182 | refs/heads/master | 2020-04-07T06:29:17.978882 | 2018-12-02T21:17:48 | 2018-12-02T21:17:48 | 158,137,491 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,723 | py |
# Examples based on : https://www.raspberrypi.org/magpi/sense-hat-science-humidity/
import logging
from sense_hat import SenseHat
from datetime import datetime
from time import sleep
# Webthing imports
from asyncio import sleep, CancelledError, get_event_loop
from webthing import (Action, Event, MultipleThings, Prop... | [
"ricklon@fubarlabs.org"
] | ricklon@fubarlabs.org |
3e608ec9b1ecd2351434412bbe5356d49a6d3136 | 3f3dc90fd47b5ce490b42b6fd9f73663fcd70075 | /311Complaints.py | 23bd83b0bd5417276feaedbcabff307328544c30 | [] | no_license | catherine8224/Favorite-Neighborhood | 20cf2108007af30216a847d6016555a71430016e | c842c0a59c9a708dd7dede7decd0dc4ba1d8b9cb | refs/heads/master | 2020-04-14T03:56:21.985856 | 2019-01-07T07:15:35 | 2019-01-07T07:15:35 | 163,620,942 | 0 | 0 | null | 2019-01-07T07:15:36 | 2018-12-30T22:09:47 | null | UTF-8 | Python | false | false | 627 | py | import pandas as pd
import matplotlib.pyplot as plt
df = pd.read_csv("311_Service_Requests_from_2010_to_Present.csv")
##Count = df.groupby(['Complaint Type']).size().reset_index(name='counts')
##poop = Count.sort_values('counts', ascending=False)
##print(poop.head(10))
##df = df.groupby(['Complaint Type']).size().re... | [
"noreply@github.com"
] | noreply@github.com |
5bbd81b6220271c40f2bc0df4af86e81a6f67d38 | a8fa49c3a6c6d6a66a89089fdd013343f48b436e | /count.py | c58715b8be547e0c27acc75056cc92fa42edd5b9 | [] | no_license | avi527/Tuple | 007ec5b6e832c8fd94a418e7e28001d1d3347553 | 1fa58417a5a86bc541ae62bdcdacddc7f6592e1f | refs/heads/master | 2020-07-08T09:17:53.483953 | 2019-08-21T17:18:53 | 2019-08-21T17:18:53 | 203,630,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | # NOTE :- the count() method is used to return the number of elements with
#a specific value in a tuple
#programm to count the number of times letter 'x' appears in specified string
tub='asasasnbcsdjbhjhfaaaaaaabjsdbfdhvfdjhb'
print(tub.count('a'))
| [
"noreply@github.com"
] | noreply@github.com |
13b256f12a36c944c31f5fb6828c2695c5e48be0 | 3e7bd09504377e6c0b1079b5906173141d72169e | /morseCodeSend.py | 26b35672c980070cc52428676a252c038b9bf379 | [] | no_license | anniekroo/MorseCode | 7967eba8622a918b6813811557b0979a432d06a7 | b654387a0dbd35026dbf205d7b545ffa29dc7d80 | refs/heads/master | 2021-04-30T05:08:54.917134 | 2018-02-13T17:31:29 | 2018-02-13T17:31:29 | 121,409,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,984 | py | # Sending morse code signals through LED connected to the Raspi
# timing - start off with a variable time, change length of time for bit
# spacing -
# set it high for two bits and low for two bits (each ltter is 1 bit)
# one bit between letters and two bits between words
import time;
import RPi.GPIO as GPIO
t = 0.5;... | [
"annie.kroo@students.olin.edu"
] | annie.kroo@students.olin.edu |
1eed8b4f1c1aa85ee340a170e3c60fd72bdac31e | bf0c02385a9ef689bf97b258c0535e5a0fe4d279 | /pollsplus/forms.py | 9f014ace86ff4be2a35620dc726d98e4459dbb2d | [] | no_license | cometj03/PollsPlus | df9b9ef5905dd2827ed711133cd7edbb5ace619d | d1e6a17f469cd777b0fc74c22410cd22cad220d5 | refs/heads/master | 2023-02-05T08:18:21.339767 | 2020-12-22T10:44:31 | 2020-12-22T10:44:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | from django import forms
from .models import Post
class PostForm(forms.ModelForm):
class Meta:
model = Post
fields = ('title_text', 'file')
def __init__(self, *args, **kwargs):
super(PostForm, self).__init__(*args, **kwargs)
self.fields['file'].required = True | [
"tae.gun7784@gmail.com"
] | tae.gun7784@gmail.com |
f7c8f1c12a5b644fe553ebfdbf5c391252a507cd | 1f4852225cec8d9f954190bb36a2a5d586b3e8bd | /ITBooks/con/config.py | 9e37f40a5cefca8a3dae60173977ac91a5116492 | [] | no_license | crono/ITBooks | d8924d54e474b035a2cc54f69cf4f67a5004344a | 61648d3ab71a06f9754ebdc75e37d6d84d100605 | refs/heads/master | 2020-06-05T00:46:34.725762 | 2017-05-22T14:09:45 | 2017-05-22T14:09:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | import os
import sys
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
# Add ITBooks to path
sys.path.append(os.path.dirname(BASE_DIR))
# DATABASE
DATABASE_DIR = os.path.join(BASE_DIR, 'database')
SQLITE_FILE = os.path.join(os.path.join(DATABASE_DIR, 'sqlite'), 'books.db')
# The value is the equal of spider's n... | [
"xiaozizayang@gmail.com"
] | xiaozizayang@gmail.com |
c526e5c1ee94d653828fe70c9d5a9315d84ce0bc | 2017c95fef02dd69705056640f08bcd34b0a4ce7 | /01b_no_numbers.py | 217bf6911c76fc645a7cc847739668acf90bb58c | [] | no_license | willoughbys70590/01-recipes | 90e73e411d766002d61021fd701cd820596a0853 | 6d90e6c9ac504655564f6d0b8dcc253b2cb29f12 | refs/heads/master | 2021-01-01T23:35:11.770247 | 2020-04-26T23:17:26 | 2020-04-26T23:17:26 | 239,393,226 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | # Iterates through string...
# ask user for string
recipe_stacy = input("what is the recipe name? ")
error = "Your recipe name has numbers in it."
has_error ="yes"
# look at each character in string and if its a number, complain
for letter in recipe_stacy:
if letter.isdigit() == True:
print(error)
... | [
"60673309+willoughbys70590@users.noreply.github.com"
] | 60673309+willoughbys70590@users.noreply.github.com |
f802fd58fcee700b831bdb8136bc7f82023758d1 | a9b322a0d941825df73a71ad3de605978c9e778d | /virtual/bin/mailmail | 87be1a4b9000543ec5890a1ddb7f1d4876036be7 | [] | no_license | Elianehbmna/chaty-final | 172562d9d7399dc9230cc434d3c29be66a70f094 | 0b459168414da09566ea5b079a922dc1fa8694d0 | refs/heads/master | 2022-12-15T15:03:31.584467 | 2019-12-05T15:29:26 | 2019-12-05T15:29:26 | 223,245,043 | 0 | 0 | null | 2022-12-08T06:55:21 | 2019-11-21T19:07:55 | Python | UTF-8 | Python | false | false | 256 | #!/home/wecode/Documents/chat/virtual/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from twisted.mail.scripts.mailmail import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"elianehabimana3@gmail.com"
] | elianehabimana3@gmail.com | |
eb8bab4bad28dff6d31089e6d40eec757a60bac4 | d376c005d3b7cc73065a60bf62db0766e5da78ec | /URI_1060.py | c34900effd2e2f89e63d0647c43235da6fc705f6 | [] | no_license | Dairo01001/python_URI | 5355c6a47c90ae94727b16a0848ff6bc24f746b6 | d5f3fbb35e1528a8418859bb2aa3266fe872fe5d | refs/heads/main | 2023-09-04T10:35:35.058988 | 2021-11-05T00:28:30 | 2021-11-05T00:28:30 | 413,130,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | def main():
cont: int = 0
for i in range(6):
aux = input()
cont = cont + 1 if aux[0] != '-' else cont
print(cont, 'valores positivos')
if __name__ == '__main__':
main()
| [
"garcianaranjodairo@gmail.com"
] | garcianaranjodairo@gmail.com |
d2c912ca3b797afbea61156ca9868b86bf8e7456 | 9605946780bd7294a216b9fc740eed1c5cc942eb | /bo-analyser.py | 6207c3854e6b3a59612be2cd153d59c4f7bf986e | [] | no_license | Oleaeuropaea/Static-Analysis-Vulnerability | b910cfdcf574ac3e592925c8c850ef1eb80f6bdc | eef8d9108a6310905e6b2aad958e7ddced50efc6 | refs/heads/master | 2020-07-07T18:00:56.324119 | 2019-08-20T18:44:29 | 2019-08-20T18:44:29 | 203,431,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 780 | py | #!/usr/bin/python3
import sys
import json
from processor import Processor
class ClassEncoder(json.JSONEncoder):
def default(self, obj):
return obj.__dict__
def main(argv):
filename = argv[1]
if not filename.endswith('.json'):
print('python ./bo-analyser <program>.json')
print('./b... | [
"noreply@github.com"
] | noreply@github.com |
725ea7b6637e2b0187e91054b6dc387a7ab7141a | 594f60b6a536b831d0df38abea7f0ffc0a2fd3cb | /utils_xml/change_comments.py | 7cf6b3dfb4c62a9e7680dc1f63740306c8c9dee9 | [] | no_license | mh70cz/py | 1478439fe939076cca3a30be2f2d29fb4e8a3cd9 | 7fc23f2133624c787e1dd4856322d48251cc6f0e | refs/heads/master | 2022-08-12T06:08:30.720164 | 2022-08-08T23:16:19 | 2022-08-08T23:16:19 | 95,386,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,157 | py | """ konvertuje obsah elemntลฏ xs:documentation bez xml:lang do komentรกลลฏ """
from lxml import etree
f_name_in = "TradeRegisterListRequest_orig.xsd"
f_name_out = "TradeRegisterListRequest.xsd"
def main():
tree = etree.parse(f_name_in)
root = tree.getroot()
namespaces = {'xs': 'http://www.w3.org/2001/XMLSch... | [
"mh70@mh70.cz"
] | mh70@mh70.cz |
b7590d1db13d344f87703875cc4419fd26f5b6d4 | 7b2b076b216cde3dcb4caf1c930b196bd72e1a77 | /app.py | 43d3a97a38a9849494becb30c09b639146b1ab25 | [] | no_license | horisakis/docs_docker_get_started | 33b64de2757d8b2a9b6a7f4422367468551edc70 | 1a53fa921d5e9dd6bcd852aec4a329b78b08eb8f | refs/heads/master | 2020-07-23T06:27:06.355677 | 2019-09-10T09:15:31 | 2019-09-10T09:15:31 | 207,472,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | # -*- coding: utf-8 -*-
from flask import Flask
from redis import Redis, RedisError
import os
import socket
# Redis ใซๆฅ็ถ
redis = Redis(host="redis", db=0, socket_connect_timeout=2, socket_timeout=2)
app = Flask(__name__)
@app.route("/")
def hello():
try:
visits = redis.incr("counter")
except RedisErro... | [
"seiji.horisaki@gmail.com"
] | seiji.horisaki@gmail.com |
11bfe4747e741e5997ae8cf7b87271c553026bcd | e7b4150f8b2155a563ec64a6594ebf04f5489344 | /Git/GitHelper.py | 7058fccd78e69650361da58656d42d9f46919b4c | [] | no_license | AlphaSirius/RepositoryMerger | af2aaa74b7c0554abfd9679d8bf881a133a920a7 | 7ca1a3d8c4e52dfd0db37f5a086e5e869f05490f | refs/heads/master | 2020-12-02T08:10:38.092465 | 2017-09-26T07:54:52 | 2017-09-26T07:54:52 | 96,782,356 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,251 | py |
import subprocess
from subprocess import check_output
from Git.Log.LogHelper import info, verbose, verboseList
from Git.Shell.ShellHelper import executeCommandOnShell
masterBranchName = "master"
import os
import time
def checkValidityOfBranch(branchName, repoPath):
result = executeCommandOnShell("git branch -a... | [
"sunil8sahu@gmail.com"
] | sunil8sahu@gmail.com |
d572a6814773a8b7f6c85a0e354e12f8655e0a35 | c4ee4a9d28425aa334038ad174c7b1d757ff45db | /py/trawl/ProcessCatch.py | c12d30c7ce3a588dd4ade0e94526c4bea1bcaaf5 | [
"MIT"
] | permissive | nwfsc-fram/pyFieldSoftware | 32b3b9deb06dba4a168083a77336613704c7c262 | 477ba162b66ede2263693cda8c5a51d27eaa3b89 | refs/heads/master | 2023-08-03T07:38:24.117376 | 2021-10-20T22:49:51 | 2021-10-20T22:49:51 | 221,750,910 | 1 | 1 | MIT | 2023-07-20T13:13:25 | 2019-11-14T17:23:47 | Python | UTF-8 | Python | false | false | 56,327 | py | __author__ = 'Todd.Hay'
# -------------------------------------------------------------------------------
# Name: ProcessCatch.py
# Purpose:
#
# Author: Todd.Hay
# Email: Todd.Hay@noaa.gov
#
# Created: Jan 10, 2016
# License: MIT
#--------------------------------------------------------------... | [
"will.smith@noaa.gov"
] | will.smith@noaa.gov |
32af9934c3684fece98b2a567b106cb16cc30b4c | 605d63d23bc2e07eb054979a14557d469787877e | /atest/testdata/variables/same_variable_file_names/different_variable_files/suite3/subsuite1/variable.py | 54f1c9224cb5c5536b9cbabadb8493758f6a6413 | [
"Apache-2.0",
"CC-BY-3.0"
] | permissive | robotframework/robotframework | 407b0cdbe0d3bb088f9bfcf9ea7d16e22eee1ddf | cf896995f822f571c33dc5651d51365778b1cf40 | refs/heads/master | 2023-08-29T03:19:00.734810 | 2023-08-27T18:14:48 | 2023-08-28T18:14:11 | 21,273,155 | 8,635 | 2,623 | Apache-2.0 | 2023-09-05T04:58:08 | 2014-06-27T11:10:38 | Python | UTF-8 | Python | false | false | 38 | py | SUITE = SUITE_31 = "suite3.subsuite1"
| [
"peke@iki.fi"
] | peke@iki.fi |
c62e8b82b16c1d7d6bb000b63b61a3cb931b975c | bd02b45c9131379c1059ef8190b3251fe9578c35 | /Part 2 - Regression/Section 8 - Decision Tree Regression/Decision_Tree_Regression/decision_tree_regression.py | 11ab23753385d90828c99ebf2b66d595b95be534 | [] | no_license | katchme88/models | e85b26979d4bb24a4f1657ce2256cdc5d82c9da2 | e81009d37d4cddcc3dc79475118d4ec1babfe87d | refs/heads/master | 2020-06-21T13:17:39.750459 | 2019-07-17T21:14:08 | 2019-07-17T21:14:08 | 197,462,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,540 | py | # Decision Tree Regression
# Importing the libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Importing the dataset
dataset = pd.read_csv('Position_Salaries.csv')
X = dataset.iloc[:, 1:2].values
y = dataset.iloc[:, 2].values
# Splitting the dataset into the Training set and Test set
"... | [
"talha@liveblockauctions.com"
] | talha@liveblockauctions.com |
f13d5c9080a5c0a35528af52c3526818137fe27e | 47386073517c1d5bd0d6e96ded48e0bbb9cdd7a4 | /src/study_cookbook/10ๆจกๅๅๅ
/่ฟ่ก็ฎๅฝๆๅ็ผฉๆไปถ.py | 15c8839b803b0f8f296146c8eb820a6d8421bab1 | [] | no_license | halysl/python_module_study_code | f733eba00de75ebd1cdc9c1e9e36f3a7eee03c93 | 189fd3878b0abe68fd56e11357e88facdb4a186f | refs/heads/master | 2022-07-21T06:51:32.129654 | 2021-08-05T09:14:15 | 2021-08-05T09:14:15 | 148,780,484 | 1 | 0 | null | 2022-07-06T20:26:28 | 2018-09-14T11:39:21 | HTML | UTF-8 | Python | false | false | 277 | py | # -*- coding: utf-8 -*-
"""
myapplication/
spam.py
bar.py
grok.py
__main__.py
"""
"""
bash % python3 myapplication
"""
"""
bash % ls
spam.py bar.py grok.py __main__.py
bash % zip -r myapp.zip *.py
bash % python3 myapp.zip
... output from __main__.py ...
"""
| [
"halysl0817@gmail.com"
] | halysl0817@gmail.com |
12bc855aadc0ed74e0322b14d8cacc2223dd6959 | 82f83a3897c940f695d348fd895af9158f331c34 | /lab2.2.py | 0a99eff9225ede162a0c39689deae9f7283871ed | [] | no_license | sTorba24/laboratory1 | 617b80b46de36c91840ebdb60007e584320d64af | a6ec96bd8fbf41004720be60f4c237addb006f9f | refs/heads/master | 2020-09-08T07:24:41.032389 | 2019-11-11T20:46:24 | 2019-11-11T20:46:24 | 221,061,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 916 | py | """2.ะะฐะฝะพ ััะปะต ัะธัะปะพ N(>1).ะะธะฒะตััะธ ะฝะฐะนะฑัะปััะต ะทะฝะฐัะตะฝะฝั ัะท ััะปะธั
ัะธัะตะป K , ะดะปั ัะบะธั
ััะผะฐ 1+2+โฆ+ะ ะฑัะดะต ะผะตะฝัะต ะฐะฑะพ ะดะพััะฒะฝัั N , ั
ัะฐะผั ัั ััะผั."""
import re
re_integer = re.compile("^[-+]{0,1}\d+$")
def validator(pattern, promt):
text = input(promt)
while not bool(... | [
"noreply@github.com"
] | noreply@github.com |
e21aec5d537bc04c4929f029b1ac0aa67ad21410 | efb4bdb3f1d2b0c87c4b6120a06e03fa28df3b15 | /exercise9/9-2/public/test_library.py | 2ec89620ea73b729be6237e8c7da044b60884177 | [] | no_license | pignuante/ETH | 7ddbee9ea1eaadcc111b9eb30ee84b74b653d7b7 | 5386e424bc1cdb9693228bac80f221bbefc38f12 | refs/heads/main | 2023-01-20T08:16:41.112242 | 2020-12-02T07:39:54 | 2020-12-02T07:39:54 | 315,497,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,412 | py | #!/usr/bin/env python3
from unittest import TestCase
from public.library import Library
from public.movie import Movie
from public.moviebox import MovieBox
class LibraryTest(TestCase):
def test_repr_movie(self):
actual = repr(Movie("T", ["A", "B"], 123))
expected = 'Movie("T", ["A", "B"], 123)'... | [
"syaoran215@naver.com"
] | syaoran215@naver.com |
2a5148f46a6509ada6a2311abb815eaa87a49e5a | 7bc54bae28eec4b735c05ac7bc40b1a8711bb381 | /src/tlm/data_gen/robust_gen/gen_runner2/pairwise_desc_neg_major.py | 5e2915d046f6499f00a526baceaf2ea5ad156de6 | [] | no_license | clover3/Chair | 755efd4abbd5f3f2fb59e9b1bc6e7bc070b8d05e | a2102ebf826a58efbc479181f1ebb5de21d1e49f | refs/heads/master | 2023-07-20T17:29:42.414170 | 2023-07-18T21:12:46 | 2023-07-18T21:12:46 | 157,024,916 | 0 | 0 | null | 2023-02-16T05:20:37 | 2018-11-10T21:55:29 | Python | UTF-8 | Python | false | false | 678 | py | from functools import partial
from data_generator.job_runner import JobRunner
from epath import job_man_dir
from tlm.data_gen.adhoc_datagen import LeadingN
from tlm.data_gen.robust_gen.robust_generators import RobustPairwiseTrainGen2
from tlm.data_gen.run_robust_gen import RobustWorker
def main():
max_seq_length... | [
"lesterny@gmail.com"
] | lesterny@gmail.com |
e28025510dfda22da1bec3ee0cf73ea95800a66f | 91e1abcf2ef0aaa20f3e426d1dfc7d81efcd0b3c | /servers/chat.py | 383babc3f63a653ed5bc0a07aebcd55887aa5fbb | [] | no_license | Ohmfrh/Python-WebSocket | 6272f8dcaf926e22d83a827041511ebf1a85ea83 | e55cbd68632068b635cb84dcc1b85fcfdbecdce4 | refs/heads/master | 2021-01-18T09:57:29.699165 | 2016-05-04T17:16:48 | 2016-05-04T17:16:48 | 44,284,509 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,335 | py | import MySQLdb
from twisted.protocols import basic
from twisted.internet import reactor, protocol
import json
modules = []
class MyChat(basic.LineReceiver):
def connectionMade(self):
self.factory.clients.append(self)
print "Got new client!"
def connectionLost(self, reason):
print "Lo... | [
"dancassig@gmail.com"
] | dancassig@gmail.com |
caeb7a7a1f1adb6c1f1886cc8d8394efc67d7d5c | edfc2f6a7cf90ee0e3acbe68e22512e6b40059ab | /6/6.py | a97fc1dff489d7c34ca8e6685b14ebf9a8afc832 | [] | no_license | tangyao0792/ProjectEular | 43fd9908213cc5a09519ea701928127ea59146b3 | a65d1066c86126968929ed967763a4e69977b128 | refs/heads/master | 2021-01-01T15:40:07.345083 | 2013-01-11T16:04:26 | 2013-01-11T16:04:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | sum1 = 0
sum2 = 0
for i in range(1 , 101):
sum1 = sum1 + i*i
sum2 = sum2 + i
sum2 = sum2 * sum2
print sum2 - sum1
| [
"tangyao0792@gmail.com"
] | tangyao0792@gmail.com |
20d3d2630c7722694a7e49fd13bcf76f6e1258f1 | 79d9719097b479504c0ed814ae1e13a3c466d2d8 | /arrays/general/gas_station.py | 9e17a4a334bbd25fdb3f0993b328a80708a699a7 | [] | no_license | ErickMwazonga/sifu | 70ca45e173c0b9e45e547c9d210fe54df0e9ac51 | 9cc461c6f0183837620c8b2bb02a658771f77e13 | refs/heads/master | 2023-09-01T03:20:19.667944 | 2023-08-31T11:08:20 | 2023-08-31T11:08:20 | 243,814,515 | 34 | 10 | null | null | null | null | UTF-8 | Python | false | false | 1,477 | py | '''
134. Gas Station
Link: https://leetcode.com/problems/gas-station/
There are n gas stations along a circular route, where the amount of gas at the ith station is gas[i].
You have a car with an unlimited gas tank and it costs cost[i] of gas to travel from the ith station to its next (i + 1)th station.
You begin the... | [
"emwazonga@microsoft.com"
] | emwazonga@microsoft.com |
59ace92504ab327c25eabe6c70872dbd2485e32e | e1228380bdebcb3cfab514d3b556ac97a424584e | /venv/bin/jupyter-run | db2bc5800da3c1752288e5b6fbc93e190d6ab7ff | [] | no_license | naveenkunareddy/financethroughpython | 62b7f6c1467fece9e245f9f7c0de20d6e9246807 | f55b388932a46e282841745517905ae1c3629720 | refs/heads/master | 2020-03-20T00:53:21.101294 | 2017-12-12T10:17:18 | 2017-12-12T10:17:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | #!/Users/dsr/Documents/HustleProjects/financethroughpython/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from jupyter_client.runapp import RunApp
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(RunApp.launch_instance())
| [
"dmitry@rastorguev.co.uk"
] | dmitry@rastorguev.co.uk | |
8f5b9e5815ed9447dbdc3839d88f9081a003ef60 | c462a452ecbb978683f9b55a7863f2ca99050426 | /model.py | 31823da86196d47d7c199cad4c6a55614ffacf8e | [] | no_license | mobileraj/topicModel | b3d1c026e715b6611bde6ab3436c9be0971424cd | 5ac4de351250ebc760a9c4b192eb46d3168b542d | refs/heads/master | 2021-01-10T06:07:14.064524 | 2016-01-01T00:30:07 | 2016-01-01T00:30:07 | 48,590,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | from nltk.tokenize import RegexpTokenizer
from stop_words import get_stop_words
from nltk.stem.porter import PorterStemmer
from gensim import corpora, models
import gensim
tokenizer = RegexpTokenizer(r'\w+')
en_stop = get_stop_words('en')
p_stemmer = PorterStemmer()
doc_set=[]
for i in range(1977,2015):
print 'on '... | [
"schroskat@gmail.com"
] | schroskat@gmail.com |
cec0630d7b02e3552f90a1868e3f887d46ada32c | 141aa0e3cf759234fd3828d662b1de1cf3252c98 | /p2psercher.py | 96ac0e0d183e4d354e6a40ead7f20d70e6c47311 | [] | no_license | somnusx/p2psercher | dcf34288da1337a26d42f8d9b8821b503f2d1c5a | 80d13fcf6af6e8eeb2215374728993de7e23daeb | refs/heads/master | 2021-01-19T04:26:05.612008 | 2016-07-14T10:11:03 | 2016-07-14T10:11:03 | 63,325,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,510 | py | import re
import urllib.request
from tkinter import *
master = Tk()
e = Entry(master,width=80)
e.grid(row=0, column=1,padx=5,pady=5)
text = Text(master)
text.grid(row=1, column=1)
def so():
sou = urllib.request.quote(e.get())
url = "http://api-jp02.smartmiu.com:184/s.py/op_search?word="+... | [
"noreply@github.com"
] | noreply@github.com |
dcb8b926b77f0f9e46e7d838300cd7968dd643ba | b8f0b01b2ccbffacb86122558bc6390b2551e83b | /interface.py | 49a02623e20f8218d293380ea9bd3bea95286b9c | [] | no_license | TyeYeah/LaTeXfromExcel | 47e1b88e0a186f100453c4376d1716871e0a0d5d | 782ef5fe741f57e5832464dd10e992ac585d785c | refs/heads/master | 2020-12-12T08:18:42.385056 | 2020-06-27T03:37:42 | 2020-06-27T03:37:42 | 234,088,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,009 | py | #!/usr/bin/python3
# -*- coding:utf-8 -*-
from writeTable import *
from readTable import *
import tkinter as tk
from tkinter import filedialog, dialog, messagebox
import os
file_path = ''
def openfile():
global file_path
file_path = filedialog.askopenfilename()
print(file_path)
def outputCSV():
glob... | [
"noreply@github.com"
] | noreply@github.com |
277e031bbe4eb0de0c787b793ee12b9c9d314013 | 554a9b8011f8379a3f66e8f99fab320d604241e2 | /2026_Arvore_de_Natal/2026.py | 9692ef9ee7fd039928d992f64342d3f06c002d90 | [] | no_license | estherhoffmann/URI | e0ada72d3d541e345a7e890f38045635f726747a | a8ac10c3e56b351392b468acd7a0de04dfe72559 | refs/heads/master | 2020-10-01T04:24:58.846666 | 2019-12-12T00:56:38 | 2019-12-12T00:56:38 | 227,454,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,740 | py | # Esther Calderan Hoffmann - RA: 743529
def prog_dinamica_mochila(num_itens, valor_itens, peso_itens, capacidade):
matriz_valores = [[0 for i in range(0, capacidade+1)] for j in range(0, num_itens+1)]
for i in range(1, num_itens+1): #acrescento um item de cada vez
for j in range(0, capacidade+1): #vou... | [
"esthercalderan@gmail.com"
] | esthercalderan@gmail.com |
5633baca639401d57b615c992bb2ac1c9d3b7b2f | bf509ac391016e3f0f70e52b7ade9cdead291ef4 | /zock/ns3-book/local/exp04/wscript | 7b2bb10f34d1fab9a57e4553e3994512103386a9 | [] | no_license | 8Uchi29/ns3 | 7360f44621f6924166aebf35bd76750948ac8430 | 7bb5e7805b2346c80fd5d854fb921cea784e9765 | refs/heads/master | 2016-08-04T20:12:36.157439 | 2015-02-01T05:11:57 | 2015-02-01T05:11:57 | 29,118,849 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 512 | ## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
def build(bld):
obj = bld.create_ns3_program('exp04-TcpFlowMonitoring',
['core', 'point-to-point', 'point-to-point-layout', 'applications', 'internet', 'flow-monitor'])
obj.source = 'exp04-TcpFlowMonitoring.cc'
obj = bld... | [
"ryo@crunchbang.(none)"
] | ryo@crunchbang.(none) | |
bcfcfae6effa7e2b3cfddb5ad1e2af7d4f40caa6 | 09d564aaab98f72dce6585e78a0642c9fe3539f4 | /ๆฅๅธธ็ปไน /python_exercise_20181124.py | 77a1eb50c86981a2e63439c1aafb739e42afc032 | [] | no_license | everydayxy/xy_py | 4b983b4bccc843602f1ea0b1d5ea9576119604bf | 08b314e7ecb10e13394aa93b92084c53596834f3 | refs/heads/master | 2020-04-03T08:52:44.729729 | 2019-09-20T15:05:35 | 2019-09-20T15:05:35 | 134,683,779 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 803 | py | # def aaa(n):
# count = len(str(n))
# w = 10 ** (count-1)
# for _ in range(count):
# print(n // w)
# n %= w
# w //= 10
#
# num = int(input('่พๅ
ฅไธไธชๆฐๅญ: '))
# aaa(num)
# #่พๅ
ฅไธไธชๆฐๅญ๏ผๆๅฐๆๅคงๅผ
# max1 = -100000000000000000000
# while True:
# try:
# num = int(input('่ฏท่พๅ
ฅไธไธชๆฐๅญ๏ผ'))
# ... | [
"everydayx@163.com"
] | everydayx@163.com |
c28b69ee8ef4c7d7151653ef49a31bbed3d90abb | 87fa4da0be382087b9c950f3a56c95e8401519df | /codes/layers.py | 2025a0998f1f28a6c288fd1a83c8a2d99af04d53 | [] | no_license | AmadeusChan/CNNOnMNIST | 713f10f97db99842f28d0315cb5c6d2d1c544581 | 0f9687336ac6f9f6af5b86f4a007ecf1c8a38de6 | refs/heads/master | 2021-05-08T01:29:05.781955 | 2017-10-25T13:02:07 | 2017-10-25T13:02:07 | 107,856,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,545 | py | import numpy as np
from functions import conv2d_forward, conv2d_backward, avgpool2d_forward, avgpool2d_backward
class Layer(object):
def __init__(self, name, trainable=False):
self.name = name
self.trainable = trainable
self._saved_tensor = None
def forward(self, input):
pass
... | [
"greenclouds@foxmail.com"
] | greenclouds@foxmail.com |
6cc1e406d5e8c860b574719a113a6b490feddbd8 | 68359ee23312e47f18399b3e95b9dc9bb02c1a51 | /utils/my_data_loader.py | e458fce94f553626d380abd0c62ca77fe43d6ecb | [] | no_license | RoyceMao/DSFD | 6504de2e47e263a5e93f4f8ef957a3059581a1c9 | 1c6584f87aa5371fff0b6af2d7ad5d01919810f1 | refs/heads/master | 2020-05-30T06:04:12.879937 | 2019-11-26T06:32:50 | 2019-11-26T06:32:50 | 189,571,395 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,612 | py | # -*- coding:utf-8 -*-
"""
File Name๏ผ my_data_loader.py
Description : ๆฐๆฎๅ ่ฝฝ
Author : royce.mao
date๏ผ 2019/06/13
"""
import torch
import random
import traceback
import numpy as np
import skimage
import math
from PIL import Image
from skimage import io
from torch.utils.data import Dataset... | [
"563422264@qq.com"
] | 563422264@qq.com |
10a39d56ddb328c6d322c5856d31a5d373aa2ed8 | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/model_control/detailed/transf_RelativeDifference/model_control_one_enabled_RelativeDifference_ConstantTrend_Seasonal_DayOfWeek_LSTM.py | d3d6f857ae0191e4610ab1abbda44e021c1aa868 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 175 | py | import tests.model_control.test_ozone_custom_models_enabled as testmod
testmod.build_model( ['RelativeDifference'] , ['ConstantTrend'] , ['Seasonal_DayOfWeek'] , ['LSTM'] ); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
263bdb79183e6a8852db732e9fe310df072166bd | b2301365d220ff0295b8beddbed38b0581f9610d | /Django/fs_books_prj/apps/books/migrations/0001_initial.py | 1850bb0485a27325ab15bd0c528dafe99ff4abef | [] | no_license | JoA-MoS/Python | db246a5ff2201c6ef1dfb9d9b0fd8a37e1d7c46d | 4547c2667f3eaf0a001532bb2b103aab3c344fbe | refs/heads/master | 2021-08-16T11:18:20.420868 | 2017-07-21T05:52:18 | 2017-07-21T05:52:18 | 96,125,892 | 0 | 0 | null | 2021-06-10T18:40:09 | 2017-07-03T15:34:52 | Python | UTF-8 | Python | false | false | 676 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-07-19 19:21
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Book',... | [
"justin.r.dietz@gmail.com"
] | justin.r.dietz@gmail.com |
92d3cc7dded89829e257acc53e820d4f8b3db58b | f8751f1301ac482f8dec55616cdc3f8f7507092d | /hihi/app_li/urls.py | fee99a9d44e99dfa47783a5ac983b71a3fd78de9 | [] | no_license | dragon-final-project/django-prac | 561ae97c2a8df388246039ee78e2f50e9a3b5963 | 8dcc37d61deefb9c668594cde34284308d89c34e | refs/heads/master | 2020-03-22T17:40:04.076909 | 2018-07-22T12:33:54 | 2018-07-22T12:33:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | from django.urls import path
from .views import secreat
urlpatterns = [
path('', secreat),
]
# URL/app/show/
| [
"apple@appledeMacBook-Air-2.local"
] | apple@appledeMacBook-Air-2.local |
f96585bae9d1f54ec1af98180b5f27849eba8e8e | c1eb1506ca2a3ab61795d0f9a5f399e7ac0b67fa | /Solve_For_X.py | a710c2163b8e16acf90e8e25ae282f95f671a139 | [] | no_license | studiou/Human-Factors---Proximity---Data-collection | e145c52a5995839bfc2fff2e525f27a82b5bee55 | 8b8a37eeba9c2f00efd49e4093de85cdd15ad6a2 | refs/heads/master | 2021-09-14T04:26:04.627412 | 2018-01-23T19:59:57 | 2018-01-23T19:59:57 | 114,662,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | __author__ = 'joel'
import math
def solveforx(y, angle):
if angle > 0:
#x=y*tan(angle)
x = y*(math.tan(math.radians(angle)))
else:
x = 0
return (x) | [
"studiou.ge@gmail.com"
] | studiou.ge@gmail.com |
7045d25d019bca79616a47e6d947e80e72753e89 | 9a7c156365d5c80b989b93c4201958936876e245 | /Scientia/server.py | ba91de564bb84af4b25f246b1e529b3f087d35de | [] | no_license | vijay4004/Scientia | adc4189a72a2e766a3b7ca0129141222df1a5c84 | 3e4b519cdc8388349283d86325837c17e2c719fd | refs/heads/master | 2022-09-26T00:30:40.105045 | 2020-06-04T09:07:08 | 2020-06-04T09:07:08 | 269,308,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,405 | py | from flask import Flask, render_template, request, jsonify
from flask_restful import Resource, Api
from flask_mysqldb import MySQL
app = Flask(__name__)
api = Api(app)
# app.config['MYSQL_HOST'] = 'localhost'
# app.config['MYSQL_DATABASE_PORT'] = '3306'
# app.config['MYSQL_USER'] = 'root'
# app.config['MYSQL_PASSWOR... | [
"vijayyadaviitism@gmail.com"
] | vijayyadaviitism@gmail.com |
683c8168877dd2b6b8a0c8527e1f7de813a4bdfd | 4c6e0771833c087876b91962ca0f7c2ef821daa4 | /numscrypt/random.py | 1eecb29cb5e905085a0f3250913c2166291b3135 | [
"Apache-2.0"
] | permissive | fangbei/Numscrypt | fb8a57d57ee1fad39ed9789f4e6241ae152ca563 | cf92b8b8edc57b08d24e8db482b5ea9ee8f494cd | refs/heads/master | 2021-01-17T05:18:43.257510 | 2016-03-30T10:27:13 | 2016-03-30T10:27:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | import numscrypt as ns
def rand (*dims):
result = ns.empty (dims, 'float64')
for i in range (result.data.length):
result.data [i] = Math.random ()
return result
| [
"info@qquick.org"
] | info@qquick.org |
92aece0e84d6fa231abb8862e3d9d091bd2e62d0 | 390e4715e3a3b4ce81213fd2508ba875b54281a8 | /linear regression.py | a6f66548b48898d94ad12cba877a492baffce1c9 | [] | no_license | km-mnk/machine-learning | 276685e7e10588b4e5cc367dc2447b29c05de5d0 | 9bff2fafacf71145a32f355af8012af58a28c906 | refs/heads/master | 2020-04-22T11:00:13.607535 | 2019-07-08T10:36:53 | 2019-07-08T10:36:53 | 170,324,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,044 | py | import pandas as pd
from sklearn.linear_model import LinearRegression
data=pd.read_csv('/home/cbit/Desktop/gpa.csv')
print(data.head())
X=data.iloc[:,:-1]
y=data.iloc[:,1]
from sklearn.model_selection import train_test_split
X_train, X_test, y_train, y_test = train_test_split(X, y,test_size=0.2, random_state=0)
... | [
"noreply@github.com"
] | noreply@github.com |
6d60724b38aff1eb7a74f5a40651d5aacb957795 | 76f987c964b64a4a5ab5b32e0b120d716ac51d50 | /examcopy.py | 3566062215f05741a596f13ddc349dec7bb4c856 | [] | no_license | Anurag-Srivastav/python-gui-test-application | 550bd98adc54210773b52bb497742cfc57aeef4b | 613438956e6488b66de9b89958613c15042a25e0 | refs/heads/master | 2022-04-14T07:50:30.992233 | 2020-04-08T21:09:43 | 2020-04-08T21:09:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,811 | py | from tkinter import *
import sqlite3
from tkinter import messagebox
conn=sqlite3.connect("db/questions.db")
c=conn.cursor()
##################VARIABLES########################
i=1
m=0
r=0
un=0
f=0
################################FUNCTIONS#####################################
def new():
box=... | [
"noreply@github.com"
] | noreply@github.com |
92fa8e75603a7fc0820ed907b0d952195f975939 | aeca07bdf3b6a335820c61348547a616a5962d16 | /store/migrations/0002_auto_20200807_1918.py | e60ac5b6b9ffcf48795780bc0adcfbf79383919e | [] | no_license | dhruv-shindhe/Fipple_V1 | 43b4308f759a838a31a1816bd8d93f0a3ab5b5e9 | 020f2f15f6526661c6b1853771a2bb0d1bbef8c6 | refs/heads/master | 2023-02-06T12:34:31.554238 | 2020-12-20T18:21:51 | 2020-12-20T18:21:51 | 323,093,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | # Generated by Django 3.1 on 2020-08-07 13:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('store', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='store',
name='image',
field=m... | [
"dhruv.shindhe@gmail.com"
] | dhruv.shindhe@gmail.com |
f1acab3516a1d6e70fe5b6edf8b426d164c1607f | 4fc987d114245483e5bfffcec9f3202f673aac09 | /Programs/split.py | c6637b2f743ccce095db052059f5d2fa3c5053dc | [] | no_license | pvenkatesh786/Python | d041f730f78804edd1e6d87ab530bd915ea132dd | 563400a7a712f4481365a9d67e9bb38e47e88f37 | refs/heads/master | 2020-04-12T03:08:23.715916 | 2017-03-17T05:56:46 | 2017-03-17T05:56:46 | 60,979,728 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 108 | py | #!/bin/python
str = raw_input("Please Enter :")
lst = str.split(',')
print lst
tpl = tuple(lst)
print tpl
| [
"padalavenkatesh786@gmail.com"
] | padalavenkatesh786@gmail.com |
05d1080f0efc343e6871e2ecd7d7aa499ab9b77b | 1b8118cf2744df4ee6f424123c95ec52d4329ff0 | /KritaToSpine/KritaToSpine.py | 8a01309873a46347353e36ea060d64baf5d5f032 | [] | no_license | DanMcLaughlin/krita-unofficial-spine-export | 149e5df9e80c14af819c49be4806c6c6e4dda285 | fe8c86fe0abe309f745bb370133f35439dfc0d59 | refs/heads/master | 2020-04-27T18:01:44.398096 | 2019-05-27T15:21:40 | 2019-05-27T15:21:40 | 174,550,590 | 15 | 5 | null | 2019-03-08T14:20:20 | 2019-03-08T14:20:20 | null | UTF-8 | Python | false | false | 1,260 | py | # Spine export
# Forked from Unofficial Spine Export (https://github.com/chartinger/krita-unofficial-spine-export)
# Based on the Esoteric Software Photoshop plugin, and the Spine Document Tools plugin
# uidocumentools.py contains the main window and logic, including tabs for applying effects on export
# SpineExpor... | [
"dan.mclaughlin@gmail.com"
] | dan.mclaughlin@gmail.com |
d9053e4b81214feef41611784d616315dac60341 | d7f4e730935cedfc3b744a5806178388d8c9acde | /bad_code_from_hell/main.py | 3847eaf0f0029c8e83094ac2457befe563dcf08e | [] | no_license | SaraMederos/pystarters | 18eeddbb0a6ea26ac48c6ad1f346c5207a99c46a | fe29858b25d21d8ba8be5d82e198a5839a49494f | refs/heads/master | 2023-03-18T03:31:31.652607 | 2018-11-13T20:57:22 | 2018-11-13T20:57:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,670 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from skimage.exposure import rescale_intensity
def mk_background(vname, n=1000, from_frame=0):
'''
Creates a backround image from the average of 'n' frames
from video 'vname'.
Returns an array of the same size as each frame in vname.
'''
my_vid = ... | [
"c.rousseau@ucl.ac.uk"
] | c.rousseau@ucl.ac.uk |
a7176baef4d77bbf660c398d339c90296cd2f6b7 | f78713bf8922720e1100d3cf28731ed57d23489f | /Question_25.py | a612ca1b593787be481686213042df1413c8c6b2 | [] | no_license | Pranay2309/Test6_Corrections | 672b4c2a56550440e247eb4bfa1f8ebe61ed3d72 | 8915d53710080701a6ae9c146857c750a9af9c63 | refs/heads/master | 2022-12-09T04:40:27.432380 | 2020-09-16T06:36:13 | 2020-09-16T06:36:13 | 295,944,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47 | py | print('abcd'.translate({97:98,98:99,99:100}))
| [
"pranayyesekar2309@gmail.com"
] | pranayyesekar2309@gmail.com |
9346e299b29cdb9fc9e6cd49bfae383ada7dd18e | 957ab2916bb75edc78b9d7598b4f890b80687ea8 | /core_library/game/file_processing.py | 54792eabf69578013dbe142f86df137299ab7598 | [] | no_license | doug3230/Slayer | 9e91f5db01702c206c3d52460bfb880691d3eb6a | 1dd7e72779e060c397f1e68b829004e147e15f84 | refs/heads/master | 2016-09-06T03:32:53.914322 | 2014-11-01T07:27:12 | 2014-11-01T07:27:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,956 | py | '''
Created on Oct 25, 2014
@author: Richard
'''
import pygame, customization
from pygame.freetype import Font, SysFont
def path_to_file(dir_name, file_name):
if dir_name:
return "{0}/{1}".format(dir_name, file_name)
else:
return file_name
def path_to_image(file_name):
retu... | [
"doug3230@mylaurier.ca"
] | doug3230@mylaurier.ca |
3bf1dfaa5339532ee42b32558cc1c9e8bb8157b2 | 9142f290c2ca89e53ced306804fece05043c3aa0 | /py/trash/bk0/908_predict_1026-1.py | fc46045263cfc0793b058c3a73dbecb9567b93fc | [
"MIT"
] | permissive | norihitoishida/PLAsTiCC-2018 | aea5ecff5c06c46e3097673228054726fb1cc972 | f7f3e86fd3b01145de6f96ebe9a7bdad49439956 | refs/heads/master | 2021-10-09T00:19:27.389096 | 2018-12-19T06:29:55 | 2018-12-19T06:29:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,969 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Oct 26 15:46:49 2018
@author: kazuki.onodera
"""
import numpy as np
import pandas as pd
import os, gc
from glob import glob
from tqdm import tqdm
import sys
sys.path.append(f'/home/{os.environ.get("USER")}/PythonLibrary')
import lgbextension as ex
imp... | [
"kazuki.onodera@dena.com"
] | kazuki.onodera@dena.com |
32fdd1f1965526ea32fe436729d26b79174c6fb1 | 6097ddb284046a0fe8fd351e3bc792bec062b751 | /tensorflow/python/keras/saving/saved_model.py | def4f21f1e0f5a88e2f5ce79acaae89b1e128424 | [
"Apache-2.0"
] | permissive | siju-samuel/tensorflow | 5f09a0b263e0d8cb2fc2b0af22ed8093315deb28 | 0ac663d9a78ab2c630173fd7b0cc63fedf1526e2 | refs/heads/master | 2022-10-29T20:54:50.896917 | 2019-09-30T05:05:17 | 2019-09-30T05:05:17 | 129,046,287 | 0 | 0 | Apache-2.0 | 2022-10-04T23:45:00 | 2018-04-11T06:37:07 | C++ | UTF-8 | Python | false | false | 62,507 | py | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"sijusamuel@gmail.com"
] | sijusamuel@gmail.com |
6a1da1441b1539fa1f410d785c92f7a42e973ae5 | 99dc3d89303c1d43fada889dd074c1ed559fb85d | /qj_info.py | d557c5bbbd01f827845ae3482903489a39c7bcfe | [] | no_license | durian/Patterns | 3c66dab6b4ca9025f021c57ecf970e329da69ff8 | 9c2a161df45b0370d2623a296b1e5e460543c9e8 | refs/heads/master | 2020-06-27T01:03:49.709062 | 2019-08-01T12:16:08 | 2019-08-01T12:16:08 | 199,805,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,364 | py | #
# -----------------------------------------------------------------------------
# Example:
# python3 qj_info.py -f allqjs_b3g1a3_mnl1_mxl1096_2010-01_fgrp2_120m_prod.csv
#
# produced with: python3 ts06hitrates.py -f 2 -m 120 -p 2010-01 -d prod (-g9)
#
# plots with:
# python3 ts06hitrates.py -f 2 -m 120 -p 2010-01 -... | [
"noreply@github.com"
] | noreply@github.com |
e5461f784b5376bbb9033706deb5c0c881b6746f | b3724a2dbfcffe7b99ae79703bc189e4c97839c3 | /geolife_preproc.py | 18aad7daa38d98e52d23c5a345664ff3cdb00e5a | [] | no_license | atasoglou/MATLAB | 7ad07bf652b827584f87912f8613e7d37cda4204 | 5fbc4086362c1c9c2a7fa13c97aa9a0d34e2069b | refs/heads/master | 2020-04-18T03:28:42.167063 | 2017-11-14T13:11:58 | 2017-11-14T13:11:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | from openpyxl import load_workbook
import ecef
import pickle
import json
wb = load_workbook("C:\Users\sglvladi\Documents\WebSync\University of Liverpool\PhD\resources\geolife.xlsx")
gps_data = wb['Sheet1']
in_file = open("/home/sglvladi/Mini_Challenge_2/cart_table.txt","r");
i=1;
for line in in_file:
tokens... | [
"sglvladi@gmail.com"
] | sglvladi@gmail.com |
e63f9b6c0744c053c48c90909cbf38b01602bcd6 | fadff32aecd82fb9a0925895b437b4c6d994f50b | /microcollections/collections.py | 74946405d62be4c5ee41479296eb1c1de8cbf2dd | [] | no_license | zbyte64/micromodels-collections | 638e6551d7c7dc9092818a65695023eaa8c51bd5 | a7e7a0715f18ade96745321892a0dbafd9e04dac | refs/heads/master | 2021-01-13T02:18:44.343841 | 2014-02-20T00:57:03 | 2014-02-20T00:57:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,149 | py | # -*- coding: utf-8 -*-
import micromodels
class NotSet:
pass
class CollectionQuery(object):
def __init__(self, collection, params):
self.collection = collection
self.params = params
self._cache = dict()
@property
def model(self):
return self.collection.model
@... | [
"zbyte64@gmail.com"
] | zbyte64@gmail.com |
9091a2f5ad5a8f44c3e29f97f9374e60cd235cc9 | f24ebd0ee446e95f3953dbb840526fc6d299b13d | /env/bin/mako-render | 3c7ef53c1046d6470bca23a4441bcbea53b58523 | [] | no_license | hendro15/flaskFramework | 158f8f01aeec12e26d88f1a1522a93303ff32468 | 306a5b4885fdb4549d0472eac6fbd99b7986f949 | refs/heads/master | 2020-04-08T19:11:39.063975 | 2018-11-29T11:17:21 | 2018-11-29T11:17:21 | 159,644,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | #!/home/sonic/Documents/latihan/flaskPACKT/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from mako.cmd import cmdline
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(cmdline())
| [
"hendro.prabowo15@gmail.com"
] | hendro.prabowo15@gmail.com | |
f25fea41a8eb4d8286b1e6c59fff5b38cabfa4f1 | bc49f67a1dc4cb0d9ce8b4a366ba79fb83782eda | /scripts/version_control/gitpush.py | 64cebcaa532c24958f3cd555d5393782b21f5efd | [] | no_license | kchida/dot-files | ab5a229f03474edbb7ff19159c4da559028d4349 | 884b8fbfc404df0bf994d293e1253f787550f2fd | refs/heads/master | 2022-10-21T02:18:07.206751 | 2022-08-13T19:43:15 | 2022-08-13T19:43:15 | 4,061,849 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | #!/usr/bin/env python
from fabric.api import local, lcd, prompt
message = prompt('Enter your commit message: ')
local('git add -A . && git commit -m "%s" && git push origin' % message)
| [
"kenchida2@gmail.com"
] | kenchida2@gmail.com |
04b5a1dc61e840f5fcda2ada41e6e4e0c4e397f5 | 66cef11807c3a0fc53bce2419865d8997d5c44ab | /software_bind/software_bind/settings.py | 3da20839ba752a4b736b3ed4ed36fa4c9d6e582c | [] | no_license | GrtSid/software_fuse | 1f7c77472449ca00b6cdeb0ac3243903649fb8df | 3f6f5a5f9d92c8593151901b7fec41ab8687dcd1 | refs/heads/master | 2021-09-23T01:08:19.730330 | 2020-02-26T18:33:16 | 2020-02-26T18:33:16 | 240,294,575 | 0 | 0 | null | 2021-09-22T18:39:06 | 2020-02-13T15:32:02 | Python | UTF-8 | Python | false | false | 3,348 | py | """
Django settings for software_bind project.
Generated by 'django-admin startproject' using Django 3.0.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import... | [
"siddhantagarwal99@gmail.com"
] | siddhantagarwal99@gmail.com |
0d7612855c30e129d873683d5f7f339e5fd16d61 | aad164e4efe1d55cc189c35956bfd435b14a0f52 | /eve-8.21.494548/eve/client/script/parklife/autopilot.py | 633cb52208bb534d30fdf32b77f2d3a6d17944d3 | [] | no_license | Pluckyduck/eve | 61cc41fe8fd4dca4fbdcc4761a37bcfeb27ed84f | 9a277707ab1f162c6bd9618faf722c0be3ea93ad | refs/heads/master | 2020-12-28T23:35:29.992875 | 2013-05-06T14:24:33 | 2013-05-06T14:24:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,327 | py | #Embedded file name: c:/depot/games/branches/release/EVE-TRANQUILITY/eve/client/script/parklife/autopilot.py
import util
import destiny
import base
import service
import sys
import uthread
import blue
import log
import localization
import uiconst
from collections import defaultdict
AUTO_NAVIGATION_LOOP_INTERVAL_MS = 20... | [
"ferox2552@gmail.com"
] | ferox2552@gmail.com |
00d487751a336a68638c30b21a13815a2a96c309 | 07ecc53b5be6b1a34914a0e02265e847f3ac1a65 | /Python/Greedy Algorithm/984_Medium_ไธๅซAAAๆBBB็ๅญ็ฌฆไธฒ.py | 22600af30df05dac1d9060917965bf75ff165bad | [] | no_license | JasmineRain/Algorithm | 764473109ad12c051f5337ed6f22b517ed9bff30 | 84d7e11c1a01b1994e04a3ab446f0a35eb3d362a | refs/heads/master | 2023-03-14T00:39:51.767074 | 2021-03-09T12:41:44 | 2021-03-09T12:41:44 | 289,603,630 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,275 | py | class Solution:
def strWithout3a3b(self, a: int, b: int) -> str:
ans = [""] * (a + b)
index = 0
round = 1
ca = a
cb = b
if a >= b:
while ca > 0:
ans[index] = "a"
ca -= 1
index += 3
if index >... | [
"530781348@qq.com"
] | 530781348@qq.com |
6abcd1cee3f4165bcbb7942b998559d41f8d3cc3 | fe931c53d269cb5b4c6972d4bc55e6890c22ea28 | /Platform.py | 9d25b650364382f733e5607ec37586109fc91f55 | [] | no_license | shuaiwangvu/hpp_course | f696fd508ca1a618011bda5ae7799548d748b37a | 545ada093d77ca4d8f446e4c7fc502f3af2016f5 | refs/heads/master | 2022-04-20T14:26:52.941142 | 2020-03-04T11:15:13 | 2020-03-04T11:15:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,764 | py | # gepetto-viewer-server
# not hpp-manipulation-server
# hppcorbaserver
# -DCMAKE_INSTALL_PREFIX=/home/airobert/HPP/install
from HyQ import HyQ
from Agent import PR2
from Environment import BasicHouse
from Obstacle import Obstacle
from hpp.corbaserver import ProblemSolver
# from hpp.corbaserver.manipulation import Pro... | [
"ai.robert.wangshuai@gmail.com"
] | ai.robert.wangshuai@gmail.com |
90f9c2b7cba886de306796566f399f9f8ad054ff | 033d4f3fb539425f12a7f951e011f7696f7c909f | /TigerNuts/asgi.py | 413278ae30f335a908a31b7e7499a439a376e677 | [] | no_license | hristo-grudev/TigerNuts | 07413edd57a3b78e09b7ba3355f0ecf4497573d4 | d328842c0454890fc0d3d7712d2c9bc272da8b42 | refs/heads/main | 2023-03-07T19:16:22.175112 | 2021-02-24T09:51:22 | 2021-02-24T09:51:22 | 328,690,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
ASGI config for TigerNuts project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SET... | [
"hristo.grudev@ADPVT.com"
] | hristo.grudev@ADPVT.com |
dca261af830e2fc00b8bbeb22fa8e92af90f3b9d | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_oppressors.py | 794179fbab874c62e6c90e5f1fc1331b1f5c3cc8 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py |
#calss header
class _OPPRESSORS():
def __init__(self,):
self.name = "OPPRESSORS"
self.definitions = oppressor
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['oppressor']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
c3f8c9326a98788d32a1dd6f6cb2abac77136527 | 7a550d2268bc4bc7e2fec608ffb1db4b2e5e94a0 | /1301-1400/1342-Number of Steps to Reduce a Number to Zero/1342-Number of Steps to Reduce a Number to Zero.py | ff2024f01916125f617a9207453ff82c87002008 | [
"MIT"
] | permissive | jiadaizhao/LeetCode | be31bd0db50cc6835d9c9eff8e0175747098afc6 | 4ddea0a532fe7c5d053ffbd6870174ec99fc2d60 | refs/heads/master | 2021-11-05T04:38:47.252590 | 2021-10-31T09:54:53 | 2021-10-31T09:54:53 | 99,655,604 | 52 | 28 | MIT | 2020-10-02T12:47:47 | 2017-08-08T05:57:26 | C++ | UTF-8 | Python | false | false | 239 | py | class Solution:
def numberOfSteps (self, num: int) -> int:
step = 0
while num != 0:
if num & 1:
num -= 1
else:
num >>= 1
step += 1
return step
| [
"jiadaizhao@gmail.com"
] | jiadaizhao@gmail.com |
adeddb66f2e1571cadf7716696856f2eff28564b | f5d98c19591dd692f784f909e245ce527062c87d | /zeroboy.py | dfc1f9c9cb7d31278884b4bc19ef84e17a243fd8 | [] | no_license | hum4-munga4/hum4 | 2644feaf7430112432aab9399d74e617d1004d9b | b4f95dcae8b774010bb68223407eda7a18eeb1ad | refs/heads/master | 2022-04-17T14:08:02.703666 | 2020-04-18T13:44:28 | 2020-04-18T13:44:28 | 256,763,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,397 | py | #!/usr/bin/python2
#coding=utf-8
import os,sys,time,datetime,random,hashlib,re,threading,json,urllib,cookielib,requests,mechanize
from multiprocessing.pool import ThreadPool
from requests.exceptions import ConnectionError
from mechanize import Browser
reload(sys)
sys.setdefaultencoding('utf8')
br = mechanize.Browse... | [
"noreply@github.com"
] | noreply@github.com |
ebfa26f25eb795d6535f7e5c1730227ce0696442 | a75d22f5c3c10c601a800b973544b0cc25e446f9 | /NA_1_Preliminary/chap3_1.CAS_simplify.py | 6565c22672d5e3905fcbf33e04aaad721d44eb2a | [] | no_license | jsm2371/Computation | 71cf0c811e8068f45c2eee8882a31ea9c98b9bb0 | 5d3a920132065dcf4e4993e37df539458a632c17 | refs/heads/master | 2023-02-02T23:05:13.405720 | 2020-12-12T11:20:28 | 2020-12-12T11:20:28 | 297,341,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 857 | py | import sympy
from sympy import I, pi, oo
sympy.init_printing()
#### ์์ ๋จ์ํ ####
# sympy.simplify(expr) #๋จ์ํ -ํด๋ฆฌ์คํฑ ์ ๊ทผ๋ฒ์ ์์กดํ๊ณ ์์.
# self.simplify()
# sympy.trigsimp(expr) #์ผ๊ฐํจ์ ํนํ
# sympy.powsimp(expr) #๋ฉฑํจ์ ํนํ
# sympy.compsimp(expr) #์กฐํฉ ํนํ
# sympy.ratsimp(expr) #๊ณตํต๋ถ๋ชจ ํนํ
#### ์์ ๋จ์ํ ####
print(">>> ์์ ๋จ์ํ <<<")
... | [
"jsm2371@hanmail.net"
] | jsm2371@hanmail.net |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.