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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e47ec77483d8ea21ac2c7f17ceca3591cb18192a | df858cb8172f73aad1af25496ac86e637a203bf4 | /Introdução a Programação com Python - exercícios baixados do site oficial/Listagens/07.45 - Jogo da forca.py | bf6002fa6bef2b078f9bd73b91e7c106e5860d59 | [] | no_license | emersonleite/python | 33cd48788e4f641da244ba9fd0460b9a5b1ef0bc | 8157fcd5c7ee7f942a4503ad386e7d2054d5acfc | refs/heads/master | 2020-03-08T04:09:57.857429 | 2019-03-27T14:56:46 | 2019-03-27T14:56:46 | 127,913,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,790 | py | ##############################################################################
# Parte do livro Introdução à Programação com Python
# Autor: Nilo Ney Coutinho Menezes
# Editora Novatec (c) 2010-2014
# Primeira edição - Novembro/2010 - ISBN 978-85-7522-250-8
# Primeira reimpressão - Outubro/2011
# Segunda reimpressão - ... | [
"emerson.bl@gmail.com"
] | emerson.bl@gmail.com |
5ac6bb0b7e9b88f4f929ade58c1f69f32bbdda68 | 61a3cba75de7f6da049bcf34343b9839291bda75 | /mrjob/conf.py | 1536217cf2186e0724b02dce429b8aad1effa0da | [
"Apache-2.0"
] | permissive | joshuamckenty/mrjob | b309ed094945b24a471fa8214bb10d35e364a65a | f24991ffae9e7a2dad9fd3403d5e96635ededa4a | refs/heads/master | 2020-12-24T15:22:45.869655 | 2010-10-28T18:07:00 | 2010-10-28T18:07:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,079 | py | # Copyright 2009-2010 Yelp
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, softwa... | [
"dave@yelp.com"
] | dave@yelp.com |
2d772093e12dd17f2514fa2f7d0a20d3077ba7d3 | acf6a649fe6e6ec52b1dbfc59480e26fe7cced10 | /imperial/reinforcement_learning/maze_traversal/lib/Agent.py | 69dab353a7762581915549e7b01d904e956047fc | [] | no_license | Syndorik/Resume | f5735c48180f935cf112a95a92d86d073bfeff17 | 6f376b047026a21554dfbca1b130c0285c1a8c20 | refs/heads/master | 2021-06-26T16:50:21.106936 | 2020-09-28T15:08:43 | 2020-09-28T15:08:43 | 146,450,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,608 | py | # Import some modules from other libraries
import numpy as np
# The Agent class allows the agent to interact with the environment.
class Agent:
# The class initialisation function.
def __init__(self, environment):
# Set the agent's environment.
self.environment = environment
# Create... | [
"aa4719@ic.ac.uk"
] | aa4719@ic.ac.uk |
e742a342fdf42187514f5368bf70be0b028305f9 | 1b474a22607fd1ddc01b794e4d36ceab6f56e88c | /talk/migrations/0001_initial.py | 0b3480ddc463b91a951e1e96e174b5d431c2db5f | [] | no_license | tosinolawore/aviyel | b0178029274704c34b98682fb1d16051e434c7a7 | bf3db8a45d66d24456fef14befc6e399d22d1168 | refs/heads/master | 2023-08-18T02:48:14.573963 | 2021-09-29T14:26:01 | 2021-09-29T14:26:01 | 402,493,484 | 0 | 0 | null | 2021-09-29T14:26:02 | 2021-09-02T16:41:36 | Python | UTF-8 | Python | false | false | 1,163 | py | # Generated by Django 3.2.7 on 2021-09-04 03:01
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('conference', '0001_initial'),
('participant', '0001_initial'),
('speaker', ... | [
"25176099+tosinolawore@users.noreply.github.com"
] | 25176099+tosinolawore@users.noreply.github.com |
3455029efbae033f2c0da3c1c4522c8c9b33cb33 | e6a90d21e9a983476adda3cccc832a828875cea9 | /Lib/site-packages/ffc/jitobject.py | 19a9d2db3872418e1f60e0ccf70f4753e65356c4 | [] | no_license | maciekswat/dolfin_python_deps | e28c27780d535c961e4b3129bb17628a4ff7167a | 7af15cd0ab522436ca285f8422faa42675345f55 | refs/heads/master | 2021-01-25T12:14:55.779591 | 2014-04-23T22:51:19 | 2014-04-23T22:51:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,931 | py | # Copyright (C) 2008-2013 Anders Logg
#
# This file is part of FFC.
#
# FFC is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ... | [
"maciekswat@gmail.com"
] | maciekswat@gmail.com |
28038791be273c9ba40bc2b50d9cd82332126a7f | b05ec9af3bd888d69056b192a4d15118d57dea06 | /algos/List/KthSmallestInSortedMatrix.py | 2408ad2e709437a0258e2af08f9461e443d309e9 | [] | no_license | nitinworkshere/algos | 5b6d2979d4af3dbcd54d45ae9a6722ea9e054ef0 | 9a8f3cc92bb8d0f153b82af47f19b6bced7d2163 | refs/heads/master | 2021-01-04T21:01:51.553315 | 2020-04-26T09:21:08 | 2020-04-26T09:21:08 | 240,758,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 890 | py | from heapq import *
def find_Kth_smallest(matrix, k):
minHeap = []
# put the 1st element of each row in the min heap
# we don't need to push more than 'k' elements in the heap
for i in range(min(k, len(matrix))):
heappush(minHeap, (matrix[i][0], 0, matrix[i]))
# take the smallest(top) el... | [
"nsharma1@expediagroup.com"
] | nsharma1@expediagroup.com |
fadf23f0ddb84cac72749fb3e7c6593d371b1917 | 579ffcafb427888c2cb134177ec8133fba94f185 | /pipert/core/utlis/queue_handler.py | 902ba642ca1631f019c5d68fbaf2bf560d697acd | [
"MIT"
] | permissive | Elon-Abulafia/PipeRT | 39ecd75d5649f943ead90f3361468d11516b7183 | fba46d67a6dd546a9d70c3d854c3b7d3910f82ba | refs/heads/master | 2021-01-05T16:00:53.061246 | 2020-06-23T17:31:36 | 2020-06-23T17:31:36 | 241,068,880 | 0 | 0 | MIT | 2020-06-23T17:31:37 | 2020-02-17T09:36:21 | Python | UTF-8 | Python | false | false | 3,697 | py | import queue
import multiprocessing as mp
from typing import Union
import time
class QueueHandler:
def __init__(self, q):
self.q: Union[queue.Queue, mp.Queue] = q
def get(self, block=True, timeout=None):
"""
Works just like the `get` method of `queue.Queue`
Returns:
... | [
"wilfitamar@gmail.com"
] | wilfitamar@gmail.com |
26d0cb12f5092278fa8ddcee18b2141fd5dd5574 | 9382a3acd3637a1c242045bff8109dee844d869a | /src/webhook_server_for_evaluation.py | 10a64c5634e81ba458af050880bc5ec18bf38dba | [
"MIT"
] | permissive | byeongkyu/dialogflow_dialog | 4cf19133f73d8ea82b8fb98e33a661804217a5db | c7ae5ce65f8fb6fa830817ab186a9851a26473e0 | refs/heads/master | 2020-03-17T20:07:05.222328 | 2018-08-23T23:42:39 | 2018-08-23T23:42:39 | 133,893,838 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,691 | py | #!/usr/bin/env python
#-*- encoding: utf8 -*-
import os
import time
import rospy
import threading
import logging
import json
import requests
import random
from std_msgs.msg import String, Int16, Empty
from flask import Flask, Response, request, make_response, jsonify
WEATHER_TEXT = [
"The weather in {city} now i... | [
"byeongkyu@gmail.com"
] | byeongkyu@gmail.com |
ba9b27ffd391e08f729196b417a7702064a37d91 | cf6bf72f52c41d21e54e3dac4c0167e4f94cda2c | /ThreeNumbers.py | bdc621485c8cff11aa31345f31cd7b651863f74f | [] | no_license | Ellammaldevi/Python-programs-1 | 9b5b29cc1da702678508103d5d24692365687d03 | d89c8e46db0e3ade5ab453fee42890cd9e07b5e8 | refs/heads/master | 2020-06-17T18:31:50.629562 | 2019-07-10T04:28:30 | 2019-07-10T04:28:30 | 196,008,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 879 | py | def three_Sum(num):
if len(num)<3: return []
num.sort()
result=[]
for i in range(len(num)-2):
left=i+1
right=len(num)-1
if i!=0 and num[i]==num[i-1]:continue
while left<right:
if num[left]+num[right]==-num[i]:
... | [
"noreply@github.com"
] | noreply@github.com |
7f67dde5b6e417fe0dc4e508b315bb78e50a415c | f4f5bfdddcdc01c7089828d226dc84dede10d7ac | /myvenv/bin/easy_install | fa4231c86da506df3b9cebc9f9fbf7c7e95dec34 | [] | no_license | GeekyA/GNDU-archives | 96ca14bb8ff15599fc9fa8d58957f60b6d379aff | 60e1dceb1e9f799a0c4e4c75459dc020723c4691 | refs/heads/main | 2023-06-10T05:08:55.896163 | 2021-07-02T09:58:20 | 2021-07-02T09:58:20 | 382,298,713 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | #!/home/ansh/paperportal/myvenv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"anshchadha9211@gmail.com"
] | anshchadha9211@gmail.com | |
86bf0f79d75b1544c7ead77725b872593d3873e0 | d771bf0a4eec3cd4c736322481cce9fe48b44ba5 | /array_list.py | 4c2aa57ed270f170ea019acea951173c72302d93 | [] | no_license | aschwarz22/Alon_examples | 15850b0de5233bb0257725e9f22a1fc1cb23038e | 0043ed31d5fcec4926c6aea3b468d6f789fd8727 | refs/heads/master | 2021-01-21T17:47:06.614817 | 2017-07-11T16:35:48 | 2017-07-11T16:35:48 | 91,990,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,450 | py | #array list implementation
#an Array is
#a list containing an
#array, which is a list
#and length which is an int
class Array:
def __init__(self, array, length):
self.array = array
self.length = length
def __eq__(self, other):
return (type(other) == Array) and self.array == other.arra... | [
"noreply@github.com"
] | noreply@github.com |
c9ef066e396fdae3e24a34c85263a2f4474c1028 | 2e6e6cc317086fc69e55a1fe9030bb9b101d64c1 | /timezone-detect/wsgi.py | 086eefc87d1c5b6d0ef5337a0541fc4c1cd774f1 | [] | no_license | BryanHurst/timezone-detect | b8ec47d43aa081389aedd71306f6129af9b265c8 | 9882ebded8f8f171c0fc4c950361af6b1da3607d | refs/heads/master | 2021-01-22T12:08:26.394943 | 2014-02-13T00:35:15 | 2014-02-13T00:35:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,439 | py | """
WSGI config for timezone-detect project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLIC... | [
"bryan@newlinetechnicalinnovations.com"
] | bryan@newlinetechnicalinnovations.com |
73ff5cc23bb2c58ecf3c15182ab03d08a2a382d1 | 81a62dbdb9cc0576f4ba77974b705579e50c2b4b | /beware/cli.py | d4a160973dcc8d8b8ec5e374558ee6d2e37fd5cf | [] | no_license | glassresistor/reader-beware | fad1a3f2dbbac65d5de91adb04f4a07b2856e202 | 8eeef2424215b0f1f40d47adcf664cbf66a212de | refs/heads/master | 2020-04-15T01:41:17.633613 | 2019-02-15T04:37:11 | 2019-02-15T04:37:11 | 164,287,214 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 787 | py | import click
from beware.build_html import NarativeWorldBuilder
from beware.build_epub import EPubWorldBuilder
@click.group()
def cli():
pass
@cli.command()
@click.option(
'--narative-path',
default='narative.yaml',
help='Path to natarive yaml file')
@click.option(
'--output',
default='outp... | [
"glassresistor@gmail.com"
] | glassresistor@gmail.com |
60cb424a2517556ed6d7c6a5713b3f98c94ba801 | 08eb269fde69d6dd489008bf1b88328b31c47d2f | /nr_001_python.py | 18ee186d2c73f6cf32fa3a51ded09871a3cdbe66 | [] | no_license | Edvinauskas/Project-Euler | 65bfc887f5dfc56bee2245743c70e1ab94e7edea | 0643a3263192de578f06a3f3cf3eb509e0041ffe | refs/heads/master | 2016-09-07T18:40:46.018564 | 2015-01-03T18:21:13 | 2015-01-03T18:21:13 | 7,705,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | #########################################
# Problem Nr. 1
# If we list all the natural numbers
# below 10 that are multiples of 3 or 5,
# we get 3, 5, 6 and 9. The sum of these
# multiples is 23.
#
# Find the sum of all the
# multiples of 3 or 5 below 1000.
#########################################
multi_sum = 0
for n... | [
"edvinas@tr0n-ubuntu32.(none)"
] | edvinas@tr0n-ubuntu32.(none) |
7287bd809c049bf9525538a634f1b9f8bb262e56 | 866a3a0b02ad10ba7e0f4db18efd38a213b0e3c5 | /18_0.py | b4b60322a0693c11ff34a160f7ce3c5641122b56 | [] | no_license | SleepwalkerCh/Leetcode- | 6da7f5859184ae86c6f16d10e3570f837f2508d6 | 9472b9dd388a8774339ecf9d8ff6cb61b7ea821f | refs/heads/master | 2021-03-07T10:58:25.086406 | 2020-03-19T07:50:32 | 2020-03-19T07:50:32 | 246,260,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | #18. 4Sum18
# 很简陋的做法,大概率会超时,在O(n^4)基础上做了一些小优化,但是结果未进行查重
# WRONG ANSWER
class Solution:
def fourSum(self, nums: List[int], target: int) -> List[List[int]]:
nums.sort()
result=[]
print(nums)
for i in range(len(nums)-3):
for j in range(i+1,len(nums)-2):
for k... | [
"1024089291@qq.com"
] | 1024089291@qq.com |
f67fddbd470a25606bbf469aeacc8bedde9fba79 | a5e7a2d28e3d91363214f4acb55ae78eed13351e | /myapi/admin.py | 66105156f69fce6dd95a4309a053691f42cc068b | [] | no_license | bharath2408/django-api | 229819b6a0abad084b79640c361c7153d896462e | b6399ba451b40e11ac0501bc707e0f8bc8f2a82c | refs/heads/master | 2023-03-21T02:52:20.842614 | 2021-03-12T13:21:16 | 2021-03-12T13:21:16 | 347,053,975 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | from django.contrib import admin
from .models import Hero
# Register your models here.
admin.site.register(Hero) | [
"bharatha24kumar@gmail.com"
] | bharatha24kumar@gmail.com |
324a6e1cc7680a552fede75bbb9619952eca6460 | 1682711f0cd62a90261f66a33be61e839022840c | /udscrape.py | b18ad12c344eff332950b1c139be7ee2c333e3d0 | [] | no_license | emagnus/definition-bot | dff4b867543e272447c977e38c99dbe8c66a7b3e | 64ccfe82f44fb5a21276551f922baa7d7ac0bc06 | refs/heads/master | 2021-01-23T11:20:26.364491 | 2011-03-26T15:02:10 | 2011-03-26T15:02:10 | 1,493,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,474 | py | from BeautifulSoup import BeautifulSoup
from BeautifulSoup import BeautifulStoneSoup
from BeautifulSoup import NavigableString
import urllib2
import urllib
import unicodedata
def fetch(url):
opener = urllib2.build_opener()
opener.addheaders = [("User-agent", "defino")]
response = opener.open(url)
retur... | [
"westerga@gmail.com"
] | westerga@gmail.com |
c73ae77ac18bd3d3bd5970245667f5e8fd8b2471 | 6b6f68f507746e3e39b0e8789af5d044e27d6b0a | /Math/0204_CountPrimes_E.py | e266761a3e920a2ddefc2e292ae002021428d1b4 | [] | no_license | PFZ86/LeetcodePractice | bb0012d8b3120451dda1745875836278d3362e45 | 6db9db1934bc0a8142124d8b56bf6c07bdf43d79 | refs/heads/master | 2021-08-28T08:43:27.343395 | 2021-08-17T20:38:32 | 2021-08-17T20:38:32 | 230,925,656 | 1 | 1 | null | 2021-08-17T20:38:32 | 2019-12-30T14:01:27 | Python | UTF-8 | Python | false | false | 1,430 | py | # https://leetcode.com/problems/count-primes/
# Solution 1: the naive method, time complexity O(n^{1.5})
class Solution(object):
def isPrime(self, num):
if num <= 1:
return False
i = 2
# Use i*i <= num as the ending condition;
# do not use the expensive functi... | [
"pengfeizang@pengfeis-iMac.fios-router.home"
] | pengfeizang@pengfeis-iMac.fios-router.home |
bfe3e09e2e17d37abb59cabfa4b61cd048efdd01 | 6c380e192bb672cb8165a36bbe18d0fdfa449acc | /1024.py | bd770123971fff51ce2cf332b587d865299ec288 | [] | no_license | cjttkfkd3941/acmicpc | 7ce6530358a1efed6a157e1b4cffc1f72bf33ffb | b7fd3de8b96d85d3d2c4b2956b1e4f6efc9a366b | refs/heads/master | 2020-08-12T09:35:13.994367 | 2019-12-11T07:18:00 | 2019-12-11T07:18:00 | 214,740,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,037 | py | # 1024 수열의 합
a,b = map(int,input().split()) # a : 합의 크기, n : 합이 될 수열의 최소 갯수
for i in range(b,101):
if i%2==1:
# 갯수가 홀수개라면, 평균 기준으로 (-k,-k+1,...,0,...,k-1,k) 로 표현가능.
# 즉 중앙값*i
if a%i==0 and a//i-i//2>=0:
print(" ".join(map(str,[a//i+j-i//2 for j in range(i)])))
brea... | [
"noreply@github.com"
] | noreply@github.com |
478995ae08d50e8625c61409890afdaa49990940 | d41d18d3ea6edd2ec478b500386375a8693f1392 | /plotly/validators/layout/polar/angularaxis/_tickcolor.py | c767e805316121395caad30ece9326f5d675e0b8 | [
"MIT"
] | permissive | miladrux/plotly.py | 38921dd6618650d03be9891d6078e771ffccc99a | dbb79e43e2cc6c5762251537d24bad1dab930fff | refs/heads/master | 2020-03-27T01:46:57.497871 | 2018-08-20T22:37:38 | 2018-08-20T22:37:38 | 145,742,203 | 1 | 0 | MIT | 2018-08-22T17:37:07 | 2018-08-22T17:37:07 | null | UTF-8 | Python | false | false | 458 | py | import _plotly_utils.basevalidators
class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator):
def __init__(
self,
plotly_name='tickcolor',
parent_name='layout.polar.angularaxis',
**kwargs
):
super(TickcolorValidator, self).__init__(
plotly_name... | [
"adam.kulidjian@gmail.com"
] | adam.kulidjian@gmail.com |
02e2cc0a85d56baaa51d6125246a02493b381b8d | a10d867045c0629648d9c6406a0d2736e4cfdd1d | /testchild.py | c2b4a5f523552fb5c30fb9c7c603c28cc8e5cec8 | [] | no_license | camillehtle/testrepo | 19c44311dc25bfb827b073e470b21e8e635cd657 | 7314fa3f61bfd557b08831969218d7af107cf78b | refs/heads/main | 2022-12-29T15:43:01.084048 | 2020-10-15T04:44:23 | 2020-10-15T04:44:23 | 304,203,990 | 0 | 0 | null | 2020-10-15T04:48:31 | 2020-10-15T03:53:18 | Python | UTF-8 | Python | false | false | 68 | py | ## Adding a new file in child branch
print ("Inside Child branch")
| [
"noreply@github.com"
] | noreply@github.com |
be0ecab82cbe31811e9d6728895d71a849a6cc56 | 8643fc036c38e135cd0043a94ea368eb774a63a4 | /localCopyDjango/dbApp/cheap_users.py | 217b39dd58e3dc0c92da1eecfca9dbf64c2a4d4d | [] | no_license | shar-alamgir/restaurant-finder-2 | 4ab411a4c8402ff3887c559ab84ac01c7c8b1b0b | c3f1fd144cc57192090835303f50baf614a0bc18 | refs/heads/master | 2022-11-17T22:08:13.455021 | 2019-12-05T00:25:05 | 2019-12-05T00:25:05 | 216,942,927 | 0 | 2 | null | 2022-11-04T12:29:37 | 2019-10-23T01:36:42 | Python | UTF-8 | Python | false | false | 527 | py | from polls.models import User, Restaurant
from polls import helper
database = r"\Users\Marcus Cooney\Desktop\CS411\rf2\localCopyDjango\dbApp\db.sqlite3"
conn = helper.create_connection(database)
if conn is None:
print("no conn established")
sql = '''SELECT r.price_tier, COUNT(DISTINCT u.user_name) AS TotalUsers
... | [
"marcus.cooney1@gmail.com"
] | marcus.cooney1@gmail.com |
d364a514127247742d43f012ec5b553a968c4bf0 | f4dd8aa4e5476ffde24e27273dd47913c7f9177a | /Dlv2_safe2/tests/parser/range.3.test.py | 5291d84363c7b37476ea8dd1fa8f8da8958c4baa | [
"Apache-2.0"
] | permissive | dave90/Dlv_safe2 | e56071ec1b07c45defda571cb721852e2391abfb | f127f413e3f35d599554e64aaa918bc1629985bc | refs/heads/master | 2020-05-30T10:44:13.473537 | 2015-07-12T12:35:22 | 2015-07-12T12:35:22 | 38,256,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | input = """
%#maxint=10.
f(a).
% intuitively, one could expect: g(4). g(3). g(2). here
% but this does not produce any g():
%g(4..2).
%h(1..3).
f(b).
intersect(X) :- g(X), h(X).
"""
output = """
%#maxint=10.
f(a).
% intuitively, one could expect: g(4). g(3). g(2). here
% but this does not produce any g():
%g(4..2... | [
"davide@davide-All-Series"
] | davide@davide-All-Series |
7220d2c71f026f768b003347430670f8bafceab5 | 9321d3460ffbbb6cd7917b2bac77ce8321e04737 | /contributions/Legacy/MOO/optimization/master/master_to_slave.py | d57ff0e707a482d8afa58f4b3774b4524cec5be3 | [
"MIT"
] | permissive | muehleisen/CEAforArcGIS | b820d837cd5373b95851b4e5dda609d69f054b97 | b6aeca5a9d70835381625a9162d5695714e1a02b | refs/heads/master | 2021-01-11T21:24:18.482264 | 2017-01-06T05:28:48 | 2017-01-06T05:28:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,673 | py | """Data required for Slave from Master"""
"""
This File sets all variables for the slave optimization, that have to be set by the Master
"""
#import os
#Energy_Models_path ="/Users/Tim/Desktop/ETH/Masterarbeit/Github_Files/urben/Masterarbeit/EnergySystem_Models"
#Network_Raw_Data_Path = "/Users/Tim/Desktop/ETH/Mastera... | [
"fonseca@arch.ethz.ch"
] | fonseca@arch.ethz.ch |
f5048e620a1d249b16bfa06ee8a33bc414722ba4 | 9d831207b43422b40e54cf6258a29b2f92b66290 | /src/boot_navigation/reports.py | 9348679320e16ccddb3aafca90894e6209798d01 | [] | no_license | AndreaCensi/yc1304 | 714e70e972e9ee31ac011bdb94a57a8ab568f853 | 0bc2b759423db7da73fac47572719a37a80fee0e | refs/heads/master | 2020-06-04T12:52:10.902082 | 2013-07-19T07:00:49 | 2013-07-19T07:00:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,822 | py | from .navigation_map import NavigationMap
from .plots import plot_arrow_SE2, plot_arrow_se2
from contracts import contract
from geometry import se2_from_linear_angular
from reprep import Report, rgb_zoom, scale
import numpy as np
import warnings
__all__ = ['display_nmap']
@contract(report=Report, nmap=NavigationMap)... | [
"andrea@cds.caltech.edu"
] | andrea@cds.caltech.edu |
cb5e63e366e6f0d8b0698176f2fe69721aecc911 | d2ff2498b609372599722d5ee66ef418606eb3b4 | /analyze_tweets_json.py | 1b1a4ec921c9b90c4085bf3ea456e1df58cdf1fa | [] | no_license | sandra-bohn/PythonCapstone | b82e7c82fac99e4571d3f373bd00082c93279a37 | 701fb496ed153fca0ab3fe9642594e8995c30b22 | refs/heads/main | 2023-06-03T23:02:15.386525 | 2021-06-21T02:20:02 | 2021-06-21T02:20:02 | 374,234,021 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,178 | py | """
This command line script retrieves tweets from a json file (filename) and
calculates a series of metrics that are then saved to a report txt file (output).
Metrics calculated:
average_followers: the average number of followers for the tweeters of each tweet
average_words: the average number of words in each tweet
... | [
"sandra.bohn@gmail.com"
] | sandra.bohn@gmail.com |
5790715ad543f7194d4f8d205d14d03b63bba8e1 | c4ad713c7d297fdf82701087ade8ae3a2b4027dd | /apps/users/migrations/0002_auto_20180725_2007.py | 4f10b70d20424fbaf75bf143a1491fbfba45296b | [] | no_license | 0xouzm/MxOnline | ea3d096945c6db4506a2bff17be0a8b4f724c373 | ed6bf84406776b1b4da6ccbac370b654f0a0c6c6 | refs/heads/master | 2022-08-01T19:55:37.508890 | 2018-10-16T05:57:05 | 2018-10-16T05:57:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,083 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-07-25 12:07
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.Create... | [
"344387990@qq.com"
] | 344387990@qq.com |
a4a356bdeda1f7f955d85e318b4b972ade972cca | 8471aa5d1371b66db99b2e45626e14bedd0864ff | /Lesson22/implementing_Urank.py | 8896683406e63c634388af2ea66200646cee923d | [] | no_license | dodoph/udacity-homework | 73e6fa8211e8b9fe78ee20cc5c71d06121a0d357 | 19840a9da77616287b27f65f09322dcbd666d929 | refs/heads/master | 2021-05-23T05:34:07.700361 | 2017-10-23T22:30:00 | 2017-10-23T22:30:00 | 95,080,728 | 0 | 0 | null | 2017-10-25T22:30:02 | 2017-06-22T06:08:45 | Python | UTF-8 | Python | false | false | 4,235 | py | # Modify the crawl_web procedure so that instead of just returning the
# index, it returns an index and a graph. The graph should be a
# Dictionary where the key:value entries are:
# url: [list of pages url links to]
def crawl_web(seed): # returns index, graph of outlinks
tocrawl = [seed]
crawled = []
g... | [
"tangqiaojie@hotmail.com"
] | tangqiaojie@hotmail.com |
e566b9b3e1a0d6bb0ae9735acade8fe07273ef65 | ad19334875b416482321ebdf696fb7fdd09a5ee9 | /TestProperty.py | 880c6d8c9832f6069085b71d9f1fb04f7944126b | [] | no_license | Yugnaynehc/ProGit | 5d352303c8bb62789ff9e13bebdfbf81c728b721 | 89fbffe1acff749535e24a9bd304b0b7553f44c9 | refs/heads/master | 2021-01-10T21:28:09.697507 | 2013-04-07T12:58:07 | 2013-04-07T12:58:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | import math
class Circle():
def __init__(self, radius):
self.radius = radius
def setRadius(self, radius):
self.radius = radius
@property
def area(self):
return math.pi*self.radius**2
def getArea(self):
return math.pi*self.radius**2
if __name__ == "... | [
"cyyyyc123@hotmail.com"
] | cyyyyc123@hotmail.com |
b15d47124b412360b92c07a988c45dc35fc9cb85 | 751bf9adadfa9d1a0fb5af02bcd94eed7277849c | /conftest.py | fc8a0eb026c25b62cf6d579c42d389b20399624c | [] | no_license | dmsabel/selenium_complete_guide | 4eb5c31202b4dbc6d9d2edc2326c4c20cb265332 | 0d5be866985a5095a079f8ed91afa263487b65d4 | refs/heads/master | 2022-11-13T21:23:06.992032 | 2020-06-26T17:52:36 | 2020-06-26T17:52:36 | 267,315,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,180 | py | import pytest
from selenium import webdriver
from application import Application
@pytest.fixture()
def app(request):
def teardown():
fixture.wd.quit()
try:
fixture = Application(request.param)
except AttributeError:
fixture = Application()
request.addfinalizer(teardown)
re... | [
"Dmitriy.Sabelnikov@rt.ru"
] | Dmitriy.Sabelnikov@rt.ru |
02256d1be416fd37e092a3e263c29dcedad1ef63 | 78a15793be1ba71ea7eecee33abef4ecbe11d8f2 | /apps/users/migrations/0016_auto_20151102_1457.py | 5a3e982e5c71bdaae3706ce02e4d2db9cbd42842 | [] | no_license | teresaylin/my2009 | f5df9c62492d4c88931f6aa45af31ee88dbe3a1a | 2486750ad73df313d596497b0eb7f4c47518e6a6 | refs/heads/master | 2021-03-21T23:53:55.581074 | 2016-06-01T18:13:44 | 2016-06-01T18:13:44 | 23,392,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('contenttypes', '0001_initial'),
('users', '0015_auto_20151102_1456'),
]
operations = [
migrations.AddField(
... | [
"jam.hann@gmail.com"
] | jam.hann@gmail.com |
f61cbad149a6041d46ef51a5150141e5c8ef7cf0 | af667f5a8a50ba8baf10fb7edc4093c6753195ff | /nlp_util/tools/count_errors.py | ec479f9856d934ea12f48699edcd3cb46954eed9 | [] | no_license | jkkummerfeld/nlp-util | af033acf81245bcab444e92c56c64d4b2d1cf8e8 | d919fc946805c30276879ff3f8adec6b94d4e25d | refs/heads/master | 2020-05-17T06:55:20.728957 | 2015-03-26T10:27:12 | 2015-03-26T10:27:12 | 7,333,300 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,353 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim: set ts=2 sw=2 noet:
import sys
try:
from nlp_util import ptb
except ImportError:
raise Exception("Remember to either install nlp_util or set up a symlink to the nlp_util directory")
def update_span_errors(gold_tree, test_tree, errors):
gold_spans = gold_tree.get... | [
"me@jkk.name"
] | me@jkk.name |
30facaf621eca42015de84866c2d5c3e70636283 | 73c3a8c7fbc308f0fbface220c40f6a96ad75de4 | /PythonCode/Monthly_Coding_Challenge/May2020/OnlineStockSpan.py | bee0e9fac6cbcfb6995e0c9bb81c521a5adcbd86 | [] | no_license | Vixus/LeetCode | 7fc693606f8f7066d321fc6c2b13c8884770a4d0 | 6eea06920923a59d081b6d73baae992bb6363fe6 | refs/heads/master | 2022-12-19T09:58:05.815728 | 2020-09-26T06:27:11 | 2020-09-26T06:27:11 | 263,466,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,590 | py | from typing import List
from collections import Counter
class StockSpanner:
"""
Write a class StockSpanner which collects daily price quotes for some stock, and returns the span of that stock's price for the current day.
The span of the stock's price today is defined as the maximum number of consecutive d... | [
"vixus7@gmail.com"
] | vixus7@gmail.com |
c15199f76236b5e1a4aa7c00237e9015dab2015a | 9c9512d92f4693a40e80e2dc8df9a74ef34a9b02 | /archive/fibcoll_cmass_pm.py | 0bf73edf6ea47071ec8819e7d74dcb28dacd6166 | [] | no_license | changhoonhahn/FiberCollisions | 9184600bbd596f861755425c46b311b2ab342af5 | ee0bfab26cc0167982822d8bc5c5654eaccbe2ef | refs/heads/master | 2021-01-18T21:19:12.457250 | 2017-01-31T20:33:29 | 2017-01-31T20:33:29 | 34,329,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,587 | py | import numpy as np
import pylab as py
from scipy.integrate import simps
from scipy.optimize import curve_fit
from matplotlib import rc
rc('text', usetex=True)
rc('font', family='serif')
prismdir = '/global/data/scr/chh327/powercode/data/'
disp_los = np.loadtxt(prismdir+'cmass-dr11v2-N-Anderson-disp_los_pm.dat')
disp_... | [
"chh327@nyu.edu"
] | chh327@nyu.edu |
f21a448845a57fd7ddf812f9727972ee1fc395d4 | bb22a21be033951e22b987437a53492230e42177 | /truegaze/plugins/adobe_mobile_sdk.py | 8acb391e4e47aabe07cfe2cf174247720a552463 | [
"Apache-2.0"
] | permissive | SeppPenner/truegaze | ae2e6ceadc3358d9359701a0522a9da0667208bc | 2683ed317cf700f95e49934738b80153b1764446 | refs/heads/master | 2020-07-08T06:55:16.955905 | 2019-08-21T03:25:26 | 2019-08-21T03:25:26 | 203,599,343 | 1 | 0 | null | 2019-08-21T14:17:39 | 2019-08-21T14:17:39 | null | UTF-8 | Python | false | false | 4,395 | py | #
# Copyright (c) 2019 Nightwatch Cybersecurity.
#
# This file is part of truegaze
# (see https://github.com/nightwatchcybersecurity/truegaze).
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional inform... | [
"research@nightwatchcybersecurity.com"
] | research@nightwatchcybersecurity.com |
8813d680689bf5909ca803482bf42fdb4a42e538 | 6ac59bab1070d62fdc41668e885df9b2711cf3ed | /ninja_gold/ninja_gold/urls.py | 9008d02b4e26130c760009c8808d9e1c254fec5a | [] | no_license | cquinsay/ninja-gold | c92991dae3b65863189cc571ce79b1e767afc135 | 7cabafaf64287d28e00f79ce6eb1d7c4aadeed81 | refs/heads/main | 2023-03-09T11:37:33.441296 | 2021-01-23T06:02:00 | 2021-02-25T19:25:24 | 342,355,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | """ninja_gold URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-ba... | [
"cquinsay@gmail.com"
] | cquinsay@gmail.com |
80acaa76b1c315f7ec505e16025639f6206d048b | 9a5bdc52dd518212dca57515c2cc89252b7641b8 | /feedback/admin.py | d2e1065a487973b982aa2ba00435c36793ef42a7 | [] | no_license | sheimi/oedu | 5009d324f2938fad8f7e4edf664e864ba609dbd2 | d18ce9b5175793321d2dff9876a47cd57595ed40 | refs/heads/master | 2016-08-02T20:42:15.428913 | 2012-02-19T03:42:20 | 2012-02-19T03:42:20 | 3,483,011 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | '''
Created on Apr 17, 2011
@author: sheimi
'''
from Oedu.feedback.models import Feedback
from django.contrib import admin
# Re-register UserAdmin
admin.site.register(Feedback) | [
"sheimi.zhang@gmail.com"
] | sheimi.zhang@gmail.com |
c4674a7fdc765d2349e6a916e2744d418ebef5eb | 97f2852420d6fdc98e5a4a0321c35920ff070d41 | /examples/scripts/csc/cbpdn_ams_clr.py | 9b7714d8854ec1722a6998cd4d1d3d001830f1ee | [
"BSD-3-Clause"
] | permissive | eglxiang/sporco | 93595f3afb6acda758425f7332513eeb892fa51f | e4a716b32b675d6e23ba0bfc3b2d7c6f9bc5d7a3 | refs/heads/master | 2021-05-04T23:03:57.430340 | 2018-01-19T19:03:01 | 2018-01-19T19:03:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,460 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# This file is part of the SPORCO package. Details of the copyright
# and user license can be found in the 'LICENSE.txt' file distributed
# with the package.
"""
CSC with a Spatial Mask
=======================
This example demonstrates the use of :class:`.cbpdn.AddMaskSim... | [
"brendt@ieee.org"
] | brendt@ieee.org |
b68b7e14f09c7cdcf1d4e14991aaea2461b218bd | e986ebbf73a6dff7ccc58feb886e54afa57e49d9 | /sdk/python/pulumi_awsx/_utilities.py | 83985732e9f67955c5ab392bc27761660f9323b9 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | pulumi/pulumi-awsx | 5a5bdd77afaa674e9a5dd9f26540ddea5a1cde1c | 45136c540f29eb3dc6efa5b4f51cfe05ee75c7d8 | refs/heads/master | 2023-09-01T21:47:40.877155 | 2023-08-24T04:14:12 | 2023-08-24T04:14:12 | 132,053,036 | 186 | 107 | Apache-2.0 | 2023-09-13T07:28:54 | 2018-05-03T21:46:28 | TypeScript | UTF-8 | Python | false | false | 8,056 | py | # coding=utf-8
# *** WARNING: this file was generated by pulumi-gen-awsx. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import importlib.util
import inspect
import json
import os
import pkg_resources
import sys
import typing
import pulumi
import pulumi.runtime
from semver impo... | [
"noreply@github.com"
] | noreply@github.com |
10eabb97905160f97aa772471f67a978cc4678f6 | e7029532cd85ba412539e4721548d6f968d0ab0f | /manage.py | a803e18bf518f88959e1f8e79f4cd2d8114a7cf6 | [] | no_license | MarianaCarlo/djangoPracticeProyect | da815870b47d756750064523f528124420a5096d | e90d6855822c8e370e3d9b81ce9d230b296743cd | refs/heads/master | 2021-04-13T02:13:18.855221 | 2020-03-22T06:42:27 | 2020-03-22T06:42:27 | 249,127,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 633 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'djangoYouTube.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ... | [
"luzmarianacarlo1999@gmail.com"
] | luzmarianacarlo1999@gmail.com |
f5162f2536034ea5985077bdda69c77b3baf5542 | 8d61b66755310d4e17efe33ded502ad0d88dec62 | /flaskblog/__init__.py | a1ec0f704d0d0f0644ca6d7febb679533355dd22 | [] | no_license | githlearner/BlogPosts | d865d23b72fc2d08ad4445aeffda2a5d58098729 | a6cf20fbd489a19efab547dd001a7debc42cd646 | refs/heads/master | 2020-04-20T04:55:46.160815 | 2019-02-17T14:11:30 | 2019-02-17T14:11:30 | 168,642,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | import os
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_bcrypt import Bcrypt
from flask_login import LoginManager
from flask_mail import Mail
app = Flask(__name__)
app.config['SECRET_KEY'] = '851c97bbf386024ca976668627197702'
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///site.db'
ap... | [
"githinvgeorge@gmail.com"
] | githinvgeorge@gmail.com |
2237847fbef7495c512cc4733e27c3ae0a900010 | 280a6a852aa362837bec5934f17bdecd7dac079e | /cls_project/rosters/migrations/0007_auto_20170927_1659.py | e982d1233341bff1ee72798e5bb7b008be279ca1 | [] | no_license | st-carr/lacrosse | 994c6774f5ae89f722bf833db0c95021c21289a6 | 0bec04d0fdf0873c77f2a29289fc07b23a614da5 | refs/heads/master | 2021-08-07T18:07:26.859009 | 2017-11-08T16:48:27 | 2017-11-08T16:48:27 | 106,190,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-09-27 16:59
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('rosters', '0006_auto_20170927_1634'),
]
operations = [
migrations.AlterFiel... | [
"scarr087@gmail.com"
] | scarr087@gmail.com |
ec870e9d44656ae8aa261bf43bbff5bf6f2e40ca | 35c251c0d08dfb6e6bf8b6f9185715acf7fcc708 | /kopper/wsgi.py | a38e8c45d619d871c4fe601cefffd4507b2bf73b | [] | no_license | bencord0/kopper | 5aa1da91b0cb83284f8730fd42bb342249e064b9 | ba92fb7ab9af9a0a36a37a7f33b013ceb63a833b | refs/heads/master | 2023-08-10T10:00:39.198779 | 2018-07-20T13:17:30 | 2018-07-20T13:17:30 | 141,713,007 | 1 | 0 | null | 2023-07-25T19:03:59 | 2018-07-20T13:05:48 | Python | UTF-8 | Python | false | false | 466 | py | """
WSGI config for kopper project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
from raven.contrib.django.raven_compa... | [
"bencord0@condi.me"
] | bencord0@condi.me |
0c6541786ff6365db969ed0db3a73128b1d88a7e | ea6262cd7d8195df9bc14bd7edc89e82aa7d4c43 | /clase3/Ejercicio2.py | 2473a4de930d3d739291315b6e77ca739a9b0eca | [] | no_license | lrcortizo/ALSexercises | f00304c80d1cfc30c0baab8b131dc8c294a3d9d3 | fa52c82bed488a42ee971a8917ed301a1d7ac257 | refs/heads/master | 2021-09-21T09:09:00.336762 | 2018-08-23T10:26:56 | 2018-08-23T10:26:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | def f(texto):
d = {}
line = texto.split("\n")
line1 = line[0].split(", ")
for x in range(1, len(line1), 2):
d[line1[x]] = line1[x-1]
for x in range(1, len(line)):
print(line[x].replace(line[x][0], d[line[x][0]], 1))
texto = "Microsoft, 1, Apple, 2, Google, 3, Yahoo, 4\n1, 2015-01-09,... | [
"luisraco95@gmail.com"
] | luisraco95@gmail.com |
dbbeac41b617618cfc8f39cd2548e64d05349f60 | 9dca2a9952a81ee740e0cc37b137d994b7464f82 | /day_04/for_12.py | 53d46523c8a77ea52f6a2d6cf87abe9eb660547e | [] | no_license | roconthebeatz/python_201907 | 8558d11e3c5e521f6814dcbc127ff1507c9ca7a7 | 4515d695ebf49fb95a16d0c049ad4982941113c3 | refs/heads/master | 2020-06-29T05:50:05.275691 | 2019-08-04T05:41:30 | 2019-08-04T05:41:30 | 200,455,450 | 1 | 0 | null | 2019-08-04T05:52:04 | 2019-08-04T05:52:03 | null | UTF-8 | Python | false | false | 936 | py | # -*- coding: utf-8 -*-
numbers = [11, 22, 33, 44, 55]
# numbers 리스트의 요소 중 홀수인 요소에는 10을 곱하고,
# 짝수인 경우에는 원본 데이터 그대로 유지하여
# numbers_copy 리스트를 생성하세요.
# 일반적인 반복 코드를 사용하여 처리하는 예제
#numbers_copy = []
#for data in numbers :
# if data % 2 == 0 :
# numbers_copy.append(data)
# else:
# numbers_... | [
"noreply@github.com"
] | noreply@github.com |
4255372facaf9a7101262b53db5d91bb11fa70e9 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/103/usersdata/222/50669/submittedfiles/av1_3.py | a078720d7ccf91267555d632f67ab1c0ab99e466 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | # -*- coding: utf-8 -*-
import math
a=int(input('a:'))
b=int(input('b:'))
r=1
resto=1
cont=0
while r>0:
r=a%b
a=b
b=r
cont=cont+1
resto=resto+1
print(resto)
print(cont) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
781fc0cb9aa39faf90aca74ea777958b13b39322 | 4d55081635a0d90d7401d88ac54bbcc01c85dd12 | /modules/loan_requests/migrations/0001_initial.py | 59fbeb4f5a52833ffc175e017f8718941ea5254b | [] | no_license | esquonk/loan_requests | efec1dea3f02e0194a2ff1c4d171bc7edc7f9970 | 52ac0a8f32f34aed930316264155129e85f86c05 | refs/heads/master | 2021-01-12T00:31:55.159054 | 2015-02-11T02:13:13 | 2015-02-11T02:13:13 | 78,738,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,896 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
import loan_requests.fields
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations =... | [
"esquonk@gmail.com"
] | esquonk@gmail.com |
4a77c73597a49387cc61a1fea49a566acbb90bf4 | 9277d91eaf9ad0634402220c5cb62f3664347c38 | /main.py | 078dca7dc39dab794007a958fd5a8ef3b5880519 | [] | no_license | ngtrang/GANbot | 6387a76b1f9d00276c9ef0274a69a918c9f95b02 | 65f637b5f25101250093a86f6c1148c04fad2af8 | refs/heads/master | 2020-03-28T04:34:35.535581 | 2018-09-06T20:34:54 | 2018-09-06T20:34:54 | 147,723,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,087 | py | import os
import argparse
from solver import Solver
import torch
parser = argparse.ArgumentParser(description='SeqGAN in pytorch', epilog='#' * 75)
parser.add_argument('--gpus', default='', type=str, help='gpu to use: 0, 1, 2, 3, 4 or 0,1,2. Default: cpu')
parser.add_argument('--lr', default=0.1, type=float, help='lea... | [
"m.trang91@gmail.com"
] | m.trang91@gmail.com |
3dd7edb585e13d632ba412a0b12b8b9348c2948a | 578db86c51d44ebddd0dc7b1738985b3dc69eb74 | /corehq/apps/hqadmin/migrations/0015_rename_sqlhqdeploy.py | 0b35e450b0a336e0722dad15f4ee9786d7198ab2 | [
"BSD-3-Clause"
] | permissive | dimagi/commcare-hq | a43c7dd32b5f89c89fd5aa1b1359ab7301f4ff6b | e7391ddae1af1dbf118211ecb52c83fc508aa656 | refs/heads/master | 2023-08-16T22:38:27.853437 | 2023-08-16T19:07:19 | 2023-08-16T19:07:19 | 247,278 | 499 | 203 | BSD-3-Clause | 2023-09-14T19:03:24 | 2009-07-09T17:00:07 | Python | UTF-8 | Python | false | false | 512 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.27 on 2020-01-31 20:24
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('hqadmin', '0014_remove_sqlhqdeploy_couch_id'),
]
operations = [
migrations.RenameM... | [
"orange.jenny@gmail.com"
] | orange.jenny@gmail.com |
5c01fb0af38a0c80e3135d255e11b555288597a6 | 96a8714aa1f0d2d7a38d7ed6dfd29f53626f8e41 | /Ecommerce_Project/App_Payment/migrations/0001_initial.py | 0d32244a35f141d280741719435889f0f6dbd70e | [] | no_license | bridgecrew-perf7/python-deployment | 0ab69330fc1ed230d5219e7a58c58592fc0512ed | dc4c234f714026b0999237cfc622df133d02e75e | refs/heads/master | 2023-08-22T02:33:37.552849 | 2021-10-19T06:27:48 | 2021-10-19T06:27:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,078 | py | # Generated by Django 3.2.7 on 2021-10-07 06:02
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"fahimce18020@gmail.com"
] | fahimce18020@gmail.com |
d77805e81015050be4124c44545ac3ed14fa8d34 | fd13ecbe1f753a960553a73aa3d1aaa3b28cafc5 | /Preproceessing+autoencoders/randomForest.py | 96dbfc94304cdbbbaf8354a3e324a50572d0b689 | [] | no_license | zbxzc35/genetic-algorithm-for-cnn | 1324cb046a65ba2ec90017b275979366ad118579 | 8cd60c97d5a53ddec0e5eb20eb4a54d25ebb682f | refs/heads/master | 2021-01-16T20:01:42.810087 | 2016-05-28T20:52:05 | 2016-05-28T20:52:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,444 | py | #!/usr/bin/env python
import os
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), "../"))
import recognizer.data as data
import numpy as np
from keras.models import Sequential
from keras.layers.core import Dense, Dropout, Activation, Flatten
from keras.layers.convolutional import Convolution2D, MaxPool... | [
"deerishi@gmail.com"
] | deerishi@gmail.com |
951f433acec27ae7970c718810065a209f4c17b4 | c2602ec4c504914c0831ab061b6cee779be344a2 | /python/aead/kms_envelope_aead.py | ba9b8f25dc2ed14a763e30b393d4095f7add5406 | [
"Apache-2.0"
] | permissive | shigakio/tink | 85f8da6033139154528bf00bdadd8f3f800f6223 | a61aaeeb5da223357b5ec3513231bc8e493a4ac1 | refs/heads/master | 2021-02-06T14:41:38.074226 | 2020-02-20T06:18:02 | 2020-02-20T06:18:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,463 | py | # Copyright 2020 Google LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
28092363189055508902a6a5c0f2d91bdbd1ce62 | c065ff2a6a377aea2303b7b8482558049958a7ec | /shoe/1562059380/tactile.tac | cd120fe362dfa9c3097804be7f1c3def6e34d680 | [] | no_license | waedbara/vision2tactile | 7bc9861eecb4247fd254ea58dc508ed18a03b1af | edbc9dfee61b4a4b1f0caebb2f16faef090dff32 | refs/heads/master | 2022-04-02T20:43:16.621687 | 2019-12-11T08:07:39 | 2019-12-11T08:07:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | tac | ,3632,3750,3712,3742,3519,3722,3759,3345,3575,3584,3489,3674,3255,3344,3162,3038,3148,2864,2829,2696,3728,3718,3659,3515,1999,2024,1896,2125,2652,3265,3474,3326,3423,3297,3090,3153,3077,2165,2254,3127,3435,3151,3294,3310,3224,3297,3235,2820,2675,3464,3467,3457,3360,2046,2061,2965,2037,2463 | [
"brayan.inf@gmail.com"
] | brayan.inf@gmail.com |
5cc22cbff16ea64707ce2511eef96003aec9056c | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_173/ch161_2020_06_15_19_32_40_555261.py | a28363ec0ee02b8ca4432c1e1eb5d32ebf08b4a3 | [] | 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 | 286 | py | def PiWallis(elementos):
numerador,denominador = 2,1
i = 0
mul = 1
while i < elementos:
mul*= numerador/denominador
if i%2 == 0:
denominador += 2
else:
numerador +=2
i+=1
oi=mul*2
return oi | [
"you@example.com"
] | you@example.com |
0042cd7ad97726820014cb8b6a3f087d560913d2 | b41da6f351f27bf0d45a4e4d0e1be8f3a86f4b64 | /itsybitsy/leetcode/sliding_window.py | 2ddaef9a489cf95fe6af1b0a16bd1c8ef0f3cf44 | [] | no_license | santoshr1016/WeekendMasala | a5adbabe0b78cde567667376d7ddf05bb505a0ff | e099f9ac9677f7acb8faf620af94a06d76cae044 | refs/heads/master | 2020-03-26T00:26:32.649429 | 2019-08-30T07:32:24 | 2019-08-30T07:32:24 | 144,320,624 | 0 | 0 | null | 2019-06-03T23:08:00 | 2018-08-10T18:36:38 | Python | UTF-8 | Python | false | false | 278 | py | def sliding_window(nums, k):
size = len(nums) - (k-1)
op_list = []
for i in range(size):
op_list.append(max(nums[i: i+k]))
print(op_list)
return op_list
nums = [1, 3, -1, -3, 5, 3, 6, 7, 7, 8, 1, 34, -9]
k = 3
rv = sliding_window(nums, k)
print(rv)
| [
"santosh.ratnala@acquia.com"
] | santosh.ratnala@acquia.com |
396b0ff072a91509334183b26c67621108dbc34c | e79cbb0263459ac6842c8e6d74c34fc50e0c50df | /venv/bin/chardetect | 64c47d75a5503845d08f66305fb22b394bf53be4 | [] | no_license | sriniakhil13/fetch_youtube_video | 2406d0c97ffbc1489a99543586eb270573a9c07c | 082ba1123a6c3bea866e7bda82fbec32a7fd9f47 | refs/heads/main | 2023-03-25T08:03:04.856740 | 2021-03-23T12:02:19 | 2021-03-23T12:02:19 | 350,690,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | #!/Users/sriniakhilgl/PycharmProjects/fetch_youtube_video/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from chardet.cli.chardetect import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"sriniakhil13@gmail.com"
] | sriniakhil13@gmail.com | |
5973e550f31e56f8c6a6210839b7999ec1e8e179 | e9cc17b38479616a28762d119f02fc348c0862f4 | /Lecture 2/StringReplaceDemo_Function.py | d7dca1146fee79c1a85bda25ad14582b04a4be95 | [
"MIT"
] | permissive | AtharvaJoshi21/PythonPOC | 8f419672480f7df974b4e75b1010c344be73c389 | 6b95eb5bab7b28e9811e43b39e863faf2ee7565b | refs/heads/master | 2020-04-16T07:39:15.256822 | 2019-05-05T15:48:01 | 2019-05-05T15:48:01 | 165,394,707 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | #WAP to accept a string from user and replace all occurrances of first character except for the first character.
def TransformString(inputStr, replaceToken):
outputStr = inputStr[0] + inputStr[1:].replace(inputStr[0], replaceToken)
return outputStr
inputString = input('Please enter a string: ')
replaceToken... | [
"joshi.atharva92@hotmail.com"
] | joshi.atharva92@hotmail.com |
fdd8667260b4e5165b12fca643731f21d015e6f1 | bdc40647061899204712721adaf3c8940bd846d4 | /bayes.py | b36e8aa15bb63af27ae80c5b2a9f16c8a4817737 | [] | no_license | HankyungKo/machine_learning | fcce53935d3dcdc82928ae2be47ec666f573c2a2 | 152e04d122d34e309be81240180c97805bb498bf | refs/heads/master | 2021-01-17T21:07:07.202207 | 2016-07-25T07:41:29 | 2016-07-25T07:41:29 | 64,113,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | def main():
sensitivity = float(input())
prior_prob = float(input())
false_alarm = float(input())
print("%.2lf%%" % (100 * mammogram_test(sensitivity, prior_prob, false_alarm)))
def mammogram_test(sensitivity, prior_prob, false_alarm):
p_a1_b1 = sensitivity # p(A = 1 | B = 1)
p_b1 = prior_pro... | [
"noreply@github.com"
] | noreply@github.com |
41003197a8029e2bdd2fb2389695572510a70bda | 76e9afdf16eabcc9e1a3facd308e56362112efc4 | /plot/lossplot3.py | 22ff012e1ffa7ab7c93816de25e1713f6ecdc95c | [] | no_license | rerejii/pwb_work_2021 | c65c5e787ad98b7d847cb63ebadc24a02f001e90 | 8ecfb2a98d9d396ed505ecc939e384cf6400412d | refs/heads/main | 2023-03-30T10:43:18.115386 | 2021-03-24T05:38:41 | 2021-03-24T05:38:41 | 350,954,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | import os
import glob
import csv
import sys
import numpy as np
import pandas as pd
from natsort import natsorted
import matplotlib.pyplot as plt
# import matplotlib
markset = ['A', 'B', 'C', 'D', 'E', 'F']
for mark in markset:
csv_path = 'Z:/hayakawa/binary/20210227/unet_use-bias_beta/unet_use-bias_beta-'+mark+'/C... | [
"hayakawa.shinya.kochi@gmail.com"
] | hayakawa.shinya.kochi@gmail.com |
0da8d7f77d7c59a49e96cdee6a458cdba67f2234 | 40ca9c6939be6fd54c0ef33114b7b6f5b1ec69ac | /Projects/86Hexapod/scratch_command_handlers.py | 0da23dbca29073739e452b0cce294e7c114bf456 | [] | no_license | radu7/86Scratch | b9a7422d5584d30cf664ef78a21e96ce4eb09b4e | 5d12deed94de27489fd98154a1b58ec98613626c | refs/heads/master | 2020-07-11T17:34:50.787950 | 2018-10-15T10:28:06 | 2018-10-15T10:28:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46,153 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Nov 25 13:17:15 2013
@author: Alan Yorinks
Copyright (c) 2013-14 Alan Yorinks All right reserved.
@co-author: Sjoerd Dirk Meijer, fromScratchEd.nl (language support)
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser ... | [
"robotics@dmp.com.tw"
] | robotics@dmp.com.tw |
1df27376faba642447409fd88961131825bcc07b | 82d8189980a41b4b2afcb60f7edc966815e2763e | /VKTS_Exporter/Blender/io_scene_vkts/export_vkts.py | 5e135c21cc893d4bcc10f10c04aee795de888541 | [] | no_license | Nuos/Vulkan | e6b1c2492d32ab14d0135779e6dcd64c1b3a6068 | ec8e06626e54372fc928ea2c2b70ec01f768c33a | refs/heads/master | 2021-01-10T23:29:12.075053 | 2016-09-30T14:25:11 | 2016-09-30T14:25:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77,913 | py | # ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distrib... | [
"norbert@nopper.tv"
] | norbert@nopper.tv |
700c496a84a90d5c782ada2ec88467c3c5ab4266 | a913309bda87feee7f0637cb73901b4bcdca44bd | /0x0C-python-input_output/2-read_lines.py | a37333dfcb5deb5dd181b3116277abe6647cebde | [] | no_license | KamalTaleb/holbertonschool-python | e77b4f88a7ae60db158c0defa6c3f7737ad96562 | 29ffbccf1d02c7cf76a5df04d9386105dc149a81 | refs/heads/master | 2023-01-20T20:24:32.388729 | 2020-11-26T12:22:57 | 2020-11-26T12:22:57 | 292,331,337 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | #!/usr/bin/python3
"""read lines"""
def read_lines(filename="", nb_lines=0):
"""
read_lines
"""
line_number = 0
with open(filename, 'r', encoding='utf-8') as f:
for line in f:
line_number += 1
if line_number <= nb_lines and nb_lines > 0:
print(line, ... | [
"kamal.talebb@gmail.com"
] | kamal.talebb@gmail.com |
53e8b096c0ce39323fb44bc04f997dee29135b76 | 8483101f4db6200fc8bbbefecf84fda9993d068e | /src/decorators.py | 5c3a9cd953b7b20ef598c135cec5179e6824138f | [
"MIT"
] | permissive | rkulyn/telegram-pig-latin-bot | 4fabd7572cd35d87ee160ef49564a76f381ec020 | 0fa2b58ca99a0a164ae6d584b3e35ad61733abcf | refs/heads/master | 2022-12-12T13:17:54.344259 | 2019-05-27T11:23:39 | 2019-05-27T11:23:39 | 188,715,820 | 0 | 0 | MIT | 2022-12-08T05:10:25 | 2019-05-26T18:05:01 | Python | UTF-8 | Python | false | false | 1,617 | py | import telegram
from functools import wraps
from .utils import (
is_word_capitalized,
get_chat_id
)
def check_if_word_capitalized(translate_func):
"""
Check if word is capitalized
before translation
and fix translated word to be consistent.
Args:
translate_func (callable): Decor... | [
"rk.social.services@gmail.com"
] | rk.social.services@gmail.com |
e54a254830aa0ee6382ff75d8b3544e326d9c316 | 3b7d82cc23bb9a760e897e881a2cbfb1d4cb954f | /labcoat/attributes.py | 720be9a8f39e048d6a4c02aa7c26741a4478da53 | [] | no_license | gulopine/labcoat | af972a17e7f165d49e9333c7d1a779d6f616d608 | 4a6bfe05f97ad5f63d6c4d097553ae659bad2312 | refs/heads/master | 2021-01-17T06:25:21.033563 | 2011-03-13T15:30:34 | 2011-03-13T15:30:34 | 1,448,589 | 10 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,523 | py | class AttributeTester(object):
def __init__(self, specimen):
self.__dict__['specimen'] = specimen
self.__dict__['instance'] = specimen.instance
self.__dict__['results'] = specimen.results
def __getattr__(self, name):
self.__dict__['name'] = name
result = self.tes... | [
"marty@martyalchin.com"
] | marty@martyalchin.com |
81f3516f30f2d1b98eaee9bcfe05dc0e01f9b19a | b69fcdb72f9eddd38a98f3f3c8d2a2ce6e6ed686 | /ui/node_modules/bufferutil/build/config.gypi | c660e0c037981e6468c95c632e5d7ddf60ef456e | [
"Apache-2.0",
"MIT"
] | permissive | mmizutani/play-gulp-standalone | a7aaae1d2acb264824a126afe27b7e089d578322 | f98e98679b6096207cf3e1d88168edb08440357f | refs/heads/master | 2021-01-10T06:10:13.538988 | 2016-10-23T17:29:28 | 2016-10-23T17:29:28 | 43,297,031 | 12 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,803 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"gas_version": "2.23",
"host_arch": "x64",
"icu_data_file": ... | [
"minoru.mizutani@gmail.com"
] | minoru.mizutani@gmail.com |
c266018737baad1984bcd3c47b72b1c76945e567 | 8fc3cbeee5028b14f0475fc386ae6c7ea28e39fb | /old/stylegan2/external_models/__init__.py | 9de1d28de17576400a8303901b874fa3662a1a3d | [
"MIT"
] | permissive | StafaH/jamm-bandit | 7c2de32f1199530ae4d19cf7b8a14ebb2c4cc6c2 | 3c489817acc5c9b4d86a283809d59569b07f53d7 | refs/heads/main | 2023-02-19T01:04:45.698142 | 2021-01-23T19:05:05 | 2021-01-23T19:05:05 | 304,456,383 | 2 | 2 | Apache-2.0 | 2020-11-28T20:07:01 | 2020-10-15T21:53:56 | Python | UTF-8 | Python | false | false | 44 | py | from . import inception
from . import lpips
| [
"mhaiderbhai@hotmail.com"
] | mhaiderbhai@hotmail.com |
1be1c7204f14485d21ef5d7127501591e9648bad | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/cisco/aci/plugins/modules/aci_epg_to_contract.py | 45be2dd127a031e62cb74fd7e45089bff716e049 | [
"MIT",
"GPL-3.0-only"
] | permissive | SimonFangCisco/dne-dna-code | 7072eba7da0389e37507b7a2aa5f7d0c0735a220 | 2ea7d4f00212f502bc684ac257371ada73da1ca9 | refs/heads/master | 2023-03-10T23:10:31.392558 | 2021-02-25T15:04:36 | 2021-02-25T15:04:36 | 342,274,373 | 0 | 0 | MIT | 2021-02-25T14:39:22 | 2021-02-25T14:39:22 | null | UTF-8 | Python | false | false | 9,989 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
... | [
"sifang@cisco.com"
] | sifang@cisco.com |
3b1091ba6d1872f74503316ea59fbed897d869ac | 218fd310ba0ef1292c6f00ea9a8685d10fb8a7dd | /jtr/jtr.py | b5019cc83e274d03ec29470de342f8b5952c603b | [] | no_license | alex-dow/jenkins-test-repo | 6ccab9d3ea594b5e414b5dc8ea5b387b7fb74a64 | cb4b4016cad436b732e4c1c67880eb6ea8b342dd | refs/heads/master | 2021-05-04T10:47:44.649727 | 2017-07-15T06:59:24 | 2017-07-15T06:59:24 | 36,965,470 | 0 | 0 | null | 2017-07-15T06:59:25 | 2015-06-06T03:08:17 | Python | UTF-8 | Python | false | false | 127 | py | def _add(a, b):
return a+b
def _mult(a, b):
return a*b
def _div(a,b):
return a/b
def _sub(a,b):
return a-b
| [
"v0idnull@localhost"
] | v0idnull@localhost |
883138040abd6bbc8d9e075ad2a4582850927080 | 8c19557c69cbdabed0167ba850ca17836bb5abc0 | /mdfy_W_fxns.py | 38abbd2f8d2ba7f96d7b896b0f7942435956e2c5 | [] | no_license | graceyng/connectome_modeling | 8e3bf3de11b998bc594e997a879fddfbe097b7a2 | d5124dc8d4148d52fed2a08f97b9c980b2d06093 | refs/heads/master | 2020-06-06T01:39:16.308735 | 2019-08-16T21:01:14 | 2019-08-16T21:01:14 | 192,603,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,226 | py | import numpy as np
import h5py
def get_first_ord_W(connectome_file, seed_region, conn_dir, name_map=None, save_file=None):
with h5py.File(connectome_file, 'r') as f:
W = f.get('W')[()]
ipsi_regions = f['W'].attrs['Ipsi_Regions']
contra_regions = f['W'].attrs['Contra_Regions']
if name_ma... | [
"graceyng14@gmail.com"
] | graceyng14@gmail.com |
2d8214e4e74735466bb051a1cc5f75bca439b571 | 331056b911828f4e8b380b4989f5e64d866d18e2 | /UI/UI.py | 8443ed013bf058985f957e06ce187e6cd7ebac98 | [] | no_license | dazzlezac/PushChess | 1a18d01d4675df11a2aa993a109cf3713bfa1685 | 0c7b8af64e12f8ee9bb4ab656d47d82072d8498e | refs/heads/master | 2020-04-05T11:31:10.981335 | 2018-11-06T03:35:02 | 2018-11-06T03:35:02 | 156,319,310 | 0 | 0 | null | 2018-11-06T03:17:22 | 2018-11-06T03:17:22 | null | UTF-8 | Python | false | false | 77 | py | import os
import pygame
import Board.Cell as cl
import Board.Pieces as p
| [
"michaelostower@gmail.com"
] | michaelostower@gmail.com |
0e365224111f952db09c0c48889ec831a0dc1b5c | d7b4e2e391e1f15fd7cb4fbf4d9aee598131b007 | /models/BiLSTM1d.py | 38efbe949140c842932c9d98b0a6c2aa0f9616d9 | [
"MIT"
] | permissive | wuyou33/DL-based-Intelligent-Diagnosis-Benchmark | eba2ce6f948b5abe68069e749f64501a32e1d7ca | e534f925cf454d07352f7ef82d75a8d6dac5355c | refs/heads/master | 2021-01-02T15:06:29.041349 | 2019-12-28T21:47:21 | 2019-12-28T21:47:21 | 239,673,952 | 1 | 0 | MIT | 2020-02-11T04:15:21 | 2020-02-11T04:15:20 | null | UTF-8 | Python | false | false | 1,692 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
class BiLSTM(nn.Module):
def __init__(self, in_channel=1, out_channel=10):
super(BiLSTM, self).__init__()
self.hidden_dim = 64
self.kernel_num = 16
self.num_layers = 2
... | [
"646032073@qq.com"
] | 646032073@qq.com |
0f7507ec552f993b19bdb5b08b477f106272d2bb | a4c20836b6d322c89d654160ebf536f5d5b76e5d | /class/class13.py | 4f4ecf3c2a69e80e9b390eb8b78048e1f6b0f148 | [] | no_license | SYSH/python_project | d54899b85e4af5bebaf4bc063bc3d65ad9d4901d | 3e742579f10fbe84a71ef0493b15bbccf0c81f60 | refs/heads/master | 2021-01-10T00:54:28.705017 | 2015-08-13T10:42:08 | 2015-08-13T10:42:08 | 39,331,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | #! usr/bin/env python
# -*- coding: utf-8 -*-
# 模拟抽象类的实现
def abstract():
raise NotImplementedError("abstract")
class Fruit:
def __init__(self):
if self.__class__ is Fruit: # 如果实例化的类是Fruit,则抛出异常
abstract()
print "Fruit"
class Apple(Fruit):
def __init__(self):
... | [
"jixiangrurui@gmail.com"
] | jixiangrurui@gmail.com |
be2af5d71aeea7449afa6597430dbca14052a8a2 | 1c6be2ae80823f30a580656d2f1e99ac57e67094 | /StudProjects/team06_gheorghiu_muresan/chatbot_holiday/chatgui.py | 8a3fe0c95d7fd1a3121f5663c8f24adfbc4e76fe | [] | no_license | lauradiosan/MIRPR-2019-2020 | 3eb799f4af62abbd597389cf6b1859a3e7026673 | b7154e763dd1eeb4ad5fa9ca2fd2109682824dea | refs/heads/master | 2023-01-12T03:20:35.950502 | 2020-09-26T08:34:09 | 2020-09-26T08:34:09 | 210,589,829 | 10 | 23 | null | 2023-01-07T13:39:43 | 2019-09-24T11:49:24 | Python | UTF-8 | Python | false | false | 5,651 | py | import webbrowser
import requests
from nltk.stem import WordNetLemmatizer
lemmatizer = WordNetLemmatizer()
from keras.models import load_model
model = load_model("chatbot_model.h5")
import spacy
from dateutil import parser
NLP = spacy.load("en_core_web_sm")
required_fields = {"location": "", "check... | [
"dragos.gheorghiu@complyadvantage.com"
] | dragos.gheorghiu@complyadvantage.com |
1769b070f214d85af5b550bc822d0213fd67d367 | c224506bea30d7d22f9b09fdee6a1e180d2bbe7f | /ep1to50/17.py | b2175dd8d8701284d7d4f2c3e29b091ec1be01c1 | [] | no_license | VimalMinsariya/euler-project | 040d4e4d752435b6942b9b52f52dd4e1414563b1 | f88ff159f41e66f5e9df06968965b51b9cf6ee8a | refs/heads/master | 2023-04-08T20:11:30.852471 | 2021-04-18T13:11:34 | 2021-04-18T13:11:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 811 | py | import time
start=time.time()
words1=['','one','two','three','four','five','six','seven','eight','nine', \
'ten','eleven','twelve','thirteen','fourteen','fifteen','sixteen','seventeen','eighteen','nineteen']
words2=['twenty','thirty','forty','fifty','sixty','seventy','eighty','ninety']
cnt_words1 = [len(s) for s in w... | [
"p1yslee@gmail.com"
] | p1yslee@gmail.com |
9488cba50e6d65e0e46f7b2c21c97a1435676f0a | 7d663ed33b199c8d0491e9e6ac90b52db5b9ee80 | /pypop/metrics/multiplot.py | 49e60bac6bd0f4befefe484feb1c621838df2c96 | [
"BSD-3-Clause-Clear"
] | permissive | numericalalgorithmsgroup/pypop | 69a4e65c04e0aae9c41499455ab714e5151af4af | 830913dd1ad4c7e854f408c991f4171bdc69b18b | refs/heads/develop | 2022-02-19T03:43:05.452707 | 2022-02-16T11:11:07 | 2022-02-16T11:11:07 | 215,820,595 | 12 | 6 | NOASSERTION | 2020-02-21T09:50:00 | 2019-10-17T15:02:48 | Jupyter Notebook | UTF-8 | Python | false | false | 4,496 | py | #!/usr/bin/env python3
# SPDX-License-Identifier: BSD-3-Clause-Clear
# Copyright (c) 2019, The Numerical Algorithms Group, Ltd. All rights reserved.
"""Shared plot routines for multiple Metric Sets
"""
import numpy
import pandas
import matplotlib as mpl
import matplotlib.pyplot as plt
import matplotlib.ticker as mtic... | [
"phil.tooley@nag.co.uk"
] | phil.tooley@nag.co.uk |
bd5bc132956fb3e652a0857f154ef9365db31211 | 161249cba88aa81fbf73d5ad56047370b5aa8ecd | /VDSite/VDSite/urls.py | 3da90c8fa1f393ee0e700ef9befd4253a398a4ef | [] | no_license | saberkid/VirusDetectionWebsite | 3a8862203ea355364dafc153d0b34e898eb49b2f | 5d6793c8a5fb82bd624483823b09c0ed373718d6 | refs/heads/master | 2020-05-02T22:33:55.452195 | 2019-04-08T03:26:55 | 2019-04-08T03:26:55 | 178,255,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 863 | py | """VDSite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"450330386@qq.com"
] | 450330386@qq.com |
0b1d56f741ed9007c2648289bff4ec52cd93cfe2 | 0fdfa47c295242dce6c29ed3c2ed0f809f3c7bd1 | /custom_components/jablotron100/alarm_control_panel.py | 80fccaa8c7aca913e256a558c0a1ee7079d01286 | [
"MIT"
] | permissive | Fr33GitHub/home-assistant-jablotron100 | 8db2124593a507f5a59cc0f54e095d45d2aabb06 | 81e2121af8bbe1d90cbb01418eac64d8eb12056c | refs/heads/master | 2023-08-30T13:00:54.875615 | 2021-10-29T18:29:30 | 2021-10-29T18:29:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,944 | py | from __future__ import annotations
from homeassistant import config_entries, core
from homeassistant.const import (
STATE_ALARM_DISARMED,
STATE_ALARM_ARMED_AWAY,
STATE_ALARM_ARMED_NIGHT,
STATE_ALARM_ARMING,
)
from homeassistant.components.alarm_control_panel import (
AlarmControlPanelEntity,
FORMAT_NUMBER,
FORMA... | [
"kukulich@kukulich.cz"
] | kukulich@kukulich.cz |
7f6e9eb15423cb5f99f4830d9e1643a50647435d | 197b516a5b0fd63d1e7e15f065e9994f327584d3 | /processResponse.py | 3584d9b325b86280aee9284326b0414f72daabbc | [
"MIT"
] | permissive | Vipul26Singh/interswitch_python | 81ce2fa390cb2b4351a0d92d26cd84710c9ab566 | b5293648cb3208efaa840a8019ff9e7fdbd78692 | refs/heads/master | 2021-01-02T22:28:18.731554 | 2017-08-10T21:30:52 | 2017-08-10T21:30:52 | 99,324,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | #!/usr/bin/python
import cgi
from config import *
from response import *
from helper import *
from Interswitch import *
from processRequest import *
print("Content-Type: text/html\n")
POST = cgi.FieldStorage()
amount = POST['amount']
txnId = POST['txnref']
response = getSuccess(POST['resp'])
returnUrl = get_config(... | [
"singhvipul092@gmail.com"
] | singhvipul092@gmail.com |
553d12431d9304c8ebcd4e37d4024cb659c03251 | c0bb716d3ceb703e46c85e1a3073cec441e2bc14 | /ghost_Example.py | fd2a95035b1a1dfec9614dba251714c679d8fbe1 | [] | no_license | raj61/webscraper | 2323c070ee7563c9026d3e3e38255df2860ab3e3 | 61a0029ec9ff8360e1d7f821350197f1489cfcba | refs/heads/master | 2021-04-06T17:51:45.496388 | 2016-07-24T15:21:07 | 2016-07-24T15:21:07 | 64,071,218 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | from ghost import Ghost
ghost = Ghost()
page, resources = ghost.open('https://www.hackerrank.com/raj61')
result, resources = ghost.evaluate(
"document.getElementsById('hacker-contest-score');")
| [
"noreply@github.com"
] | noreply@github.com |
931705617b37f9fde1731e2aa3f2132f56f66bde | 81ba6cce0d3f278fa0ad1afe2d2eb20590bf4a47 | /transection rolback/Transaction mongoss/transaction/transaction/asgi.py | 2da11fc42a50e41e5e60b684d46242f27352db10 | [] | no_license | abhi-blackbird/doctor-slot-booking | 7f5e3821e78ea0a2150581ce760d6b44d14dc730 | 031301693104c5788295997b8ca15d034b8c690b | refs/heads/master | 2023-06-18T06:38:58.161359 | 2021-07-16T09:36:33 | 2021-07-16T09:36:33 | 386,582,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
ASGI config for transaction 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.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_S... | [
"abhisheksrivastav120@gmail.com"
] | abhisheksrivastav120@gmail.com |
1885e133317728b591d8e215221e805903af13f0 | 867b5d6efc6761e97412613c19d41c4fbe927238 | /demos/callLineEdit.py | b58032c82c1b8cca29274ff8e02ab12d8525c398 | [] | no_license | LouisLu78/pyqt5 | 516bdcd35a6678b1add300a4a14854ef61165a08 | 10e0ab9b186c88131180dba19ded483431c6966f | refs/heads/master | 2020-09-26T13:55:54.350566 | 2020-04-23T14:33:49 | 2020-04-23T14:33:49 | 226,268,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | # -*- coding: utf-8 -*-
# author: Guangqiang Lu time:2019/12/2
#The codes below are copied from textbook.
import sys
from PyQt5.QtWidgets import QDialog, QApplication
from demos.demoLineEdit import *
class MyForm(QDialog):
def __init__(self):
super().__init__()
self.ui = Ui_Dialog()
self.... | [
"lewgq@yahoo.com"
] | lewgq@yahoo.com |
ac335cb229cfcfe1bf8b76a14f32df4cdd12d78c | d7591ed86fdb64ea1b1f8d74f8d0d06a1eecced2 | /create_tables.py | eb5fe579e0ba8d8acaf38a7e7f2766c1ccd7bea2 | [] | no_license | friendkak/aws-redshift-etl | c9a8a3d290705a6252c3b933584e19bbe7600ffe | 81a8dfa56ebaad1b48f8d26e9a01c670d1927080 | refs/heads/master | 2022-05-08T22:52:39.874664 | 2019-11-12T13:31:33 | 2019-11-12T13:31:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,269 | py | import configparser
import psycopg2
from sql_queries import create_table_queries, drop_table_queries
def drop_tables(cur, conn):
"""Delete all the tables defined in the drop_table_queries list in the sql_queries.py file.
Parameters:
cur: The curser of the postgresql database connection
conn: The ... | [
"i3li.xz@gmail.com"
] | i3li.xz@gmail.com |
47a40b51c072f147b0fc417499d22a18299be33b | ad218bf32cd8b7267e1ca231a2e439c84bccbb76 | /blog/migrations/0001_initial.py | 347f26892107a55e295b81963fa14e78dc212548 | [] | no_license | jy1dyz/my-first-blog | 09829440797baa5e6dacfc2c8c93e8f52649df58 | f45ada57356f8b9078420daa3da94960a78f4e1c | refs/heads/master | 2020-04-06T19:32:54.207734 | 2018-11-15T16:26:41 | 2018-11-15T16:26:41 | 157,709,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | # Generated by Django 2.1.3 on 2018-11-15 16:00
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"jyldyz.kgz@gmail.com"
] | jyldyz.kgz@gmail.com |
417e24a7d0cdae7a8007e6887415eeadb3003e8a | 59fcd60a5ad79eb9bd94cf3fe0561a1b7554254a | /shaowysocket/tests/test_socket.py | 39ecffc54c3f1e4c85d9c822816a75e013258c66 | [
"Apache-2.0"
] | permissive | eternal-flame-AD/shadowysocket | 85d60eb08bc83c9b65167dad6c4ab9900970ccf9 | 8741e40d7f6099f5764a19c13df7d76fdc06b442 | refs/heads/master | 2020-03-14T05:23:43.291969 | 2018-04-29T05:20:38 | 2018-04-29T05:20:38 | 131,463,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,783 | py | import os
import sys
import threading
import socket
import time
parentdir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0, parentdir)
import shadowysocket
class echoserver():
def __init__(self):
self.conn = socket.socket()
self.conn.bind(("127.0.0.1", 12300))
... | [
"eternal_flame-AD@protonmail.com"
] | eternal_flame-AD@protonmail.com |
0de6decc8413950738fadc0bdf9a8a8f56266a14 | 836d439b7d39894a2d0fda22cdd6e098c328fc49 | /AtomicPhysics/convertcmtoev.py | 699bdab8464fa57e14ff3079cd0ad981e8327741 | [] | no_license | cjf0019/Physics | 5bfc5a13880ef68da7cb20b353a25a935af161c8 | 8d455fdbe4875d8d59a727a66ba05549a2f78360 | refs/heads/master | 2023-02-25T01:57:50.328487 | 2021-02-01T00:24:28 | 2021-02-01T00:24:28 | 120,964,831 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | file = open('energiestoconvert')
convfile = open('energylevelsconv','w')
convert = 1.2398*10**-4
for i in file:
print(i.split()[-1])
num = round(float(i.split()[-1])*convert,3)
print(num)
convfile.write(str(num)+'\n')
convfile.close()
file.close()
| [
"noreply@github.com"
] | noreply@github.com |
4f0f71f80bd3b85e40768be8b963c87198ddee0f | 2ee0aa5f5819de0b4e9d173505c769b3c2ab0483 | /app.py | 2bbc469162737f55b13669622f9b26429a4573e2 | [] | no_license | ArthurTriis1/puzzle8-resolver-flask | 1462d79570dc491c796a836257f29313c664d474 | 51292cdf1513e23fa7c9668dac996906c7a3c6bc | refs/heads/master | 2023-04-25T16:13:29.327978 | 2020-07-01T16:00:48 | 2020-07-01T16:00:48 | 276,421,942 | 0 | 0 | null | 2021-05-06T20:16:32 | 2020-07-01T16:00:15 | Python | UTF-8 | Python | false | false | 572 | py | import os
from flask import Flask, jsonify, request
from flask_cors import CORS
from Puzzle8Resolver import puzzle8Resolver
from Puzzle8 import Puzzle8
app = Flask(__name__)
cors = CORS(app, resource={r"/*":{"origins": "*"}})
@app.route("/")
def index():
initialPuzzle = request.args.get("puzzle")
puzzle = Pu... | [
"arthurfelandrade@gmail.com"
] | arthurfelandrade@gmail.com |
5fbe531f32aca08959a6a0c0eb117e9ef7a4373a | 4a3758cee6d15d9b914705959ff5880f55b81d3e | /newsApp/migrations/0015_topn_hindi_video.py | 50920fa0d112234679c494f1d7a29460b40f1c9f | [] | no_license | vineetl/newsup | 779ea5c60706564f4492794846730e1e13e6db83 | d800faa68e0c51de33e5498ff404340864e7d115 | refs/heads/master | 2021-01-18T16:14:15.094708 | 2017-03-30T18:06:54 | 2017-03-30T18:06:54 | 86,730,638 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,069 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('newsApp', '0014_hindi_business_video_hindi_entertainment_video_hindi_top_stories_video'),
]
operations = [
migrations.Create... | [
"vineetloveme@gmail.com"
] | vineetloveme@gmail.com |
8bea891a5c78ecff0f68c14f6142e4854999f627 | bfbb159e934000128ddb18fa995f139404822914 | /GIC_LK_Scrape/settings.py | c1a9984f079497795ec38ab0025667dc441ed1f4 | [] | no_license | ErangaD/CS4642-IR-GOV_ORG_INFO_Search | 9ca8cf28a31121e5c02db22e83d6f394a15ef649 | 6353d69e871d277ceb3aa4e296544e6758b1b6ae | refs/heads/master | 2020-03-20T06:33:23.632673 | 2018-08-23T17:12:46 | 2018-08-23T17:12:46 | 137,252,472 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,143 | py | # -*- coding: utf-8 -*-
# Scrapy settings for GIC_LK_Scrape project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.org/en/latest... | [
"erangadulshan.14@cse.mrt.ac.lk"
] | erangadulshan.14@cse.mrt.ac.lk |
dac5c92e57f1884e10166fa2daf3927839cbebba | 9a17f548750dfccfd440875a5ebf175cce0c1ccf | /Labs/01/imgLoad.py | 4eb9242320cd8517e260889f5b881e0c573af87e | [] | no_license | rmh2805/introToAIHW | 5e35cc8ceb7a61d67ace4c706636f6be5fc010f5 | 4bcbd36069c825c92deab33c9e3dbedcf9a876d1 | refs/heads/master | 2020-12-23T07:29:14.042230 | 2020-04-25T13:15:44 | 2020-04-25T13:15:44 | 237,084,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | from PIL import Image
im = Image.open("Inputs/mpTerrain.png")
print(im)
width, height = im.size
pix = im.load()
for row in range(0, height):
for col in range(0, width):
if pix[col, row][3] != 255:
print('(' + str(row) + ', ' + str(col) + ')')
| [
"rmh2805@g.rit.edu"
] | rmh2805@g.rit.edu |
8f95ddc304068276d2a8f6436a878c312f5a6a6b | 7177766e8875f655b678b06cc56be761264ec215 | /df_user/views.py | baa440c87b9c884ca36f704a08204c1c042af01d | [] | no_license | yjz111/tiantian | c51ddbe698845d7215dabc81f09510ff8bebd75b | 15e1e343ceabbecc7f1627393bd4d6aee792a03c | refs/heads/master | 2020-04-25T16:24:28.188731 | 2019-04-09T13:55:09 | 2019-04-09T13:55:09 | 172,910,971 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,039 | py | from django.shortcuts import render
from django.shortcuts import render, redirect, HttpResponseRedirect
from django.http import HttpResponse
from df_order.models import OrderInfo
from . import user_decorator
from df_goods.models import GoodsInfo
from .models import *
from hashlib import sha1
from django.http import J... | [
"1206604668@qq.com"
] | 1206604668@qq.com |
e2d41343f27f05e6c7fa1a08f1fed39de9497bdc | 8b011dafcd028189e722cc37bb097b42130cfc07 | /Mundo 02/Ex062.py | b6b10bcfec828d2c3be037aa98a23fc95ffa01c1 | [] | no_license | barreto-jpedro/Python-course-exercises | be424056518837712b4ca39f3afa4763b65cf8a7 | 91ac3f36d90deafac3a6eeecee47b4710a6d7d0c | refs/heads/master | 2023-09-04T04:36:37.747689 | 2021-10-19T22:48:57 | 2021-10-19T22:48:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | primeiro_termo = float(input('Digite o primeiro termo da sua PA: '))
razao = float(input('Digite a razão da sua PA: '))
n_de_termos = int(input(('Quantos termos você quer ver? ')))
while n_de_termos != 0:
n = 0
while n != n_de_termos:
print(f'{primeiro_termo} -> ', end='')
primeiro_termo += ra... | [
"joaopedro.bcalmeida@gmail.com"
] | joaopedro.bcalmeida@gmail.com |
8e6086f8659c6e50223d4ade9b087dd525b2aabc | 6294e1613c812612d4463da83cfc24d8c213d3f6 | /arjuna/interact/gui/dispatcher/driver/driver_commands.py | 449247a61e551959f2f3511cbf38eef4b541f5b8 | [
"Apache-2.0"
] | permissive | prabhudatta22/arjuna | 52747bc2d9600f1cd04457b29c919221464a7b88 | 37a9afe3f8f2b2e82da854c3e497a67a77c6749f | refs/heads/master | 2022-12-06T04:10:21.346896 | 2020-08-31T06:03:13 | 2020-08-31T06:03:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,897 | py | # This file is a part of Arjuna
# Copyright 2015-2020 Rahul Verma
# Website: www.RahulVerma.net
# 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... | [
"rahulverma81@gmail.com"
] | rahulverma81@gmail.com |
9bc3b610843612d19d76e61bd47db7d4bfb9af9d | 08b74293c409086681eda77310f61831552478f1 | /instafilter/model.py | 8861ab8fc61abd65f2855c66af97c9cde85038f8 | [] | no_license | jiaxinwang/instafilter | d895928a3c311edf8ce14f49e716334842a51acf | cdc84b1b1055fd3d8b5ba81db69f9abeef5346e7 | refs/heads/master | 2023-07-21T19:57:38.976494 | 2021-09-06T14:17:42 | 2021-09-06T14:17:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | import torch
from torch import nn
class ColorNet(nn.Module):
def __init__(self):
super().__init__()
self.fc1 = nn.Linear(5, 25)
self.fc2 = nn.Linear(25, 25)
self.fc3 = nn.Linear(25, 25)
self.fc4 = nn.Linear(25, 5)
def forward(self, x):
x = torch.tanh(self.fc1(... | [
"travis.hoppe@gmail.com"
] | travis.hoppe@gmail.com |
9cf7ef40361954de91c7ad1e18c99f33388da59f | e9ddc7ff4b5705c0c2fc363fd6fbd03b7187d376 | /anytask/tasks/migrations/0028_auto__add_field_task_contest_integrated__add_field_task_rb_integrated_.py | 6a7aa556b52b8902ec3c52cc199003309dc1844f | [
"MIT"
] | permissive | dimmo/anytask | 513f42ba67dd4728f2bd0d4b08159da39e70afce | e7a42bcbe117ccafc4db33ff3eeb153cb25e4693 | refs/heads/master | 2021-06-28T00:10:30.787965 | 2019-03-26T06:02:23 | 2019-03-26T06:02:23 | 178,003,295 | 0 | 1 | MIT | 2019-03-27T13:45:50 | 2019-03-27T13:45:50 | null | UTF-8 | Python | false | false | 19,390 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Task.contest_integrated'
db.add_column('tasks_task', 'con... | [
"makhalin@yandex-team.ru"
] | makhalin@yandex-team.ru |
607f93f58e2d91f29789e6af6cb26ef32e942d90 | 86a7e3fff60ecef9b34365f84cb228bb245bb446 | /T/Dataset.py | e30976866f15dbc696f1390a33054d28dd213cc1 | [] | no_license | wiratmoko11/CNN | 503e5cc1469895e50398b3110524b0d91fa8b251 | 81f3f103c6797f30dce411d4286eb5c63baeea73 | refs/heads/master | 2021-09-05T15:54:31.293273 | 2018-01-29T13:24:47 | 2018-01-29T13:24:47 | 119,232,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,327 | py | import pickle as cPickle
import pandas
import numpy as np
import matplotlib.pyplot as matplot
class Datasets(object):
def __init__(self, datasets_folder):
self.datasets_folder = datasets_folder
print("Datasets")
for i in range (1):
with open(datasets_folder+'data_batch_'+str(i+1)... | [
"wiratmoko11@gmail.com"
] | wiratmoko11@gmail.com |
911813ce3798ec2e0ae0f732d60f5e9b072439ab | 7d3a7803758bf722dcfefa8d2ae12695ca06ab76 | /meta_rl_tools/envs/pybullet_locomotors/gym_locomotion_envs.py | 52e3cad3135751859d1338e4e42a72e5e5a7efc3 | [] | no_license | rlsim2realarchitecture/rlsim2realarchitecture | 32cbfbc26a69fc458198a7fdd1d2844bff05a897 | 1c39b8b9f1167001f2bf4890f7e263ccb766fcdb | refs/heads/master | 2020-06-17T00:57:24.121185 | 2019-07-09T10:07:07 | 2019-07-09T10:07:07 | 195,749,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,053 | py | from .scene_stadium import SinglePlayerStadiumScene
from .env_bases import MJCFBaseBulletEnv
import numpy as np
import pybullet
from .robot_locomotors import Hopper, Walker2D, HalfCheetah, Ant, Humanoid, HumanoidFlagrun, HumanoidFlagrunHarder
class WalkerBaseBulletEnv(MJCFBaseBulletEnv):
def __init__(self, robot,... | [
"52648821+rlsim2realarchitecture@users.noreply.github.com"
] | 52648821+rlsim2realarchitecture@users.noreply.github.com |
349c60eae87294e77348f7473f77b11fd2ecbe3c | da5849cc6ab950a716131fb8c2bee2267e627463 | /python/rabbitmq_test/ack_durability/worker.py | e383df6f6907c4ca95950931823193bccc3183bd | [] | no_license | leisheyoufu/study_exercise | 5e3beba7763f2dfafa426932e21f110df1fd150e | db58097f4b542aea894b11feae31fb26006d5ebc | refs/heads/master | 2023-08-16T21:29:26.967795 | 2023-08-11T03:09:31 | 2023-08-11T03:09:31 | 13,537,939 | 3 | 1 | null | 2023-09-05T21:59:21 | 2013-10-13T11:13:29 | Jupyter Notebook | UTF-8 | Python | false | false | 618 | py | #!/usr/bin/env python
import pika
import time
connection = pika.BlockingConnection(pika.ConnectionParameters(
host='localhost'))
channel = connection.channel()
channel.queue_declare(queue='task_queue', durable=True)
print ' [*] Waiting for messages. To exit press CTRL+C'
def callback(ch, method, propertie... | [
"clscu@live.cn"
] | clscu@live.cn |
733f42f5fe14a8f33b8397e3fc0678d423aa60c3 | f1987300725db43bfda84b8b2849c49ae3b1c900 | /try_ut/__init__.py | 0a6af5e4cc830799f12a58fac3dece16e38b63ea | [] | no_license | 1012378819/hz | 5f80283d825263766d124e0c1bc523d579abda74 | 46dece6f03001f6ee0776f7e6b55156e43e49a7e | refs/heads/master | 2021-05-23T00:43:40.881745 | 2020-04-06T14:07:08 | 2020-04-06T14:07:08 | 253,159,451 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31 | py | #author:lup
#-*-coding:utf-8-*- | [
"pei.lu@kingstarfintech.com"
] | pei.lu@kingstarfintech.com |
6e17c845bbeab45235e1a90d35330690f28f1ec0 | d84506ed7b2d35edf4850b11f86a77b91fae8c95 | /Machine_Learning/RL/Grid_World/gridworld.py | d6fb9f0940cc0fba733568cfdd88f523e92c948c | [] | no_license | li2ui2/Python_Personal_DEMO | b5a5cfd0523596f4553fc065e1e71bdefb8b3580 | 57ce8c2d4e4636e774a9acf138ca5c77aa018cd4 | refs/heads/master | 2022-04-22T05:50:08.022777 | 2020-04-24T13:51:57 | 2020-04-24T13:51:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,515 | py | from io import StringIO
import numpy as np
import sys
from gym.envs.toy_text import discrete
UP = 0
RIGHT = 1
DOWN = 2
LEFT = 3
class GridworldEnv(discrete.DiscreteEnv):
"""
Grid World environment from Sutton's Reinforcement Learning book chapter 4.
You are an agent on an MxN grid and your goal is to re... | [
"21824087@zju.edu.cn"
] | 21824087@zju.edu.cn |
f876294b823cd42948d89f02caf02bbee39ddf80 | fab39aa4d1317bb43bc11ce39a3bb53295ad92da | /tests/torch/test_load_model_state.py | 5eda1ed71238d33770b716b7cb5786bd3945a565 | [
"Apache-2.0"
] | permissive | dupeljan/nncf | 8cdce27f25f01ce8e611f15e1dc3036fb8548d6e | 0abfd7103ca212888a946ba4d0fbdb9d436fdaff | refs/heads/develop | 2023-06-22T00:10:46.611884 | 2021-07-22T10:32:11 | 2021-07-22T10:32:11 | 388,719,455 | 0 | 0 | Apache-2.0 | 2021-07-23T07:46:15 | 2021-07-23T07:43:43 | null | UTF-8 | Python | false | false | 27,407 | py | """
Copyright (c) 2019 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writin... | [
"noreply@github.com"
] | noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.