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
0ae53c0486a272162874ca46f41ecb302e6654f0
a9d65a3fb6e990c5bb250cfde44220182f6cd430
/indra/tools/analyze_ontology.py
2f8bda343d488ebd0f277e9aedab4e858bfe2742
[ "BSD-2-Clause", "BSD-2-Clause-Views" ]
permissive
dianakolusheva/indra
66e6c69b762922d4f79757e388b693f76b3fcd56
205a719c5b1ff2333e415476b4136e8c57c22949
refs/heads/master
2022-03-14T23:10:57.718762
2022-02-11T14:58:12
2022-02-11T14:58:12
170,338,649
0
0
BSD-2-Clause
2019-02-12T15:09:36
2019-02-12T15:09:30
Python
UTF-8
Python
false
false
1,402
py
from collections import Counter, defaultdict import networkx from indra.ontology.bio import bio_ontology def plot_problem(problem): import matplotlib.pyplot as plt plt.ion() plt.figure() G = bio_ontology.subgraph(problem) pos = networkx.spring_layout(G) networkx.draw_networkx(G, pos, node_colo...
[ "ben.gyori@gmail.com" ]
ben.gyori@gmail.com
2e92fd124092bb606c4af2b949bf986b8f0f39e0
33c6b5d9f1852ac878aada3eb646ac2eabc6b705
/junk/users2/signals.py
490388c9433b9bb4b0c0de06090ea7a91ecbb2b2
[]
no_license
detalikota/trading2
3c0e4308f45a620fe4c034403143cf68dd16db9c
1aaafb6bf7d304be1896efb5ea0963fc40893b23
refs/heads/master
2023-02-04T14:03:10.860410
2020-12-17T14:28:12
2020-12-17T14:28:12
313,858,784
0
0
null
null
null
null
UTF-8
Python
false
false
486
py
from django.db.models.signals import post_save from django.contrib.auth.models import User from django.dispatch import receiver from .models import Profile2 @receiver(post_save, sender=User) #when the user is saved - send this signal def create_profile(sender, instance, created, **kwargs): if created: Pr...
[ "detalikota@gmail.com" ]
detalikota@gmail.com
0b34b5732a18165fbcd70164b4c2648ea5eaeeb0
661b6c3d0d2344f86ed126d9b4f6f10c0d9c630b
/track/admin.py
1d2bcc9fdd717c1e4f90db9346add4da60c66ec6
[]
no_license
Sababa123/activity_tracker
69eae58dbbf7523dcc144d3f05f6952cc4e4225b
7c5e2c83e5fc76f8c9a2c5f58569ed92c9eb4421
refs/heads/master
2020-06-25T17:43:14.321638
2019-08-11T21:45:16
2019-08-11T21:45:16
199,380,581
0
0
null
2019-07-29T04:53:25
2019-07-29T04:53:24
null
UTF-8
Python
false
false
175
py
from django.contrib import admin from .models import Activity, ActivityTracker # Register your models here. admin.site.register(Activity) admin.site.register(ActivityTracker)
[ "tahirs95@hotmail.com" ]
tahirs95@hotmail.com
7b15c3a5d2060f2149607d1ee7ea040fb35c2eb7
913fb9ec1e709a5140676ba7b2371b1976afca72
/seqPeaks/mirrorPeaks.py
db673bb1b55f332087c53b7b17d7dc5e614e6de3
[]
no_license
cgreer/ResearchScripts
171cfe9555ea06fdeb91084c12d07d1b45a2335c
1107803bb1459d6b6e1dfb1a89679d2b6fd49062
refs/heads/master
2016-09-05T10:43:19.090247
2012-04-12T21:38:11
2012-04-12T21:38:11
1,673,080
0
3
null
null
null
null
UTF-8
Python
false
false
840
py
import cgPeaks import compareData as compare import math import bioLibCG as cg knowns = compare.tccFileToList('mouseKnownMirs.tcc', 0) eLevels = [] for known in knowns: chrom, strand, start, end = cg.tccSplit(known, True) #text... if strand == '1': strand = '-1' else: strand = '1' oppTcc = cg.makeTcc(chrom,...
[ "chrisgreer88@gmail.com" ]
chrisgreer88@gmail.com
113f2aeb9ba582a085e977d64df0240587c81645
5c5e7b03c3373e6217665842f542ca89491290ff
/2016/day18.py
b5a92f12f811a0ccb9b0c88bae32c9802f1ce21c
[]
no_license
incnone/AdventOfCode
9c35214e338e176b6252e52a25a0141a01e290c8
29eac5d42403141fccef3c3ddbb986e01c89a593
refs/heads/master
2022-12-21T21:54:02.058024
2022-12-15T17:33:58
2022-12-15T17:33:58
229,338,789
0
0
null
null
null
null
UTF-8
Python
false
false
970
py
from getinput import get_input def parse_input(s): return [True if c == '^' else False for c in s] def next_trap_row(s): next_row = [s[1]] next_row += [(s1 and not s2) or (not s1 and s2) for s1, s2 in zip(s, s[2:])] next_row += [s[-2]] return next_row def generate_traps(init_row, num_rows): ...
[ "incohatus.none+git@gmail.com" ]
incohatus.none+git@gmail.com
f1da8fb43bb78b4f502b576a1f67c671e6e1abed
1a4bc1a11fdb3f714f22f5e0e826b47aa0569de2
/lab/lab04/tests/q1_3.py
79768f8de727ed291ba49dffc59b456e772584a8
[]
no_license
taylorgibson/ma4110-fa21
201af7a044fd7d99140c68c48817306c18479610
a306e1b6e7516def7de968781f6c8c21deebeaf5
refs/heads/main
2023-09-05T21:31:44.259079
2021-11-18T17:42:15
2021-11-18T17:42:15
395,439,687
0
1
null
null
null
null
UTF-8
Python
false
false
227
py
test = { 'name': 'q1_3', 'points': None, 'suites': [{'cases': [{'code': ">>> disemvowel('datasceince')\n'dtscnc'", 'hidden': False, 'locked': False}], 'scored': True, 'setup': '', 'teardown': '', 'type': 'doctest'}]}
[ "taylorgibson@gmail.com" ]
taylorgibson@gmail.com
44c7ea4c09cf76c997f45dc2c463741f3ba3af03
5f6425e9d83b57b864e48f227e1dc58356a555c0
/utils/palettes/personalized/piotr_kozlowski.py
8f12ab59b92e28ce4bf7bd066c55b145ec16a2f9
[ "MIT" ]
permissive
jan-warchol/selenized
b374fa7822f281b16aa8b52e34bd1e585db75904
df1c7f1f94f22e2c717f8224158f6f4097c5ecbe
refs/heads/master
2023-06-22T09:37:02.962677
2022-09-12T20:24:40
2022-09-12T20:24:40
45,570,283
663
58
MIT
2023-04-18T09:33:22
2015-11-04T22:00:52
Emacs Lisp
UTF-8
Python
false
false
217
py
import selenized_base name = 'Piotr Kozlowski' palette = selenized_base.generate_palette( background=(97, 0, 8), foreground=(25, -6, -6), saturation=1.4, accent_offset=5, accent_l_spread=30, )
[ "jan.warchol@gmail.com" ]
jan.warchol@gmail.com
45297b843b717fd571b9a542906a15e1a9b43bb3
8b3ca44ee3d990233e74655b7131d616094f70c2
/experiments/sparsity/methylation_gm/gaussian_truncatednormal_hierarchical.py
427b535bd7e7c6d03bb77c738acc2c5ee7ee563c
[]
no_license
zshwuhan/BMF_Priors
8b8c54271285a72d2085a56a9475c0756f375e67
6a600da1c41f1ccde2f2ba99298b40e68fb9910a
refs/heads/master
2021-05-13T19:10:07.203215
2017-12-01T13:30:21
2017-12-01T13:30:21
116,883,181
1
0
null
2018-01-09T23:36:13
2018-01-09T23:36:13
null
UTF-8
Python
false
false
1,480
py
''' Measure sparsity experiment on the methylation GM dataset, with the Gaussian + Truncated Normal + hierarchical model. ''' project_location = "/Users/thomasbrouwer/Documents/Projects/libraries/" import sys sys.path.append(project_location) from BMF_Priors.code.models.bmf_gaussian_truncatednormal_hierarchical impo...
[ "tab43@cam.ac.uk" ]
tab43@cam.ac.uk
77eae7de5545c636d596feec9e0fe110b7b5700a
bc441bb06b8948288f110af63feda4e798f30225
/architecture_view_sdk/model/flowable_service/bpmn_end_event_pb2.py
3c2b2fa877b300c5b615c5a2704c5007ff77e7ce
[ "Apache-2.0" ]
permissive
easyopsapis/easyops-api-python
23204f8846a332c30f5f3ff627bf220940137b6b
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
refs/heads/master
2020-06-26T23:38:27.308803
2020-06-16T07:25:41
2020-06-16T07:25:41
199,773,131
5
0
null
null
null
null
UTF-8
Python
false
true
3,097
py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: bpmn_end_event.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.proto...
[ "service@easyops.cn" ]
service@easyops.cn
03bca080a7ade2f5c8e31f19c07701b55b95c6aa
8f7c595f2b9d075a89417760b7fbf9abb1fecb72
/tele_twitter.py
8b5573134e70b914312a9c197b1313e688781062
[ "MIT" ]
permissive
MainakMaitra/trading-utils
555ed240a20b26d4876f1490fc8a2d9273231fc5
3e73091b4d3432e74c385a9677b7f7ca4192c67f
refs/heads/main
2023-07-04T09:19:40.122188
2021-08-08T09:01:37
2021-08-08T09:01:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,825
py
""" Twitter -> Telegram """ import logging import os import time from argparse import ArgumentParser from peewee import * from common import uuid_gen from common.environment import GROUP_CHAT_ID from common.logger import init_logging from common.tele_notifier import send_message_to_telegram from common.twitter_api im...
[ "575441+namuan@users.noreply.github.com" ]
575441+namuan@users.noreply.github.com
3bcd4da0f4a0652b9ceae41db83ea03b41ab9201
99bfa15723593ea351191d82fac80e36ab25aab1
/LeetCode/merge_interval.py
602b47cb4dc68d07416d23bb801d695654ec3578
[]
no_license
Kartavya-verma/Python-Projects
f23739ef29eab67a8e25569e3f7bf110e42576cb
02ffe926a7ed82bc783e4c4034a2fa53d4d1a870
refs/heads/master
2023-06-22T07:59:39.595084
2021-07-18T15:51:55
2021-07-18T15:51:55
387,139,965
0
0
null
null
null
null
UTF-8
Python
false
false
504
py
# interval = [[1,3],[2,6],[8,10],[15,18]] interval = [[1,4],[4,5]] n = interval.copy() print(n) res = [] v = [] for i in range(len(n)-1): for j in range(len(n)): print(n[i][1], n[i+1][0]) if n[i][1] > n[i+1][0]: # print(n[i][1], n[i+1][0]) n[i].pop() n[i].append(n...
[ "vermakartavya2000@gmail.com" ]
vermakartavya2000@gmail.com
4df3ceca1f9d06815d43914cad8c76bf3d206085
cd78d84441e69c1fc40b6a6e9e235e7cf6882454
/python/48.rotate_image.py
75ea51649a271ec6a48d11d85c9fa7c4a00e2bc0
[]
no_license
buy/leetcode
53a12d4e0298284a5a2034c88353d0dc195aa66c
da0e834e3f2e3016396fffc96ef943ab9ec58ea4
refs/heads/master
2021-01-13T01:48:01.176632
2015-06-14T06:17:17
2015-06-14T06:17:17
31,863,627
1
1
null
null
null
null
UTF-8
Python
false
false
821
py
# You are given an n x n 2D matrix representing an image. # Rotate the image by 90 degrees (clockwise). # Follow up: # Could you do this in-place? # /* # * clockwise rotate # * first reverse up to down, then swap the symmetry # * 1 2 3 7 8 9 7 4 1 # * 4 5 6 => 4 5 6 => 8 5 2 # * 7 8 9 1 2 3 9...
[ "cliu@groupon.com" ]
cliu@groupon.com
2a7ecd17534e9ce6ebfd36b4b2168cfe3d21c7a2
03d1982e2d594f13567afb37f2a5cea2f0d631b6
/setup.py
cde1cd7244e468fc53e94c6fb1355245c8ab6099
[ "Apache-2.0" ]
permissive
maartendraijer/django-fluent-dashboard
e26f29d434528d3b11360549c6452812176e4ecb
8a00fa810f001d1a778eada88b8a390f495f9994
refs/heads/master
2020-04-03T04:22:38.353890
2012-09-26T19:55:18
2012-09-26T19:58:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,478
py
#!/usr/bin/env python from setuptools import setup, find_packages from os.path import dirname, join import sys, os # When creating the sdist, make sure the django.mo file also exists: try: os.chdir('fluent_dashboard') from django.core.management.commands.compilemessages import compile_messages compile_mess...
[ "vdboor@edoburu.nl" ]
vdboor@edoburu.nl
65bb65eef08655b1bc9f00fecef269efb447b5c5
8e115fc8273fd7123438fa8cb85cd7b7992246f5
/App_Login/migrations/0003_follow.py
1e2b7e845c904aeaa10db6c63664e1517b698f1c
[]
no_license
tasim313/Social_Media_django_project
35160f83fa278acd616f9f952ac5acd3ec6430e6
78cf24305a32dfe937d7fcb031ed2f78649a4775
refs/heads/main
2023-06-16T00:45:39.025388
2021-07-11T06:38:38
2021-07-11T06:38:38
384,453,963
1
0
null
null
null
null
UTF-8
Python
false
false
962
py
# Generated by Django 2.2.5 on 2021-07-07 13:52 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('App_Login', '0002_auto_2...
[ "mostasimmahmudtasim@gmail.com" ]
mostasimmahmudtasim@gmail.com
c321533388cef074c4a7501847d5ddca0b9ae10e
fcc88521f63a3c22c81a9242ae3b203f2ea888fd
/Python3/0838-Push-Dominoes/soln-1.py
b7c9ed30d6e1a5c6ea1654056f23001653264cab
[ "MIT" ]
permissive
wyaadarsh/LeetCode-Solutions
b5963e3427aa547d485d3a2cb24e6cedc72804fd
3719f5cb059eefd66b83eb8ae990652f4b7fd124
refs/heads/master
2022-12-06T15:50:37.930987
2020-08-30T15:49:27
2020-08-30T15:49:27
291,811,790
0
1
MIT
2020-08-31T19:57:35
2020-08-31T19:57:34
null
UTF-8
Python
false
false
1,479
py
class Solution: def pushDominoes(self, dominoes: str) -> str: leftRs = [] left_R = None n = len(dominoes) ans = [None] * n for i, d in enumerate(dominoes): if d == 'R': left_R = 0 ans[i] = 'R' elif d == 'L': ...
[ "zhang623@wisc.edu" ]
zhang623@wisc.edu
76c8f94b2f1120d880d69b6121372442259a80bc
a08409f712dc0b1045f695fd2ffee2bb6cc7835b
/math/0x02-calculus/17-integrate.py~
07a15858a238dab1c6d0b0de4984d551527088f4
[]
no_license
mohsenabedelaal/holbertonschool-machine_learning
d3f2137761e10d620472ca6e5f3288c45898381d
2765a09ba3064168b024952d18b1a2471952c8a2
refs/heads/main
2023-06-02T16:11:55.600921
2021-06-10T19:08:13
2021-06-10T19:08:13
318,244,087
0
1
null
null
null
null
UTF-8
Python
false
false
754
#!/usr/bin/env python3 """derivative poly""" def poly_integral(poly, C=0): """Module for integral""" if not isinstance(poly, list): return None if len(poly) == 0: return None if len(poly) == 1: return [0] if len(poly) == 2: return [poly(1)] else: integra...
[ "mohsen.abedelaal@gmail.com" ]
mohsen.abedelaal@gmail.com
6562ceefb580fe6394f1e927b79291c2063a56c7
5692e8a3357f7afe6284b43c4a9770d81957a511
/student/migrations/0015_auto_20201119_1605.py
8fc7c2324f4ec87bd9f70cdb6eabaa98d7202789
[]
no_license
OmarFateh/student-management-system
49bcfbdf15a631cf7f64ff200d530a44a44409ac
2c53f81a55fe631406b642365a68de19501c0f17
refs/heads/master
2023-07-16T00:02:54.796428
2021-08-25T01:54:02
2021-08-25T01:54:02
355,033,774
0
0
null
null
null
null
UTF-8
Python
false
false
440
py
# Generated by Django 3.1.2 on 2020-11-19 14:05 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('student', '0014_sessionyear_date_range'), ] operations = [ migrations.AlterModelOptions( name='student', optio...
[ "66747309+OmarFateh@users.noreply.github.com" ]
66747309+OmarFateh@users.noreply.github.com
91a80f36411eaa0287c81fe0a4414a82d2b3022a
a7104434e0ddb4575ef0a6cd467bac6620570de8
/hunter108.py
ff44819a2ca4401163bea362d9ae1cf41d6bc5c3
[]
no_license
GauthamAjayKannan/GUVI-1
7b276eef3195bec9671eec8bb6bcc588cb5c970e
fafabab93df55abcc399f6e2664286ed511fd683
refs/heads/master
2020-06-25T07:38:08.465414
2019-05-17T11:24:53
2019-05-17T11:24:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
243
py
x = list(input()) list1 = [] out = 0 if len(x) == 1: out = int(x[0]) * int(x[0]) else: for i in x: list1.append(int(i)) for i in range(len(list1)-1): out += (list1[i] ** list1[i+1]) out += (list1[len(list1)-1] ** list1[0] ) print(out)
[ "noreply@github.com" ]
GauthamAjayKannan.noreply@github.com
def3dce5cc56dc5116d525765b8c6bc66cb2e7fa
a44cfbdacdb9d695533f425ee72da86f904232c1
/bin/summarize-days
3a7583591a34ce37d84e1baec23fe453d926fdf1
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
sofie-lu/quac
434d1481949ad0a229e10b7ccc725f54740c2d44
03e3bd9691dddd819f629aba628e9fe6d45c2d3b
refs/heads/master
2020-04-08T09:33:54.217874
2014-05-15T20:32:00
2014-05-15T20:32:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
744
#!/usr/bin/env python '''Parse the given metadata pickle file and print, TSV format, a summary of each day's metadata on stdout. Column order matches the metadata field documentation.''' # Copyright (c) 2012-2013 Los Alamos National Security, LLC, and others. import argparse import sys import quacpath import ...
[ "reidpr@lanl.gov" ]
reidpr@lanl.gov
25933a755301dda6561a58f195d7462cdc9f384c
a9e3f3ad54ade49c19973707d2beb49f64490efd
/Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/api_admin/api/filters.py
63d4bf6ec7132ca2326fad9c709142a6713249fd
[ "MIT", "AGPL-3.0-only", "AGPL-3.0-or-later" ]
permissive
luque/better-ways-of-thinking-about-software
8c3dda94e119f0f96edbfe5ba60ca6ec3f5f625d
5809eaca7079a15ee56b0b7fcfea425337046c97
refs/heads/master
2021-11-24T15:10:09.785252
2021-11-22T12:14:34
2021-11-22T12:14:34
163,850,454
3
1
MIT
2021-11-22T12:12:31
2019-01-02T14:21:30
JavaScript
UTF-8
Python
false
false
432
py
""" Filters for api_admin api """ from rest_framework import filters class IsOwnerOrStaffFilterBackend(filters.BaseFilterBackend): """ Filter that only allows users to see their own objects or all objects if it is staff user. """ def filter_queryset(self, request, queryset, view): if request...
[ "rafael.luque@osoco.es" ]
rafael.luque@osoco.es
76ea21e0cd0bb9f8f9684fc16048be3713d1df62
1cc54d31a4a443230668ca063bcd27179ff096c2
/store/urls.py
fbf6972755a0e56ef5d0ca947869dfff8b9f903d
[]
no_license
akhmadakhmedov/e-commerce
8d84f0ae7acd4dc80c8afbe3ab55ed13873ef631
6708aa62dec08be9b18fae15125eeef266d869e3
refs/heads/main
2023-05-29T21:36:40.354231
2021-06-14T13:23:22
2021-06-14T13:23:22
370,982,449
0
0
null
null
null
null
UTF-8
Python
false
false
350
py
from django.urls import path from . import views urlpatterns = [ path('', views.store, name='store'), path('category/<slug:category_slug>/', views.store, name='products_by_category'), path('category/<slug:category_slug>/<product_slug>/', views.product_detail, name='product_detail'), path('search/', vi...
[ "ahmedov.thy@gmail.com" ]
ahmedov.thy@gmail.com
53aa1b2409b3fe45fb8cacb3d6c9abc63b5229eb
f6f3ade5a59fcb904a147fa3cf1933a1b225338f
/src/gate_timer.py
536a3cef3cb573db60d205d844c69d50ccab9872
[]
no_license
HajimeKawahara/autobop
3b559011f9dceba68b02e47cd95fdef4fa9ef41e
2c99625895206d24587db90a2ac03d1e536eb9ca
refs/heads/master
2021-01-16T01:03:01.351588
2018-03-18T09:15:53
2018-03-18T09:15:53
107,845,791
1
0
null
null
null
null
UTF-8
Python
false
false
607
py
#!/usr/bin/python import sys import numpy as np import matplotlib import matplotlib.pyplot as plt import pylab import argparse #import chord_probability as cp import rest def gate_stop(mnow,counter,finger=1,width=5.0,c=65.0): if c==np.inf: counter=counter+1 return mnow, counter numres...
[ "divrot@gmail.com" ]
divrot@gmail.com
55e4a9778ff59c0161d9877f8b727552e30befcb
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5738606668808192_0/Python/Nihilant/p3.py
9a79afbff433b6e056e4bf1c99769fccfd98c045
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
1,096
py
import sys, functools, math def jc(n, j): coin_n = 2**(n-1) + 1 for i in range(j): test = True while test: coin = bin(coin_n)[2:] sol = [] for base in range(2, 11): num = int(coin, base=base) k = -1 limit = in...
[ "alexandra1.back@gmail.com" ]
alexandra1.back@gmail.com
3f1ce17c7e56aa343e288281207e4e0013191cf9
ec53949dafa4b6ad675d679b05ed7c83fef2c69a
/DataStructuresAndAlgo/DynamicProgramming/FibonacciTabulation.py
d691cd1c6b7a1de451aa33b49df8d84df1b3b17e
[]
no_license
tpotjj/Python
9a5a20a53cd7a6ec14386c1db8ce155e0fc9ab8a
ca73c116ada4d05c0c565508163557744c86fc76
refs/heads/master
2023-07-11T16:37:10.039522
2021-08-14T11:17:55
2021-08-14T11:17:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
130
py
def fibTab(n): tb = [0, 1] for i in range(2, n): tb.append(tb[i-1] + tb[i-2]) return tb[n-1] print(fibTab(6))
[ "joris97jansen@gmail.com" ]
joris97jansen@gmail.com
5bcb0760c6c64e527ed4a662ff790c3cb71afad6
b1ff576cdde5adf698b98446538e0b56d18f070f
/grading/apps.py
b507c75018b33f6f0904ff9ce425d1006d934d9a
[]
no_license
DUMBALINYOLO/gbc_oms
e3cfba17a12f3600b6503fc70cc9f3dcab5cc0e2
cdea6fd81333088b2db9911140681fec9577132a
refs/heads/main
2023-08-20T11:48:36.418990
2021-10-11T23:25:35
2021-10-11T23:25:35
322,593,446
0
0
null
null
null
null
UTF-8
Python
false
false
152
py
from django.apps import AppConfig class GradingConfig(AppConfig): name = 'grading' # def ready(self): # import grading.signals
[ "baridzimaximillem@gmail.com" ]
baridzimaximillem@gmail.com
3cf0e063b91a5be11fd48040ca02637fab5c720d
cb1d0dd68b1136b8a371f7d2b423e45171e98ab7
/src/xsd_trips/urls.py
4d153c6902a452d9f38693e3b2a855184692fcd9
[]
no_license
ScubaJimmE/xSACdb
86640ab791327392f88eb4993c858aa6d340c758
1996ab286ee0446b0a0e38882104bbf8904d8bdc
refs/heads/develop
2021-07-15T04:47:11.279138
2016-05-25T01:44:05
2016-05-25T01:44:05
62,212,226
0
0
null
2021-03-20T00:40:24
2016-06-29T09:09:50
Python
UTF-8
Python
false
false
256
py
from django.conf.urls import patterns, include, url from django.conf import settings from views import * urlpatterns = patterns('', url(r'^$', TripList.as_view(), name='TripList'), url(r'^new/$', TripCreate.as_view(), name='TripCreate'), )
[ "will@fullaf.com" ]
will@fullaf.com
da9e00f2af1599c983cb133c32b539da17ece7fe
155fa6aaa4ef31cc0dbb54b7cf528f36743b1663
/Static and Class Methods/Gym/subscription.py
c93a716815e0c338d34e9dadac30833811a61828
[]
no_license
GBoshnakov/SoftUni-OOP
efe77b5e1fd7d3def19338cc7819f187233ecab0
0145abb760b7633ca326d06a08564fad3151e1c5
refs/heads/main
2023-07-13T18:54:39.761133
2021-08-27T08:31:07
2021-08-27T08:31:07
381,711,275
1
0
null
null
null
null
UTF-8
Python
false
false
467
py
class Subscription: _id = 0 def __init__(self, date, customer_id, trainer_id, exercise_id): Subscription._id += 1 self.date = date self.customer_id = customer_id self.trainer_id = trainer_id self.exercise_id = exercise_id self.id = Subscription._id @staticme...
[ "boshnakov.g@gmail.com" ]
boshnakov.g@gmail.com
5690b8a65b35121276c3493f5273eae7f9e1b7fb
609ee4aad38036c29456581f821a9bad4d6b729a
/tests/test_pay.py
37b2629d535646bc20848fbf05772211f9a8c3b2
[]
no_license
sdkwe/pywe-pay
32f14d218b0f8c029fb08a54df99ba70b90374b4
daf1699c7dafd0960359b0c3f570f32cc906dc5f
refs/heads/master
2020-05-29T15:13:05.371833
2020-04-27T07:32:54
2020-04-27T07:32:54
62,115,428
5
4
null
null
null
null
UTF-8
Python
false
false
677
py
# -*- coding: utf-8 -*- import time from pywe_pay import WeChatPay from local_config_example import WechatPayConfig class TestPayCommands(object): def test_native_unifiedorder(self): native = WechatPayConfig.get('JSAPI', {}) wxpay = WeChatPay(native.get('appID'), native.get('apiKey'), native.g...
[ "brightcells@gmail.com" ]
brightcells@gmail.com
42a62da8e1d51a7a3b3e573cdd0c1b6b3f423315
80afa26ba73b53f38e3fc21bf395030762fe8981
/576. Out of Boundary Paths.py
5481266d25818462836a2c72949c9f604ad39dc5
[]
no_license
iamshivamgoswami/Random-DSA-Questions
45b402063dbd2e31da2eee7590b6991aa624637d
e36250d08cf0de59cd0a59b4f3293e55793b1a6f
refs/heads/main
2023-07-15T15:48:36.363321
2021-08-26T03:40:47
2021-08-26T03:40:47
392,702,686
0
0
null
null
null
null
UTF-8
Python
false
false
563
py
class Solution: def findPaths(self, m: int, n: int, maxMove: int, i: int, j: int) -> int: d = {} def dfs(N, i, j): if (i, j, N) in d: return d[(i, j, N)] if i == m or i < 0 or j == n or j < 0: return 1 if N == 0: ...
[ "shivamgoswami12@gmail.com" ]
shivamgoswami12@gmail.com
0e65583a2f3733544f9d2a193e93f68be851c9df
4b2c5fe21ffcc35837bba06d2c3b43c5116f74bd
/Blackjack.py
8d5c04a77bb98a1ca5b4be7994bed8812a47cdf5
[]
no_license
joydas65/Codeforces-Problems
8870cbbf1db9fa12b961cee7aaef60960af714ae
eb0f5877d0fede95af18694278029add7385973d
refs/heads/master
2023-06-23T07:16:49.151676
2023-06-17T07:28:24
2023-06-17T07:28:24
184,123,514
5
1
null
2020-11-28T07:28:03
2019-04-29T18:33:23
Python
UTF-8
Python
false
false
150
py
n = int(input()) if n <= 10 or n > 21: print(0) elif (n >= 11 and n <= 19) or n == 21: print(4) else: print(15)
[ "noreply@github.com" ]
joydas65.noreply@github.com
4a3bb92e0a9b95c1fc10eb9db2fd34e8f5cdcb8d
1669bf106be7e4e88ad957aa1f0a708a49f9ef87
/first_website/setup.py
d87bfe260f13a957af9d07c566ab6284fad70c61
[]
no_license
genzj/python-fundamentals-course
280166037bb6ff25e2400fa3b281de153824c622
31218a42c609d923b3ae0c7d785b9dc02c0d9a6e
refs/heads/master
2023-01-09T22:13:04.040355
2021-03-20T02:33:18
2021-03-20T02:33:18
218,776,587
2
2
null
2022-12-26T20:59:32
2019-10-31T13:47:43
Python
UTF-8
Python
false
false
1,512
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """The setup script.""" from setuptools import setup, find_packages with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() requirements = [ ] setup_requirements = [ ] test_re...
[ "zj0512@gmail.com" ]
zj0512@gmail.com
93af8f67f99cacadec773970d6e4593f6c1b339e
dd098f8a93f787e38676283679bb39a290ba28b4
/samples/openapi3/client/3_0_3_unit_test/python-experimental/test/test_paths/test_response_body_post_maxlength_validation_response_body_for_content_types/test_post.py
b5ee61f9396dd84fdab727dd1f5cee04e4b0aa0f
[ "Apache-2.0" ]
permissive
InfoSec812/openapi-generator
727c0235d3bad9b85ac12068808f844287af6003
e0c72702c3d5dae2a627a2926f0cddeedca61e32
refs/heads/master
2022-10-22T00:31:33.318867
2022-08-20T14:10:31
2022-08-20T14:10:31
152,479,633
1
0
Apache-2.0
2023-09-04T23:34:09
2018-10-10T19:38:43
Java
UTF-8
Python
false
false
7,073
py
# coding: utf-8 """ Generated by: https://openapi-generator.tech """ import unittest from unittest.mock import patch import urllib3 import unit_test_api from unit_test_api.paths.response_body_post_maxlength_validation_response_body_for_content_types import post # noqa: E501 from unit_test_api import configur...
[ "noreply@github.com" ]
InfoSec812.noreply@github.com
38801dbfe2808511d05323af89e49be9254d06bd
40b5c4a77be465b47fe6fd7ff408db957261cc7f
/python-spake2-0.7/setup.py
c6365b7a7fcc9b95f11fa6dfb09513fabbc2ab8f
[ "MIT" ]
permissive
warner/spake2-interop-server
7c1f0502a93615d2e2b5b7a323731a7e20040f86
b3f2ae42971e4217d9f503bb672b2d9288225acc
refs/heads/master
2021-01-25T11:27:45.696023
2017-06-10T22:15:15
2017-06-10T22:15:15
93,924,508
0
0
null
null
null
null
UTF-8
Python
false
false
913
py
"A server that performs SPAKE2 operations, for interoperability testing." # Install this, then run "twist spake2_interop" and hit http://HOST:8705/ from setuptools import setup import versioneer setup( name="spake2-interop-python-spake2-0.7", version=versioneer.get_version(), author="Brian Warner", a...
[ "warner@lothar.com" ]
warner@lothar.com
9fa28da8427b89b3d954bdd756fd2ebcba4686a1
83048ab1abb6941ed0b19fb5e5ff4a9d14b48e8c
/CODEFORCES/two_teams.py
7d256d350d953f576fe903bf8811b7a18f57716a
[]
no_license
harshitalpha/Algorithms
ebad07cc77516ab5c35ae414462d10a38d5ef97e
2f7dcf4c3bb4390267231c7c96f7e76399c0166e
refs/heads/master
2021-07-14T17:34:02.546583
2020-06-25T06:38:39
2020-06-25T06:38:39
178,813,562
2
0
null
null
null
null
UTF-8
Python
false
false
693
py
t = int(input()) while(t): t = t - 1 n = int(input()) a = [int(s) for s in input().split()] d = {} for i in a: try: d[i] += 1 except KeyError: d[i] = 1 max_size = d[a[0]] ele_in_sec_arr = a[0] for i in d.keys(): if d[i] > max_size: ...
[ "harshitsinghal1103@gmail.com" ]
harshitsinghal1103@gmail.com
b67ec65da5b89ee26ecfac71462afdedf4ad07d3
a72f39b82966cd6e2a3673851433ce7db550429a
/configs/_base_/models/lxmert/lxmert_vqa_config.py
781219951d7cd25d348c58e16f382837a1dcbeaf
[ "Apache-2.0" ]
permissive
linxi1158/iMIX
85841d6b95e1d99ed421a1ac3667658e49cae6fc
af87a17275f02c94932bb2e29f132a84db812002
refs/heads/master
2023-06-09T23:37:46.534031
2021-06-30T12:09:42
2021-06-30T12:09:42
381,608,650
0
0
Apache-2.0
2021-06-30T07:08:40
2021-06-30T07:08:39
null
UTF-8
Python
false
false
1,753
py
# model settings model = dict( type='LXMERT', params=dict( random_initialize=False, num_labels=3129, # BertConfig vocab_size=30522, hidden_size=768, num_hidden_layers=12, num_attention_heads=12, intermediate_size=3072, hidden_act='gelu', ...
[ "hsslab.inspur@gmail.com" ]
hsslab.inspur@gmail.com
8626edcebc5d57619798aec921223388d499ef0b
f77327128a8da9702ae3443e2171bc7485ceb915
/cadence/items.py
08b1b50b16175e30c34717833ce6af94ae712ed4
[]
no_license
SimeonYS/cadence
0eeba6a54c03ffb2d55466f9d8de6f1b1662002f
cdaef13c85a03e031a0050c89c17249cd7d83125
refs/heads/main
2023-03-31T08:24:41.408507
2021-03-31T10:14:01
2021-03-31T10:14:01
353,312,955
0
0
null
null
null
null
UTF-8
Python
false
false
156
py
import scrapy class CadenceItem(scrapy.Item): title = scrapy.Field() content = scrapy.Field() date = scrapy.Field() link = scrapy.Field()
[ "simeon.simeonov@ADPVT.com" ]
simeon.simeonov@ADPVT.com
17602e35cc61bc0f7fc211873d8f4e8f3498781a
4ca44b7bdb470fcbbd60c2868706dbd42b1984c9
/20.12.14/BOJ_20056.py
d156e0cef3cfd5583ae7fcf2a95e7de4fd8f8efa
[]
no_license
titiman1013/Algorithm
3b3d14b3e2f0cbc4859029eb73ad959ec8778629
8a67e36931c42422779a4c90859b665ee468255b
refs/heads/master
2023-06-29T17:04:40.015311
2021-07-06T01:37:29
2021-07-06T01:37:29
242,510,483
2
0
null
null
null
null
UTF-8
Python
false
false
3,827
py
import sys; sys.stdin = open('text1.txt', 'r') # solve test1 # dx = [-1, -1, 0, 1, 1, 1, 0, -1] # dy = [0, 1, 1, 1, 0, -1, -1, -1] # def move_fireball(x, y, m, s, d): # for _ in range(s): # nx = x + dx[d] # ny = y + dy[d] # if 0 <= nx < N and 0 <= ny < N: # x, y = nx, ny # ...
[ "hyunsukr1013@gmail.com" ]
hyunsukr1013@gmail.com
16f4f84a799fbad2d4951affd28a3893ee356839
a667b52cb8d2ec857c55d33f04fc0e81d36dc681
/options/data/mc/pipipi0_DecProdCut_PHSP_2012_MC_2012_Beam4000GeV-2012-MagUp-Nu2.5-Pythia8_Sim08e_Digi13_Trig0x409f0045_Reco14a_Stripping20r0p2NoPrescalingFlagged_27163403_ALLSTREAMS.DST.py
befddb5e34f37022361b1b2ddd67efe8ea3fa6bd
[]
no_license
wenyanyin/CP_violation_simulation
639d73333a3795654275cb43cc7dad7c742d1be1
7b93b2fe1050fb30d0b809b758cd5a3b2824b875
refs/heads/master
2022-04-29T14:19:23.744004
2022-04-01T13:05:18
2022-04-01T13:05:18
168,570,282
0
0
null
null
null
null
UTF-8
Python
false
false
3,745
py
# lb-run LHCbDirac/prod dirac-bookkeeping-get-files -B /MC/2012/Beam4000GeV-2012-MagUp-Nu2.5-Pythia8/Sim08e/Digi13/Trig0x409f0045/Reco14a/Stripping20r0p2NoPrescalingFlagged/27163403/ALLSTREAMS.DST from Gaudi.Configuration import * from GaudiConf import IOHelper IOHelper('ROOT').inputFiles( ['LFN:/lhcb/MC/2012/ALLSTREA...
[ "Michael.Alexander@glasgow.ac.uk" ]
Michael.Alexander@glasgow.ac.uk
f6aff156beb68f479d76392ed5097e84546ed4e6
764a157c1ef369664144a112f390165809c37861
/apps/app/views.py
75a6c7124d899b9dae8673fed292fa32dbe61aff
[]
no_license
Maliaotw/gogoweb
b044678b0a34c2748267c8f8ac1f6af91d42bcd0
aad84f11163e62716a239972436eb92e7cc601d0
refs/heads/main
2023-07-07T19:46:37.470811
2021-08-31T15:01:58
2021-08-31T15:01:58
341,254,107
0
0
null
null
null
null
UTF-8
Python
false
false
667
py
from django.shortcuts import render from apps.app import models from apps.app import serializers from rest_framework import viewsets from rest_framework.pagination import LimitOffsetPagination from rest_framework.views import APIView, Response from rest_framework import status # Create your views here. class TaskMode...
[ "MaliaoTW@gmail.com" ]
MaliaoTW@gmail.com
50482a45f14d167f9dd6e9fc7d00d93c3fcaad60
5b93930ce8280b3cbc7d6b955df0bfc5504ee99c
/nodes/Geron17Hands/B_PartI/H_Chapter8/C_PCA/D_UsingScikitLearn/index.py
f3808ea9cd7e1c90a935491935c7d8dd01be2ef0
[]
no_license
nimra/module_gen
8749c8d29beb700cac57132232861eba4eb82331
2e0a4452548af4fefd4cb30ab9d08d7662122cf4
refs/heads/master
2022-03-04T09:35:12.443651
2019-10-26T04:40:49
2019-10-26T04:40:49
213,980,247
0
1
null
null
null
null
UTF-8
Python
false
false
3,414
py
# Lawrence McAfee # ~~~~~~~~ import ~~~~~~~~ from modules.node.HierNode import HierNode from modules.node.LeafNode import LeafNode from modules.node.Stage import Stage from modules.node.block.CodeBlock import CodeBlock as cbk from modules.node.block.HierBlock import HierBlock as hbk from modules.node.block.ImageBlock ...
[ "lawrence.mcafee@gmail.com" ]
lawrence.mcafee@gmail.com
cb50337db2d8006a698aab101b52e25241b61b67
292437b85108504a7ca91571f26a639a313501b6
/venv2/lib/python2.7/site-packages/keystoneclient/auth/identity/generic/token.py
6a5d15b281e8931b3199251c3a6ea2c8f77eef3e
[]
no_license
heekof/monitoring-agent
c86bebcf77091490df7a6b8c881b85fdb2b9e4eb
b1c079efdf2dabe854f2aa3d96f36d2ec7021070
refs/heads/master
2021-01-15T15:39:01.512801
2016-08-31T20:53:38
2016-08-31T20:53:38
58,620,098
1
0
null
null
null
null
UTF-8
Python
false
false
1,656
py
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
[ "bendriss-jaafar@live.fr" ]
bendriss-jaafar@live.fr
64a694d6c95f4ea237880b1e4abbce5a36e03343
a8b37bd399dd0bad27d3abd386ace85a6b70ef28
/airbyte-integrations/connectors/destination-weaviate/destination_weaviate/client.py
3ba83b2a4a53a92af1f8413bd85c69ca41b056c9
[ "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
6,094
py
# # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # import json import logging import time import uuid from dataclasses import dataclass from typing import Any, List, Mapping, MutableMapping import weaviate from .utils import generate_id, parse_id_schema, parse_vectors, stream_to_class_name @dataclass cla...
[ "noreply@github.com" ]
thomas-vl.noreply@github.com
3e95f067fba14f5bd1ebdb04147f9f4ed532c262
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/bob/60d6f99657e4479ab9beda33d53f774e.py
3a8da1104c746329450661a00dc2b7bf64a87b09
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
227
py
#test def hey(string): if string.isupper(): return 'Whoa, chill out!' elif len(string) > 0 and string[-1] == '?': return 'Sure.' elif len(string.strip()) == 0: return 'Fine. Be that way!' else: return 'Whatever.'
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
bf64c9862aa6fd295ce0cc911835562fde0bac8f
55fc41d645e2f2cb4e94eaeb01c21a8f36b522e3
/data_processing/split_dataset.py
b6b410c63593ed0c4727101c19b45e3069e4d2bb
[]
no_license
andreiqv/pytorch_scale_classifier
6c4515127ee9ad182242cc429326ed99984c2398
9448690ab0a2c5e9ec4c235ff85360be22572949
refs/heads/master
2020-04-04T17:34:27.169290
2018-11-08T09:24:35
2018-11-08T09:24:35
156,126,083
0
0
null
null
null
null
UTF-8
Python
false
false
2,137
py
import os import sys import random if os.path.exists('.local'): src_dir = '/w/WORK/ineru/06_scales/_dataset/copy/' dst_dir = '/w/WORK/ineru/06_scales/_dataset/splited/' else: src_dir = '/home/andrei/Data/Datasets/Scales/classifier_dataset_181018/' dst_dir = '/home/andrei/Data/Datasets/Scales/splited/' parts = ['t...
[ "phxv@mail.ru" ]
phxv@mail.ru
455d14cf9f53cdf563bf65094e78b103076f2743
7922714a4fd81acd2dac3875d2dd75a2bf24ef5e
/handlers/inlines/search.py
57caa66a47de26c22dcbb842b488ae9e5bcde09f
[ "MIT" ]
permissive
hexatester/ut-telegram-bot
32bf9a20ffaf82a5b6f1420d6bb041249ff93d6c
20f6f063726913cb6d21e42538103e3498b929a7
refs/heads/master
2023-01-20T06:50:30.941786
2020-11-18T08:31:03
2020-11-18T08:31:03
290,542,370
0
0
MIT
2020-09-16T03:09:47
2020-08-26T16:02:02
Python
UTF-8
Python
false
false
1,141
py
from telegram import Update, InlineQuery, InlineQueryResult from telegram.ext import CallbackContext from typing import List from core.utils.inline_query import article from libs.rss.rss import Rss from libs.search.search import Search RSS = Rss() SEARCH = Search() EMPTY = article( title="❌ Tidak ada hasil", d...
[ "revolusi147id@gmail.com" ]
revolusi147id@gmail.com
8f8c577a98fec3fb5d6a1d25c2d0f8350c64abb4
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2311/60829/306892.py
9a645be64e8410c702a8a8169df2d59fed3ed6d4
[]
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
358
py
def dl(x): res="" for i in range(len(x)): if not x[len(x)-1-i]==" ": break res=x[0:i+1] return res a=[] b=[int(x) for x in dl(input()).split(" ")] c=[int(x) for x in dl(input()).split(" ")] a.append(b) a.append(c) aa=[[[10], [8]]] bb=["0 4 0 20 0 12 0 "] for i in range(len(aa)): ...
[ "1069583789@qq.com" ]
1069583789@qq.com
c7f523807f996cae2f07692c4918cebcb18a824f
b37fdefb01d7b93a4f56a7c7cc60f9f78549de4c
/DI_Bootcamp/Week_9/Day_1/Exercise_XP/film_project_root/account_app/views.py
15d82374b6660e2d3071afe8839fff8d9102006d
[]
no_license
AchimGoral/DI_Bootcamp
e7b13d7397ab5c9e5ad8041430c8bfbafec13c88
9345731503e2bb298bd3a579ffad590350f13df5
refs/heads/main
2023-04-18T20:06:45.631067
2021-05-01T08:08:45
2021-05-01T08:08:45
328,769,128
0
1
null
2021-01-27T14:30:09
2021-01-11T19:24:48
HTML
UTF-8
Python
false
false
2,040
py
from django.shortcuts import render, redirect from django.contrib.auth import authenticate, login, logout from django.contrib.auth.models import User from django.contrib import messages from .models import * from .forms import * def sign_up(request): if request.method == 'POST': form = RegistrationForm(req...
[ "achimgoral.il@gmail.com" ]
achimgoral.il@gmail.com
4f445597c5ac30039c0f3c3333dae8b68184c0c5
9c862bb7f9ac093a9bcf17d9060389dbbb8b655b
/examples/instrumentation/19_show_window_tree.py
3f1c33ed09182131494b8863549ee7626b2aad1c
[]
no_license
fabioz/winappdbg
24917ce29a90a08e890e8cd7d44feaad22daf0c4
1603870dc3fa3d2984ef23b6d77e400fb0a21b99
refs/heads/master
2023-08-02T07:40:10.496090
2020-04-22T15:18:42
2020-04-22T15:18:42
23,669,656
2
0
null
null
null
null
UTF-8
Python
false
false
2,702
py
#!~/.wine/drive_c/Python25/python.exe # -*- coding: utf-8 -*- # Copyright (c) 2009-2014, Mario Vilas # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source c...
[ "mvilas@gmail.com" ]
mvilas@gmail.com
dfd2e20af52b997ca2c30f3e5abe74095b8ad76b
e5d5fa28999bcc6c642bb42dda93afd38e272b81
/UVA/531 - Compromise/generate.py
6dee0d625c29b89113c0412c8f3c2aec4602f471
[]
no_license
chiahsun/problem_solving
cd3105969983d16d3d5d416d4a0d5797d4b58e91
559fafa92dd5516058bdcea82a438eadf5aa1ede
refs/heads/master
2023-02-05T06:11:27.536617
2023-01-26T10:51:23
2023-01-26T10:51:23
30,732,382
3
0
null
null
null
null
UTF-8
Python
false
false
221
py
import random; import string; random.seed(0); def generate_seq(n_char = 100): for _ in range(n_char): print(random.choice(string.ascii_lowercase), end=' '); print('\n#'); generate_seq(); generate_seq();
[ "chiahsun0814@gmail.com" ]
chiahsun0814@gmail.com
d1eac20d6ecb9450cba8f91e1a7e1d4e1e5741a0
a8933adda6b90ca158096009165bf27b74a2733d
/auroracallback/index.py
8e612d31c3268553e12c1b19be4ad251306e88d6
[]
no_license
knighton/aurora-callback
6c40db9c271b782ca8c14119b8937e3656980a36
26efc9069fcd5d48ae55bca3b06e3adf3927164e
refs/heads/master
2020-12-18T11:53:16.516590
2020-01-21T15:05:41
2020-01-21T15:05:41
235,369,780
0
0
null
null
null
null
UTF-8
Python
false
false
465
py
_INDEX = """ <!DOCTYPE HTML> <head> <style type="text/css"> html, body, #image { width: 100%; height: 100%; } body { background: radial-gradient( circle at center, #000 0%, #002 50%, #004 65%, #408 75%, #824 85%, #f40 90%, #fb0 95%, w...
[ "iamknighton@gmail.com" ]
iamknighton@gmail.com
06240216f9210c8e6d145968274d7682c2efaa25
5364927a0f594958ef226cd8b42120e96a970beb
/detectors/countauditor.py
2ba6d830b4429d9f01dfd0aa9dab54dc2415fc0b
[]
no_license
psf/bpo-tracker-cpython
883dd13f557179ee2f16e38d4f38e53c7f257a4a
1a94f0977ca025d2baf45ef712ef87f394a59b25
refs/heads/master
2023-06-11T23:59:46.300683
2023-04-25T12:18:00
2023-04-25T12:18:00
276,213,165
24
10
null
2023-04-11T14:16:30
2020-06-30T21:32:40
Python
UTF-8
Python
false
false
507
py
def count_nosy_msg(db, cl, nodeid, newvalues): ''' Update the counts of messages and nosy users on issue edit''' if 'nosy' in newvalues: newvalues['nosy_count'] = len(set(newvalues['nosy'])) if 'messages' in newvalues: newvalues['message_count'] = len(set(newvalues['messages'])) def i...
[ "devnull@localhost" ]
devnull@localhost
00678ab8ff79facecf814370e31c6cd5fe27add6
55c250525bd7198ac905b1f2f86d16a44f73e03a
/Python/Flask/Book_evaluator/venv/Lib/encodings/latin_1.py
dc74012c5ec50ada8637c3b65596d11567dc8a16
[]
no_license
NateWeiler/Resources
213d18ba86f7cc9d845741b8571b9e2c2c6be916
bd4a8a82a3e83a381c97d19e5df42cbababfc66c
refs/heads/master
2023-09-03T17:50:31.937137
2023-08-28T23:50:57
2023-08-28T23:50:57
267,368,545
2
1
null
2022-09-08T15:20:18
2020-05-27T16:18:17
null
UTF-8
Python
false
false
129
py
version https://git-lfs.github.com/spec/v1 oid sha256:b75503e532a27c636477396c855209ff5f3036536d2a4bede0a576c89382b60c size 1264
[ "nateweiler84@gmail.com" ]
nateweiler84@gmail.com
d9ed45e757f36c4737c4f53b459548e973a94c38
042b3e6553dbd61b204bdbad25e05aaeba79dde8
/tests/ope/test_fqe.py
2a871634bfc6235fdfc70ba63e851fba1934a267
[ "MIT" ]
permissive
jkbjh/d3rlpy
822e51e1c5b4ef37795aa2be089ff5a7ff18af07
43f0ba7e420aba077d85c897a38207f0b3ca6d17
refs/heads/master
2023-03-20T06:36:55.424681
2021-03-17T14:17:40
2021-03-17T14:17:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,859
py
import pytest import numpy as np from unittest.mock import Mock from d3rlpy.ope.fqe import FQE, DiscreteFQE from d3rlpy.algos import DDPG, DQN from tests.base_test import base_tester from tests.algos.algo_test import algo_update_tester from tests.algos.algo_test import DummyImpl def ope_tester(ope, observation_shape...
[ "takuma.seno@gmail.com" ]
takuma.seno@gmail.com
1f45f423f9b9c7a6771aa411b46fc92b4c8473ea
c4520d8327124e78a892ef5a75a38669f8cd7d92
/venv/bin/pip3.6
5de7730cde95e1872365e26e4f9afc03673e919d
[]
no_license
arsh9806/GW2019PA1
81d62d3d33cfe3bd9e23aff909dd529b91c17035
c3d12aed77d2810117ce741c48208edc2b6a1f34
refs/heads/master
2020-05-31T09:18:13.112929
2019-06-04T06:51:12
2019-06-04T06:51:12
190,209,074
2
0
null
2019-06-04T13:38:46
2019-06-04T13:38:46
null
UTF-8
Python
false
false
412
6
#!/Users/ishantkumar/PycharmProjects/GW2019PA1/venv/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.1','console_scripts','pip3.6' __requires__ = 'pip==9.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]...
[ "er.ishant@gmail.com" ]
er.ishant@gmail.com
05a8f71fc5e7b421ee098845806cc55f6460df06
9e204a5b1c5ff4ea3b115ff0559b5af803ab4d15
/086 Scramble String.py
24fb5940b4e91bad75604cd71f6ca376a0c51d99
[ "MIT" ]
permissive
Aminaba123/LeetCode
178ed1be0733cc7390f30e676eb47cc7f900c5b2
cbbd4a67ab342ada2421e13f82d660b1d47d4d20
refs/heads/master
2020-04-20T10:40:00.424279
2019-01-31T08:13:58
2019-01-31T08:13:58
168,795,374
1
0
MIT
2019-02-02T04:50:31
2019-02-02T04:50:30
null
UTF-8
Python
false
false
2,347
py
""" Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively. Below is one possible representation of s1 = "great": great / \ gr eat / \ / \ g r e at / \ a t To scramble the string, we may choose any ...
[ "zhangdanyangg@gmail.com" ]
zhangdanyangg@gmail.com
c37b5e7c091393c55c01af84e23f3f883de3ea13
7ae9081aff882476ad0caa687ca41796e2035f85
/planout/apps/accounts/migrations/0005_auto_20150301_1811.py
176b7b2a6ed4e66694227f5ede41151cde8c9ee6
[]
no_license
siolag161/planout
eb6b8720dfe0334d379c1040d607bb459a8e695a
f967db9636618906345132d006c2f9a597025a0f
refs/heads/master
2020-04-14T13:17:26.011810
2015-03-21T11:53:48
2015-03-21T11:53:48
32,376,449
1
0
null
null
null
null
UTF-8
Python
false
false
842
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import django.utils.timezone import core.fields class Migration(migrations.Migration): dependencies = [ ('accounts', '0004_basicuser_description'), ] operations = [ migrations.AddFie...
[ "thanh.phan@outlook.com" ]
thanh.phan@outlook.com
deec298358d4449942d8f95f300d77c1da85a33b
1a3d6caf89e5b51a33627458ae7c0bbb00efdc1d
/src/gluonts/torch/model/deep_npts/__init__.py
e664774be4903e7274f0dcb979a150dd03d6169c
[ "Apache-2.0" ]
permissive
zoolhasson/gluon-ts
e9ff8e4ead4d040d9f8fa8e9db5f07473cb396ed
3dfc0af66b68e3971032a6bd0f75cd216988acd6
refs/heads/master
2023-01-25T01:52:57.126499
2023-01-13T17:50:38
2023-01-13T17:50:38
241,743,126
0
1
Apache-2.0
2020-08-06T16:53:11
2020-02-19T22:45:54
Python
UTF-8
Python
false
false
911
py
# Copyright 2018 Amazon.com, Inc. or its affiliates. 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. # A copy of the License is located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or in the "license...
[ "noreply@github.com" ]
zoolhasson.noreply@github.com
9f827b5cd072b3c5a7b8abb08cbeb1c57976822f
b3ac12dfbb8fa74500b406a0907337011d4aac72
/goldcoin/cmds/units.py
f39f52b9ed6ece8e4515e68efda51a35c69354ac
[ "Apache-2.0" ]
permissive
chia-os/goldcoin-blockchain
ab62add5396b7734c11d3c37c41776994489d5e7
5c294688dbbe995ae1d4422803f6fcf3e1cc6077
refs/heads/main
2023-08-11T23:58:53.617051
2021-09-12T15:33:26
2021-09-12T15:33:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
330
py
from typing import Dict # The rest of the codebase uses mojos everywhere. # Only use these units for user facing interfaces. units: Dict[str, int] = { "goldcoin": 10 ** 12, # 1 goldcoin (ozt) is 1,000,000,000,000 mojo (1 trillion) "mojo:": 1, "colouredcoin": 10 ** 3, # 1 coloured coin is 1000 colouredcoi...
[ "faurepierre78@yahoo.com" ]
faurepierre78@yahoo.com
605166acc000057f4f8e1a72739b30cd9d77d644
17fe4529fd2772b7d046f039bde140768634d028
/misc/samples/unittest_sample_fixture.py
ec183aa51203926248509bf02996e096d24dc86e
[]
no_license
namesuqi/tapir
b9c21f30bf781eec314f0ae4f57c232f167e4734
a5d4e9bb45d8cbf7e41d42d9006b43b753f3ecf1
refs/heads/master
2020-03-07T04:16:45.213561
2018-03-29T08:34:46
2018-03-29T08:34:46
127,261,810
0
0
null
null
null
null
UTF-8
Python
false
false
1,112
py
# coding=utf-8 # author: zengyuetian import unittest def setUpModule(): print("setUpModule >>>") def tearDownModule(): print("tearDownModule >>>") class Test1(unittest.TestCase): @classmethod def setUpClass(cls): print("setUpClass for Test1 >>") @classmethod def tearDownClass(cls)...
[ "suqi_name@163.com" ]
suqi_name@163.com
79d06d973f4350530acd4a498fc14d7d9edb3e00
124b35ccbae76ba33b9044071a056b9109752283
/Understanding_Concepts/viz/IntegratedGradientsTF/integrated_gradients_tf.py
d6198201ac70bf6560adfe7d8e5fd6aa4984b345
[]
no_license
anilmaddu/Daily-Neural-Network-Practice-2
94bc78fe4a5a429f5ba911bae5f231f3d8246f61
748de55c1a17eae9f65d7ea08d6b2b3fc156b212
refs/heads/master
2023-03-08T22:04:45.535964
2019-03-15T23:10:35
2019-03-15T23:10:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,654
py
################################################################# # Implementation of Integrated Gradients function in Tensorflow # # Naozumi Hiranuma (hiranumn@cs.washington.edu) # ################################################################# import tensorflow as tf import numpy as np # INPUT: te...
[ "jae.duk.seo@ryerson.ca" ]
jae.duk.seo@ryerson.ca
e5f8dd86564f6f2ac9a03aeef761b298c102eb92
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/gH3QMvF3czMDjENkk_9.py
19552a338cba87d2d304d1d2bbfb9850243e1af0
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
838
py
""" Create a function that takes a list and string. The function should remove the letters in the string from the list, and return the list. ### Examples remove_letters(["s", "t", "r", "i", "n", "g", "w"], "string") ➞ ["w"] remove_letters(["b", "b", "l", "l", "g", "n", "o", "a", "w"], "balloon") ➞ ["b...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
26f18c303e12dd1ea296568f3185d5b1df7582fe
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/pa3/sample/op_cmp_int-106.py
89011902bfe43fdb6bd7bee90efed2d33564d626
[]
no_license
Virtlink/ccbench-chocopy
c3f7f6af6349aff6503196f727ef89f210a1eac8
c7efae43bf32696ee2b2ee781bdfe4f7730dec3f
refs/heads/main
2023-04-07T15:07:12.464038
2022-02-03T15:42:39
2022-02-03T15:42:39
451,969,776
0
0
null
null
null
null
UTF-8
Python
false
false
186
py
x:int = 42 y:int = 7 print(x == y) print(x != y) print(x < y) print(x <= y) print(x > y) print(x >= y) $Var(x == x) print(x != x) print(x < x) print(x <= x) print(x > x) print(x >= x)
[ "647530+Virtlink@users.noreply.github.com" ]
647530+Virtlink@users.noreply.github.com
cc9411b7251704073d70f510559e49b20473e415
4e30d990963870478ed248567e432795f519e1cc
/tests/models/validators/v3_1_patch_1/jsd_df4fb303a3e5661ba12058f18b225af.py
f31472450dc722d87e16a1a2c2c919e92e4c5463
[ "MIT" ]
permissive
CiscoISE/ciscoisesdk
84074a57bf1042a735e3fc6eb7876555150d2b51
f468c54998ec1ad85435ea28988922f0573bfee8
refs/heads/main
2023-09-04T23:56:32.232035
2023-08-25T17:31:49
2023-08-25T17:31:49
365,359,531
48
9
MIT
2023-08-25T17:31:51
2021-05-07T21:43:52
Python
UTF-8
Python
false
false
8,158
py
# -*- coding: utf-8 -*- """Identity Services Engine getNetworkAccessConditions data model. Copyright (c) 2021 Cisco and/or its affiliates. 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 ...
[ "bvargas@altus.cr" ]
bvargas@altus.cr
6076c919a7fc64e1832cdfff14fd936313f6f605
3fd7adb56bf78d2a5c71a216d0ac8bc53485b034
/tensorflow_data/position_ctrl_action5r3_rel/conf.py
968527a0c3070d794fdb27d5931531bfada19c90
[]
no_license
anair13/lsdc
6d1675e493f183f467cab0bfe9b79a4f70231e4e
7760636bea24ca0231b4f99e3b5e8290c89b9ff5
refs/heads/master
2021-01-19T08:02:15.613362
2017-05-12T17:13:54
2017-05-12T17:13:54
87,596,344
0
0
null
2017-04-08T00:18:55
2017-04-08T00:18:55
null
UTF-8
Python
false
false
1,872
py
import os current_dir = os.path.dirname(os.path.realpath(__file__)) # tf record data location: DATA_DIR = '/'.join(str.split(current_dir, '/')[:-2]) + '/pushing_data/position_control_a5r3rel/train' # local output directory OUT_DIR = current_dir + '/modeldata' from video_prediction.prediction_model_downsized_lesslaye...
[ "frederik.ebert@mytum.de" ]
frederik.ebert@mytum.de
75ccc26a4c4472390ed15c91ff1250d21f8742ba
9bb521d515a2401b69df797efed11b04e04401a7
/tests/runtests-herd.py
6b8ab527d581912293ea513b8d1152d11ea11811
[ "BSD-3-Clause" ]
permissive
risent/django-redis
be512f1bf6c51b8e238e2fa8b1eec5073c03916e
46bfd076c197846035e3f31348748d464ace74d0
refs/heads/master
2021-01-14T14:10:59.664982
2015-06-11T20:15:28
2015-06-11T20:15:28
37,450,021
0
0
null
2015-06-15T07:25:20
2015-06-15T07:25:20
null
UTF-8
Python
false
false
311
py
# -*- coding: utf-8 -*- import os, sys sys.path.insert(0, '..') os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_sqlite_herd") if __name__ == "__main__": from django.core.management import execute_from_command_line args = sys.argv args.insert(1, "test") execute_from_command_line(args)
[ "niwi@niwi.be" ]
niwi@niwi.be
98a5ba2fce68657fdaed702892ee3ed449bf727e
3e862ce90e7f17c1f1c586aad20bda6c4fc6cbd4
/home/management/commands/load_initial_data.py
19443015cfb4110723cc564ebfbfb35c06d46937
[]
no_license
crowdbotics-users/kailashacrowdboticscom-kai-638
621fc891f449a843e0334f4443462f78d1a1d5b6
e3753824bbd240c64eeadde9671438cc77a8dc0b
refs/heads/master
2020-04-09T19:42:14.674638
2018-12-05T17:00:39
2018-12-05T17:00:39
160,551,011
0
0
null
null
null
null
UTF-8
Python
false
false
757
py
from django.core.management import BaseCommand from home.models import CustomText, HomePage def load_initial_data(): homepage_body = """ <h1 class="display-4 text-center">image-to-text-converter-211</h1> <p class="lead"> This is the sample application created and deployed from the cr...
[ "sp.gharti@gmail.com" ]
sp.gharti@gmail.com
bc898e40424cb1cafb5b4b23ba444477869ae983
5c1531b47fb4dc4d7e5998d44f7200bf1786b12b
/__UNSORTED/130_surrounded_regions/surrounded_regions_TLE.py
3c923ea0a7709fbedcb124df62b7253ab7f96642
[]
no_license
Web-Dev-Collaborative/Leetcode-JS-PY-MD
d1f560051aad1896a80eccdd4b4fbb389e7033e3
675b94fa5da8d40f0ea79efe6d3ef1393221425f
refs/heads/master
2023-09-01T22:30:32.313793
2021-10-26T02:17:03
2021-10-26T02:17:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,019
py
class Solution: # @param {character[][]} board # @return {void} Do not return anything, modify board in-place instead. def solve(self, board): if not board: return lx = len(board) ly = len(board[0]) for x in range(lx): for y in range(ly): ...
[ "bryan.guner@gmail.com" ]
bryan.guner@gmail.com
8e204756e205394482650c812c5b994b021ff48c
2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8
/pardus/tags/2007.2/programming/libs/geoip/actions.py
8ea47d4a7aaa461b4099e2a3b64026df8fc2b019
[]
no_license
aligulle1/kuller
bda0d59ce8400aa3c7ba9c7e19589f27313492f7
7f98de19be27d7a517fe19a37c814748f7e18ba6
refs/heads/master
2021-01-20T02:22:09.451356
2013-07-23T17:57:58
2013-07-23T17:57:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
634
py
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2006,2007 TUBITAK/UEKAE # Licensed under the GNU General Public License, version 2. # See the file http://www.gnu.org/copyleft/gpl.txt. from pisi.actionsapi import autotools from pisi.actionsapi import pisitools from pisi.actionsapi import get WorkDir = "GeoIP-%...
[ "yusuf.aydemir@istanbul.com" ]
yusuf.aydemir@istanbul.com
564d007f30314f626af2a6f9ebbfe6aa75131c69
1c4a19c0d1953280f79193f30ad8c4759e3aff58
/ansys/dpf/core/operators/math/conjugate.py
ddeae28fea91fca0f6c68e3c561790131c01251f
[ "MIT" ]
permissive
hoangxuyenle/DPF-Core
d02c843b678560f12715ea90dc8c9764b3bffc99
a404dd290c7b3ee75463b2487cafb8bf48468691
refs/heads/master
2023-06-15T15:27:02.597938
2021-06-22T15:19:04
2021-06-22T15:19:04
381,611,135
0
0
MIT
2021-06-30T07:18:30
2021-06-30T07:18:30
null
UTF-8
Python
false
false
4,859
py
""" conjugate ========= """ from ansys.dpf.core.dpf_operator import Operator from ansys.dpf.core.inputs import Input, _Inputs from ansys.dpf.core.outputs import Output, _Outputs, _modify_output_spec_with_one_type from ansys.dpf.core.operators.specification import PinSpecification, Specification """Operators from Ans.D...
[ "lea.paradis@ansys.com" ]
lea.paradis@ansys.com
76223c165e5e9ac07147392a1c676096c926a704
9f1039075cc611198a988034429afed6ec6d7408
/tensorflow-stubs/python/debug/cli/ui_factory.pyi
b43ca70100629b7c956effd95df1bc66726070c7
[]
no_license
matangover/tensorflow-stubs
9422fbb1cb3a3638958d621461291c315f9c6ec2
664bd995ef24f05ba2b3867d979d23ee845cb652
refs/heads/master
2020-05-23T12:03:40.996675
2019-05-15T06:21:43
2019-05-15T06:21:43
186,748,093
0
0
null
null
null
null
UTF-8
Python
false
false
352
pyi
# Stubs for tensorflow.python.debug.cli.ui_factory (Python 3) # # NOTE: This dynamically typed stub was automatically generated by stubgen. from typing import Any as Any, Optional as Optional SUPPORTED_UI_TYPES: Any def get_ui(ui_type: Any, on_ui_exit: Optional[Any] = ..., available_ui_types: Optional[Any] = ..., co...
[ "matangover@gmail.com" ]
matangover@gmail.com
3f45a0ead1cf4666a92a4e6dc6450c3ac923cd4a
e5efada3529d94875455c4230c8dabe27fb72a89
/apps/api/migrations/0015_auto_20230210_1801.py
aa364ba5d0abda9b62dcdf65fd85023772bbf6fc
[]
no_license
alexmon1989/uma
d8c321fb0ec9b1a9039b1c83aeaaff774f657416
5dea579d634eeb1c8103c21157299b33ca5590f0
refs/heads/master
2023-08-03T04:31:13.598577
2023-07-22T18:17:13
2023-07-22T18:17:13
154,835,498
0
0
null
2023-03-02T11:20:54
2018-10-26T13:02:12
Nunjucks
UTF-8
Python
false
false
411
py
# Generated by Django 3.2.12 on 2023-02-10 18:01 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0014_auto_20211213_1900'), ] operations = [ migrations.AddField( model_name='opendata', name='files_path', ...
[ "alex.mon1989@gmail.com" ]
alex.mon1989@gmail.com
a220aea2b5c78023a22076d9c19a6dd6523da5d2
30d1902232eb9ddb84fdf5404a3a1dfd6232406a
/wxpython/project/panels/WorkExperience.py
17bf63ac737356239469250d54b41bd0999928ea
[]
no_license
sxnys/mypython
c3a768b054077ed97ff1e2fac31cb93f0765deb3
de48cd883ad2de3320cb0c6b46b451ebb2311ac7
refs/heads/master
2022-11-07T15:11:48.936412
2019-04-14T12:04:30
2019-04-14T12:04:30
119,686,106
0
1
null
2022-10-31T05:13:00
2018-01-31T12:46:06
Python
UTF-8
Python
false
false
791
py
# -*- coding: utf-8 __author__ = 'Sxn' __date__ = '2017/5/22 19:09' from . import StudyExperience from extra import JsonIO class TabPanel(StudyExperience.TabPanel): def __init__(self, parent): StudyExperience.TabPanel.__init__(self, parent, tabName=u'工作经历', instructText=u'含学术兼职情况', numLimit=10, editInfo=[...
[ "1119112647@qq.com" ]
1119112647@qq.com
5e65254844f16b658ad6828501d1c3536c170e7f
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/63/usersdata/230/28042/submittedfiles/swamee.py
88094a850a0912518cfb951ac45f0e9faca901c7
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
493
py
# -*- coding: utf-8 -*- import math #COMECE SEU CÓDIGO AQUI f = float(input('Digite o valor de f: ')) L = float(input('Digite o valor de L: ')) Q = float(input('Digite o valor de Q: ')) DeltaH = float(input('Digite o valor de DeltaH: ')) v = float(input('Digite o valor de v: ')) g = 9.81 E = 0.000002 D = ((8*f*L*(Q**2)...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
2d1ff66d90a2adb3e0779f18b5a50d2212b45545
13f5984be7be77852e4de29ab98d5494a7fc6767
/LeetCode/binary_serach_tree.py
ac894fb9c1a5994df4054cf4407beae85859a72b
[]
no_license
YuanXianguo/Python-Interview-Master
4252514763fc3f563d9b94e751aa873de1719f91
2f73786e8c51dbd248341559de171e18f67f9bf2
refs/heads/master
2020-11-26T18:14:50.190812
2019-12-20T02:18:03
2019-12-20T02:18:03
229,169,825
0
0
null
null
null
null
UTF-8
Python
false
false
3,513
py
from tree import Tree class Node(object): """结点""" def __init__(self, val=None): self.val = val self.left = None self.right = None class BinarySearchTree(Tree): """二叉搜索树""" def __init__(self, node=None): super().__init__(node) def insert(self, val): """二叉...
[ "736913978@qq.com" ]
736913978@qq.com
05f2f300257d5ca6375765b26379c1ae5bcd4984
3ec9d3aa7e59475683dba30a87ca68242a7ec181
/cn/edgedetection/03Sample.py
843592f93fc567466fb142220d9454d1c28724ac
[ "Apache-2.0" ]
permissive
Jasonandy/Python-X
58bf36499572cdfb7d7bf80c6a3cd0c818f62c1e
2f02b9a17bd5495dd1f8746b191f11ec2d7bccbe
refs/heads/master
2021-06-16T17:07:29.277404
2021-03-07T14:17:05
2021-03-07T14:17:05
175,353,402
0
2
null
null
null
null
UTF-8
Python
false
false
2,419
py
""" 边缘检测示列 https://blog.csdn.net/HuangZhang_123/article/details/80511270 """ import cv2 import numpy as np def show_image(image_path): """ show_image 展示 :param image_path: :return: """ img = cv2.pyrDown(cv2.imread(image_path, cv2.IMREAD_UNCHANGED)) # threshold 函数对图像进行二化值处理,由于处理后图像对原图像有所变化,...
[ "jasonandy@hotmail.com" ]
jasonandy@hotmail.com
13e9b3fafe2f0f5e0947fec71bd1d9c4f1fd6730
2a171178942a19afe9891c2425dce208ae04348b
/kubernetes/client/models/v1_job_list.py
4c27f86f781c5f929aaeab8ca1386fdec70302fc
[ "Apache-2.0" ]
permissive
ouccema/client-python
ac3f1dee1c5ad8d82f15aeecb87a2f5f219ca4f4
d7f33ec53e302e66674df581904a3c5b1fcf3945
refs/heads/master
2021-01-12T03:17:54.274888
2017-01-03T22:13:14
2017-01-03T22:13:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,395
py
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.5.0-snapshot Generated by: https://github.com/swagger-api/swagger-codegen.git Licensed under the Apache License, Version 2.0 (the "Li...
[ "mehdy@google.com" ]
mehdy@google.com
51e410a7583b82d254106376c125b43aa5f99007
ed7e61c8eef7fb2213adeb67557d605470c17fb3
/ML/confusion-matrix/split_two.py
b3bc65d93e39225a414ead9d46ec4d8d6b6fd697
[]
no_license
MartinThoma/algorithms
535840224323822f2ea6b7dd6f82a0fdd22a0ff9
a251e9599b685dbf89c891f02d20fefd8538ead5
refs/heads/master
2023-02-23T17:58:10.913634
2023-02-21T05:58:59
2023-02-21T05:58:59
4,939,076
241
126
null
2023-02-16T05:16:23
2012-07-07T16:07:23
Python
UTF-8
Python
false
false
6,693
py
#!/usr/bin/env python """Split the classes into two equal-sized groups to maximize accuracy.""" import json import os import random import numpy as np random.seed(0) import logging import sys from visualize import apply_permutation, plot_cm, read_symbols, swap, swap_1d logging.basicConfig(format='%(asctime)s %(le...
[ "info@martin-thoma.de" ]
info@martin-thoma.de
f5435f602b8973519150389a75dd7328fe65e570
c0f808504dd3d7fd27c39f1503fbc14c1d37bf9f
/sources/scipy-scipy-414c1ab/scipy/sparse/linalg/dsolve/umfpack/tests/try_umfpack.py
6f7cd7acdb421fa1497d93d5b68da26ef2943b61
[]
no_license
georgiee/lip-sync-lpc
7662102d4715e4985c693b316a02d11026ffb117
e931cc14fe4e741edabd12471713bf84d53a4250
refs/heads/master
2018-09-16T08:47:26.368491
2018-06-05T17:01:08
2018-06-05T17:01:08
5,779,592
17
4
null
null
null
null
UTF-8
Python
false
false
6,310
py
#!/usr/bin/env python # Created by: Robert Cimrman, 05.12.2005 """Benchamrks for umfpack module""" from optparse import OptionParser import time import urllib import gzip import numpy as np import scipy.sparse as sp import scipy.sparse.linalg.dsolve.umfpack as um import scipy.linalg as nla defaultURL = 'http://www...
[ "georgios@kaleadis.de" ]
georgios@kaleadis.de
fc25356354bc680cf49d82450ed1864df13bc7cb
18ccaa1160f49f0d91f1d9dc376f860aed8a9c2a
/tracpro/groups/tests/test_middleware.py
170e207ec77587705841395a880fa174d72a1d05
[ "BSD-3-Clause" ]
permissive
caktus/tracpro
bb6033b170b7a77cf9ac76b1be2779b71afa80e0
368f43e666d3c718843dffe934ba35ca859ebaf7
refs/heads/develop
2020-12-24T22:06:21.341755
2016-01-22T13:16:29
2016-01-22T13:16:29
50,186,576
0
0
null
2016-01-22T14:38:29
2016-01-22T14:38:28
null
UTF-8
Python
false
false
8,083
py
from django.contrib.auth.models import AnonymousUser from django.test import RequestFactory from tracpro.test import factories from tracpro.test.cases import TracProTest from ..middleware import UserRegionsMiddleware from ..models import Region class TestUserRegionsMiddleware(TracProTest): def setUp(self): ...
[ "rebecca@caktusgroup.com" ]
rebecca@caktusgroup.com
7e60a4df9930178e0ae0a8e732141a2219d3acd4
a0cbbc57dd1b583ab66ce37ad8c6970e74a600ba
/raylab/policy/modules/model/stochastic/single.py
0aa460ac8354ed4246fca21f0ef0ac8245a399ee
[ "MIT" ]
permissive
GapData/raylab
ccf6c39ea20d5568561207d92a4b9097657fb909
c5e862334dc1f29a09b42286ddcc40e72c6eb3a2
refs/heads/master
2022-12-19T07:09:45.799180
2020-09-29T17:09:54
2020-09-29T17:09:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,157
py
"""NN modules for stochastic dynamics estimation.""" from dataclasses import dataclass from typing import List from typing import Tuple import torch import torch.nn as nn from gym.spaces import Box from torch import Tensor import raylab.torch.nn as nnx import raylab.torch.nn.distributions as ptd from raylab.policy.mo...
[ "angelolovatto@gmail.com" ]
angelolovatto@gmail.com
59128387488db0592ddb5fef863061a8952d1da3
929cdbe211fbf254e1ec8122f9b48fa32520232c
/analysisflow.py
0f35da16f85c1ab0b53e1d567b3def8ec7103f46
[]
no_license
arizzi/nail
c8edec306628cecd269ad9d4241100afdbf6a7fc
a5ba9aed1bcc266cd9d9a36167ce66e51d851e8f
refs/heads/master
2023-05-11T15:55:34.038861
2023-05-05T12:56:42
2023-05-05T12:56:42
162,547,201
3
1
null
2023-02-22T15:40:31
2018-12-20T08:09:10
Python
UTF-8
Python
false
false
3,501
py
from .nail import * flow.SetAlias("n(.*)", "\\1.size()", defaultPersitency=True) flow.SetAlias( "(.*)_p4", "{TLorentzVector ret; ret.SetPtEtaPhiM(\\1_pt,\\1_eta,\\1_phi,\\1_mass); return ret;}", defaultPersistency=False) # SubCikkectuib actuib" flow.SetAlias("SelectedMuon_(.*)([\.*\])", "Muon_\1[SelectedMuon[\2]]")...
[ "andrea.rizzi@cern.ch" ]
andrea.rizzi@cern.ch
c43f3fc077de3a17d699c5cb4c8416a0f23c88d5
315450354c6ddeda9269ffa4c96750783963d629
/CMSSW_7_0_4/src/TotemDQMLite/GUI/scripts/.svn/text-base/reco_template_T1_cfg.py.svn-base
f60ffa0be9c54729e058dea21046f4747c66c5f4
[]
no_license
elizamelo/CMSTOTEMSim
e5928d49edb32cbfeae0aedfcf7bd3131211627e
b415e0ff0dad101be5e5de1def59c5894d7ca3e8
refs/heads/master
2021-05-01T01:31:38.139992
2017-09-12T17:07:12
2017-09-12T17:07:12
76,041,270
0
2
null
null
null
null
UTF-8
Python
false
false
2,233
import FWCore.ParameterSet.Config as cms process = cms.Process("recoT1") # Specify the maximum events to simulate process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(100) ) # Configure if you want to detail or simple log information. # LoggerMax -- detail log info output including: errors.log, w...
[ "eliza@cern.ch" ]
eliza@cern.ch
b4e990d93bfd4a2916201a75c53557884579150a
f62fd455e593a7ad203a5c268e23129473d968b6
/python-watcherclient-1.0.0/watcherclient/osc/plugin.py
5885de3b4873319fa9e70d64baded41315c15e6c
[ "Apache-2.0" ]
permissive
MinbinGong/OpenStack-Ocata
5d17bcd47a46d48ff9e71e2055f667836174242f
8b7650128cfd2fdf5d6c8bc4613ac2e396fb2fb3
refs/heads/master
2021-06-23T05:24:37.799927
2017-08-14T04:33:05
2017-08-14T04:33:05
99,709,985
0
2
null
2020-07-22T22:06:22
2017-08-08T15:48:44
Python
UTF-8
Python
false
false
1,854
py
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distrib...
[ "gongwayne@hotmail.com" ]
gongwayne@hotmail.com
b13aec275da4151009697accac9711e4949a705d
76f549c062600a0c713315a9a7361ebb111178f8
/Taller/Preguntas/PrimeraPregunta.py
329f447c04d5a3317beecceb811b7df4bb35473d
[]
no_license
jorszs/AI
f612f26537fc3563dd2837c8f67801f091f7e3a0
05a839e6e115e7c6c9378e84d5ac7f50afe2870d
refs/heads/master
2020-03-11T17:57:32.555978
2018-06-07T01:48:36
2018-06-07T01:48:36
130,162,558
0
1
null
null
null
null
UTF-8
Python
false
false
1,335
py
import urllib3 def getNameNodes(): i = 0 res = {} archivo = open('links.csv', 'rt') for linea in archivo: k = linea.replace(' ', '') k = k.replace('\n', '') if i > 0: j = k.split('.') if j[0] in res: res[j[0]].append(k) ...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
f514f0c972565ebfc8022902b1abcc0fa242ca14
9d07335de5a17453bf8ae290d70993d7b20dddcd
/.history/dice_20210223203524.py
a9e39059915547dad83aa8fbce4c3cc0fedfd011
[]
no_license
wh-debug/Matplotlib
8d12291cd4135b3b42c185e6700f22c627ddb046
b4f5bf63d977620f799d953c67b262c75344a1cb
refs/heads/master
2023-03-14T10:09:33.602492
2021-02-23T13:51:21
2021-02-23T13:51:21
340,374,612
0
0
null
null
null
null
UTF-8
Python
false
false
672
py
''' Author: your name Date: 2021-02-23 20:07:30 LastEditTime: 2021-02-23 20:35:24 LastEditors: Please set LastEditors Description: In User Settings Edit FilePath: \Matplotlib\dice.py ''' from make_plotly import Die import matplotlib.pyplot as plt x_values = [1, 2, 3, 4, 5, 6] y_values = [] die = Die() #todo 创建一个空列表结...
[ "1813763848@qq.com" ]
1813763848@qq.com
3b9283807f9a633e9ca03ea36b3db90607bb9388
5063587053951fc1dc558c657d06e0b99187baf5
/electrumx/server/controller.py
6c449b6927f07497c4a7bd4b643a57b2177d5729
[ "MIT" ]
permissive
Japangeek/electrumx
04cbd7f793afe9fa2dff8adad8e7900f4a80b279
a4ea34c6fb9bc887afb19779bde107d97006d8b7
refs/heads/master
2020-05-15T11:46:52.339001
2019-04-18T13:29:37
2019-04-18T13:29:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,092
py
# Copyright (c) 2016-2018, Neil Booth # # All rights reserved. # # See the file "LICENCE" for information about the copyright # and warranty status of this software. from asyncio import Event from aiorpcx import _version as aiorpcx_version, TaskGroup import electrumx from electrumx.lib.server_base import ServerBase ...
[ "kyuupichan@gmail.com" ]
kyuupichan@gmail.com
6c201191527104f2d328b58b2ba84caec9c846d3
a5ea93395d8d762caefd129648b2e954754afb00
/examples/6_p_scale_test_Yokoo_Pt.py
fc618a74a4e14089082439c5476fe6df9f86e0e2
[ "Apache-2.0" ]
permissive
SHDShim/pytheos
4295e233dd089d0c9c66218a127d3f099f1d36df
bb86e0ff345efcffb04f08182c09b06b3c54930e
refs/heads/master
2023-03-16T23:23:56.840071
2023-03-11T03:13:23
2023-03-11T03:13:23
93,273,486
7
6
Apache-2.0
2019-11-18T13:11:46
2017-06-03T20:54:46
Python
UTF-8
Python
false
false
1,369
py
# coding: utf-8 # In[1]: get_ipython().run_line_magic('cat', '0Source_Citation.txt') # In[2]: get_ipython().run_line_magic('matplotlib', 'inline') # %matplotlib notebook # for interactive # For high dpi displays. # In[3]: get_ipython().run_line_magic('config', "InlineBackend.figure_format = 'retina'") # ...
[ "SHDShim@gmail.com" ]
SHDShim@gmail.com
8aad654f743a97284e6607a741abc184b41bf200
25ebc03b92df764ff0a6c70c14c2848a49fe1b0b
/daily/20181014/example_pycomment/pycomment.py
4604d5e1df1248b710f77c3ea0471b933a54d818
[]
no_license
podhmo/individual-sandbox
18db414fafd061568d0d5e993b8f8069867dfcfb
cafee43b4cf51a321f4e2c3f9949ac53eece4b15
refs/heads/master
2023-07-23T07:06:57.944539
2023-07-09T11:45:53
2023-07-09T11:45:53
61,940,197
6
0
null
2022-10-19T05:01:17
2016-06-25T11:27:04
Python
UTF-8
Python
false
false
6,165
py
import sys import contextlib from io import StringIO from lib2to3 import pytree from lib2to3 import pygram from lib2to3.pgen2 import driver from lib2to3.pgen2 import token from lib2to3.pgen2.parse import ParseError from lib2to3.fixer_util import Assign, Name, Newline # utf8 's PUA(https://en.wikipedia.org/wiki/Private...
[ "ababjam61+github@gmail.com" ]
ababjam61+github@gmail.com
221ab1ad77324845627959d14968b0eed0e8e187
f66016b962e105898ea14982e229bd44f66f32a2
/settings.py
c142f11377dc1d70c39b3451e46f9a4f2ab30a36
[ "MIT" ]
permissive
DerThorsten/pc
d3ceace388dd3460c0133e97b7fba0fde8d1e811
41d7474ceff8de7b95be5d4fbc42a40e89799e34
refs/heads/master
2021-01-12T10:41:47.797694
2016-11-10T21:59:35
2016-11-10T21:59:35
72,621,794
0
0
null
null
null
null
UTF-8
Python
false
false
4,216
py
from collections import OrderedDict import h5py from features import registerdFeatureOperators class Settings(object): def __init__(self, settingsDict, predictionSettingsDict=None): self.settingsDict = settingsDict self.featureBlockShape = tuple(self.settingsDict["setup"]["blockShape"]) ...
[ "thorsten.beier@iwr.uni-heidelberg.de" ]
thorsten.beier@iwr.uni-heidelberg.de
c31a0e73d6e975d7fadf3b697bac94aa6dd6b066
3c06dc187183b5f78dbe24d38f7a3556b7cc9975
/Python/LC51_NQueens.py
24f5ce90b79b47c78b3abc2259af3dc85e7f029c
[]
no_license
wondershow/CodingTraining
071812ffd34850ce0417b95a91ac39a983fca92d
0250c3764b6e68dfe339afe8ee047e16c45db4e0
refs/heads/master
2021-07-02T22:18:46.774286
2021-06-30T14:08:54
2021-06-30T14:08:54
77,458,117
0
1
null
null
null
null
UTF-8
Python
false
false
1,110
py
class Solution: def solveNQueens(self, n: int) -> List[List[str]]: def generate_board(pos, n): res = [] for i in range(n): line = ["."] * n line[pos[i]] = "Q" res.append("".join(line)) return res cols, diagn...
[ "noreply@github.com" ]
wondershow.noreply@github.com
87f86ee5f18ff897da50586e96692fc1a9d89d64
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03371/s901597766.py
123ae25fb816ba52b35bc7528454231feb8593bf
[]
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
532
py
A, B, C, X, Y = map(int, input().split()) cntA = 0 cntB = 0 cntC = 0 value = 0 if 2*C<=A+B: #Cで買いそろえた方が安いので #(max(X, Y)-abs(X-Y))*2枚は買うことになる Cmaisu = (max(X, Y)-abs(X-Y))*2 value += C * Cmaisu if (2*C<=A and X>Y) or (2*C<=B and X<Y): #abs(X-Y)枚についても2Cが安けりゃCで買う value += C * abs(X-Y) *...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
f6b658b1ddac70cd71d916a2ed089c862e530a4e
f8666599b83d34c861651861cc7db5b3c434fc87
/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/_templateitemname.py
3aca0890a4cb67b0ff4f477575d146dfbe41dbf8
[ "MIT" ]
permissive
mode/plotly.py
8b66806e88c9f1820d478bab726f0bea81884432
c5a9ac386a40df2816e6c13264dadf14299401e4
refs/heads/master
2022-08-26T00:07:35.376636
2018-09-26T19:08:54
2018-09-26T19:19:31
60,372,968
1
1
MIT
2019-11-13T23:03:22
2016-06-03T19:34:55
Python
UTF-8
Python
false
false
545
py
import _plotly_utils.basevalidators class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): def __init__( self, plotly_name='templateitemname', parent_name='scatterpolargl.marker.colorbar.tickformatstop', **kwargs ): super(TemplateitemnameValidat...
[ "noreply@github.com" ]
mode.noreply@github.com
bf825d15878d7b99d77904e32eb9daf305bfa790
4eaa1b9b08914e0a2cc9276363e489ccef19d3a2
/ch3/guest_list.py
3a09e97b39d325d4f92b191d3cabd2777d74e4f8
[]
no_license
melihcanyardi/Python-Crash-Course-2e-Part-I
69b3b5b3f63cdbd7be6fabd6d4f2ddfd9a3434a3
0c9b250f512985c04b2c0397f3afaa8bf3a57f17
refs/heads/main
2023-03-12T21:43:14.012537
2021-03-03T19:23:41
2021-03-03T19:23:41
344,236,741
0
0
null
null
null
null
UTF-8
Python
false
false
416
py
guest_list = ['Ali', 'Ayşe', 'Mehmet', 'Ahmet'] message = f"Hey {guest_list[0]}, would you like to join me for the dinner?" print(message) message = f"Hey {guest_list[1]}, would you like to join me for the dinner?" print(message) message = f"Hey {guest_list[2]}, would you like to join me for the dinner?" print(messag...
[ "melihcanyardi@hotmail.com" ]
melihcanyardi@hotmail.com
4696d4803fcbd9b7f1fa002caeed6d15ed478d7e
4d0f3e2d7455f80caea978e4e70621d50c6c7561
/Threading/Lock.py
efce0601f22fa1de07581c3637eba0dc6384a431
[]
no_license
mhdr/PythonSamples
66940ee2353872d2947c459e3865be42140329c6
1a9dccc05962033ea02b081a39cd67c1e7b29d0c
refs/heads/master
2020-04-14T01:10:13.033940
2016-05-28T15:33:52
2016-05-28T15:33:52
30,691,539
1
0
null
null
null
null
UTF-8
Python
false
false
164
py
import threading from threading import Lock def print_multi(): lock=Lock() lock.acquire() print("Hello World") lock.release() print_multi()
[ "ramzani.mahmood@gmail.com" ]
ramzani.mahmood@gmail.com
4733bae1eb944dc330c20c4483dd7b1171de45b2
99833651e4a6a0bc1221d577d9fc43b8568abedd
/nltk_contrib/hadoop/tf_idf/tf_map.py
25f49052f7b5472b8a00478c177aac8e3dd514cd
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
nltk/nltk_contrib
689e2683aa01b120c7473b9a4fc50bc49f014390
95d1806e2f4e89e960b76a685b1fba2eaa7d5142
refs/heads/master
2023-07-31T13:32:47.358897
2022-11-21T18:49:33
2022-11-21T18:49:33
2,530,774
145
127
NOASSERTION
2022-11-21T18:49:34
2011-10-07T05:59:13
Python
UTF-8
Python
false
false
692
py
from hadooplib.mapper import MapperBase class TFMapper(MapperBase): """ get the filename (one filename per line), open the file and count the term frequency. """ def map(self, key, value): """ output (word filename, 1) for every word in files @param key: None @par...
[ "stevenbird1@gmail.com" ]
stevenbird1@gmail.com
d68dd9aee38f272a57637402ae90918c73bc1986
641df38bb75077cd8da28b69e38b84af293b5db7
/docassemble_base/setup.py
73a6d2bf9b44a96183a19d6f23282978224b061d
[ "MIT" ]
permissive
bgordo3/docassemble
f19e01f2daf41eb05e2c19b5d4278bdc0d6d3ea5
3ce22e22e818598badc2242038f4e4abc4ee9fde
refs/heads/master
2020-12-26T01:03:14.840009
2016-05-15T13:50:35
2016-05-15T13:50:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,809
py
#!/usr/bin/env python import os import sys from setuptools import setup, find_packages from fnmatch import fnmatchcase from distutils.util import convert_path standard_exclude = ('*.py', '*.pyc', '*~', '.*', '*.bak', '*.swp*') standard_exclude_directories = ('.*', 'CVS', '_darcs', './build', './dist', 'EGG-INFO', '*....
[ "jpyle@philalegal.org" ]
jpyle@philalegal.org
47821cfbba0dbe4c3efe3982af6bf0e12bc36614
8e7a2b9efbc0d25111f01f4cddb781961032685a
/python-1025/python/a_socket/3_ssh/cli.py
a8eb9d81fb94a0cd363d5f6691ffd91955caf960
[]
no_license
Dituohgasirre/python
e044aa2e1fb2233b6ccd59701b834ab01e4e24c2
05f036d2723f75cd89e4412aaed7ee0ba5d3a502
refs/heads/master
2023-06-03T13:50:18.641433
2021-06-17T10:23:40
2021-06-17T10:23:40
366,942,423
0
0
null
null
null
null
UTF-8
Python
false
false
834
py
#!/usr/bin/env python3 import socket from pargs import parse from net import Packet if __name__ == "__main__": def main(): args, opt = parse(['s|srv|1', 'p|port|1']) srvIp = opt['srv'] if 'srv' in opt else "3.3.3.3" port = int(opt['port']) if 'port' in opt else 9000 sd = socket....
[ "linfeiji4729289@126.com" ]
linfeiji4729289@126.com
aa886a213c5f135a412aba43490ad62764c40613
33836016ea99776d31f7ad8f2140c39f7b43b5fe
/fip_collab/2017_02_24_HCF_pearson/get_linkage_alt.py
81760c80d5b2307eb97b7f5b1d063001511737ce
[]
no_license
earthexploration/MKS-Experimentation
92a2aea83e041bfe741048d662d28ff593077551
9b9ff3b468767b235e7c4884b0ed56c127328a5f
refs/heads/master
2023-03-17T23:11:11.313693
2017-04-24T19:24:35
2017-04-24T19:24:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,035
py
import numpy as np import functions as rr import reg_functions as rf from constants import const from scipy.stats import pearsonr import h5py import time from sklearn.preprocessing import PolynomialFeatures def analysis(X, response_tot, groups, iscal): RpredCV = rf.cv(X[iscal, :], response_tot[iscal], groups[isc...
[ "noahhpaulson@gmail.com" ]
noahhpaulson@gmail.com
cfcf4c4c948d02a6254d41f9f56773077bb97583
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/59/usersdata/201/47100/submittedfiles/testes.py
ffc9bae8827fb40a5106a1cf09f62f630d98ad23
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
288
py
# -*- coding: utf-8 -*- #COMECE AQUI ABAIXO r=float(input('Quanto ganha por hora:')) h=float(input('Horas trabalhadas no mês:')) t=r*t print('%.2f' %t) inss=0.08: i=inss*t print('Desconto do INSS:' '%.2f' %i) sind=0.05: j=sind*t print('Desconto do sindicato:' '%.2f' %j)
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
c2db9fed8d3d7953430514b58aa47a57e52a59f2
6acea1c5206052393beb5cba132f40e55b637c11
/doc_curation/scraping/misc_sites/iitk.py
6df37d4e6779f4afcd0c5073d46022a249314662
[ "MIT" ]
permissive
sanskrit-coders/doc_curation
a44afacf68d1711bcebd02c97b30a42b6d82bccc
db330393d3df052c008811f4b442421900e5fa84
refs/heads/master
2023-08-27T09:41:22.784001
2023-08-11T05:40:46
2023-08-11T05:40:46
157,027,340
8
4
MIT
2022-12-08T08:26:49
2018-11-10T22:32:26
Python
UTF-8
Python
false
false
880
py
import logging import regex from doc_curation.scraping.html_scraper import souper from indic_transliteration import sanscript def dump_item(item_url, outfile_path, title_maker): logging.info(item_url) def html_fixer(soup): souper.tag_replacer(soup=soup, css_selector="table", tag_name="div") souper.eleme...
[ "vishvas.vasuki@gmail.com" ]
vishvas.vasuki@gmail.com