blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
213 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
246 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
4b6132798d6c0859d76c627890ed98d48b68a471
9694ed0bc0e90eed9e275ef304b6cffc6d4b38f1
/peasoup/config.py
4557bb6304385af9d3cbf8803d2bf8a445ba49dd
[]
no_license
pkronstrom/peasoup
3d27a8ebc5ed4657ef711024e9e5d10d2244b2cf
2a53b75558d9d0d674d53de7d04d988fb64ea067
refs/heads/master
2021-01-09T02:58:54.165600
2020-02-22T15:09:10
2020-02-22T15:09:10
242,223,577
0
0
null
null
null
null
UTF-8
Python
false
false
963
py
# Change this to a directory where the podcast files lie. # The server currently only supports for flat directories PODCASTS_DIRECTORY = "/path/to/samba/shared/podcasts/dir" # The baseurl should be something that is accessible from # the outside world (or at least from local network) in # order to use with your podca...
[ "peter.kronstrom@reaktor.com" ]
peter.kronstrom@reaktor.com
dd9b0102909ce4e3104629af6206d2e5099291eb
3432778f39914e0d85201aca0cd0ff4020607e18
/Homework 7/hw7.py
11e95a85c5dd3c93931d7478feac173132727c1f
[]
no_license
cah835/Data-Structures
7e961e31f065e2703749dbe42586bb0099257467
89ba3423c167d073418d11d37e601a575efd4a97
refs/heads/master
2021-01-11T06:28:33.211254
2016-10-27T21:28:19
2016-10-27T21:28:19
72,149,724
0
0
null
null
null
null
UTF-8
Python
false
false
3,004
py
# Run this script w/ Python to populate the database for assignment 7 # For documentation pysql, see: # - Python 3: https://docs.python.org/3/library/sqlite3.html # - Python 2: https://docs.python.org/2.7/library/sqlite3.html import sqlite3 import json # Open the JSon file and store data for the tables with open(...
[ "corey@Coreys-MacBook-Pro.local" ]
corey@Coreys-MacBook-Pro.local
b6fe08f420ddbed60467a9e8b8b25ffed8c39c50
a34a034586ef5bff7d452ced878a75a6790ecf62
/src/frames/convertGtts.py
aaa098aa1720d4c6d57c6f6c252356a7b35ec125
[ "MIT" ]
permissive
AR4Z/COLIBRI
8041ca16fba7b9be03cd90372e9d3116fafe8393
2edcaf8cea7813f44d9c3dea783e728eb59f9a58
refs/heads/master
2021-09-20T09:43:21.261382
2018-06-24T20:56:56
2018-06-24T20:56:56
124,479,791
1
0
null
null
null
null
UTF-8
Python
false
false
9,195
py
import tkinter as tk from tkinter import PhotoImage, filedialog, StringVar, Radiobutton, IntVar from tkinter.ttk import Progressbar import tkinter.messagebox import threading from utils.utils import len_file_pdf, extract_text, text_to_audio, extract_name_audio, len_audio_file from .audioPage import AudioPage import pla...
[ "oaraz02@gmail.com" ]
oaraz02@gmail.com
8f1829ee69b87b02cc106601fc364e928bd4864f
6275b8eee6f8f0f69c1f7d1b74a82db22329d560
/src/train_v4.py
fe583be223d6b303b0b94e9af04e688c97169fb1
[ "MIT" ]
permissive
khodwe56/kaggle-birdsong-recognition
081575ea02e663f98292c5e579c14de4bcdb7e22
95a902c37355619cf02558968f000038e487db47
refs/heads/master
2023-01-01T21:35:20.101880
2020-10-27T17:03:06
2020-10-27T17:03:06
299,716,450
0
0
MIT
2020-09-29T19:21:48
2020-09-29T19:21:47
null
UTF-8
Python
false
false
721
py
from argparse import ArgumentParser, Namespace from engine.main_engine_v4 import MainEngineV4 import importlib import torch import ignite.distributed as idist torch.backends.cudnn.benchmark = True def run(local_rank, config): pe = MainEngineV4(local_rank, config) pe.train(config.run_params) def main(hyperpara...
[ "ryancwongsa@gmail.com" ]
ryancwongsa@gmail.com
95c245281551b533a9da487b67a62881b1c8df20
3d3995ffd1844e4d19b15d9da48696d087ddbe6d
/qa/rpc-tests/wallet-dump.py
04d12ad4bcdd630086cf56f23e3882b430645ee3
[ "MIT" ]
permissive
MassGrid/MassGrid
2f6f0cb8638f97aca3bb3d500af846becddd3103
5634dda1b9997c3d230678b1b19b6af17b590a3d
refs/heads/master
2021-06-12T01:11:59.651512
2019-07-15T03:03:12
2019-07-15T03:03:12
118,768,672
18
14
MIT
2019-04-30T07:28:27
2018-01-24T13:25:02
C++
UTF-8
Python
false
false
5,212
py
#!/usr/bin/env python3 # Copyright (c) 2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. from test_framework.test_framework import MassGridTestFramework from test_framework.util import * def read_d...
[ "873040807@qq.com" ]
873040807@qq.com
db520c55803ce3ffeb97f5b339bc73d74fb711f0
cb40aad84a35856ce5a8285ea7260f4183b1dd7a
/tests/model/test_properties.py
686bc3f6503e24b4cfda6093606dd26cd1f7e118
[ "Apache-2.0", "MIT" ]
permissive
vyahello/trump-bullet-game
f71f2fe86a92ba89ea82af5cfecab504b13576d0
7648f9722471323ddec1aa6b6d7db38166bebc91
refs/heads/master
2021-09-08T09:31:49.459350
2021-08-29T08:26:14
2021-08-29T08:40:40
167,864,306
0
0
null
null
null
null
UTF-8
Python
false
false
1,974
py
from typing import Tuple import pytest from app.model.properties import GameProperty, Color, Resolution, Border from app import PropertyError _rdba_color: Tuple[int, ...] = (1, 2, 3) _resolution: Tuple[int, ...] = (10, 20) _bottom: int = 5 def test_property_coordinates() -> None: assert len(GameProperty.coordina...
[ "vyahello@gmail.com" ]
vyahello@gmail.com
772afd59bd32748689f71c12edef9489acabc9b6
f6ff601089f678fecbfa22a4d95c1de225bc34b5
/python2.py
cb45756c283eb7bd22ce63562a011e33fa31726c
[]
no_license
Kumar1998/github-upload
94c1fb50dc1bce2c4b76d83c41be2e0ce57b7fa6
ab264537200791c87ef6d505d90be0c0a952ceff
refs/heads/master
2021-07-05T10:14:13.591139
2020-07-26T15:47:30
2020-07-26T15:47:30
143,553,935
0
0
null
null
null
null
UTF-8
Python
false
false
83
py
v="HARD TIMES" print(v[3]) import time time.sleep(100)
[ "noreply@github.com" ]
Kumar1998.noreply@github.com
ba55aa07f86bf85d7f55d854a6d3e64096f4000b
d80ef8c716bcc5ea54e87540dbf0463f15bf44ce
/libmproxy/contrib/wbxml/InvalidDataException.py
67f8ea93014bc2aaf814f9995cc5861007b63caf
[ "MIT", "BSD-3-Clause" ]
permissive
YagiGo/YPTN
5043d22eb131c7164d3fa575f0c4e3d8a963dbf4
d7692a68ee1bf578536b4c09c566272210fc8b69
refs/heads/master
2018-10-16T03:44:18.024169
2018-07-24T08:53:57
2018-07-24T08:53:57
107,633,669
4
1
MIT
2018-06-08T09:04:29
2017-10-20T04:55:22
JavaScript
UTF-8
Python
false
false
1,333
py
#!/usr/bin/env python ''' @author: David Shaw, david.shaw.aw@gmail.com Inspired by EAS Inspector for Fiddler https://easinspectorforfiddler.codeplex.com ----- The MIT License (MIT) ----- Filename: InvalidDataException.py Copyright (c) 2014, David P. Shaw Permission is hereby granted, free of charge, to any person o...
[ "jeremywu1995@gmail.com" ]
jeremywu1995@gmail.com
657c8ecbb66d3f2b883c96e348062764079177a8
b833ac109361dbad4f0707c64db214b5542778d4
/mfow_compfin/risk/consumer_credit/model_metrics.py
bce7716cbb6a74924f24df11190b6cfbae7aee20
[ "MIT", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-unknown-license-reference" ]
permissive
mfow/compfin
d794c77edb49902ec06d2fa9dfd700faf81d7ded
d513ef69b0aa25a298cb2187c2211642fd080db4
refs/heads/master
2023-03-04T10:40:22.701846
2021-02-06T07:30:42
2021-02-06T07:30:42
335,581,413
0
0
null
null
null
null
UTF-8
Python
false
false
429
py
import numpy as np from sklearn.metrics import roc_auc_score def get_model_metrics(**kwargs) -> dict: prediction: np.ndarray = kwargs.get('prediction') actual: np.ndarray = kwargs.get('actual') assert prediction.shape == actual.shape result = dict() result['accuracy'] = np.sum((prediction >= 0...
[ "mfow@outlook.com" ]
mfow@outlook.com
e136d99f8769bc511857cf18825e7b778b03d888
db57e38fc94280f55de113512e1bf4468d199ea4
/Tests/conftest.py
0c8c01ea6c1cb2b52cfa5556824665053a3287ea
[]
no_license
maximashuev/TestProject
73f231f19f1a51a61677d18e2045e5ddab77244c
156486bbbd5e8f2e2ac902dc09adfaa767e82ad9
refs/heads/master
2023-01-24T16:30:48.816166
2020-12-15T11:32:42
2020-12-15T11:32:42
320,307,884
0
0
null
null
null
null
UTF-8
Python
false
false
857
py
import pytest from selenium import webdriver from webdriver_manager.chrome import ChromeDriverManager from webdriver_manager.firefox import GeckoDriverManager @pytest.fixture(params=['chrome','firefox'], scope='class') def init_driver(request): driver = None if request.param == 'chrome': options = web...
[ "maximashuev@gmail.com" ]
maximashuev@gmail.com
fa911cce9aa47bb0db4769337cacc5ab8c3bdae2
832117e293908ac349e96620a9b549d93f74092d
/Simulations/Python/EG Statistic/Generate Herfindahl Bins for Each N given a Range of Sigmas/HSimulation
236229f13522781df2942d9437174b346cf1aaff
[]
no_license
seilkhanov/EconScripts
602a665515ff9e816476a67ad5003f10b47dc45d
f093bd9209db3fccbd08f57f7473623e9a6da656
refs/heads/master
2023-03-23T03:36:50.353039
2019-12-18T12:54:53
2019-12-18T12:54:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,741
#!/usr/bin/env python import optparse import os import platform import sys import codecs from hSimulation import * import csv from decimal import * import numpy from RandomIntVal import * import pprint def isNumeric(value): return str(value).replace('.','').strip().isdigit() def fileExists(value): if os.path.isf...
[ "ben@wbpsystems.com" ]
ben@wbpsystems.com
e0d5509edde2bc597a60a52985623e184213d1fb
8925916f67b9b77290020c932d97314a284d0595
/contrib/spendfrom/spendfrom.py
6765e86936b351c633817fea871d6398e2e214b0
[ "MIT" ]
permissive
btcnode/btcnode
57c44726c6e289b893d07fde9146457c984324ab
c5005ee73e5e640e3a24a9c5648d20a30671652b
refs/heads/master
2023-04-05T04:11:07.691316
2021-03-19T22:12:37
2021-03-19T22:12:37
349,072,293
0
0
null
null
null
null
UTF-8
Python
false
false
10,032
py
#!/usr/bin/env python # # Use the raw transactions API to spend BTNs received on particular addresses, # and send any change back to that same address. # # Example usage: # spendfrom.py # Lists available funds # spendfrom.py --from=ADDRESS --to=ADDRESS --amount=11.00 # # Assumes it will talk to a btcnoded or btcnode...
[ "root@vmi546684.contaboserver.net" ]
root@vmi546684.contaboserver.net
376e21623d3fc2c5d5c28e523d7aebd69a3d0cb9
54869fe38624f1c4338f8dc5dd5f0d89aa17c9e4
/p02.py
09a6e54ab7e48ccdcf3c8f292f157dc5bbaa7bcc
[]
no_license
qoqosz/Advent-of-Code-2020
d3b3512eb3b59b7404189ad094a2cc3b8ddb07be
e27928482e8fc9f30aea3fed21e11f8d8743431d
refs/heads/master
2023-02-05T22:17:45.767109
2020-12-24T21:20:57
2020-12-24T21:21:06
318,346,507
0
0
null
null
null
null
UTF-8
Python
false
false
472
py
from collections import Counter p1_count, p2_count = 0, 0 with open('p02.txt') as f: for line in f: rng, char, text = line.split(' ') min_, max_ = map(int, rng.split('-')) char = char.strip(':') counter = Counter(text) if min_ <= counter[char] <= max_: p1_count...
[ "lukasz@bednarski.me" ]
lukasz@bednarski.me
dc05e2977d431405af5481a08423fc3dbeb7ab49
1d943fdcd18b749ca05ebdeea1355a09f38b67c8
/venv/Scripts/easy_install-3.7-script.py
184b88433e4a27fb204a965eb33f961534cf7d8e
[]
no_license
sauravs1001/CodingChallengeFor100Days
a7fc06186a6d7eaa18d6a89a856adeaa1b9dd25f
decfa47bc45747a61c7f8afcd1952c3b37e86aa7
refs/heads/master
2020-03-26T22:08:22.333012
2018-08-27T14:22:41
2018-08-27T14:22:41
145,433,587
0
0
null
null
null
null
UTF-8
Python
false
false
481
py
#!C:\Users\SSatapathy\PycharmProjects\CodingChallengeFor100Days\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.7' __requires__ = 'setuptools==39.1.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] =...
[ "ssatapathy@spherasolutions.com" ]
ssatapathy@spherasolutions.com
0846c0ba23ee639e01b60dbedf18499542be341e
0156fd64d89df94c1f7fdb6003a11272a24e987e
/divineai1/manage.py
c3d5d325963809a3971f1249582a433cdcf6c1dc
[]
no_license
Vengers-Ritam/divineplatform
96b7f762188417ccf69586711abb1b6fbf3533b5
b25fdb3fc4e96bbe328b9d3c7f5ef390202ed8c6
refs/heads/master
2023-04-24T05:00:08.594565
2021-05-03T11:23:43
2021-05-03T11:23:43
363,904,149
0
0
null
null
null
null
UTF-8
Python
false
false
629
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'divineai1.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise Impo...
[ "ritammoharana32@gmail.com" ]
ritammoharana32@gmail.com
746dc26f8121171baa58db84f01da18b503980d2
09af57b73cf755da52aa3f0c22e9c1072d17cd09
/python_code/importCrowdyNews.py
a0e0c171219366221a9593e703a58bbce08f0971
[ "MIT" ]
permissive
ControCurator/controcurator
49390818c92b34de386901a6b09430af9d7b0a2f
882ff11540e085bd404a3d1a6500ce1e70eb13f5
refs/heads/master
2021-05-03T06:03:04.156148
2017-07-01T11:49:21
2017-07-01T11:49:21
70,159,768
2
1
null
null
null
null
UTF-8
Python
false
false
878
py
# import guardian articles import os import json from models.articles.crowdynews import * from elasticsearch import Elasticsearch es = Elasticsearch( ['http://controcurator.org/ess/'], port=80) # main function if __name__=='__main__': #articles = CrowdyNews.all(size=1000) #CrowdyNews.delete_all(articles) anch...
[ "b.timmermans@vu.nl" ]
b.timmermans@vu.nl
4a280cf5c7d4c339037eb911f3ebad676959108e
53aa7d90d5ddc2b59b869a2a00e8574cd196a625
/Html/Dir.py
06bd8024551866f989407fa2008dc12f9ce03a6a
[]
no_license
nicolachoquet06250/webcreator-V2
c655248ad69ebe6cbf0ff229c11fc25b97097112
72bb5e4ddde3a8965f93a6e00226795839b64a0b
refs/heads/master
2020-03-20T06:41:08.531948
2018-06-21T13:11:54
2018-06-21T13:11:54
137,256,863
0
0
null
null
null
null
UTF-8
Python
false
false
101
py
from Utils import Utils class Dir(Utils): def create(self, path=''): self.mkdir(path)
[ "nicolachoquet06250@gmail.com" ]
nicolachoquet06250@gmail.com
8ab3356264d79c13893cbd6fbacaabfc53946f25
55be4a49ed1cd1b8b7b0ac2e6fa55aa58c180e15
/ICS 32/Project 4/test_project4.py
490730e4bd9f5d19726a62c27289657fd2313e99
[]
no_license
rvcervan/ICS-32-Projects-Python
bc64abda6ea20f63542bd121f1161d31d23a2d42
ec01343708028fbe07fc95dc229bd111c12c3836
refs/heads/main
2023-07-01T16:41:48.506241
2021-08-09T05:13:24
2021-08-09T05:13:24
394,155,974
0
0
null
null
null
null
UTF-8
Python
false
false
7,133
py
import mechanics import unittest class GameTest(unittest.TestCase): def setUp(self): self._game = mechanics.Game([[' ', ' ',' '], [' ', ' ',' '], [' ', ' ',' '], [' '...
[ "noreply@github.com" ]
rvcervan.noreply@github.com
9f03d7bd8bcc479327be64dc54ad22ec87c35ae7
a0990640cb7d2b93262af982185f98ff0b0addbc
/2021-05-13_vibe+/frame2video.py
69e25c19525fd94f91b15ce947fdf445fb7de784
[]
no_license
chgex/Others
c320bff96aa85fa3127092f7e2a433801fbb62ea
2a8970474bd7c78aa40a7e6f4135192c2972a334
refs/heads/main
2023-04-24T09:48:56.475389
2021-05-18T10:11:13
2021-05-18T10:11:13
366,975,035
0
0
null
null
null
null
UTF-8
Python
false
false
2,401
py
''' Author: liubai Date: 2021-04-22 LastEditTime: 2021-04-22 ''' import cv2 import os # 图片重命名 def imageRename(image_path): image_list=os.listdir(image_path) total=len(image_list) # 第一张图片 cnt=1 for i in range(1,total+1): old_image_name=image_path + '/' + str(i) + '.jpg' ...
[ "noreply@github.com" ]
chgex.noreply@github.com
a344107f6c455874e9bbd5dca801684ea1fa0f30
3438e8c139a5833836a91140af412311aebf9e86
/third_party/WebKit/Source/bindings/scripts/v8_types.py
011bf4bb2dccfcff60556c65ba05b9fc5ca6a345
[ "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
Exstream-OpenSource/Chromium
345b4336b2fbc1d5609ac5a67dbf361812b84f54
718ca933938a85c6d5548c5fad97ea7ca1128751
refs/heads/master
2022-12-21T20:07:40.786370
2016-10-18T04:53:43
2016-10-18T04:53:43
71,210,435
0
2
BSD-3-Clause
2022-12-18T12:14:22
2016-10-18T04:58:13
null
UTF-8
Python
false
false
42,480
py
# Copyright (C) 2013 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the ...
[ "support@opentext.com" ]
support@opentext.com
171c44c03fc9a6f1280505b2dfe9de87aed7c40a
b5c5efbc9bf66caf317e6198c91d5253d23f2fd9
/PyAudioEngi/AudioREC/test.py
0b39e9373383f3b3f42bca9fe33f0bfe7ba27cc8
[]
no_license
vvilq27/python
eb478a91843590eb3bf2a0e9ea6b88adf826d500
c1d975650057ca17c6f88497d1f629b28d72308d
refs/heads/master
2021-01-02T09:45:07.087470
2020-10-16T14:02:46
2020-10-16T14:02:46
99,287,435
0
0
null
null
null
null
UTF-8
Python
false
false
305
py
''' Created on 7 maj 2018 @author: arkadiusz.zelazowski ''' import time t = time.clock() for i in range(1000000): a = 5+3 print(time.clock() - t) buffer = [] data1 = [1 ,2 ,3 ,4 ] data2 = [5,6, 7 ,8 ] buffer.append(data1) print(buffer) buffer.append(data2) buffer.append(data1) print(buffer[1])
[ "arkadiusz.zelazowski@accenture.com" ]
arkadiusz.zelazowski@accenture.com
b2c89f08137187610f4e4c87d7926691feebaf94
e10513e1ef7d195a051befb6c829b27a0cf685c2
/core/utils/resume.py
39fc888d1e92b31d15ad1e50ee51e359c3d01d89
[]
no_license
kirenng/image-caption
5293409a4dca0ed225f3ec342a244ea5c0a49a60
78b521f306aac3fc02bb051be0e906108f98f7dd
refs/heads/master
2023-07-06T11:34:23.420494
2021-08-13T09:55:19
2021-08-13T09:55:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,046
py
import os import torch def resume_from_checkpoint(args, model, optimizer, best_acc1): if os.path.isfile(args.resume): print("=> loading checkpoint '{}'".format(args.resume)) if args.gpu is None: checkpoint = torch.load(args.resume) else: # Map models to be loaded t...
[ "3280867946@qq.com" ]
3280867946@qq.com
fdbc95d9a4ad946af1d4b66ea9d2b9a58fc8e2e4
4dc91b14630d507d32ec75c7c099ba3576b07232
/TopAnalysis/scripts/KinAlg4tree.py
10f69e8216a75bc8d47b8372486a19bc4053939d
[]
no_license
beatrizlopes/TopLJets
6b62ccfd5249f6d0d06c04a487e638958df229af
198250ab1eae8a6a11b66dad626a827f46ec0092
refs/heads/master
2023-06-21T20:10:46.840262
2019-08-01T10:44:01
2019-08-01T10:44:01
198,248,791
0
1
null
null
null
null
UTF-8
Python
false
false
6,138
py
import ROOT import optparse import json import sys import os import numpy as np from array import array from TopLJets2015.TopAnalysis.storeTools import getEOSlslist from TopLJets2015.TopAnalysis.nuSolutions import * """ ...
[ "bribeiro@cern.ch" ]
bribeiro@cern.ch
fe469f3699ada32088a48d4a15051399450c03c8
e211657b291dbcb21ed6c587275ff7168e8413f3
/models/sys_trans_sp_multi.py
7031132db7a25e66d621263bc6d8f743484a1c9a
[]
no_license
jehovahxu/chan
b64b84a96983dc956e746217fb51451d55ea6d1d
572060b45f4a79e09e796ba671851de693817fc2
refs/heads/master
2020-12-02T05:31:20.537309
2020-03-14T15:34:57
2020-03-14T15:34:57
230,905,070
4
0
null
null
null
null
UTF-8
Python
false
false
14,192
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 18-12-26 下午3:13 # @Author : Jehovah # @File : systhesis.py # @Software: PyCharm import torch import torch.nn as nn class Sys_Generator(nn.Module): def __init__(self, input_nc, output_nc, ngf=64): super(Sys_Generator, self).__init__() ...
[ "361857031@qq.com" ]
361857031@qq.com
4ed59eebd6c684deb8e7f456b283309a733233df
0942f23ffad253850099d7b994415ba3ab50d896
/pyinstaller/PyInstaller/build.py
44ace10c67ccba3daa0f291034dfae8d36ea8776
[]
no_license
fabiomdiniz/Frey
d5fa09c67c82201d8f6a6df61e23f24b1e71c923
6d1f133b33afb4e810737e1690f89e1faf9ae0ee
refs/heads/master
2020-05-17T15:48:33.106859
2013-11-05T14:25:02
2013-11-05T14:25:02
2,523,746
0
1
null
null
null
null
UTF-8
Python
false
false
63,105
py
# # Copyright (C) 2005, Giovanni Bajo # Based on previous work under copyright (c) 1999, 2002 McMillan Enterprises, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of t...
[ "fabiomachadodiniz@gmail.com" ]
fabiomachadodiniz@gmail.com
243b30d8a04317b70aab7c0bbadabf27a895a4a2
480a175ab2b3c012af2d1cddb79674fad1490fe5
/0x08-python-more_classes/tests/main.2.py
2cb60d1c599573c08cc695829729fe51c64ab27d
[]
no_license
ianliu-johnston/holbertonschool-higher_level_programming
a8a6476fc6a7ac0bd8ae300f2196f17c13e1b36f
f6a7c9cddb2482991c2aadacb99aa66e64eb50eb
refs/heads/master
2021-04-29T11:12:56.820851
2017-05-10T00:48:17
2017-05-10T00:48:17
77,854,226
3
3
null
null
null
null
UTF-8
Python
false
false
944
py
#!/usr/bin/python3 Rectangle = __import__('2-rectangle').Rectangle new_rect = Rectangle(3, 4) print("Dimensions of your new rectangle: {} x {}".format(new_rect.width, new_rect.height)) print("Area: {}".format(new_rect.area())) print("Perimeter: {}".format(new_rect.perimeter())) new_rect.width = 5 print("Width just c...
[ "ian.liu-johnson@holbertonschool.com" ]
ian.liu-johnson@holbertonschool.com
c2bb14d7ae24c97ce9e538b563179a0fb27d3f71
2aace9bb170363e181eb7520e93def25f38dbe5c
/build/idea-sandbox/system/python_stubs/cache/77d922e63877a9db19d31d69878e680aa58a54c85eee51673bc8bfa5abec9462/cython_runtime.py
f0626603901297c264822be8e70b80c27bee933e
[]
no_license
qkpqkp/PlagCheck
13cb66fd2b2caa2451690bb72a2634bdaa07f1e6
d229904674a5a6e46738179c7494488ca930045e
refs/heads/master
2023-05-28T15:06:08.723143
2021-06-09T05:36:34
2021-06-09T05:36:34
375,235,940
1
0
null
null
null
null
UTF-8
Python
false
false
270
py
# encoding: utf-8 # module cython_runtime # from C:\Users\Doly\Anaconda3\lib\site-packages\scipy\stats\statlib.cp37-win_amd64.pyd # by generator 1.147 # no doc # no imports # Variables with simple values __loader__ = None __spec__ = None # no functions # no classes
[ "qinkunpeng2015@163.com" ]
qinkunpeng2015@163.com
36c88c84948b0dd704090817ec765ae54204629c
0c5ce271c857d067c77d268c8cd6a0b1c0f70e11
/app.py
569b218bc98727dac4ed4a5cac32baa944672cea
[]
no_license
Eduardo-JReis/translate-script
0b1723a58204885734d6d235fdafc7abe0e71c83
5ad6e0d2311e7dad938af300feb55b82f6f0622d
refs/heads/master
2023-01-12T20:06:20.265520
2020-11-22T11:17:08
2020-11-22T11:17:08
315,018,659
0
0
null
null
null
null
UTF-8
Python
false
false
300
py
# import googletrans as gt from googletrans import Translator # print(gt.LANGUAGES) trans = Translator() test = True while test: word = str(input('Digite a palavra: ')) print() res = trans.translate(word, dest='pt') print(res.text) if word == 'esc': test = False
[ "edu.publicidade81@gmail.com" ]
edu.publicidade81@gmail.com
adc821f5df6ddc1460050390a5807ed3f8662942
d165d718b2a5e4b18f9b52054e1f5d382d72be03
/0x04-python-more_data_structures/5-number_keys.py
ca851394809637d9e4344d5ff96907b884f2f1f7
[]
no_license
Fabian-Andres/holbertonschool-higher_level_programming
f1b67fd28fb135c84ed9b3240d66ef125a043e00
0b08e2f3c4a798dd0cce1a9776304c74ad0b6ba3
refs/heads/master
2022-12-16T04:56:11.222686
2020-09-25T04:47:02
2020-09-25T04:47:34
259,423,074
1
0
null
null
null
null
UTF-8
Python
false
false
146
py
#!/usr/bin/python3 def number_keys(a_dictionary): no_keys = 0 for i in range(len(a_dictionary)): no_keys += 1 return no_keys
[ "f4bian.andres@gmail.com" ]
f4bian.andres@gmail.com
7688e234fa65ebe9a7d4ff0798517fcd1f8b8b52
6b7f81afdb9983664d12a9fc54452dd48ed5779a
/env/bin/python-config
3f755f3f8c33a751286ee92004eaaa4bc470a0c0
[]
no_license
Wilians001/axf
502fcf91d737f2901572c6dd59ff3e9c81615412
fb4c41c01a23c5dd0f64e4c2f61c0a042cb72935
refs/heads/master
2020-03-31T07:43:32.643230
2018-10-08T12:02:25
2018-10-08T12:02:25
152,032,740
0
0
null
null
null
null
UTF-8
Python
false
false
2,339
#!/home/wilians/axf/env/bin/python import sys import getopt import sysconfig valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags', 'ldflags', 'help'] if sys.version_info >= (3, 2): valid_opts.insert(-1, 'extension-suffix') valid_opts.append('abiflags') if sys.version_info >= (3, ...
[ "1518209084@qq.com" ]
1518209084@qq.com
7bd312f480c9b07a9899341317b8efa9c83c2d1d
f03e5dd56eb3455e0f87295b8a610c9dac11c2c5
/working program storage/edit_database.py
27e4290c8119958cdb932f6fed14186724a4d187
[]
no_license
henrymlongroad/PyQt-sql-database-link
139413d73bdc991474208476acfb6f89f017cdfd
41ed3cd4111657748aa35c528b0aba1f4dc32c76
refs/heads/master
2016-09-05T21:47:45.590063
2015-03-13T21:00:04
2015-03-13T21:00:04
24,986,880
0
0
null
null
null
null
UTF-8
Python
false
false
6,726
py
from PyQt4.QtCore import* from PyQt4.QtGui import* import sys import sqlite3 def run_main_menu(): print("which area of the database do you wish to access") print() print("1. customer") print("2. products") print("3. prescription data") print("4. Orders") print("5. manufact...
[ "21394@longroad.ac.uk" ]
21394@longroad.ac.uk
702e93ec385bbb5567fec0ac4ca70cf08f9f04db
7dbcf66e47684c652f9d90a47b2381cf846e003d
/pkg/Conf.py
d8e12155528eb0090ab0006f88fcc253282e3ede
[]
no_license
hlanSmart/simple
531b9a8be524d29c43016c865f64132aa4bf3069
c8536edd4cec1f39e23a5ff35ae16f0efa15f323
refs/heads/master
2020-12-27T08:24:04.383170
2016-09-22T04:29:44
2016-09-22T04:29:44
68,556,669
0
1
null
null
null
null
UTF-8
Python
false
false
1,020
py
#!/usr/bin/python #coding:utf-8 import os,yaml BASE_PATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) def readServer(sg,sl=False): #sg ServerGroup 服务器组 sl ServerList 组列表 with open(os.path.join(BASE_PATH,'etc/server.yml'),'r') as f: server=yaml.load(f) if sl: ...
[ "root@localhost" ]
root@localhost
9d9f3f8f6419b9565b74b794fce0b1e7d24d7632
f08f7e4da3cb83257bbeb6cf198e23ac65d91fd0
/안준혁/[21.07.19]1065.py
fed3c18cdb8c06b5c269118c09f0dc7e99e0b152
[]
no_license
4RG0S/2021-Summer-Jookgorithm
cabcd2071b88510ac22a971ed600e7b4645eb5f2
bf23a3a0f2679bcd47c825247d57998eb23c1df8
refs/heads/main
2023-07-17T06:49:17.165893
2021-09-06T09:49:36
2021-09-06T09:49:36
384,205,067
1
1
null
2021-07-14T05:46:52
2021-07-08T17:44:15
Java
UTF-8
Python
false
false
324
py
n = int(input()) count = 0 for i in range(1, n+1): if i < 100: count += 1 elif 100 < i < 1000: first = i % 10 second = int(i / 10) % 10 third = int(i / 100) comp1 = first - second comp2 = second - third if comp1 == comp2: count += 1 print(co...
[ "ajh99345@gmail.com" ]
ajh99345@gmail.com
d9378d480308166701e5c54976dd75940bd624ed
4f01aff7aaaa979e80ee6bd02d01b24dfbfc0e9d
/scripts/easy_update.py
e883650bdfb287e1ae42d467098920d8a2ad51ff
[]
no_license
jakevc/easybuild-life-sciences
8d49a923a5448690d890205e4a85308bebd718c0
fef9de66a7a08ac3492eb38fe881fc74745aec61
refs/heads/master
2020-05-05T04:38:36.415766
2019-04-04T18:21:35
2019-04-04T18:21:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
32,541
py
#!/usr/bin/env python import re import os import sys import argparse import imp import requests # from pprint import pprint # from pprint import pformat """EasyUpdate performs package version updating for EasyBuild easyconfig files. Automates the the updating of version information for R, Python and bundels that exte...
[ "john@fuzzdog.com" ]
john@fuzzdog.com
e4d3b1c290b0ee2787f51f3bb625a45c1c113234
6daa3815511b1eb1f4ff3a40b7e9332fab38b8ef
/tastesavant/taste/apps/profiles/migrations/0010_auto__add_field_profile_preferred_site__chg_field_profile_user.py
f631b68b525621e7885479041e53e8ea8b703f7e
[]
no_license
kaizensoze/archived-projects
76db01309453606e6b7dd9d2ff926cfee42bcb05
d39ac099cb40131bac5de66bde7d0e2db5f74189
refs/heads/master
2021-05-31T12:16:17.800730
2016-02-23T00:27:56
2016-02-23T00:27:56
14,407,212
1
0
null
null
null
null
UTF-8
Python
false
false
7,513
py
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'Profile.preferred_site' # The default value, 3, should refer to the NYC site. db.add...
[ "gallo.j@gmail.com" ]
gallo.j@gmail.com
74c451e67b80b2f8cba3e0eac1b09d2eedf46702
2eff698abfad7693e61bc942de619c5abe7dd270
/PyPoll.py
1683debe67677fc4bc61c39ab1d0e1a47ff942a3
[]
no_license
zanelouis/Election_Analysis
ff894d228777a465e5cd0b328538267722cc0624
4353f566826eabea5176d83051ca3dcbba6524ca
refs/heads/main
2023-01-07T20:59:15.794899
2020-11-04T00:01:20
2020-11-04T00:01:20
300,511,213
0
0
null
null
null
null
UTF-8
Python
false
false
4,043
py
# Add our dependencies. import csv import os # Assign a variable to load a file from a path. file_to_load = os.path.join("Resources", "election_results.csv") # Assign a variable to save the file to a path. file_to_save = os.path.join("Analysis", "election_analysis.txt") # Initialize a total vote counter. tota...
[ "noreply@github.com" ]
zanelouis.noreply@github.com
d85cf1dc2e0922928193d390f42218e83afbb210
35665123a96d6e97deb9f2e8761e0415ea9eb620
/Mean_Stddev_Calculator.py
fbfae1a14808b211dad6b083ae78c28d4bcb83d7
[]
no_license
ArvindSinghRawat/TransportModeDetection
8f7eee3608a1bca612477c3b746cd893ad404986
5cfb7a9c735b07f4d0f5b7103f3f6a429c2369a5
refs/heads/master
2020-05-20T14:51:18.116449
2019-05-08T17:04:54
2019-05-08T17:04:54
185,630,764
0
0
null
null
null
null
UTF-8
Python
false
false
729
py
import pandas as pd import numpy as np import csv def desc(path="data/Arvind 2000.csv",cname = "speed (m/s)",export=False): data = pd.read_csv(path)[cname] d = dict() data = data.fillna(0) d['Mean'] = data.mean() dq = np.percentile(data,(0,25,50,75,100)) d['Min'] = dq[0] d['1Q'] = ...
[ "noreply@github.com" ]
ArvindSinghRawat.noreply@github.com
ad784210df07d410b4d9d0b3795e111aa61b9193
b7453e5a2700f2017a6f783eaf3990ee2486cd65
/test/utils/test_clean_identity.py
54c6c0a2df4ef8f53c92989877f93ce940c57635
[ "Apache-2.0" ]
permissive
LaRiffle/cleaning-scripts
8525164cca8336b67a2362d6907414e27ca088fa
08f360721056d30befe8d58ded583a4a5d126184
refs/heads/master
2020-07-28T06:52:47.673033
2019-11-19T15:26:19
2019-11-19T15:26:19
209,343,798
0
0
Apache-2.0
2019-09-20T13:13:25
2019-09-18T15:33:16
Python
UTF-8
Python
false
false
233
py
from scripts import utils def test_clean_identity(): assert utils.clean_identity(None) == "" assert utils.clean_identity("NaN") == "" row_input = "Holà chicanos" assert utils.clean_identity(row_input) == row_input
[ "theo.leffyr@gmail.com" ]
theo.leffyr@gmail.com
9b9a14f2985d9dd1d7bc6ef666b5d40a2a9a5256
a7e0784b697b6c57920e16e2f54ea0ed2225c0e0
/data/clingen_raw_to_training.py
47d0357cb8921e5915cdc80d02e9879fcf3e88c3
[]
no_license
rumeysa77/ClinGenML
17e1a3786b8711387a61707252307aab13e682c5
c3bf6fbf7d0fe6c1311ce0fcfb4e26d8331bbc7d
refs/heads/master
2023-03-22T04:41:40.669592
2021-02-24T09:04:29
2021-02-24T09:04:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,815
py
""" This file processes the raw excel sheet and extract data """ import time import csv from collections import defaultdict from Bio import Entrez from pathlib import Path import unicodedata def _is_whitespace(char): """Checks whether `chars` is a whitespace character.""" # \t, \n, and \r are technically contorl...
[ "leo.niecn@gmail.com" ]
leo.niecn@gmail.com
f34593fe377603414090a24989aab7c88d64fa51
f9a579efe76ac5436e767489be6d8143da3c3404
/src/apps/helper/middleware.py
5ce48db802e3d4bacbf60bbfc817bebe7a76d41f
[]
no_license
15879246396/youpai-service
2c4db15f8a50de4b6b2ff4204898c3e5217c0258
fd91b68f35664e7e853c1fd2cd55919a97a87fa2
refs/heads/master
2023-01-10T11:30:50.918568
2019-10-25T07:52:50
2019-10-25T07:52:50
205,700,793
0
0
null
2022-12-27T15:35:27
2019-09-01T16:08:44
Python
UTF-8
Python
false
false
7,401
py
import uuid import sys import datetime import json from django.core.cache import cache from django.utils import timezone from django.conf import settings import requests from helper.conf import helper_settings from helper.log import get_logger from common.mixin import MiddlewareMixin logger = get_logger(__name__) ...
[ "15797731292@163.com" ]
15797731292@163.com
1b345f16fe41c4e6c2b77186c46547b36c175f00
72d344286f15d794f08c6964bf3a310fe86c2f67
/TP05/TP01.py
2907b88d09c272e37dd6f11d4993647eaade0128
[]
no_license
boua615/Tps01
c240330967cf4aa79491d75bbb4c82742cd88cae
8c9c06312c1b2b949fb86518758a0c0940d3bcc6
refs/heads/master
2021-02-12T07:03:56.862122
2020-03-05T03:05:12
2020-03-05T03:05:12
244,570,977
0
0
null
null
null
null
UTF-8
Python
false
false
2,322
py
#!/usr/bin/env python #- * -coding: utf - 8 - * -##TP01.py## DATA_FILE = 'annuaire-v0.2.xml' import xml.dom.minidom as minidom import sys def main(): try: xmldoc=minidom.parse(DATA_FILE) except: print("Can't Open the file") sys.exit() print(xmldoc.toxml()) treat_doc(x...
[ "noreply@github.com" ]
boua615.noreply@github.com
740f614b0665f2538f1e0cc1c16f2877b2961e47
e3393d4d4bdf6684bfba47817e60f96c69ec9475
/utils.py
e5e14bd563560eb049fb0d71e1e6075e2ae90dba
[]
no_license
INFO3401/problem-set-three-brru7260
402f9f38e15c8e0ca115c9be338ee48597ae89d8
e80c26e2ee33de14439c664717674a91c686e40a
refs/heads/master
2021-01-09T04:01:48.068480
2020-02-24T04:09:39
2020-02-24T04:09:39
242,239,274
0
0
null
null
null
null
UTF-8
Python
false
false
683
py
# from utils import * # import pandas as pd import pandas as pd def loadAndCleanData(): item = pd.read_csv("creditData.csv") data = item.fillna(0) print(data) loadAndCleanData() # def computerProbability(feature,bin,data): # count = 0.0 # # count the number of datapoints in the bin # for datapoint in da...
[ "noreply@github.com" ]
INFO3401.noreply@github.com
e917e03d7e2392418e4b1f02d89aec290dda311a
9ef2c82ae61064c4f78798f04ab3310e7f5e4629
/tests/test_prepare_data.py
3a97f2cc09d08dbc04605095acef5c508ca0f788
[ "BSD-3-Clause" ]
permissive
chenxofhit/cirrocumulus
b999d49afc024c30e61fbc6905c968f71714291e
18ee1264303138cbba8ff34318f90f0e2619dc13
refs/heads/master
2023-03-17T15:23:02.935136
2021-03-16T20:01:02
2021-03-16T20:01:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,476
py
import fsspec import pandas as pd import scipy from cirrocumulus.embedding_aggregator import get_basis from cirrocumulus.parquet_dataset import ParquetDataset from cirrocumulus.prepare_data import PrepareData def test_prepare(test_data, measures, dimensions, continuous_obs, basis, tmp_path): output_dir = str(tmp...
[ "jgould@broadinstitute.org" ]
jgould@broadinstitute.org
5c903175d4a7365e542f92cbcead2a25f9846e4c
128420970c272be8d3b374dbfc9687ab0824bc2b
/blog/migrations/0002_comment.py
57087759a8a568a2f6018d073aa5fc2e52b43604
[]
no_license
ZsZJ/django-blog
2330a8aeb97d005cea592ab3e8d37b0b47575db8
8862936dbc744e19166b8f7d26ccf725f6d70a60
refs/heads/master
2020-05-14T20:00:07.958381
2019-04-17T23:05:42
2019-04-17T23:05:42
181,938,526
0
0
null
null
null
null
UTF-8
Python
false
false
908
py
# Generated by Django 2.0.13 on 2019-04-17 22:39 from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('blog', '0001_initial'), ] operations = [ migrations.CreateModel( ...
[ "ktj.lim@gmail.com" ]
ktj.lim@gmail.com
f62e8e139b6ce07d635393ef4c7fe94bede87e36
7f747228fd52c835bbbad1d51674f2991b4e0ccb
/Veriflow_Automation/Veriflow_BDD_Framework/features/steps/login.py
81014629a6cf06c7ce848bf1de42651e05d64f42
[]
no_license
adachenski/Python-Automation
fec234f9983cee4dcbd2e8d158a944e555167f22
2a4bb4c2b33b4ce8a9c66b06f251f6c834973c50
refs/heads/master
2020-03-19T07:39:03.879326
2018-06-16T22:04:02
2018-06-16T22:04:02
136,135,805
0
0
null
null
null
null
UTF-8
Python
false
false
691
py
from selenium_logic import login_logic from behave import step, given, when, then loginPage = login_logic.Login() @given(u'Open Chrome Browser') def open_browser(context): loginPage.open_chrome() @when(u'Navigate to Veriflow Login page at "{url}"') def navigate_to_url(context, url): loginPage.go_to_login(ur...
[ "adachenski@aol.com" ]
adachenski@aol.com
4148112130c6689e5dadc5cb5afc4ff302c3485c
e4d9141385ace7f178752469aa3f299cc3ffc6a6
/docs/source/conf.py
52d04fd1d5650935005a8bf7ac4e548a117dc1ed
[ "CC-BY-4.0", "MIT" ]
permissive
AJAlabs/kb
44924806fd2d7059fa89377cd650859fd934166d
9d4f13a53ae08616dae6d5560113b0a27881387b
refs/heads/master
2020-04-18T18:51:24.751102
2019-01-26T22:14:56
2019-01-26T22:14:56
167,696,685
0
0
null
null
null
null
UTF-8
Python
false
false
5,440
py
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
[ "aj@ajalabs.com" ]
aj@ajalabs.com
cdb47a6903ec47437a630d38f1c3ff0a42120182
29061a9fe7701581facbd7eb5066a05c6e3e8878
/fptl_types/__init__.py
db20bc1028a22b8848897fb7bc16f46e01733ea9
[]
no_license
ivan-bocharov/fptl-inferer
4f629da3b4276c2cc20beb4b656a575fcd8887bc
3de88dc2945db6cb3e49eb08bf1c57f1a9a838c4
refs/heads/master
2021-05-26T21:14:40.926757
2013-08-13T20:01:29
2013-08-13T20:01:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
29
py
__author__ = 'ivan-bocharov'
[ "bocharovia@gmail.com" ]
bocharovia@gmail.com
d74da5f980c51f8a87e1f3491b38cb906651ba91
995c52ad5a0a3039ad37a4d2f07b06dcbbcf3961
/tantalus/migrations/0059_auto_20180810_1837.py
f4ba3f19bfd13e80fa47e558107374b522b8b533
[]
no_license
nafabrar/tantalus
d02cce3923205191f00b30e80152a0be7c091d6a
d8552d40472c29bc617b45a1edaf87c6624b824d
refs/heads/master
2022-12-24T15:53:52.034999
2020-10-07T22:26:35
2020-10-07T22:26:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
945
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.14 on 2018-08-10 18:37 from __future__ import unicode_literals from django.db import migrations def populate_sequence_file_info(apps, schema_editor): FileResource = apps.get_model('tantalus', 'FileResource') SequenceFileInfo = apps.get_model('tantalus', 'Seq...
[ "andrew.mcpherson@gmail.com" ]
andrew.mcpherson@gmail.com
5eec040553e54df0d88d4c9465f5455d57ba102b
c215d282844bad35d026d4bb65be37d6a46100d0
/recommender.py
77268f472da0b964fd00a03208dd585aaca85777
[]
no_license
informal-economy/backend
d0823310c5997647bada0de374d6132b8d23e724
8657e831473e03450cc38a242d8aa75951a73ee5
refs/heads/master
2021-05-17T16:22:35.107644
2020-03-29T15:05:29
2020-03-29T15:05:29
250,869,504
0
0
null
2021-03-20T03:14:24
2020-03-28T18:47:47
Python
UTF-8
Python
false
false
8,886
py
import lenskit.datasets as ds import pandas as pd import csv from lenskit.algorithms import Recommender from lenskit.algorithms.user_knn import UserUser #The function input x is the user specific input .csv file that has the columns: #item,title,genres,ratings #which is equivalent to #jobId,jobtitle,jobcategory,rat...
[ "egetenmeyer@Nikolas-MacBook-Pro.local" ]
egetenmeyer@Nikolas-MacBook-Pro.local
7792395a268d08840768655085318b6c7c6e3cac
0a523ea34500d6c4324fc4b8b5fdf602f08a8a01
/РК1/social/mysocial/views.py
3b8f44af6b4f6cda41e8000be9edd8b68eb2942b
[]
no_license
killkamad/ServerSoftDev
9b733c9f11c3a0db876e86dc5bb81dfaa476aab8
91248da20143c95cf4304d36e06ae9e9bb3bcb76
refs/heads/master
2020-04-17T16:26:11.477846
2019-04-15T20:33:18
2019-04-15T20:33:18
166,739,947
3
0
null
null
null
null
UTF-8
Python
false
false
2,199
py
from .models import Post from django.utils import timezone from django.shortcuts import render, get_object_or_404 from .forms import PostForm, UserRegisterForm from django.shortcuts import redirect from django.contrib import messages # Создание постов, изменение, просмотр def com_list(request): posts = Post.obje...
[ "killka_m@mail.ru" ]
killka_m@mail.ru
5424dc7cc6bf622625e5e0f9736e273cc18d0a4a
323c59f60860a2dddbecf4c45974bcc80210ae78
/blog/migrations/0002_post_published_date.py
300367b7885f65d66c47ebdbc57833f143e1e821
[]
no_license
rymlassoued/my-first-blog
5f6157fd422fb09339fe4cb7ac0f23d37d711118
1f6022df5c7961b88f8640d2b6359510cb77a2d8
refs/heads/master
2021-01-19T00:30:02.990413
2017-04-04T17:32:46
2017-04-04T17:32:46
87,175,630
0
0
null
null
null
null
UTF-8
Python
false
false
453
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-04-04 10:27 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0001_initial'), ] operations = [ migrations.AddField( m...
[ "rlaswed@softcatalyst.com" ]
rlaswed@softcatalyst.com
db3b4d13adbd04eba6106f6e0d8559771deadcd5
61699048dc567cd3a814e5b987599dae175bed19
/Python/month01/day15/exercise02.py
ba4af22e18080c30f44bdc184166efdfe0b8e96a
[]
no_license
Courage-GL/FileCode
1d4769556a0fe0b9ed0bd02485bb4b5a89c9830b
2d0caf3a422472604f073325c5c716ddd5945845
refs/heads/main
2022-12-31T17:20:59.245753
2020-10-27T01:42:50
2020-10-27T01:42:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
611
py
""" 练习2:定义函数,根据生日(年月日),计算活了多天. 输入:2010 1 1 输出:从2010年1月1日到现在总共活了3910天 """ import time def life_days(year, month, day): # 当前 - 出生时间 # time_tuple = time.strptime("%d-%d-%d" % (year, month, day), "%Y-%m-%d") time_tuple = (year, month, day, 0, 0, 0, 0, 0, 0) life_second = time.time() - \ ...
[ "1450030827@qq.com" ]
1450030827@qq.com
1b5cd48ff39ee1da8dbaf2f526d75d0746e5c1e6
f1d9df04036fc43c9e5cc7998b83261f4daa94b8
/management_commands/insert_base_data.py
cf87a7c11fd7db6f4e396e72c0e9d41bce402ce1
[]
no_license
Eaterator/web
019eb6547995be30b3468e5c44ecc52f05858fb4
9c598607f76ad770c66d85c47ffcec05f92f4d66
refs/heads/master
2021-01-09T20:30:13.417308
2017-04-25T02:44:35
2017-04-25T02:44:35
81,286,177
2
0
null
null
null
null
UTF-8
Python
false
false
2,324
py
from application.auth.models import Role from application.recipe.models import Source from application.base_models import db def insert_role_data(): roles = [ { 'name': 'regular', 'type_': 'consumer', 'is_admin': False }, { 'name': 'corporate...
[ "currahl@yahoo.ca" ]
currahl@yahoo.ca
acf4d5704a2b5145e70f57bf4bd46fcc5c62fa9d
a40ea9fa24e25e7dd047c20593762ec39749207a
/etc/week3pytyon.py
43e3553d0c6bd756ea586fceb6793d18147089bd
[]
no_license
mjstella/Sparta_MJ
16fbacf7ae08405dad68df3d1fc1d41d2c9d5d5e
0f90c058c601cd35572e48d3c593594356526655
refs/heads/master
2022-10-12T22:33:18.962042
2020-06-08T09:12:39
2020-06-08T09:12:39
265,854,949
0
0
null
null
null
null
UTF-8
Python
false
false
817
py
from pymongo import MongoClient # pymongo를 임포트 하기(패키지 인스톨 먼저 해야겠죠?) client = MongoClient('localhost', 27017) # mongoDB는 27017 포트로 돌아갑니다. db = client.dbsparta # 'dbsparta'라는 이름의 db를 만듭니다. # db.users.insert_one({'name':'bobby','age':21}) # db.users.insert_one({'name':'kay','age':27}) # db...
[ "mjstella918@gmail.com" ]
mjstella918@gmail.com
98c818859f8e9449f37db57cf03d9b8bf6bcab06
c0a090c54ee58f26f9f3973a50ffc9423a620fa4
/bloomberg/sound.py
d85772502ebfd0f3a8f17e0b2ae0665c819bea86
[]
no_license
guts2014/going-65-in-a-60-zone
1b4e41ac9d190e706d267466f892b053e6c42576
9958b754ca796c94a6b2dbe09f03549532e93240
refs/heads/master
2020-04-13T01:05:17.389084
2014-10-12T12:12:06
2014-10-12T12:12:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
854
py
from django.shortcuts import render from django.http import HttpResponse from django.template import RequestContext from sound_mixer import SoundMixer from API import * def sounds_page(request): session = get_new_session() # BP historical_data = getCompaniesHistory(session, ['BP/ LN'], 20120101, 20140101, 'MONTH...
[ "velizar.shulev@gmail.com" ]
velizar.shulev@gmail.com
d834840becfb2b4385634a3d1ae576a2f68a0bac
aa57a888c83252f3e57b5d8f7e61f7c1fe807156
/lfd_hw7/HW7_testing_q8.py
e85c15091ca0dd5d455d06290b3c39eab03cf8f0
[ "MIT" ]
permissive
mosmar99/machine-learning-mooc-caltech
178a88a237078347eba2c76bbd05c2b7b9b6726c
deca978e13f6d6950f06417c4d520e71904962d7
refs/heads/main
2023-07-13T20:36:43.217778
2021-09-04T08:28:07
2021-09-04T08:28:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
299
py
# -*- coding: utf-8 -*- """ Created on: Wed Jul 7 15:30:17 2021 @author: Mahmut Osmanovic """ import matplotlib.pyplot as plt S = 1 P = 6 S_B_P = 0 its = 5 while its: print(S, P) S_B_P += (S > P) S += 1 P -= 1 its -= 1 print("ANS =", S_B_P) plt.plot([-1, 1], [-1,1])
[ "47375043+MahmutOsmanovic@users.noreply.github.com" ]
47375043+MahmutOsmanovic@users.noreply.github.com
3f252f1404c6461dd77efe3c577a6021a96fd1fc
57f4110f8252496142f043dce929c15df43f0e99
/niwo/spiders/niwobbs.py
36c18ff00dcd5fd500d26781a373ec5f38b113da
[]
no_license
lanluyu/niwo_bbs
0c69a6fcfcf1bcf52096124721ed051a9b677b59
bfb28d8050a6a1a74b2c199dbbbeee2baf4d40f2
refs/heads/master
2020-03-21T18:44:37.519262
2018-06-28T05:21:44
2018-06-28T05:21:44
138,910,125
0
0
null
null
null
null
UTF-8
Python
false
false
1,512
py
# -*- coding: utf-8 -*- from scrapy import Spider,Request from niwo.items import NiwoItem class NiwobbsSpider(Spider): name = 'niwobbs' allowed_domains = ['http://bbs.niiwoo.com'] def start_requests(self): for i in range(3,449): basic_url = 'http://bbs.niiwoo.com/forum.php?gid=1&page=...
[ "noreply@github.com" ]
lanluyu.noreply@github.com
0695682f12128d61213cc646b2a539b7cd47827c
3f65ba0f9c3217acd418648a04f9dffdb4c35d2d
/AutoSubmission.py
5969b364cce4baf6a4f8b0a87322130e8db505f0
[]
no_license
jorqueraian/AutomaticCanvasUpload
a348e79e0a0c0d8fb3c7c329eef10745507ab498
e3f05a8fdf28eceacd99f4932c5e0eefb506858d
refs/heads/master
2020-09-27T17:11:05.822355
2019-12-09T20:50:03
2019-12-09T20:50:03
226,566,809
1
0
null
null
null
null
UTF-8
Python
false
false
3,117
py
# Import the Canvas class from Student import Student from StringSimilarity import cost_of_alignment import os import sys import re USER_PATH = 'C:\\Users\\jorqu\\' def clean_str(input_str): # Remove .pdf or what ever # Make lowercase and remove whitespace # remove _ or - return str(input_str).split(...
[ "jorqueraian@gmail.com" ]
jorqueraian@gmail.com
0fca165af2a23670c0fdd4db934637cc1abf3c10
77531ad16a3ddf7aa92b7b4de809cce2a96c88a5
/sitetables/toolbox/sources.py
53a8ff4e69c31bffc800f47c48937200b5f4ad69
[]
no_license
idlesign/django-sitetables
6d3ed6b534e51c67704528d6fa1be0bc6f9f64f4
008b748919ee330da168d4766cd6b3c3c27e45b8
refs/heads/master
2022-02-17T21:25:26.430653
2022-02-04T12:46:19
2022-02-04T12:46:19
164,444,235
4
0
null
null
null
null
UTF-8
Python
false
false
9,028
py
import re from collections import namedtuple from itertools import chain from typing import Optional, List, Union, Dict, Type, Tuple from django.db.models import QuerySet, Model from django.http import HttpRequest, JsonResponse from django.urls import reverse from .columns import TableColumn if False: # pragma: noc...
[ "idlesign@yandex.ru" ]
idlesign@yandex.ru
10c75430230872f750e9ed2c0a241436c9120a7f
b509ef07d752e987f4cb84d1abd4c3a98488a6c7
/resources/lib/streamlink/plugins/nownews.py
02bd76def1234a8b05929f26bb670853a147f7ba
[ "BSD-2-Clause" ]
permissive
Twilight0/script.module.streamlink.base
d91245d1a43d6b3191b62a6eb4b1cf70598ed23e
c1e4628715a81806586b10323b8cb01424bbb6fc
refs/heads/master
2021-01-21T04:32:41.658823
2020-09-07T20:56:29
2020-09-07T20:56:29
101,915,967
6
4
BSD-2-Clause
2018-01-14T15:20:47
2017-08-30T18:31:47
Python
UTF-8
Python
false
false
2,149
py
import logging import re import json from streamlink.plugin import Plugin from streamlink.stream import HLSStream log = logging.getLogger(__name__) class NowNews(Plugin): _url_re = re.compile(r"https?://news.now.com/home/live") epg_re = re.compile(r'''epg.getEPG\("(\d+)"\);''') api_url = "https://hkt-mo...
[ "twilight@freemail.gr" ]
twilight@freemail.gr
ab0d95439f8363b720d81aa80ae3aa74a0432e28
104005986bccea0a4213cbd55d833c95baf2f4fa
/drivers/phot_drivers/LCOGT_template_single_request.py
c6603728c1e635419c96b9c4a2e6edda588ecfe7
[]
no_license
lgbouma/cdips_followup
8a92ec9a31b405d316c668a6d42ce10ad47f0501
99ac6c6c709f96a58083a5ff7c4cf2d4f0b554a8
refs/heads/master
2023-08-14T02:33:17.841926
2023-08-01T00:46:19
2023-08-01T00:46:19
206,371,538
0
0
null
null
null
null
UTF-8
Python
false
false
6,229
py
""" Given a source_id, make LCOGT photometry followup requests, and optionally submit them to the LCOGT API. """ import numpy as np from astropy.time import Time from cdips_followup.manage_ephemerides import ( query_ephemeris, get_ephemeris_uncertainty ) from cdips_followup.LCOGT_dedicated_requests import ( get...
[ "bouma.luke@gmail.com" ]
bouma.luke@gmail.com
64d618b9411d6abdd7dd197355558092f58401ff
c0b34870921e11882dfacc5cc67e347c3160ed1a
/train.py
aa9223224e8334d31cedd2412d290c9c3365a3e5
[]
no_license
chris-thomas/idn-superresolution-tf2
ad2f59c6da43e670a4255335d0edfc86a0dce6b1
0b97c859daa80797958f0ea68a6ef385c4fa4335
refs/heads/main
2023-04-01T15:14:43.809934
2021-04-08T14:47:04
2021-04-08T14:47:04
332,895,607
2
0
null
null
null
null
UTF-8
Python
false
false
4,413
py
import os os.environ["CUDA_VISIBLE_DEVICES"] = '0' from numba import cuda device = cuda.get_current_device() device.reset() import time import tensorflow as tf from model import evaluate, evaluate_ssim from tensorflow.keras.applications.vgg19 import preprocess_input from tensorflow.keras.losses import BinaryCrosse...
[ "cdt@christhomas.co.uk" ]
cdt@christhomas.co.uk
aedcc1298924c6a2be19fcb6dd5c47bb3680c3c3
394c88bbe556c98ace0301eea9e41410040cfb63
/double_dqn/model.py
143d562371876c6f8fe4ecc4a9a52cc5ddf4d286
[ "MIT" ]
permissive
1980744819/playing-mario-with-DQN
8b3dda28e107ff27b3c307cf979179729d352f9f
f263e3615bf4439ad17d95a9f449c6145792402b
refs/heads/master
2020-04-29T14:52:44.215593
2019-05-21T13:08:00
2019-05-21T13:08:00
176,210,471
4
1
null
null
null
null
UTF-8
Python
false
false
1,252
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @File : model.py # @Author: zixiao # @Date : 2019-04-02 # @Desc : from torch import nn import torch.nn.functional as F import torch class CNN(nn.Module): def __init__(self, in_channels, num_action): super(CNN, self).__init__() self.conv1 = nn.Sequ...
[ "1980744819@qq.com" ]
1980744819@qq.com
a5a17178600de20cbfc8a242569037482fae9caf
fccb5a43179906ddc3dd37849ac2a89cacf44981
/sphinx/source/exercises/solution/03_os_sub_req/ex5.py
653a604a993839e3b042cfc9ccaf6cd8eba8ff1f
[]
no_license
YasmineOweda/spring2021
a48c1c4eaa525053a0e2188cf088124b004a35d8
072aadba20bfbc659427265fa228518fe4b09ff3
refs/heads/master
2023-04-29T10:20:14.132211
2021-05-11T09:07:40
2021-05-11T09:07:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
435
py
import os #1 os.mkdir('os_exercises.') #2 os.chdir('os_exercises') open('exercise.py', 'w') #3 x = input('Please write something to the file: ') with open('exercise.py', 'w') as f: f.write(x) #4 x = input('Please write something More to anoter file: ') with open('exercise2.py', 'w') as f: f.write(x) #5 wit...
[ "clbo@kea.dk" ]
clbo@kea.dk
3d59d39806860870c249b7daa8a0f68c3b343f39
15c70a52bb2a4b5b3bdd4a62d97bbe27e3989a24
/src_old/manual_colony_picking.py
5fb61b2e322da571f18b6cbdaeddc1d0a3c7526e
[ "MIT" ]
permissive
nadimest/opentrons-colony-picker
91cbcc7a80fe9cefa0c8f45bab7ac51a715b87e6
8097f12cab91398377463a3a76367b73fa0a2318
refs/heads/master
2021-01-01T13:29:13.253905
2020-07-29T14:27:49
2020-07-29T14:27:49
239,299,577
0
0
null
null
null
null
UTF-8
Python
false
false
980
py
#!/usr/bin/env python3 import subprocess from lib.coordinatesManagement import CoordinatesManager from lib.imageHandling import ImageHandler coordinates=CoordinatesManager(calibration_filename="calib/calibration.json") def main(): # takeImage=subprocess.run("./server_scripts/moveAndTakePicture.sh") fetchIm...
[ "nadim@enginzyme.com" ]
nadim@enginzyme.com
a76bbe862fc2f943b5866b00388228264612f33d
6d4af63e07a137d382ef61afe8276f7470b7af59
/wsgistate/__init__.py
742cd2a8b2a8e916a3427188ed7f1c260ff1b2b1
[]
no_license
Cromlech/wsgistate
142c7016c74fc28e6c56368f018bf113c379118c
d730ee47a4a43efbd20bcb9623e76bedeeb8c62b
refs/heads/master
2023-04-11T14:10:20.522520
2023-04-11T10:06:10
2023-04-11T10:06:10
15,806,829
0
0
null
null
null
null
UTF-8
Python
false
false
4,085
py
# Copyright (c) 2005 Allan Saddi <allan@saddi.com> # Copyright (c) 2005, the Lawrence Journal-World # Copyright (c) 2006 L. C. Rees # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistr...
[ "trollfot@gmail.com" ]
trollfot@gmail.com
1abcb520636d6bdcf87fda919e2807ba2c94bbaf
f9b14f7c366dc16c5dfc24a2478332a8ad14aea3
/tests/test_user_func.py
e62c3a3eaf07a429e7b28b1e28386eecde4fd4e0
[ "MIT" ]
permissive
aleobb/dataframe_expressions
fbd2a95de883c87fb4e93195ce719e7ead967231
cf135415f739377e9c2accb82606957417c7e0e6
refs/heads/master
2022-12-29T15:25:54.771541
2020-10-21T01:27:15
2020-10-21T01:27:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,331
py
import ast import inspect import pytest from dataframe_expressions import ( DataFrame, ast_FunctionPlaceholder, ast_DataFrame, render, user_func) def test_DF_user_func(): @user_func def func1(x: float) -> float: assert False d = DataFrame() d1 = func1(d) assert isinstance(d1, DataF...
[ "gwatts@uw.edu" ]
gwatts@uw.edu
ebce17fb0dd02ef5af320607dbcfad78bb6aec8c
dcd0fb6bdcb488dd2046778eb02edce8f4623b58
/object_follow_edgetpu/detect_standalone.py
7e196dbb4d1727616b1a5ec9f56384351df24223
[]
no_license
openbsod/Adeept_AWR
12f2df24bfcf85d7965a425bb0078b2c858e807a
92ca5e7147a9cb44ad55f55a467371648dc76b3c
refs/heads/master
2023-04-09T07:06:35.772918
2021-04-15T21:20:40
2021-04-15T21:20:40
284,012,618
1
0
null
2020-07-31T10:46:50
2020-07-31T10:46:49
null
UTF-8
Python
false
false
4,801
py
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
[ "you@example.com" ]
you@example.com
f153b13f654cbb1a501907cba37eddc072dc7fb0
edb69ef057593343c86bfc08024422cd8292207f
/users/views.py
cb18f70307655a0b4d01550adccdde99c04a2aec
[]
no_license
MVNDAY/LearningLog
27005b3a411bdabaa56c23258d893e06f09caa0d
1d4436fdea5610b0e63cdb55ebbd2d112115d74a
refs/heads/master
2023-04-13T10:22:05.160792
2021-04-26T17:46:26
2021-04-26T17:46:26
361,832,448
0
0
null
null
null
null
UTF-8
Python
false
false
817
py
from django.shortcuts import render from django.http import HttpResponseRedirect from django.urls import reverse from django.contrib.auth import login, logout, authenticate from django.contrib.auth.forms import UserCreationForm # Create your views here. def logout_view(request): logout(request) return HttpResponseRed...
[ "83238300+MVNDAY@users.noreply.github.com" ]
83238300+MVNDAY@users.noreply.github.com
12d5ee953deb6d64391cd697be86d87d92cfae26
aef8fe58f3c272e87dd166e3b9eb3ee4bc7e2d21
/To_do/toDoList/myList/forms.py
c81e8cef0fec422c82a8c7dad0648d564e02ef20
[]
no_license
Olga20011/Django-ToDoList
6c43bf83c4f79e38f63a5854d4f6653bf71c6e10
758797763135d5e6567ecdc83a30244934778682
refs/heads/master
2023-08-13T23:13:33.931349
2021-09-16T14:21:41
2021-09-16T14:21:41
392,290,709
0
0
null
null
null
null
UTF-8
Python
false
false
310
py
from django import forms from django.db.models import fields from django.forms import ModelForm from .models import * class TaskForm(forms.ModelForm): # title=forms.CharField(widget=forms.TextInput(attrs={'placeholder':'Add new task...'})) class Meta: model=MyTask fields ="__all__"
[ "olgaestherakello@gmail.com" ]
olgaestherakello@gmail.com
124368ed9467c6666327662c5ff9d8beeeb3a9f4
cb82e798d1ea875e87d973d87602baa07166fb7b
/net/ssl/tls_ecdhe_rsa_with_aes_128_gcm_sha256/prf-frame139.py
618a7f98604c83ebcb46dd238066e8646a60e1c1
[]
no_license
rowanpang/noteGit
e9470be20bfdb04ac6b80c93f0f1cd3fd97ef565
120ca5329addf3a780b2299a0ab74de997b77785
refs/heads/master
2023-05-31T05:04:58.731953
2023-05-31T02:34:14
2023-05-31T02:34:14
52,506,290
1
0
null
2021-06-04T01:08:05
2016-02-25T07:41:49
C
UTF-8
Python
false
false
7,989
py
#!/usr/bin/python3 # -*- coding: utf-8 -*- import hashlib import hmac import unittest import os import binascii import sys from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives.ciphers import ( Cipher, algorithms, modes ) def encrypt(key, plaintext, associated_data,iv): ...
[ "pangweizhen.2008@hotmail.com" ]
pangweizhen.2008@hotmail.com
32b6e1ea78845b7ff7ac88c40a72e2096200219f
eaaa1bbceb9a867e08769aae07c37c5e1107e430
/mitx_6.00.2x_ict_ds/week3/lstNone.py
fc381eea3af3ec7be312d603b0b86e04fe2eeb3d
[]
no_license
nwinds/jugar
c8f9ce11dd95c6e0dda22e22a69dd598b34d9d3c
db4d362d9d1dd04f2c6c013d4462de0c892b8314
refs/heads/master
2020-12-24T16:35:03.951580
2016-03-10T09:25:06
2016-03-10T09:25:06
41,397,534
0
0
null
null
null
null
UTF-8
Python
false
false
178
py
lst1 = [1,2,3] lst2 = [] lst3 = lst1+lst2 print('lst1'), print(lst1) print('lst2'), if len(lst2) > 0: print(lst2) else: print('len(lst2) == 0') print('lst3'), print(lst3)
[ "namingwinds@gmail.com" ]
namingwinds@gmail.com
a658a0212b71fb6327314f0662b6143017559bc1
df2cbe914f463ad050d7ed26194424afbe3a0a52
/addons/snailmail/models/mail_notification.py
a368c0a778338b68f037181c93c3d78bffc3f691
[ "Apache-2.0" ]
permissive
SHIVJITH/Odoo_Machine_Test
019ed339e995be980606a2d87a63312ddc18e706
310497a9872db7844b521e6dab5f7a9f61d365a4
refs/heads/main
2023-07-16T16:23:14.300656
2021-08-29T11:48:36
2021-08-29T11:48:36
401,010,175
0
0
Apache-2.0
2021-08-29T10:13:58
2021-08-29T10:13:58
null
UTF-8
Python
false
false
719
py
# -*- coding: utf-8 -*- from odoo import fields, models class Notification(models.Model): _inherit = 'mail.notification' notification_type = fields.Selection(selection_add=[('snail', 'Snailmail')], ondelete={'snail': 'cascade'}) letter_id = fields.Many2one('snailmail.letter', string="Snailmail Letter", ...
[ "36736117+SHIVJITH@users.noreply.github.com" ]
36736117+SHIVJITH@users.noreply.github.com
f837708b75c33e3c2f20e04b15c464ef277c72b6
6c919bb579dd639d53f097d4b8b1b6f2bb830efb
/testfiles/interface_test.py
67d10a6aac8edb7aa6be430cf991c4d6067d7f37
[]
no_license
aj132608/SpicyGlass
b258f0282e713d555489c4ab106c9008f6965f31
8b1d4f5ccf6f8ed4c0b9a65f042af505ab852c31
refs/heads/master
2021-01-14T01:45:18.047779
2020-03-09T18:48:46
2020-03-09T18:48:46
242,560,382
0
0
null
2020-03-07T00:43:38
2020-02-23T17:29:42
Python
UTF-8
Python
false
false
1,149
py
from firebaseinterface.firebase_interface import FirebaseInterface import json if __name__ == "__main__": with open('creds.json') as file: creds_dict = json.load(file) interface_obj = FirebaseInterface(creds_dict=creds_dict) # Fetch the current database held locally as a dictionary current_d...
[ "32584157+aj132608@users.noreply.github.com" ]
32584157+aj132608@users.noreply.github.com
cecf868f2be1629e1555d5d8b1f75d9ff586a4ce
0f33457b2fead035730e86176092fe5abe532f51
/XOR EQUALITY Code Shef/xor_bitwise.py
4bcffdcbf523f72a4bd1af3310e94be558160e7e
[]
no_license
tb123-coder/May-Long-Challenge-Codechef-
dbb0cd30e0862cebeef6b79de9a20e7f5cb98e0a
bf710b287bd12638d0dc7308367259b57af9f7ef
refs/heads/master
2023-04-28T05:28:19.517262
2021-05-13T12:32:18
2021-05-13T12:32:18
367,038,309
0
0
null
null
null
null
UTF-8
Python
false
false
428
py
def power(x, y, p): res = 1 x = x % p if (x == 0): return 0 while (y > 0): # If y is odd, multiply # x with result #if((y%2==1) if((y & 1)==1): res=(res*x)%p #y=y/2 y=y>>1 #y must be even x=(x*x)%p return res T =...
[ "batra.tushar12dec1999@gmail.com" ]
batra.tushar12dec1999@gmail.com
3f0caf57cc2e796c4b731bb6d978430bedfcd7f9
0a473b06d45b4697b124859c21f11ca833da70b4
/chemprop_fda/features/morgan_fingerprint.py
908906f82f12c072955083133788ac0841179257
[ "MIT" ]
permissive
AayushGrover/ViscaNet
e0085f3549a35447d0ef497fb9ee25fe8a625b73
41786e10b84f2264b638567bdce1c189c1b66b00
refs/heads/main
2023-08-28T21:45:14.598705
2021-10-31T21:53:42
2021-10-31T21:53:42
286,003,354
1
0
null
null
null
null
UTF-8
Python
false
false
981
py
import numpy as np from rdkit import Chem, DataStructs from rdkit.Chem import AllChem def morgan_fingerprint(smiles: str, radius: int = 2, num_bits: int = 2048, use_counts: bool = False) -> np.ndarray: """ Generates a morgan fingerprint for a smiles string. :param smiles: A smiles string for a molecule. ...
[ "AAYUSH@staff-net-etx-1580.intern.ethz.ch" ]
AAYUSH@staff-net-etx-1580.intern.ethz.ch
c27f4477eaa529faa393007fcdb5b9fda759771e
b5865b795c4e743cca80a6e0ea480ecc0d0a35fd
/My_Second_Project/Login_app/admin.py
fc666635eae6f732ecd40552bd516ac51555026b
[]
no_license
kazi-akib-abdullah/django-deployment
384ee355efacf58a66c66b4d768b86750c70d98e
c2ef330018b71fbb42c3ee9a5a0fba78d1d33473
refs/heads/master
2023-02-26T03:01:39.140332
2021-01-30T16:42:06
2021-01-30T16:42:06
334,459,092
0
0
null
null
null
null
UTF-8
Python
false
false
178
py
from My_Second_Project.settings import USE_I18N from django.contrib import admin from Login_app.models import UserInfo # Register your models here. admin.site.register(UserInfo)
[ "45953236+kazi-akib-abdullah@users.noreply.github.com" ]
45953236+kazi-akib-abdullah@users.noreply.github.com
65ea64bcdab906276d4068b3999cba770c961f77
14f078c2f88ac656b56ee8a9a39eaf0135de4704
/VideoxD/__main__.py
c4fa566bb02076067104650f3c8fd3e7a30230d2
[ "MIT" ]
permissive
Saksham07529/VideoChatStreamBot
dd39a7d1e16f21995893184a9e394659054073b2
72dd8f24d38494a683606118f34154177a643fb7
refs/heads/main
2023-08-17T17:05:56.326866
2021-09-14T06:02:06
2021-09-14T06:02:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
850
py
import asyncio from misc import Calls, app, bot from pyrogram import idle async def init(): await app.start() print("𝙐𝙨𝙚𝙧 𝙖𝙘𝙘𝙤𝙪𝙣𝙩 𝙄𝙣𝙞𝙩𝙞𝙖𝙡𝙞𝙯𝙚𝙙.") await bot.start() print("𝘽𝙤𝙩 𝙄𝙣𝙞𝙩𝙞𝙖𝙡𝙞𝙯𝙚𝙙.") print( "𝙔𝙤𝙪 𝙈𝙞𝙜𝙝𝙩 𝙨𝙚𝙚 𝙉𝙤 𝙋𝙡𝙪𝙜𝙞𝙣𝙨 𝙇𝙤𝙖𝙙𝙚�...
[ "noreply@github.com" ]
Saksham07529.noreply@github.com
de8b449316abbe86696e3641635d94af6d290c5d
8acffb8c4ddca5bfef910e58d3faa0e4de83fce8
/ml-flask/Lib/site-packages/caffe2/python/operator_test/stats_put_ops_test.py
2ce56248c5dd0116931f91de9b4b556dd881e73b
[ "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:86a74bb87f96bd8ebf2fa9ae72729c5cbe121a32edc1fb034496e084703631b3 size 6596
[ "yamprakash130@gmail.com" ]
yamprakash130@gmail.com
74b32b4c2a6853ebc774d3f547b249081b9289cd
4ee9de394b2650d7cca19b2848100e8db9edc596
/solution-python/001_two_sum.py
0fab498f08572f102087ec4c7aa040b784330840
[]
no_license
gongfuPanada/notes-leetcode
b99d5fd18a14558c1cbeb1538fd8bddbfdeb3fdd
0bc611efcee8286c07fd5af1257a27a2575363b0
refs/heads/master
2020-12-29T00:59:00.512133
2016-04-24T12:54:22
2016-04-24T12:54:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
444
py
""" 001. Two Sum @name: li jin @date: Feb 19, 2016 @link: https://leetcode.com/problems/two-sum/ @time: 56 ms """ class Solution(object): def twoSum(self, nums, target): """ :type nums: List[int] :type target: int :rtype: List[int] """ d = {} ...
[ "lijinwithyou@gmail.com" ]
lijinwithyou@gmail.com
e509256c393ec76ad4d8aa28753b3613e2457c80
84fcfed46e03d4936f1a5d82624fd43a4f415d72
/Client.py
719ea7f6319f406dac03306172f4f54dc2038d55
[]
no_license
Shruti-Pattajoshi/Computer-Networks-Socket-Programming-
9a60fa750adf7bee98d64cbe95de22a67e93ccb6
8daf2051fb412e555952cdde0dd0e3554c2231be
refs/heads/master
2022-06-20T04:06:32.277348
2020-05-14T07:03:52
2020-05-14T07:03:52
263,840,098
0
0
null
null
null
null
UTF-8
Python
false
false
258
py
# client.py import socket sp = socket.socket(socket.AF_INET, socket.SOCK_STREAM) host = socket.gethostname() port = 13 sp.connect((host, port)) msg = sp.recv(1024) sp.close() print("The time recieved from the server is: %s" % msg.decode('ascii'))
[ "noreply@github.com" ]
Shruti-Pattajoshi.noreply@github.com
3c86e7fd1292b6f7b57fbcee485151b7beb95814
7310067f47b4626d7afe71ccac591febe3441b1f
/knn.py
5803d62dd80406b76d0ed7834ee6004fd47ba612
[]
no_license
anisrini/KNN
1b0f13e5cacae6834dead55d84b2000590d69814
596f2ba78b66b4e902f11c512d760ace65422775
refs/heads/master
2016-08-12T04:38:55.625423
2016-04-01T09:08:13
2016-04-01T09:08:13
55,217,302
0
0
null
null
null
null
UTF-8
Python
false
false
2,444
py
import pandas as pd import helpers import cdist from sklearn.metrics import accuracy_score from sklearn.metrics import confusion_matrix from sklearn.cross_validation import StratifiedKFold from sklearn.cross_validation import LeaveOneOut from sklearn.discriminant_analysis import LinearDiscriminantAnalysis as LDA def ...
[ "anisrini93@gmail.com" ]
anisrini93@gmail.com
394ff5431df2a4e88c516043b26846577d06ec92
91e389e4fc6a91874f4d4665bc0986e00f66074c
/downloadXkcd.py
b7a47af06c98d6e79909227078a06e4a10a26b7d
[]
no_license
Sajmon25/Automate-the-Boring-Stuff-with-Python
5cb36496d5a64988f50656b2f6d3172ab05c9c5b
8fb51eb0e9e558f939d5a7a4038257d7c02a9165
refs/heads/master
2020-04-20T12:18:54.236263
2019-05-09T21:31:33
2019-05-09T21:31:33
168,838,932
0
0
null
null
null
null
UTF-8
Python
false
false
1,355
py
#! python3 # downloadXkcd.py - Download every single XKCD comic. import requests import os import bs4 url = 'http://xkcd.com' os.makedirs('xkcd', exist_ok=True) while not url.endswitch('#'): # TODO: Download the page print('Download page %s...' % url) res = requests.get(url) res.raise_for_status() ...
[ "szymon.grzedi@gmail.com" ]
szymon.grzedi@gmail.com
17bc87c11112d5f9e4a92ca75a101c66480bc5b1
34284fd6cd6c97bad8d1fa422e9279600d1218a7
/labs/lab6.py
14d6e6bfc0fe5bfe06087b9ea12d415c2f280f08
[]
no_license
Yui-Ezic/Numerical-Methods
1c2ac92fdf9bb75924e9ac14bac7c5033e634436
da2ba5a3f2a17a947d1240a2a3154b70d9d8c916
refs/heads/master
2020-04-14T13:40:06.138283
2019-01-02T18:27:14
2019-01-02T18:27:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,400
py
import numpy as np import math import matplotlib.pyplot as plt def my_function(x): return x * x + math.sin(x) # Границы функции a1 = 1 b1 = 3 # Шаг H = (b1 - a1) / 10 # Количество точек m = 11 arrSize = m # Таблица значений функций Xt = np.zeros(arrSize) Yt = np.zeros(arrSize) # Создание таблицы for i in ra...
[ "mishan221199@gmail.com" ]
mishan221199@gmail.com
b97c469f8a12dbf8a8265a2bb6073036cda1fc81
25fd32f0c46b5883a820fd62aeceff6e1f38af1a
/02_python_excercise/swampy/World.py
ed16b2e8ebaf4295cde888b8cb65aa2753356e28
[]
no_license
snowcool1/python_starter_basic
fb6572b1c3f378813a99ac23c3ef130143c9f340
73b7919f4c20f3de953d8ea50dd7a8a883b04657
refs/heads/master
2023-03-23T13:40:18.881335
2020-12-12T00:46:59
2020-12-12T00:46:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,936
py
#!/usr/bin/python """ This module is part of Swampy, a suite of programs available from allendowney.com/swampy. Copyright 2005 Allen B. Downey Distributed under the GNU General Public License at gnu.org/licenses/gpl.html. """ import math import random import time import threading import sys import tkinter from swa...
[ "doan.nguyen@datalogic.com" ]
doan.nguyen@datalogic.com
a35e6a756f615aca80c4b91a8b264a5aa0cd6d0e
9cd00edd008ce38ea3127f090b6867a91fe7193d
/src/plot_Qle_at_all_events_above_Tthreh.py
382993ac07bd63823ff8cd12124f714a8056199b
[]
no_license
shaoxiuma/heatwave_coupling
c5a2a2bba53351597f4cb60ecb446bfb9629812f
459f6bc72402b5dd3edf49bc3b9be380b5f54705
refs/heads/master
2021-09-13T06:50:48.733659
2018-04-26T06:09:54
2018-04-26T06:09:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,338
py
#!/usr/bin/env python """ For each of the OzFlux/FLUXNET2015 sites, plot the TXx and T-4 days Qle and bowen ratio That's all folks. """ __author__ = "Martin De Kauwe" __version__ = "1.0 (20.04.2018)" __email__ = "mdekauwe@gmail.com" import os import sys import glob import netCDF4 as nc import numpy as np import xar...
[ "mdekauwe@gmail.com" ]
mdekauwe@gmail.com
8710f437a1fb5651739771f1ae3cb10e87729160
1385d5c2bff76949f139951d5422ee4c9df13129
/135_webRead.py
c7a5360cbb079c5e77989ac3f6859a9d3cf602b9
[]
no_license
luongs/pyPractice
b28a11b6b8909ac7b873184fd9be4c292c8559b5
775b8e608c7bfb4f43bdc91f1f6f20d82c9f43fc
refs/heads/master
2021-05-26T13:24:48.500697
2013-04-09T02:21:28
2013-04-09T02:21:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
236
py
# Reads txt from the web and displays result in python # Author: Sebastien Luong import urllib2 #library handles url stuff f=urllib2.urlopen("http://cs.leanderisd.org/mitchellis.txt") print f.readline(), print f.readline(), f.close()
[ "sebastienluong@gmail.com" ]
sebastienluong@gmail.com
d830aecde642375024c94874c404b42184b66447
3f382f9edd21be130dafe26e79ee1081b9626673
/movieClasses/Inheritance.py
3b6b6971025ac1a642042079dca57f25c35739ed
[]
no_license
ceewick/introClasses
090d41a5ba9e151ca136ee8d23f9fbc4d9a5f7d7
3acc7bac15bc3bcaebfa39b438e8033ec900d5ec
refs/heads/master
2020-03-15T15:36:33.511733
2018-05-06T19:51:36
2018-05-06T19:51:36
132,216,033
0
0
null
null
null
null
UTF-8
Python
false
false
678
py
class Parent(): def __init__(self, last_name, eye_color): print('Parent Constructor Called') self.last_name = last_name self.eye_color = eye_color class Child(Parent): def __init__(self,last_name, eye_color, number_of_toys): print('Child Constructor Called') Par...
[ "noreply@github.com" ]
ceewick.noreply@github.com
fbcd98a2b32c59fa1729e7b1bce3bb8639dc8ab9
51412575c66152170bfcbf91ee09954d162a4643
/arg.py
ca5cd4c062f6dfff6dbedd4034ba3e1274de78d0
[]
no_license
tladydrl/ch1.2
918f064efab84c771f17ea17503ac897d16f83ba
1acbc0d9c8195cb9bee7b3d40feff940ef764431
refs/heads/master
2020-05-20T13:03:30.806733
2019-05-09T12:55:01
2019-05-09T12:55:01
185,587,401
0
0
null
null
null
null
UTF-8
Python
false
false
202
py
import sys #print(sys.argv) # 뭐가들어오는지 실행 # 파이썬파일? args = sys.argv[1:] # 첫번째부터,, 0번째는 자기 파일이름. print(args) # args는 내가 만든 변수이다.
[ "tladydrl12@naver.com" ]
tladydrl12@naver.com
d8e42f2ce2432b336adb63018b3a51e93aacef6d
1c0542cef2ac6a5fb691602887236bf70f9bf71f
/speed_test_sar/sfsi_speed/mmcls/models/backbones/utils/gumbel_sigmoid.py
6610270f02c80a91e8e61cd013f8b7dff68c6ba3
[ "Apache-2.0" ]
permissive
yizenghan/sarNet
683f45620013f906cb8a550713e786787074a8ae
d47a6e243677811b259a753233fbbaf86d2c9c97
refs/heads/master
2023-07-16T02:09:11.913765
2021-08-30T02:04:02
2021-08-30T02:04:02
299,276,627
11
1
null
null
null
null
UTF-8
Python
false
false
1,723
py
import torch from torch import nn class GumbelSigmoid(nn.Module): def __init__(self, max_T, decay_alpha, decay_method='exp', start_iter=0): super(GumbelSigmoid, self).__init__() self.max_T = max_T self.cur_T = max_T self.step = 0 self.decay_alpha = decay_alpha self...
[ "yizeng38@gmail.com" ]
yizeng38@gmail.com
298bdb7986c7ce282903098e71efc3e61ebde167
4b0c57dddf8bd98c021e0967b5d94563d15372e1
/run_MatrixElement/test/emptyPSets/emptyPSet_qqH125_cfg.py
1925d9eb5134f84222300788d85f42237860a66f
[]
no_license
aperloff/TAMUWW
fea6ed0066f3f2cef4d44c525ee843c6234460ba
c18e4b7822076bf74ee919509a6bd1f3cf780e11
refs/heads/master
2021-01-21T14:12:34.813887
2018-07-23T04:59:40
2018-07-23T04:59:40
10,922,954
0
1
null
null
null
null
UTF-8
Python
false
false
896
py
import FWCore.ParameterSet.Config as cms import os #! #! PROCESS #! process = cms.Process("MatrixElementProcess") #! #! SERVICES #! #process.load('Configuration.StandardSequences.Services_cff') process.load('FWCore.MessageLogger.MessageLogger_cfi') process.MessageLogger.cerr.FwkReport.reportEvery = 5000 process.load...
[ "aperloff@physics.tamu.edu" ]
aperloff@physics.tamu.edu
afbde151e2e1473b1d6aa573579299dc0eb3ce8d
18c03a43ce50ee0129f9f45ada1bdaa2ff4f5774
/epistasis/__init__.py
4f9536d756aca5c653b3e69bbff59937aa2ff678
[ "Unlicense" ]
permissive
harmsm/epistasis
acf7b5678b328527b2c0063f81d512fcbcd78ce1
f098700c15dbd93977d797a1a1708b4cfb6037b3
refs/heads/master
2022-04-30T13:09:49.106984
2022-03-19T05:29:37
2022-03-19T05:29:37
150,969,948
0
2
null
null
null
null
UTF-8
Python
false
false
1,105
py
"""\ A Python API for modeling statistical, high-order epistasis in genotype-phenotype maps. This library provides methods for: 1. Decomposing genotype-phenotype maps into high-order epistatic interactions 2. Finding nonlinear scales in the genotype-phenotype map 3. Calculating the contributions of differe...
[ "zachsailer@gmail.com" ]
zachsailer@gmail.com
69aee45e204f7d1a92722373c63d4388faf5d6c9
d3542f9f10ecc1c8c2eefe954a386dbbb584cf3b
/pykl/kit/models.py
b87fd808ea27f116e2c5feb7e8de0737d3b99f86
[ "MIT" ]
permissive
wowngasb/pykl
7322fa36c0529526273486ea7ffc52108b78cd6f
872f97dfaab92cce309078940d1273cf26daed37
refs/heads/master
2023-06-01T08:19:55.962876
2023-05-19T07:36:52
2023-05-19T07:36:52
101,482,272
0
0
MIT
2023-01-11T23:45:19
2017-08-26T11:43:49
Python
UTF-8
Python
false
false
14,637
py
# coding: utf-8 import random import time import hashlib from inspect import isclass from git import Repo as GitRepo from sqlalchemy.inspection import inspect as sqlalchemyinspect from sqlalchemy.ext.declarative import declarative_base from pykl.tiny.grapheneinfo import ( _is_graphql, _is_graphql_cls, _i...
[ "wuyou7410@gmail.com" ]
wuyou7410@gmail.com
90f553a76ab38014ddd6d73cdf2088433003db3d
ade74e6b497703ef01fe267b665261e90e335a18
/studyvisapp/views.py
c5ca19a415afad73451833bc2c565ededea24865
[]
no_license
TMdiesel/study-vis-app
0492ff8bdda5f1c2596cca0ac3642b6c81691f9a
a0440a8ffd21d5848faf8eeabfed4c7be38be90f
refs/heads/main
2023-07-08T04:32:48.564623
2021-08-15T12:08:53
2021-08-15T12:08:53
395,558,322
0
0
null
null
null
null
UTF-8
Python
false
false
7,290
py
import datetime from datetime import timedelta from django.shortcuts import render, redirect from django.views import View from django.views.generic import ( ListView, CreateView, DeleteView, UpdateView, TemplateView, ) from django.urls import reverse_lazy from django.utils.timezone import make_awa...
[ "cerezzodora2262@icloud.com" ]
cerezzodora2262@icloud.com
d8e6d6bc745881e200737675ec2cd28b084d364d
68c003a526414fef3c23ad591982f1113ca8a72c
/api/urls.py
6287d8ae58d870352565ce7f626f9a3aa7037130
[]
no_license
pawanpaudel93/NepAmbulance
9d99ef3a3592b3a17091889d9db32aa952974400
b07dba43926c3f5a350b0acd75ac90b4842e3e32
refs/heads/master
2020-06-14T08:59:03.523102
2020-01-07T09:05:03
2020-01-07T09:05:03
194,965,063
0
0
null
null
null
null
UTF-8
Python
false
false
761
py
from django.contrib import admin from django.urls import path from .views import ListCreateAmbulance, RetrieveUpdateDeleteAmbulance, ListDistrict, ListProvince urlpatterns = [ path('ambulance/<int:province>/<slug:district>/<slug:city>/<int:ward>/', ListCreateAmbulance.as_view(), name="list-create-api"), path('...
[ "pawanpaudel93@gmail.com" ]
pawanpaudel93@gmail.com
49617de351135a141ec72527b03b3dde22f0125d
422dd5d3c48a608b093cbfa92085e95a105a5752
/students/nDruP/lesson06/calculator/calculator.py
d29df83130fa0fb445a7b6fea8d286044b6917c7
[]
no_license
UWPCE-PythonCert-ClassRepos/SP_Online_Course2_2018
a2052fdecd187d7dd6dbe6f1387b4f7341623e93
b1fea0309b3495b3e1dc167d7029bc9e4b6f00f1
refs/heads/master
2021-06-07T09:06:21.100330
2019-11-08T23:42:42
2019-11-08T23:42:42
130,731,872
4
70
null
2021-06-01T22:29:19
2018-04-23T17:24:22
Python
UTF-8
Python
false
false
1,658
py
""" InsufficientOperands Exception and the Calculator class """ class InsufficientOperands(Exception): """ Create the InsufficientOperands exception for use in Calculator. """ pass class Calculator(object): """ Create the calculator object. """ def __init__(self, adder, subtracter, ...
[ "apark46.work@gmail.com" ]
apark46.work@gmail.com
a25e040005de4ab4ceb6b75d24ad6378699d31d5
acb8e84e3b9c987fcab341f799f41d5a5ec4d587
/langs/0/xt.py
2cabdcd454cba0a0dfcd2847512439922cc7dc0c
[]
no_license
G4te-Keep3r/HowdyHackers
46bfad63eafe5ac515da363e1c75fa6f4b9bca32
fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2
refs/heads/master
2020-08-01T12:08:10.782018
2016-11-13T20:45:50
2016-11-13T20:45:50
73,624,224
0
1
null
null
null
null
UTF-8
Python
false
false
485
py
import sys def printFunction(lineRemaining): if lineRemaining[0] == '"' and lineRemaining[-1] == '"': if len(lineRemaining) > 2: #data to print lineRemaining = lineRemaining[1:-1] print ' '.join(lineRemaining) else: print def main(fileName): with open(fileName) as f: for line in f: ...
[ "juliettaylorswift@gmail.com" ]
juliettaylorswift@gmail.com
b684e9ee901a0010e93ec30efff577b9d58c68ef
d3ae9c6377109a4edea819c3d574e6ac529c98ba
/read_csv_pandas.py
25cdfa66408f6a0fb0f59558db628c2803ad4c55
[]
no_license
vmburbinamx/textParsing
9d8696f798217f7124501ac1756019a95166d79f
46d6f872de79879cd6129c2ace2684409f02851c
refs/heads/master
2023-01-02T20:50:45.745922
2020-10-26T02:40:29
2020-10-26T02:40:29
307,169,054
0
0
null
null
null
null
UTF-8
Python
false
false
265
py
import pandas as pd import os #Set path to 'data' folder' path_to_data_in_current_directory = os.getcwd() + '\\data\\' #Set full path name fullFileName = path_to_data_in_current_directory+'titanic_sub_just_numbers.csv' #read file data = pd.read_csv(fullFileName)
[ "victormanueluj@gmail.com" ]
victormanueluj@gmail.com
a11679509d39df99aea016f09d46980e5ad22918
d02e279c61c111d250812946f299828330947ed6
/easy/remove element.py
e5afce3b88516929d4662fde1ee3670b0a0f3576
[]
no_license
wlawt/leetcode
b1599528e027bd8bfd2581f3bc56bb3680118c4b
c00fdce2f5f1ed1acc15f74f98c99b7139fedb50
refs/heads/master
2023-02-20T05:42:34.307169
2021-01-22T01:48:30
2021-01-22T01:48:30
326,090,331
1
0
null
null
null
null
UTF-8
Python
false
false
275
py
class Solution: def removeElement(self, nums: List[int], val: int) -> int: i=0 nums.sort() for j in range(len(nums)): if nums[j] != val: nums[i] = nums[j] i+=1 return i
[ "williamlaw.wtl@gmail.com" ]
williamlaw.wtl@gmail.com
296215af5720028bb4c81737ec6fe46db989de0c
4648437f4004530142e8aaf7bc65ffc9df121058
/asgi.py
b3e33727dc5c089f91996f06e4e404eb7442c29d
[]
no_license
YashDilipShah/KC_random_forest
ebca680198b6db27888f1b315153e85149050b06
5cfea708450f09569e7f93cc74ec9e4d38bfc312
refs/heads/master
2020-12-27T18:30:22.352301
2020-02-27T21:08:19
2020-02-27T21:08:19
238,005,735
0
0
null
null
null
null
UTF-8
Python
false
false
413
py
""" ASGI config for houseprice 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.setdefau...
[ "noreply@github.com" ]
YashDilipShah.noreply@github.com