blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
db6a736e11fde670b62925e230cbb5ec6784d107 | 00d8996abd05df1f9783fe1959ee4bcb053e6c37 | /collective/documentviewer/browser/traverse.py | 9b59fcd67d93b508d7a6b90198b0a7de819293a7 | [] | no_license | jianaijun/collective.documentviewer | ea97e7d5c67cfbe441650f186b81a493794a5c8a | cfe5d07188a801a70296a52c1eb03f510e38ab67 | refs/heads/master | 2020-07-23T10:25:55.242566 | 2016-11-14T21:47:46 | 2016-11-14T21:47:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,883 | py | from logging import getLogger
import os
from AccessControl import Unauthorized
from AccessControl import getSecurityManager
from OFS.SimpleItem import SimpleItem
from Products.CMFCore import permissions
from Products.CMFCore.utils import getToolByName
from Products.Five.browser import BrowserView
from Products.Five.br... | [
"vangheem@gmail.com"
] | vangheem@gmail.com |
43e02e8b992a0899736fc519eca140b918ee2680 | a092efcf3a3c3841fdd4a4d8926d8d124dc18ea4 | /Assets/Python/EntryPoints/CvGameInterface.py | 808ce823b22abad2e62649d251d91dab9ee7b3f0 | [] | no_license | CheatingChicken/Caveman2Cosmos | bb7fcd3215a345caab2539e688b6eeb6d8c4f7f5 | 60edaea271ab638220e7297bd3e20858aa45dc8c | refs/heads/master | 2022-04-22T22:38:39.822733 | 2020-04-25T08:08:21 | 2020-04-25T08:08:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,731 | py | ## Sid Meier's Civilization 4
## Copyright Firaxis Games 2005
##
## ##### WARNING - MODIFYING THE FUNCTION NAMES OF THIS FILE IS PROHIBITED #####
##
## The app specifically calls the functions as they are named.
## Use this file to pass args to another file that contains your modifications.
from CvPythonExtensions ... | [
"alberts2@live.de"
] | alberts2@live.de |
2852f350ab272bacd3e27e285e753010da6e3b09 | 1c6283303ceb883add8de4ee07c5ffcfc2e93fab | /Jinja2/lib/python3.7/site-packages/uhd_restpy/testplatform/sessions/ixnetwork/topology/srlgvaluelist_355b617a5f46ce90d800290d21158418.py | 422d088ee5d42aa93290bc348b4c4f342b39ecb5 | [] | no_license | pdobrinskiy/devcore | 0f5b3dfc2f3bf1e44abd716f008a01c443e14f18 | 580c7df6f5db8c118990cf01bc2b986285b9718b | refs/heads/main | 2023-07-29T20:28:49.035475 | 2021-09-14T10:02:16 | 2021-09-14T10:02:16 | 405,919,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,406 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, ... | [
"pdobrinskiy@yahoo.com"
] | pdobrinskiy@yahoo.com |
3b373c9413f1ea56cbe1429308eecd89a4634ff8 | 49f81640f961e74668116b2600fe3c77646cc94d | /scripts/overview/complex/result.py | 98faff7d5fe3cda184faaa709b95e49d65bd0d77 | [] | no_license | knut0815/autofit_workspace | 5b97b37f5cf28f6b723c7cca73fa6b9a95e8ffc2 | 4a4fdacf62614150f500716cc8eca1613ae2e4af | refs/heads/master | 2023-03-01T23:32:06.681456 | 2021-02-08T19:48:18 | 2021-02-08T19:48:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,685 | py | """
__Example: Result__
In this example, we'll repeat the fit performed in `fit.py` of 1D data of a `Gaussian` + Exponential profile with 1D line
data using the non-linear search emcee and inspect the *Result* object that is returned in detail.
If you haven't already, you should checkout the files `example/mo... | [
"james.w.nightingale@durham.ac.uk"
] | james.w.nightingale@durham.ac.uk |
60e30722a75d8e7e438970d937361b1aab93ab81 | 9cf50e1b5112579d1feb8ae675208328bc5f19f6 | /shop/migrations/0008_auto_20200215_2351.py | 9e3d20b34734f920a0f47b1000495f8113262a9a | [] | no_license | EatCupcakes/mac | a8869a18a03ce098f55f9b26c9ad432457d0cb6c | 249b09b834c2e37b38f1e66d11ef7cdd0592ac0d | refs/heads/master | 2022-12-16T10:59:59.762647 | 2020-03-25T06:07:45 | 2020-03-25T06:07:45 | 249,898,757 | 0 | 0 | null | 2022-11-22T05:25:42 | 2020-03-25T05:56:57 | HTML | UTF-8 | Python | false | false | 377 | py | # Generated by Django 3.0.3 on 2020-02-15 19:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shop', '0007_orders_amount'),
]
operations = [
migrations.AlterField(
model_name='orders',
name='amount',
... | [
"you@example.com"
] | you@example.com |
03ad79bd1b1c12854f8369e3b610316ff14097ac | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit_Class2766.py | b9065bc162c97889f36d60f2b6aaf2f124912393 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,278 | py | # qubit number=4
# total number=40
import cirq
import qiskit
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import FakeVigo
from math import log2
import numpy as np
import networkx as nx
def bitwise_... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
2b4d411e09719dcbc12de44320fd890f3ecebd59 | e5889e31869f5c00335b6fefb48da4e79bea1801 | /week_1/04_is-number_exist.py | 9ffab39d841e9897ea78619c36c8383f6ec40671 | [] | no_license | HoChangSUNG/sparta_algorithm | 2f4d9767eec1c9e3c17e420be0bc905713bbdb8c | 1572027a6278c5ba6b96f426c904d8739ae3649d | refs/heads/main | 2023-02-02T22:47:22.449648 | 2020-12-21T06:56:20 | 2020-12-21T06:56:20 | 323,255,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | input = [3, 5, 6, 1, 2, 4]
def is_number_exist(number, array):
for element in array :
if number== element:
return True
return False
result = is_number_exist(3, input)
print(result) | [
"love47024702@naver.com"
] | love47024702@naver.com |
bab23b5c2ff8d5d89cd02adaacfc7fd3c96f54c4 | 1625edfe28b4b0979fd32b4a3c5e55249a993fd5 | /baekjoon2156.py | fd5ad784c62bf66711bfa20cbb087c850cbee177 | [] | no_license | beOk91/baekjoon2 | b8bf504c506c6278899d4107ecfe51974ef13f5e | 39569f8effb8e32405a7d74d98bdabcab783ec56 | refs/heads/master | 2023-05-11T20:11:19.015113 | 2020-09-14T23:58:49 | 2020-09-14T23:58:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | n=int(input())
arr=[]
dp=[0]*n
for _ in range(n):
arr.append(int(input()))
dp[0]=arr[0]
if n>=2:
dp[1]=arr[0]+arr[1]
if n>=3:
dp[2]=max(arr[0]+arr[2],arr[1]+arr[2],dp[1])
for i in range(3,n):
dp[i]=max(dp[i-3]+arr[i-1]+arr[i],dp[i-2]+arr[i],dp[i-1])
print(dp[n-1])
| [
"be_ok91@naver.com"
] | be_ok91@naver.com |
f14fa2e7f0f935606f9e4b744da2506e71da00bc | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /JFLADuABfkeoz8mqN_8.py | 33aa2864fc2f108bfb05634439045e834ec501c2 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py |
class Person:
def __init__(self, name, age):
self.name = name
self.age = age
def compare_age(self, other):
if self.age<other.age:
return "{} is older than me.".format(other.name)
elif self.age>other.age:
return "{} is younger than me.".format(other.name)
else:
return '{} is ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
6a60eeea7c2a52f6a2a2181cc8b64762aa02811c | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_59/304.py | 8edbcb3df5ba21a9b68a452dc0b6a5e94f023326 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 853 | py | import os
def addpath(e, existspath):
es = e[1:].split("/")
onepath = ""
for p in es:
onepath = "%s/%s" % (onepath, p)
existspath.append(onepath)
def calc(n, m, exists, create):
n = 0
existspath = []
for e in exists:
addpath(e, existspath)
for c in create:
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
71406482eb693200f3a20f611ac4452e43a1e51e | ec3e95017256edc79afb10b8d2205f128da6931b | /Python/DjangoAssignments/Time_display/apps/time_display/views.py | 1923422fe6b6aaf6a4fc61ac688222dbeb0a2f9f | [] | no_license | ajsaenz1091/Dojo-Assignments | 7fb502bca262b1e91bf0cf81dc7ef93271b0a470 | 5843199f6aae9460d5a6f63e2a60ebb417b8ab75 | refs/heads/master | 2021-01-24T10:10:05.580314 | 2018-03-28T07:41:03 | 2018-03-28T07:41:03 | 123,041,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | # -*- coding: utf-8 -*-
from django.contrib import messages
from time import gmtime, strftime
from django.shortcuts import render, HttpResponse, redirect
from django.utils.crypto import get_random_string
from models import *
def index(request):
# date = datetime.now().date().strftime('%B %-d, %Y')
# time = datetime... | [
"ajsaenz1091@gmail.com"
] | ajsaenz1091@gmail.com |
e87e04ba65d011cce4601a9fd68a46291408c625 | dfb4cb8d916b62d7272ca353302d1ad95e4d7244 | /qa/rpc-tests/p2p-versionbits-warning.py | 7400ebe9337aa8f5cc9bab82a7d5748ed65dbf57 | [
"MIT"
] | permissive | mirzaei-ce/core-shahbit | d166ab47067bf66c3015c3da49ff31cd29f843db | 57ad738667b3d458c92d94aee713c184d911c537 | refs/heads/master | 2021-07-21T11:09:22.493418 | 2017-10-25T13:50:55 | 2017-10-25T13:50:55 | 108,276,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,248 | py | #!/usr/bin/env python2
# Copyright (c) 2016 The Bitcoin Core developers
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
from test_framework.mininode import *
from test_framework.test_framework import ShahbitTestFramework
fro... | [
"mirzaei@ce.sharif.edu"
] | mirzaei@ce.sharif.edu |
53bacfc09ef69095eb01ced960c9870bdc13ee86 | a140fe192fd643ce556fa34bf2f84ddbdb97f091 | /.history/pickle연습_20200705150048.py | 752bdcb3a17d07e339277e27e3bd86ac5cadd8dc | [] | no_license | sangha0719/py-practice | 826f13cb422ef43992a69f822b9f04c2cb6d4815 | 6d71ce64bf91cc3bccee81378577d84ba9d9c121 | refs/heads/master | 2023-03-13T04:40:55.883279 | 2021-02-25T12:02:04 | 2021-02-25T12:02:04 | 342,230,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | import pickle
# profile_file = open("profile.pickle", "wb")
# # w 뒤에 오는 b는 바이너리라고 한다. pickle을 사용하기 위해서는 바이너리 타입을 설정해 주어야 한다.
# profile = {"이름": "박명수", "나이": 30, "취미": ["축구", "골프", "코딩"]}
# print(profile)
# pickle.dump(profile, profile_file) # profile 에 있는 정보를 file 에 저장한다.
# profile_file.close()
profile_file = open("p... | [
"sangha0719@gmail.com"
] | sangha0719@gmail.com |
f86d7fc471682213e5b0895345bac1dce6f4687b | 3f3b7826988fb25404e37026d64f3fa8c740ae81 | /data/core/code/game.py | 32ceb90775899f3f0e137db361468097ab42b1e9 | [
"ISC"
] | permissive | wezu/fonline_chargen | 6b2ce9a044164a3a1465ebe3c5bd6b9cda2ee51a | ffb042e4ebb086703681c70a2f5498232f445a7d | refs/heads/master | 2021-05-05T09:11:03.354973 | 2018-01-28T11:18:12 | 2018-01-28T11:18:12 | 119,251,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,914 | py | '''
Copyright (c) 2017-2018, wezu (wezu.dev@gmail.com)
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCL... | [
"grzechotnik1984@gmail.com"
] | grzechotnik1984@gmail.com |
6d3df26245c0afa89b05bbe3469306e34a3cf28e | 884562234a8d4422adc88e9f75e1a2a545306b2b | /OpenElectrophy/gui/spikesorting/base.py | 9550024591931404f0ffce79e707b4f6f22b4163 | [] | no_license | epiasini/OpenElectrophy | cf6d7efd5c49fe0c37d03ad706097e2dbeed10c4 | 0c4a0211e43687a811f58b036121f5b906e95e20 | refs/heads/master | 2020-12-25T02:59:56.260614 | 2013-09-24T08:07:28 | 2013-09-24T08:07:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,250 | py | # -*- coding: utf-8 -*-
"""
This is the base for spike sorting widgets.
A SpikeSortingWidget is used:
* in the main SpikeSortingWindow
* individually with .show() method in interactive mode.
API for SpikeSortingWidget:
* SpikeSorter for entry
* a refresh method
* a list of variable changes (state ... | [
"sam.garcia.die@gmail.com"
] | sam.garcia.die@gmail.com |
8f9b6c8429a30bb2f1df65d958c323f53ea5df3e | 66a51e21d4c8d4e57309819cdba1dc61ad44e4b2 | /venv/Lib/site-packages/nltk/tag/mapping.py | 4555823c1f33fc062a508a354020c1688d91c86d | [] | no_license | Leehon008/Social-Media-traker | f6e918cd10e3f52dc973bb00cf8ed16a8b524ce3 | 2f932cc062ac7013dc36d9be41f21f212d3224be | refs/heads/master | 2022-12-15T03:01:23.871176 | 2020-02-14T08:33:17 | 2020-02-14T08:33:17 | 235,982,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,963 | py | # Natural Language Toolkit: Tagset Mapping
#
# Copyright (C) 2001-2019 NLTK Project
# Author: Nathan Schneider <nathan@cmu.edu>
# Steven Bird <stevenbird1@gmail.com>
# URL: <http://nltk.org/>
# For license information, see LICENSE.TXT
"""
Interface for converting POS tags from various treebanks
to the universa... | [
"honye.lewism@gmail.com"
] | honye.lewism@gmail.com |
32f14496fa0abcb1e712b58e8081f90a4ead3724 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2561/48117/274903.py | 3d539398b1e83e9e46e1440b5c8cfed9ce9fd490 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | questNum = int(input())
for quest in range(questNum):
nx = input().split(' ')
n = int(nx[0])
x = int(nx[1])
m1 = []
for i in range(n):
rows = []
row = input().split(' ')
for r in row:
rows.append(int(r))
m1.append(rows)
m2 = []
for j in range(n)... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
22ffa84dc91fd58a20bb1dc3e89b9bd35855f883 | 5c34196bac734307d0b2007bb5c4b0e25b5951a6 | /whosgoingsite/whosgoing/views/event/eventDetail.py | 90f155685a1b0377fdeab600f61148a2afa3e420 | [] | no_license | tctimmeh/whosgoing.today | cc2a42045b152eba39929de3711ae23f32560ebd | 920c398f10bee2679deb324280b39512dae92f34 | refs/heads/master | 2016-09-06T14:34:22.152654 | 2015-07-01T17:11:59 | 2015-07-01T17:11:59 | 30,734,071 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,287 | py | from django.views.generic import DetailView
from whosgoing.forms.invite import InviteForm
from whosgoing.models import Event
class EventDetailView(DetailView):
model = Event
template_name = 'whosgoing/pages/event_detail.html'
pk_url_kwarg = 'eventId'
def get_context_data(self, **kwargs):
data... | [
"tctimmeh@gmail.com"
] | tctimmeh@gmail.com |
b575e91d5884f6481f35f844d2e482c82ba4195c | cb14afc9864e370a17f21f4486a17c824fb10294 | /web scrapping/scrap1.py | f6f9fbc3e9294f03e4653ae6cbc2336af9d07649 | [] | no_license | sandeepshiven/python-practice | 92130a1d34fe830433c0526b386ee4550a713d55 | 1bfa6145c5662231128a39fdfadf8db06f4b0958 | refs/heads/master | 2020-06-16T12:04:52.983978 | 2020-02-04T18:19:55 | 2020-02-04T18:19:55 | 195,565,480 | 0 | 1 | null | 2019-09-15T18:25:54 | 2019-07-06T17:21:17 | Python | UTF-8 | Python | false | false | 916 | py | from bs4 import BeautifulSoup
import csv
import requests
page_no = 1
while(True):
response = requests.get("https://www.rithmschool.com/blog?page="+str(page_no))
print(response)
with open("blogs.csv", "a+") as file:
csv_writer = csv.writer(file)
if(page_no == 1):
headers = ["TITLE... | [
"sandeepshiven0@gmail.com"
] | sandeepshiven0@gmail.com |
1ea3fad238bac3afd3e7104da19c8eed5f04d07a | 26cf1df102b75b0c068047cc6eca0d50dbc70c5a | /melati/types/announcement.py | 4f9ff447542d77eff26ffe95b2d86db265bb14a9 | [
"Apache-2.0"
] | permissive | a96009467/melati-blockchain | 307f9a92eee25a15aa294ddfed41a595e63acc50 | 28b8cd1590ee8fa860554c66d639a1fefc0d3c41 | refs/heads/main | 2023-06-24T13:53:41.332345 | 2021-07-20T09:37:49 | 2021-07-20T09:37:49 | 387,778,815 | 0 | 0 | Apache-2.0 | 2021-07-20T12:06:20 | 2021-07-20T12:06:20 | null | UTF-8 | Python | false | false | 322 | py | from dataclasses import dataclass
from melati.types.blockchain_format.sized_bytes import bytes32
from melati.util.hash import std_hash
@dataclass(frozen=True)
class Announcement:
origin_info: bytes32
message: bytes
def name(self) -> bytes32:
return std_hash(bytes(self.origin_info + self.message)... | [
"cengndupak@gmail.com"
] | cengndupak@gmail.com |
83020250d2f118167ca2e6104d99c519dd464fc0 | 48894ae68f0234e263d325470178d67ab313c73e | /vc/datasources.py | 02b6f49f9fd20e5868c424cfe0fde6d6eaa2f782 | [
"BSD-3-Clause"
] | permissive | DreamerDDL/noc | 7f949f55bb2c02c15ac2cc46bc62d957aee43a86 | 2ab0ab7718bb7116da2c3953efd466757e11d9ce | refs/heads/master | 2021-05-10T18:22:53.678588 | 2015-06-29T12:28:20 | 2015-06-29T12:28:20 | 118,628,133 | 0 | 0 | null | 2018-01-23T15:19:51 | 2018-01-23T15:19:51 | null | UTF-8 | Python | false | false | 1,454 | py | # -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## VC module datasources
##----------------------------------------------------------------------
## Copyright (C) 2007-2013 The NOC Project
## See LICENSE for details
##-----------------------------------------------------... | [
"dv@nocproject.org"
] | dv@nocproject.org |
7f0a4bd8c903f9121a8cdd19b83adb60dda8534a | 9f2f386a692a6ddeb7670812d1395a0b0009dad9 | /python/paddle/fluid/tests/unittests/xpu/test_split_op_xpu.py | 1b8bf64a0de3d329536560b00bab1d49acb66d4d | [
"Apache-2.0"
] | permissive | sandyhouse/Paddle | 2f866bf1993a036564986e5140e69e77674b8ff5 | 86e0b07fe7ee6442ccda0aa234bd690a3be2cffa | refs/heads/develop | 2023-08-16T22:59:28.165742 | 2022-06-03T05:23:39 | 2022-06-03T05:23:39 | 181,423,712 | 0 | 7 | Apache-2.0 | 2022-08-15T08:46:04 | 2019-04-15T06:15:22 | C++ | UTF-8 | Python | false | false | 3,020 | py | # Copyright (c) 2022 PaddlePaddle 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 applic... | [
"noreply@github.com"
] | sandyhouse.noreply@github.com |
406415e7b6332853200240dccfa707522f327a6a | 7a3114bedb5e866fc85fecca44432d1ce60e4262 | /where/estimation/parameters/slr_range_bias.py | 6154e761a1f6b8b4ca606f5360e6ae2f6aedb54f | [
"MIT"
] | permissive | kartverket/where | 99f26e5d5f2f23a79921bad0fb60cb8a99d05e7f | 0c8c5c68adca08f97e22cab1bce10e382a7fbf77 | refs/heads/master | 2023-08-31T03:26:23.222100 | 2023-08-30T08:27:07 | 2023-08-30T08:27:07 | 111,802,841 | 21 | 15 | MIT | 2019-02-01T15:42:36 | 2017-11-23T11:44:29 | Python | UTF-8 | Python | false | false | 1,479 | py | """Calculate the slr station dependent range bias as a constant parameter over the arc
Description:
------------
Calculate the partial derivatives of the measurement with respect to the range bias.
References:
-----------
"""
# External library imports
import numpy as np
# Midgard imports
from midgard.dev import... | [
"ask1982@yahoo.com"
] | ask1982@yahoo.com |
df2046f144ad65990e69645ae8bc94ccb94d8b00 | 6312ae52fb81f68ca80ad5c607148d011052850d | /sos_uniform/wizard/stock_wizards/daily_stock_wizard.py | 9c7fe34758b094a1ae5ae8254e4b6b76baa2333d | [] | no_license | cokotracy/sos_guards | e88b95026185aaf1d622b223d39afd5e60a60ee9 | 84242b484cbd9a4296d3083747b4e31f2ebb3e73 | refs/heads/master | 2022-06-14T05:36:27.971635 | 2019-10-07T07:01:58 | 2019-10-07T07:01:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | import time
import pdb
from datetime import date
from datetime import datetime
from datetime import timedelta
from dateutil import relativedelta
from odoo import api, fields, models
class daily_stock_wizard(models.TransientModel):
_name = "daily.stock.wizard"
_description = "Daily Stock Wizard"
date_from = fields... | [
"sarfraz_g2009@yahoo.com"
] | sarfraz_g2009@yahoo.com |
8342892403eca3e83f1618419606a3dd3fb2217f | 078918048099dfa2454cfac2d449ea3d77fbec55 | /329-longest-increasing-path-in-a-matrix.py | 36c39f7cba0ea53e8733850e42cbba727d3313d6 | [] | no_license | DmitryVlaznev/leetcode | 931784dcc4b465eebda7d22311f5bf5fa879f068 | b2a2afdfc725330545c9a2869fefc7d45ec594bc | refs/heads/master | 2023-06-10T05:42:34.992220 | 2023-06-05T09:54:10 | 2023-06-05T09:54:30 | 241,064,389 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,401 | py | # 329. Longest Increasing Path in a Matrix
# Hard
# Given an m x n integers matrix, return the length of the longest
# increasing path in matrix.
# From each cell, you can either move in four directions: left, right,
# up, or down. You may not move diagonally or move outside the boundary
# (i.e., wrap-around is not ... | [
"dmitry.vlaznev@datadvance.net"
] | dmitry.vlaznev@datadvance.net |
91185b73bccc1e5b673d27699ac64081b407d424 | 21d9d00f119793524bc236ea0af3e7920e07c009 | /vedacore/ops/__init__.py | 24296008484c647a53d00bb8789964394bcab7e2 | [
"Apache-2.0"
] | permissive | carpedkm/vedatad | 27330c830a348ec8aa0b2e3328025cce220b4f95 | 55f8dced57f698ee9fc0da9bcf471d171e718d0c | refs/heads/main | 2023-07-22T19:34:28.217178 | 2021-09-01T05:28:32 | 2021-09-01T05:28:32 | 387,968,471 | 0 | 0 | Apache-2.0 | 2021-07-21T02:23:09 | 2021-07-21T02:23:08 | null | UTF-8 | Python | false | false | 665 | py | from .dcn import (DeformConv, DeformConvPack, DeformRoIPooling,
DeformRoIPoolingPack, ModulatedDeformConv,
ModulatedDeformConvPack, ModulatedDeformRoIPoolingPack,
deform_conv, deform_roi_pooling, modulated_deform_conv)
from .nms import batched_nms, nms_match
from .s... | [
"hongxiang.cai@media-smart.cn"
] | hongxiang.cai@media-smart.cn |
785ff9e3bf426a8119c06d2089dcd64aa2777428 | 2da6133f3cd5c5fc19355292d60253b8c0dbcd49 | /.history/antz/crawler_20200405025213.py | efa98e5e900dcd847467befd267fbb5da37b03f6 | [] | no_license | mirfarzam/python-advance-jadi-maktabkhooneh | b24f5c03ab88e3b12c166a439b925af92f50de49 | d9bcecae73fd992f1290c6fd76761683bb512825 | refs/heads/master | 2021-05-25T21:33:37.782734 | 2020-04-07T22:39:28 | 2020-04-07T22:39:28 | 253,927,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,107 | py | import requests
from bs4 import BeautifulSoup
import time
import re
# from antz.models import Car
def crawlCarPage(url):
time.sleep(1)
r = requests.get(url)
soup = BeautifulSoup(r.content, 'html.parser')
title = soup.findAll("h1", {"class": "addetail-title"})[0]
titleSpans = title.find_all('span')
year = ... | [
"farzam.mirmoeini@gmail.com"
] | farzam.mirmoeini@gmail.com |
65e245628c235db3f90b56653b4c6de8be3dadab | 8fd28b248511f42ad8732ca1e574aada33908376 | /configs/recognition/r2plus1d/r2plus1d_r34_8x8x1_900e_ucf101_rgb_20percent_vidssl.py | 8f26b55b8b0bc82d2b46c62936472fb7c4b60936 | [
"Apache-2.0"
] | permissive | vt-vl-lab/video-data-aug | 28bd175535cab1444055502389c8f5d7d75e4bd2 | 01667cdbd1b952f2510af3422beeeb76e0d9e15a | refs/heads/main | 2023-09-01T02:36:40.034893 | 2021-07-21T01:31:42 | 2021-07-21T01:31:42 | 352,920,339 | 29 | 6 | Apache-2.0 | 2021-07-21T01:29:36 | 2021-03-30T08:06:54 | Jupyter Notebook | UTF-8 | Python | false | false | 4,234 | py | # model settings
model = dict(
type='Recognizer3D',
backbone=dict(
type='ResNet2Plus1d',
depth=34,
pretrained=None,
pretrained2d=False,
norm_eval=False,
conv_cfg=dict(type='Conv2plus1d'),
norm_cfg=dict(type='SyncBN', requires_grad=True, eps=1e-3),
... | [
"zouyuliang123@gmail.com"
] | zouyuliang123@gmail.com |
88a396061f21e2cbf98a9b5efe23e6b6e2b910ab | 234d40b63d54a55d631865443d3c023a638c67fa | /loaf/posts/models.py | ed1c51e6aef9feb111eda69f5d342cbf93d230aa | [
"MIT"
] | permissive | yongtany/loaf | b9d32473f095860964b2b53a2a5d6e4f93abec81 | 1a42fd7c1dc74a90231acfee0d65e235eb586ea3 | refs/heads/master | 2022-12-17T08:59:27.939654 | 2019-07-31T11:47:42 | 2019-07-31T11:47:42 | 140,272,974 | 0 | 0 | MIT | 2022-12-08T06:52:54 | 2018-07-09T11:00:29 | Python | UTF-8 | Python | false | false | 1,046 | py | from django.db import models
from loaf.users import models as user_models
# Create your models here.
class TimeStampedModel(models.Model):
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
class Meta:
abstract = True
class Post(TimeStampedMo... | [
"you@example.com"
] | you@example.com |
a42a84c138b489c1cb18390ffdc09f571b52cd48 | d7a4701e18be0f38820f5c15d80099fda6385f9f | /ABC118/B.py | ed98f8065b6b3c3b20d881d04e70f62c65df5eb5 | [] | no_license | shiki7/Atcoder | 979a6f0eeb65f3704ea20a949940a0d5e3434579 | c215c02d3bfe1e9d68846095b1bd706bd4557dd0 | refs/heads/master | 2022-05-21T16:59:01.529489 | 2022-04-29T11:26:42 | 2022-04-29T11:26:42 | 201,536,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | n, m = map(int, input().split())
ka = [list(map(int, input().split())) for _ in range(n)]
if n == 1:
print(ka[0][0])
exit()
counter = [0] * m
for x in ka:
for a in x[1:]:
counter[a - 1] += 1
ans = 0
for i in range(m):
if counter[i] == n:
ans += 1
print(ans)
| [
"noreply@github.com"
] | shiki7.noreply@github.com |
581240b16806627fa19feb27fe7c61333daf8a9c | 31f1be14dbdc5f6076415dbab63a23a3766d0c84 | /slateo-api/saletoApp/views/adminCountDataView.py | a1c94ca89589793288465b60f5f967a964246025 | [] | no_license | kumar109-beep/Examination_Panel | 4004b328cc5abb26dfaccc0b11fd35112840458a | 598f70aa970b9ed3a03cc931e0fd39efb5ed84bb | refs/heads/main | 2023-08-10T17:33:48.067626 | 2021-09-25T12:51:22 | 2021-09-25T12:51:22 | 410,267,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,170 | py | from django.http import HttpResponse, JsonResponse
from rest_framework.parsers import MultiPartParser, FormParser, JSONParser
from rest_framework.decorators import api_view, permission_classes, authentication_classes, parser_classes
from rest_framework import status
from rest_framework.permissions import IsAuthenticate... | [
"rk468335@gmail.com"
] | rk468335@gmail.com |
79f02a068b93c23d4be5a15eab6468e75e14c6b7 | bd08d0532f20b7285b437c9bf620de1bbcd5b9ea | /aalh_iit_churches_001/cleanup-jones-jhs.py | ad0e0af0f1baf4060d755ac53e45a32f281679cc | [
"Unlicense"
] | permissive | johndewees/iitmigration | a9e8a31ba6ceb541ce12c22fd612596cc243dbca | 4dadfbecda719d6e7d60af076a231aedec3c862f | refs/heads/main | 2023-03-14T17:06:58.777683 | 2021-03-27T20:44:58 | 2021-03-27T20:44:58 | 320,086,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,620 | py | from openpyxl import load_workbook
import re
filename = 'aalh_iit_churches_001.xlsx'
wb = load_workbook(filename)
ws = wb['Metadata Template']
minimumcol = 2
maximumcol = 2
minimumrow = 7
maximumrow = 601
iterationrow = 7
titlecol = 2
desccol = 8
subcol = 9
placecol = 13
timeperiodcol = 14
dateofor... | [
"noreply@github.com"
] | johndewees.noreply@github.com |
72a0acfc3e2c911006ebdd2711e71223e74e5d08 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/00d8c0dea4e03e4a730e8cfd1b539e034071f44d-<main>-fix.py | 24b87928ec6242ff19d25fe823446d420a3d2fc8 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,657 | py | def main():
archs = {
'alex': alex.Alex,
'alex_fp16': alex.AlexFp16,
'googlenet': googlenet.GoogLeNet,
'googlenetbn': googlenetbn.GoogLeNetBN,
'googlenetbn_fp16': googlenetbn.GoogLeNetBNFp16,
'nin': nin.NIN,
}
parser = argparse.ArgumentParser(description='Lear... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
4c086f65faba1efac12f1895ac77e190bdcb52d4 | 75592774a90bf6ed555758f7cf5dff8e24cf7a33 | /demos/accuracy_collision_3d.py | 4d0c130a0790a5a24a37d5a973ba106880458d67 | [] | no_license | lwkobe/ChainQueen | 51defee35209e2ded8b0990769d281be14814338 | 91d7fa1a03d915e730285d60ad4d2ba0e8b0b588 | refs/heads/master | 2020-06-20T13:28:19.068850 | 2019-06-28T01:17:22 | 2019-06-28T01:17:22 | 197,137,028 | 1 | 0 | null | 2019-07-16T06:49:17 | 2019-07-16T06:49:17 | null | UTF-8 | Python | false | false | 3,488 | py | import sys
sys.path.append('..')
import random
import time
from simulation import Simulation, get_bounding_box_bc
import tensorflow as tf
import numpy as np
from IPython import embed
batch_size = 1
gravity = (0, 0, 0)
N = 15
group_particles = N * N * N
num_balls = 1
num_particles = group_particles * num_balls
steps =... | [
"yuanmhu@gmail.com"
] | yuanmhu@gmail.com |
cf3739e778d14866740cfd9870d1074110b53b6f | af8631159212cff998e89d7b560356b1eba2199a | /第六次作业/docker-etcd/init/wait_keys.py | 48963ba91090e2df126b6ccd3536be74f9b39f8d | [] | no_license | esddse/OSpractice | 4d4c90cc9182d21d29d32b26761e6da724d10e04 | b9c7e3c4215cbb439f3492c9677d37bec203e526 | refs/heads/master | 2020-04-06T04:42:58.470314 | 2017-08-07T06:44:20 | 2017-08-07T06:44:20 | 82,887,212 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 245 | py | import os
import json
import time
import urllib
import subprocess
from urllib import request
while True:
f = os.popen('echo "calico" | sudo -S bash -c "wc -l /shared/authorized_keys"')
message = f.read().strip()
if message[0] == '3':
break | [
"tjz427@sina.cn"
] | tjz427@sina.cn |
817354e082739f5918a424ce06d20d0c29f9681e | 4bebd76e65768c6a2fe9f8019c99ae9e579dbafd | /scripts/LAPipe-Views/NumPy/P2.5-RW.py | 1c6746d805c14a699a866ecd083ae7052afae30a | [] | no_license | hadad-paper/HADAD_SIGMOD2021 | 7e0f7687bfdb3601b817570a2c10c2b923970fd9 | 6bfef6838a5549288adca6bdd71ec0d3497d3f2e | refs/heads/master | 2023-03-05T22:54:36.894263 | 2021-02-22T23:24:43 | 2021-02-22T23:24:43 | 296,177,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,091 | py | with open(__file__) as fh: print fh.read()
import os
import sys
import datetime
import time
import numpy as np
import numpy.linalg as alg
import pandas as pd
from numpy import genfromtxt
def timeOp(string,cleanup=None):
times = []
time_stamp = datetime.datetime.fromtimestamp(
time.time()).strftime('%Y... | [
"hadad-paper@clt-128-93-177-51.vpn.inria.fr"
] | hadad-paper@clt-128-93-177-51.vpn.inria.fr |
ca9672d6d71e99173cfb2856e032a72d59954b0c | 3bae1ed6460064f997264091aca0f37ac31c1a77 | /pyapps/sampleapp/impl/action/core/job/find/1_job_find.py | f678a03e825aefcc340dedb8d1f2e724f83075c2 | [] | no_license | racktivity/ext-pylabs-core | 04d96b80ac1942754257d59e91460c3a141f0a32 | 53d349fa6bee0ccead29afd6676979b44c109a61 | refs/heads/master | 2021-01-22T10:33:18.523799 | 2017-06-08T09:09:28 | 2017-06-08T09:09:28 | 54,314,984 | 0 | 0 | null | 2017-06-08T09:09:29 | 2016-03-20T11:55:01 | Python | UTF-8 | Python | false | false | 1,904 | py | __author__ = 'incubaid'
__priority__= 3
def main(q, i, p, params, tags):
# rootobjecttype: machine, application, datacenter
# fromTime/endTime: YYYY-MM-DD hh:mm:ss
baseQuery = 'select guid as jobguid, clouduserguid, rootobjectguid, description, parentjobguid, viewguid,\
jobstatus, "version... | [
"devnull@localhost"
] | devnull@localhost |
06f600ce2a56d03fc9f1416064f22e6828ab666f | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/AlipayBossFncOutputinvoiceOutbillApplyResponse.py | b81524bcd7625b7fbb957de6ae49dd43c305548d | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 763 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class AlipayBossFncOutputinvoiceOutbillApplyResponse(AlipayResponse):
def __init__(self):
super(AlipayBossFncOutputinvoiceOutbillApplyResponse, self).__init__()
self._resul... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
5b56cdb845c671927879bae1d16a8f8adcef4e3d | 3fc4cac282465350d9b2983527140fc735a0d273 | /venv/bin/pyami_sendmail | e57e9b0b09243ea311d12b31fe3e434276f114e2 | [] | no_license | Orderlee/SBA_STUDY | 2cfeea54d4a9cbfd0c425e1de56324afcc547b81 | 4642546e7546f896fc8b06e9daba25d27c29e154 | refs/heads/master | 2022-12-25T01:08:05.168970 | 2020-09-27T14:57:23 | 2020-09-27T14:57:23 | 299,050,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,659 | #!/Users/YoungWoo/PycharmProjects/ClassProject/venv/bin/python
# Copyright (c) 2010 Chris Moyer http://coredumped.org/
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, i... | [
"61268230+Orderlee@users.noreply.github.com"
] | 61268230+Orderlee@users.noreply.github.com | |
09dcfce8e8ffbcb6726e9870d16d15f837998e72 | f2fcf807b441aabca1ad220b66770bb6a018b4ae | /coderbyte/LargestFour.py | 8824a95c92b2e839f998ff12ce29106a38c14235 | [] | no_license | gokou00/python_programming_challenges | 22d1c53ccccf1f438754edad07b1d7ed77574c2c | 0214d60074a3b57ff2c6c71a780ce5f9a480e78c | refs/heads/master | 2020-05-17T15:41:07.759580 | 2019-04-27T16:36:56 | 2019-04-27T16:36:56 | 183,797,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | def LargestFour(arr):
arr.sort()
if len(arr) <= 4:
return sum(arr)
return sum(arr[-1:-5:-1])
print(LargestFour([1000045])) | [
"gamblecua@gmail.com"
] | gamblecua@gmail.com |
e4354245bb17121d20dbe5f501e21b7a8d4ef81e | 6dc72f5c7a1f802a27cbefdd62f1ac05836c5219 | /PyDemo/search/ScrapyRedisTest/scrapy_redis/connection.py | 851e2b0c6b1c9e3ae0fd31eb7801c7a7a7765d50 | [] | no_license | RockJohnson503/MyDemo | 9e4e5c7b02ee76d5437fd54c36050655fca145fb | dc1062df01cc53eb9a2a1849709d2f88e8b4488c | refs/heads/master | 2022-05-13T22:45:27.051170 | 2020-04-24T07:32:13 | 2020-04-24T07:32:13 | 123,227,439 | 5 | 1 | null | 2022-04-22T21:10:48 | 2018-02-28T04:07:08 | Jupyter Notebook | UTF-8 | Python | false | false | 2,397 | py | import six
from scrapy.utils.misc import load_object
from . import defaults
# Shortcut maps 'setting name' -> 'parmater name'.
SETTINGS_PARAMS_MAP = {
'REDIS_URL': 'url',
'REDIS_HOST': 'host',
'REDIS_PORT': 'port',
'REDIS_ENCODING': 'encoding',
}
def get_redis_from_settings(setting... | [
"836867547@qq.com"
] | 836867547@qq.com |
d858f70650da29ab377b926196960a62a1333305 | 38c0ca15d7b067bf04e8bf0b16bbf33f39bc050a | /TaobaoSdk/Request/SimbaCampaignBudgetGetRequest.py | 2988431c270652a1c3b0244ee3cd7fae515599f7 | [] | no_license | yuchangchun/TaobaoOpenPythonSDK | 04da9a6f74c449b9cf93620d13424a3e1851cedc | 668436f6f934602a236e57b9a276fb3876c524d0 | refs/heads/master | 2021-01-18T07:49:25.743392 | 2012-07-04T09:55:11 | 2012-07-04T09:55:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,243 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim: set ts=4 sts=4 sw=4 et:
## @brief 取得一个推广计划的日限额
# @author wuliang@maimiaotech.com
# @date 2012-07-03 10:25:11
# @version: 0.0.0
import os
import sys
import time
def __getCurrentPath():
return os.path.normpath(os.path.join(os.path.realpath(__file__), os.path... | [
"liyangmin@maimiaotech.com"
] | liyangmin@maimiaotech.com |
b71896fe2797561a8af79971599fcce6434082d2 | b252d1f8ec5f68bf5f935c000e0bb011718ea691 | /ninetyseven/apps/recommender/models.py | 30246c22c8bc6b98cf1fddd483804c1d7c8e1b47 | [] | no_license | syncopated/97bottles | 2ceace7ed6a852bef61796733a08eb878b045152 | 08f4210e3de77c4564fcc8c1a2e9b47a0088249f | refs/heads/master | 2016-08-05T07:48:51.109089 | 2012-12-02T17:38:35 | 2012-12-02T17:38:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | from django.db import models
from django.contrib.contenttypes.models import ContentType
from django.contrib.auth.models import User
from ninetyseven.apps.recommender.managers import RecommenderManager
# Main recommender class. Add here whatever you need to be parametrizable: min values, weigths...
class Recommender(m... | [
"keith@dkeithrobinson.com"
] | keith@dkeithrobinson.com |
eef7c31af8bf49abdee606790e17e0126154bf7c | 553b34a101c54090e68f540d96369ac7d5774d95 | /python/python_koans/python2/koans/about_triangle_project.py | 065e4ab37dc8ceea666d2a3a04b42fd998cf7838 | [
"MIT"
] | permissive | topliceanu/learn | fd124e1885b5c0bfea8587510b5eab79da629099 | 1c5b1433c3d6bfd834df35dee08607fcbdd9f4e3 | refs/heads/master | 2022-07-16T19:50:40.939933 | 2022-06-12T15:40:20 | 2022-06-12T15:40:20 | 21,684,180 | 26 | 12 | MIT | 2020-03-26T20:51:35 | 2014-07-10T07:22:17 | JavaScript | UTF-8 | Python | false | false | 906 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from runner.koan import *
# You need to write the triangle method in the file 'triangle.py'
from triangle import *
class AboutTriangleProject(Koan):
def test_equilateral_triangles_have_equal_sides(self):
self.assertEqual('equilateral', triangle(2, 2, 2))
... | [
"alexandru.topliceanu@gmail.com"
] | alexandru.topliceanu@gmail.com |
aa00ffb7dc64a0a930adee99de5ab409c18e5c50 | f8ded08c57af4a3726a791b094b38970cbb921e9 | /tests/test_normalize.py | 5fd42497716ee645ae652abd474f8907d350ce75 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | mrakitin/mystic | ebeb837b8535ebb2a323519b900cb69e1bbb8a2d | 6c269510fd9068d157554eaef99bc1a546b54a59 | refs/heads/master | 2020-12-30T16:39:55.072424 | 2017-05-10T18:40:44 | 2017-05-10T18:40:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,532 | py | #!/usr/bin/env python
#
# Author: Mike McKerns (mmckerns @caltech and @uqfoundation)
# Copyright (c) 1997-2016 California Institute of Technology.
# Copyright (c) 2016-2017 The Uncertainty Quantification Foundation.
# License: 3-clause BSD. The full license text is available at:
# - http://trac.mystic.cacr.caltech.ed... | [
"mmckerns@968178ea-60bd-409e-af13-df8a517b6005"
] | mmckerns@968178ea-60bd-409e-af13-df8a517b6005 |
c0ce3ef989479bbaa59709d1c6c51fee4decd93e | 7fba01da6426480612d7cef9ceb2e15f3df6d01c | /PYTHON/pythonDesafios/desafio060.py | d3ef003d97f704c9428b9b4a23797c2af8595685 | [
"MIT"
] | permissive | Santos1000/Curso-Python | f320fec1e7ced4c133ade69acaa798d431e14113 | 549223a1633f6f619c87554dd8078cf7841bb1df | refs/heads/main | 2023-05-26T12:01:23.868814 | 2021-05-26T13:22:58 | 2021-05-26T13:22:58 | 371,039,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | '''from math import factorial
num = int(input('Digite um número para saber seu fatorial:'))
f = factorial(num)
print(f'O fatorial de {num} é {f}')'''
num = int(input('Digite um número para saber seu fatorial:'))
c = num
f = 1
print(f'Calculando fatorial de {num}!= ', end='')
while c > 0:
print(f'{c}', end= '')
... | [
"83990871+Santos1000@users.noreply.github.com"
] | 83990871+Santos1000@users.noreply.github.com |
d817dafd7c8ad6f37430c9bbf85e8128f81c2edc | 30ab9750e6ca334941934d1727c85ad59e6b9c8a | /server/accounts/models.py | 7a3bcfb8989c38502e1e2dec5fb158c0c6bcacb5 | [
"Apache-2.0"
] | permissive | ankurvaishley/zentral | 57e7961db65278a0e614975e484927f0391eeadd | a54769f18305c3fc71bae678ed823524aaa8bb06 | refs/heads/main | 2023-05-31T02:56:40.309854 | 2021-07-01T07:51:31 | 2021-07-01T14:15:34 | 382,346,360 | 1 | 0 | Apache-2.0 | 2021-07-02T12:55:47 | 2021-07-02T12:55:47 | null | UTF-8 | Python | false | false | 5,816 | py | from itertools import chain
from django.contrib.auth.models import AbstractUser, UserManager as DjangoUserManager
from django.contrib.postgres.fields import JSONField
from django.db import models
from django.urls import reverse
from django.utils import timezone
from django.utils.functional import cached_property
from d... | [
"eric.falconnier@112hz.com"
] | eric.falconnier@112hz.com |
2b4093d60fcfe87aef38dad3cbd38ed30ff525b9 | 16aadc44ba8a0f975476137e3b0993363c5463dc | /genice2/lattices/preparing/169_2_7915.py | 7da63aec7e065a930a8716b0595465923ef694be | [] | no_license | rusl2019/GenIce | 072c4896c3501679a11c5fcd7f5d6c06c16b673b | 51df0c850dea20c7757c659ae089147aa674dfa7 | refs/heads/main | 2023-06-22T18:47:10.842424 | 2023-06-19T15:54:12 | 2023-06-19T15:54:12 | 404,446,797 | 0 | 0 | null | 2021-09-08T18:01:43 | 2021-09-08T18:01:42 | null | UTF-8 | Python | false | false | 1,206 | py | from genice2.cell import cellvectors
import genice2.lattices
import numpy as np
desc = {
"ref": {"169_2_7915": "Engel 2018", "engel06": "Engel 2018"},
"usage": "No options available.",
"brief": "Hypothetical zeolitic ice",
}
class Lattice(genice2.lattices.Lattice):
def __init__(self):
self.ce... | [
"vitroid@gmail.com"
] | vitroid@gmail.com |
08b764b3e62445e96f2e0743269b3ef8465763c6 | 108034973f9046a7603d5fe3f26c59b20a7e68da | /projects/scheme/tests/18.py | 9b7e6ca115a951bc7e1021bf83cb02882558c3e1 | [] | no_license | paulhzq/cs61a | b1b1387cefbaaf1823c02d535891db7d085f3b04 | 9eee13df9ad113591dc55d106561951cea34abc5 | refs/heads/master | 2020-05-23T08:16:14.193086 | 2017-01-15T02:06:18 | 2017-01-15T02:06:18 | 70,255,875 | 8 | 8 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | test = {
'name': 'Question 18',
'points': 2,
'suites': [
{
'cases': [
{
'code': r"""
scm> (list-change 10 '(25 10 5 1))
((10) (5 5) (5 1 1 1 1 1) (1 1 1 1 1 1 1 1 1 1))
scm> (list-change 5 '(4 3 2 1))
((4 1) (3 2) (3 1 1) (2 2 1) (2 1 1 1) (1 1 1... | [
"paul_hzq@hotmail.com"
] | paul_hzq@hotmail.com |
3b8f4b44026ff71bbeb3fe07ceb7bdb89ac85c7f | 33dd9b3dd437749b70f24fdb416f8e5e88683254 | /apps/management/commands/create_digest.py | 36b62924db7f311eb124963b00602aaa63a8a810 | [] | no_license | GraceAredel/pythonz | 8b5a12309986c6c366121eeb75c7e94ba565a222 | 8d5d41755f33b7850af677ba0a2f26cba823daf9 | refs/heads/master | 2020-12-12T11:26:57.369034 | 2020-01-24T11:44:46 | 2020-01-24T11:44:46 | 234,116,608 | 1 | 0 | null | 2020-01-24T11:44:47 | 2020-01-15T15:56:05 | Python | UTF-8 | Python | false | false | 376 | py | from django.core.management.base import BaseCommand
from ...sitemessages import PythonzEmailDigest
class Command(BaseCommand):
help = 'Creates dispatches for pythonz weekly digest.'
def handle(self, *args, **options):
self.stdout.write('Creating pythonz digest...\n')
PythonzEmailDigest.cre... | [
"idlesign@yandex.ru"
] | idlesign@yandex.ru |
de33452e848dfa828701a8874ac17ecce8d697a0 | f021bc9ce48c9e1f710815d298016f7097e67bdf | /dense_find_app/urls.py | 72970052d2b72b8b01212f1f72b540d2695f646d | [] | no_license | ryo2003/twitter_find_dense | d18384ef304ef00f2217988f736b6f43e1453de3 | bbdd77f4afe69d1acf111c3cc71a86d1182cb7e9 | refs/heads/master | 2023-03-18T03:56:15.338806 | 2021-03-12T14:44:37 | 2021-03-12T14:44:37 | 339,900,142 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | from django.contrib import admin
from django.urls import path
from . import views
urlpatterns = [
path("",views.HomeView.as_view(), name='index'),
path('ebisu/',views.TokyoView.as_view()),
path('nagoya/',views.NagoyaView.as_view()),
path('shibuya/',views.ShibuyaView.as_view()),
] | [
"you@example.com"
] | you@example.com |
b1ae1a813869c4ba7ee03e0e004adabd65073331 | 5aa80aab7a75d76b0aa838bf8f74a276a12c876e | /src/dns/scripts/add_virtual_dns_record.py | 44476db09d2768d8fcbd8d96ffef0cd74c36ac4d | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | tungstenfabric/tf-controller | 83b6d58afadb5697b540b5345711a5b2af90d201 | f825fde287f4eb2089aba2225ca73eeab3888040 | refs/heads/master | 2023-08-28T02:56:27.329584 | 2023-08-20T12:15:38 | 2023-08-20T12:31:34 | 231,070,970 | 55 | 29 | Apache-2.0 | 2023-07-23T01:38:17 | 2019-12-31T10:24:38 | C++ | UTF-8 | Python | false | false | 5,467 | py | #!/usr/bin/python
#
#Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
#
from __future__ import print_function
from future import standard_library
standard_library.install_aliases()
from builtins import object
import sys
import argparse
from six.moves import configparser
from provision_dns import DnsProv... | [
"andrey-mp@yandex.ru"
] | andrey-mp@yandex.ru |
2754c7bf9efd4e272edb8b7f8d5c8440d32dbd05 | 395e15908092e0e57ec526777ea9982618c590ce | /src/domsense/homeboxes/vocabularies.py | 2db1190fe5152f5739ad0fbcf39160e9445acd3d | [] | no_license | domsense/domsense.homeboxes | 64c15eb1516c77368deea183a8f93d6ca1787629 | d2ebfd14fd265ee3768fe64c02da8a92ab3dd93e | refs/heads/master | 2021-01-23T12:04:46.914492 | 2012-01-05T14:20:04 | 2012-01-05T14:20:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,263 | py | # -*- coding: utf-8 -*-
from zope.interface import implements
from zope.schema import vocabulary
from zope import component
try:
from zope.app.schema.vocabulary import IVocabularyFactory
except:
from zope.schema.interfaces import IVocabularyFactory
from Products.CMFCore.utils import getToolByName
from domse... | [
"simahawk@gmail.com"
] | simahawk@gmail.com |
cacf51a63f8b1b14853db0816f1e4dddde5e4e62 | 8ee5dcbdbd407eb5f294d430813b16eca22f571c | /data/HW3/hw3_139.py | 96b330f9abf03218a58e9ae82dd2af12a965aa57 | [] | no_license | MAPLE-Robot-Subgoaling/IPT | 5e60e2ee4d0a5688bc8711ceed953e76cd2ad5d9 | f512ea3324bfdceff8df63b4c7134b5fcbb0514e | refs/heads/master | 2021-01-11T12:31:00.939051 | 2018-08-13T23:24:19 | 2018-08-13T23:24:19 | 79,373,489 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | def main():
temp =float(input("Please enter the temperature: "))
if input("Please enter 'C' for Celsius, or 'K' for Kelvin: ")=='K':
temp = temp + 273.15
if temp <= 0:
print("At this temperature, water is a solid.")
elif temp >= 100:
print("At this temperature, water is a gas.")
... | [
"mneary1@umbc.edu"
] | mneary1@umbc.edu |
680fc88a88323d9417cbadde87ffeeba5a82c64b | f7d677073d805ad2cbbbddf3ed3550b23600cdaf | /hydrus/core/HydrusEncryption.py | 15be02edc88c5aa82d2c2af9b76fc805f95d6491 | [
"WTFPL"
] | permissive | git4unrealnondev/hydrus | 80c26637ccf497b245eb734cf31e877bd406fd48 | 1acdc258e5bb2ae22f5eafaf3dac8d9265dba5e2 | refs/heads/master | 2023-02-22T08:41:23.248411 | 2021-01-20T22:22:03 | 2021-01-20T22:22:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,497 | py | import OpenSSL
import os
import stat
def GenerateOpenSSLCertAndKeyFile( cert_path, key_path ):
key = OpenSSL.crypto.PKey()
key.generate_key( OpenSSL.crypto.TYPE_RSA, 2048 )
# create a self-signed cert
cert = OpenSSL.crypto.X509()
cert.get_subject().countryName = 'HN'
cert.ge... | [
"hydrus.admin@gmail.com"
] | hydrus.admin@gmail.com |
91bdba0856ca6f9e139285a6c4b06fb7b5a157df | 6b518cf14ea3f59fd59136dbd2a7ac70234bb96e | /instructor-github/day5/others/ext/setup.py | 9c16d934a57bb5d7da9200a31443623cdcc5ce64 | [] | no_license | simula67/advanced-python-course-material | 8064a1adddff45b0980d4bd1948fdeb2f88aec89 | 98870da337cbc001bcf4215ce44f82f0430fd3ce | refs/heads/master | 2016-09-06T12:29:37.397321 | 2015-06-29T05:10:19 | 2015-06-29T05:10:19 | 38,228,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | """Install the sample extension."""
from distutils.core import setup, Extension
setup(
name = "hp",
ext_modules = [ Extension("ext1", sources=["ext1.c"]),
])
| [
"simula67@gmail.com"
] | simula67@gmail.com |
6a0bc5989667a30db30964d93750e154b2586c5c | 634367d6a94d9bce231a8c29cf9713ebfc4b1de7 | /covid_dashboard/views/get_day_wise_cumulative_mandal_details/tests/snapshots/snap_test_case_01.py | 3af98eea7bf82d576fffa37b5f35ca56a87c610a | [] | no_license | saikiranravupalli/covid_dashboard | 5a48c97597983ada36a3bf131edf5ca15f1dedec | 954dd02819fb8f6776fa2828e8971bd55efa657c | refs/heads/master | 2022-11-08T10:11:27.836507 | 2020-06-30T09:00:27 | 2020-06-30T09:00:27 | 269,610,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 978 | py | # -*- coding: utf-8 -*-
# snapshottest: v1 - https://goo.gl/zC4yUc
from __future__ import unicode_literals
from snapshottest import Snapshot
snapshots = Snapshot()
snapshots['TestCase01GetDayWiseCumulativeMandalDetailsAPITestCase::test_case status'] = 400
snapshots['TestCase01GetDayWiseCumulativeMandalDetailsAPITe... | [
"saikiranravupalli@gmail.com"
] | saikiranravupalli@gmail.com |
ff120dd4c578e6c353818b75eb9b2165d5c0ca3e | 4b167378821bc5b1ff9c154cf331f4dcf7f9f425 | /models/lastModel_predict_bestMulti_mem.py | b1d5d1fb17ab64a0449eb2ec49d671918ef9284f | [] | no_license | thangbk2209/GGClusterTraceDataAnalysis | eb83e719363d1b3cd264f3c0f63a21defa3970f4 | 2214c713d733e444d808dac3d6671a1229ce7b85 | refs/heads/master | 2021-09-15T21:32:47.151694 | 2018-06-11T04:20:55 | 2018-06-11T04:20:55 | 112,274,195 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,294 | py | import numpy as np
import matplotlib
matplotlib.use('Agg')
from time import time
import matplotlib.pyplot as plt
import pandas as pd
import math
import keras
from pandas import read_csv
from keras.models import Sequential
from keras.layers import Dense
from keras.layers import LSTM
from keras import optimizers
from ke... | [
"thangbk2209@gmail.com"
] | thangbk2209@gmail.com |
455c25baf7a46b82b971881cb946deb8153cb2ff | 33224c329d3d96441adcfb47f41cb36a72edec7e | /pytorch/try.py | 62715f7b4a74571c3081d3385d4f6f97c5f96103 | [] | no_license | live-wire/expyriments | 069b43c22bfee7d278a00b2f4ba51c49f313ede2 | bdc7b0eb965d98d7dbd4345069d803908afb4be7 | refs/heads/master | 2020-03-27T03:50:47.636590 | 2020-02-04T09:49:18 | 2020-02-04T09:49:18 | 145,893,283 | 2 | 0 | null | 2020-02-04T09:49:19 | 2018-08-23T18:36:44 | Python | UTF-8 | Python | false | false | 292 | py | import matplotlib as mpl
mpl.use('TkAgg')
import matplotlib.pyplot as plt
import numpy as np
from deeputils import save_model_epochs
@save_model_epochs(debug = True)
def powpow(leng, name = 'Dhruv', model = {'pow'}):
print('powpow', leng, name, model)
powpow(2, name='Sanjeev')
powpow(4) | [
"dhruv.life@hotmail.com"
] | dhruv.life@hotmail.com |
99423df08b6d4600b1c7d0324c756fa2a052fd12 | acf03baf55e36dc2a9a5ecd697ec5cb15446ae32 | /vng_api_common/filtersets.py | 64530610d39d8a140d77a7198078b328a4e0cb49 | [] | no_license | GemeenteUtrecht/vng-api-common | b6eb55121dc44c72179cbcd63896bbc020dc3975 | 97786cac041d867468007f9b9a9703d21644391a | refs/heads/master | 2021-06-29T01:53:11.647065 | 2019-07-18T12:04:39 | 2019-07-18T12:05:27 | 198,412,309 | 0 | 0 | null | 2019-07-23T10:57:53 | 2019-07-23T10:57:52 | null | UTF-8 | Python | false | false | 860 | py | from copy import deepcopy
from django.core.validators import URLValidator
from django.db import models
from django_filters.rest_framework import filterset
from .fields import RSINField
from .filters import RSINFilter, URLModelChoiceFilter
FILTER_FOR_DBFIELD_DEFAULTS = deepcopy(filterset.FILTER_FOR_DBFIELD_DEFAULTS)... | [
"sergei@maykinmedia.nl"
] | sergei@maykinmedia.nl |
75c7d4675ff96af1e7d6c1ecfb0cb0bec241acdd | 85c426913d63773c4802a4a3c354df909030654b | /python/PF/Intro/Day4/ExerciseC22.py | ffcf083a83617b105f19a4ccc76c79849520f52e | [] | no_license | SensehacK/playgrounds | 17bf2a3133db6c0cafe185c4cc2c7b59862980aa | 3decd550cdb6034db8b497051acaaec8221073aa | refs/heads/master | 2023-05-11T20:05:31.680168 | 2023-04-30T00:01:58 | 2023-04-30T00:01:58 | 159,632,542 | 1 | 0 | null | 2023-03-05T11:34:34 | 2018-11-29T08:27:53 | Python | UTF-8 | Python | false | false | 2,869 | py | #PF-Exer-22
def generate_ticket(airline,source,destination,no_of_passengers):
ticket_number_list=[]
greater_no_passenger = 0
begg_num = 0
begg_num2 = 101
no_high = 4
high_number = 101 + (no_of_passengers-1)
print("high_number")
print(high_number)
#Write your logic h... | [
"kautilyasave@gmail.com"
] | kautilyasave@gmail.com |
b4d38c1eb164f45628b16bcb6c7eaa4e5b36695e | bad686ba27539a3d3286418cc3ebf2aa80ae4958 | /src/intro/motor-cycle-on-off.py | a30a4b4fb451eecc8f3d364190df8b63c353ebc6 | [] | no_license | AaryaBatchu/micropython | f0a31b579b3a998586f26b92036875c93588eca7 | aef7d33937352e9ab6f9615bfc5bf9aa1a9bee57 | refs/heads/main | 2023-08-19T13:33:15.006432 | 2021-10-23T19:06:26 | 2021-10-23T19:06:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | import machine
import time
# lower right corner
motor_pin = machine.Pin(16, machine.Pin.OUT)
# allocate a PWM object for controlling the motor speed
#motor_pwm = machine.PWM(motor_pin)
#motor_pwm.freq(50) # 50 hertz
#motor_pwm.duty(51)
while True:
print('on')
motor_pin.high()
time.sleep(3)
print(... | [
"dan.mccreary@gmail.com"
] | dan.mccreary@gmail.com |
8080d1b86b02fbe4f60a72027b53177ca9f83c6b | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-1/55447cbb3d33c2c209fdad8a1d53a166bc39544e-<squeeze>-bug.py | e183bba1a31488d4752d14ce3a064372af1ba3a0 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py |
def squeeze(x, axis):
'Remove a 1-dimension from the tensor at index "axis".\n '
broadcastable = (x.broadcastable[:axis] + x.broadcastable[(axis + 1):])
x = T.patternbroadcast(x, [(i == axis) for i in range(x.type.ndim)])
x = T.squeeze(x)
x = T.patternbroadcast(x, broadcastable)
return x
| [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
8a50c55ae1b63790be55dd0688c29fe325ee758d | dfdb672bbe3b45175806928d7688a5924fc45fee | /Project Euler/problem22.py | 1f650b764d2e36d4a0d18be580487f70a98934a9 | [] | no_license | mathans1695/Python-Practice | bd567b5210a4d9bcd830607627293d64b4baa909 | 3a8fabf14bc65b8fe973488503f12fac224a44ed | refs/heads/master | 2023-01-01T13:49:05.789809 | 2020-10-26T02:37:05 | 2020-10-26T02:37:05 | 306,300,672 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,031 | py | file = open('p022_names.txt', 'r')
data = file.read()
temp = data.split(',')
indiv_data = []
fi = open("sort.txt", 'w')
for i in temp:
indiv_data.append(i[1:len(i)-1])
sorted_data = []
for i in range(0, len(indiv_data)):
smallest = indiv_data[i]
fi.write('{} {} '.format(i, smallest))
for j in range(i + 1, len... | [
"mathans1695@gmail.com"
] | mathans1695@gmail.com |
fca5845298c38214c6ed5919060e23e0d921104d | e52c2ab32c94c51e7c098faecb5cafc4e6651bf1 | /platformio/builder/tools/piowinhooks.py | 5ac19f5d92f8bef85c37f6f31a0c878edfa2922f | [
"Apache-2.0"
] | permissive | basheny/platformio-core | 860bd5729f2cbc5e19d583fed8f0bba9e3ef1273 | 675cd456b672c23538c796cb13bfad129d44fe75 | refs/heads/develop | 2021-07-04T19:25:04.743196 | 2017-09-27T16:28:53 | 2017-09-27T16:28:53 | 106,159,124 | 1 | 0 | null | 2017-10-08T07:51:47 | 2017-10-08T07:51:46 | null | UTF-8 | Python | false | false | 2,620 | py | # Copyright (c) 2014-present PlatformIO <contact@platformio.org>
#
# 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 appli... | [
"me@ikravets.com"
] | me@ikravets.com |
e140746504b40189349ecfb802bf925a06a38e29 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_mazurkas.py | ea3331055ac6e8964f61dc11fe988f8ce3916fba | [
"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 | 226 | py |
#calss header
class _MAZURKAS():
def __init__(self,):
self.name = "MAZURKAS"
self.definitions = mazurka
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['mazurka']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
b32aa115dea536bbb8fab82d97d2feec022011f2 | c0ad375d732970b719e3368e7790524dcb61ab8e | /grumpyforms/fields/tests/hidden_field_test.py | 98ce8673c578753a8dc60b0bc115ba90d2c886c1 | [
"MIT"
] | permissive | FelixSchwarz/grumpywidgets | b170508af6a1d9b7efe5c3bac70d6145c24c28b1 | 10fe8349b6dec4116850160e92da7f2de3e5f713 | refs/heads/main | 2023-04-01T15:17:34.189876 | 2021-03-29T09:22:15 | 2021-03-29T09:22:15 | 319,330,106 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,203 | py | # This file is a part of GrumpyWidgets.
# The source code contained in this file is licensed under the MIT license.
# See LICENSE.txt in the main project directory, for more information.
from pythonic_testcase import *
from grumpyforms.fields import HiddenField
from grumpyforms.fields.test_support import InputFieldTe... | [
"felix.schwarz@oss.schwarz.eu"
] | felix.schwarz@oss.schwarz.eu |
87aca8ee1b9f7ed32120a1dad08030165591f6cb | 2fc12aea6af65af7447d6f322638c729a8347fb7 | /app/core/migrations/0001_initial.py | fd49005854b41ff0550bb0d560694df85db576ab | [
"MIT"
] | permissive | jcromerohdz/recipe-app-api | f189013c3ce880cb71ae136e31b679ab791ae394 | 2dbf3f4cd2cb11364271047bde5cfc3f83ac63f4 | refs/heads/master | 2020-04-28T06:36:30.681689 | 2019-04-19T15:12:13 | 2019-04-19T15:12:13 | 175,065,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,708 | py | # Generated by Django 2.1.7 on 2019-03-15 00:26
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0009_alter_user_last_name_max_length'),
]
operations = [
migrations.CreateModel(
name='User',
... | [
"jcromerohdz@gmail.com"
] | jcromerohdz@gmail.com |
aabe52fa2cc676076d4c853a1ef468a5cbbcb68d | 7a4099cea66cbc29558ae261c59e154e2956bad3 | /core/concurrent.py | e45f80935d125c69556a81d4524c6d52c7d85cc2 | [
"MIT"
] | permissive | genonfire/workcloud | 96f29ca3d3a05985aa6868295368b21c093dcd3e | 9547990a16b4ed45eabe5e6522f1ec5649caaf31 | refs/heads/master | 2023-08-29T02:51:34.322512 | 2023-08-28T03:48:10 | 2023-08-28T03:48:10 | 214,943,754 | 5 | 2 | MIT | 2023-08-10T09:18:42 | 2019-10-14T03:55:20 | Python | UTF-8 | Python | false | false | 865 | py | import concurrent.futures
from utils.constants import Const
from utils.debug import Debug # noqa
def pool_executor(func, dataset, *args, **kwargs):
if isinstance(dataset, list):
count = len(dataset)
else:
count = dataset.count()
with concurrent.futures.ThreadPoolExecutor(
max_wo... | [
"gencode.me@gmail.com"
] | gencode.me@gmail.com |
72cb937f283fa00919bd25761d9cd41a46de1ee8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02788/s620213489.py | 2ac8465097301e50fd7ac508f7a2d459e689622a | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,552 | py | import sys
input = sys.stdin.readline
n,d,a = map(int,input().split())
xh = [list(map(int,input().split())) for _ in range(n)]
xh.sort()
class Bit:
def __init__(self, n):
self.size = n
self.tree = [0]*(n+1)
self.depth = n.bit_length()
def __iter__(self):
psum = 0
for ... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
0719f2b3f17e2e33508166af5a57745aa50e3c68 | a857d1911a118b8aa62ffeaa8f154c8325cdc939 | /toontown/coghq/CountryClubRoomSpecs.py | 28289b32e04c00740149c9c3a7c1ae30e8960190 | [
"MIT"
] | permissive | DioExtreme/TT-CL-Edition | 761d3463c829ec51f6bd2818a28b667c670c44b6 | 6b85ca8352a57e11f89337e1c381754d45af02ea | refs/heads/main | 2023-06-01T16:37:49.924935 | 2021-06-24T02:25:22 | 2021-06-24T02:25:22 | 379,310,849 | 0 | 0 | MIT | 2021-06-22T15:07:31 | 2021-06-22T15:07:30 | null | UTF-8 | Python | false | false | 3,324 | py | from direct.showbase.PythonUtil import invertDict
from toontown.toonbase import ToontownGlobals
from toontown.coghq import BossbotCountryClubFairwayRoom_Battle00_Cogs
from toontown.coghq import BossbotCountryClubMazeRoom_Battle00_Cogs
from toontown.coghq import BossbotCountryClubMazeRoom_Battle01_Cogs
from toontown.cog... | [
"devinhall4@gmail.com"
] | devinhall4@gmail.com |
a388ca15ce4890b89cd80eb2d455f2f70d8fe0f2 | b7f3edb5b7c62174bed808079c3b21fb9ea51d52 | /third_party/blink/web_tests/external/wpt/client-hints/accept-ch-stickiness/resources/accept-ch-and-redir.py | 82e557da2a3ceaf4df47ed681ea09150ef4a6937 | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"BSD-3-Clause"
] | permissive | otcshare/chromium-src | 26a7372773b53b236784c51677c566dc0ad839e4 | 64bee65c921db7e78e25d08f1e98da2668b57be5 | refs/heads/webml | 2023-03-21T03:20:15.377034 | 2020-11-16T01:40:14 | 2020-11-16T01:40:14 | 209,262,645 | 18 | 21 | BSD-3-Clause | 2023-03-23T06:20:07 | 2019-09-18T08:52:07 | null | UTF-8 | Python | false | false | 187 | py | def main(request, response):
url = b''
if b'url' in request.GET:
url = request.GET[b'url']
return 301, [(b'Location', url),(b'Accept-CH', b'device-memory, DPR')], u''
| [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
5f259cbdad93f1b6bd2952e77607d6c3cc32e20a | f44aa93f92f2ddfa0e3ed6595c0b77c3ab14dde1 | /v8_ComMeN/ComMeN/Pulmonary/Events/PulmonaryChange.py | a46be2cf14580d9badcfffe2783b3ec79933afaf | [] | no_license | michaeljpitcher/Lung-Network-Model | 5b7efd2f4522852e9be415aa3485419226f9fa8f | 8f23dc1c2002bdabc0f8ec5bd5078d64628adcb5 | refs/heads/master | 2020-06-23T05:17:07.357279 | 2017-06-29T15:28:24 | 2017-06-29T15:28:24 | 74,665,064 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 995 | py | #!/usr/bin/env python
"""Short docstring
Long Docstring
"""
from ...Base.Events.Change import *
__author__ = "Michael Pitcher"
__copyright__ = "Copyright 2017"
__credits__ = ["Michael Pitcher"]
__license__ = ""
__version__ = "1.0.8"
__email__ = "mjp22@st-andrews.ac.uk"
__status__ = "Development"
class ChangeByOx... | [
"mjp22@st-andrews.ac.uk"
] | mjp22@st-andrews.ac.uk |
6125dc2ac450c4d0f1c20769137866738edda872 | 4eddf6a34715752dc652571b1ab274f51ceb5da0 | /.history/py4pro/decisiontree_20210421152651.py | 9caea523b2937d4b62f6fe2217890e2831ba58c8 | [] | no_license | Suelt/Hust-SE-introduction-to-ML | 649aba0e5b41363ceac03330ef02982982a0615d | a66785c3085da573f5748d13608eabf02e616321 | refs/heads/master | 2023-05-27T13:13:41.058545 | 2021-06-10T05:44:02 | 2021-06-10T05:44:02 | 375,582,438 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,941 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn import model_selection
credit = pd.read_csv("C:\\pyproject\\py4pro\\transformed.csv")
col_dicts = {}
cols = ['status','credit_history', 'purpose', 'savings', 'employment_duration','installment_rate', 'personal_status_sex', 'other_deb... | [
"2552925383@qq.com"
] | 2552925383@qq.com |
c73ce129433199c507cecac9f2bce5dbcfe95ac5 | aea17d3962f5645b6bccccb1cd5dc3774413fb4a | /students/KyleBarry/session04/trigrammify.py | acd2e2abc69ac7316b06a51fc918d54f510be9f2 | [] | no_license | dtingg/Fall2018-PY210A | ee382a8fe2391396ceca83fb8587937f406f21f8 | 92ebcf833197ae0c5019fc3b3d554f6ae9e385b1 | refs/heads/master | 2020-03-31T15:51:44.548708 | 2019-09-23T17:47:22 | 2019-09-23T17:47:22 | 152,354,110 | 1 | 0 | null | 2018-10-10T02:55:21 | 2018-10-10T02:55:21 | null | UTF-8 | Python | false | false | 2,059 | py | import random
import requests
from bs4 import BeautifulSoup
def get_text(url):
"""
Get text data from url of gutenberg project so as to not have it within
code
"""
page = requests.get(url)
soup = BeautifulSoup(page.content, "lxml")
text = soup.find_all("p")
texter = [i.text for i in te... | [
"PythonCHB@gmail.com"
] | PythonCHB@gmail.com |
351a9b2a20c465c144eb6bf4c5c79fe6a442f946 | cad91ae76d2746a6c28ddda0f33a58f9d461378f | /PyTorch/Classification/GPUNet/triton/125ms-D/runner/pipeline_impl.py | e516df511ca816484b8b92bba68e6c1a312352ac | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | NVIDIA/DeepLearningExamples | fe677521e7e2a16e3cb0b77e358f9aab72f8c11a | a5388a45f71a949639b35cc5b990bd130d2d8164 | refs/heads/master | 2023-08-31T20:57:08.798455 | 2023-08-23T10:09:12 | 2023-08-23T10:09:12 | 131,881,622 | 11,838 | 3,124 | null | 2023-08-28T16:57:33 | 2018-05-02T17:04:05 | Jupyter Notebook | UTF-8 | Python | false | false | 4,933 | py | # Copyright (c) 2022, NVIDIA CORPORATION. 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 applic... | [
"kkudrynski@nvidia.com"
] | kkudrynski@nvidia.com |
ff45b2f2225fbaa5e8d040616553d262d6fa9b70 | 0549ab5794c5b71b239abf73434cf0ab20ca52a4 | /Text_Processing_Excercise/4_Caesar_Filter.py | 5e87afd9a8c424b305eb8432f197e94289f29cb1 | [] | no_license | Mishakaveli1994/Python_Fundamentals_Jan | 14bea38c1e331694070ecc35a563f624c07084b8 | 2351adf1aea643f77cb36b465ea7bc4e5ea1674b | refs/heads/master | 2022-07-20T01:32:51.088136 | 2020-05-26T07:05:28 | 2020-05-26T07:05:28 | 262,810,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | from io import StringIO
def shift_letter(text):
encoded_text = StringIO()
for i in text:
ori = ord(str(i))
changed = chr(ori+3)
encoded_text.write(changed)
encoded_text.seek(0)
return encoded_text.read()
original_text = input()
encrypted = shift_letter(original_text)
print(encr... | [
"mihata1994@yahoo.com"
] | mihata1994@yahoo.com |
5f9f84b666ddc320d829ccca3b225b2c795c8bd1 | 2481cde6506743565dff2b405a2396daf208ab3e | /src/clist/migrations/0034_auto_20200503_0125.py | 4682f508bc3816a27543d42f221f4ad98e503483 | [
"Apache-2.0"
] | permissive | aropan/clist | 4819a3036d179595e4df8c646aff2ed593b9dad3 | 5c805b2af71acee97f993f19d8d4e229f7f5b411 | refs/heads/master | 2023-08-31T11:15:17.987776 | 2023-08-27T21:51:14 | 2023-08-27T21:52:16 | 187,111,853 | 276 | 35 | Apache-2.0 | 2023-09-06T18:42:53 | 2019-05-16T22:57:03 | Python | UTF-8 | Python | false | false | 554 | py | # Generated by Django 2.2.10 on 2020-05-03 01:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('clist', '0033_remove_banner_start_time'),
]
operations = [
migrations.AddField(
model_name='resource',
name='num_ac... | [
"nap0rbl4@gmail.com"
] | nap0rbl4@gmail.com |
2393533011c6140265a3c9a000507422c5958204 | 0a0b75df10cb4643a2a9124750239f85bb0abadf | /training/scripts/tokenizers/utils.py | 731fde0f24548588e5dfc181b93236a456e233e4 | [
"MIT"
] | permissive | baotg080599/passage-ordering | 1d8eaac939c08f21c398425af819f49544af809d | f63b993dfd5b7e6475e7fb8950c23c3f22951979 | refs/heads/main | 2023-09-05T21:04:05.172285 | 2021-11-22T11:18:26 | 2021-11-22T11:18:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,112 | py | from nltk.tokenize import word_tokenize
from datasets import load_dataset
from .glove import GloveTokenizer
from tqdm import tqdm
def get_ordering_dataset(path, split="train", cache_dir=None):
def add_text_column(example):
example["text"] = " ".join(example["sentences"])
return example
dat... | [
"remi.calizzano@gmail.com"
] | remi.calizzano@gmail.com |
f7fbe3c23664f38a5432c3e5bcd8ab5dd37d1fab | 2dba401baefbb8fe63900ad079ece9f04069bbe0 | /setup.py | 197b5d337aa35c895139751a8d122345f7f7ea20 | [
"MIT",
"LicenseRef-scancode-free-unknown"
] | permissive | thomaspurchas/readthedocs.org | a4181efe11fa306d8dd5de4009986abae24735c0 | 9f66756768a1950bf10f654a0abd4b6ea33d2556 | refs/heads/master | 2023-01-08T03:56:21.710097 | 2011-12-22T17:30:03 | 2011-12-22T17:30:03 | 2,247,704 | 0 | 1 | MIT | 2022-12-23T21:37:09 | 2011-08-22T09:48:15 | Python | UTF-8 | Python | false | false | 887 | py | import os
from setuptools import setup, find_packages
#libraries = [l.strip() for l in open('pip_requirements.txt').readlines()]
setup(
name='readthedocs',
version="1.0",
description='A documentation hosting website',
#long_description=readme,
author='Eric Holscher, Charles Leifer, Bobby Grace',
... | [
"eric@ericholscher.com"
] | eric@ericholscher.com |
1f55748876e5210552ea78d726b0053ad2d3307e | 48894ae68f0234e263d325470178d67ab313c73e | /lib/geo.py | 0873bffa1e9f4b89576cab5c457f8d1693f1aa97 | [
"BSD-3-Clause"
] | permissive | DreamerDDL/noc | 7f949f55bb2c02c15ac2cc46bc62d957aee43a86 | 2ab0ab7718bb7116da2c3953efd466757e11d9ce | refs/heads/master | 2021-05-10T18:22:53.678588 | 2015-06-29T12:28:20 | 2015-06-29T12:28:20 | 118,628,133 | 0 | 0 | null | 2018-01-23T15:19:51 | 2018-01-23T15:19:51 | null | UTF-8 | Python | false | false | 2,113 | py | # -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## Gis-related utilities
##----------------------------------------------------------------------
## Copyright (C) 2007-2014 The NOC Project
## See LICENSE for details
##-----------------------------------------------------... | [
"dv@nocproject.org"
] | dv@nocproject.org |
998b89cdb2ecbefc7457a84f06bf123732b3ef5f | 587005532acb90ca0a52dbea201a44af9308c4be | /exercicios2/ex045p.py | 32f52de6b8a29ab41e5a9b6a829f2213a9215d62 | [
"MIT"
] | permissive | LuanGermano/Mundo-2-Curso-em-Video-Python | a656f0fe4b9ec0eacb88824052ae1200bfbe75a8 | 8e860beb1d3b31f1c5ac369767d32b353935b8b0 | refs/heads/main | 2023-07-06T03:41:13.374723 | 2021-08-04T05:16:37 | 2021-08-04T05:16:37 | 392,557,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,108 | py | from random import randint
from time import sleep
itens = ('pedra','papel', 'tesoura')
computador = randint (0,2)
print('''Suas opçções
[0] PEDRA
[1] PAPEL
[2] TESOURA''')
jogador = int(input('Qual é a sua jogada? '))
print('-=' * 11)
print('JO')
sleep(0.25)
print('KEN')
sleep(0.25)
print('PO')
sleep(0.25)
print('-=' *... | [
"88220713+LuanGermano@users.noreply.github.com"
] | 88220713+LuanGermano@users.noreply.github.com |
412957d98a383dbebe934c806f2dbf0d33dc8d88 | a742bd051641865d2e5b5d299c6bc14ddad47f22 | /algorithm/leetcode/tree/05-不同的二叉搜索树Ⅱ.py | ef6e4239596c477f7291a11f0f3bb31c09b9e6b4 | [] | no_license | lxconfig/UbuntuCode_bak | fb8f9fae7c42cf6d984bf8231604ccec309fb604 | 3508e1ce089131b19603c3206aab4cf43023bb19 | refs/heads/master | 2023-02-03T19:10:32.001740 | 2020-12-19T07:27:57 | 2020-12-19T07:27:57 | 321,351,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,073 | py |
"""
"""
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def generateTrees(self, n: int):
"""递归法
1. 对于n=0时,可以直接返回[]
2. 定义build_tree(left, right)函数,表示生成[left,...,right]之间所有可能的二叉搜索树
... | [
"525868229@qq.com"
] | 525868229@qq.com |
125bb57302934179353df29b315c64ae129a3deb | 2af28d499c4865311d7b350d7b8f96305af05407 | /model-optimizer/extensions/ops/Cast.py | 2c31644401b818066b2fcf4b473c1cf0695ad41c | [
"Apache-2.0"
] | permissive | Dipet/dldt | cfccedac9a4c38457ea49b901c8c645f8805a64b | 549aac9ca210cc5f628a63174daf3e192b8d137e | refs/heads/master | 2021-02-15T11:19:34.938541 | 2020-03-05T15:12:30 | 2020-03-05T15:12:30 | 244,893,475 | 1 | 0 | Apache-2.0 | 2020-03-04T12:22:46 | 2020-03-04T12:22:45 | null | UTF-8 | Python | false | false | 1,800 | 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 wri... | [
"alexey.suhov@intel.com"
] | alexey.suhov@intel.com |
159017e1a6bec4b456006e88dbc0d9a858acd1b6 | 3e36e0a9948c843f721f630be691ac1212f7a26d | /Hangman/domain.py | 47049f5c0bc46ff22451e3e2c9bff42e25e1501d | [] | no_license | teodoraalexandra/Fundamental-Of-Programming | 28d998636798a820c18a66a5cb34eff931ff6366 | 7ca3abf40d520ac5fc0e497472913b803ef764ab | refs/heads/master | 2021-05-20T02:34:24.158638 | 2020-04-01T11:39:22 | 2020-04-01T11:39:22 | 252,149,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 943 | py | from random import randint
class Sentence:
def readfromfile(self, fname):
with open(fname, 'r') as f:
lines = f.readlines()
a = randint(0, len(lines)-1)
self.sentence = lines[a]
self.sentence = self.sentence.strip("\n")
f.close()
d... | [
"33027937+teodoraalexanra@users.noreply.github.com"
] | 33027937+teodoraalexanra@users.noreply.github.com |
0e16033422c13acb36f0f1be49d0397647186cb3 | 4c76dbfaa8f2ca33945e303be90b579c79bd4008 | /renesola/apps/bootstrap_templateviewer/tests/tests_loadmodules.py | d90924f31a5e40777da9f7d4636517d3a946275f | [] | no_license | fogcitymarathoner/renasola | 42c32243df4e4c1246d9a85cfb9251aed2264309 | 9089dcc0ffc57a76799f5e99244df644256e08ea | refs/heads/master | 2021-01-11T00:32:40.358446 | 2016-10-10T18:49:50 | 2016-10-10T18:49:50 | 70,517,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 748 | py | __author__ = 'marc'
"""
This file demonstrates writing tests using the unittest module. These will pass
when you run "manage.py test".
Replace this with more appropriate tests for your application.
"""
from django.test import TestCase
class SimpleTest(TestCase):
def test_urls_import(self):
"""
... | [
"marc@fogtest.com"
] | marc@fogtest.com |
3f037be559bc3cfe054c958a493d9d3b89f9fcf4 | a7c4478e6fdec7cf1a5f22b9eba5e11afc537503 | /app/auth/errors.py | 238e589ca96ade942d8c33d78558be72c7b6f8ce | [] | no_license | deveshaggrawal19/waasle | 457fe686a18ce9d5162abc9b3fd5041d7938ee23 | 69e00a29175d0771d8ff920397dc08d37d3cc3dc | refs/heads/master | 2021-04-26T22:19:32.317110 | 2016-11-17T18:51:17 | 2016-11-17T18:51:17 | 71,818,197 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | from flask import render_template
from ..auth import auth
@auth.app_errorhandler(404) # Will route all the errors
def page_not_found(e):
return render_template('404.html'), 404 | [
"deveshaggrawal19@gmail.com"
] | deveshaggrawal19@gmail.com |
947951547df33cfa9b37616fe64ea14f8f11382e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02939/s257058102.py | 75dbf8d81c902bccdbd9d5fd2a9575cf393ddd38 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | S = input()
cnt = 0
pre = ''
cr = ''
for ch in S:
cr += ch
if pre != cr:
cnt += 1
pre = cr
cr = ''
print(cnt) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
da85b693cfb93f42c4c643b9f7ad25e052b323a2 | 822208a02ea146dabdbe917b9a00440303404a1c | /make_result_table.py | 06f0c3cba74a26510274c11abd0187ae01623e42 | [] | no_license | adhoc-inesc-id/helping-people-on-the-fly | 6b2197217042dd107fe8547961d645640a5889f4 | 69461fd8e9005f403044a2c76ede777b99ad314b | refs/heads/master | 2022-12-28T01:04:59.870793 | 2020-10-19T13:49:08 | 2020-10-19T13:49:08 | 299,999,856 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,665 | py | import csv
import numpy as np
import matplotlib.pyplot as plt
import yaaf
from yaaf.visualization import standard_error
if __name__ == '__main__':
# Parameters
resources_root = "resources"
sizes = ("small", "medium", "large")
size_alias = ("3x3", "4x4", "5x5")
agents = ("greedy", "bopa", "rando... | [
"jmribeiro77209@gmail.com"
] | jmribeiro77209@gmail.com |
ef194cc42a03e85e86a4bc198d554fde3d0703f5 | 8d7fba94d1cebb2449dc62ddf89c1fa57c1adf7e | /HB256/6-1_GAN.py | a1961a63c1426d40954aa333644aa9367ad1fc14 | [] | no_license | woosa7/Tensorflow2019 | 1e821eee78ef8d15b8a1d5eaa142dbb24229f162 | 937268ff180c410e19e1d409536f4933c9495bd1 | refs/heads/master | 2020-04-16T01:42:24.393747 | 2019-10-30T08:49:16 | 2019-10-30T08:49:16 | 165,183,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,928 | py | """
GAN (Generative Adversarial Network)
"""
import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets('../temp/MNIST_data', one_hot=True)
# 학습 관련 매개변수 설정
n_noise = 100 # 입력 잡음신호의 차원
n_h1 = 150 ... | [
"woosa7@gmail.com"
] | woosa7@gmail.com |
1d945aeed50b176b75298e19d7abaf800b069175 | 1f6cdaead83b425ba2fda2b8b4f9eb1d03d97426 | /app/models/achievement.py | 8704abdf0e047262b800a5017439432c24f2e8b2 | [] | no_license | simpuid/cvbuilder | 3291f18a52bc5cdceb81d000e418c8c74ba3680d | c27cb0cfec0b8fc19245deb957b577a1e789db64 | refs/heads/master | 2023-01-01T08:13:55.755812 | 2020-10-30T21:55:37 | 2020-10-30T21:55:37 | 306,163,829 | 0 | 2 | null | 2020-10-28T18:20:31 | 2020-10-21T22:36:52 | Python | UTF-8 | Python | false | false | 1,336 | py | from db import execute, fetch
class Achievement:
def __init__(self, uid: int, achievement_list: list):
self.id = uid
self.achievement_list = achievement_list
def update(self, index, achievement_description):
if achievement_description != self.achievement_list[index]:
self.... | [
"prathameshkatkar11@gmail.com"
] | prathameshkatkar11@gmail.com |
0c991b369c65d93cfd36053ef741010a9969b0c4 | a550aece79bda789826b463280b91abffbf2d372 | /django_projects/todo_app/todo_app/settings.py | 8a6b99aab61468648fe8e7ce8f45304a9dfb4202 | [
"MIT"
] | permissive | phiratio/learn_python | 20376470eaa292c157fd01f52b3077e3a983cd5a | a32240d4355fb331805d515f96e1d009914e5c47 | refs/heads/master | 2022-11-27T07:07:45.712373 | 2020-12-03T22:04:31 | 2020-12-03T22:04:31 | 189,397,679 | 1 | 0 | MIT | 2022-11-22T04:40:27 | 2019-05-30T10:56:10 | Python | UTF-8 | Python | false | false | 2,924 | py | import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/2.0/howto/deployment/checklist/
# SECURITY WARNING: keep the se... | [
"phiratio161@gmail.com"
] | phiratio161@gmail.com |
cb75a7736e014746cea6a35888e3dabe5a91f15a | 366d8a986cb41df0f3493eeaf5f4dba471efe3ed | /gs36/gs36/asgi.py | bdc087dde22f79ab32d0fdfa7ff05e3989d62d39 | [] | no_license | ManishShah120/Learning-DjangoRESTAPI | 360c21f829c2087eabcfc5131188c61a7186fb9d | 11c446c1cde98e321672d6670400c23d60c1a329 | refs/heads/master | 2023-02-11T01:33:22.355854 | 2021-01-08T15:11:35 | 2021-01-08T15:11:35 | 325,955,813 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | """
ASGI config for gs36 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_SETTINGS... | [
"mkshah141@gmail.com"
] | mkshah141@gmail.com |
81af2dc5fe54aff0b2cf154a46ec6214c1237ba6 | 1b49f68058b255e767ba8827570b766f0145883a | /grading/migrations/0001_initial.py | 3daf2be6381753a5959bf1b0d8cb3df50535e775 | [] | no_license | imsure/cs460-grading | d72e5f349ca5c3e3bf161d22400d750de991ebdc | 46fcfacd2d4fcdd50f681427e7a29a409eac0c1c | refs/heads/master | 2021-01-10T09:44:08.979956 | 2016-04-28T15:59:14 | 2016-04-28T15:59:14 | 51,324,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,935 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Assignment',
fields=[
('assigName', models.Char... | [
"imsure95@gmail.com"
] | imsure95@gmail.com |
c5bacf09a615cc8bbfa9ab04757ff9c4f6844379 | 1ecbfd0fd0f79e37acc2b847c27f755f6242df62 | /compiler/tests/21_ngspice_setuphold_test.py | 2ff97badee19e831eb1e7f77878eb8684e96fa1d | [
"BSD-3-Clause"
] | permissive | kabylkas/OpenRAM | 676d363e2f70ef107e7a7453aecc1120e288a28d | 1a4456a6872c52ea9e945e2c58a43df7c78ed742 | refs/heads/master | 2021-01-20T13:27:16.730059 | 2018-06-15T09:38:25 | 2018-06-15T09:38:25 | 90,495,113 | 0 | 1 | null | 2017-05-06T22:36:52 | 2017-05-06T22:36:51 | null | UTF-8 | Python | false | false | 2,536 | py | #!/usr/bin/env python2.7
"""
Run a regresion test on various srams
"""
import unittest
from testutils import header,openram_test
import sys,os
sys.path.append(os.path.join(sys.path[0],".."))
import globals
from globals import OPTS
import debug
class timing_setup_test(openram_test):
def runTest(self):
glo... | [
"mrg@ucsc.edu"
] | mrg@ucsc.edu |
abec77f32e8cf1a654a411c7ce2ddbf460751916 | eb6b21e677b34536af6217b9db279150e022ae5a | /Class_On_SWEA/Class_104/codes/Calculator.py | d3a7104b3e193debbc85455888285d31a84ba9b2 | [] | no_license | jhj9109/TIL | 78e6c5319e04fc1aebb7cf54d0730cfa54098c0f | 84d75b929a506c90d47697a59193fc8ef4576141 | refs/heads/master | 2023-02-01T23:46:24.059487 | 2020-12-22T01:47:24 | 2020-12-22T01:47:24 | 234,995,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | num1=int(input("첫번째숫자:"))
num2=int(input("두번째숫자:"))
operator=str(input("사칙연산기호:"))
if operator=="+":
print(num1+num2)
elif operator=="-":
print(num1-num2)
elif operator=="*":
print(num1*num2)
elif operator=="/":
print(num1/num2)
else :
print("%s : 잘못입력하셨습니다" % operator)
2 | [
"jhj91_09@naver.com"
] | jhj91_09@naver.com |
4e07e35c933286482bc740d736e6b8feae562579 | ff1146409edb8fb5423b0713a63dc08d70329423 | /src/lib/Bcfg2/Server/Plugins/Cfg/CfgCheetahGenerator.py | 4c8adceec387d51a8a3bb23cede36672910a0317 | [
"mpich2",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | welex91/bcfg2 | 378b93fa8b3d3616e370230e0454c6b9314291f7 | 35851347089db1a092ec715cb183aec19f19e983 | refs/heads/master | 2021-01-15T21:20:47.264768 | 2013-07-27T22:52:33 | 2013-07-27T22:52:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,655 | py | """ The CfgCheetahGenerator allows you to use the `Cheetah
<http://www.cheetahtemplate.org/>`_ templating system to generate
:ref:`server-plugins-generators-cfg` files. """
from Bcfg2.Server.Plugin import PluginExecutionError
from Bcfg2.Server.Plugins.Cfg import CfgGenerator
try:
from Cheetah.Template import Temp... | [
"chris.a.st.pierre@gmail.com"
] | chris.a.st.pierre@gmail.com |
6fe5903ac3570d3326f3d080067f732877bdd93c | a8b37bd399dd0bad27d3abd386ace85a6b70ef28 | /airbyte-integrations/connectors/source-fastbill/setup.py | 843e992da23a227759d446cda481e5ef7f709831 | [
"MIT",
"LicenseRef-scancode-free-unknown",
"Elastic-2.0"
] | permissive | thomas-vl/airbyte | 5da2ba9d189ba0b202feb952cadfb550c5050871 | 258a8eb683634a9f9b7821c9a92d1b70c5389a10 | refs/heads/master | 2023-09-01T17:49:23.761569 | 2023-08-25T13:13:11 | 2023-08-25T13:13:11 | 327,604,451 | 1 | 0 | MIT | 2021-01-07T12:24:20 | 2021-01-07T12:24:19 | null | UTF-8 | Python | false | false | 579 | py | #
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
#
from setuptools import find_packages, setup
MAIN_REQUIREMENTS = ["airbyte-cdk"]
TEST_REQUIREMENTS = ["pytest~=6.2", "pytest-mock~=3.6.1"]
setup(
name="source_fastbill",
description="Source implementation for Fastbill.",
author="Airbyte",
... | [
"noreply@github.com"
] | thomas-vl.noreply@github.com |
b2692c4217acb8efd29ec3ef353ea073b1bf28f9 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2809/60636/235098.py | 863c6e4b47f47434bd2bdf35ed2d61e82b3a2712 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | number=int(input(""))
list=input("").split(" ")
source=[]
for i in range(number):
source.append(int(list[i]))
source.sort()
sum_0=0
sum_1=0
if(number%2==0):
for i in range(int(number/2)):
sum_0=sum_0+source[i]
for i in range(int(number/2),number):
sum_1=sum_1+source[i]
else:
for i in ran... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
499dce41c1625e2c7eb3c59f64701b426fd9d7ea | ac7648481dd25038b7985e54fba90756bcd02b80 | /patients/models.py | 4839238b51c7b3e9365d4ac9708f0f67c4afbd70 | [] | no_license | srijan09/CovidCrowd | 1a9642a925e9ccbfb18928c6c6eab526dabb72ba | a83e9f0c13a4f1f316a468d29686add18e39d367 | refs/heads/master | 2021-04-12T00:24:21.280809 | 2020-03-21T18:01:57 | 2020-03-21T18:01:57 | 249,068,937 | 0 | 0 | null | 2020-03-21T22:08:19 | 2020-03-21T22:04:44 | null | UTF-8 | Python | false | false | 5,567 | py | import requests
from django.db import models
from django.contrib.gis.db import models as geomodels
from django.contrib.gis.geos import Point, Polygon
from django.utils import timezone
from .constants import COUNTRIES, STATES, PatientStatus, Gender
class Report(models.Model):
REPORTED = "R"
VERIFIED = "V"
... | [
"arun@arunmozhi.in"
] | arun@arunmozhi.in |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.