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
efceb7bfde0ca3da44a812a43f838b7ac79170bb
79eb159b3ee36eb76bd921be24081708f44ac735
/tests/test_codec.py
d9f73bcd0a34d29503f034d3199e6d5a2172f9d8
[]
no_license
osh/PyAV
d7139f8faf7ee0973376db807e3b917863e9fb73
5fa85fd142ee8dabf01f4873e29678aeca153b4f
refs/heads/master
2021-01-18T13:24:52.202662
2015-12-11T04:01:52
2015-12-11T04:01:52
47,802,016
1
0
null
2015-12-11T03:12:18
2015-12-11T03:12:18
null
UTF-8
Python
false
false
620
py
from .common import * from av.codec import Codec from av.video.format import VideoFormat class TestCodecs(TestCase): def test_codec_mpeg4(self): c = Codec('mpeg4') self.assertEqual(c.name, 'mpeg4') self.assertEqual(c.long_name, 'MPEG-4 part 2') self.assertEqual(c.type, 'video') ...
[ "github@mikeboers.com" ]
github@mikeboers.com
2614cf1f44792beeb55c2a2e4257282366b8da9c
f33b30743110532ddae286ba1b34993e61669ab7
/869. Reordered Power of 2.py
9fecfa97156c715493e1bcf2e58aab9b47cf8034
[]
no_license
c940606/leetcode
fe9dcee7a5daa4d52999d5f53253dd6dd33c348b
631df2ce6892a6fbb3e435f57e90d85f8200d125
refs/heads/master
2021-07-10T14:01:26.164966
2020-08-16T10:46:16
2020-08-16T10:46:16
186,588,449
3
0
null
null
null
null
UTF-8
Python
false
false
299
py
class Solution: def reorderedPowerOf2(self, N): """ :type N: int :rtype: bool """ from collections import Counter c = Counter(str(N)) return any(c == Counter(str(1 << i)) for i in range(32)) a = Solution() print(a.reorderedPowerOf2(16))
[ "762307667@qq.com" ]
762307667@qq.com
100195dfd715236cf3362301bc411a12a0be41c5
693567f042c6bd93ecdda41cb5db81c55ccf3158
/List/swap two elements in a list (another approach).py
c013b3bb504c2f734752ab41623c4161c62e0bf9
[]
no_license
supriyo-pal/Python-Practice
5806e0045ebfeb04856246a245430e2ab7921ba9
2025369f0d23d603ad27eaff149500137e98dbcf
refs/heads/main
2023-01-25T05:31:58.404283
2020-12-09T19:08:22
2020-12-09T19:08:22
317,021,138
0
0
null
null
null
null
UTF-8
Python
false
false
796
py
# -*- coding: utf-8 -*- """ Created on Wed Dec 2 21:57:25 2020 @author: Supriyo """ number=input("enter the numbers between 0-9:") number_list=list() length=0 for i in range(len(number)): number_list.append(number[i]) length=len(number_list) print("Choose one position between 0 to",length) ...
[ "noreply@github.com" ]
supriyo-pal.noreply@github.com
f735e541e2852a473ab392064cf9429ac1a90ffc
0db19410e9751790af8ce4a0a9332293e379c02f
/configs/body_2d_keypoint/rtmpose/humanart/rtmpose-s_8xb256-420e_humanart-256x192.py
b4263f25e741e25a0ec5b85900ff1b2587d2805d
[ "Apache-2.0" ]
permissive
open-mmlab/mmpose
2c9986521d35eee35d822fb255e8e68486026d94
537bd8e543ab463fb55120d5caaa1ae22d6aaf06
refs/heads/main
2023-08-30T19:44:21.349410
2023-07-04T13:18:22
2023-07-04T13:18:22
278,003,645
4,037
1,171
Apache-2.0
2023-09-14T09:44:55
2020-07-08T06:02:55
Python
UTF-8
Python
false
false
6,656
py
_base_ = ['../../../_base_/default_runtime.py'] # runtime max_epochs = 420 stage2_num_epochs = 30 base_lr = 4e-3 train_cfg = dict(max_epochs=max_epochs, val_interval=10) randomness = dict(seed=21) # optimizer optim_wrapper = dict( type='OptimWrapper', optimizer=dict(type='AdamW', lr=base_lr, weight_decay=0.)...
[ "noreply@github.com" ]
open-mmlab.noreply@github.com
1cc3c3e0a40e800b3eca55bc1f2adf1f5bbcee2a
0fb867b48b5a0bd88f9fefb5cdcad0b4abe720b6
/calculator.spec
646bfee63aa626e392df8c449574bd17d9edbe61
[]
no_license
sparshjaincs/Simple-Calculator
c010181d0ad0bc09719f813e6d91f7b87d990d5d
76c597c2e59a806c8d8a93ad8b798288639e7da1
refs/heads/master
2020-06-21T17:10:16.012591
2019-07-18T19:15:22
2019-07-18T19:15:22
197,511,687
2
0
null
null
null
null
UTF-8
Python
false
false
817
spec
# -*- mode: python -*- block_cipher = None a = Analysis(['calculator.py'], pathex=['G:\\Projects\\Calculator'], binaries=[], datas=[], hiddenimports=[], hookspath=[], runtime_hooks=[], excludes=[], win_no_prefer_r...
[ "sparshjaincs@gmail.com" ]
sparshjaincs@gmail.com
eb07d2a3f8f793245785b8e732d7d785d49671b6
282d0a84b45b12359b96bbf0b1d7ca9ee0cb5d19
/Malware1/venv/Lib/site-packages/scipy/interpolate/fitpack2.py
0f14d84f30435f315adac039526c16ae5d5cd92f
[]
no_license
sameerakhtar/CyberSecurity
9cfe58df98495eac6e4e2708e34e70b7e4c055d3
594973df27b4e1a43f8faba0140ce7d6c6618f93
refs/heads/master
2022-12-11T11:53:40.875462
2020-09-07T23:13:22
2020-09-07T23:13:22
293,598,094
0
0
null
null
null
null
UTF-8
Python
false
false
130
py
version https://git-lfs.github.com/spec/v1 oid sha256:422178a9adf00766a95a781c4d8e1837d120bc65542ddd936c9f14decc375ae8 size 62749
[ "46763165+sameerakhtar@users.noreply.github.com" ]
46763165+sameerakhtar@users.noreply.github.com
f046f12d7b3f16ea03cc78bebd1b08607193f082
c086a38a366b0724d7339ae94d6bfb489413d2f4
/PythonEnv/Lib/site-packages/pythonwin/pywin/framework/editor/frame.py
9e74114d102460a9401b98c1320ac20636a4a733
[]
no_license
FlowkoHinti/Dionysos
2dc06651a4fc9b4c8c90d264b2f820f34d736650
d9f8fbf3bb0713527dc33383a7f3e135b2041638
refs/heads/master
2021-03-02T01:14:18.622703
2020-06-09T08:28:44
2020-06-09T08:28:44
245,826,041
2
1
null
null
null
null
UTF-8
Python
false
false
3,164
py
# frame.py - The MDI frame window for an editor. import pywin.framework.window import win32ui import win32con import afxres from . import ModuleBrowser class EditorFrame(pywin.framework.window.MDIChildWnd): def OnCreateClient(self, cp, context): # Create the default view as specified by the template (ie...
[ "=" ]
=
a2a2518930512317c83f34ef6273bff3efd67fe4
88a54c5e2cf3d16e5288261a37840428bf6c4834
/src/article_loader.py
8654a31e9a45bdbf8fdbf8d3c4253eac3d4185af
[]
no_license
VitalyRomanov/document-clustering
f2fa1c617ef8f4e2ba69ba0c152d80c919361b25
412a21b857b79a644f77b728b8798dda9e854e29
refs/heads/master
2022-04-07T22:04:30.804892
2018-02-03T18:50:25
2018-02-03T18:50:25
104,849,940
0
0
null
null
null
null
UTF-8
Python
false
false
6,666
py
import json import os # import pickle as p import joblib as p from datetime import datetime import urllib.request import numpy as np def date2int(date): return int(datetime.strptime(date, '%Y-%m-%d %H:%M:%S').timestamp()) def get_date(ts): return datetime.fromtimestamp( int(repr(ts)) ).strftime...
[ "mortiv16@gmail.com" ]
mortiv16@gmail.com
be1d104b2f9883aeb4d68360c1c230337ff776cd
3740de0d6e43ea140fc09ab314e4c492603ba185
/scripts/sources/S_EstimateQuantileMixtureStressTest.py
fb9d5a602ba8a987d718463a4796f474687762ad
[ "MIT" ]
permissive
s0ap/arpmRes
29c60c65fd3e11be1cc31d46494e5b3ebf6e05ab
ddcc4de713b46e3e9dcb77cc08c502ce4df54f76
refs/heads/master
2022-02-16T05:01:22.118959
2019-08-20T16:45:02
2019-08-20T16:45:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,523
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.4' # jupytext_version: 1.1.4 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # S_Es...
[ "dario.popadic@yahoo.com" ]
dario.popadic@yahoo.com
78143c4e6942051b155a1e0dc181ef0d38715934
c67f2d0677f8870bc1d970891bbe31345ea55ce2
/zippy/lib-python/3/test/test_genexps.py
cc75ac26ee667116ef05274e3e3a41516ae62aeb
[ "BSD-3-Clause" ]
permissive
securesystemslab/zippy
a5a1ecf5c688504d8d16128ce901406ffd6f32c2
ff0e84ac99442c2c55fe1d285332cfd4e185e089
refs/heads/master
2022-07-05T23:45:36.330407
2018-07-10T22:17:32
2018-07-10T22:17:32
67,824,983
324
27
null
null
null
null
UTF-8
Python
false
false
7,149
py
doctests = """ Test simple loop with conditional >>> sum(i*i for i in range(100) if i&1 == 1) 166650 Test simple nesting >>> list((i,j) for i in range(3) for j in range(4) ) [(0, 0), (0, 1), (0, 2), (0, 3), (1, 0), (1, 1), (1, 2), (1, 3), (2, 0), (2, 1), (2, 2), (2, 3)] Test nesting with the inner ...
[ "thezhangwei@gmail.com" ]
thezhangwei@gmail.com
43d2678fe00adbaa6aeb89d3ac85cee449782bf5
2ed86a79d0fcd299ad4a01310954c5eddcf01edf
/homeassistant/components/tankerkoenig/binary_sensor.py
5f10b54f7042763cd7b371c8f9cef7f5b76c43ec
[ "Apache-2.0" ]
permissive
konnected-io/home-assistant
037f12c87bb79e19220192eb918e49db1b1a8b3e
2e65b77b2b5c17919939481f327963abdfdc53f0
refs/heads/dev
2023-05-11T08:57:41.891518
2023-05-07T20:03:37
2023-05-07T20:03:37
109,931,626
24
10
Apache-2.0
2023-02-22T06:24:01
2017-11-08T05:27:21
Python
UTF-8
Python
false
false
2,257
py
"""Tankerkoenig binary sensor integration.""" from __future__ import annotations import logging from homeassistant.components.binary_sensor import ( BinarySensorDeviceClass, BinarySensorEntity, ) from homeassistant.config_entries import ConfigEntry from homeassistant.const import ATTR_LATITUDE, ATTR_LONGITUDE...
[ "noreply@github.com" ]
konnected-io.noreply@github.com
94c88e893fab70eb22becd4d8470f07518bbf6a5
8acffb8c4ddca5bfef910e58d3faa0e4de83fce8
/ml-flask/Lib/site-packages/networkx/algorithms/centrality/tests/test_dispersion.py
ea1ba9e9b7e48392782524321a3dcf960ee5d629
[ "MIT" ]
permissive
YaminiHP/SimilitudeApp
8cbde52caec3c19d5fa73508fc005f38f79b8418
005c59894d8788c97be16ec420c0a43aaec99b80
refs/heads/master
2023-06-27T00:03:00.404080
2021-07-25T17:51:27
2021-07-25T17:51:27
389,390,951
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
version https://git-lfs.github.com/spec/v1 oid sha256:831ddc7c07f1bc0699f90cfd23a91ebe38264e16cd0c35dcf82dab49654d5e00 size 1601
[ "yamprakash130@gmail.com" ]
yamprakash130@gmail.com
d00f8a5113df64077c306d43ae28a8fd05eda42a
ae4e517aebe74a851df977af1a11d2a67120050c
/h2o-py/tests/testdir_munging/unop/pyunit_expr_math_ops.py
970952c2b4e4d21a1f40dda8da7beca2cf42bea5
[ "Apache-2.0" ]
permissive
StephaneFeniar/h2o-dev
8dd06549ddee490d6db5b7dd41f043e061cee121
2c0c69aeda69d08be5edce330bf34898e9b2ab2b
refs/heads/master
2021-01-14T08:51:40.694426
2015-04-18T21:01:23
2015-04-18T21:01:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,544
py
import sys sys.path.insert(1, "../../../") import h2o import numpy as np import random import math import scipy.special def expr_math_ops(ip,port): # Connect to h2o h2o.init(ip,port) sin_cos_tan_atan_sinh_cosh_tanh_asinh_data = [[random.uniform(-10,10) for r in range(10)] for c in range(10)] asin_acos...
[ "eric.eckstrand@gmail.com" ]
eric.eckstrand@gmail.com
54784ae241ebb27af2105733d27895990c63c635
d024ccbb4cc04af3866a4db1ac1d8c1d7395d909
/boj/4673.py
28d025abbfa54b5cb36be7af6190215810610b63
[]
no_license
demetoir/ps-solved-code
ff0418dddd10f3b053c9b8d32af48027b10c8481
f4d4fd2183176b083f2287c9d89c6d5a1e983cc5
refs/heads/master
2022-10-14T20:11:34.581439
2020-06-12T11:24:11
2020-06-12T11:24:11
68,782,768
1
0
null
null
null
null
UTF-8
Python
false
false
135
py
l=lambda n:n%10+l(n//10) if n>0 else 0 a=[1]*20002 for i in range(1,10000):a[l(i)+i]=0 for i in range(1,10000): if a[i]==1:print(i)
[ "wnsqlehlswk@gmail.com" ]
wnsqlehlswk@gmail.com
5df196843c25b81138c44c75987e86e0af7debc1
3dfa65c42241d866dcf82d2f6faf603e5aec096c
/gladweb/views/index.py
340e3f77f04331b417dcf26cd0303c55a194ac4b
[]
no_license
Dav1dde/glad-web
0ad5f11f4ca0966ae29b4c1972a02295bdd6c47c
ff05bd08efca97c2f40fbf3e9f8fde265b7c8e7d
refs/heads/master
2023-03-07T18:31:52.638325
2023-02-25T16:14:12
2023-02-25T16:14:12
35,337,528
396
74
null
null
null
null
UTF-8
Python
false
false
4,874
py
import json import os import sys import tempfile import zipfile from collections import namedtuple from flask import Blueprint, request, render_template, g, url_for, redirect, flash, current_app import glad.lang.c.generator from glad.spec import SPECS from gladweb.views.exception import InvalidUserInput if sys.versio...
[ "admin@dav1d.de" ]
admin@dav1d.de
e44e9989565a9d1ffcbc9142748500ff5a274785
e0980f704a573894350e285f66f4cf390837238e
/.history/streams/blocks_20201022114431.py
652f1b7cfbfba3d9c2325e1ea062cb799ef42b97
[]
no_license
rucpata/WagtailWebsite
28008474ec779d12ef43bceb61827168274a8b61
5aa44f51592f49c9a708fc5515ad877c6a29dfd9
refs/heads/main
2023-02-09T15:30:02.133415
2021-01-05T14:55:45
2021-01-05T14:55:45
303,961,094
0
0
null
null
null
null
UTF-8
Python
false
false
1,583
py
from wagtail.core import blocks from wagtail.images.blocks import ImageChooserBlock class TitleBlock(blocks.StructBlock): text = blocks.CharBlock( required = True, elp_text='Tekst do wyświetlenia', ) class Meta: template = 'streams/title_block.html' icon = 'edycja' ...
[ "rucinska.patrycja@gmail.com" ]
rucinska.patrycja@gmail.com
566b949d5b6105ffa0ac3812e25ae751a59de219
fdd67d3733d3db2fb381f25b0985952e3f7c9a4f
/epdAlarm.py
9fc35afaa5fac12a5bf4482d115b6d71392bd049
[]
no_license
star-controls/epdAlarm
56c6ef50616ea4290217b41d0daf3c4ebf7ee952
4a966e38116344b9d209dd8efc9abfbbc0e4db5a
refs/heads/master
2020-03-21T07:51:27.655488
2019-03-05T15:04:12
2019-03-05T15:04:12
138,303,832
0
0
null
null
null
null
UTF-8
Python
false
false
6,072
py
from epdchan import epdchan import paho.mqtt.client as mqtt from watchdog import watchdog from softioc import builder import time import pandas as pd #EPD PVs builder.SetDeviceName('EPD') #list of all EPD channels as 3-index list npp = 12 ntile = 31 elist = [] #east/west loop for ew in range(0,2): elist.append([])...
[ "jaroslav.adam@cern.ch" ]
jaroslav.adam@cern.ch
a06b4cdb26e979978b7442a5953e6661148f9c4d
90c6262664d013d47e9a3a9194aa7a366d1cabc4
/scripts/make_contract_tests.py
c5a713b158970664e7323b7f9745d351a8a8b188
[ "MIT" ]
permissive
tqtezos/pytezos
3942fdab7aa7851e9ea81350fa360180229ec082
a4ac0b022d35d4c9f3062609d8ce09d584b5faa8
refs/heads/master
2021-07-10T12:24:24.069256
2020-04-04T12:46:24
2020-04-04T12:46:24
227,664,211
1
0
MIT
2020-12-30T16:44:56
2019-12-12T17:47:53
Python
UTF-8
Python
false
false
5,441
py
from os.path import join, dirname, exists from os import mkdir import json from conseil import conseil from conseil.api import ConseilApi from pytezos import pytezos from tests import relpath from tests.templates import michelson_coding_test_case, micheline_coding_test_case, \ test_michelson_parse,test_michelson_f...
[ "mz@baking-bad.org" ]
mz@baking-bad.org
a3b4529f2a8af100e1863c8d7f61d0522f76b1ce
a46646a707b9d747fcf29a86f67a4ccbcbd0ddb9
/week10/book/76prayme.py
9a15021619c3da6599d23328531d5d56030c674c
[]
no_license
DevooKim/algorithm-study
5720642bb43ea364dae924ee038f97379f2ef85b
830b148defc7f0097abe2f5d3f4e9d8f3333efb0
refs/heads/main
2023-02-23T18:40:28.978111
2021-01-28T12:09:06
2021-01-28T12:09:06
302,206,505
2
1
null
2021-01-28T12:09:07
2020-10-08T01:54:08
Python
UTF-8
Python
false
false
2,155
py
import collections import heapq import functools import itertools import re import sys import math import bisect from typing import List class Solution: def minWindow(self, s: str, t: str) -> str: # T의 크기부터 점점 키워가기 def contains(s_substr_lst: List, t_lst: List): for t_elem in t_lst: ...
[ "dbfpzk142@gmail.com" ]
dbfpzk142@gmail.com
ba739e1e9487460532edf7325747f1c35b66b048
1e9ad304868c2bda918c19eba3d7b122bac3923b
/kubernetes/client/models/v1beta1_http_ingress_rule_value.py
168b201cfa6cc6450e6154e0ffdd4d11d9e0805c
[ "Apache-2.0" ]
permissive
pineking/client-python
c77e5bd3d476ac852e6dffa96056008baa0f597f
74a64d7325518f4298600d4bb300f92843c29347
refs/heads/master
2021-01-22T22:16:27.368406
2017-03-15T08:21:21
2017-03-15T08:21:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,219
py
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.5.1-660c2a2 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems im...
[ "mehdy@google.com" ]
mehdy@google.com
16b6d2a2bb371aec5835e7f3d24bccfd8b4ec178
b005d794cfd8e3b063b08d6a266b1e07f0f0f5e9
/src/webapp/geolist/forms.py
37418890337878c9eab7f4a4c60577f54493ef96
[]
no_license
GeoRemindMe/GeoRemindMe_Web
593c957faa5babb3040da86d94a5d884ad4b2db3
d441693eedb32c36fe853895110df808a9959941
refs/heads/master
2021-01-16T18:29:39.633445
2011-11-05T23:50:37
2011-11-05T23:50:37
1,841,418
8
5
null
null
null
null
UTF-8
Python
false
false
928
py
# coding=utf-8 from django import forms from django.utils.translation import gettext_lazy as _ from georemindme.models_utils import VISIBILITY_CHOICES class ListRequestedForm(forms.Form): name = forms.CharField(required=True) description = forms.CharField(required=False,widget=forms.Textarea()) vi...
[ "jneight@gmail.com" ]
jneight@gmail.com
e564cbb6e5bd4a5146b48e57490b98887aa49bcc
bde6ed092b7b29703737e11c5a5ff90934af3d74
/AtCoder/tkppc/c.py
c001eb99b71d1c90cfe2d44eb70b9b13d6f44518
[]
no_license
takecian/ProgrammingStudyLog
2ab7ea601e0996b3fa502b81ec141bc3772442b6
94485d131c0cc9842f1f4799da2d861dbf09b12a
refs/heads/master
2023-04-28T16:56:18.943574
2023-04-18T06:34:58
2023-04-18T06:34:58
128,525,713
4
0
null
2022-12-09T06:15:19
2018-04-07T12:21:29
Python
UTF-8
Python
false
false
321
py
# https://tkppc.contest.atcoder.jp/tasks/tkppc2015_c N, M = map(int, input().split()) S = int(input()) T = [0 for _ in range(10000)] for _ in range(N): t, k = map(int, input().split()) T[t-1] = k # print(T) total = 0 d = 0 for i in range(S - 1): total += T[i] if total >= M: d += 1 print(d)...
[ "takecian@gmail.com" ]
takecian@gmail.com
4ab92065962d53964ce2f930d220837337ee3eac
c318bd15c40063639edc95bb8419f4c0f4a2b54f
/update_s3_configuration.py
e520e1541db8ce977a5e0513f0439b48d7e25a29
[ "MIT" ]
permissive
cwestleyj/HearthstoneJSON
716fa1b05782d311a04c16c5917ad6e6ae15749a
ed30c943983a4ee0da3a80562655d5a274faad39
refs/heads/master
2021-01-19T10:36:59.554294
2017-02-10T16:29:13
2017-02-10T16:29:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,954
py
#!/usr/bin/env python import sys import boto3 from pprint import pprint API_BUCKET = "api.hearthstonejson.com" ART_BUCKET = "art.hearthstonejson.com" def update_website_configuration(s3, build, bucket=API_BUCKET): print("Querying website configuration for %r" % (bucket)) orig_config = s3.get_bucket_website(Bucke...
[ "jerome@leclan.ch" ]
jerome@leclan.ch
731800828469aa1b78563d3dae74e8f7ed296abf
2bdedcda705f6dcf45a1e9a090377f892bcb58bb
/src/main/output/point/president/way/kerberos_place_part.py
a02fe413ce8add5d86a79fbfa0f688adb60943f7
[]
no_license
matkosoric/GenericNameTesting
860a22af1098dda9ea9e24a1fc681bb728aa2d69
03f4a38229c28bc6d83258e5a84fce4b189d5f00
refs/heads/master
2021-01-08T22:35:20.022350
2020-02-21T11:28:21
2020-02-21T11:28:21
242,123,053
1
0
null
null
null
null
UTF-8
Python
false
false
2,105
py
using System; using System.Net; using System.Net.Http; using System.Threading.Tasks; using Microsoft.Translator.API; namespace CSharp_TranslateSample { public class Program { public static string traducida; public static void Main(string[] args) { //TranslateAsync().Wait(); ...
[ "soric.matko@gmail.com" ]
soric.matko@gmail.com
b5d7d906ca1b952f86510b73dd4b2ab3e980c6db
283815445952a37e0124801b456844774355733f
/app/models/__init__.py
ffca30aca69e6931817c66d4933a609c5d6bf330
[]
no_license
paulosjd/woodrecs
7aa4bec22f2c126bd51023e141f1a113c8faf3d8
19a8a53c753ae0978fc092d9a2f6f560dc8644bf
refs/heads/master
2022-07-07T08:36:06.902801
2020-11-08T21:59:00
2020-11-08T21:59:00
251,587,209
0
0
null
2022-06-22T01:36:43
2020-03-31T11:47:53
Python
UTF-8
Python
false
false
183
py
from .profile import Profile from .profile_board import ProfileBoard from .route import Route from .user import User __all__ = [ Profile, ProfileBoard, Route, User ]
[ "pjdavis@gmx.com" ]
pjdavis@gmx.com
061b46322d284653c94c803921d86a35f31c4c3a
8c067089ac94844919c4dc37681c898c0f93819e
/jenkins-master/jobs/scripts/workspace/config.py
c477a45df06ebcddcd194c10096182da65606db8
[]
no_license
Ramireddyashok/mozmill-ci
9ac1a5762fa8c14c4802447a9d5878422d2e164a
0b8c6417e596235cca403ca80947fc328bd2fe8b
refs/heads/master
2021-04-30T01:27:42.502771
2017-06-14T18:24:50
2017-06-14T18:24:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,089
py
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. import os here = os.path.dirname(os.path.abspath(__file__)) config = { 'test_types': { 'functional': { ...
[ "mail@hskupin.info" ]
mail@hskupin.info
b969aff50964ebae5ecd9541c8ed4af2b0ec93fa
4d99350a527a88110b7bdc7d6766fc32cf66f211
/OpenGLCffi/GLX/EXT/NV/copy_image.py
1981ca497e85e50301da73e66cd5b08f9e4f85dd
[ "MIT" ]
permissive
cydenix/OpenGLCffi
e790ef67c2f6c9877badd5c38b7d58961c8739cd
c78f51ae5e6b655eb2ea98f072771cf69e2197f3
refs/heads/master
2021-01-11T07:31:10.591188
2017-04-17T11:04:55
2017-04-17T11:04:55
80,312,084
0
0
null
null
null
null
UTF-8
Python
false
false
409
py
from OpenGLCffi.GLX import params @params(api='glx', prms=['dpy', 'srcCtx', 'srcName', 'srcTarget', 'srcLevel', 'srcX', 'srcY', 'srcZ', 'dstCtx', 'dstName', 'dstTarget', 'dstLevel', 'dstX', 'dstY', 'dstZ', 'width', 'height', 'depth']) def glXCopyImageSubDataNV(dpy, srcCtx, srcName, srcTarget, srcLevel, srcX, srcY, srcZ...
[ "cdenizol@gmail.com" ]
cdenizol@gmail.com
f3d1fe716956a41dcaccd88cddd806332ba54e33
1b5c3039c05427ad5e731a18e06e0e0accb5ce98
/scripts/creatematches.py
2c4bb9fd8b280c5439cdaa0f3eddc508cad483bc
[]
no_license
matthew-brett/beatbased
1df43cb7f16b4d6cde18acecd7d2b7209887ed89
f6c7c6bd0fb62efcb3397d512f70717b49f5cccd
refs/heads/master
2021-01-23T21:42:29.063883
2014-05-30T19:05:06
2014-05-30T19:05:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
728
py
#!/bin/env python '''Creates as many matches as possible for metric sequences, with 5-7 intervals''' import beatsequence as BS #First, create a list of all combinations of intervals, taking those which add up to 12 print "calculating possible combinations" S=[] for length in range(5,10): L=[4 for n in range(lengt...
[ "matthew.brett@gmail.com" ]
matthew.brett@gmail.com
b2a97343f96ca9246962933acc173b23375b9a5c
3474b315da3cc5cb3f7823f19a18b63a8da6a526
/scratch/KRAMS/src/apps/scratch/rch/mlab/yarn_cs.py
2d8a38ca1f2761ea2b42d42e5d831bb3cf157889
[]
no_license
h4ck3rm1k3/scratch
8df97462f696bc2be00f1e58232e1cd915f0fafd
0a114a41b0d1e9b2d68dbe7af7cf34db11512539
refs/heads/master
2021-01-21T15:31:38.718039
2013-09-19T10:48:24
2013-09-19T10:48:24
29,173,525
0
0
null
2015-01-13T04:58:57
2015-01-13T04:58:56
null
UTF-8
Python
false
false
3,840
py
#------------------------------------------------------------------------------- # # Copyright (c) 2009, IMB, RWTH Aachen. # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in simvisage/LICENSE.txt and may be redistributed only # under the conditions des...
[ "Axel@Axel-Pc" ]
Axel@Axel-Pc
3b6a980ffb87af3580820c10aa1428a173c1618d
9399d687b2e41245968ba0e9d413a6789d773b1d
/CI/erlang/erlang/libs/fake_ne/interface/FakeNeKeyword.py
d00bfa40b778bc57c8f8d8b44ee00d7e54648cad
[]
no_license
jiangliu888/DemoForSpeed
be41bdb85a1d1f5ca9350a3a1f681ced5ec9b929
11319bc19c074327d863ac2813a04cef3487f8d6
refs/heads/main
2023-08-23T14:16:21.686155
2021-10-17T12:01:34
2021-10-17T12:01:34
388,452,435
1
0
null
null
null
null
UTF-8
Python
false
false
2,959
py
import os from client.device import DeviceClient from erlang.libs.uranus.interface.EsInterface import EsInterface from erlang.libs.uranus.interface.UranusInterface import UranusInterface from erlang.libs.variables import MeasureResultVariables class FakeNeKeyword(object): DB_PORT = 3000 DB_REST_PORT ...
[ "admin@example.com" ]
admin@example.com
4d00ccd7e2aa83e59a80c5067dca230245fd07bc
09f8a8bb1655cc76a29ac60896d1d42b0145f3c2
/Utils.py
f617be1131d20d1c307cca7ba5b167e85ef6ea3f
[ "BSD-3-Clause" ]
permissive
FlatL1neAPT/PoshC2_Python
4d1eb4d6a639395a32a2674ee49a17969a2b8a79
39f755f67bf4de15e93f56cd690e50924aa8bba0
refs/heads/master
2020-05-04T02:58:16.717780
2019-03-08T10:32:55
2019-03-08T10:32:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,015
py
import os, base64, string, random, re validate_sleep_regex = re.compile("^[0-9]*[smh]$") def gen_key(): key = os.urandom(256/8) return base64.b64encode(key) def formStrMacro(varstr, instr): holder = [] str1 = '' str2 = '' str1 = varstr + ' = "' + instr[:54] + '"' for i in xrange(54, len(instr), 48): ...
[ "email" ]
email
fbc34bce75ef0bcc33b60c5c56c4ee439012a1ba
7e470dd54740ca6331d1341328e344a713329a77
/src/DQD_counting_statistics/zero_freq_statistics.py
a710fb1843cd96bbb95ceec6215f5f71d5d12580
[]
no_license
rstones/DQD_counting_statistics
127eb2ad83c5c69bdfb168975077f541c09d4bbc
3eb5ad9876b59c43c35150238c3af3396b3ad100
refs/heads/master
2020-04-07T03:10:59.294391
2017-10-22T10:58:06
2017-10-22T10:58:06
53,421,629
0
0
null
null
null
null
UTF-8
Python
false
false
1,366
py
''' Created on 8 Mar 2016 @author: rstones ''' import numpy as np import quant_mech.utils as utils from DQD_counting_statistics.DQD_model import DQDModel import matplotlib.pyplot as plt bias_values = np.array([0, 1.5, 3., 4.5, 6.]) Gamma_R_range = np.logspace(-4, 3, 1000) model = DQDModel(remove_elements=True) curre...
[ "r.stones@ucl.ac.uk" ]
r.stones@ucl.ac.uk
28459452020b3f9d921767c1fd75d3f868741f99
26f23588e80acc2b28d4cc70a8fbcf78c5b33a20
/PythonModels/learnBasic/file_options.py
4173a88638e76c5058927e4ba42da592ecbd3ca6
[]
no_license
Timehsw/PythonCouldbeEverything
aa31b3e32bf68b49fe8e96b971637353a8ef644f
85d4f1a2c93c7b1edc34ceb9e8bb3c8d7beb30e9
refs/heads/master
2021-01-01T15:38:25.253094
2018-01-22T06:49:05
2018-01-22T06:49:05
97,661,530
5
2
null
null
null
null
UTF-8
Python
false
false
378
py
# coding=utf8 __author__ = 'zenith' #读文件 f=open("D:\data.txt","r") #print(f.read()) #print(f.readline().strip()) #print(f.readline().strip()) for line in f.readlines(): print(line.strip()) f.close() #文件追加内容 f=open("D:\data.txt","a") f.write("\n超人学院") f.close() #文件覆盖内容 f=open("D:\data.txt","w") f.write("\n超人学院"...
[ "hsw.time@gmail.com" ]
hsw.time@gmail.com
4ec82c4d69562c103864beb83bc5eac587470077
1af49694004c6fbc31deada5618dae37255ce978
/third_party/blink/renderer/bindings/scripts/bind_gen/__init__.py
44c068af8ca05cd83d23acbbb3e0bc2dfd11be14
[ "LGPL-2.0-or-later", "GPL-1.0-or-later", "MIT", "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer", "LGPL-2.1-only", "GPL-2.0-only", "LGPL-2.0-only", "BSD-2-Clause", "LicenseRef-scancode-other-copyleft", "BSD-3-Clause" ]
permissive
sadrulhc/chromium
59682b173a00269ed036eee5ebfa317ba3a770cc
a4b950c23db47a0fdd63549cccf9ac8acd8e2c41
refs/heads/master
2023-02-02T07:59:20.295144
2020-12-01T21:32:32
2020-12-01T21:32:32
317,678,056
3
0
BSD-3-Clause
2020-12-01T21:56:26
2020-12-01T21:56:25
null
UTF-8
Python
false
false
2,353
py
# Copyright 2019 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 os.path import sys # Set up |sys.path| so that this module works without user-side setup of # PYTHONPATH assuming Chromium's directory tree structur...
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
50d41bc04b35250d86a4adb67e67092dd7f34b51
34339da2c834d79c9d3142afb8c498c62fb8917d
/thenewboston_node/blockchain/tasks/debug_task.py
5af50cb9f0a73b2cb20d0323ab22fd1023029219
[ "MIT" ]
permissive
olegtropinin/thenewboston-node
5abfcbe02404f7c5347af724fb06c7f6420226ba
2de4e14ef6855646121840224a82fcfc505b213c
refs/heads/master
2023-08-23T09:33:25.286098
2021-10-14T22:53:15
2021-10-14T22:53:15
417,582,617
0
0
MIT
2021-10-15T17:27:52
2021-10-15T17:27:51
null
UTF-8
Python
false
false
190
py
# TODO(dmu) HIGH: Remove this example task once real tasks are created from celery import shared_task @shared_task(bind=True) def debug_task(self): print(f'Request: {self.request!r}')
[ "dmugtasimov@gmail.com" ]
dmugtasimov@gmail.com
088a093e36d31ff4a4fc4890cd0ea0a3f98a32e7
971e0efcc68b8f7cfb1040c38008426f7bcf9d2e
/tests/artificial/transf_BoxCox/trend_MovingMedian/cycle_30/ar_/test_artificial_32_BoxCox_MovingMedian_30__100.py
eaa3d461b45d44c18f2e1bbaffa799b7393f51fd
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
antoinecarme/pyaf
a105d172c2e7544f8d580d75f28b751351dd83b6
b12db77cb3fa9292e774b2b33db8ce732647c35e
refs/heads/master
2023-09-01T09:30:59.967219
2023-07-28T20:15:53
2023-07-28T20:15:53
70,790,978
457
77
BSD-3-Clause
2023-03-08T21:45:40
2016-10-13T09:30:30
Python
UTF-8
Python
false
false
265
py
import pyaf.Bench.TS_datasets as tsds import tests.artificial.process_artificial_dataset as art art.process_dataset(N = 32 , FREQ = 'D', seed = 0, trendtype = "MovingMedian", cycle_length = 30, transform = "BoxCox", sigma = 0.0, exog_count = 100, ar_order = 0);
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
f9a3518f256b925c3a31d214b721e8d53706123e
f0b741f24ccf8bfe9bd1950425d83b6291d21b10
/backend/api/v2beta1/python_http_client/test/test_v2beta1_runtime_config.py
ea104015c08bff480428f747f9b1fe16d1dd0715
[ "Apache-2.0" ]
permissive
kubeflow/pipelines
e678342b8a325559dec0a6e1e484c525fdcc8ce8
3fb199658f68e7debf4906d9ce32a9a307e39243
refs/heads/master
2023-09-04T11:54:56.449867
2023-09-01T19:07:33
2023-09-01T19:12:27
133,100,880
3,434
1,675
Apache-2.0
2023-09-14T20:19:06
2018-05-12T00:31:47
Python
UTF-8
Python
false
false
1,580
py
# coding: utf-8 """ Kubeflow Pipelines API This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import ...
[ "noreply@github.com" ]
kubeflow.noreply@github.com
355ea3438068cb566e9bb686ad11c0e9bbcbe658
20f86ba7febb3233516f0e2161bc98604c302cc4
/tests/acceptance/page_model/base_page.py
165ad2e4da698093c6351465a36d33bb5fb659c4
[]
no_license
LukaszMalucha/Machine-Learning-Dashboard
5369270ff39710f2c6545ea0828f01265d7e797f
3ee29498d7d74365a2cd33547795ddfe9573dac4
refs/heads/master
2022-12-10T05:08:52.693425
2019-03-14T11:15:54
2019-03-14T11:15:54
126,514,014
8
3
null
2022-12-08T01:33:30
2018-03-23T16:52:05
Python
UTF-8
Python
false
false
1,023
py
from tests.acceptance.locators.base_page import BasePageLocators class BasePage: def __init__(self, driver): self.driver = driver @property def url(self): return 'http://127.0.0.1:5000' @property def title(self): return self.driver.find_element(*BasePageLocat...
[ "lucasmalucha@gmail.com" ]
lucasmalucha@gmail.com
fc4dd2aeebba0b006b2c867b0c71b235f777c216
4737df4162bee6abc7b78d1e8b4930d2cb542d6b
/graphgallery/nn/layers/pytorch/conv/dagnn.py
24f060cea3fb5cf39695a42498b8ea286a211594
[ "MIT" ]
permissive
freebird3366/GraphGallery
d1aa4ff291753ccf0ac4a8e024d18c59d2db8aa8
f3294dad35ca0e14a525ed48f18feae2e9af661f
refs/heads/master
2023-02-23T20:04:30.316450
2021-02-01T16:06:03
2021-02-01T16:06:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,228
py
import torch import torch.nn as nn from graphgallery.nn.init.pytorch import uniform, zeros from ..get_activation import get_activation class PropConvolution(nn.Module): def __init__(self, in_channels, out_channels=1, K=10, use_bias=False, ...
[ "cnljt@outlook.com" ]
cnljt@outlook.com
0180fb50fcc9a71e70b3ccce51b1092d8db51019
09ecd5f17ff36896c141db58563de3887d3f627d
/src/accounts/forms.py
ce6f9e63345af563ce7d020d907191aa2146429a
[]
no_license
samirthapa20/tweetme
df9b43bc8be4975343a54cceebba0f259ab6a6dd
23d77575b85f8f6ff5d8993d3bbbf3898c1e6671
refs/heads/master
2021-05-23T15:32:18.136662
2020-09-09T14:18:37
2020-09-09T14:18:37
253,362,442
0
0
null
null
null
null
UTF-8
Python
false
false
953
py
from django import forms from django.contrib.auth import get_user_model User = get_user_model() class UserRegisterForm(forms.Form): username = forms.CharField() email = forms.EmailField() password = forms.CharField(widget = forms.PasswordInput) password2 = forms.CharField(widget= forms.PasswordInput) def clean_...
[ "samirthapa021@gmail.com" ]
samirthapa021@gmail.com
7fb4f71a9ccc64dc5c65d6bf095c6e49af56ef7a
6820e74ec72ed67f6b84a071cef9cfbc9830ad74
/plans/migrations/0008_auto_20150401_2155.py
dbca0bd39f59f421e402b58652c15b1cbd599a57
[ "MIT" ]
permissive
AppforallHQ/f5
96c15eaac3d7acc64e48d6741f26d78c9ef0d8cd
0a85a5516e15d278ce30d1f7f339398831974154
refs/heads/master
2020-06-30T17:00:46.646867
2016-11-21T11:41:59
2016-11-21T11:41:59
74,357,925
0
0
null
null
null
null
UTF-8
Python
false
false
1,808
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import jsonfield.fields import plans.models class Migration(migrations.Migration): dependencies = [ ('plans', '0007_auto_20150330_0046'), ] operations = [ migrations.CreateModel( ...
[ "hi@appforall.ir" ]
hi@appforall.ir
16093e48e8ea6d2c734900b39e59e698fffa2edc
29bec83fc600720533ad2bcf17fc90cd9ca385b7
/0x06-python-classes/prueba_OOP.py
19e79b242fb1d7fd13ef39f02007e7cc9e743a28
[]
no_license
VictorZ94/holbertonschool-higher_level_programming
73a7f504cde583f43f641e18e692e062610870a4
ad512a1c76dc9b4c999a0ba2922c79f56206dd98
refs/heads/master
2023-03-25T04:38:12.708766
2021-03-24T01:08:47
2021-03-24T01:08:47
291,826,914
1
0
null
null
null
null
UTF-8
Python
false
false
433
py
#!/usr/bin/python3 class coche(): largochasis = 250 anchochasis = 120 ruedas = 4 enmarcha = False def arrancar(self): self.enmarcha=True def estado(self): if (self.enmarcha): return "El coche está en marcha" else: return "El coche está parado" m...
[ "zrvictor@outlook.com" ]
zrvictor@outlook.com
bb5630d590dfe6c1e987d8698e11bff0633d156d
7a803cd0c16ff676e3d7ecc33ec5e7af2c42d026
/hello.py
f3123c66e088b6ec25c1b96a658855cae387ee88
[]
no_license
emetowinner/VGG-Internship-Assignments-
ddc798da4c91572455d4f69b0a0524def13be268
67fa5b345b0981dd43694b72d5fc61f45d431c19
refs/heads/master
2020-12-15T03:40:37.321894
2020-03-05T00:46:39
2020-03-05T00:46:39
234,981,995
1
0
null
null
null
null
UTF-8
Python
false
false
287
py
#Learning Integer Literals birth_month = input('Enter birth month: ') if type(birth_month) == str: print('Not an integer') if type(birth_month) != int: print('Converting to int now.........') int(birth_month) print('....................') print('Now is of int type')
[ "emetowinner@gmail.com" ]
emetowinner@gmail.com
68d80aabd964ecc0c03b3c58dbb4409ea535aea0
9381d2a25adac95fab9fc4b8015aadd6c7bed6ca
/ITP1/8_A.py
cf8098d7b4993f62b0cc1f7fe90d16e436e1b142
[]
no_license
kazuma104/AOJ
e3ca14bd31167656bcd203d4f92a43fd4045434c
d91cc3313cbfa575928787677e5ed6be63aa8acf
refs/heads/master
2023-03-20T22:16:22.764351
2021-03-18T10:38:08
2021-03-18T10:38:08
262,047,590
0
0
null
null
null
null
UTF-8
Python
false
false
235
py
def solve(): S = input() T = "" for i in range(len(S)): if S[i] >= 'a': T += S[i].upper() else: T += S[i].lower() print(T) if __name__ == '__main__': solve()
[ "kazuma@info.nara-k.ac.jp" ]
kazuma@info.nara-k.ac.jp
755c8410856fd9a634ed73e87e50ec135313c22b
1f3bed0bb480a7d163dab73f1d315741ecbc1072
/vtkplotter_examples/pyplot/plot7_stream.py
04cb003af2b8799fd539ccebed6d1317312814c5
[ "MIT" ]
permissive
ismarou/vtkplotter-examples
1ce78197182da7496b016b27f1d5eb524c49cac6
1eefcc026be169ab7a77a5bce6dec8044c33b554
refs/heads/master
2021-03-11T18:43:22.313457
2020-03-03T22:11:25
2020-03-03T22:11:25
246,551,341
4
0
null
2020-03-11T11:18:48
2020-03-11T11:18:47
null
UTF-8
Python
false
false
672
py
"""Plot streamlines of the 2D field: u(x,y) = -1 - x^2 + y v(x,y) = 1 + x - y^2 """ from vtkplotter import * import numpy as np # a grid with a vector field (U,V): X, Y = np.mgrid[-5:5 :15j, -4:4 :15j] U = -1 - X**2 + Y V = 1 + X - Y**2 # optionally, pick some random points as seeds: prob_pts = np.random.rand(...
[ "marco.musy@gmail.com" ]
marco.musy@gmail.com
7c945592d39eb2f6680b846f93d8f8921188613c
0ed9a8eef1d12587d596ec53842540063b58a7ec
/cloudrail/knowledge/rules/rules_loader.py
443b78c547b07c45631f401fffc28e2ebc664574
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
cbc506/cloudrail-knowledge
8611faa10a3bf195f277b81622e2590dbcc60da4
7b5c9030575f512b9c230eed1a93f568d8663708
refs/heads/main
2023-08-02T08:36:22.051695
2021-09-13T15:23:33
2021-09-13T15:24:26
390,127,361
0
0
MIT
2021-07-27T21:08:06
2021-07-27T21:08:06
null
UTF-8
Python
false
false
1,710
py
import functools from typing import Dict, Optional from cloudrail.knowledge.context.cloud_provider import CloudProvider from cloudrail.knowledge.exceptions import UnsupportedCloudProviderException from cloudrail.knowledge.rules.base_rule import BaseRule from cloudrail.knowledge.rules.aws_rules_loader import AwsRulesL...
[ "ori.bar.emet@gmail.com" ]
ori.bar.emet@gmail.com
f6b845b799f3e15e52f10efd5b2ba60a4d5e1fb8
da687718aa8ce62974090af63d25e057262e9dfe
/cap12-dicionarios/10_fromkeys_method.py
59b1594ed08737b3f91bb025905c1d9639f0eab5
[]
no_license
frclasso/revisao_Python_modulo1
77928fa4409c97d49cc7deccdf291f44c337d290
1e83d0ef9657440db46a8e84b136ac5f9a7c556e
refs/heads/master
2020-06-25T05:37:28.768343
2019-07-27T22:23:58
2019-07-27T22:23:58
199,217,969
1
0
null
null
null
null
UTF-8
Python
false
false
475
py
#!/usr/bin/env python3 """retorna um novo dicionário cujas chaves são os elementos de uma sequencia e cujos valores são todos iguais ao argumento valor. Sintaxe: dict.fromkeys(seq[, value]) """ seq = ['name', 'age', 'sex'] dict = dict.fromkeys(seq) print('Novo dicionario: {}'.format(str(dict))) # nenhum valor foi...
[ "frcalsso@yahoo.com.br" ]
frcalsso@yahoo.com.br
b2f6ba810f56fe21e915805b75b08d7c0443d9fc
8fb7a7b4fb09ce457ad413d19191235cf4805851
/notes code/detection of fail/object_only/scan_mark1/find_thing_on_print_bed.py
1a6610a59ee5df617f1a2396d94b2e6a3a5120ce
[]
no_license
clambering-goat/honner-progect
df8ab2e22c223cf0f8cb59b93b132eea3d9030f2
ea996ea34ac13867dea6d4935f9760c6915b206f
refs/heads/master
2020-04-15T19:32:57.303438
2019-05-13T17:51:56
2019-05-13T17:51:56
164,954,694
0
0
null
null
null
null
UTF-8
Python
false
false
297
py
import numpy as np import cv2 data=np.load("data.npy") iamge = data.astype(np.uint8) for Ycount,y in enumerate(iamge): for x_count,x in enumerate(y): if iamge[Ycount][x_count]==255: iamge[Ycount][x_count] =0 cv2.imshow("frame",iamge) cv2.waitKey(20000)
[ "camerondrain@gmail.com" ]
camerondrain@gmail.com
9179210109a8fa035ce59bb29a6582ddd74d25fd
d9d9a203a27bd28fe9afc72ecc613b186b33d673
/06_MultipleForm/mainform.py
fe80a611cdf948f4f13e439c5959ffe08d143681
[]
no_license
wildenali/Belajar-GUI-dengan-pyQT
378951fcf0e172f48bf71ec46d887599cf5e09ed
06ebbcbf57bec8a6a63fbb6d5397a7e2ab7c9ef9
refs/heads/master
2020-04-06T10:51:58.582049
2018-12-31T10:37:56
2018-12-31T10:37:56
157,395,034
2
1
null
null
null
null
UTF-8
Python
false
false
577
py
from PyQt5.QtWidgets import QWidget, QPushButton from otherform import * class MainForm(QWidget): def __init__(self): super(MainForm, self).__init__() self.setupUI() def setupUI(self): self.resize(300, 500) self.move(400, 200) self.setWindowTitle('Form nya ada DUA') ...
[ "wildeeeeen@gmail.com" ]
wildeeeeen@gmail.com
28598f36e66c74da10b429d228ad8e96cb136f00
aaf9df2f15ec9bbfb7d98c2239db940117bc6762
/Algorithmic-Toolbox/covering_segments/covering_segments.py
e33a1707cc450ddd489122ddb82f546ec7713987
[ "MIT" ]
permissive
ugaliguy/Data-Structures-and-Algorithms
db50a0f4b39908d17fa125ca70c0616f52d895d2
4bcbd1b0cff66f442a03d06393f654f8e3a61ded
refs/heads/master
2021-01-21T14:08:42.127708
2016-07-04T00:43:38
2016-07-04T00:43:38
56,821,728
0
1
null
2016-07-04T00:43:39
2016-04-22T02:54:23
Python
UTF-8
Python
false
false
854
py
# Uses python3 import sys from collections import namedtuple from operator import attrgetter Segment = namedtuple('Segment', 'start end') def optimal_points(segments): start_sort = sorted(segments, key=attrgetter('start')) end_sort = sorted(segments, key=attrgetter('end')) points = [] #write your code...
[ "ugali_guy@hotmail.com" ]
ugali_guy@hotmail.com
4370545f8a75330aec51c5b699aada3f8df69d5c
4e4c22dfabb1a0fa89f0f51f58737273412a30e0
/fort_machine/wsgi.py
640e612427bbf2c0356ea849505b08617eed3925
[]
no_license
shaoqianliang/fort_machine
4cb271d5ef29c924c09172ff397e2af8562ee4ba
cf7e3d4c6682831ce04bcde478930ab7e85abb01
refs/heads/master
2020-04-28T15:24:02.056674
2019-04-12T23:50:35
2019-04-12T23:50:35
175,372,042
1
0
null
null
null
null
UTF-8
Python
false
false
401
py
""" WSGI config for fort_machine project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_...
[ "1132424753@qq.com" ]
1132424753@qq.com
fe7d0f99e3ae6e1f339a1cd8e4642a724e9016f7
1b1e8e73649ad1eed89556a5d479b0a549354fd5
/opennem/db/migrations/versions/4bf86ff5c8ff_update_indicies_that_aren_t_used.py
a7a46b84637e88e727f1fe594938c21feb0ebb3f
[ "MIT" ]
permissive
zalihat/opennem
3ea8db7246f350fb0eacf8c6078dbffa4fe9aea2
0f82e4fc3fd2bcfbf56a2741d89e4228d017dcf3
refs/heads/master
2023-02-27T15:37:47.206336
2021-02-08T07:28:57
2021-02-08T07:28:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,488
py
# pylint: disable=no-member """ update indicies that aren't used Revision ID: 4bf86ff5c8ff Revises: 64987ea01b57 Create Date: 2020-11-23 02:54:29.564574 """ from alembic import op # revision identifiers, used by Alembic. revision = "4bf86ff5c8ff" down_revision = "64987ea01b57" branch_labels = None depends_on = None ...
[ "git@nikcub.me" ]
git@nikcub.me
a99c4d3cb68c551d8ecf9d307608d40a13d95cd8
7a550d2268bc4bc7e2fec608ffb1db4b2e5e94a0
/0701-0800/0716-Max Stack/0716-Max Stack.py
698d5125b3a7f7ace31abc4055e1c827e468fd5e
[ "MIT" ]
permissive
jiadaizhao/LeetCode
be31bd0db50cc6835d9c9eff8e0175747098afc6
4ddea0a532fe7c5d053ffbd6870174ec99fc2d60
refs/heads/master
2021-11-05T04:38:47.252590
2021-10-31T09:54:53
2021-10-31T09:54:53
99,655,604
52
28
MIT
2020-10-02T12:47:47
2017-08-08T05:57:26
C++
UTF-8
Python
false
false
967
py
class MaxStack: def __init__(self): """ initialize your data structure here. """ self.St = [] self.maxSt = [] def push(self, x: int) -> None: self.St.append(x) maxX = x if not self.maxSt or x > self.maxSt[-1] else self.maxSt[-1] self.maxSt.append...
[ "jiadaizhao@gmail.com" ]
jiadaizhao@gmail.com
ffaa35bbff6e5594111a59aeed63bc26897a2692
0b12e31cafa598c163d2cc53706df193a73e31e3
/people/models.py
65c21cc6090d290ebf5ac91ed163dedd5de88207
[]
no_license
getopen/pro
6a4dba774558e1de0419a4c6daf030ee360d68fd
97e939d26d9fdaf54f05f3cd4a9b32a6722d0ac3
refs/heads/master
2021-07-06T09:35:18.077577
2017-09-30T16:07:06
2017-09-30T16:07:06
100,471,872
0
0
null
null
null
null
UTF-8
Python
false
false
6,517
py
from django.db import models from django.contrib.auth.models import BaseUserManager, AbstractBaseUser from django.utils import timezone import hashlib import random import string from django.conf import settings SALT = getattr(settings, "EMAIL_TOKEN_SALT") class MyUserManager(BaseUserManager): def create_user(self,...
[ "zhuoqun527@qq.com" ]
zhuoqun527@qq.com
954e1a81cae9daf62bf9cb9cf0f83299c3e8a038
8b942cbd6a0da0a61f68c468956ba318c7f1603d
/dynamic_programming/0053_maximum_subarray.py
4ed3786dd1ebedf430bdbe2dfaceed01c1a79c9e
[ "MIT" ]
permissive
MartinMa28/Algorithms_review
080bd608b0e0c6f39c45f28402e5181791af4766
3f2297038c00f5a560941360ca702e6868530f34
refs/heads/master
2022-04-13T03:56:56.932788
2020-04-06T03:41:33
2020-04-06T03:41:33
203,349,402
0
0
null
null
null
null
UTF-8
Python
false
false
498
py
class Solution: def maxSubArray(self, nums): """ :type nums: List[int] :rtype: int """ # Each slot means the sum of the max-subarray that ends at this index dp = [float('-inf')] * len(nums) """ dp[i] = max((nums[i], dp[i - 1] + nums[i])) ...
[ "1135485226@qq.com" ]
1135485226@qq.com
a399301c523887d5bcc02002c2d2c1ac09e638a1
07cf86733b110a13224ef91e94ea5862a8f5d0d5
/permutations/permutations.py
9adc376b32f889d512681c06e31fc88b05902f97
[]
no_license
karsevar/Code_Challenge_Practice
2d96964ed2601b3beb324d08dd3692c3d566b223
88d4587041a76cfd539c0698771420974ffaf60b
refs/heads/master
2023-01-23T17:20:33.967020
2020-12-14T18:29:49
2020-12-14T18:29:49
261,813,079
1
0
null
null
null
null
UTF-8
Python
false
false
3,179
py
# First attempt most test cases didn't pass. Perhaps I miss read the permutation # requirements for this problem. class Solution: def permute(self, nums): # create a permutations array that will hold all the possible # permutations # create a recursive function that will...
[ "masonkarsevar@gmail.com" ]
masonkarsevar@gmail.com
588ff9f9d1fd2b83d89b92f998ad98b57b5b6142
ec513ac551fc0bbb6c8af5b30330445bf52c6c7f
/location_monitor/src/location_monitor_node.py
e907ab747f1eb280bbd66076673f3279e2518249
[]
no_license
ChuChuIgbokwe/me495_tutorials
b88c4833f35e50b51a4ccaa1a4bae5a1916e12bf
b03e74605cf469d818c4533f3d563622e7d14552
refs/heads/master
2020-04-06T07:06:08.360123
2016-09-18T08:46:01
2016-09-18T08:46:01
64,951,342
1
0
null
null
null
null
UTF-8
Python
false
false
2,896
py
#!/usr/bin/env python # # -*- coding: utf-8 -*- # #Created by Chukwunyere Igbokwe on July 27, 2016 by 2:23 PM # import rospy # import math # from nav_msgs.msg import Odometry # from location_monitor.msg import LandmarkDistance # def distance(x1, y1, x2, y2): # xd = x1 - x2 # yd = y1 - y2 # return math.sqrt(xd*xd +...
[ "chukwunyereigbokwe2015@u.northwestern.edu" ]
chukwunyereigbokwe2015@u.northwestern.edu
202384744bc82b1b11a8752e20a41b61b8c14117
30ab9750e6ca334941934d1727c85ad59e6b9c8a
/zentral/contrib/monolith/management/commands/rebuild_manifest_enrollment_packages.py
4311863e71bf807a69d5cdb8a2dda5713092f8ef
[ "Apache-2.0" ]
permissive
ankurvaishley/zentral
57e7961db65278a0e614975e484927f0391eeadd
a54769f18305c3fc71bae678ed823524aaa8bb06
refs/heads/main
2023-05-31T02:56:40.309854
2021-07-01T07:51:31
2021-07-01T14:15:34
382,346,360
1
0
Apache-2.0
2021-07-02T12:55:47
2021-07-02T12:55:47
null
UTF-8
Python
false
false
484
py
from django.core.management.base import BaseCommand from zentral.contrib.monolith.models import ManifestEnrollmentPackage from zentral.contrib.monolith.utils import build_manifest_enrollment_package class Command(BaseCommand): help = 'Rebuild monolith manifest enrollment packages.' def handle(self, *args, **...
[ "eric.falconnier@112hz.com" ]
eric.falconnier@112hz.com
bdbf224d07f9a5aeceb878a2ff696537cb9fd117
3633bab8066f576c8bf9e7908afe30bb070d0b70
/Hack-tenth-week/cinema/website/management/commands/populate_db.py
f9afe0316b2236021528fb773fea671a5c9bdfe8
[]
no_license
6desislava6/Hack-Bulgaria
099c195e45a443cf4a3342eff6612ac2aa66565b
de4bf7baae35e21d6a7b27d4bde68247bb85b67a
refs/heads/master
2021-01-20T11:57:29.027595
2015-06-02T17:36:59
2015-06-02T17:36:59
32,828,816
4
4
null
null
null
null
UTF-8
Python
false
false
2,035
py
from django.core.management.base import BaseCommand from website.models import Movie, Projection, Reservation class Command(BaseCommand): def _add_movies(self): Movie.add_movie(name='The Green Mile', rating=9.0) Movie.add_movie(name='Stay Alive', rating=6.0) Movie.add_movie(name='Twenty-S...
[ "desislavatsvetkova@mail.bg" ]
desislavatsvetkova@mail.bg
c084bf927837edbff9f1738b44a08d195446fec2
35fa8925e63f2b0f62ef6bfc1ff4e03cf42bd923
/tests/models/output/definitions/test_output_definition.py
dc3f2047a98052437876efa3ed6a308349469e6b
[ "Apache-2.0" ]
permissive
TheLabbingProject/django_analyses
9e6f8b9bd2a84e8efe6dda6a15de6a3ecdf48ec1
5642579660fd09dde4a23bf02ec98a7ec264bceb
refs/heads/master
2023-02-26T07:53:53.142552
2023-02-17T08:12:17
2023-02-17T08:12:17
225,623,958
1
2
Apache-2.0
2023-02-17T08:12:18
2019-12-03T13:15:29
Python
UTF-8
Python
false
false
5,861
py
from django.core.exceptions import ValidationError from django.test import TestCase from django_analyses.models.input.definitions.file_input_definition import \ FileInputDefinition from django_analyses.models.managers.output_definition import \ OutputDefinitionManager from django_analyses.models.output.definiti...
[ "z.baratz@gmail.com" ]
z.baratz@gmail.com
af9bf4858b5793e1641a6963e2f7e683b1de3f12
1adc548f1865c0e4fcb3b3ff1049789fa0c72b12
/tests/observes/test_column_property.py
058383a5651f5433d39e0d4606bda3d52d6f5663
[]
no_license
wujuguang/sqlalchemy-utils
ca826a81acdc70168e0b85820aaf8fe1604d6b0a
b6871980a412f2ebd16ec08be3127814b42ba64e
refs/heads/master
2021-01-12T20:59:48.692539
2016-01-15T08:06:48
2016-01-18T18:52:12
48,418,840
0
0
null
2015-12-22T08:05:48
2015-12-22T08:05:47
null
UTF-8
Python
false
false
1,582
py
import sqlalchemy as sa from pytest import raises from sqlalchemy_utils.observer import observes from tests import TestCase class TestObservesForColumn(TestCase): dns = 'postgres://postgres@localhost/sqlalchemy_utils_test' def create_models(self): class Product(self.Base): __tablename__ ...
[ "konsta.vesterinen@gmail.com" ]
konsta.vesterinen@gmail.com
c2e9ac93f8629983cb977f8a65caf9dee5bfceaa
80760d4c8a6b2c45b4b529bdd98d33c9c5509438
/Practice/atcoder/ABC/054/src/c2.py
007ef8de5fd091ec21679eb96f94eb5ea1f9c5f2
[]
no_license
prrn-pg/Shojin
f1f46f8df932df0be90082b475ec02b52ddd882e
3a20f1122d8bf7d95d9ecd205a62fc36168953d2
refs/heads/master
2022-12-30T22:26:41.020473
2020-10-17T13:53:52
2020-10-17T13:53:52
93,830,182
0
0
null
null
null
null
UTF-8
Python
false
false
687
py
# 全域木?っていうんだっけ?でもコストは関係ないか # 適当に隣接リストでもってしてDFSする N, M = map(int, input().split()) Neighbor_list = [[] for _ in range(N)] for _ in range(M): s, t = map(int, input().split()) Neighbor_list[s-1].append(t-1) Neighbor_list[t-1].append(s-1) def dfs(cur, path): if len(path) == N: return 1...
[ "hjod1172@yahoo.co.jp" ]
hjod1172@yahoo.co.jp
cd53fdab752cc6628b086d089002c796748479b8
e09bbdc53af6be9281795189f26f6e59997abf68
/tests/test_forex.py
eeb783520060d238446a4a97fba67b6f1d7c96a9
[ "Apache-2.0" ]
permissive
jag787/ppQuanTrade
620ce72c7875bb730708c48ae0481376b43e501b
9a6da7522d281da130a2c459e2e614a75daa543d
refs/heads/master
2021-01-11T13:53:40.583710
2013-12-20T10:43:58
2013-12-20T10:43:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,100
py
# # Copyright 2013 Xavier Bruhiere # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
[ "xavier.bruhiere@gmail.com" ]
xavier.bruhiere@gmail.com
e32fadc710671ee0d561a5192a3e0c6875072673
ac7e039a70ba627f6d9a7a02c9a8849ed5e18a89
/unep.project-database/tags/0.2/content/Project.py
d13c620db2288f39c6b8598a0df372dc144dd473
[]
no_license
jean/project-database
65a2559844175350351ba87e820d25c3037b5fb2
e818d322ec11d950f2770cd5324fbcd1acaa734d
refs/heads/master
2021-01-01T06:27:24.528764
2014-01-31T11:11:45
2014-01-31T11:11:45
32,125,426
0
0
null
null
null
null
UTF-8
Python
false
false
3,359
py
# -*- coding: utf-8 -*- # # File: Project.py # # Copyright (c) 2008 by [] # Generator: ArchGenXML Version 2.0 # http://plone.org/products/archgenxml # # GNU General Public License (GPL) # __author__ = """Jean Jordaan <jean.jordaan@gmail.com>, Jurgen Blignaut <jurgen.blignaut@gmail.com>""" __docformat__ = 'p...
[ "jurgen.blignaut@61ed036f-b72b-0410-9ea5-b9ec1d72d98d" ]
jurgen.blignaut@61ed036f-b72b-0410-9ea5-b9ec1d72d98d
66fa92e9025251b90129308bd92a3f521649690c
753a70bc416e8dced2853f278b08ef60cdb3c768
/models/research/domain_adaptation/domain_separation/dsn_test.py
3d687398a9b9356455f739417bc96ddb2ca5ad40
[ "MIT", "Apache-2.0" ]
permissive
finnickniu/tensorflow_object_detection_tflite
ef94158e5350613590641880cb3c1062f7dd0efb
a115d918f6894a69586174653172be0b5d1de952
refs/heads/master
2023-04-06T04:59:24.985923
2022-09-20T16:29:08
2022-09-20T16:29:08
230,891,552
60
19
MIT
2023-03-25T00:31:18
2019-12-30T09:58:41
C++
UTF-8
Python
false
false
6,027
py
# Copyright 2016 The TensorFlow Authors All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
[ "finn.niu@apptech.com.hk" ]
finn.niu@apptech.com.hk
310a2ff7d5c25b08fd026424c91c406d6dce04a7
8e4a5e0a81fc9401fc0b6e55dd55e8d6e29c3ed6
/PycharmProjects/licamb/licamb/db.py
56e07023c14dd0a9ab4cc3e86d345f33321735e3
[]
no_license
rogeriodelphi/portifolio
1fb16c8c723b97f20cdd305224b660a1657f3913
5c704305ce26576afb4efd1e410f691971f06fac
refs/heads/master
2023-08-11T05:33:37.539047
2021-09-26T01:57:02
2021-09-26T01:57:02
284,164,866
0
0
null
null
null
null
UTF-8
Python
false
false
597
py
import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SQLITE = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), } } # DATABASES = { # 'default': { # 'ENGINE': 'django.db.backends.sqlite3', # 'NA...
[ "rogeriodelphi@gmail.com" ]
rogeriodelphi@gmail.com
e610e2ff68b9264be3b2f2e6659c8a516cad7e27
eb136fec7f6dfcb11834cc0cd4d3daec1d7a4dc6
/fiasco_api/expenses/migrations/0001_initial.py
40ad410a30d5561dfacbc245e35bd26e587ef388
[ "MIT" ]
permissive
xelnod/fiasco_backend
4635cff2fd220585c4433010e64208dfebbf2441
edeca8cac8c7b1a1cc53051d4443cc2996eba37c
refs/heads/master
2020-09-21T13:37:37.971952
2020-09-15T19:38:37
2020-09-15T19:38:37
224,804,463
0
0
null
null
null
null
UTF-8
Python
false
false
2,396
py
# Generated by Django 3.1.1 on 2020-09-13 21:03 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('categories', '0001_initial'), ('channels', '0001_initial'), ] operations = [ mi...
[ "s.zench@yandex.ru" ]
s.zench@yandex.ru
895a6ff291a61e66f00fd311bf599cf8fdb80ba1
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/list_workspaceusers_request.py
03fe5cb9797831a7a33f080679f078e6c5bedd22
[ "Apache-2.0" ]
permissive
huaweicloud/huaweicloud-sdk-python-v3
cde6d849ce5b1de05ac5ebfd6153f27803837d84
f69344c1dadb79067746ddf9bfde4bddc18d5ecf
refs/heads/master
2023-09-01T19:29:43.013318
2023-08-31T08:28:59
2023-08-31T08:28:59
262,207,814
103
44
NOASSERTION
2023-06-22T14:50:48
2020-05-08T02:28:43
Python
UTF-8
Python
false
false
4,633
py
# coding: utf-8 import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class ListWorkspaceusersRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is at...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
b5bfc185e3c0e76fb33a254d444155ab0931f2c8
f723b36a64d7c5ccd2a4937d02f05279fc9e907c
/calls/urls.py
48317b35fa4b2d6bacf2ee72c3c3734774b5c08e
[]
no_license
DmitrySham/grand-django-site
92259098d209954ee5f5c994989f6c1f7c9826f4
e65988c441e9fb37fd15126d28301c47643b501d
refs/heads/master
2023-01-22T08:37:08.921212
2023-01-13T15:05:30
2023-01-13T15:05:30
184,014,992
0
0
null
2022-12-04T20:45:03
2019-04-29T06:44:37
JavaScript
UTF-8
Python
false
false
145
py
from django.urls import path from calls import views urlpatterns = [ path('ajax/call/request/', views.call_request, name='calls_request') ]
[ "tggrmi@gmail.com" ]
tggrmi@gmail.com
86b082d38e2f308f0a9eb3f9b74eb82523828273
b478d1e63cce432b6fd3692c0aa7a84f411ae9dc
/meta_py3/main.py
b2fcdb9da12e44315b927e032eb6c0442104b5d4
[]
no_license
yiqing95/py_study
8d414aa00b4ac31070fe5667a98815980eee46d0
6ce6b46ad729a795bc9253d6339169e62ef47766
refs/heads/master
2016-09-06T17:45:26.081269
2015-01-12T15:22:29
2015-01-12T15:22:29
20,810,777
0
0
null
null
null
null
UTF-8
Python
false
false
198
py
from meta_py3 import example2 __author__ = 'yiqing' from meta_py3.example import * from meta_py3.helper import printHr p = Point(3,4) print(p.x) printHr() obj = example2.MyClass(3) print(obj.x)
[ "yiqing-95@qq.com" ]
yiqing-95@qq.com
17e37b200e4daabdb7bde731b5f7ece860ff30f5
9f440599da392a55d7d5b2b7ce571bc3f2dc881e
/rhea/cores/usbext/fpgalink/__init__.py
40502351eaf29688fab9e182e67fd1cd214d5167
[ "MIT" ]
permissive
zignig/rhea
713559f688f85e1304ab43c2b871553da3bf01ae
e0d04ff4fcbd57dfeb6f84fa8f87d6b03caee590
refs/heads/master
2020-04-06T06:53:33.541215
2016-03-15T12:45:23
2016-03-15T12:45:23
53,943,632
1
0
null
2016-03-15T12:42:06
2016-03-15T12:42:06
null
UTF-8
Python
false
false
196
py
from __future__ import absolute_import from . import _fpgalink_fx2 as fpgalink from ._fpgalink_fx2 import get_interfaces from ._fpgalink_fx2 import fpgalink_fx2 from ._fl_convert import convert
[ "chris.felton@gmail.com" ]
chris.felton@gmail.com
92103249322b421545629318572a095a6464b746
46bd3e3ba590785cbffed5f044e69f1f9bafbce5
/env/lib/python3.8/site-packages/supervisor/tests/test_dispatchers.py
3f88376a16df1a07247d1fe031d2147a0cb4d10c
[]
no_license
adamkluk/casper-getstarted
a6a6263f1547354de0e49ba2f1d57049a5fdec2b
01e846621b33f54ed3ec9b369e9de3872a97780d
refs/heads/master
2023-08-13T11:04:05.778228
2021-09-19T22:56:59
2021-09-19T22:56:59
408,036,193
0
0
null
null
null
null
UTF-8
Python
false
false
130
py
version https://git-lfs.github.com/spec/v1 oid sha256:b2039ef9d32ffde70df065c6a333cb150fa31e79786df3f98287dc41938ad1e1 size 53720
[ "a.klukowski@live.com" ]
a.klukowski@live.com
7401b94189214c99484961a6a267429cd5e290fb
19f27f432b968521c7bee497a96f2b01963da293
/manage.py
0ff8346ecebe236c0d31d614ad2ceeab700db026
[]
no_license
ethanlee6/myw
eae3eb751f4b06e06ce1dd2a21adf9272f1bf72f
74c60ebea5519c18d7495c2ee8064b4a576b9b89
refs/heads/master
2021-01-24T18:39:43.481407
2017-03-15T12:15:01
2017-03-15T12:15:01
84,459,667
0
0
null
null
null
null
UTF-8
Python
false
false
775
py
import os from flask.ext.script import Manager, Server from flask.ext.script.commands import ShowUrls from flask.ext.migrate import Migrate, MigrateCommand from webapp import create_app from webapp.models import db, User, Post, Tag, Comment # default to dev config env = os.environ.get('WEBAPP_ENV', 'dev') app = crea...
[ "lg_online@hotmail.com" ]
lg_online@hotmail.com
bb4411845beac8ed6a855d3894786bb21f41fa05
5179b07b8d1a31df18612ce55d35c56b851cead8
/tools/train.py
b0290aace7813a3edf21acd4895698b235e05300
[ "Apache-2.0" ]
permissive
hamidehkerdegari/VFS
3e9c427c4a8ae0a6b66a3a1378bac5c6f9daaf51
8e055cc191578706f05b7484facf44be6fb1525a
refs/heads/master
2023-08-24T09:40:46.678233
2021-09-26T18:24:38
2021-09-26T18:24:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,658
py
import argparse import copy import os import os.path as osp import time import warnings import mmcv import torch from mmcv import Config, DictAction from mmcv.runner import init_dist, set_random_seed from mmaction import __version__ from mmaction.apis import train_model from mmaction.datasets import build_dataset fro...
[ "xvjiarui0826@gmail.com" ]
xvjiarui0826@gmail.com
8a73c785a44ece6263c3e40dfde840832bed6655
65c03709b91ce8f006641b30d481b4fda651520e
/Coding/3_indexing_slicing.py
a52c46b665b5ac657b828965eb9a307d71a3bd84
[]
no_license
ahad-emu/python-code
332121ad289b169ca8099c88bde13d7121be1030
135805c78de38eaf1bd5500b44625b36b7b653c0
refs/heads/master
2020-09-09T01:01:41.313964
2020-07-04T16:31:37
2020-07-04T16:31:37
221,296,928
0
0
null
null
null
null
UTF-8
Python
false
false
502
py
#indexing.... my_string = "hello World" print(my_string) print(my_string[0]) #index zero print(my_string[7]) #index seven print(my_string[8]) #index eight print(my_string[-1]) #last index print(my_string[-2]) #second last index #slicing.... my_string = "ABCDEFGHIJKL" print(my_string) print(my_strin...
[ "ahademu99@gmail.com" ]
ahademu99@gmail.com
d1194035877ccf46cd000542fa0cb83f128378d8
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2847/60900/255175.py
9f7f8927fa27a8621f5be9e8716e364de835126c
[]
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
192
py
n = input() str1 = input() nums = str1.split(" ") str2 = input() nums2 = str2.split(" ") count = 0 for i in range(int(nums2[0]),int(nums2[1])): count = count + int(nums[i-1]) print(count)
[ "1069583789@qq.com" ]
1069583789@qq.com
cc8f3b6012f30c1bdad4f411f454e6e816b04bde
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02549/s176160941.py
bdc2e8e51f883ca3eca69259dc2774ce9724f789
[]
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
491
py
N, K = map(int, input().split()) L = [0] * K R = [0] * K for i in range(0, K): L[i], R[i] = map(int, input().split()) moves = [0] * N moves[0] = 1 rui_wa = [0] * N rui_wa[0] = 1 for i in range(1, N): for j in range(0, K): l = max(i - L[j], 0) r = max(i - R[j], 0) if i - L[j] < 0: ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
5de0b81f7eb9ffcb6f37c172ee267011003055f3
8a03b8459902d1bf0806f8d3387fb962bb57cf58
/User_create/Negative_changepwd.py
b654fadc05e357cbb963c843646791c0392766c4
[]
no_license
chetandg123/cQube
f95a0e86b1e98cb418de209ad26ae2ba463cfcbc
a862a1cdf46faaaff5cad49d78c4e5f0454a6407
refs/heads/master
2022-07-18T12:43:06.839896
2020-05-22T13:23:52
2020-05-22T13:23:52
258,089,042
0
0
null
2020-05-08T16:28:26
2020-04-23T03:55:52
HTML
UTF-8
Python
false
false
1,828
py
import time import unittest from selenium import webdriver from Data.Paramters import Data class Click_ChangePwd(unittest.TestCase): def setUp(self): self.driver = webdriver.Chrome(Data.Path) self.driver.maximize_window() self.driver.implicitly_wait(10) self.driver.get(Data.URL) ...
[ "chetan.goudar@tibilsolutions.com" ]
chetan.goudar@tibilsolutions.com
7229a9c285b03df22f176624c5e0f5b54b27a88d
a2fab78b021469748337bdbe46d60f4b2dccf6b9
/day04/03.字符串的遍历.py
c5d627376bea9ed9bd537324019d43ced7a0f603
[]
no_license
yywecanwin/PythonLearning
06175886b42f6ec6be5ee8fa379365779e8e14e6
f59d381692f22b3c7cf605aec88500f6c0267ffc
refs/heads/master
2020-08-01T13:03:17.458829
2020-02-11T02:53:33
2020-02-11T02:53:33
211,006,180
1
0
null
null
null
null
UTF-8
Python
false
false
628
py
# -*- coding: utf-8 -*- # author:yaoyao time:2019/9/28 """ 字符串的遍历: 一个一个的得到里面的元素 """ s = "hello python" """ # 遍历的方式1: # 1.定义一个变量i 表示元素的索引,赋值为0,因为元素的索引是从0开始的 i = 0 # 2.while循环遍历字符串 while i <= len(s)-1: #3.在循环中, 根据索引得到元素, 把元素打印出来 print(s[i]) # 4.在循环中,让i加1,是为了让索引加1,便于下次循环时得到下一个元素 i += 1 """ """ for 变量...
[ "3216561314@qq.com" ]
3216561314@qq.com
e03b7ef67849e583abb795e43e173297706316ff
798960eb97cd1d46a2837f81fb69d123c05f1164
/symphony/cli/pyworkforce/graphql/input/check_list_category.py
8ab69aef97666923166c55f03daa8d9166c133bc
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
kyaaqba/magma
36d5fa00ce4f827e6ca5ebd82d97a3d36e5f5b5b
fdb7be22a2076f9a9b158c9670a9af6cad68b85f
refs/heads/master
2023-01-27T12:04:52.393286
2020-08-20T20:23:50
2020-08-20T20:23:50
289,102,268
0
0
NOASSERTION
2020-08-20T20:18:42
2020-08-20T20:18:41
null
UTF-8
Python
false
false
590
py
#!/usr/bin/env python3 # @generated AUTOGENERATED file. Do not Change! from dataclasses import dataclass from datetime import datetime from functools import partial from gql.gql.datetime_utils import DATETIME_FIELD from numbers import Number from typing import Any, Callable, List, Mapping, Optional from dataclasses_j...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
9ac78261b3e0bfe904692b30ec71925efb1b2fd5
e203ddace08580170e3b4de9c79588209e857c1c
/books.py
23233198dc918f7183dbddd721d36fc2b0141ebf
[]
no_license
stradtkt/OOPTreehouse-Python
e17f3fd48840049b8b741aa0e30e54d1409804b2
84e0ef2142118bf44c416a3b1dde3519ff57fd15
refs/heads/main
2023-02-26T15:03:27.053205
2021-02-04T13:04:26
2021-02-04T13:04:26
334,620,181
0
0
null
null
null
null
UTF-8
Python
false
false
457
py
class Book: def __init__(self, title, author): self.title = title self.author = author def __str__(self): return '{}: {}'.format(self.title, self.author) class Bookcase: def __init__(self, books=None): self.books = books @classmethod def create_bookcase(cls, book_...
[ "stradtkt22@gmail.com" ]
stradtkt22@gmail.com
24ee0c3b5ba31c62359bb82634292671f9df0b24
e6b4b9dcca11d6a8abd110cd681b2712f9843030
/src/env/dm_control/dm_control/composer/observation/observable/base_test.py
0f519c2ba2e7da274db7fe54fd6ede820fd6dc34
[ "MIT", "Apache-2.0" ]
permissive
nicklashansen/svea-vit
a1b1d74fba88aaa94c876d354e7d6ed60cd3f064
33d3ea2682409ee82bf9c5129ceaf06ab01cd48e
refs/heads/main
2023-07-21T18:35:08.439052
2023-07-11T20:09:50
2023-07-11T20:09:50
379,015,671
16
3
MIT
2023-07-11T20:09:52
2021-06-21T17:43:32
Python
UTF-8
Python
false
false
5,914
py
# Copyright 2018 The dm_control Authors. # # 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 i...
[ "hello@nicklashansen.com" ]
hello@nicklashansen.com
d2dc956bbc48eb170fbbda451cf3630d7b8168b1
5545d3c3e910ccb5b45b2277a71ad3c3ea3caedc
/jamenson/runtime/Attic/runtime.py
85f8fe28ad0310322de14198533d79ebdb9fe6a4
[ "Apache-2.0" ]
permissive
matthagy/Jamenson
61de19c71da6e133bf7d8efbb933a1036cf1e6f5
18a0fdd60b3d56ed4a6d4e792132535324490634
refs/heads/master
2016-09-11T04:31:28.895242
2013-04-04T00:14:44
2013-04-04T00:14:44
1,781,863
1
0
null
null
null
null
UTF-8
Python
false
false
4,969
py
'''objects used by runtime ''' from itertools import count import string class symbol(object): #instance cache for `is based comparisions and `id based hashing _cache = {} __slots__ = ['printForm'] @classmethod def raw(cls, printForm): self = object.__new__(cls) self.printForm ...
[ "hagy@gatech.edu" ]
hagy@gatech.edu
042e1d38d801465d0ca7ae7a6feda110a7e5825c
5cea76d53779d466f19a5cf0b51e003586cc4a7b
/python开发技术详解/源文件/02/2.4/2.4.1/number_type.py
12972ea330682a3ae610b87a14be45e5770f2447
[]
no_license
evan886/python
40152fdb4885876189580141abe27a983d04e04d
d33e996e93275f6b347ecc2d30f8efe05accd10c
refs/heads/master
2021-06-28T12:35:10.793186
2021-05-26T14:33:40
2021-05-26T14:33:40
85,560,342
2
1
null
2017-10-11T05:31:06
2017-03-20T09:51:50
JavaScript
GB18030
Python
false
false
326
py
#!/usr/bin/python # -*- coding: UTF-8 -*- # 下面的两个i并不是同一个对象 i = 1 print id(i) i = 2 print id(i) # 整型 i = 1 print type(i) # 长整型 l = 9999999990 print type(l) # 浮点型 f = 1.2 print type(f) # 布尔型 b = True print type(b) # 复数类型 c = 7 + 8j print type(c)
[ "evan886@gmail.com" ]
evan886@gmail.com
f04777412a8523157317d3eac4f93709fc5b3593
1da23d3bc4a7e21d81fe26c6b9f2b7f50711239b
/server/rating/calculation/online.py
54cb691486cf77569c23edf725df62292f77533f
[ "MIT" ]
permissive
eIGato/mahjong-portal
42dc62d3f98656ba15c02c3060f351f03ac3304a
550a2a872c4287adab6ce30c3440dc2141430a20
refs/heads/master
2021-07-10T01:52:35.089662
2020-10-21T11:45:40
2020-10-21T11:45:40
212,129,601
0
0
MIT
2019-10-01T15:19:36
2019-10-01T15:19:36
null
UTF-8
Python
false
false
573
py
from player.models import Player from rating.calculation.rr import RatingRRCalculation from tournament.models import Tournament, TournamentResult class RatingOnlineCalculation(RatingRRCalculation): TOURNAMENT_TYPES = [Tournament.ONLINE] SECOND_PART_MIN_TOURNAMENTS = 3 def get_players(self): play...
[ "lisikhin@gmail.com" ]
lisikhin@gmail.com
766acc5663cd498b1b0e9bc3c0a1d75f176b8b8b
83003007b7bc12493e2bca2b5c78be5ea86df56c
/Day56-Day70/Day60/rabbit.py
df44054acbf7a81a072a6cb377f8dbb2ea4dd6e6
[]
no_license
a6361117/code
fa7fe2f33c522ad38d92e6c429b50ef8a271bb1e
bd8bf877416acc5400dbda90212b7e83020ff643
refs/heads/master
2022-09-07T22:22:24.765271
2020-05-26T14:27:47
2020-05-26T14:27:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,264
py
#绘制兔 from turtle import * speed(10) #兔的面部 color('pink') pensize(5) circle(radius=100)#脸 #眼睛 pencolor('black') #左眼 pu() goto(-45,92) pd() begin_fill() color((0,0,0),(0,0,0.1)) circle(radius=15) #右眼 pu() goto(45,92) pd() circle(radius=15) end_fill() #鼻子 pu() goto(20,60) color('pink') pd() begin_fill() goto(-20,60...
[ "46365521+Becky-nuo@users.noreply.github.com" ]
46365521+Becky-nuo@users.noreply.github.com
fc3617765023ab1000296d388685479f6ba1ca6f
743d1918178e08d4557abed3a375c583130a0e06
/src/CPSCAnalysis/getCPSCRelated.py
e63093d367e5958dd952311a6b852f55229f43a2
[]
no_license
aquablue1/dns_probe
2a027c04e0928ec818a82c5bf04f485a883cfcb3
edd4dff9bea04092ac76c17c6e77fab63f9f188f
refs/heads/master
2020-03-25T19:40:07.346354
2018-11-17T05:31:43
2018-11-17T05:31:43
144,094,014
0
0
null
null
null
null
UTF-8
Python
false
false
1,508
py
""" " Get the original CPSC related DNS traffic from original data files. " Since CPSC DNS (ns1/2.cpsc.ucalgary.ca) mostly involved in the inbound traffic. " Therefore only the inbound traffic is considered. " By Zhengping on 2018-08-10 """ from src.util.FolderReader import folderReader from src.util.FileReader import...
[ "94apieceofcake@gmail.com" ]
94apieceofcake@gmail.com
c15ff70830104dc267e24f059b88cd1002f1879d
ecae7275fd43ec93ca5771083e05ae864685faf9
/DataScience/pandas/2column1.py
eb1bc2f91c3de96c00fb9272b9179e11d6d5d730
[]
no_license
shamoldas/pythonBasic
104ca8d50099c2f511802db1f161f6d050f879cc
3a7252a15f6d829f55700ec2ff7f7d153f3ec663
refs/heads/main
2023-01-09T06:38:55.357476
2020-11-11T12:27:31
2020-11-11T12:27:31
311,960,017
0
0
null
null
null
null
UTF-8
Python
false
false
314
py
# importing pandas import pandas as pd df = pd.DataFrame({'Last': ['Gaitonde', 'Singh', 'Mathur'], 'First': ['Ganesh', 'Sartaj', 'Anjali']}) print('Before Join') print(df, '\n') print('After join') df['Name'] = df['First'].str.cat(df['Last'], sep =" ") print(df)
[ "noreply@github.com" ]
shamoldas.noreply@github.com
a0ba64b046817c1d4b87a37d70ac854c54c543fe
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_192/ch160_2020_06_19_20_23_54_764349.py
e8c31d19b6bb9456664ada3169ee602ac3e1ff52
[]
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
218
py
import math x = 0 for x in range(0, 90): python = math.sin(x) bhaskara = (4*x*(180 - x))/(40500 - x*(180 - x)) modulo = bhaskara - python if python != bhaskara: print(max(abs(modulo))
[ "you@example.com" ]
you@example.com
ce01006fc28f38174aeae02dffe49f0214c5ae14
9554891e5e91fa9d7f75df0f28ae1d220c552478
/tests/settings.py
0bfc93f139030f93750f7d8315cca6601c124b85
[ "MIT" ]
permissive
kmmbvnr/django-polymodels
2e79cd72c68935a7e83953e0864ced1cb4a530c5
7a9b64b1851fea23a64d3d9421a69911e1669a49
refs/heads/master
2022-06-21T04:27:15.836175
2020-05-07T03:12:18
2020-05-07T10:36:06
261,932,926
1
0
MIT
2020-05-07T02:44:49
2020-05-07T02:44:48
null
UTF-8
Python
false
false
245
py
from __future__ import unicode_literals SECRET_KEY = 'not-anymore' DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', }, } INSTALLED_APPS = [ 'django.contrib.contenttypes', 'polymodels', 'tests', ]
[ "charette.s@gmail.com" ]
charette.s@gmail.com
2958f0f909860b6534a0178f12383d7da22b1669
4bd4bacecee33cada173e427b5ecb1d758bafaad
/src/scalarizr/externals/chef/auth.py
ceb60cae41ffdfa7437210aa80b15e234cc31fef
[]
no_license
kenorb-contrib/scalarizr
3f2492b20910c42f6ab38749545fdbb79969473f
3cc8b64d5a1b39c4cf36f5057f1a6a84a9a74c83
refs/heads/master
2022-11-26T10:00:58.706301
2017-11-02T16:41:34
2017-11-02T16:41:34
108,550,233
0
2
null
2020-07-24T11:05:36
2017-10-27T13:33:46
Python
UTF-8
Python
false
false
2,435
py
from __future__ import with_statement import base64 import datetime import hashlib import re def _ruby_b64encode(value): """The Ruby function Base64.encode64 automatically breaks things up into 60-character chunks. """ b64 = base64.b64encode(value) for i in xrange(0, len(b64), 60): yield b6...
[ "kenorb@users.noreply.github.com" ]
kenorb@users.noreply.github.com
33a33cfd3f32dd9321b486aeb4d948593d5c76b2
b15178f2ec828894c3b2d31b3ff6164be37ab875
/setup.py
a511bad7d960a83c9af9d54df61c11eb837181ee
[ "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
biomodels/BIOMD0000000007
08e9de5d8d6745cde85d337c385e0f41f53906d3
1c03559e6e807621fa757386ea03dfae2c0ca312
refs/heads/master
2021-01-25T06:05:51.198922
2014-10-16T05:13:44
2014-10-16T05:13:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
377
py
from setuptools import setup, find_packages setup(name='BIOMD0000000007', version=20140916, description='BIOMD0000000007 from BioModels', url='http://www.ebi.ac.uk/biomodels-main/BIOMD0000000007', maintainer='Stanley Gu', maintainer_url='stanleygu@gmail.com', packages=find_packages(...
[ "stanleygu@gmail.com" ]
stanleygu@gmail.com
d827e99e9bfe24739b29b9efd7b67641f05c3576
ff3e0d75fda9a1a94fd8ba7618c0aab499b8393d
/musicians/migrations/0004_auto_20200813_0055.py
255088a50889f0134f21340a8b9558fc20ab73a7
[ "MIT" ]
permissive
victorsemenov1980/DjangoFullStack
bbe2897c20633b3eba8db807442eb0921668e6f1
655a3a9980057913c1aeeb1cd54683ccf12ad901
refs/heads/master
2023-04-05T23:34:13.836215
2021-04-22T18:08:51
2021-04-22T18:08:51
289,705,449
0
0
null
null
null
null
UTF-8
Python
false
false
1,423
py
# Generated by Django 3.1 on 2020-08-13 00:55 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('musicians', '0003_info'), ] operations = [ migrations.RemoveField( model_name='service', name='Featured', ), ...
[ "vs1378009@icloud.com" ]
vs1378009@icloud.com
0ab52593e61a8c030d9e303a4c84011ce9f94f21
75e24fc71cf0833bb6040fa5037a0523c67d4581
/nlplingo/active_learning/metrics.py
5c880ba632dbf6cfbae101db65920c9732147a90
[ "Apache-2.0" ]
permissive
BBN-E/nlplingo
53d5ff2aa17d03a1c6db8afc8ed2b0cf683b1c55
32ff17b1320937faa3d3ebe727032f4b3e7a353d
refs/heads/main
2022-12-19T19:28:11.666850
2020-10-09T01:16:32
2020-10-09T01:16:32
302,090,268
3
1
null
null
null
null
UTF-8
Python
false
false
467
py
import numpy as np def best_vs_second_best(predictions): """Computes best vs second best metric :type predictions: numpy.nparray :rtype: numpy.nparray """ pred_sorted_arg = np.argsort(-predictions, axis=1) best_vs_second_best_score = 1 - abs( predictions[range(predictions.shape...
[ "hqiu@bbn.com" ]
hqiu@bbn.com
a2ae33df39f4c18bf1122e51783c1b3641f8a71b
0a004fc3fe8e36fd7ce0ed2cc7e8140982315e03
/unsupervised_learning/0x00-dimensionality_reduction/0-pca.py
96f2f628a740e86a328e4e2a17f3fdae39d1650a
[]
no_license
pafuentess/holbertonschool-machine_learning
266ed4f05e106e194cdafe39544e48904f6538f4
3bffd1391b3fc790f0137d0afbe90eb8e2f7d713
refs/heads/master
2023-03-26T15:12:14.721409
2021-03-20T20:28:15
2021-03-20T20:28:15
279,388,813
0
0
null
null
null
null
UTF-8
Python
false
false
284
py
#!/usr/bin/env python3 """ doc """ import numpy as np def pca(X, var=0.95): """ doc """ U, sigma, V = np.linalg.svd(X) a_sum = np.cumsum(sigma) dim = [i for i in range(len(sigma)) if((a_sum[i]) / a_sum[-1]) >= var] ndim = dim[0] + 1 return V.T[:, :ndim]
[ "pafuentess@unal.edu.co" ]
pafuentess@unal.edu.co
6c13a2bb9c012badbf065b7117c98cf2344d8b14
f7f834e68ce816011ae30be0883deef090fbeeed
/camp/Z_Template_2018/Day 5 - Space Invaders/space_invaders.py
be8cc7bd451a55706eed78c51f0099e5ac7b5db7
[]
no_license
Rosebotics/PythonGameDesign2019
97b568cf999dea8642e254a22e528539946118e3
2f03476df940257adc2928f0c985c01daa5166f4
refs/heads/master
2020-06-04T04:42:35.656392
2019-06-22T16:21:57
2019-06-22T16:21:57
191,875,778
1
1
null
null
null
null
UTF-8
Python
false
false
4,301
py
import pygame, sys, random, time from pygame.locals import * class Missile: def __init__(self, screen, x): # TODO: Save the screen into a field # TODO: Save the x into a field # TODO: Set the y to 591 as a field (which is just above the fighter) # TODO: Set a field called exploded ...
[ "fisherds@rose-hulman.edu" ]
fisherds@rose-hulman.edu
7c7ec50d29b03c3642ab2ceba8b96c4be5487afb
669e9241b02bdaa303fbc2fd4023b90d4d179a59
/Basketball Scoreboard/challenge1.py
72070c13f348ee839784ae72678555d7d2e7e973
[]
no_license
benjaminpotter/HatchProjects
0854cf46ae7c3781468116a5d63b703dd54ae68c
7f6a948d3474c755d071751b725c059e6c7f3553
refs/heads/master
2022-01-28T16:58:03.449073
2019-08-16T13:47:30
2019-08-16T13:47:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
997
py
def setup(): size(400, 400) threePoint = 0 fieldGoal = 0 freeThrow = 0 def drawScoreboard(): global threePoint, fieldGoal, freeThrow background(0, 0, 0) noFill() stroke(255, 0, 0) rect(30, 337, 110, 34) rect(155, 337, 110, 34) rect(278, 337, 116, 34) fill(255) textSize(22) ...
[ "reactiveneon@gmail.com" ]
reactiveneon@gmail.com
08b01af01392cb5b5e0ab0605c707494fea4e10e
05c9f1af21a698e09f7ec37a075624250e907262
/samples/cloud_loadbalancers/session_persistence.py
65361528513dff78dabf813b885ccaf5a90b79a5
[ "Apache-2.0" ]
permissive
pycontribs/pyrax
5f5a1d6816f5a831b1ae4b74ffaf438a1c0269a6
2397136b75e6fcc906ee406e9c1bc7aaef94387a
refs/heads/master
2023-08-28T16:43:21.037208
2022-09-21T15:14:38
2022-09-21T15:14:38
5,975,139
10
27
Apache-2.0
2021-07-12T21:23:11
2012-09-27T01:05:57
Python
UTF-8
Python
false
false
1,492
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c)2012 Rackspace US, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.ap...
[ "ed@leafe.com" ]
ed@leafe.com
570cc838272c8d6af88062cc6f7e249fd0b36979
ea57ef44636ce151b3ef5322466cdfcb02482515
/pendulum/constants.py
abc6ec06eacd7553dcf6ee58a8d094672a79966c
[ "MIT" ]
permissive
Sn3akyP3t3/pendulum
acb3dc5067576c4569a08b1d8a8ecfce918b4724
7ce170bdc64199d74e09e347402983f1bb015f63
refs/heads/master
2020-03-22T01:15:01.160870
2018-07-01T15:49:09
2018-07-01T15:49:09
139,292,657
0
0
MIT
2018-07-01T01:46:00
2018-07-01T01:46:00
null
UTF-8
Python
false
false
2,836
py
# The day constants SUNDAY = 0 MONDAY = 1 TUESDAY = 2 WEDNESDAY = 3 THURSDAY = 4 FRIDAY = 5 SATURDAY = 6 # Number of X in Y. YEARS_PER_CENTURY = 100 YEARS_PER_DECADE = 10 MONTHS_PER_YEAR = 12 WEEKS_PER_YEAR = 52 DAYS_PER_WEEK = 7 HOURS_PER_DAY = 24 MINUTES_PER_HOUR = 60 SECONDS_PER_MINUTE = 60 SECONDS_PER_HOUR = MINUT...
[ "sebastien@eustace.io" ]
sebastien@eustace.io
1e1d7ca3bfe15837aaed003514b62088a040f6d2
868ac4e558cf5fe945e8b557564f34f79b3ad01e
/purity_fb/purity_fb_1dot11/models/snmp_agent_response.py
3eb0a329ee36e940b618e7040ff1ee601a4825ff
[ "Apache-2.0" ]
permissive
mabdelhafez/purity_fb_python_client
f4253ce8497fb3cff648e0a0cd1e567f48129fa7
a9856875b3df43b4302a2e4addd1a6b71f51f5ce
refs/heads/master
2022-04-20T09:24:22.031408
2020-04-20T22:11:32
2020-04-20T22:15:44
257,372,596
0
0
NOASSERTION
2020-04-20T18:40:24
2020-04-20T18:40:23
null
UTF-8
Python
false
false
4,171
py
# coding: utf-8 """ Pure Storage FlashBlade REST 1.11 Python SDK Pure Storage FlashBlade REST 1.11 Python SDK, developed by [Pure Storage, Inc](http://www.purestorage.com/). Documentations can be found at [purity-fb.readthedocs.io](http://purity-fb.readthedocs.io/). OpenAPI spec version: 1.11 Contact...
[ "mabdelhafez@purestorage.com" ]
mabdelhafez@purestorage.com