blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
281
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
6
116
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
313 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
18.2k
668M
star_events_count
int64
0
102k
fork_events_count
int64
0
38.2k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
107 values
src_encoding
stringclasses
20 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.02M
extension
stringclasses
78 values
content
stringlengths
2
6.02M
authors
listlengths
1
1
author
stringlengths
0
175
8d13198a10bafeba6b94dad3cf02953c983de332
67325192c1e528a39d457f11e61b480d68826708
/mods/mcpython/Item/gold_block.py
248d5e0998a17f7d438e81b093ded15dc48a62bd
[ "MIT" ]
permissive
vashistaarav1611/mcpython-a-minecraft-clone-in-python
5851b377b54fd2b28c106112c7b18f397b71ab50
c16cd66f319efdeec4130e1a43f5a857caf1ea13
refs/heads/master
2023-02-01T22:48:51.787106
2020-12-21T15:02:25
2020-12-21T15:02:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
222
py
from .Item import * class GoldBlock(Item): def getName(self): return "minecraft:gold_block" def getTexturFile(self): return "./assets/textures/items/gold_block.png" handler.register(GoldBlock)
[ "baulukas1301@googlemail.com" ]
baulukas1301@googlemail.com
844b1e4a210ae535d99b8c29e268f0cc6c5624c4
145e38280b64a03c68f8c6bd293156cd06f8d149
/time.py
1bb03bba1dc7085ef3466e43a5cc394f537aa559
[]
no_license
Friendktt/My-work
21cf51509343d04fbed1d211356164a25a504c15
a9a7143e9affec78516806086259a00f2affa9d5
refs/heads/master
2020-03-28T16:04:50.344455
2018-10-30T17:52:04
2018-10-30T17:52:04
148,657,340
0
0
null
null
null
null
UTF-8
Python
false
false
253
py
"""time""" def main(): """time""" text = input() num = int(input()) mounth = 'JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV DEC' num1 = mounth.find(text) num2 = (num1 + num*4) % 48 print(mounth[num2:num2 + 3]) main()
[ "noreply@github.com" ]
noreply@github.com
fc3ed4e2ab098a3f20123eaa7cb3de9aef831a42
afa6ba97f05c4c05d935fc87fec6c4457f761871
/PythonStuff/complex/complex.py
cda2aa884cfda04fd777c88810415d694323e300
[]
no_license
Rubalicious/PredictionProject
a23a6b6f37000de256def4ad7ff3da630d144a5c
83b4f2037c5cb243eccb8f1f859858c6413747d4
refs/heads/master
2021-06-29T21:39:39.875815
2017-02-27T05:21:06
2017-02-27T05:21:06
35,399,016
1
0
null
null
null
null
UTF-8
Python
false
false
1,256
py
from ast import literal_eval import numpy as np import matplotlib.pyplot as plt import itertools, copy def sizeof(z): return np.sqrt(z.real**2 + z.imag**2) def map_(z, c=0): return (z)**2 + c def to_complex(u): return np.complex(u[0], u[1]) def in_M(z): c = copy.copy(z) count = 0 while sizeof(z) <=2: if cou...
[ "rabrams12@email.arizona.edu" ]
rabrams12@email.arizona.edu
0169933bc2e1d5109a0bc4234754bd5af1414393
ac822274f4fb85d6429fcb668842b9a892f0cf7a
/dynamic-programming/fibonacci/computing_fibonacci3.py
e62ee9126cc8c3f76bf7c671dfd7eda4b61efbab
[]
no_license
Vonewman/algorithm_toolbox
01738a4c56aebc1ef5e321477af1e74b55521aa0
1ce53c2933c6069770fbe36c5fa41d1a2b030138
refs/heads/master
2021-06-14T18:17:25.119585
2021-05-26T20:48:36
2021-05-26T20:48:36
195,592,083
0
0
null
null
null
null
UTF-8
Python
false
false
477
py
"""Computation of the fibonacci Number using and iterative algorithm Time Complexity: O(N) @AUTHOR: Abdoulaye Diallo (A.D.)""" def fib(n): ''' (int) -> int Return the F[n] fibonacci number which is an >>> fib(5) 5 >>> fib(10) 55 ''' T = [None] * (n + 1) T[0], T[1] = 0, 1...
[ "vonewman7@gmail.com" ]
vonewman7@gmail.com
1010ec65d867986aaaf4d6b1a73ea4d33920f131
cc5f61369ce554106252c38d502663ba6306f65a
/albow/demo/screens/LaunchDemosScreen.py
57b7d4f397ba9f086b51eb392a8f7e1a5ef017d9
[ "MIT" ]
permissive
hasii2011/albow-python-3
884e6ef704b655e6e5a7338b25e3a2c20fda60c4
04b9d42705b370b62f0e49d10274eebf3ac54bc1
refs/heads/master
2022-02-04T22:43:52.431765
2022-01-10T15:41:39
2022-01-10T15:41:39
182,160,833
9
0
null
null
null
null
UTF-8
Python
false
false
3,645
py
from typing import cast import logging from albow.core.ResourceUtility import ResourceUtility from albow.core.ui.Screen import Screen from albow.core.ui.Shell import Shell from albow.widgets.Button import Button from albow.widgets.Label import Label from albow.layout.Column import Column from albow.layout.Grid imp...
[ "Humberto.A.Sanchez.II@gmail.com" ]
Humberto.A.Sanchez.II@gmail.com
34701cf143a4d45631f9f624420e2a494c855fec
666dc64af3f5579dc213ac0ad9c2c36cb0a67c30
/src/03_practitioner_bundle/10_dogs_vs_cats/crop_accuracy.py
1cc306655316afad7fcc1c0af81f44163b8c3da3
[]
no_license
zzingobomi/Opencv
847e086cadb7429b1898f1a83e939d5aaeba9b5d
8dc7692f680e84b5bfa4c41ee06251ec3190bf26
refs/heads/master
2023-03-03T00:48:08.923019
2021-02-08T06:17:14
2021-02-08T06:17:14
328,566,587
0
0
null
null
null
null
UTF-8
Python
false
false
2,920
py
# import the necessary packages from config import dogs_vs_cats_config as config from pyimagesearch.preprocessing import ImageToArrayPreprocessor from pyimagesearch.preprocessing import SimplePreprocessor from pyimagesearch.preprocessing import MeanPreprocessor from pyimagesearch.preprocessing import CropPreprocessor f...
[ "zzingo5@naver.com" ]
zzingo5@naver.com
0dc35183393d83eb31bf25b1f1f39d1850886c4d
17ef1c7483843540ce4d063708afa65430b9301f
/tests/test_allocate.py
b4281fbb11694e1dbc38fd7af714e2195439f9b5
[ "MIT" ]
permissive
CivicKnowledge/synpums
e01f8815c5fe118ec748c248b84c862a1db15a3f
dd3793388862aa7b43eee2fc2aa96fcf21014267
refs/heads/main
2023-01-03T09:04:37.021235
2020-10-31T00:17:15
2020-10-31T00:17:15
304,128,332
0
0
null
null
null
null
UTF-8
Python
false
false
835
py
import unittest import warnings import pandas as pd import rowgenerators as rg from synpums import * from synpums.util import * warnings.filterwarnings("ignore") state = 'RI' year = 2018 release = 5 cache_dir = '/tmp/synpums' class TestAllocate(unittest.TestCase): def test_basic(self): tasks = Alloc...
[ "eric@civicknowledge.com" ]
eric@civicknowledge.com
f7157930dfe0bda3f2bc5b33961ea2c1aad3ff82
e9199038f50599735636df8c41606e916eda6c9d
/celery_config.py
0f71011b9f6b87162a97774fafdbb2a76dfe8174
[]
no_license
smatton/DashCeleryProject
00f71fc8bc90762db438107fbcc31403bcd67d18
ae6ad393f8d0ee511c20bc231d24d5ea21fbb900
refs/heads/master
2022-12-12T02:04:28.245822
2020-04-05T15:38:11
2020-04-05T15:38:11
172,076,345
0
0
null
2022-12-08T01:21:20
2019-02-22T14:04:56
Python
UTF-8
Python
false
false
196
py
from celery import Celery import appConfig BACKEND = appConfig.app_backend BROKER = appConfig.app_broker celery_app = Celery('celery_config',include=['mytasks'], backend=BACKEND, broker=BROKER)
[ "slmatton@comcast.net" ]
slmatton@comcast.net
087bc7514170d26a886ceb157ad850b49b661a4b
adea9fc9697f5201f4cb215571025b0493e96b25
/napalm_yang/models/openconfig/network_instances/network_instance/connection_points/connection_point/endpoints/endpoint/state/__init__.py
50aadd5a1163361e23e5c78af06fbd8a3a0a4ce6
[ "Apache-2.0" ]
permissive
andyjsharp/napalm-yang
d8a8b51896ef7c6490f011fe265db46f63f54248
ef80ebbfb50e188f09486380c88b058db673c896
refs/heads/develop
2021-09-09T02:09:36.151629
2018-03-08T22:44:04
2018-03-08T22:44:04
114,273,455
0
0
null
2018-03-08T22:44:05
2017-12-14T16:33:35
Python
UTF-8
Python
false
false
30,938
py
from operator import attrgetter from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType from pyangbind.lib.yangtypes import RestrictedClassType from pyangbind.lib.yangtypes import TypedListType from pyangbind.lib.yangtypes import YANGBool from pyangbind.lib.yangtypes import YANGListType from pyangbind.lib.y...
[ "dbarrosop@dravetech.com" ]
dbarrosop@dravetech.com
c2a50a2894a8886745a3b0cf6176b87cdd9ff324
bd14c979335112b7718b0feda18ebf0e3b40fe5c
/contest_093/b_small_and_large_integers_2nd.py
5090fc480a7ed5adb7ee90d373f591aadebb6a25
[]
no_license
ababa831/atcoder_beginners
22c57b15333d110126d1b1afadc0ff5e8784fc4f
1a30882ce7f20f312045d5dc7bfaa5688cc8a88e
refs/heads/master
2023-03-07T15:47:19.750682
2020-03-04T19:53:45
2020-03-04T19:53:45
143,360,607
1
1
null
null
null
null
UTF-8
Python
false
false
245
py
# Accepted a, b, k = map(int, input().split()) lower_list = [i for i in range(a, a + k)] upper_list = [i for i in range(b, b - k, -1)] out_list = sorted(set(lower_list + upper_list)) for out in out_list: if a <= out <= b: print(out)
[ "flvonlineconverter@gmail.com" ]
flvonlineconverter@gmail.com
5a5e0ce76558c3b94ad2149478844745d1f5087a
67f19ebb1fb3189e4c2f99484c1dc13af5099edb
/wii_packages/enso/gage_don_h/gage_don_h.py
08da11557b1626666c779f60cf484d446bd3aa80
[]
no_license
delguoqing/PyLMPlayer
609c4fe35e56e4ce3ce30eeb2e9244aad5ea1609
db8a1edf70ac1c11deffddc458788b3a2c2078df
refs/heads/master
2021-01-22T05:06:00.491732
2013-09-13T04:54:23
2013-09-13T04:54:23
8,878,510
5
1
null
null
null
null
UTF-8
Python
false
false
343
py
def func0(this, _global): this.stop() def func1(this, _global): this.gotoAndPlay("fever") def func2(this, _global): if 2 <= this.fever_gage._play_head <= 23: this.fever_gage.gotoAndPlay("toNormal") this.stop() def func3(this, _global): this.fever_gage.gotoAndPlay("toFever") this.stop() DATA = ( func0, fu...
[ "delguoqing@hotmail.com" ]
delguoqing@hotmail.com
dbc0f0130cf61ccefa2cb7304519c144f1dc48bf
a3c34ad9425cf9c16a09423278b81c20edd8d77a
/sms_frame/models/sms_compose.py
3cbd3cbd6f0bcc7f98da112e58038923a071a292
[]
no_license
meswapnilwagh/Odoo9
d1dca7de18ac555abe2da96fb78f0d3bd3835650
91f1e545ab597ca89283b8dc5dbf3d7f5bd5df5b
refs/heads/9.0
2020-04-08T00:24:25.179940
2016-02-22T08:49:56
2016-02-22T08:49:56
52,294,854
0
1
null
2016-02-22T18:20:41
2016-02-22T18:20:40
null
UTF-8
Python
false
false
3,144
py
# -*- coding: utf-8 -* from datetime import datetime from openerp import api, fields, models class SmsCompose(models.Model): _name = "sms.compose" error_message = fields.Char(readonly=True) record_id = fields.Integer() model = fields.Char() sms_template_id = fields.Many2one('sms.template', s...
[ "steven@sythiltech.com" ]
steven@sythiltech.com
8414d656d3e0a08a8377c7717cdb4cabfe93d099
4598524620d159bd0d6e2fc2f390299b55ec9bc0
/Kattis/iwannabe.py
669ebcb61eb86585403f1d6d7ba54c0049206772
[]
no_license
skyu0221/Kattis-UVa
a586c15851063828f8b78c66f93b833af1c27fcd
bd3a0835d4bb9a6ab50fca6e0db3c8df7cc4ed1b
refs/heads/master
2021-08-22T17:39:57.172371
2021-01-13T00:15:58
2021-01-13T00:15:58
69,905,949
0
0
null
null
null
null
UTF-8
Python
false
false
254
py
from heapq import nlargest n, k = input().split() k = int(k) data = list() for i in range(int(n)): data.append(tuple(map(int, input().split()))) sets = set() for i in range(3): sets.update(nlargest(k, data, key=lambda x: x[i])) print(len(sets))
[ "skyu0221@gmail.com" ]
skyu0221@gmail.com
6fb0242d3b682477d14e7b4fe0caebb5edcc2d43
fd936777d5be7f97accdf8f12ffc5407a7614d84
/software/openUI/OpenFrameState.py
8e41b0fe1be1bffa0c54d28914161a436941439b
[]
no_license
GiuX/giux-openwsn-sw
0f38f3d33b53e39811cecbf0177cfdeb16c948ea
f1e6a29747502bc34fb50908b2838cad5145344d
refs/heads/master
2021-01-21T00:52:24.105857
2013-03-27T00:49:08
2013-03-27T00:49:08
10,557,009
0
0
null
null
null
null
UTF-8
Python
false
false
3,747
py
import json import OpenFrame import OpenTable import OpenGuiLib class OpenFrameState(OpenFrame.OpenFrame): def __init__(self,guiParent,width=None,height=None,frameName="frame",row=0,column=0,columnspan=1): # store params self.guiParent = guiParent self.frame...
[ "watteyne@eecs.berkeley.edu" ]
watteyne@eecs.berkeley.edu
7c7b6d5899ee3e4f388506f32f261fbed6508bac
3649308c5d709100c4dc90e661fc9f564f184877
/ocs/login/models.py
bc379435ce64eb699e183aa176c7f68a662e65a4
[]
no_license
anirudhasj441/django
54171f6141d6938201146a6d3e9475477a3f0078
5bb202d13d4b17daca9aedf3b213908c3245757b
refs/heads/master
2021-07-09T06:18:11.597848
2021-03-07T17:58:32
2021-03-07T17:58:32
230,616,005
0
0
null
null
null
null
UTF-8
Python
false
false
1,042
py
from django.db import models from datetime import date # Create your models here. class Student(models.Model): # s_id = models.AutoField(primary_key=True,default="1") s_pnr = models.IntegerField(primary_key=True) s_name = models.CharField(max_length=50) s_dob = models.DateField(null=True,blank=T...
[ "anirudhasj441@gmail.com" ]
anirudhasj441@gmail.com
1bd34061677f26326c7fd922af3def6d2438d598
4b7ddd7c2f6fad3d3f83344543bde765b17c2ad0
/backend/places/migrations/0035_auto_20200411_2235.py
2dd2934701edc8225fb4937bb2122e2c2174cfb3
[ "MIT" ]
permissive
AC-Dap/savingchinatown-backend
dc68e37a6ee3268da4088a5732d6105939b5adb4
223b5cff88a114b3894062f11c57b9410e56134b
refs/heads/master
2023-08-14T13:30:54.098845
2020-11-04T14:16:01
2020-11-04T14:16:01
254,897,902
0
0
MIT
2021-09-22T19:38:36
2020-04-11T15:32:11
Python
UTF-8
Python
false
false
422
py
# Generated by Django 3.0.4 on 2020-04-11 22:35 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('places', '0034_auto_20200411_2212'), ] operations = [ migrations.RemoveField( model_name='place', name='lat', ), ...
[ "ninjaminer18@gmail.com" ]
ninjaminer18@gmail.com
0b756182dbb06f11ae85695612e0cb828956ae15
7366ce3ba86cb6af2e9ee0923d4a74d028f08c72
/2d/floatingStructures/floating_caisson_chrono/vof_p.py
1d9aa0eb3893e686d42ec54c7f00bad3049fd987
[ "MIT" ]
permissive
erdc/air-water-vv
56b939280d8d9fb81dc13b79a9de5a489e21e350
f93ff99432703292b1d62c3e9689537eae44e864
refs/heads/master
2022-08-21T23:11:16.912042
2022-08-11T16:44:47
2022-08-11T16:44:47
21,613,939
5
21
MIT
2020-11-04T19:00:46
2014-07-08T13:36:39
Python
UTF-8
Python
false
false
1,433
py
from proteus.default_p import * from proteus.ctransportCoefficients import smoothedHeaviside from proteus.mprans import VOF from proteus import Context ct = Context.get() domain = ct.domain nd = domain.nd mesh = domain.MeshOptions genMesh = mesh.genMesh movingDomain = ct.movingDomain T = ct.T LevelModelType = VOF.L...
[ "l.maurel@hrwallingford.com" ]
l.maurel@hrwallingford.com
10c70540a9623f4e0994a218263f3b689583ef58
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_049/ch25_2019_03_11_12_40_04_650432.py
1ccce705dfcb58b27c4c448e847adbc6418c6bc3
[]
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
219
py
distancia=int(input('Qual a distância do trajeto? ')) def preco(distancia): if distancia > 200: return 100+(distancia-200)*0.45 else: return distancia*0.5 print ("{:.2f}".format(preco(distancia))
[ "you@example.com" ]
you@example.com
961eff9041b1e3e22e3e0d9232574196a25542bb
1d05fb71820d118397f5973c5eeca64786e0e7af
/Optimization_Project.py
b5b5951be2ee36b8f5c0d4250a8ad0114e22fd6d
[]
no_license
aymanelghotni/Conflict_of_interests_optimization_and_surrogate_modeling
11aa71391023800214fcd08ee93a93b619d676f9
7817d847d3fc28d27d1e9866293142738b116a07
refs/heads/master
2023-03-01T11:55:12.930210
2021-01-29T02:44:27
2021-01-29T02:44:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,619
py
#!/usr/bin/env python # coding: utf-8 # <font size=6>Task 1: Creating the Surrogate Model</font> # In[373]: import matplotlib.pyplot as plt import numpy as np import tensorflow as tf from tensorflow import keras from tensorflow.keras.layers import Input,Dense from tensorflow.keras.layers.experimental import preproc...
[ "aymanelghotni@gmail.com" ]
aymanelghotni@gmail.com
5c9f2854ab21e6a4f0a2279da1cc6f59fa67e162
acb00f2d6bd40522a7a7a3375a2138572da46533
/games/Sokoban/screens/game.py
cccd4c9ce8a55f64b4209dc54e64e26a4ea7e499
[]
no_license
Nonju/rcade
377d605a2ab8188a56c63bb1a3d343a42fd2c6b5
7428bf1aaea95896713ec75b47f727bc9f40704c
refs/heads/master
2023-08-07T16:23:12.882868
2021-09-18T22:26:42
2021-09-18T22:26:42
400,798,058
0
0
null
2021-09-13T18:59:55
2021-08-28T13:21:52
Python
UTF-8
Python
false
false
8,706
py
import pygame import math import os from enum import Enum from constants import window from utils import KeyState, ThrottledUpdate, Delay from ..constants import colors from ..states import GameState from ..events import GOTOMENU LEVEL_DIR = '/../levels/' class Direction(Enum): UP = 0 RIGHT = 1 DOWN = ...
[ "albinzon@gmail.com" ]
albinzon@gmail.com
08d4d9c16e7f74c35e5cd54f0d4bb362e7e40170
2196d3798497fc7d3d80cd02b008dbb35dbd64d8
/d05/ex03/d05/d05/settings.py
db954e17e154e3496ce94053aa82cf1a75e97ac7
[]
no_license
avallete/Python-Django-Pool
d59965e1c6315520da54205848d4f59bf05a9928
cee52fe4b30cbc53135caf89a8a8843842e2daeb
refs/heads/master
2021-03-30T06:36:37.546122
2016-10-13T15:08:40
2016-10-13T15:08:40
69,851,733
4
2
null
null
null
null
UTF-8
Python
false
false
3,262
py
""" Django settings for d05 project. Generated by 'django-admin startproject' using Django 1.9. For more information on this file, see https://docs.djangoproject.com/en/1.9/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.9/ref/settings/ """ import os # Build...
[ "avallete@student.42.fr" ]
avallete@student.42.fr
38a9d372205ce1eadcf83995b5d1a84961c7f6a4
ed083578e7facb03ab7f1b1e0462894e381e1837
/PresentationScripts/hysteresis_prl/collisionality_plots_better_test.py
6fe8a3cfc0593e999736b7932c810b640a74cc4f
[]
no_license
Maplenormandy/psfc-misc
8cf9dc3a5c66993b72523bf1d74f33eac6326aa4
e73a70c0e38efcda33452b2fd6439897ddbb1d7f
refs/heads/master
2021-05-23T07:05:05.706105
2020-05-18T07:05:48
2020-05-18T07:05:48
42,888,149
0
0
null
null
null
null
UTF-8
Python
false
false
10,740
py
# -*- coding: utf-8 -*- """ Created on Mon Jun 13 17:15:04 2016 @author: normandy """ from __future__ import division import profiletools import gptools import eqtools import numpy as np import scipy import readline import MDSplus import matplotlib.pyplot as plt import sys sys.path.append('/home/normandy/git/psf...
[ "maplenormandy@gmail.com" ]
maplenormandy@gmail.com
098f68ce0de1a4e85ab1ea096ed45ccf2fff3eeb
4bed9030031fc99f6ea3d5267bd9e773f54320f8
/sparse/repos/Calysto/matlab_kernel/setup.py
313419fcbb79751dd03972ceb291c85638644417
[ "BSD-3-Clause" ]
permissive
yuvipanda/mybinder.org-analytics
c5f4b939541d29727bc8d3c023b4d140de756f69
7b654e3e21dea790505c626d688aa15640ea5808
refs/heads/master
2021-06-13T05:49:12.447172
2018-12-22T21:48:12
2018-12-22T21:48:12
162,839,358
1
1
BSD-3-Clause
2021-06-10T21:05:50
2018-12-22T20:01:52
Jupyter Notebook
UTF-8
Python
false
false
1,680
py
import glob from setuptools import setup, find_packages with open('matlab_kernel/__init__.py', 'rb') as fid: for line in fid: line = line.decode('utf-8') if line.startswith('__version__'): version = line.strip().split()[-1][1:-1] break DISTNAME = 'matlab_kernel' PACKAGE_DAT...
[ "yuvipanda@gmail.com" ]
yuvipanda@gmail.com
210bc7bd0293918d3ca37014a57b68ebe2823f96
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03408/s214379251.py
fba6c07029d057c1512feb87f8d481f483ef4cb4
[]
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
283
py
N = int(input()) ListP = [] for i in range (N): ListP.append(input()) M = int(input()) ListN = [] for i in range (M): ListN.append(input()) res = 0 mid = 0 for i in range(N): mid += ListP.count(ListP[i]) mid += -ListN.count(ListP[i]) res = max(res,mid) mid = 0 print(res)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
07f87234adb59300c6bb17578632811553a04257
8cf633e92a0671c8201268620a0372f250c8aeb2
/205.同构字符串.py
f76217c78e58ac420845c37b25d7da82a86ce71d
[ "Unlicense" ]
permissive
SprintGhost/LeetCode
76da5c785009d474542e5f2cdac275675b8e60b8
cdf1a86c83f2daedf674a871c4161da7e8fad17c
refs/heads/develop
2021-06-06T04:04:28.883692
2021-01-01T14:09:26
2021-01-01T14:09:26
230,635,046
0
0
Unlicense
2020-12-11T14:55:36
2019-12-28T16:34:39
Python
UTF-8
Python
false
false
1,636
py
# # @lc app=leetcode.cn id=205 lang=python3 # # [205] 同构字符串 # # Accepted # 30/30 cases passed (48 ms) # Your runtime beats 55.2 % of python3 submissions # Your memory usage beats 16.3 % of python3 submissions (14.1 MB) # @lc code=start class Solution: def isIsomorphic(self, s: str, t: str) -> bool: if (not...
[ "864047435@qq.com" ]
864047435@qq.com
737ec07de6c5ea89bf1610e81acecb3e9200babb
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5708284669460480_0/Python/zdan/B.py
e89eff79728bb389faaa4be1f8d9b26f813576ea
[]
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,651
py
import sys import itertools import numpy as np def occurrences(string, target): if len(target) > 1 and target[0] == target[-1]: count = start = 0 while True: start = string.find(target, start) + 1 if start > 0: count += 1 else: ...
[ "eewestman@gmail.com" ]
eewestman@gmail.com
431bf8d8bc783d040640116cb8ab3624990c4cd1
eb8ce153f2e4aac8d88b08bd77a1bfb452433735
/58168_Nicolas_Carratala/clase3/diccionario_console_app/interface.py
ebde543f8ea95dc0a712688f4169c7ae509169d5
[]
no_license
nicolascarratala/version-2019
63acc0328ed7012f02bf6b5ae784f2fd25bfe34c
0c6c4d88d3284b509d6c2338e8667903fc29178a
refs/heads/master
2020-05-18T07:35:21.328037
2019-05-22T13:15:38
2019-05-22T13:15:38
184,269,148
0
0
null
2019-04-30T13:40:52
2019-04-30T13:40:51
null
UTF-8
Python
false
false
166
py
from dictionary import dictionary_creator def main(): a=input('ingrese una plabra para introducirla en un diccionario:') print(dictionary_creator(a)) main()
[ "ncarratala@aconcaguasf.com.ar" ]
ncarratala@aconcaguasf.com.ar
554b02c0fd1b8bac352fe742a597f5be3d13b43d
8222dcbb226682a9112720927361877a92185407
/fluent_contents/plugins/sharedcontent/managers.py
7bd0a8f6915af76928eb41ced0dc3898c6d93cf6
[ "Apache-2.0" ]
permissive
acolorbright/django-fluent-contents
ada4a5fedb590e5f679463221fce2f965730bac1
4e5c6e99134ceee804bb42391ec37e5e17ff5a7e
refs/heads/master
2023-04-12T05:31:19.179528
2018-05-14T11:10:16
2018-05-14T11:10:16
108,149,326
0
0
Apache-2.0
2023-04-04T00:22:27
2017-10-24T15:48:46
Python
UTF-8
Python
false
false
1,888
py
from django.conf import settings from django.db.models import Q, Manager from parler.managers import TranslatableQuerySet from fluent_contents import appsettings from fluent_contents.plugins.sharedcontent import appsettings as sharedcontent_appsettings class SharedContentQuerySet(TranslatableQuerySet): """ Th...
[ "vdboor@edoburu.nl" ]
vdboor@edoburu.nl
956b57a9281f9184ba90e3a56f5b32bd170bcffc
c96c0fda81a141aa949c9e93eda09f0b081e2b42
/Database_connectivity.py
38efb5c8b784008fee3eb2e3f569609bd2188e9b
[]
no_license
hritik1228/Python_MySQL_connectivity
30bfbd5889c0dc919a86f027a039fbe38e9cc2f5
8fee934d98e85b2ee8f0615aa4721f9dc7c56df4
refs/heads/master
2022-12-01T01:19:48.865170
2020-08-13T13:46:51
2020-08-13T13:46:51
287,292,769
0
0
null
null
null
null
UTF-8
Python
false
false
396
py
#Database Connection using MySQL #1.Import mysql.connector module import mysql.connector #2.Creating the connection mydb=mysql.connector.connect(host='localhost',user='root',password='') #printing the connection id print(mydb.connection_id) #3.creating the cursor object cur = mydb.cursor() #4.Execute the query...
[ "hritikkumar0015@gmail.com" ]
hritikkumar0015@gmail.com
9bc0bd0fb038d8aa88277056cb4e45322b6ec02c
3f6a92eb101d1835e5878f1e899a03826d2120b8
/lattedb/project/ga_q2/migrations/0002_auto_20191107_0016.py
28ae99c7dcc1b75045cb82135741e0c4d99a185d
[ "BSD-3-Clause" ]
permissive
callat-qcd/lattedb
5c96efc9bd670733d7f80e1f6e8c6dba17da04e4
75c06748f3d59332a84ec1b5794c215c5974a46f
refs/heads/master
2021-06-14T20:03:14.701433
2020-08-07T15:11:59
2020-08-07T15:11:59
193,587,635
1
0
BSD-3-Clause
2021-05-31T14:40:55
2019-06-24T22:09:00
Python
UTF-8
Python
false
false
450
py
# Generated by Django 2.2.6 on 2019-11-07 00:16 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ga_q2', '0001_initial'), ] operations = [ migrations.AlterField( model_name='onetoallstatus', name='tag', ...
[ "ithems@ithems.lbl.gov" ]
ithems@ithems.lbl.gov
168e1711849c37b0ffbf22b2f5269a96f1f3fc6b
4717914686d97dfbefa1f782056a731eb9d097d5
/dagbart.py
4d5ad71e2b2fe57eab09a448138b96d6cce82515
[]
no_license
bartvanp/dagbart
0d6fa5c27f4941b84dfa8707e2e5b5653901228b
9dd40ba18d724a87ccf2ec23a9cab6e479bebd35
refs/heads/master
2020-03-22T05:59:45.872420
2018-07-03T15:45:18
2018-07-03T15:45:18
139,605,175
0
0
null
null
null
null
UTF-8
Python
false
false
409
py
class person(): soort = 'mens' def __init__(self, voornaam, naam): self.voornaam = voornaam self.naam = naam def geef_naam(self): return self.naam def __str__(self): return self.voornaam + " " + self.naam def isBart(self): return self.voornaam....
[ "noreply@github.com" ]
noreply@github.com
0dc6107d0d2034aa1278595b927968daa55d67b6
7c89ecb375e359e55bf7c4295e04a1ee6231cf9e
/python/utils/get_means_stds2D.py
503c200e9d329d9212a63f5cfd0a4e88f429de88
[ "BSD-3-Clause" ]
permissive
JakubicekRoman/CTDeepRot
2a33afd86c056a1a858b963fd4877c14238b294e
db99bce34b5f69eafc78ba21f53b5e57c86117cc
refs/heads/final
2022-11-21T06:11:24.342126
2020-07-21T08:29:38
2020-07-21T08:29:38
269,278,216
5
1
null
2020-07-01T14:32:06
2020-06-04T06:26:56
MATLAB
UTF-8
Python
false
false
1,583
py
import numpy as np import matplotlib.pyplot as plt from IPython.core.debugger import set_trace import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import glob import os from skimage.io import imread from skimage.transform import resize from torch.utils import data import o...
[ "tomasvicar@gmail.com" ]
tomasvicar@gmail.com
3e7e38af79168d9c95965e84323985f613c85858
119c699d78749bf5578cf80dfd97b4e0de7e9ff3
/setor/migrations/0015_auto_20210909_0102.py
558b554ef8cc2eaa69507be812f155fc234d0f7f
[]
no_license
badrussholeh0110/sppskud3
14cc1e8087f8b1a21913ac3d596ffdf0266f5147
516f98df776145df2ce68d46ce476f1170fa1c08
refs/heads/master
2023-08-06T12:21:16.700454
2021-09-13T12:25:36
2021-09-13T12:25:36
404,664,565
0
0
null
null
null
null
UTF-8
Python
false
false
397
py
# Generated by Django 3.1.5 on 2021-09-08 18:02 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('setor', '0014_auto_20210908_0324'), ] operations = [ migrations.AlterField( model_name='setoran', name='tgl', ...
[ "badrussholeh0110@gmail.com" ]
badrussholeh0110@gmail.com
2e9eaf643c78e585909b2256592c83e8642e3c85
728cf4b85d8331e2325760613cc70db5bb71b939
/block_matching.py
811cd87c27596cd78a5f225aa80c4e28b2114dbd
[]
no_license
fdlci/Imagerie-projet
864c140de9deb7c387a032dc7af31014a26c54a7
50068d5585631bebb9463256cde2d37d40f3f414
refs/heads/main
2023-02-21T05:39:37.580711
2021-01-24T15:48:25
2021-01-24T15:48:25
323,638,716
0
0
null
null
null
null
UTF-8
Python
false
false
3,278
py
# In NN3D, the BM is done once on an estimate of y. We use the output # y_tilde_1 of the CNNF. # Expected result: A look-up-table of group coordinates S = {S1, ..., SN} # Each Sj contains the coordinates of N2 mutually similar blocks of size N1xN1 # Each pixel in the image is covered by at least one block. # Main ste...
[ "ines.florezdelacolina@student-cs.fr" ]
ines.florezdelacolina@student-cs.fr
f79cf879ab91898933f340992e31d799a7e9b21a
870285250bf8cebca70f852b304494ece6f23677
/bubba-album-inotifyd
18e110b792c7d5257c852bab4d16a3fa7fc4b340
[]
no_license
Excito/bubba-album
3ce6765fe71f528ce8ce17f33744f52b1913c3e7
00fb98879b5d98a3ee46692a425a506bef4ea073
refs/heads/master
2020-05-18T12:52:02.954464
2013-06-26T10:56:28
2013-06-26T10:56:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,002
#!/usr/bin/python # Requires Python >= 2.5 import sys import pyinotify import logging import logging.handlers from configobj import ConfigObj import MySQLdb from PIL import Image import pyexiv2 from datetime import datetime import os import subprocess import psutil config = ConfigObj("/etc/dbconfig-common/bubba-alb...
[ "carl@excito.com" ]
carl@excito.com
1c156904e052529e3b104bb6492ca6837c5f78f2
a65e5dc54092a318fc469543c3b96f6699d0c60b
/Personel/Rajkumar/Python/feb17/swap.py
017dbe26ac5f78334e999640b352f86530f059e5
[]
no_license
shankar7791/MI-10-DevOps
e15bfda460ffd0afce63274f2f430445d04261fe
f0b9e8c5be7b28298eb6d3fb6badf11cd033881d
refs/heads/main
2023-07-04T15:25:08.673757
2021-08-12T09:12:37
2021-08-12T09:12:37
339,016,230
1
0
null
2021-08-12T09:12:37
2021-02-15T08:50:08
JavaScript
UTF-8
Python
false
false
166
py
n1=int(input("Enter a 1st Number:-")) n2=int(input("Enter a 2nd Number:-")) print("Before Swaping:-",n1,n2) n1=n1+n2 n2=n1-n2 n1=n1-n2 print("After Swaping:-",n1,n2)
[ "varmarajkumar745@gmail.com" ]
varmarajkumar745@gmail.com
efb8b0a7ec90c3adb05a59a93c8c6d7319c7e1ae
b1db906c391c4966238bc95c67dbef2a2381e3d9
/crawler/weibo_comments_extract_top20.py
4791dbe7dcbb13880eaa116242a11a88be2b3d9d
[]
no_license
daiyunbin/hyys2018
985fa1b3a13513ba301ebb4c8680d696ede67b67
c637976c54cde1fd422c480f004d4237a14b5b11
refs/heads/master
2021-09-11T19:14:45.363091
2018-04-11T09:04:22
2018-04-11T09:04:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,013
py
import csv if __name__=='__main__': file_path = 'C:/Users/luopc/Desktop/hyys_2016_2018/weibo/2018/2018_热门.csv' top_file_path = 'C:/Users/luopc/Desktop/hyys_2016_2018/weibo/2018/2018_热门_top20.csv' with open(file_path, mode='r', encoding='GBK') as input_file,\ open(top_file_path, mode='w', encod...
[ "luopengcheng_love@126.com" ]
luopengcheng_love@126.com
4f95ffbb37ddcbd7d1965a4ed8a986c5e52274fa
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_193/ch11_2019_08_22_19_37_28_357381.py
1ee4b70ca39ef725a52d1d1a1e107d4d7747a66f
[]
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
115
py
def celsius_para_fahrenheit(x): y = (x * 1.8) + 32 return y a = 0 b = celsius_para_fahrenheit(a) print(b)
[ "you@example.com" ]
you@example.com
dd6cf28a28553b7038d8b7d0360d010b0db61caa
df6490256730a40661ec367fcb58c886702682fa
/twitter_verification/twitter_verification/settings.py
2e59a0f6e580eb6946b5355bbcd5a513ea08840e
[]
no_license
SebastianCanoRuiz/TwitterAccountVerification_version_alterna
388cb85977e0f245aa7402268e84f71586e0f87d
31b16834bffdfeb40b25d4c4b1c9965d8a2f4b2f
refs/heads/master
2022-12-14T10:44:06.319929
2020-08-29T22:48:23
2020-08-29T22:48:23
290,207,425
0
0
null
null
null
null
UTF-8
Python
false
false
3,387
py
""" Django settings for twitter_verification project. Generated by 'django-admin startproject' using Django 1.11.20. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ ...
[ "jsh7590cr@gmail.com" ]
jsh7590cr@gmail.com
f543fbc7e0ea3e9731253b8af9d9c447f1941914
8f9857c97b7e49d0f6922da709d3902d1fa82716
/inference/inf_inference_3d.py
93c1fad42f8b5ea7caaf29e6601801bf385f23b2
[]
no_license
huangzih/WADNet
f4996fa7b26fc7871b6d9fa3354a7692e5ff0e08
fa8360a3b2abe7973c7b344c03547685c3e9e32a
refs/heads/main
2023-05-24T07:04:04.105677
2021-06-16T03:56:50
2021-06-16T03:56:50
376,763,318
0
0
null
null
null
null
UTF-8
Python
false
false
8,278
py
import numpy as np import pandas as pd import sys import gc import os from os.path import isfile from copy import deepcopy from torch import nn, optim from torch.nn import functional as F from torch.nn import LSTM from torch.utils.data import Dataset, DataLoader from torch.nn.utils.rnn import * from tqdm ...
[ "noreply@github.com" ]
noreply@github.com
4af1a97e3d67f049f346cc7b4760ac232eb1d942
c62040636877dc3584bcf4d22988fc71739c8a78
/lbworkflow/tests/test_process.py
828d4ebd11d173132620237557b9f9d4b02ff56d
[ "MIT" ]
permissive
felixcheruiyot/django-lb-workflow
82de680f37aa68707640022cb3b99435f54ea09e
0fb4be2d39848374d60ec27c6ee1b72913e2f674
refs/heads/master
2022-04-12T19:11:41.673818
2020-04-09T12:03:53
2020-04-09T12:03:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,312
py
from django.contrib.auth import get_user_model from django.urls import reverse from lbworkflow.views.helper import user_wf_info_as_dict from .leave.models import Leave from .test_base import BaseTests User = get_user_model() class HelperTests(BaseTests): def test_user_wf_info_as_dict(self): leave = se...
[ "zbirder@gmail.com" ]
zbirder@gmail.com
f4cbdc74bb0c59adc2091f47616c224a592f7092
7f64a86da168cab37b92999d572392c58091abd9
/python_ex85.py
23b32f42dc70ed48fe79bf731c0a41c89ce9b80a
[]
no_license
tomdefeo/Self_Taught_Examples
a093444872732d34fe48d4b49718cbad47baa033
ec2f85acd8d5a919f8e299186b4b418a22294201
refs/heads/master
2020-12-30T13:20:28.119565
2017-03-06T17:07:25
2017-03-06T17:07:25
91,199,883
1
0
null
null
null
null
UTF-8
Python
false
false
76
py
# Do not run. def [function_name]([parameters]): [function_definition]
[ "tomdefeo@goalkeep.com" ]
tomdefeo@goalkeep.com
5d5e7857208cf90f00e2c2887a70506d899dc5f6
98c75d19034575fed021979d91ba909bb30cddce
/thaifin/sources/finnomena.py
18264c1df2cde4c3ef14950e90690b782872b1a4
[ "ISC" ]
permissive
webclinic017/thaifin
791101ae3ce8a8a8f5d7c822139aff50471b0a53
5f5f3d99092379a3425a70a6ef54412da5d10633
refs/heads/master
2023-01-29T00:57:52.570826
2020-11-22T08:51:32
2020-11-22T08:51:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,884
py
from typing import Dict from typing import List from typing import Optional import requests from pydantic import BaseModel class BaseResponse(BaseModel): statusOK: bool data: List[Dict] class FinancialSheet(BaseModel): SecurityID: Optional[int] Fiscal: Optional[int] Quarter: Optional[int] ...
[ "me@nutchanon.org" ]
me@nutchanon.org
5444b3bc92c299c2c3ba4d46f4e76ec7031ee469
e941e45481c849132b8e096ff2e018c93fda86d1
/testing.py
99951cfbf1daaa47e9994416990e7ba7b2e7189b
[]
no_license
dvndra/audio_anomaly_detection
1440861c56cfa5bc2c90796ecf1f58f980816b39
48425579d0ad33830db9834df515963394eabc88
refs/heads/master
2020-07-30T16:15:12.307553
2019-09-23T07:11:14
2019-09-23T07:11:14
210,287,581
2
0
null
null
null
null
UTF-8
Python
false
false
12,008
py
import pyaudio import numpy as np from numpy.linalg import inv from matplotlib import pyplot as plt from scipy import signal from sklearn import mixture import pickle import wave from numpy import newaxis import contextlib import os import re import math import lmdb import sys import copy from sklearn.e...
[ "noreply@github.com" ]
noreply@github.com
a84694963bcde152fccfede78a8a6750f7ce6697
2eb1d157ea8e919a4488128986fe7a346d7c3ee4
/Topics/Scopes/Hero damage/main.py
07053fc504c85a9e206e90c683528af918216d17
[]
no_license
charmipatel06/coffee-machine
4b3fbe639fbfb95e0dec90375f3f6bac74d4f2d2
92e911404ebfd27fff2980cc3faf891ab0a43025
refs/heads/main
2023-06-14T15:31:45.075784
2021-07-16T23:53:40
2021-07-16T23:53:40
384,454,879
0
0
null
null
null
null
UTF-8
Python
false
false
263
py
hero_damage = 100 def double_damage(): global hero_damage hero_damage *= 2 pass def disarmed(): global hero_damage hero_damage = (hero_damage * 10) / 100 pass def power_potion(): global hero_damage hero_damage += 100 pass
[ "patelcharmis1998@gmail.com" ]
patelcharmis1998@gmail.com
f6d795471ab5c5702ac952424d2d647e135627a7
006201f615b36c47e1b9e234d76c3195402c79be
/chapter_2/problem_29.py
924e84b12af849aeeae3824fbd45d0927682f6e8
[]
no_license
dheerajgopi/anand-python
c83c238fb05a7f1670e3c686be93557d106da39d
4605efb32cbc52f1b444df2b4416f3be45e9686e
refs/heads/master
2016-09-05T09:15:38.616248
2015-03-09T06:15:55
2015-03-09T06:15:55
30,246,657
0
0
null
null
null
null
UTF-8
Python
false
false
285
py
def array(list_num, list_length): array_list = [] for i in range(0, list_num): array_element = [] for j in range(0, list_length): array_element.append(None) array_list.append(array_element) return array_list a = array(3,4) print a
[ "dheerajgopinath@gmail.com" ]
dheerajgopinath@gmail.com
d3b4035a272a5eb72e4f2f4c440fdf2010dd82ec
1f3cc0ccd78ec3b8b3f42250244667e11dea5504
/client/views.py
9226c49e4240f0d8908a1daebcfccadf5a59c11b
[]
no_license
ZongoMathieu/crm
0e0537d746f2a97288cf9bbbb7f701aeab860bb3
1b6f3be72bc4ab59c14135ae6267847b16db68a9
refs/heads/master
2023-01-31T15:49:11.948806
2020-12-14T10:09:28
2020-12-14T10:09:28
318,765,124
0
0
null
null
null
null
UTF-8
Python
false
false
413
py
from django.shortcuts import render from django.http import HttpResponse from .models import Client # Create your views here. def list_client(request,pk): client=Client.objects.get(id=pk) commande=client.commande_set.all() total_commande=commande.count() context={'client':client, 'commande':commande,'t...
[ "holding@CHO-65.coris-bank.com" ]
holding@CHO-65.coris-bank.com
b462a6735937a88891a9bfed8ca0a81a82d0ce72
c98a9c357d1d6d66420bc57a9f875b85868ddcef
/api/messagers_api.py
8b04cb7a2c46ae18fc6d15623c2830329d4242ed
[]
no_license
Angelika1212/foreing-talker
d94e5d6d0387e4196630d4202cfce7c2d64d2d96
a456d50175e798a37cfe123b29184b6d28d040b6
refs/heads/master
2022-04-21T11:27:40.373018
2020-04-18T15:04:50
2020-04-18T15:04:50
256,545,468
0
0
null
null
null
null
UTF-8
Python
false
false
2,413
py
import flask from flask import render_template, redirect from data import db_session, users, message, friends from forms import message_form from flask_login import login_required, current_user blueprint = flask.Blueprint('messagers_api', __name__, template_folder='templates') @blueprint.route('/messager/<int:id>', ...
[ "ZAnzelika@ya.ru" ]
ZAnzelika@ya.ru
302e9c632f39d2176d58841878f3d48caf0ce900
f9a360071761d908d1a844225a87bd6eedf38780
/day3/test/test2.py
8c551128ce88770d08804e14c632379a7d8ba849
[]
no_license
xiaolang/python_test
40de0084b8268ea0fadefa7d8a50487769148f54
2b6bb883ed7e79cf1fd5f5e40357c224b372da76
refs/heads/master
2020-05-17T12:35:16.057296
2014-06-01T11:53:30
2014-06-01T11:53:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
344
py
#!/usr/bin/env python test = "test.txt" f = file(test) c = f.readlines() while True: while True: user_input = raw_input("\033[32;1muser:\033[0m") if len(user_input) == 0 : print "empty input!" continue else : break for line in c: if user_input in line: print line break else: print "\03...
[ "xiaolang@foxmail.com" ]
xiaolang@foxmail.com
48b56952ac3dc1fd3a8bd513d93bad85874010cd
3927b135bd77100532e3dc82c405a2d377fc8517
/vndk/tools/definition-tool/tests/test_vndk.py
8938e68aa18145dd971748268f9c1f6e06f6e889
[ "Apache-2.0" ]
permissive
eggfly/platform_development
b9367c9ecd775c766dd552bf0b417c29bc4cc1cc
52c291d53c8f58cfe67cd3251db19b0d94b4a9c8
refs/heads/master
2020-05-20T22:54:41.470361
2017-03-10T02:06:38
2017-03-10T02:06:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,623
py
#!/usr/bin/env python3 from __future__ import print_function import os import sys sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) import unittest from compat import StringIO from vndk_definition_tool import ELF, ELFLinker, PT_SYSTEM, PT_VENDOR SCRIPT_DIR = os.path.dirname(os.path.abspa...
[ "loganchien@google.com" ]
loganchien@google.com
32869036f4fdb417fb2ca1431988aa2a720d81fe
00aef5565d72fe558e29735af2d6dba2f1d91200
/simulations/consistent_crab_cavity_scan/restart_sim_nobunch.py
85c72154adc2d971aa93541c5be76860e358cac1
[]
no_license
lgiacome/WarPyECLOUD
c450dc43bc7976cddb804d5ea18089cab9a8ab32
e164af63932f34f582329d3d0a69a9c59b3a0bd7
refs/heads/master
2022-02-21T04:51:57.305951
2022-02-09T13:52:29
2022-02-09T13:52:29
227,175,943
0
0
null
null
null
null
UTF-8
Python
false
false
4,341
py
import faulthandler; faulthandler.enable() import sys import os from pathlib import Path import matplotlib as mpl mpl.use('agg') import matplotlib.pyplot as plt from warp import restart, me, picmi BIN = os.path.expanduser("../../") if BIN not in sys.path: sys.path.append(BIN) from dump_restart import reinit impor...
[ "lorenzo.giacomel@cern.ch" ]
lorenzo.giacomel@cern.ch
7e520c862eed41e71e45a0087e0640e51b7a216c
7f0bcc27cc74cbe901e4a31bbff71e299a2fa681
/apps/language_voice_diction_chinese_yesir/restudy.py
1ba03f64d436b0cca6a36c8fc9ff7bae67f7b800
[]
no_license
JiangEndian/learngit
4682826149472f942a6219b8d8b3cb7c276635e5
e479b7efcc97c12120bd284259e8da0407c17a53
refs/heads/master
2021-07-18T20:48:28.063374
2019-05-11T11:16:02
2019-05-11T11:16:02
90,952,204
0
0
null
null
null
null
UTF-8
Python
false
false
9,990
py
#!/usr/bin/env python3 from tableDefine import * def addEveryWeek(): global every_week global common #day = input('Day(%s):' % getnowtime('week')) or getnowtime('week') day = getnowtime('week') con = input('word:') if not con: print('wordEmpty...') exit() env = input('mean:...
[ "c_cstudy@126.com" ]
c_cstudy@126.com
90224c175a2dc4e34b4109beb4d8f1f44191a42f
d55ff94ebcf05fc796656e92a2c670f3973a384f
/Webscrape-Sunburst_mongo/app.py
69c15f002f42b316fa13b665aefd3433b8ed83c3
[]
no_license
taureanh/Project2_trial
d2f50f3fffc39d1a339bce2512dc73ac8e7b4475
314a5f1987f40ef32a514c22b4c3572d53cb6e24
refs/heads/main
2022-12-30T19:45:44.241086
2020-10-17T13:28:10
2020-10-17T13:28:10
304,882,484
0
0
null
null
null
null
UTF-8
Python
false
false
1,269
py
#import dependencies for SQL from flask import Flask, render_template, redirect from flask_pymongo import PyMongo import renewable_scrape app = Flask(__name__) #Need to fix app.config["MONGO_URI"] = "mongodb://localhost:27017/renewables" mongo = PyMongo(app) @app.route("/") def home(): data = mongo.db.renewa...
[ "taurean.hutchinson@gmail.com" ]
taurean.hutchinson@gmail.com
b4c39c047d688dd6539210be500c5952408ac905
77465eb5bfbb7635aa6a2fcaf717a2655f5cf17f
/src/models/DenseDet_SKU_fusion_bfp_x101_32x4d_v1.py
b6eef9c8391686a6f3caf41388ef6097b1decbd0
[]
no_license
SebasGarcia08/sku110-dense-object-detection
451f29a56ae6a58c2ee0d1f4692496bfad95f7f3
e31a0c35bbaf1037f583cc57042a8d5e724b5ee1
refs/heads/master
2023-04-21T17:58:28.479373
2021-05-06T18:51:25
2021-05-06T18:51:25
364,759,028
0
0
null
null
null
null
UTF-8
Python
false
false
6,822
py
# model settings model = dict( type='CascadeRCNN', num_stages=2, pretrained='open-mmlab://resnext101_32x4d', backbone=dict( type='ResNeXt', depth=101, groups=32, base_width=4, num_stages=4, out_indices=(0, 1, 2, 3), frozen_stages=1, style='...
[ "segaracos@outlook.com" ]
segaracos@outlook.com
e1682205360b4928220bbc12cb3953be8221e9f8
14252ea933a08056363230c6df89223b996a0da2
/app/enquiry/admin.py
71f3c238e9b152b6658810ef408539597e9ec865
[ "MIT" ]
permissive
S3Infosoft/mvr-insights
eeb02aa2e6767e6a23818d4e09f7be7ce29f80cb
ac73feff03c1592d5efd8e0b82f72dd4dbd3e921
refs/heads/master
2020-05-29T14:08:11.070784
2020-04-23T19:46:57
2020-04-23T19:46:57
189,184,619
0
1
MIT
2020-04-23T19:46:58
2019-05-29T08:35:56
CSS
UTF-8
Python
false
false
918
py
from . import models from django.contrib import admin @admin.register(models.OTA) class OTAAdmin(admin.ModelAdmin): list_display = "name", "registration", "contact_person", "contact_number",\ "contact_email", search_fields = "name", "contact_person", @admin.register(models.Partner) class ...
[ "abhie.lp@gmail.com" ]
abhie.lp@gmail.com
7e97dec12b5a269ee009a038ff2b1bb48711aff7
5577a04c006e73b8a40f68055b2173ffe34ce83e
/htsint/database/fetchTimeExperiment.py
52b01c5ccf358b0f3acfe468ea3b6ae2dc535dfc
[ "BSD-3-Clause", "LicenseRef-scancode-public-domain", "MIT" ]
permissive
changanla/htsint
1617c56bd5f02ab01e0de80d3d06d2d75983a376
a343aff9b833979b4f5d4ba6d16fc2b65d8ccfc1
refs/heads/master
2020-03-16T13:10:15.082839
2017-05-24T21:27:27
2017-05-24T21:27:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,266
py
#!/usr/bin/python import sys,time from sqlalchemy.sql import select from htsint.database import db_connect,fetch_annotations,fetch_taxa_annotations from htsint.database import Taxon,taxa_mapper,Gene,gene_mapper session,engine = db_connect() conn = engine.connect() #timeStart = time.time() #annotations = fetch_annot...
[ "adamricha@gmail.com" ]
adamricha@gmail.com
96c271f4ba502360e86ae8b36745e783d53d418e
d3f30c67faf0b593565fc5fa526d6b96a8a9f65f
/tests/test_dates.py
9c3a7b40745a472ca8520756a080d082d887c101
[ "BSD-3-Clause" ]
permissive
has2k1/mizani
4b3732b13380c6f2660f313877d95f63095781f3
90b0a54dd3a76528fae7997083d2ab8d31f82a58
refs/heads/main
2023-09-02T00:47:17.321472
2023-09-01T09:44:57
2023-09-01T13:45:36
62,319,878
41
15
BSD-3-Clause
2022-04-04T04:26:51
2016-06-30T15:02:41
Python
UTF-8
Python
false
false
2,210
py
from datetime import datetime from zoneinfo import ZoneInfo import pytest from mizani._core.date_utils import ( align_limits, ceil_mid_year, ceil_second, ceil_week, floor_mid_year, floor_second, floor_week, ) from mizani._core.dates import ( datetime_to_num, get_tzinfo, num_to_...
[ "has2k1@gmail.com" ]
has2k1@gmail.com
43722d5fe07102d70d34d9f72fb9ab3df7e72248
6f407956c4eb87d46c35776a61e1d788ac148f26
/Scripts/ProcessExperimentUtils/analyseResults.py
1713755f1a1da3fb98d7aff21519e5d036efb486
[]
no_license
decobeirne/collab-rob-fwork
3b99402132d49568ffb745732d10530a80575fb7
527c9f09c8a49af28a33fe2dccffd0ffa9bbd547
refs/heads/master
2021-01-01T18:18:36.408989
2013-11-24T20:13:16
2013-11-24T20:13:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
24,666
py
import math from pdb import set_trace STD_DEV_COST_COEFF = 200.0 BATTERY_LOSS_MOVE = 20.0 STD_DEV_MAX = 20 ''' gross - profit we est we'll get when we adopt the target grossPerStep - how much the robot ests it will be getting for each step for this target gross_subd - the profit we calc that this target will get ...
[ "declan.obeirne@gmail.com" ]
declan.obeirne@gmail.com
8d8a4e9070cec42c52b01be5f9fe0ab168fa0a4d
7e25e1542ed2b7ef8a628495eff7c87b88e6e868
/WD-Firmware/demo/build/toolchain/comrv/ovlymgr.py
de03a0066e890e56997873ba7080a947f0db72bb
[ "Apache-2.0" ]
permissive
Global19-atlassian-net/riscv-fw-infrastructure
ff24e649fa97aef392a366eadcad657e77033570
34eca62724b750ee1459f9e4de460e3be2efd860
refs/heads/master
2023-03-16T01:07:08.921974
2021-02-28T15:13:46
2021-02-28T15:28:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
106,865
py
''' SPDX-License-Identifier: Apache-2.0 Copyright 2021 Western Digital Corporation or its affiliates. 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....
[ "noreply@github.com" ]
noreply@github.com
1b0049bfc9938f275b5f4738645dbe5761b7609c
dd0e9a9c0824a1808282e91925eec67fd185d27f
/project4/network/migrations/0016_auto_20210210_0612.py
a2f864a9a978a98cbaacd4f710f875183b1f68e7
[]
no_license
daniel-mota/cs50W
041830c1a9ce5ade7f742069fbc1bad9befd5a89
648b5cb551176f5756157194167e5088ec6f63bf
refs/heads/main
2023-03-09T22:01:27.429039
2021-02-27T00:12:50
2021-02-27T00:12:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,242
py
# Generated by Django 3.1.5 on 2021-02-10 06:12 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('network', '0015_auto_20210210_0543'), ] operations = [ migrations.RemoveFi...
[ "DanielMota@Daniels-MacBook-Pro-6.local" ]
DanielMota@Daniels-MacBook-Pro-6.local
f87a42e88289c0861d982737506948170ed9af0a
8bfc1058c3f72871d588693c6d843a67485ab2a2
/Project Euler/crap.py
13d6cba06cec6fd28a6b549cda22fdfaf5f20cb7
[]
no_license
Kylar42/wvup
f357bcf3da2c8c80b0af76a3f6ad71d508c9c844
d60a7dfe719a380ba22aa685133411d1a0f58ffb
refs/heads/master
2021-01-01T16:39:26.301329
2014-09-30T21:13:33
2014-09-30T21:13:33
3,193,256
0
0
null
null
null
null
UTF-8
Python
false
false
42
py
import math crap = pow(2, 52) print crap
[ "kylar42@gmail.com" ]
kylar42@gmail.com
58b7f2c696ee6df680f34658e112ba3ceb045e99
4503c155a0252eea7f4c80ec499999a8b52bc8b6
/nntool/model/sequential.py
8a9984b8e4fd3d8c6aec1d4526eff9e3e02fa3b0
[ "MIT" ]
permissive
NLP-Deeplearning-Club/nntool
e76f7be29dd184be18a6fde509b89918a8692639
1bbf0a20c7526d423f351ba9a854902a669d3713
refs/heads/master
2020-12-03T01:42:44.316321
2017-07-12T16:08:30
2017-07-12T16:08:30
95,854,457
0
0
null
null
null
null
UTF-8
Python
false
false
1,719
py
from nntool.abc.modelabc import ModelABC import numpy as np class Sequential(ModelABC): """序列模型,这个是keras中的概念,将模型理解为层的堆叠 """ _layers = [] _trained = False def add(self,layer:'layer'): self._layers.append(layer) @property def trained(self): """是否已经训练过""" return self....
[ "hsz1273327@gmail.com" ]
hsz1273327@gmail.com
1c044ba4743b38aac2ab64ae6c77a3240977fd40
b5a6487105c530ca02d973e78aefaa7703de556e
/heechan/testProj/testProj/asgi.py
0869363eaf90b22ef3beb10abdf3b4a5a6fdc5b2
[]
no_license
jaehoonkimm/likelion-crawling_bgm
885d7d126af85d601fb07b6dabf7132ea88351a7
997406413b3abb50fa6bc4fc6a45dee0f45ac131
refs/heads/yebeen
2022-12-02T09:14:31.685585
2020-08-18T12:51:10
2020-08-18T12:51:10
279,583,449
1
1
null
2020-08-03T12:43:02
2020-07-14T12:48:54
Jupyter Notebook
UTF-8
Python
false
false
409
py
""" ASGI config for testProj 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.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault...
[ "kimhecan@gmail.com" ]
kimhecan@gmail.com
5a85f68337da49fec9d664ec55a0ccab7bb51369
fdcb2cdee4d5b398eed4eefc830213234e3e83a5
/00_DataCamp/07_Functions/error_handling/more_error_handling.py
5d65abc9f7d11cc8d26ffaba9af4fec231b1c483
[]
no_license
daftstar/learn_python
be1bbfd8d7ea6b9be8407a30ca47baa7075c0d4b
4e8727154a24c7a1d05361a559a997c8d076480d
refs/heads/master
2021-01-20T08:53:29.817701
2018-01-15T22:21:02
2018-01-15T22:21:02
90,194,214
0
0
null
null
null
null
UTF-8
Python
false
false
1,459
py
# ##################################################### # ERROR HANDLING W/ TRY EXCEPT # ##################################################### def shout_echo(word1, echo=1): """ Concat echo copies of word1 and three exclamation marks at end of sting """ # Initialize empty strings: echo_word, shout_words ...
[ "nikdaftary@gmail.com" ]
nikdaftary@gmail.com
1ab6e4c0f3db1e7bd0fcf7b43b83ad6d74ae09f0
b05a3cd3de6618a5029d8b360a4185cd808fccef
/Tic-Tac-Toe with AI/task/tictactoe/tictactoe.py
93c7a298ab050b109ba6b895cf65a5bf7eae6b53
[]
no_license
VitaliiBandyl/Tic-Tac-Toe-with-AI
a7dd474e7197c727dff4588327c667534e5b6b8a
4d3dfb332a9ea9483a370bce3eabc83aec001aa5
refs/heads/master
2022-11-15T00:11:59.112056
2020-07-03T14:14:37
2020-07-03T14:14:37
275,857,091
2
0
null
null
null
null
UTF-8
Python
false
false
10,250
py
import random from abc import ABC, abstractmethod from typing import List, Tuple class TicTacToeField: """Game field""" def __init__(self): self.field = [[' ' for _ in range(3)] for _ in range(3)] self.turn = 'X' def print_game_field(self): """Prints game_field field to console""...
[ "vitaliibandyl@gmail.com" ]
vitaliibandyl@gmail.com
dd1ec64e97316958fca29fdf779f144563f25a42
8e51b3bf1c4cd1febfb1b9d0c12ce75aa33eb1f8
/代码/展示项目代码/Locating/asgi.py
ab72fec9cc5453352b4fa974ed86fd019c23aa24
[]
no_license
GuardingDog/eventLocationExtraction
cf63783b01360e303848de99192610adac24af7c
9df0f80d1d71cedea08450633e8363aa0fb03950
refs/heads/main
2023-02-09T06:22:53.158080
2020-12-25T06:25:32
2020-12-25T06:25:32
324,302,291
0
0
null
null
null
null
UTF-8
Python
false
false
393
py
""" ASGI config for Locating 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.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETT...
[ "sun2387353@163.com" ]
sun2387353@163.com
173495b72c3e825cf142425e2d4e4510a87a9075
80361b1bf21066abb83efff65d748c49a354fc30
/20171205.py
ab9e694e6f37b636c93859ceba55a62d25d5254a
[]
no_license
wsdxl/python-20171126
fa973ade255010ba64d8a13830fdc2988305d560
df99efc95a9552c2435d0327397a4399adefbfa5
refs/heads/master
2021-09-05T01:17:51.546966
2018-01-23T09:54:06
2018-01-23T09:54:06
112,087,577
0
0
null
null
null
null
UTF-8
Python
false
false
360
py
list=['hello','world',2,6] list2=[1,3,5,6] list3=['how','are','you'] list4=['thinks','i','am','fine'] list5=[7,8,9,0] # print(list[0]) # print(list2[1:3]) # print(list3[0]) # list3[0]='who' # print(list3[0]) # print(list) # del list[2] # print(list) # print(len(list)) # print(list.__len__()) # print(list2+list5) # pri...
[ "506615839@qq.com" ]
506615839@qq.com
2037b65f41e66d5efd97fb4037f35830d3fbc814
b1c578ce83d94848a1c2ec0bcb91ae791ef419cd
/src/ggrc/migrations/versions/20180319122658_679480cbd712_add_risk_propagation_roles.py
ed07384e4deaf9cf32f022902852e518f9698b63
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
zdqf/ggrc-core
0d1575557af3c49980fe6dbad586d045ad73d5ad
29dea12d189bc6be21006369efc0aae617bbab6f
refs/heads/master
2020-03-27T19:29:00.536374
2018-08-28T15:29:56
2018-08-28T15:29:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
873
py
# Copyright (C) 2018 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """ Add risk propagation roles Create Date: 2018-03-19 12:26:58.016090 """ # disable Invalid constant name pylint warning for mandatory Alembic variables. # pylint: disable=invalid-name from ggrc.migration...
[ "zidarsk8@gmail.com" ]
zidarsk8@gmail.com
54cad0c1b793017f42dfe9dadc1607ef7b373dd9
adcef785263b5aabff50a5ebac5deccc90ff5c43
/apps/orders/migrations/0031_auto_20210210_2159.py
f416025059e53cdb5a74aa7d7f7d7949e1b84f9a
[]
no_license
jtaningco/Quicklink
f2af25939a28feb3d7fa9b68c66226963161d6d6
4cbaf71a2606b123913d52f693fceff97d339a98
refs/heads/main
2023-04-06T22:41:50.995658
2021-03-27T09:04:37
2021-03-27T09:04:37
323,894,414
0
0
null
2021-03-18T15:01:53
2020-12-23T12:19:10
HTML
UTF-8
Python
false
false
467
py
# Generated by Django 3.0.6 on 2021-02-10 13:59 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('orders', '0030_auto_20210210_2125'), ] operations = [ migrations.AlterField( model_name='order', nam...
[ "64685600+jtaningco@users.noreply.github.com" ]
64685600+jtaningco@users.noreply.github.com
94fc23f50dc7a7ff000b88944de86dd6618b33fc
d29d44c9f97a8d7ea0bcf6bdbff22c0d32061bef
/FLaREON/__init__.py
dcce541d9b18f210ebbb3ee26963e9eee4507a61
[ "MIT" ]
permissive
sidgurun/FLaREON
a8d648a01f5a76709caa67a5ea473aea7a0c66cc
58672e49bb6fdf5ad2802fa02310724b9c3198ac
refs/heads/master
2021-06-09T12:40:29.285875
2019-09-03T21:48:16
2019-09-03T21:48:16
155,904,404
1
0
null
null
null
null
UTF-8
Python
false
false
60,941
py
import os import os.path #import imp import sys import shutil import urllib import numpy as np from sklearn.ensemble import RandomForestRegressor, ExtraTreesRegressor, GradientBoostingRegressor from sklearn.neighbors import KNeighborsRegressor import pickle #======================================================...
[ "sidgurung@cefca.es" ]
sidgurung@cefca.es
7d727d63a6bed53b8120d60676ce73974e262685
2a7b38b5ffba0ed59e62a3ccc40420f9bb90952b
/shiptrack/apps.py
264c943e6e20e9cd64eb2fc3b3a9cf0cbeeb0c16
[]
no_license
tsyork/backoffice
fc2ec80b514c66aa169fec53bdb149763fe97fb1
fb92335fc4af141db3d22907170629e022870c40
refs/heads/master
2020-03-17T22:36:32.554506
2018-05-18T23:51:55
2018-05-18T23:51:55
134,011,118
0
0
null
null
null
null
UTF-8
Python
false
false
93
py
from django.apps import AppConfig class ShiptrackConfig(AppConfig): name = 'shiptrack'
[ "tsyork@gmail.com" ]
tsyork@gmail.com
096919f23bdcda229ed1005472fe927f7b72a686
7947e1098705fd74a275fb7c5f518e6803699372
/watchdocs.py
eeb255a437af8df8b2656576bca11759a9bf8425
[]
no_license
akashmore/watchdocs
6d9a7804b74e9cb73463aa97b914a35c0a9c312a
3c765916daa1b1766c1cfcc294f1adfdac3bd1dc
refs/heads/master
2021-04-15T13:36:00.315039
2018-05-02T05:41:29
2018-05-02T05:41:29
103,504,844
0
0
null
null
null
null
UTF-8
Python
false
false
7,047
py
from flask import * from flask import Flask, render_template import os, sys, json, nltk, gensim, pickle from gensim import corpora, models, similarities from flask import Flask, request, redirect, url_for from werkzeug.utils import secure_filename from pymongo import MongoClient from flask import send_from_directory fr...
[ "akashmore1997.am85@gmail.com" ]
akashmore1997.am85@gmail.com
da82acbcd117e45f112e60a7143e73c3ac089d57
01c169a4b24581197adbcb7878cd8633f5181263
/myvenv/Lib/site-packages/userroles/__init__.py
7bfdc29b1eaf2dd2f150040d1f8eae9db953990a
[]
no_license
jerinzam/printoProject
663c7a8914b1932d4e355c75ecda721f52f8092a
beeccbee92ca66040f74e01569fc124689f519b6
refs/heads/master
2021-01-10T09:01:09.751113
2015-10-02T07:43:31
2015-10-02T07:43:31
43,541,219
0
0
null
null
null
null
UTF-8
Python
false
false
2,656
py
from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.utils import importlib try: unicode = unicode except NameError: # 'unicode' is undefined, must be Python 3 str = str unicode = str bytes = bytes basestring = (str,bytes) else: # 'unicode' ex...
[ "jerinzam@gmail.com" ]
jerinzam@gmail.com
9c636a5cfb11bc65fdae5558924bb4c4ae5f6632
fbabf6f4b411355c01289bf218b17f0a8628ee04
/models/posenet.py
fd151a4cac3dbff45d5f57e1d14f66d67d57c588
[ "BSD-3-Clause" ]
permissive
princeton-vl/pytorch_stacked_hourglass
823978cb2a4a7c22a03fca67bf9fc0858cf03125
ceedc14b9b8814ba641f4a00baa5d0af153588a9
refs/heads/master
2023-08-04T06:20:49.509962
2023-07-19T17:02:10
2023-07-19T17:02:10
207,642,604
455
110
BSD-3-Clause
2023-07-19T17:02:12
2019-09-10T19:10:52
Python
UTF-8
Python
false
false
2,432
py
import torch from torch import nn from models.layers import Conv, Hourglass, Pool, Residual from task.loss import HeatmapLoss class UnFlatten(nn.Module): def forward(self, input): return input.view(-1, 256, 4, 4) class Merge(nn.Module): def __init__(self, x_dim, y_dim): super(Merge, self).__in...
[ "cnris@vl-fb.eecs.umich.edu" ]
cnris@vl-fb.eecs.umich.edu
e37ba6dd323fe1f352194c9517273785de8985bf
e0074687439148922b90e363d5d6b813edc3c7d0
/CPFL.py
1d904fd4ad0a5c3625262d278eaf9a179884fb51
[]
no_license
beraldonico/Aquisicao-de-boletos-com-selenium
047577f6596d7900e37e918e8f201f35d91de87c
f54cded24cc4da1090e0eeadfb202cc1f8adf409
refs/heads/main
2023-02-07T13:47:56.118530
2020-12-29T15:36:50
2020-12-29T15:36:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,844
py
# Essencial to open browser from selenium import webdriver # Helps to find element from selenium.webdriver.common.by import By # Set wait rules from selenium.webdriver.support.ui import WebDriverWait # Set conditional rules from selenium.webdriver.support import expected_conditions as EC # Essencial to close terminal i...
[ "noreply@github.com" ]
noreply@github.com
1a8d72d16bb59fdf20bee4bf93d582a162afbc26
24312d6308760df1e8e7f3e446e828bfd333576c
/preprocess_gist_files.py
1c61e96de4c8ec676e55e75dc7fd28c029de1fbb
[]
no_license
liting12/EmotionDetection
827fa459cb18460b380f802f4f3085bd58f8662d
45a2dcae5f20835e71dc6548d5e7f459217682b7
refs/heads/master
2021-09-12T22:04:48.150014
2018-04-21T10:42:43
2018-04-21T10:42:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
271
py
with open("../tmp/filenames.txt", 'r') as f: with open("../tmp/gist.txt", 'r') as g: files = f.readlines(); gists = g.readlines(); with open("../gists.txt", 'w') as s: for i in range(0, len(files)): s.write(files[i].strip().split('/')[-1]+":"+str(gists[i]))
[ "amritsinghal97@gmail.com" ]
amritsinghal97@gmail.com
48c0fa3c02b94ef7d4860dcf8193efc152f59b9e
f28ef7c72a56a2a732bee3e42506c96bb69edee8
/old_scripts/stocks_data.py
f9a03cddc88b57d6fb4ab645a0f58a8230321f1b
[]
no_license
webclinic017/backtrader_stocks_api
cb92311a1069199e61acc547ec69941ba861d4e6
e489724e7a30bb915657244bf12e55ad2f484832
refs/heads/main
2023-03-26T05:40:53.584824
2021-03-10T07:53:35
2021-03-10T07:53:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,442
py
from fastquant import get_stock_data, backtest import matplotlib.pyplot as plt import pandas as pd import numpy as np from datetime import date, timedelta #array: [open, high, low, close, volume] class ticker_data(): def __init__(self, ticker, date_range='null'): self.name = ticker.upper() # forma...
[ "noreply@github.com" ]
noreply@github.com
75ce3bc0628729fd0e6e556ca3a05bc9eb9a5ee2
f86400e8dcf78ef9ebb9e291dcd8b2f102c18cda
/pwn.py
dfaf7f7ae179e428dfb27edc5eacd3d878675ab4
[]
no_license
TimzG3/DDoSTool
22765030be8661e06c6b2710decc5afa14e77d77
483956389a4a6337b38dcd5c90090d02f917fb80
refs/heads/main
2023-01-01T03:24:26.108923
2020-10-26T14:40:58
2020-10-26T14:40:58
307,401,732
0
0
null
null
null
null
UTF-8
Python
false
false
185
py
# ~ DDoSTool ~ # Any question? HMU on https://mastodon.lol from sys import argv from os import system def main(): system("ping %s -f" %argv[1]) if __name__ == "__main__": main()
[ "noreply@github.com" ]
noreply@github.com
709bdcbe4ebff07af6549d6a424c06a4abae09ed
585380c7caa6475572dc2ae86cb36b2f2a4c1520
/python/977_Squares_of_a_Sorted_Array.py
3c661912a9609dc76f7bc810bfeab669a830c614
[ "MIT" ]
permissive
allenphilip93/leetcode
1bd3453fe051666171802460af543f44835419fa
5a52cd9b54553d68ee10cfe87044bed79ee5fb93
refs/heads/master
2023-05-11T20:05:28.481646
2023-03-22T01:31:55
2023-03-22T01:31:55
191,033,976
1
0
MIT
2019-06-09T17:11:19
2019-06-09T17:11:19
null
UTF-8
Python
false
false
865
py
class Solution(object): # def sortedSquares(self, A): # """ # :type A: List[int] # :rtype: List[int] # """ # # Directly sort # return sorted(x * x for x in A) def sortedSquares(self, A): pos = 0 while pos < len(A) and A[pos] < 0: pos ...
[ "qiyuan.gong@intel.com" ]
qiyuan.gong@intel.com
c36579c307b89115c28ff265ee689405fca26c0d
0c5b96d5b778d7f54854d03948bb8ef1336a0350
/DocBank/lista/admin.py
64cc46e14eb648c80810f6913dfa7a06e040cd55
[]
no_license
GabrielEstevezReyes/PythonP
3628463d3a6c11e93a8220c5e4dd4005d378d65a
8df1f7c83a918ccfe4f2df649287d01305650fe1
refs/heads/master
2020-09-13T14:55:42.657986
2019-11-20T01:17:04
2019-11-20T01:17:04
222,822,437
0
0
null
null
null
null
UTF-8
Python
false
false
115
py
from django.contrib import admin from .models import lista # Register your models here. admin.site.register(lista)
[ "gabriel.axel25@gmail.com" ]
gabriel.axel25@gmail.com
d93af998f22f0599ae05964e40bf4946e07934db
dd4d1a61ec680a86d4b569490bf2a898ea0d7557
/appengine/findit/model/test/wf_swarming_task_test.py
f6921dfc809d6a8bcf5b6cc3326292e6c1424897
[ "BSD-3-Clause" ]
permissive
mcgreevy/chromium-infra
f1a68914b47bcbe3cd8a424f43741dd74fedddf4
09064105713603f7bf75c772e8354800a1bfa256
refs/heads/master
2022-10-29T23:21:46.894543
2017-05-16T06:22:50
2017-05-16T06:22:50
91,423,078
1
1
BSD-3-Clause
2022-10-01T18:48:03
2017-05-16T06:23:34
Python
UTF-8
Python
false
false
1,690
py
# Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import unittest from model.wf_swarming_task import WfSwarmingTask class WfSwarmingTaskTest(unittest.TestCase): def testClassifiedTests(self): task ...
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
3766f9a5133652056ebd9b6b6bc0c4f68515983c
f2cb9b54e51e693e1a1f1c1b327b5b40038a8fbe
/src/bin/shipyard_airflow/tests/unit/plugins/test_deckhand_client_factory.py
044f4cc7ae96a556bd1cc726789890d7c1abce2c
[ "Apache-2.0" ]
permissive
airshipit/shipyard
869b0c6d331e5b2d1c15145aee73397184290900
81066ae98fe2afd3a9c8c5c8556e9438ac47d5a2
refs/heads/master
2023-08-31T11:46:13.662886
2023-07-01T06:42:55
2023-08-30T16:04:47
133,844,902
6
2
Apache-2.0
2023-09-12T19:09:02
2018-05-17T17:07:36
Python
UTF-8
Python
false
false
1,083
py
# Copyright 2017 AT&T Intellectual Property. All other 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...
[ "bryan.strassner@gmail.com" ]
bryan.strassner@gmail.com
1fba6cc1018e8180d4b1a9d7312f2d7735cb2952
d4d492068212ea98ad54cf6558be5d087b9f159e
/code/modules/beam_search.py
169bbfc405103a73a90287ad0ff2991317e21b2b
[]
no_license
amarazad/uctf
9c0b1f700bfb1f946f5dabbe4cc91784c9d1452a
d087a28e5fb37784858c6406595a6b7df3598fc1
refs/heads/master
2022-01-09T13:09:53.759698
2019-05-09T12:14:06
2019-05-09T12:14:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,982
py
from math import log from numpy import array from numpy import argmax import torch from torch.nn import functional from torch.autograd import Variable from Vocab import * # beam search def beam_search(data, k): data = data.data.numpy() sequences = [[list(), 1.0]] # walk over each step in sequence for r...
[ "pajain06@in.ibm.com" ]
pajain06@in.ibm.com
f2175851726ca0bd2de375f5dd60009f4fea1399
be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1
/DaVinciDev_v38r1p1/Phys/StrippingArchive/python/StrippingArchive/Stripping15/StrippingBuToKX3872.py
bc8fd68b57bf0cc15f042076cea12929f4e982a4
[]
no_license
Sally27/backup_cmtuser_full
34782102ed23c6335c48650a6eaa901137355d00
8924bebb935b96d438ce85b384cfc132d9af90f6
refs/heads/master
2020-05-21T09:27:04.370765
2018-12-12T14:41:07
2018-12-12T14:41:07
185,989,173
0
0
null
null
null
null
UTF-8
Python
false
false
18,316
py
# $Id: StrippingBu2KX3872.py,v 1.2 2010-08-26 13:16:50 nmangiaf Exp $ __author__ = ['Jeremy Dickens'] __date__ = '21/02/2011' __version__ = '$Revision: 1.2 $' ''' Implements 3 lines: B+ -> K+ X3872, B+ -> K+ Psi(2S) and a looser B+ -> K+ JPsi pi+ pi+ ''' ## Note this is just for testing the stripping on 25/02/2011 ...
[ "slavomirastefkova@b2pcx39016.desy.de" ]
slavomirastefkova@b2pcx39016.desy.de
609a381377e705ec17bc60c43a5a10c592dfe9d8
f969c54dd7b549aef24a3437709ced875e716d0a
/S12/tsai_repo/data_loader/example.py
39779878c7067353a7e5d7afeddf171b427b68b1
[]
no_license
prarthananbhat/tsai
d5bd1d2ee107ef6ef751ecaf863d1bc21d9391fa
3b29555bb62eac9910430d7672cda052f59ae568
refs/heads/master
2021-01-03T12:12:55.503306
2020-05-28T07:13:33
2020-05-28T07:13:33
240,070,831
1
0
null
null
null
null
UTF-8
Python
false
false
2,771
py
import numpy as np import matplotlib.pyplot as plt from torch.utils.data import DataLoader from torchvision import transforms, utils from data_loader.custom_dataset import imageMaskDataset from data_loader.utils import show_images from data_loader.custom_transform import Rescale from data_loader.custom_transform impor...
[ "prarthana.bhat@progress.com" ]
prarthana.bhat@progress.com
b2d9c40f151b806bd9ee4736251b38554a83456f
02c08bc50fb73d08f8f321d6ec76a0f0c51904cc
/security.py
f6bde07f29dcad405e96430b111a07b990a000fa
[]
no_license
AmritaNeha19/my-rest-api
29c36713630c06592eb9228eead55a47bc3cd681
0feb5e43237dbfe3a7b7a6d9b55c4856dc1816eb
refs/heads/master
2023-06-25T23:08:31.011693
2021-07-25T11:05:10
2021-07-25T11:05:10
389,323,425
0
0
null
null
null
null
UTF-8
Python
false
false
290
py
from models.user import UserModel def authenticate(username, password): user = UserModel.find_by_username(username) if user and user.password == password: return user def identity(payload): user_id = payload['identity'] return UserModel.find_by_userid(user_id)
[ "amritaneha19@gmail.com" ]
amritaneha19@gmail.com
a24df8ce78ac686f3b1e2b8425cc73319caabd34
0f24e87c9035a2203de61c8dc67be332cedf4c97
/browser/fields.py
63d70485a6d16c324bf708ad38382f4e26697d35
[]
no_license
timleslie/gattini
05a2e6cc806cce9253c8a8d46e8b66e84161ee0e
5b3f10859d306bfd35205ad2014f6d9a91c4b094
refs/heads/master
2021-01-18T16:32:30.735454
2012-06-08T08:36:15
2012-06-08T08:36:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,555
py
""" This module contains classes which represent database fields and their derived values for display in the Gattini Data Explore. """ import numpy as N from pylab import log10, pi from matplotlib.dates import num2date, date2num from db.query import per_image_fields, per_star_fields def get_x_data(result, field): ...
[ "timl@breakawayconsulting.com.au" ]
timl@breakawayconsulting.com.au
3f6b96bd37777af22a45a424ab153ca53b208f80
abf1916a72b4a308858aa7a00e8882ca68fe9b54
/accounts/models.py
17406dc4f216f34327002efefb20bf04d50dc2c7
[]
no_license
impratap/Newspaper_in_Django
c54cc2cf2e031a0b3aa94c63b85428249b2830f3
6a0a800b1fea1d1e8b5f1d7c5e1719e0c625142d
refs/heads/main
2023-08-12T08:24:39.348976
2021-09-29T18:05:42
2021-09-29T18:05:42
388,561,489
1
0
null
null
null
null
UTF-8
Python
false
false
254
py
from django.contrib.auth.models import AbstractUser from django.db import models class CustomUser(AbstractUser): age = models.PositiveIntegerField(null=True, blank=True)
[ "ankitpratapsingh333@gmail.com" ]
ankitpratapsingh333@gmail.com
c9d98c8c4d7a53b3a1e1c19aa8a54ebf068e5adb
eed5bd36f4c287d92db4855a2c71aa7aee1f58a9
/qfin/assets/spot.py
555fdd231cc7c1a6e5531420235e11ed58b0bf8c
[]
no_license
vitaliakogut/hedging_cc
7d5a070187e98dbc84d360171bcba62d985036c9
8876f37412755b89c67ebffd629186807871b614
refs/heads/master
2023-08-27T23:46:46.607876
2021-11-11T15:54:15
2021-11-11T15:54:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
506
py
from qfin.assets import Asset class Spot(Asset): def __init__(self, s0, rate, *args, **kwargs): super().__init__(*args, **kwargs) self.s0 = s0 self.rate = rate @property def asset_name(self): return f"SPOT" def generate(self): msg = f"Generation of the paths ...
[ "lilimatic@Lilis-MacBook-Pro.local" ]
lilimatic@Lilis-MacBook-Pro.local
3a74d29ca2e60ada74bce7805174b4c8f218a0c1
7e686824108f22f095a89860b235cc1267e6d32f
/test/functional/feature_rbf.py
74e53a3b57c55646d78fff059439d3f3de393dc2
[ "MIT" ]
permissive
alleck/Splendid
2aace2cf675233c3c435c4eab4aedf8b32f23347
8ea29bda381628f954d1699a38a70c3ae3506ed9
refs/heads/main
2023-03-20T11:20:13.567687
2021-02-22T21:56:34
2021-02-22T21:56:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
22,951
py
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The Bitcoin Core developers # Copyright (c) 2017-2020 The Splendid Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the RBF code.""" from test_framework.test...
[ "79376856+SplendidProject@users.noreply.github.com" ]
79376856+SplendidProject@users.noreply.github.com
06ea7004e6548c99ae12598d02b6772fe46d7dec
417ab6024a95e97b4d2236c67e28d00e6d1defc0
/python/fetch/s58589/video.py
ed22519cf6a9c389fddd2e76eb4a290ff89c4b7b
[]
no_license
zeus911/myconf
11139069948f7c46f760ca0a8f1bd84df5ec4275
6dc7a6761ab820d6e97a33a55a8963f7835dbf34
refs/heads/master
2020-04-18T02:16:09.560219
2019-01-22T18:15:08
2019-01-22T18:15:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,392
py
#!/usr/bin python # -*- coding: utf-8 -*- from baseparse import * from urlparse import urlparse from common import common from urllib import unquote import time from fetch.profile import * class VideoParse(BaseParse): def __init__(self): pass def run(self): dbVPN = db.DbVPN() ops = db_...
[ "liguoqing19861028@163.com" ]
liguoqing19861028@163.com
bca9b0d70711b54dbd8d5e7a546d4d8f9f3c7bc8
2e883bd0291df0529175a2782ae91c738ed94796
/Beginner_Student/passingreference.py
62f748ef5f9b5766a763f8b7ab9665667a5613fa
[]
no_license
jpquinn62/ATBS-Python
1b560f71cd44cad479c397874b2521c688a38c1e
66ea20050fe6a3366673062d0f0daf981688d445
refs/heads/master
2021-01-10T09:25:57.165214
2016-03-27T18:35:07
2016-03-27T18:35:07
52,700,795
3
0
null
null
null
null
UTF-8
Python
false
false
98
py
def eggs(someParameter): someParameter.append('Hello') spam = [1,2,3] eggs(spam) print(spam)
[ "quinn.jay@gmail.com" ]
quinn.jay@gmail.com
395c456b453400fa986c84776abccd917bbdcf1b
7c82bb206839fccc28e8bc0de06deeaaf3db5960
/MachineLearning/src/ch3/01_20170403/csv-read2.py
8b78483ccec76e69ec1d1fbf388c1f69ec41fd67
[]
no_license
tsuki1646/Python
7624c7ef3fd17556b3fb2a9fa8ee9017c2081f18
bc596d2c938cffcc98947f4eca2a6de5704cfce0
refs/heads/master
2020-03-27T07:25:26.075076
2017-05-27T01:30:02
2017-05-27T01:30:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
253
py
import csv, codecs # Shift-JISのCSVファイルを読む filename = "list-sjis.csv" fp = codecs.open(filename, "r", encoding="shift-jis") # 1行ずつ読む reader = csv.reader(fp, delimiter=",", quotechar='"') for c in reader: print(c[1], c[2])
[ "y.inagaki53@gmail.com" ]
y.inagaki53@gmail.com
b31415e72940e35d0dea7aa1ae8c0f093b2613db
c84427345c08aa965e6323160dd81735251678bb
/p3dx_transceiver/axis_camera/nodes/axis_ptz.py
40a54ae1500fc866085655dd56e92f191a0df391
[]
no_license
dhrodriguezg/P3DX_Platform
3cbaa1e2be20427a7e391381baf8f26f47d6384e
e5aef3d7fd7593a122cef6df36697cffebaf8998
refs/heads/master
2021-01-21T08:54:38.274352
2017-08-31T04:57:10
2017-08-31T04:57:10
101,960,069
0
0
null
null
null
null
UTF-8
Python
false
false
3,447
py
#!/usr/bin/env python # # Basic PTZ node, based on documentation here: # http://www.axis.com/files/manuals/vapix_ptz_45621_en_1112.pdf # import threading import urllib import urllib2 import base64 import httplib, urllib import rospy from axis_camera.msg import Axis from std_msgs.msg import Bool from std_msgs.msg imp...
[ "dh.rodriguezg@gmail.com" ]
dh.rodriguezg@gmail.com
71e1a5eda5f89ca8545135e293807b109c44eec7
cb741a3d5b7c634e00f64771c37d27ca9b59c5c9
/PycharmProjects/pythonProject1/Test02.py
33f64edcb5246916afaa16037cc7235e7ca0d9ee
[]
no_license
aleksandra925/projekt_appium
c3e50f96788e4c8ab5bbfaffce81601b0fc16125
c597fa604e149105014709badadf621dba03524e
refs/heads/main
2023-06-07T13:07:14.063478
2021-07-03T23:11:53
2021-07-03T23:11:53
382,714,015
0
0
null
null
null
null
UTF-8
Python
false
false
1,772
py
import unittest import os from appium import webdriver from time import sleep PATH = lambda p: os.path.abspath( os.path.join(os.path.dirname(__file__), p) ) class Test1Appium(unittest.TestCase): def setUp(self): desired_caps = {} desired_caps['app'] = PATH('ContactManager.apk') desire...
[ "aleksandra925@users.noreply.github.com" ]
aleksandra925@users.noreply.github.com
ddc286841bea7b56b520bff0925ecac10bed0530
b7aa9d9dfa1f98ccd779e5ea64f8fd1d96a16cdf
/2020.2021/07_KNF_DPLL_SAT/Marko/cnf.py
6f1134cd257adc52ee1bb00f3a584b86d340d933
[]
no_license
matfvi/vi
b628983e31332b5a79047ce20203716c6ec4ce1f
d20ec947b359d84418d6aa05afa91eadecde3879
refs/heads/master
2023-05-25T14:02:33.791302
2023-05-20T16:20:39
2023-05-20T16:20:39
122,360,903
46
79
null
2020-06-01T20:12:11
2018-02-21T16:22:20
HTML
UTF-8
Python
false
false
1,100
py
class CNF: def __init__(self): self.clauses = [] self.number_to_var_name = {} self.var_name_to_number = {} def add_clause(self, clause): for literal in clause: var_name = literal.strip('-') if var_name not in self.var_name_to_number: ...
[ "spaskeasm@gmail.com" ]
spaskeasm@gmail.com
d1bb3ed4301c2d4059d9318b9cec14819f0c700d
473415cb4ee038cd2056a4502e7b25fb443e1518
/src/olympe/_private/pomp_loop_thread.py
7a84f4bbcdc72a25efebe6272f938fbb44e0df2f
[ "BSD-3-Clause" ]
permissive
wahyurahmaniar/olympe
4b5eac08139da2aa060c13fe719c8a1fdbcd6974
0cf65bc971024b6cf03ad1c0a662aea452761534
refs/heads/master
2020-09-11T17:13:53.369812
2019-09-26T11:50:13
2019-09-26T11:58:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
13,314
py
# -*- coding: UTF-8 -*- # Copyright (C) 2019 Parrot Drones SAS # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # * Redistributions of source code must retain the above copyright # notice, this list of conditi...
[ "nicolas.dessart@parrot.com" ]
nicolas.dessart@parrot.com
ef0dd796c9cb6f41e96663d4f8b3787ddfcb2c4b
4314a813434328d3b92bb002fefe329acfdf5b7c
/session3/hw/ccif.py
20c4d2922be23ce3b9c798aed3e08306b336b43c
[]
no_license
dotiendat2301/DATD4E11
0430264ecbc75be6dd83648c5be2924eedf3ed3d
75ec9ad27ad770ee97e73de238b9dc6e8824ea3f
refs/heads/master
2022-08-29T06:14:38.326752
2020-05-23T14:19:52
2020-05-23T14:19:52
264,968,312
0
0
null
null
null
null
UTF-8
Python
false
false
90
py
c=int(input("Enter The Temprature In Cencius :")) f= 32 + c*1.8 print(c,"(C)=",f,"(F)")
[ "dotiendat2301@gmail.com" ]
dotiendat2301@gmail.com
e89fd12c00e917aec1603917c8b784f4c0856fc4
2c271619e27d516dd9e6a19c32130e6fcc500d60
/linearbag.py
26c256ccab66a42d4074043ca37ef0396cfac72c
[]
no_license
RevolF/dataStructAndAlgosInPython
5780db89457b114b4a3f0d7cc69940184b0b12a6
d69c0f04de279b85fee558e2ebb8cea77753a138
refs/heads/master
2021-01-18T06:42:53.470643
2017-04-19T05:44:40
2017-04-19T05:44:40
84,284,225
0
0
null
null
null
null
UTF-8
Python
false
false
1,298
py
# -*- coding: utf-8 -*- """ Created on Mon Feb 27 16:01:01 2017 @author: thor """ #============================================================================== # use __str__ and __repr__ for print class #============================================================================== class Bag: def __init__(self): ...
[ "929042297@qq.com" ]
929042297@qq.com
46704702b85011345fc39dacbe1433db96bfee18
34932f68b9878081748d96f267bd7a8359c24ffc
/code/derivatives.py
4acdd9ae7c4a81771d706b2786c1eb10623caf02
[]
no_license
rossfadely/wfc3psf
388160cd692d77e4db24668a924f12004099d572
b0ac9fd1ed993f250cd1923d6a4ca16dd7f42a70
refs/heads/master
2020-06-04T08:54:15.044796
2014-12-15T20:40:38
2014-12-15T20:40:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,859
py
import multiprocessing import numpy as np from patch_fitting import eval_nll, make_background, evaluate from generation import render_psfs def get_derivatives(data, dq, shifts, psf_model, old_nlls, fit_parms, masks, parms): """ Calculate the derivatives of the objective (in patch_fitting) ...
[ "rossfadely@gmail.com" ]
rossfadely@gmail.com