blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | 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 777
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 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
04194d3259bddb1b85dd569f81d42adde8bd6519 | b64c45e75aa215ddcf7249fb92e047f3e7731187 | /mainapp/migrations/0002_auto_20200217_2307.py | 3ff8952ddbbcd3d0d5fc5ed54ba586369c9da0b1 | [] | no_license | johngaitho05/CohMat | 6731b4dfb94475c75f1cd1d2ec55cc810729f939 | ff5b8e5eb877f68a0477f4f19b78c6e7c407af2c | refs/heads/master | 2022-12-12T15:55:53.363782 | 2021-04-04T13:17:05 | 2021-04-04T13:17:05 | 239,868,710 | 1 | 0 | null | 2022-11-04T19:31:50 | 2020-02-11T21:31:47 | Python | UTF-8 | Python | false | false | 537 | py | # Generated by Django 2.2.6 on 2020-02-17 20:07
import django.contrib.postgres.fields
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mainapp', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='cohort',
... | [
"johngaitho05@gmail.com"
] | johngaitho05@gmail.com |
fb577e0bdcfa8c1aaeb76a7181b11a55ad7d13b8 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_093/ch15_2020_03_23_19_23_29_484996.py | 5d206db34db42a05c7a3430435e11b5a24aa7869 | [] | 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 | 84 | py | programa=input('Olá, ')
if programa == 'Chris':
print('Todo mundo odeia o Chris')
| [
"you@example.com"
] | you@example.com |
9c3aba948575031c83d273d634d1d6a34c7d502a | c70ac0b6d3ec292ab95626cbd519dee56a70289a | /embedded-software/mcu-hal/STM32F4xx_HAL_Driver/wscript | 8daa2e183e3e623cacd3047f1f461cdf043ac7d9 | [
"CC-BY-4.0",
"BSD-3-Clause"
] | permissive | dv1990/foxbms | c4b28fea533f681c04fae5bc4f004fd2f6bcb498 | 9176f75e8ebf42da0581d82be3db9ebcdfea4f0e | refs/heads/master | 2020-04-17T08:27:07.168099 | 2018-12-14T12:43:17 | 2018-12-14T12:43:17 | 166,412,545 | 1 | 0 | NOASSERTION | 2019-01-18T13:52:42 | 2019-01-18T13:52:42 | null | UTF-8 | Python | false | false | 3,967 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @copyright © 2010 - 2018, Fraunhofer-Gesellschaft zur Foerderung der
# angewandten Forschung e.V. All rights reserved.
#
# BSD 3-Clause License
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the fol... | [
"info@foxbms.org"
] | info@foxbms.org | |
5a288ad3997042da67edb9b18baba20de636c05b | 8cb6cba90622021549b94e62a7fd5ae9ebc3f55f | /simplemooc/simplemooc/courses/views.py | 99291abeafc9581c1987db05ff5212db16ecc237 | [] | no_license | thiagorossener/course-udemy-django-simplemooc | 4c319e23fb2d4dae2c7b152179f4f700904d3271 | f23303f27712149722747dc3f6bcc8361acc1698 | refs/heads/master | 2021-06-16T03:11:10.527563 | 2017-05-11T14:35:16 | 2017-05-11T14:35:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,213 | py | from django.shortcuts import render, get_object_or_404, redirect
from django.contrib.auth.decorators import login_required
from django.contrib import messages
from simplemooc.courses.models import (Course, Enrollment, Announcement, Lesson,
Material)
from simplemooc.courses.forms import ContactCourse, CommentForm
from... | [
"thiago.rossener@gmail.com"
] | thiago.rossener@gmail.com |
342f75521d3abaf866851722cdfd35ec72b29d01 | 2befb6f2a5f1fbbd5340093db43a198abdd5f53b | /pythonProject/modelviewset/modelviewsetApp/migrations/0001_initial.py | f0099f330374e6813c4bfd515b8bb93cdc7d1383 | [] | no_license | JanardanPandey/RestAPI | 1956d3529782d18ef2118961f6286e3213665aad | 654933a4d9687076a00c6f4c57fc3dfee1a2c567 | refs/heads/master | 2023-06-14T07:02:31.702000 | 2021-07-02T07:50:59 | 2021-07-02T07:50:59 | 382,357,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 604 | py | # Generated by Django 3.2.3 on 2021-06-06 08:35
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='StudentModel',
fields=[
('id', models.BigAu... | [
"janardanpandey0510@gmail.com"
] | janardanpandey0510@gmail.com |
b035d4c55236efb3af1c591684b28900e1f9eca8 | 3267fb38696d7b114a22f476f2c60425d6ee349a | /src/api/exceptions.py | 6eab930e8268c1c57c0cb4c9d602481895dd8f7e | [] | no_license | marcinowski/github-adapter | c0092e3f817f9dc1d97691e81b1c247ae281b2c7 | 2d7c6b9601da082de246450cc840412f0c4331b5 | refs/heads/master | 2022-12-10T00:53:39.386198 | 2017-09-06T10:57:09 | 2017-09-06T10:57:09 | 100,716,960 | 0 | 0 | null | 2021-06-01T22:02:20 | 2017-08-18T13:55:02 | Python | UTF-8 | Python | false | false | 1,602 | py | """
:created on: 2017-08-21
:author: Marcin Muszynski
:contact: marcinowski007@gmail.com
"""
RESPONSE_EXCEPTION_NAME_FORMAT = 'GitHubAdapter{}Error'
class GitHubAdapterBaseError(Exception):
""" Base Exception for GitHub adapter"""
class GitHubAdapterHTTPError(GitHubAdapterBaseError):
""" Base HTTP Error ... | [
"muszynskimarcin@wp.pl"
] | muszynskimarcin@wp.pl |
31a9d3dc24bee09b099c63b756f0a4157ae58716 | ba949e02c0f4a7ea0395a80bdc31ed3e5f5fcd54 | /problems/dp/Solution727.py | 398306eae193d167eb1b975cf6e85d29184f1f7b | [
"MIT"
] | permissive | akaliutau/cs-problems-python | 6bc0a74064f6e9687fe58b13763da1fdf2e1f626 | 9b1bd8e3932be62135a38a77f955ded9a766b654 | refs/heads/master | 2023-05-11T22:19:06.711001 | 2021-06-04T11:14:42 | 2021-06-04T11:14:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | """ Given strings S and T, find the minimum (contiguous) substring W of S, so
that T is a subsequence of W.
If there is no such window in S that covers all characters in T, return the
empty string "". If there are multiple such minimum-length windows, return
the one with the left-most starting index.
... | [
"aliaksei.kaliutau@gmail.com"
] | aliaksei.kaliutau@gmail.com |
dcd430ba643880ad3d9694ed4cc1931961efdb1c | b9eb496c4551fd091954675a61382636fc68e715 | /src/ABC1xx/ABC17x/ABC172/ABC172D.py | 22b78ec009546408cba2d57d41d58a2f5f8fe13c | [] | no_license | kttaroha/AtCoder | af4c5783d89a61bc6a40f59be5e0992980cc8467 | dc65ce640954da8c2ad0d1b97580da50fba98a55 | refs/heads/master | 2021-04-17T16:52:09.508706 | 2020-11-22T05:45:08 | 2020-11-22T05:45:08 | 249,460,649 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | def main():
N = int(input())
nums = [1] * (N + 1)
s = 0
for i in range(2, N+1):
tmp = i
while tmp <= N:
nums[tmp] += 1
tmp += i
for i in range(1, N+1):
s += i * nums[i]
print(s)
if __name__ == '__main__':
main()
| [
"kthamano1994@gmail.com"
] | kthamano1994@gmail.com |
c64fd7d1fec9e8c0937b20a5f8df26495f60825d | 9ffd14fa00dbea9a7e628825e999e73c1abded5f | /Lecture 04/request.py | f4a9213706c32a31d2e2de6b45187e0199904b73 | [] | no_license | riyadhswe/PythonDiyeProgrammingSikha2nd | d3b90071f1237e4be679609689dc96039dad868d | 6e63e23e046aeb724f7cf4426423551afdc081a9 | refs/heads/master | 2023-03-03T08:33:47.301639 | 2021-02-14T15:59:53 | 2021-02-14T15:59:53 | 327,816,754 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | import requests
url = "http://google.com"
response = requests.get(url)
response.ok | [
"riyadhswe@gmail.com"
] | riyadhswe@gmail.com |
2e582b4c164d4d1f684a12aed00aa4268b122446 | e6d862a9df10dccfa88856cf16951de8e0eeff2b | /Core/worker/python/test/test_worker_performance_event_evaluation.py | b0bcb28658398e498344033f0e7a1a1d032bdb69 | [] | no_license | AllocateSoftware/API-Stubs | c3de123626f831b2bd37aba25050c01746f5e560 | f19d153f8e9a37c7fb1474a63c92f67fc6c8bdf0 | refs/heads/master | 2022-06-01T07:26:53.264948 | 2020-01-09T13:44:41 | 2020-01-09T13:44:41 | 232,816,845 | 0 | 0 | null | 2022-05-20T21:23:09 | 2020-01-09T13:34:35 | C# | UTF-8 | Python | false | false | 1,014 | py | # coding: utf-8
"""
Workers
## Workers and events # noqa: E501
The version of the OpenAPI document: 1.0.0
Contact: support@allocatesoftware.com
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import api_server
from api_server.models.wo... | [
"nigel.magnay@gmail.com"
] | nigel.magnay@gmail.com |
c0f1fb47b6faa9935dd1ef06dd48a6f9ebe66315 | 2fd087fbc5faf43940153693823969df6c8ec665 | /pyc_decrypted/latest/distutils/versionpredicate.py | 1ceb1d76a7d86286983c5fc23abde3ae1bbb4694 | [] | no_license | mickeystone/DropBoxLibrarySRC | ed132bbffda7f47df172056845e5f8f6c07fb5de | 2e4a151caa88b48653f31a22cb207fff851b75f8 | refs/heads/master | 2021-05-27T05:02:30.255399 | 2013-08-27T13:16:55 | 2013-08-27T13:16:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,425 | py | #Embedded file name: distutils/versionpredicate.py
import re
import distutils.version
import operator
re_validPackage = re.compile('(?i)^\\s*([a-z_]\\w*(?:\\.[a-z_]\\w*)*)(.*)')
re_paren = re.compile('^\\s*\\((.*)\\)\\s*$')
re_splitComparison = re.compile('^\\s*(<=|>=|<|>|!=|==)\\s*([^\\s,]+)\\s*$')
def splitUp(pred):... | [
"bizonix@me.com"
] | bizonix@me.com |
f20f8c824979e86de13da915aadb5f80de1ba16f | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_157/750.py | 40dcc08356dad6634828062c24ac8c82edb056f4 | [] | 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 | 888 | py | #!/usr/bin/python
import sys
char2q={'i':0, 'j':1, 'k':2}
def solve_case():
(L,X)=[int(n) for n in sys.stdin.readline().split(" ")]
string=sys.stdin.readline()[:-1]
string=X*string
#print string
letter=0
Q=3
minus=False
for c in string:
#print c,
q=char2q[c]
i... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
0b9b9d7c58619def344ec1bb8490039754f21dff | 42c48f3178a48b4a2a0aded547770027bf976350 | /google/ads/google_ads/v4/services/reach_plan_service_client_config.py | 7da209ded44302ee1db8c586bc0d53ba3cb561df | [
"Apache-2.0"
] | permissive | fiboknacky/google-ads-python | e989464a85f28baca1f28d133994c73759e8b4d6 | a5b6cede64f4d9912ae6ad26927a54e40448c9fe | refs/heads/master | 2021-08-07T20:18:48.618563 | 2020-12-11T09:21:29 | 2020-12-11T09:21:29 | 229,712,514 | 0 | 0 | Apache-2.0 | 2019-12-23T08:44:49 | 2019-12-23T08:44:49 | null | UTF-8 | Python | false | false | 1,331 | py | config = {
"interfaces": {
"google.ads.googleads.v4.services.ReachPlanService": {
"retry_codes": {
"idempotent": [
"DEADLINE_EXCEEDED",
"UNAVAILABLE"
],
"non_idempotent": []
},
"retry_params": {
"default": {
"initial_retry_delay_milli... | [
"noreply@github.com"
] | fiboknacky.noreply@github.com |
487e993470611bf28744dc80b3488e471f00e3a1 | 23db36a9e19a48aa660444dfc32d50ebc6c88a42 | /doc/_code/inline_keyboard.py | 2d29d42301312f031228dbcdbd429134c5d299c8 | [
"MIT"
] | permissive | cpcchengt/telepot | fab206ce6ea4149e0dce9619adc9075b59c06a66 | eb2050fbb36b142a9746533e738322d0cc0d4631 | refs/heads/master | 2023-06-20T02:35:36.644708 | 2021-07-21T02:55:44 | 2021-07-21T02:55:44 | 384,059,417 | 2 | 0 | MIT | 2021-07-08T08:44:57 | 2021-07-08T08:44:57 | null | UTF-8 | Python | false | false | 936 | py | import sys
import time
import telepot
from telepot.loop import MessageLoop
from telepot.namedtuple import InlineKeyboardMarkup, InlineKeyboardButton
def on_chat_message(msg):
content_type, chat_type, chat_id = telepot.glance(msg)
keyboard = InlineKeyboardMarkup(inline_keyboard=[
[InlineKeyb... | [
"lee1nick@yahoo.ca"
] | lee1nick@yahoo.ca |
0d444903596cbcb7e38c014cceae5caaa94d4835 | cb30d1a3a4fa6c8f7a6f89a671fbdb4a808e19e3 | /c2/proverb.py | e2d2db78798fd7415e07ee03feb45940ff7b3deb | [] | no_license | systemchip/python-for-everyone | 0b45172ca5b41c3b5fc1a835fbccf4a479c282ea | 9fb7f751a97fb6a110079e1e3e1dd9601fb24374 | refs/heads/master | 2021-09-02T09:18:22.013704 | 2017-07-17T07:46:19 | 2017-07-17T07:46:19 | 115,913,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | # 격언을 표시한다
print("두드려라.")
print("그러면 열릴 것이다.")
| [
"dylee@wikibook.co.kr"
] | dylee@wikibook.co.kr |
69f414c19e8cafff59fec7dc9c7e05ad0644f490 | b3c47795e8b6d95ae5521dcbbb920ab71851a92f | /Leetcode/Algorithm/python/2000/01865-Finding Pairs With a Certain Sum.py | 66b88abfc548b4814351a7770db1ce304c3a3b3d | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | Wizmann/ACM-ICPC | 6afecd0fd09918c53a2a84c4d22c244de0065710 | 7c30454c49485a794dcc4d1c09daf2f755f9ecc1 | refs/heads/master | 2023-07-15T02:46:21.372860 | 2023-07-09T15:30:27 | 2023-07-09T15:30:27 | 3,009,276 | 51 | 23 | null | null | null | null | UTF-8 | Python | false | false | 724 | py | from collections import defaultdict
class FindSumPairs(object):
def __init__(self, nums1, nums2):
self.d = defaultdict(int)
self.nums1 = nums1
self.nums2 = nums2
for item in nums2:
self.d[item] += 1
def add(self, index, val):
pre = self.nums2[index... | [
"noreply@github.com"
] | Wizmann.noreply@github.com |
6022f801423acba4dc6fba931bf79e8128f0fd72 | e30a578e2467b67d82dc8529c2e8107579496d01 | /ML/3.py | 3cdaebea2b295d3905e602dbc0e4bad537e6ab9e | [
"MIT"
] | permissive | rednithin/7thSemLabs | 7636ad55e02d7f4fbf56e2b4fbc73ff79868006e | 5bd4102627aa068afd16c55c02b18e51ec5cba4c | refs/heads/master | 2020-04-06T13:01:15.576852 | 2018-12-09T06:49:12 | 2018-12-09T06:49:12 | 157,480,151 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,187 | py | import numpy as np
from csv import reader
from math import log2
from collections import Counter
from pprint import pprint
YES, NO = "Y", "N"
class Node:
def __init__(self, label):
self.label = label
self.branches = {}
def entropy(data):
total, positive, negative = len(
data), (data[... | [
"reddy.nithinpg@live.com"
] | reddy.nithinpg@live.com |
0440b1fff9d5435ce1e25dee4e860b2f50ea83b1 | 06569ec06be697beffdc5eeff1e51ca0e69ee388 | /naengpa/migrations/0001_initial.py | 1b2e597cd43aee0be84f29f42d34ba72acf44faf | [] | no_license | Areum0921/naengpa | fbb88f962c03a0a6222942e81726fb883986861a | ebf6f27aaa78c8ea06d269410bfc9a179c3f4bcc | refs/heads/master | 2023-07-14T15:55:36.524558 | 2021-08-19T07:50:26 | 2021-08-19T07:50:26 | 388,108,445 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | # Generated by Django 3.2.5 on 2021-07-22 08:11
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Recipe',
fields=[
('id', mo... | [
"a90907@gmail.com"
] | a90907@gmail.com |
a5a6566ee6f951719d7bae58963b4f8df750761f | ca2782824a16b7b9dc1284ff058776ca62809787 | /exercise_library/basic_navigation/api.py | 6c2a9ddcf12418c07ad9055ba07a07cfb90228b0 | [] | no_license | captbaritone/exercise-library | 9ddc838f4ffe24c65fd381be6d421f5084e48392 | c01274c05a35e47b140846ffa06f3a42cc4dc291 | refs/heads/master | 2020-12-24T12:47:23.645268 | 2015-02-09T08:05:34 | 2015-02-09T08:05:34 | 30,525,565 | 1 | 0 | null | 2015-02-09T08:21:29 | 2015-02-09T08:21:28 | null | UTF-8 | Python | false | false | 555 | py | import json
from django.http import Http404
from django.http import HttpResponse
def render_to_json(response_obj, context={}, content_type="application/json", status=200):
json_str = json.dumps(response_obj, indent=4)
return HttpResponse(json_str, content_type=content_type, status=status)
def requires_post... | [
"slobdell@hearsaycorp.com"
] | slobdell@hearsaycorp.com |
5b6670e8acd44e1c3c70765eccf7f95c6d7a4463 | ee89c84c5b2f48d447b7005299b409d61cc4d807 | /venv/Scripts/rst2html.py | d82a8d31a3a9267b435b9d556c0d9e90b2f8e873 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | songweiwei/rasa_run | 342075cc645725a042acf273ab6508c5da55cbee | 0cfc0a280b9efea344bacf5f2df5800c32d0b3a8 | refs/heads/master | 2023-05-31T03:23:26.490925 | 2020-04-22T07:56:07 | 2020-04-22T07:56:07 | 257,218,895 | 2 | 2 | null | 2023-05-22T23:23:45 | 2020-04-20T08:31:42 | Python | UTF-8 | Python | false | false | 641 | py | #!c:\users\sonny\pycharmprojects\rasa_run\venv\scripts\python.exe
# $Id: rst2html.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing HTML.
"""
try:
import l... | [
"1194488130@qq.com"
] | 1194488130@qq.com |
2f53fe70840c17f5e6eb67b3f761b26aa5105eb1 | 9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb | /sdk/hdinsight/azure-mgmt-hdinsight/generated_samples/get_linux_hadoop_script_action.py | c384d8c553f822eb33b468a8920289e2e0df61e7 | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | openapi-env-test/azure-sdk-for-python | b334a2b65eeabcf9b7673879a621abb9be43b0f6 | f61090e96094cfd4f43650be1a53425736bd8985 | refs/heads/main | 2023-08-30T14:22:14.300080 | 2023-06-08T02:53:04 | 2023-06-08T02:53:04 | 222,384,897 | 1 | 0 | MIT | 2023-09-08T08:38:48 | 2019-11-18T07:09:24 | Python | UTF-8 | Python | false | false | 1,580 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | openapi-env-test.noreply@github.com |
4390260f8e58d5e4672f6e75b6cd7aa1bc72ce21 | e40bf504eda3413074cc719a421cdab222ece729 | /chip.py | 4bb26d0260a51c141f095838551ef442146d101b | [] | no_license | bcrafton/noc | 93b20725b53890d0ee405ee51a53fa04cf448e3d | 4191eca66a4498eb5f3e4069b92a3e7c006e868b | refs/heads/master | 2023-02-16T12:46:22.729027 | 2021-01-11T17:09:29 | 2021-01-11T17:09:29 | 328,193,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,619 | py |
import numpy as np
from modules import *
from transform_weights import transform_weights
from transform_inputs import transform_inputs
############################
def bits(model, inputs):
xh, xw, xc, xn = np.shape(inputs)
size = xh
ws = []
xs = []
for layer in model.keys():
w = model... | [
"crafton.b@husky.neu.edu"
] | crafton.b@husky.neu.edu |
e0e0877c3ae3262b43646cf6272ffe758b1fc454 | c17133ea0f7bbad98ef17ce2c0213b8c95a4630f | /Design_serach_autocomplete_system.py | 8971f354fa6ab79c1247ea332d87cc11c02a0754 | [] | no_license | Mohan110594/Design-6 | e8be1935bfa9a95537846face73f5f7d8943bf3f | 36faa1203276e58f8b52470e1e09fa60f388f1e3 | refs/heads/master | 2022-04-16T09:25:59.967115 | 2020-04-11T16:06:36 | 2020-04-11T16:06:36 | 254,902,314 | 0 | 0 | null | 2020-04-11T15:55:00 | 2020-04-11T15:54:59 | null | UTF-8 | Python | false | false | 3,575 | py | // Did this code successfully run on Leetcode : Yes
// Any problem you faced while coding this : None
// Your code here along with comments explaining your approach
In this problem we create a trie with all the given sentences and at every letter we maintain the word frequency at each and every letter.
when inputing ... | [
"anu110594@gmail.com"
] | anu110594@gmail.com |
1c01d6b6bfd004dd2a32aa4a0929d97689dc22af | 625108dc5a9b90d0f22609788ff52aff155a2c99 | /selection/randomized/bootstrap/bayes_boot_randomX_gn.py | 0c2f94b79a6c8c437a2055d00767c26536c46cd3 | [] | no_license | guhjy/Python-software | 0169f6618a570bb5a5e3aaf29e895d2251ca791c | 061a050bd17ca6f276296dbfa51573f001c320b1 | refs/heads/master | 2021-01-09T20:55:01.417131 | 2016-09-12T20:43:43 | 2016-09-12T20:43:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,078 | py | import numpy as np
from scipy.stats import laplace, probplot, uniform
#from selection.algorithms.lasso import instance
from instances import instance, bootstrap_covariance
import selection.sampling.randomized.api as randomized
#from pvalues_bayes_randomX import pval
from pvalues_bayes_ranX_gn import pval
from matplotl... | [
"jonathan.taylor@stanford.edu"
] | jonathan.taylor@stanford.edu |
7fdcfd43aa5a87d2ab8a4c5a2f506ea8afb52965 | ec6a55345b2e3358a99113369c62ab4622ab527c | /src/Utilities/date_helper.py | ed424b9f133177c5b881b0a20ea2e7243aef4c7c | [] | no_license | cloew/PersonalAccountingSoftware | 566a92e127bc060cd18470e35e2f6decf94f1aa5 | 57c909c8581bef3b66388038a1cf5edda426ecf9 | refs/heads/master | 2016-08-11T16:16:30.179032 | 2015-05-12T20:09:19 | 2015-05-12T20:09:19 | 8,558,121 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | from dateutil import parser
def DateToString(date):
""" Returns a string format of the given date """
return "{0:%m/%d/%Y}".format(date)
def StringToDate(dateString):
""" Converts a String to a date """
return parser.parse(dateString) | [
"cloew123@gmail.com"
] | cloew123@gmail.com |
c88654782e0687cc493dc2eb6dbdfc7506ce426d | cf025ea3bf079748472557304a290593c753b884 | /Algorithm/SWEA/연습문제_큐_마이쮸(list).py | 05a9a3af9874fc2a67cb7097febeae47d7ab0ed7 | [] | no_license | Silentsoul04/my_software_study | 7dbb035ceea74f42c7ce2051b2320f6cae75ed88 | c27d33c57f59fe5244a1041c11bbd826dd481546 | refs/heads/master | 2023-03-29T02:43:40.861045 | 2019-07-10T08:09:55 | 2019-07-10T08:09:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | front=-1
rear=-1
total=20
Q=[0]*100000
idx=0
while True:
new_sn=[idx+1,0]
rear+=1
Q[rear]=new_sn
front+=1
total-=Q[front][1]+1
if total<=0:
print(Q[front][0])
break
else:
rear+=1
Q[rear]=[Q[front][0],Q[front][1]+1]
idx+=1 | [
"pok_winter@naver.com"
] | pok_winter@naver.com |
a5214df67c7e06950cf5a6f59334fcf6b5e51b8b | c4764283f6d3eb9ee77c05d489ec0763a40c9925 | /Plot_Graphs.py | c125326400c76ff415a368500231cf4e8cfc89c6 | [] | no_license | Arseni1919/simulator_dcop_mst | 09475b6369a28120efabf4cfa29a973c80846f9d | 7f2c8a3066e1760df773ed9a92fdaab67942b20c | refs/heads/master | 2020-08-06T20:32:12.091581 | 2020-05-11T09:02:06 | 2020-05-11T09:02:06 | 213,143,452 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,135 | py | from main_help_functions import *
# ---------------------------
# ------INPUT SETTINGS-------
# ---------------------------
file_name = "08.01.2020-22_54_47__DSA__Max_sum_MST_vanilla__DSA_HPA__Max_sum_HPA__Max_sum_TAC_DSA_vs_MS_file.data"
need_to_plot_variance = False
need_to_plot_min_max = False
# -------------------... | [
"1919ars@gmail.com"
] | 1919ars@gmail.com |
5283b261f46dde76d6167da8cb2c5dd383eb6a7e | ea5762e8754d6b039963b0125822afb261844cc8 | /docs/_examples/drx_numpy-numba.py | 210d21040bafbc04be9cf0bee76fef45d132e451 | [
"MIT"
] | permissive | gonzalocasas/compas | 787977a4712fbfb9e230c4f433b6e2be509e4855 | 2fabc7e5c966a02d823fa453564151e1a1e7e3c6 | refs/heads/master | 2020-03-23T20:17:55.126856 | 2018-07-24T22:30:08 | 2018-07-24T22:30:08 | 142,033,431 | 0 | 0 | MIT | 2018-07-31T14:54:52 | 2018-07-23T15:27:19 | Python | UTF-8 | Python | false | false | 1,838 | py | """A dynamic relaxation example comparing NumPy with Numba."""
from compas_blender.geometry import BlenderMesh
from compas_blender.helpers import network_from_bmesh
from compas_blender.utilities import clear_layer
from compas_blender.utilities import draw_plane
from compas.numerical import drx_numpy
from compas.hpc i... | [
"vanmelet@ethz.ch"
] | vanmelet@ethz.ch |
759e6bda7235ac11b4f4d331bff779a33d0164b5 | 875c597ab0bb0af1fe3a78944b1424f0defd164b | /flask/flaskr/blog/blog.py | 424621b8a1a12abb1458adcc59a6d6d2988a7dc9 | [] | no_license | alls77/lectures | 20dcbb0e69a7a2db0eaed2f8c858e8c1d1483c77 | 4695c35b811176a2ad66c9417708158bf5052d23 | refs/heads/master | 2022-05-22T12:35:04.131269 | 2020-01-27T16:31:15 | 2020-01-27T16:31:15 | 221,741,618 | 0 | 0 | null | 2022-04-22T23:01:54 | 2019-11-14T16:33:28 | Python | UTF-8 | Python | false | false | 3,102 | py | from flask import Blueprint
from flask import flash
from flask import g
from flask import redirect
from flask import render_template
from flask import request
from flask import url_for
from werkzeug.exceptions import abort
from flaskr.auth.auth import login_required
from flaskr.db import get_db
from flaskr.blog.querie... | [
"alina_selina@bk.ru"
] | alina_selina@bk.ru |
41006f95fe2e28137f3887419d27eca666de4098 | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-ccc/aliyunsdkccc/request/v20200701/ListHistoricalAgentReportRequest.py | 4772cc3adbe8a9211facc64e47f783fba1e7272c | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-python-sdk | 4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f | 83fd547946fd6772cf26f338d9653f4316c81d3c | refs/heads/master | 2023-08-04T12:32:57.028821 | 2023-08-04T06:00:29 | 2023-08-04T06:00:29 | 39,558,861 | 1,080 | 721 | NOASSERTION | 2023-09-14T08:51:06 | 2015-07-23T09:39:45 | Python | UTF-8 | Python | false | false | 2,409 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
daa4b586d66b0d3733b9473f4fd62ba0f8d27fca | f28b67f23b0e5aa6d008adbd6132ce1d97550ff2 | /nuitka/build/inline_copy/lib/scons-3.0.4/SCons/Node/__init__.py | b6f3383b6151c479eb324c6a4282287ec6436b6f | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | prasunka/Nuitka | 64580670425ed589f4a08fdb9dad3083eb155b13 | 92d90b55769ae884c568f046bbb066453eda666d | refs/heads/master | 2020-06-19T18:07:57.141227 | 2019-06-07T21:32:37 | 2019-06-07T21:32:37 | 196,814,152 | 1 | 0 | Apache-2.0 | 2019-07-14T08:50:32 | 2019-07-14T08:50:32 | null | UTF-8 | Python | false | false | 62,831 | py | """SCons.Node
The Node package for the SCons software construction utility.
This is, in many ways, the heart of SCons.
A Node is where we encapsulate all of the dependency information about
any thing that SCons can build, or about any thing which SCons can use
to build some other thing. The canonical "thing," of co... | [
"kay.hayen@gmail.com"
] | kay.hayen@gmail.com |
c600cab231ae189afad7e9c793c31698f1d1dda0 | acd41dc7e684eb2e58b6bef2b3e86950b8064945 | /res/packages/scripts/scripts/client/gui/Scaleform/locale/COMMON.py | 6af510f834e815784c03e95821358733067dd94e | [] | no_license | webiumsk/WoT-0.9.18.0 | e07acd08b33bfe7c73c910f5cb2a054a58a9beea | 89979c1ad547f1a1bbb2189f5ee3b10685e9a216 | refs/heads/master | 2021-01-20T09:37:10.323406 | 2017-05-04T13:51:43 | 2017-05-04T13:51:43 | 90,268,530 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 637 | py | # 2017.05.04 15:24:58 Střední Evropa (letní čas)
# Embedded file name: scripts/client/gui/Scaleform/locale/COMMON.py
"""
This file was generated using the wgpygen.
Please, don't edit this file manually.
"""
class COMMON(object):
COMMON_COLON = '#common:common/colon'
COMMON_PERCENT = '#common:common/percent'
... | [
"info@webium.sk"
] | info@webium.sk |
19f41e85f4206a6192a3e3a9be678142773af90e | 0f4e69f6620ce3bd35b0090ed97b0d520dac2775 | /build/kobuki_safety_controller/catkin_generated/pkg.develspace.context.pc.py | e8c8e32c2906ad95b607e2e0dba31bcfe5203745 | [] | no_license | yosoy2/turtlebot2 | 277c44fe63bb808ac3ff1b050388f35e7e9aca5d | d3052cc648b617c43b6190cbfc8d08addbb8f9de | refs/heads/master | 2021-03-16T12:40:54.660254 | 2020-03-12T18:52:15 | 2020-03-12T18:52:15 | 246,908,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/edu/turtlebot2/src/kobuki_safety_controller/include".split(';') if "/home/edu/turtlebot2/src/kobuki_safety_controller/include" != "" else []
PROJECT_CATKIN_DEPENDS = "roscpp;nodelet;pluginlib;std... | [
"edotercero66.el@gmail.com"
] | edotercero66.el@gmail.com |
cb4095ce914cad8e2421522ea8914167096ef584 | 219d7cf7cf00b778ff1a5709406c144fcf2132f3 | /exam prep/04. Food for Pets.py | 16055a3550f1f098f577347be2a5aa08d4590c62 | [] | no_license | SilviaKoynova/Softuni-Programming-Basics-Python | e8e175419383815c65c4e110fdb2b752d940e887 | 0dfef0850f2cb8471dfee1af89f137be4e887cb8 | refs/heads/main | 2023-07-13T00:35:09.389302 | 2021-08-27T07:43:45 | 2021-08-27T07:43:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 823 | py | from math import floor
days = int(input())
bought_food = float(input())
total_food_dog = 0
total_eaten_cat = 0
biscuits = 0
total_food = 0
final = 0
dog = 0
cat = 0
for all_days in range (1, days + 1):
dog_eaten = int(input())
cat_eaten = int(input())
total_food_dog += dog_eaten
total_eate... | [
"noreply@github.com"
] | SilviaKoynova.noreply@github.com |
ace63eee1b093c6fba610d2765a7a7c30f7d777f | 57391fbdde43c3d2e8628613d9003c65ff8abf9d | /Exercicios/ex025.py | b91b51ff7bd5bcc5298a5bf359fef4ec0215b878 | [] | no_license | JoaolSoares/CursoEmVideo_python | 082a6aff52414cdcc7ee94d76c3af0ac2cb2aaf5 | aa9d6553ca890a6d9369e60504290193d1c0fb54 | refs/heads/main | 2023-07-15T07:39:57.299061 | 2021-08-26T20:04:22 | 2021-08-26T20:04:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | n1 = (str(input('Diga o seu nome: ')).strip()).lower()
print('O seu nome possui "Silva": {}' .format('silva' in n1))
| [
"joaolucassoaresk@outlook.com"
] | joaolucassoaresk@outlook.com |
16fdd87db79816926ec1b2ace8eb8c4e396aa4a0 | dd31b966b1fbbd129b8657aa35b1dd460cbd1675 | /sandbox/python/wcpan.ftp/wcpan/ftp/network.py | 2af7106f582b54be4a85b0f0c0a63dae00995630 | [] | no_license | legnaleurc/junkcode | 9e48608d3ecafef0d7103240458f622aee87e077 | f63b04d04853fb7d3ae0002b24657a9fd781b648 | refs/heads/master | 2023-07-08T04:27:01.934100 | 2023-06-26T05:14:18 | 2023-06-26T05:14:39 | 27,518 | 5 | 5 | null | 2019-05-12T17:22:15 | 2008-06-22T19:17:04 | C++ | UTF-8 | Python | false | false | 5,345 | py | import socket
import subprocess
import os.path
import tornado.tcpserver as tts
import tornado.ioloop
import tornado.iostream
import tornado.locks as tl
import tornado.netutil as tn
class FTPServer(tts.TCPServer):
def __init__(self, path):
super().__init__()
self.path = path
self._loop =... | [
"legnaleurc@gmail.com"
] | legnaleurc@gmail.com |
e59c90e5865491891f0f6300d06a803ab6505488 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03646/s038304175.py | 851d87f751819207824900501d7ddeaf0e2ff6a4 | [] | 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 | 136 | py | k = int(input())
rest = k % 50
print(50)
lst = [50 + k // 50 if i < rest else 50 + (k // 50 - 1) - rest for i in range(50)]
print(*lst) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c052aa6a6a116e3f4cf56a227c2d8fe9cfdc2b9e | 1419418226b6ba0f510649daaf62b71554cc2284 | /clawtools/plot_coast_chiapas.py | e3af2a89b43214556f155501d3fdea2e3cbbc522 | [] | no_license | shineusn/mylife | 2ef48a777e39be2ef746c3dad16ea963d5b23e5e | 61dfa72d9047551746d26b7fe01fb5c2f1f0657a | refs/heads/master | 2020-03-22T13:44:42.422127 | 2018-02-13T18:09:43 | 2018-02-13T18:09:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,637 | py | # -*- coding: utf-8 -*-
from matplotlib import pyplot as plt
from numpy import genfromtxt,unique,zeros,where,array,nan,c_,r_,argmin,squeeze,isnan
from obspy import read
from matplotlib import rcParams
etaclip=50
rcParams.update({'font.size': 22})
fgmax_file=u'/Users/dmelgar/Tsunamis/tehuantepec/_output/fort.FG1.valu... | [
"dmelgar@berkeley.edu"
] | dmelgar@berkeley.edu |
bb9a45c25e772efc4b39731431232d2b38348672 | 6b6e20004b46165595f35b5789e7426d5289ea48 | /util/tufmetadata/api.py | 9c039477a91604a4027b703270be9f31092dad3c | [
"Apache-2.0"
] | permissive | anwarchk/quay | 2a83d0ab65aff6a1120fbf3a45dd72f42211633b | 23c5120790c619174e7d36784ca5aab7f4eece5c | refs/heads/master | 2020-09-12T18:53:21.093606 | 2019-11-15T19:29:02 | 2019-11-15T19:29:02 | 222,517,145 | 0 | 0 | Apache-2.0 | 2019-11-18T18:32:35 | 2019-11-18T18:32:35 | null | UTF-8 | Python | false | false | 10,315 | py | import logging
from urlparse import urljoin
from posixpath import join
from abc import ABCMeta, abstractmethod
from six import add_metaclass
import requests
from data.database import CloseForLongOperation
from util.abchelpers import nooper
from util.failover import failover, FailoverException
from util.security.ins... | [
"jimmy.zelinskie+git@gmail.com"
] | jimmy.zelinskie+git@gmail.com |
8db418acd2d08188e41e2f04b93c36f5e140c62c | c701dbdd743aa807d772bad99a4d903088282fb3 | /Proj_Centroid_Loss_LeNet/LeNet_plus_centerloss/network.py | 56b351535335b2b388cb9fcf18aa0451c726b7d0 | [] | no_license | Beerkay/deep_learning_notes | 6d5230c95cf67e6330f0d5ff87186515b346d157 | 7f8c7312ddf8ed1e46bf0e6971565b911eb8bc92 | refs/heads/master | 2021-05-04T05:54:42.628731 | 2016-10-13T20:27:55 | 2016-10-13T20:27:55 | 71,084,243 | 5 | 6 | null | 2016-10-16T23:43:51 | 2016-10-16T23:43:51 | null | UTF-8 | Python | false | false | 7,285 | py | import math
import tensorflow as tf
from termcolor import colored as c, cprint
import numpy as np
from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets("MNIST_data/", one_hot=True)
import helpers
### helper functions
from functools import reduce
def fc_layer(x, weight_shape, ... | [
"yangge1987@gmail.com"
] | yangge1987@gmail.com |
553634b3245a6931df483918cc4d6c8d3a077d20 | 67b7e6d2c08f08403ec086c510622be48b8d26d8 | /src/test/tinc/tincrepo/mpp/models/mpp_tc.py | 460846034b9e46458571cf6a337a685f498d2627 | [
"Apache-2.0",
"PostgreSQL",
"LicenseRef-scancode-rsa-md4",
"OLDAP-2.8",
"HPND-sell-variant",
"BSD-4-Clause-UC",
"BSD-3-Clause",
"Zlib",
"LicenseRef-scancode-zeusbench",
"LicenseRef-scancode-mit-modification-obligations",
"OpenSSL",
"MIT",
"LicenseRef-scancode-other-copyleft",
"bzip2-1.0.6"... | permissive | sshyran/gpdb | 41012411d22b0294204dfb0fe67a1f4c8d1ecaf6 | 2d065ecdd2b5535cb42474f17a0ee6592b4e6837 | refs/heads/master | 2023-04-09T14:05:44.030212 | 2016-11-12T08:33:33 | 2016-11-12T08:34:36 | 73,544,159 | 0 | 0 | Apache-2.0 | 2023-04-04T00:30:10 | 2016-11-12T09:43:54 | PLpgSQL | UTF-8 | Python | false | false | 25,408 | py | """
Copyright (C) 2004-2015 Pivotal Software, Inc. All rights reserved.
This program and the accompanying materials are made available under
the terms of the 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
... | [
"jyih@pivotal.io"
] | jyih@pivotal.io |
0692a79c84ee0e748f2693731a6624ae00bcf533 | 41586d36dd07c06860b9808c760e2b0212ed846b | /network/dns/openresolv/actions.py | 67d9d61544066f741f397767005544aa40d70f26 | [] | no_license | SulinOS/SulinRepository | 4d5551861f57bc1f4bec6879dfe28ce68c7c125d | 9686811a1e06080f63199233561a922fe1f78d67 | refs/heads/master | 2021-06-15T21:34:25.039979 | 2021-06-05T13:43:34 | 2021-06-05T13:43:34 | 207,672,864 | 6 | 3 | null | 2019-12-06T08:11:22 | 2019-09-10T22:16:17 | Python | UTF-8 | Python | false | false | 455 | py | # -*- coding: utf-8 -*-
#
# Copyright (C) YEAR, YOUR NAME
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from inary.actionsapi import autotools
from inary.actionsapi import inarytools
from inary.actionsapi import get
def setup():
aut... | [
"zaryob.dev@gmail.com"
] | zaryob.dev@gmail.com |
8d44807bd948a1f0469bd8781eb899137a1b9b58 | 1d2300dc07489c311b52066cf87d926d0386eb3b | /app/__init__.py | 290be65b440a3056fa3e39a46db00909d7ca4c32 | [
"MIT"
] | permissive | MaxKusnadi/stackoverflow-scrapper | 92749900b787f7dceacf8fab3b0426af67af68e4 | da9834ae374fb598bf8810be5a26abacfc958267 | refs/heads/master | 2021-01-11T15:43:23.823619 | 2017-01-26T18:32:28 | 2017-01-26T18:32:28 | 79,912,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | import logging
logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
level=logging.DEBUG)
| [
"max.kusnadi@gmail.com"
] | max.kusnadi@gmail.com |
ef210239883c7e07621deacc3740c78187b1cc96 | 897914e8acf6e14f9dc42f43f342e42e38bcf5c5 | /pigeon_app/asgi.py | 4957b9f14d49662efc818c175dfdf0e5f585e8ab | [] | no_license | ShazeRx/pigeon_app | aa1f5694419db723ba39d7eb0ef1a01cdcd22464 | 70d0ba1f019ebd322695a7b322af85554118a51e | refs/heads/master | 2023-08-17T02:01:36.796184 | 2021-06-18T19:52:32 | 2021-06-18T19:52:32 | 412,397,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
ASGI config for pigeon_app 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_SE... | [
"you@example.com"
] | you@example.com |
fdbbf3441857f1b3067480de3b89e390ccfce659 | 0b93015540df1aa52435d4a7d24a6f7ddf69e60f | /libreria.py | 32e5073ac1f6afe6322c9b43441da8fda0017d40 | [] | no_license | smith-sanchez/t10_viilavicencio.carrion | f1c9a54838594c4e0a2aa6c2f16c2bec5576b857 | d761db7e6685a99ef3312aad2817ecf0d23cecfb | refs/heads/master | 2020-12-08T21:04:52.484495 | 2020-01-10T17:33:40 | 2020-01-10T17:33:40 | 233,095,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,559 | py | # libreria
# funcion validar talla
def validar_talla(num):
# tiene que ser un entero
if(isinstance(num,int)):
return True
# fin if
else:
return False
# funcion validar rango
def validar_rango(num,ri,rf):
if(validar_talla(num)==True):
if(num>=ri and num<=rf):
... | [
"noreply@github.com"
] | smith-sanchez.noreply@github.com |
ee47f2e5c8e8db84a4778c986ab56b7a70348e2f | 7c1df6de8b6eb64f941a189d6015161713efd194 | /weather/forms.py | 7ffd4874167a717459eef52aadb9df4cbddc8336 | [] | no_license | phuclhv/weather_app_django | ad3cbd1d6d46a5bc41cd1c1f57e998e456faaa9f | 01587369538c873ab7d3a3550dc8ca2093ea5236 | refs/heads/master | 2020-09-06T21:36:56.957805 | 2019-11-09T01:13:37 | 2019-11-09T01:13:37 | 220,561,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | from django.forms import ModelForm, TextInput
from .models import City
class Cityform(ModelForm):
class Meta:
model = City
fields = ['name']
widget = {'name': TextInput(attrs={'class': 'input', 'placeholder': 'City name'})} | [
"you@example.com"
] | you@example.com |
e290a946b03dfac33f19285e2b51bec5e6bd5377 | f719dc32c437a15c0eb7a229adc2848e4646a172 | /billy/tests/functional/test_company.py | 2a6ab678f297833c0c7ecc07b9f20901429996db | [
"MIT",
"BSD-3-Clause",
"BSD-2-Clause",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | grang5/billy | db3a88b650962f25b8bdea80a81c5efa5d80dec0 | a723c3aca18f817829ae088f469fabc5bea9d538 | refs/heads/master | 2021-04-18T19:36:05.586549 | 2014-06-16T21:47:37 | 2014-06-16T21:47:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,232 | py | from __future__ import unicode_literals
import json
import mock
from freezegun import freeze_time
from billy.utils.generic import utc_now
from billy.tests.functional.helper import ViewTestCase
@freeze_time('2013-08-16')
class TestCompanyViews(ViewTestCase):
@mock.patch('billy.tests.fixtures.processor.DummyProc... | [
"bornstub@gmail.com"
] | bornstub@gmail.com |
c7875cc5e8a302db04c8bdc305771a81583e3d0e | bf426f52cf7462ba4b8b583f0fbd3f5585a73491 | /Internet/Web/cgi-bin/tutor3.py | 8f7c848d5df8a49b7532ae06c74fe9e851df00a5 | [] | no_license | CodedQuen/Programming-Python-by-Mark-Lutz | 337b309f8ba98be3ac7585d0de0fc8d7ee4697f5 | 0397b29973ab24d476308b1f4f3c9befb3169a25 | refs/heads/master | 2022-06-09T21:19:01.891651 | 2020-05-01T01:57:13 | 2020-05-01T01:57:13 | 260,358,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | #!/usr/bin/python
"""
runs on the server, reads form input, prints HTML;
url=http://server-name/cgi-bin/tutor3.py
"""
import cgi
form = cgi.FieldStorage() # parse form data
print('Content-type: text/html') # plus blank line
html = """
<TITLE>tutor3.py</TITLE>
<H1>Greetings</H1>
<HR... | [
"noreply@github.com"
] | CodedQuen.noreply@github.com |
40ecff4fd8323752bb84797d6c98d85d52bd3e40 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02269/s412170301.py | 7790eefd3630490518a1dc914ece731d74e805f4 | [] | 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 | 235 | py | se = set([])
n = int(raw_input())
for i in range(n):
s = raw_input().split()
if s[0] == 'insert':
se.add(s[1])
elif s[0] == 'find':
if s[1] in se:
print 'yes'
else:
print 'no' | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ae2861b0b2ff85c3be0f336934ba4427b074f31d | 711a99404fe7e540f2c23f3b28b894921ec8a679 | /System_Test/Test_scripts/Click_on_Clusters.py | 6ab19409f34b459f3d2df36c0c7523d4c9ca09ac | [] | no_license | chetandg123/cQube_Testing | 14a8683799f65b1ad45ff768efb7101cb0be6389 | f4fa01111e7958740c73b3bea6dc54b2241c83d9 | refs/heads/master | 2022-10-02T06:21:38.563225 | 2020-06-04T11:42:18 | 2020-06-04T11:42:18 | 268,982,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 901 | py | import time
import unittest
from selenium import webdriver
from Data.parameters import Data
from TS.reuse_func import cqube
from get_dir import pwd
class test_cluster(unittest.TestCase):
def setUp(self):
driver_path = pwd()
self.driver = webdriver.Chrome(executable_path=driver_path.get_driver_pa... | [
"chetan.goudar@tibilsolutions.com"
] | chetan.goudar@tibilsolutions.com |
60ca89aa36d05ec224b9ef141ca560d9eb666111 | 3c62516d2afa561dc53e09d718a32bffef08b497 | /defense/resnet_xception_vgg19_dual/common/nips_util.py | 29ec5b1e8f6955e752791e0a8956faf80b516367 | [
"Apache-2.0"
] | permissive | ckomaki/kaggle-nips-2017 | fec1516b7ed36cc7fd5eafb209719c8cf0655a2b | 6ecea74307b68ca033b6388a61b57fc96d3da124 | refs/heads/master | 2021-07-07T13:11:56.767439 | 2017-10-04T12:41:48 | 2017-10-04T12:41:48 | 105,617,104 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,754 | py | import numpy as np
import os
import pandas as pd
from argparse import ArgumentParser
from numpy import random
from scipy.misc import imsave
class NipsUtil:
def write(self, predicted_labels):
"""
@type predicted_labels: dict[str, int]
"""
with open(self.__args.output_file, 'w') as ... | [
"test@test.com"
] | test@test.com |
328911b18176b0e78a1e7b37cb8d91b1fe1a12fd | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03496/s065615411.py | 36ffdb7558e56bc715947a4d7a8023899a98c2e3 | [] | 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 | 387 | py | from operator import itemgetter
N = int(input())
A = list(map(int, input().split()))
i = max(enumerate(map(abs, A)), key=itemgetter(1))[0]
print(2*N)
if A[i]<0:
print(i+1, N)
print(i+1, N)
for j in range(N, 1, -1) :
print(j, j-1)
print(j, j-1)
else :
print(i+1, 1)
print(i+1, 1)
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d18f189a6e54f4324082f1387a36081bbc37aee3 | 5b71e2952f34dd3bb20148874d952fee06d31857 | /app/mf/crud/migrations/0114_auto_20210213_1157.py | a34fbcd3016d1fb31dcd178b570e5cf365728f97 | [] | no_license | isela1998/facebook | a937917cddb9ef043dd6014efc44d59d034102b1 | a0f2f146eb602b45c951995a5cb44409426250c5 | refs/heads/master | 2023-07-18T02:14:50.293774 | 2021-08-28T03:26:06 | 2021-08-28T03:26:06 | 400,613,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | # Generated by Django 3.1.1 on 2021-02-13 16:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('crud', '0113_auto_20210213_1006'),
]
operations = [
migrations.AddField(
model_name='deliveryorder',
name='date_end'... | [
"infantefernandezisela@gmail.com"
] | infantefernandezisela@gmail.com |
babd3c72d5adbec375eaa01f34dc17838cfd6c77 | a2e638cd0c124254e67963bda62c21351881ee75 | /Extensions/_export_base_py/FPythonCode/FSyncronizeBPWithTransHist.py | a9b4f05832e933b3ee49300ee4de1f7dedafa1aa | [] | no_license | webclinic017/fa-absa-py3 | 1ffa98f2bd72d541166fdaac421d3c84147a4e01 | 5e7cc7de3495145501ca53deb9efee2233ab7e1c | refs/heads/main | 2023-04-19T10:41:21.273030 | 2021-05-10T08:50:05 | 2021-05-10T08:50:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,725 | py | """ Compiled: 2020-09-18 10:38:52 """
#__src_file__ = "extensions/export/./etc/FSyncronizeBPWithTransHist.py"
"""-------------------------------------------------------------------------------------------------------
MODULE
FSyncronizeBPWithTransHist -
This module takes care of creating and updating BusinessPr... | [
"nencho.georogiev@absa.africa"
] | nencho.georogiev@absa.africa |
fd01db6f4def3cbe494858b10ab39bf6cedb772e | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/4/jf0.py | 23fe4da1b12d8d8afd5dea9d2a49f103757bc42d | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
200c2e434c8baba1cca508ed6aeeac33b6aa710d | b0f1acbe5cd30c2ade801465924c12403ab7e585 | /Corda_Api_Library/openapi_client/model/net_corda_core_contracts_state_ref.py | 190e98ef92804385fb048410022c9a0d8a6a81e0 | [] | no_license | TanzimAzadNishan/Blockchain-Based-Online-Ticketing-Platform | 94ea0f06a7761f9033f7a1dc61548ade6f6ff499 | d04a2696cab4c41743c7c5999c623002d0e57f80 | refs/heads/main | 2023-03-09T14:34:27.148340 | 2021-02-24T11:49:26 | 2021-02-24T11:49:26 | 338,845,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,711 | py | """
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
import sys # noqa: F401
from openapi_client.model_utils impor... | [
"64527153+TanzimAzadNishan@users.noreply.github.com"
] | 64527153+TanzimAzadNishan@users.noreply.github.com |
8ba3542efe1c21d14f7e692d5f0fd03380f2f97c | 4bb1a23a62bf6dc83a107d4da8daefd9b383fc99 | /contests/agc032/b.py | c8b8c5aeb0753d30b8b877cc4b14c6817e83b4a7 | [] | no_license | takushi-m/atcoder-work | 0aeea397c85173318497e08cb849efd459a9f6b6 | f6769f0be9c085bde88129a1e9205fb817bb556a | refs/heads/master | 2021-09-24T16:52:58.752112 | 2021-09-11T14:17:10 | 2021-09-11T14:17:10 | 144,509,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | # -*- coding: utf-8 -*-
from itertools import permutations
n = int(input())
res = []
for r in permutations(range(1,n+1)):
c = r[0]+r[2]
flag = True
for i in range(1,n-1):
if r[i-1]+r[i+1]!=c:
flag = False
break
if r[1]==r[n-2]==c:
pass
elif r[1]+r[n-1]==c:
... | [
"takushi-m@users.noreply.github.com"
] | takushi-m@users.noreply.github.com |
b9a24063b9bce5ff5aa13bc48e98eeb55726458b | a140fe192fd643ce556fa34bf2f84ddbdb97f091 | /.history/모듈과 패키지/내장함수_20200711173115.py | c38f61cd8193f05c0ab2b92568285151c96acb56 | [] | 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 | 150 | py | # input : 사용자 입력을 받는 함수
language = input("무슨 언어를 좋아하세요?")
print("{0}은 아주 좋은 좋은 언어입니다") | [
"sangha0719@gmail.com"
] | sangha0719@gmail.com |
7dc8bd4ab8584672a430541be313b7e69a40dc53 | 59e97ee94a024e24ca475b9c036fc960e1a2e7e4 | /itfsite/models.py | 5e01313fdff72b4a0509bcab6471abb5a25ca612 | [] | no_license | if-then-fund/if.then.fund | 0553e585945052fcc51f81c7674316541e0e1582 | 8bc2bbf0da62ee797285e925d738adb48e03cd22 | refs/heads/master | 2021-01-17T00:24:31.979000 | 2017-09-05T18:51:05 | 2017-09-05T18:53:07 | 25,827,685 | 11 | 5 | null | 2017-04-03T11:26:39 | 2014-10-27T16:14:00 | Python | UTF-8 | Python | false | false | 15,551 | py | import enum
from django.db import models, transaction
from django.contrib.contenttypes.fields import GenericForeignKey
from django.contrib.contenttypes.models import ContentType
from django.utils import timezone
from django.template import Template, Context
from django.conf import settings
from django.http import Http... | [
"jt@occams.info"
] | jt@occams.info |
b0e268051ad088f2df2f790ecafedb64cb8bf533 | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /google/cloud/oslogin/v1beta/oslogin-v1beta-py/google/cloud/oslogin_v1beta/types/__init__.py | 88e7d276b11dd4afd082e065d3155f5738b6dc58 | [
"Apache-2.0"
] | permissive | Tryweirder/googleapis-gen | 2e5daf46574c3af3d448f1177eaebe809100c346 | 45d8e9377379f9d1d4e166e80415a8c1737f284d | refs/heads/master | 2023-04-05T06:30:04.726589 | 2021-04-13T23:35:20 | 2021-04-13T23:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,118 | py | # -*- coding: utf-8 -*-
# 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 o... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
8517363ceefdfaab31040b419d1493f2f053b671 | 1c58aef845d5dc1398249d784450c3825a1a75a5 | /LeetCode/Easy/Strings/383_ransome_note.py | 38aeefec3e3d6f05551f4931a49b5b9643b88e90 | [] | no_license | AmitKulkarni23/Leet_HackerRank | b1c1d7e5915397fd971d777baf75bb0f6fd27c78 | 047b167311d2fb93a53998a20d73533a4cae2ab8 | refs/heads/master | 2021-06-01T20:24:40.659530 | 2020-02-06T22:10:14 | 2020-02-06T22:10:14 | 123,007,444 | 0 | 0 | null | 2018-07-12T18:42:40 | 2018-02-26T17:58:28 | Python | UTF-8 | Python | false | false | 1,159 | py | # Given an arbitrary ransom note string and another string containing letters from all the magazines,
# write a function that will return true if the ransom note can be constructed from the magazines ; otherwise, it will return false.
#
# Each letter in the magazine string can only be used once in your ransom note.
#
#... | [
"amitrkulkarni232@gmail.com"
] | amitrkulkarni232@gmail.com |
05af7a6876005f0fdc7f380a78ae17d751910559 | e47b0a17197fa2045d5b51e4385f85b0bdfe1e58 | /venv/bin/pip | 09e97c32100c9540940194241f7cd792d7933139 | [] | no_license | Waweru007/WEB | 29c62a4b094f1d8adf3687f9f3dd77c33c0aaae9 | 9cd0bb6ee2c5301b854adc460b6a465d984e4cfb | refs/heads/master | 2020-04-15T05:52:36.234218 | 2019-01-23T16:26:57 | 2019-01-23T16:26:57 | 164,440,120 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 398 | #!/root/PycharmProjects/ForecastWeb/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.ex... | [
"root@localhost.localdomain"
] | root@localhost.localdomain | |
8907112478d9caeabd453553b72d4e927ce3d745 | 31780af7a5558523def1aae5f25df3e0b084be9b | /Ex67.py | ffc1f975db4f03a3ed514384bdd5a1865506d385 | [] | no_license | sevilaybayatli/PYTHS19 | 1796615ff939f2e98ce657feeaa3efd47a2e66c6 | ae0607e215a0d8205475d124c0362c39881e5eda | refs/heads/master | 2020-07-23T16:12:17.922548 | 2020-03-23T22:03:00 | 2020-03-23T22:03:00 | 207,624,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,164 | py | import sys
import math
import matplotlib.pyplot as plt
##def histogram(items):
# for n in items:
# output=''
# times=n
# while times>0:
# output+='@'
# times-=1
# print(output)
#histogram([9,2,4,5,3])
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | [
"sevilaybayatli@gmail.com"
] | sevilaybayatli@gmail.com |
896ef150b0486cb58818cfdfc7767977826fb19d | 435360144d233c85ea23e50e05ee6edbfb4e4dd2 | /python网络数据采集/图像识别与文字处理/clean-image.py | 6308ecf105a1f49e07a86cb81607bf69597f5bb4 | [] | no_license | liazylee/python | 5d56e1a60b6472660c30a3e7548da873f5ee3ebd | f90b5d18ad8375b2b0c951fa68e7e0041b016cc6 | refs/heads/master | 2020-04-03T18:24:39.434080 | 2018-10-30T13:00:27 | 2018-10-30T13:00:27 | 155,482,955 | 1 | 0 | null | 2018-10-31T01:56:47 | 2018-10-31T01:56:47 | null | UTF-8 | Python | false | false | 715 | py | '''
利用 Pillow 库,我们可以创建一个 阈值过滤器来去掉渐变的背景色,只把文字留下来,从而让图片更加清晰
'''
from PIL import Image
import subprocess
def cleanFile(filePath, newFilePath):
image = Image.open(filePath)
#Set a threshold value for the image, and save
image = image.point(lambda x: 0 if x<143 else 255)
image.save(newFilePath)
#子进程调... | [
"superonesfazai@gmail.com"
] | superonesfazai@gmail.com |
85952d0e2cac31f79d9c8daae2b41a3d0e24e218 | 194313096f9b7a520a3ce21a5778b4b49b384932 | /src/idleobject.py | 0ce1c6e0e416fd8563c7e49f71c2dc5997fb01c5 | [] | no_license | atareao/imagedownloader | 4af9fe1f78c09000c844dcfebd4a8dfdd434876e | d5f6c8b5240d606626dead2bc00ad29d953f335d | refs/heads/master | 2021-01-17T06:49:29.134980 | 2016-07-08T18:46:41 | 2016-07-08T18:46:41 | 51,201,959 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,193 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# This file is part of PushBullet-Commons
#
# Copyright (C) 2014-2016
# Lorenzo Carbonell Cerezo <lorenzo.carbonell.cerezo@gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as publis... | [
"lorenzo.carbonell.cerezo@gmail.com"
] | lorenzo.carbonell.cerezo@gmail.com |
39001bd1a26f2714673d019cbd303670f8a82b2f | f03bd5bd7873c5cc33b4ef5199f219539f3a340e | /CAAPR/CAAPR_AstroMagic/PTS/pts/do/core/plotprogress.py | 30874beb519285c495bb670c954f6c5d3f02651c | [
"GPL-1.0-or-later",
"AGPL-3.0-only",
"AGPL-3.0-or-later",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-philippe-de-muyter",
"MIT"
] | permissive | Stargrazer82301/CAAPR | 5f8a7033b16792f23abd5d07021b53b9228a5db4 | 62b2339beb2eb956565e1605d44d92f934361ad7 | refs/heads/master | 2022-08-29T02:53:33.658022 | 2022-08-05T19:06:46 | 2022-08-05T19:06:46 | 49,977,601 | 8 | 1 | MIT | 2022-08-05T19:06:47 | 2016-01-19T19:32:42 | Python | UTF-8 | Python | false | false | 3,694 | py | #!/usr/bin/env python
# -*- coding: utf8 -*-
# *****************************************************************
# ** PTS -- Python Toolkit for working with SKIRT **
# ** © Astronomical Observatory, Ghent University **
# *****************************************************************
##... | [
"cjrc88@gmail.com"
] | cjrc88@gmail.com |
b6c95a0746610ebaa31ebac4b23e51316764c3eb | 1c0158145cbc7afa9b969b739f7e3507b73276a4 | /pyScript/custom_src/Flow.py | 2684fab3671245ac61bd4ee8a12676c8be6c9ed4 | [
"MIT"
] | permissive | farukdemirbas/pyScript | cc3726d0de730234d4f36ba535532b9306e3c971 | 89139615f95c86178cfdb072945942de3be405b7 | refs/heads/master | 2023-08-03T12:26:58.328450 | 2020-06-04T09:26:04 | 2020-06-04T09:26:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59,744 | py | from PySide2.QtWidgets import QGraphicsView, QGraphicsScene, QListWidgetItem, QShortcut, QMenu, QGraphicsItem, QScrollBar, QUndoStack, QUndoCommand
from PySide2.QtGui import QPainter, QPainterPath, QPen, QColor, QBrush, QRadialGradient, QKeySequence, QTabletEvent, QImage, QGuiApplication
from PySide2.QtCore import Qt, ... | [
"leon.thomm@gmx.de"
] | leon.thomm@gmx.de |
6dd21581be8808e6af84d54ea4876e29955d7868 | 97e557d328b89adbd1459f8988a12ec3a9f4adc7 | /trino/datadog_checks/trino/config_models/defaults.py | dd72d075a339c504cf5a54565c63a0a9ed0e45d6 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | DataDog/integrations-extras | 1b9c9928af4e5a146b9611aed29db206f420710c | 1d20f8d945ef802fa6e01b41b6ba99148ac508a4 | refs/heads/master | 2023-08-31T04:01:33.555722 | 2023-08-30T18:51:09 | 2023-08-30T18:51:09 | 51,574,196 | 221 | 667 | BSD-3-Clause | 2023-09-14T16:07:56 | 2016-02-12T07:55:28 | Python | UTF-8 | Python | false | false | 2,456 | py | # This file is autogenerated.
# To change this file you should edit assets/configuration/spec.yaml and then run the following commands:
# ddev -x validate config -s <INTEGRATION_NAME>
# ddev -x validate models -s <INTEGRATION_NAME>
from datadog_checks.base.utils.models.fields import get_default_field_value
d... | [
"noreply@github.com"
] | DataDog.noreply@github.com |
223af6cc25b1fbb1b1897dd9fc56907beca41a5f | 1d75146a66245dc046dc216bb602129208e00733 | /closed/Intel/code/rnnt/pytorch-cpu/pytorch/model_separable_rnnt.py | f0ef252130cdddba876ef1e6e96538b72431c578 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | georgelyuan/inference_results_v1.1 | febf287bd5967bf7f087355a81f06a2bd298cbfe | 3196a5587887c39203ee3ac246fa5dbe789d9085 | refs/heads/main | 2023-08-16T08:49:45.274284 | 2021-09-23T20:57:17 | 2021-09-23T20:57:17 | 409,773,141 | 0 | 0 | NOASSERTION | 2021-09-23T23:36:37 | 2021-09-23T23:36:37 | null | UTF-8 | Python | false | false | 7,227 | py | from typing import Optional, Tuple
import numpy as np
import torch
from rnn import rnn
from rnn import StackTime
class RNNT(torch.nn.Module):
def __init__(self, rnnt=None, num_classes=1, **kwargs):
super().__init__()
if kwargs.get("no_featurizer", False):
in_features = kwargs.get("in... | [
"tjablin@google.com"
] | tjablin@google.com |
46a7ad367d32d1f25f5e67ee022c7e9c51b182f4 | 9d0195aa83cc594a8c61f334b90375961e62d4fe | /JTTest/SL7/CMSSW_10_2_15/src/dataRunA/nano1855.py | 0852a5548985ede083bf928f46ccb8ab96b3311d | [] | no_license | rsk146/CMS | 4e49592fc64f6438051544c5de18598db36ed985 | 5f8dab8c59ae556598b9747b52b88205fffc4dbe | refs/heads/master | 2022-12-01T03:57:12.126113 | 2020-08-04T03:29:27 | 2020-08-04T03:29:27 | 284,863,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,292 | py | # Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: nanoAOD_jetToolbox_cff -s NANO --data --eventcontent NANOAOD --datatier NANOAOD --no_exec --conditions 102X_dataRun2_Sep2018Rereco_v1 --era... | [
"rsk146@scarletmail.rutgers.edu"
] | rsk146@scarletmail.rutgers.edu |
215d4e5fe25b13aa2b68168297d79b1ec68bbcc4 | 95b29e6ce83320a8e2368efd104a5db1f2af697e | /vel/openai/baselines/common/vec_env/subproc_vec_env.py | ebe55e4a848cab67dc37944e6dd69bc5c04c0a6c | [
"MIT"
] | permissive | tigerwlin/vel | 9b237c0a2ebb0fc6285db13e404c596907eb9107 | 00e4fbb7b612e888e2cbb5d8455146664638cd0b | refs/heads/master | 2020-04-17T07:06:58.759152 | 2019-04-18T01:43:57 | 2019-04-18T01:43:57 | 166,354,546 | 0 | 0 | MIT | 2019-05-01T11:17:59 | 2019-01-18T06:20:18 | Python | UTF-8 | Python | false | false | 3,363 | py | import numpy as np
from multiprocessing import Process, Pipe
from vel.openai.baselines.common.vec_env import VecEnv, CloudpickleWrapper
from vel.openai.baselines.common.tile_images import tile_images
def worker(remote, parent_remote, env_fn_wrapper):
parent_remote.close()
env = env_fn_wrapper.x()
while Tr... | [
"jerry@millionintegrals.com"
] | jerry@millionintegrals.com |
38e465b29c5974e1c2697b29528910e655c026ee | c78bc2364a22e84b8c39f8b1aeb889d2376ea669 | /tests/test_core/test_compile.py | 28a111ad89b5ae093c1811f98ef36980fc406b7f | [
"BSD-3-Clause"
] | permissive | funkelab/spimagine | ee5262f4698eee56bb8bd5640ebae24829337a1c | d7fb0aac8986421df339486e1f0d33d0ba1c820c | refs/heads/master | 2020-04-23T17:29:12.209161 | 2019-02-18T18:24:40 | 2019-02-18T18:24:40 | 171,333,799 | 0 | 0 | BSD-3-Clause | 2019-02-18T18:21:13 | 2019-02-18T18:21:11 | null | UTF-8 | Python | false | false | 182 | py | """
mweigert@mpi-cbg.de
"""
from __future__ import print_function, unicode_literals, absolute_import, division
import os
os.environ["PYOPENCL_COMPILER_OUTPUT"]="1"
import spimagine
| [
"mweigert@mpi-cbg.de"
] | mweigert@mpi-cbg.de |
6518aa95bae63d388734eea94e2bdfe15ec47178 | 9ca0c6248b3a0904d6af8ea069ff0974a3a36498 | /production_water_level.py | dff59db587958f49b5fdaa968986640f77ab35a8 | [] | no_license | CUrW-SL/ShapeFile | a85f1d9b604348ce9cf3209e1f86163131068697 | 7593d8634d7f59a088fce983bd253d550cc70fb5 | refs/heads/master | 2021-07-08T20:06:34.861316 | 2020-07-11T01:30:46 | 2020-07-11T01:30:46 | 149,579,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,366 | py | #!/usr/bin/python3
import csv
import getopt
import json
import os
import sys
import traceback
import copy
from datetime import datetime, timedelta
from os.path import join as pjoin
from curwmysqladapter import MySQLAdapter
import Constants
from LIBFLO2DWATERLEVELGRID import getWaterLevelOfChannels
from Util.LibForec... | [
"hasithadkr7@gmail.com"
] | hasithadkr7@gmail.com |
7d873ca9121b2c3bed3e471ae3fc74443792ccb3 | 0cc4eb3cb54f8394c127ace62d3108fdb5230c85 | /.spack-env/view/lib/python3.7/unittest/test/test_functiontestcase.py | 47dd2fab664747f2f99d9af248b81aae5f18cc19 | [] | no_license | jacobmerson/spack-develop-env | 5b2d76f58c0b64ae97c64f77a3c4d33a770c71c8 | 5fca20ca343b1a76f05fc635c87f94ed25417d94 | refs/heads/master | 2022-07-04T02:22:50.264727 | 2020-05-06T05:13:50 | 2020-05-06T05:13:50 | 261,657,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | /lore/mersoj/spack/spack/opt/spack/linux-rhel7-x86_64/gcc-7.3.0/python-3.7.7-oihhthdoxtgh4krvzpputn5ozwcnq2by/lib/python3.7/unittest/test/test_functiontestcase.py | [
"mersoj@rpi.edu"
] | mersoj@rpi.edu |
e59d923bae404186dae6b1d5495e1017b6bdcb90 | f484afd10f622babaa0a38197cb7fa5f4da99630 | /news/models.py | 9414cc1ae1f13e9040a4cad961d53ab91f1e34a5 | [] | permissive | brayomumo/Django-mini-project | 95bc68ddf41f47bace23a34f6bacbc60cb3ea895 | 47a9731e5f319c7225e1e1451b6fb5b20d7ff752 | refs/heads/master | 2021-10-30T10:51:42.807899 | 2021-10-24T19:05:14 | 2021-10-24T19:05:14 | 203,002,911 | 0 | 0 | MIT | 2021-09-08T01:13:45 | 2019-08-18T12:54:21 | Python | UTF-8 | Python | false | false | 1,761 | py | from django.db import models
import datetime as dt
from django.contrib.auth.models import User
from tinymce.models import HTMLField
# Create your models here.
class Editor(models.Model):
first_name = models.CharField(max_length = 30)
last_name = models.CharField(max_length = 30)
email = models.EmailField()... | [
"brayomumo5@gmail.com"
] | brayomumo5@gmail.com |
5f071a543f2c99f4a357cd5d63caef4e9a02a7fe | c1655d6c6c11dafc1c7fa9f771b8e1f99cf7f123 | /venv/lib/python3.6/site-packages/pyomo/core/base/check.py | f09834fb6a0999a7f44f8d6080960c7c6864325d | [] | no_license | igorsowa9/vpp | a27520f19a54d7490534016ded9cd66f4ef5385b | ea91e3b2db921e7b1a450d243f39dbcf61231107 | refs/heads/master | 2021-04-30T03:28:56.642244 | 2019-09-16T09:01:49 | 2019-09-16T09:01:49 | 121,514,524 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,735 | py | # ___________________________________________________________________________
#
# Pyomo: Python Optimization Modeling Objects
# Copyright 2017 National Technology and Engineering Solutions of Sandia, LLC
# Under the terms of Contract DE-NA0003525 with National Technology and
# Engineering Solutions of Sandia, LLC... | [
"iso@ubuntu.ubuntu-domain"
] | iso@ubuntu.ubuntu-domain |
199d2bf06aabfed4e29852c18c294ea926cd1786 | 78d9827b9a7d8789c2d266adebe3a05fc1ed474b | /read_file.py | 1a696994b66117ceeaf8fb60429cd1f722f9479c | [
"MIT"
] | permissive | t4d-classes/python_03012021 | 8a62331d3b742097de56d334e9de9a8f82f5ed9e | 48b970d58e2e7b08f619be21154e8ec199155a50 | refs/heads/master | 2023-03-19T06:42:52.554737 | 2021-03-04T22:08:11 | 2021-03-04T22:08:11 | 341,255,879 | 0 | 1 | null | 2021-03-03T16:36:38 | 2021-02-22T16:01:51 | Python | UTF-8 | Python | false | false | 575 | py |
# with open("colors.txt", "r") as colors_file:
# colors_file.seek(30)
# colors_data = colors_file.read(30)
# print(colors_data)
# start_line = 3
# stop_line = 6
# with open("colors.txt", "r") as colors_file:
# lines = []
# for line_count, color in enumerate(colors_file):
# if line_count... | [
"eric@t4d.io"
] | eric@t4d.io |
19dd6237396dfe491b5f242c1848a0b5e0599d84 | c3b3eb44d1f4c6a17f095d46ba12adc7eb535e22 | /src/cube2stress/protocol/client_write_helper.py | 260d37fb7f88443f26afa75af28cdb77045d27af | [] | no_license | fdChasm/cube2stress | 52512c3eb7664612ea8b462838c9924f83c9cb4d | 38b74493716595482708e931a3fbe487b930249b | refs/heads/master | 2020-03-30T06:47:19.134982 | 2013-10-12T07:36:12 | 2013-10-13T16:56:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,206 | py | from cube2common.constants import message_types, DMF, DVELF, empty_material_types, material_types
from cube2common.ivec import ivec
from cube2common.vec import vec
from cube2common.utils.clamp import clamp
from cube2common.utils.vectoyawpitch import vectoyawpitch
def lookupmaterial(feetpos):
#I don't want to impl... | [
"fd.chasm@gmail.com"
] | fd.chasm@gmail.com |
37ca6e320e30a0faf3a9f92bfbe821484272da12 | 3cf1cb73a60e0fcf9be8b70ec9f51ef4325b14c5 | /tests/providers/aws/services/cloudtrail/cloudtrail_multi_region_enabled/cloudtrail_multi_region_enabled_test.py | a05524c3284113adec7d519852ceaf5993b8e574 | [
"Apache-2.0"
] | permissive | gabrielsoltz/prowler | ab791d754fe6cd4939ead9bdcc3e109ccde95278 | 3c2096db68d171ca9f0313ffa48a6fa61d87f6f0 | refs/heads/master | 2023-05-24T23:07:20.771523 | 2023-04-25T09:59:30 | 2023-04-25T09:59:30 | 188,259,272 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,693 | py | from re import search
from unittest import mock
from boto3 import client, session
from moto import mock_cloudtrail, mock_s3
from prowler.providers.aws.lib.audit_info.models import AWS_Audit_Info
from prowler.providers.aws.services.cloudtrail.cloudtrail_service import Trail
AWS_ACCOUNT_NUMBER = "123456789012"
class... | [
"noreply@github.com"
] | gabrielsoltz.noreply@github.com |
aabdc28245a847b6a4e05ae366760caa283b0ed9 | 38bd99c72ca2521489ce1eb02b7604095b02b585 | /src/2211-CountCollisionsOnARoad.py | 23452618552f63035a2aab03ebe988c3d8207fa7 | [
"MIT"
] | permissive | Jiezhi/myleetcode | eadbd7d9f1f0ea6a0ee15c2da9040dcfbd28b522 | 4dd1e54d8d08f7e6590bc76abd08ecaacaf775e5 | refs/heads/master | 2023-03-16T15:52:21.833622 | 2023-03-09T14:33:03 | 2023-03-09T14:33:03 | 139,965,948 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,328 | py | #!/usr/bin/env python
"""
CREATED AT: 2022/3/20
Des:
https://leetcode.com/problems/count-collisions-on-a-road/
GITHUB: https://github.com/Jiezhi/myleetcode
Difficulty: Medium
Tag: Weekly Contest 285
See:
"""
class Solution:
def countCollisions2(self, s: str) -> int:
"""
See https://leetcode-... | [
"Jiezhi@users.noreply.github.com"
] | Jiezhi@users.noreply.github.com |
76da260cb85dac15d43e6462305ec7633cbaf61f | f37d4992d322e703b31c42dbc2a5b5d52cedb80a | /Ship-detector/ship_model.py | 36e04955e6a08af51a2db9ec297f25c493269a76 | [] | no_license | Jimut123/SATELLITE | a9eff4ebcf2890576a857fcb1c5b086e43831c75 | 97d948b823b701831b3e6cf78f0b23274046db9f | refs/heads/master | 2023-04-06T17:47:23.038610 | 2021-04-24T14:37:55 | 2021-04-24T14:37:55 | 281,049,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,190 | py | import json, sys, random
import numpy as np
from keras.models import Sequential
from keras.layers import Dense, Flatten, Activation
from keras.layers import Dropout
from keras.layers.convolutional import Conv2D, MaxPooling2D
from keras.utils.np_utils import to_categorical
from keras.utils import np_utils
from keras.op... | [
"jimutbahanpal@yahoo.com"
] | jimutbahanpal@yahoo.com |
b95eda2bd4c2c59b60b57777ab4b0838c5f4d8ea | 52b89b3a75fe9f9f7bdc86398fd78c77e1fc6a4b | /engine/trainer.py | d22b75b9fd6154f930ab8616c6b34d4ecc8a3f1b | [] | no_license | boxiangliu/cpi_contact | dada4f7ecb664eb9480261bd0d1ae65e048dbbd1 | 930c40de9c3c3f43c6e55a637b3eca5532d371e5 | refs/heads/main | 2023-07-18T09:20:23.661900 | 2021-09-08T18:36:35 | 2021-09-08T18:36:35 | 360,314,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,792 | py | import yaml
from easydict import EasyDict as edict
import pickle
import numpy as np
import os
import sys
import torch
from torch.autograd import Variable
import torch.nn as nn
sys.path.append(os.path.dirname(os.path.abspath(__file__)) + "/../")
sys.path.append(os.getcwd() + "/model/")
from model import MSANet, MONN
imp... | [
"jollier.liu@gmail.com"
] | jollier.liu@gmail.com |
6c68ddaba2e5984f4c18ded79956dfd03edfea34 | 266947fd84eed629ed0c21f6d91134239512afd9 | /BeginnerContest_B/029.py | 94cce86a31db05424621737f3905347e8a3c6ed7 | [] | no_license | SkiMsyk/AtCoder | c86adeec4fa470ec14c1be7400c9fc8b3fb301cd | 8102b99cf0fb6d7fa304edb942d21cf7016cba7d | refs/heads/master | 2022-09-03T01:23:10.748038 | 2022-08-15T01:19:55 | 2022-08-15T01:19:55 | 239,656,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | res = 0
for _ in range(12):
s = input()
if s.__contains__('r'):
res += 1
print(res)
| [
"sakaimasayuki@sakaimasayukinoMacBook-puro.local"
] | sakaimasayuki@sakaimasayukinoMacBook-puro.local |
b560cc41d956fc94b579f1df47d17c8cc742c9d5 | 5f9243fc8282cdc15e0aba8c3bb4e4a9ae55d88d | /lib/apikey/ncloud_apikey/properties_parser.py | a25dae3a68d20aa8211f1dd2820a962e6ad894e6 | [
"MIT"
] | permissive | KidongSohn/ncloud-sdk-py | ab7c743e4628d9498bda79e74bd87a7a4ba11a0d | 1c62471a9bd320d77164ed3193a0ebb9f64229ff | refs/heads/master | 2020-03-21T21:46:49.895974 | 2018-06-29T03:39:04 | 2018-06-29T03:39:04 | 139,083,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | # coding: utf-8
class PropertiesParser(object):
def parse(self, filepath):
with open(filepath, 'r') as f:
lines = f.readlines()
prop_list = []
for line in lines:
if line == '' or len(line) < 3 or line[0] == "#" :
continue
... | [
"kidong.sohn@navercorp.com"
] | kidong.sohn@navercorp.com |
c39faacad300340acf5afbc1dc9638d135b33ac7 | aa5e9defea373d64d75336fc6c5a03124e24abbd | /mwel/xml2mwel | a38bc73f0f316136adbc60e91e01f311502a0660 | [
"MIT"
] | permissive | esayui/mworks | e8ae5d8b07d36d5bbdec533a932d29641f000eb9 | 0522e5afc1e30fdbf1e67cedd196ee50f7924499 | refs/heads/master | 2022-02-18T03:47:49.858282 | 2019-09-04T16:42:52 | 2019-09-05T13:55:06 | 208,943,825 | 0 | 0 | MIT | 2019-09-17T02:43:38 | 2019-09-17T02:43:38 | null | UTF-8 | Python | false | false | 167 | #!/usr/bin/python
from __future__ import division, print_function, unicode_literals
import sys
import mwel
if __name__ == '__main__':
sys.exit(mwel.fromxml())
| [
"cstawarz@mit.edu"
] | cstawarz@mit.edu | |
e8ea04934ba2fd9e709df7aacea5088ce1de1a5f | 4111ca5a73a22174f189361bef654c3f91c3b7ed | /Lintcode/Ladder_37_BB/medium/831. 3Sum II.py | a2a340f0781320c786d23c4fbcaf343c3acbd7e9 | [
"MIT"
] | permissive | ctc316/algorithm-python | 58b541b654509ecf4e9eb8deebfcbdf785699cc4 | ac4580d55e05e93e407c6156c9bb801808027d60 | refs/heads/master | 2020-03-16T06:09:50.130146 | 2019-08-02T02:50:49 | 2019-08-02T02:50:49 | 132,548,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | class Solution:
"""
@param n: an integer
@return: the number of solutions
"""
def threeSum2(self, n):
res = 0
for z in range(0, int(n ** 0.5) + 1):
x, y = 0, z
target = n - z ** 2
while x <= y:
summ = x ** 2 + y ** 2
... | [
"mike.tc.chen101@gmail.com"
] | mike.tc.chen101@gmail.com |
d676d645eb1adbaf3bf29bfaeda688d91a7d5206 | 50de54517ef5e157b43598e412c477fd66890a3e | /Assignment 01/Problem 16.py | 217e6ac4a6272a81683f430b2354c5f51928e3ef | [] | no_license | Shihabsarker93/BRACU-CSE111 | f530be247bebaaee9cc5e85948dc070adae0c6ae | 17c95c76f84abffe9d9bdcb5861fbacbc510b5a6 | refs/heads/main | 2023-08-13T15:33:57.331850 | 2021-10-07T10:56:09 | 2021-10-07T10:56:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 712 | py | def count_dict(string):
"""
Given a string, this function returns a dictionary containing
the characters of the string as "key" and how many times the
character repeated itself as a value.
"""
dictionary = {}
for char in string:
if char == " ":
continue
dictionar... | [
"mirzamahrabhossain@gmail.com"
] | mirzamahrabhossain@gmail.com |
a50740f0b46094ea02a198d3e53ffeca7ee7bd49 | 94ff68c2bf2a231584e8434a9d4363c56ea3af46 | /apps/goods/filter.py | 578d28d583582dc3f217f989340e04fa74f5301c | [] | no_license | Asunqingwen/MxShop | c95eae8d36273148220cfe31796e560a43b99c31 | eb4730f7c6921aa2a9099f210c7c914d8adfc3aa | refs/heads/master | 2022-12-23T19:22:13.226669 | 2019-12-13T08:03:32 | 2019-12-13T08:03:32 | 226,297,474 | 0 | 0 | null | 2022-12-08T03:19:38 | 2019-12-06T09:54:43 | JavaScript | UTF-8 | Python | false | false | 1,406 | py | # -*- coding: utf-8 -*-
# @Time : 2019/12/5 0005 16:09
# @Author : 没有蜡笔的小新
# @E-mail : sqw123az@sina.com
# @FileName: filter.py
# @Software: PyCharm
# @Blog :https://blog.csdn.net/Asunqingwen
# @GitHub :https://github.com/Asunqingwen
# @WebSite : labixiaoxin.me
from django.db.models import Q
from django_filter... | [
"sqw123az@sina.com"
] | sqw123az@sina.com |
7e64c40255aea30895b1a4ba08e789acc97b8949 | ad4952035a8ea3116a18c346d5d8cbfa26fb8e98 | /PalindromePartitioning.py | 823396b73c932b11a64f0eb3fef963e7683f5dd0 | [] | no_license | AbhiniveshP/Backtracking-2 | 48908072a8f186dfb0bc77d7107e8229172d6a67 | 8ad2faaa93d100a47a37e3d453626acdadf4febe | refs/heads/master | 2021-03-14T06:44:12.538985 | 2020-03-13T11:29:31 | 2020-03-13T11:29:31 | 246,747,056 | 0 | 0 | null | 2020-03-12T04:56:15 | 2020-03-12T04:56:14 | null | UTF-8 | Python | false | false | 1,954 | py | '''
Solution
1. Using Backtracking, we check whether the substring considered is palindrome or not.
2. If palindrome, we check the remaining possible substrings
3. If not palindrome, we backtrack to the previous state and check for other possible substrings from that state.
Time Complexity: O(n * 2^n)
Space Comp... | [
"pabhinivesh@gmail.com"
] | pabhinivesh@gmail.com |
a05788207b0351d1b7a36360cd29cc39e8273709 | 0ca0dfcdbd6e07280f401aa447d659cc04233398 | /db_migrate.py | 044f0247f9cfac4c523bcfbe9b55be7dada94a93 | [] | no_license | pace-noge/apt-assessment | 775530ca50bb95f3a34892477b0e8e794be9be98 | 113a0d645a69e3c66d7efd1e21e023b19751af38 | refs/heads/master | 2021-01-09T20:41:22.144393 | 2016-07-21T10:56:38 | 2016-07-21T10:56:38 | 63,752,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 857 | py | import imp
from app import db
from migrate.versioning import api
from config import SQLALCHEMY_DATABASE_URI
from config import SQLALCHEMY_MIGRATE_REPO
v = api.db_version(SQLALCHEMY_DATABASE_URI, SQLALCHEMY_MIGRATE_REPO)
migration = SQLALCHEMY_MIGRATE_REPO + ('/versions/%03d_migration.py' % (v+1))
tmp_module = imp.new... | [
"nasa.freaks@gmail.com"
] | nasa.freaks@gmail.com |
03ef89e2525d97d86133e194f46b15b129dd712f | 316c45c7900c2440d4c72ec96c3e41358611585e | /test/CSVSL/MVATrainer_PseudoVertexNoSoftLepton_B_C_cfg.py | bc48465f474314f4c2c4a3c0f35adc4168805bf7 | [] | no_license | cms-btv-pog/RecoBTau-JetTagMVALearning | 49c52529774762c44a6eb8a9f6e130c4c0f01df3 | 691937f31d7c2f1865c555623ab4027362235d6e | refs/heads/master | 2020-12-24T13:20:49.115617 | 2015-10-07T08:39:14 | 2015-10-07T08:39:14 | 12,036,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,451 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("IPTrainer")
process.source = cms.Source("EmptySource")
process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(1))
process.load("FWCore.MessageLogger.MessageLogger_cfi")
process.combinedSVTrainer = cms.EDAnalyzer("JetTagMVATreeTrainer",
us... | [
"pvmulder@cern.ch"
] | pvmulder@cern.ch |
fbf7cb2946644bc35830453506338793505f355e | 453d0e25a142c6ab26e5d1ac02e245b3b572ea91 | /machin/frame/algorithms/trpo.py | 5e84094d37f701b0deb13435482076542585c7a6 | [
"MIT"
] | permissive | felicitylyzhang/machin | d92fee12481eb98ebd8ca8f257e70e5a07587187 | faf7c72f9cb88d028519e5af38ea8f8f3e886c88 | refs/heads/master | 2023-06-05T03:07:35.142652 | 2021-06-23T03:12:14 | 2021-06-23T03:12:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,386 | py | from .a2c import *
from .utils import safe_return
from machin.utils.logging import default_logger
# Implementation Reference: https://github.com/Khrylx/PyTorch-RL
# Implementation Reference: https://github.com/openai/spinningup
class TRPO(A2C):
"""
TRPO framework.
See `Trust Region Policy Optimization <h... | [
"hanhanmumuqq@163.com"
] | hanhanmumuqq@163.com |
b163cc7eb9a6f0762cd988763d79bf757e4f7f35 | 644c10493df293ba492133140ca6b6153802c75b | /{{cookiecutter.project_slug}}/{{cookiecutter.main_app}}/migrations/0001_initial.py | 50dd6e4583cac35236265bdbc4b2a8a3c65b9076 | [
"BSD-3-Clause"
] | permissive | huogerac/cookiecutter-djangofloppyforms | cc27aec961a3d339d390dba6deb791676650aab4 | 0a2c1d7fe506a5df13aaefde0f716373dbb8194e | refs/heads/main | 2023-04-30T21:34:14.822736 | 2021-05-15T18:20:10 | 2021-05-15T18:20:10 | 334,623,255 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | # Generated by Django 3.1.5 on 2021-01-26 18:01
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='{{ cookiecutter.main_model }}',
fields=[
('... | [
"huogerac@gmail.com"
] | huogerac@gmail.com |
5e88ca3857afb692a59c3fe77b58248c23b0726a | 6ae5affdffdf5f18161c90e400623a823976330d | /codejam/R1C2020/b.py | 5fb0bb6da5c871ec28f36f116957b6f4e1818618 | [] | no_license | organization-lab/codejam | 01b7544600f421f8878dcc8ca275d521d4db5984 | 92e2b1cc25e1dd31a9cddf3ebb34c0e4e0c38568 | refs/heads/master | 2022-08-21T12:28:03.557676 | 2022-08-18T02:21:46 | 2022-08-18T02:21:46 | 121,612,804 | 0 | 2 | null | 2022-08-18T02:21:47 | 2018-02-15T09:48:39 | Python | UTF-8 | Python | false | false | 647 | py | # author: mofhu@github
ncase = int(input())
for case in range(1, ncase+1):
u = int(input())
s = {}
z0 = {}
for i in range(10000):
qi, si = input().split(' ')
if si[0] not in s:
s[si[0]] = 1
else:
s[si[0]] += 1
if len(z0) < 10:
if si[-... | [
"mofrankhu@gmail.com"
] | mofrankhu@gmail.com |
7ccd37964a1cd6c0813afc434697d4c7f77c866c | 55ab64b67d8abc02907eb43a54ff6c326ded6b72 | /scripts/startup/tila_OP_ToggleOverlay.py | d3d02affd772876cd82f8dc6e49843aec7341875 | [
"MIT"
] | permissive | Tilapiatsu/blender-custom_config | 2f03b0bb234c3b098d2830732296d199c91147d0 | 00e14fc190ebff66cf50ff911f25cf5ad3529f8f | refs/heads/master | 2023-08-16T14:26:39.990840 | 2023-08-16T01:32:41 | 2023-08-16T01:32:41 | 161,249,779 | 6 | 2 | MIT | 2023-04-12T05:33:59 | 2018-12-10T23:25:14 | Python | UTF-8 | Python | false | false | 2,687 | py | import bpy
bl_info = {
"name": "Tila : Toggle Overlay",
"author": "Tilapiatsu",
"version": (1, 0, 0, 0),
"blender": (2, 80, 0),
"location": "View3D",
"category": "View3D",
}
class TILA_ToggleOverlay(bpy.types.Operator):
bl_idname = "view3d.toggle_overlay"
bl_label = "TILA: Toggle over... | [
"tilapiatsu@hotmail.fr"
] | tilapiatsu@hotmail.fr |
377290350c8709f3863a64ab8d860ca274944ee4 | 1d0bb94bc33b80b96f47f4b8ff204a6711af7eac | /app.py | 8c33fb7173b9c81cd464c8d6782ef69326458ad7 | [] | no_license | mfwarren/kpi | 9ff78de66b240ea41b1b560ea00ef76d1b6a681d | 239272e06b616873413f4942424c28dc8e7fd4b3 | refs/heads/master | 2016-09-05T18:58:57.040531 | 2015-05-08T13:37:27 | 2015-05-08T13:37:27 | 34,973,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,553 | py | #!/usr/bin/env python
from gevent import monkey
monkey.patch_all()
import time
import os
import datetime
import pytz
from threading import Thread
import dateutil.parser
from refreshbooks import api as freshbooks_api
from github import Github
import requests
from flask import Flask, render_template
from flask.ext.so... | [
"matt.warren@gmail.com"
] | matt.warren@gmail.com |
11de6c893af7b3b2e87c793fc57f5b71eeb79bf3 | 65bf0113da75390c4cf3960b6a409aca15569a06 | /orders/models.py | ba438c4bcc8db09fb277ffc7b398d222c68cb9a4 | [] | no_license | wenpengfan/opsadmin | e7701538265253653adb1c8ce490e0ce71d3b4f6 | 3d997259353dc2734ad153c137a91f3530e0a8ec | refs/heads/master | 2023-03-29T11:50:10.756596 | 2020-11-16T02:41:18 | 2020-11-16T02:41:18 | 313,171,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,142 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from appconf.models import Database, Project, AppOwner
# Create your models here.
class Require(models.Model):
title = models.CharField(max_length=255, verbose_name=u"标题", null=True, blank=False)
... | [
"you@example.com"
] | you@example.com |
46f246599c2d98d4fc3accaaaca6b5bb5e65db56 | 957187f350bc0f74ccb99d7b652ee705dd746cea | /app_botiquin/migrations/0002_auto_20150801_2326.py | 4a62f821016102d781b46c7ab7589d090b015d47 | [] | no_license | dbsiavichay/botiquinmagap | 8188aa9905300c96ca94c2bc658f58141ea38aef | 5cc0eda2e89fae90ce6ab7217141b53919aed5b4 | refs/heads/master | 2021-01-01T18:48:32.406184 | 2015-08-04T23:46:48 | 2015-08-04T23:46:48 | 32,053,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 968 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('app_botiquin', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name='grupoproducto',
... | [
"dbsiavichay@gmail.com"
] | dbsiavichay@gmail.com |
26759fdbcc261d053631ee8955293a036b3a9a3b | 9d5d057e4077b77980093a22d39af1cdea1040a0 | /python/paddle/fluid/core.py | b904f07b0a7e5eb76d5f66c012be14b22565e0e5 | [
"Apache-2.0"
] | permissive | heavengate/Paddle | 16b8d046e9cba818ba36394bec496180b5cd5938 | f9c801ffa6ac0a8a1a271c09b915d8603aba41ff | refs/heads/develop | 2023-05-23T06:15:22.855477 | 2023-02-08T08:31:23 | 2023-02-08T08:31:23 | 150,394,550 | 1 | 3 | Apache-2.0 | 2022-04-01T13:19:14 | 2018-09-26T08:33:49 | Python | UTF-8 | Python | false | false | 18,876 | py | # Copyright (c) 2019 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 appli... | [
"noreply@github.com"
] | heavengate.noreply@github.com |
42ba1e3c015f20441c374256ce07cf703eadaaad | 9814fc360414ed900573181485966f63a56b261d | /setup.py | 965ede863e91d9a8138bf2f09c34795175da88de | [
"MIT"
] | permissive | krallin/captain-comeback | 7d38425ec8f3b51626418f6dc6a6abfa8fa7cda3 | e02e3774eab62d7b8ba454331a785e2ae32c89fc | refs/heads/master | 2023-09-03T19:52:22.155417 | 2016-07-07T14:42:34 | 2016-07-07T16:17:02 | 62,813,918 | 0 | 1 | null | 2016-07-07T14:37:49 | 2016-07-07T14:37:48 | null | UTF-8 | Python | false | false | 1,668 | py | #!/usr/bin/env python
# coding: utf-8
import os
from setuptools import setup
HERE = os.path.dirname(__file__)
with open(os.path.join(HERE, 'README.md')) as readme_file:
readme = readme_file.read()
with open(os.path.join(HERE, 'CHANGELOG.md')) as history_file:
changelog = history_file.read()
requirements = [... | [
"thomas@orozco.fr"
] | thomas@orozco.fr |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.