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
220 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
257 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
5923edf19d7db31a20d3a49ffcc3c7c9da07fe70
3fca5adf482809cf2825b4233362d54917841786
/omnibus/replserver.py
1bcf3d5c805b7e301f99bf048c1c6a934739d6e9
[ "BSD-3-Clause" ]
permissive
wrmsr/omnibus
a5ad19cebd458893b0ae85b5c847761ad6c1ceed
3c4ef5eb17b0fff8593fa6a2284337bf193c18d3
refs/heads/master
2023-01-19T11:50:39.002781
2020-03-12T01:53:53
2020-03-12T01:53:53
164,266,924
3
1
BSD-3-Clause
2022-12-26T20:58:22
2019-01-06T01:55:06
Python
UTF-8
Python
false
false
11,234
py
""" socat - UNIX-CONNECT:repl.sock import sys, threading, pdb, functools def _attach(repl): frame = sys._current_frames()[threading.enumerate()[0].ident] debugger = pdb.Pdb( stdin=repl.conn.makefile('r'), stdout=repl.conn.makefile('w'), ) debugger.reset() while frame: frame...
[ "timwilloney@gmail.com" ]
timwilloney@gmail.com
20b9be4665f4613ae1861465fec4bfef7a370263
d1debd994fdcf65e55d278a83ca55600b9baf13e
/Observer-machine/observer_pattern/observable.py
9c8467981cfa4dfc8607671db938d24b80529da8
[]
no_license
JackyCafe/designPettern
885497ce94ddd3f9439f572a34464ab07c93b377
98869087f35bfee102fa96e97062e95f580e8b2c
refs/heads/master
2023-06-15T19:20:04.441605
2021-07-16T05:46:11
2021-07-16T05:46:11
381,317,434
0
0
null
null
null
null
UTF-8
Python
false
false
356
py
from typing import List class Observable: observers: List def __init__(self): self.observers = [] def addObserver(self,observer): self.observers.append(observer) def removeObserver(self,observer): self.observers.remove(observer) def notify(self): for o in self.o...
[ "powerworker1234@gmail.com" ]
powerworker1234@gmail.com
d01e4b67652540008cebe7e18a0e5deb0ff80ca9
38d8ae5f83c4ad29ded5a7de7e6f23f6fae041eb
/Chapter03/03_atari_gan.py
4ea43f8d571f59d36f9f6f0a8e85a65143d2e5b7
[]
no_license
andrelip/deep_reinforcement_learning_exercises
bff0ee950e730f3621fd2ba74dbbe20629205d4c
362f90ebb85e589fea4d2bff04fac0a456819af4
refs/heads/master
2022-12-08T07:35:10.293593
2019-11-06T16:22:05
2019-11-06T16:22:05
220,040,450
0
0
null
2022-11-21T22:22:24
2019-11-06T16:23:22
Python
UTF-8
Python
false
false
7,080
py
#!/usr/bin/env python import random import argparse import cv2 import torch import torch.nn as nn import torch.optim as optim from torch.utils.tensorboard import SummaryWriter import torchvision.utils as vutils import gym import gym.spaces import numpy as np log = gym.logger log.set_level(gym.logger.INFO) LATENT_...
[ "andrestephano@gmail.com" ]
andrestephano@gmail.com
c055ae9b12dbbcdd5f6e7c94fd52a313b3e50979
ca58b06353c0a8c0e8a87dd2bcf0d06cf54aded8
/server/resume/about/views.py
88f253845fc5fc2a0dc8a1b42cf9faa181811ab7
[]
no_license
whistlepark/ECE-140A-Resume
ff9e8a67525d1a748c561b6af441f29993a51267
158222e91ddedddcae2fc9520a23f8f54848be5d
refs/heads/main
2023-03-18T23:12:17.005562
2021-03-14T22:25:23
2021-03-14T22:25:23
347,766,551
0
0
null
null
null
null
UTF-8
Python
false
false
115
py
from django.shortcuts import render, HttpResponse def about(request): return render(request,'about.html',{})
[ "arhanna@ucsd.edu" ]
arhanna@ucsd.edu
7870158fe9657141779e126e13dfd712b9ed454e
daf9821160240a508a604595b60dd7052198d1cb
/testProcessor.py
026160f0c7d0bb97d8a1699452b243cafce60a27
[]
no_license
emmet-gingles/Python-FileProcessor
f7a3669be5c736d279a2ab9ec55c118213607ea3
f50e9fbf61a30cef387a64951c9c818e57396766
refs/heads/master
2020-03-23T13:30:21.119394
2017-07-12T18:57:59
2017-07-12T18:57:59
141,622,180
0
0
null
null
null
null
UTF-8
Python
false
false
3,356
py
from process_changes import * import unittest # class to test the data processor functionality class TestDataProcessor(unittest.TestCase): # setup the test class def setUp(self): self.dataprocessor = DataProcessor() self.dataprocessor.loadFile('changes_python.log') # fu...
[ "noreply@github.com" ]
emmet-gingles.noreply@github.com
21b2263b0e0c833efceb0ba0874537b1f524c9f7
d9165259ded57d68d8ad50b45b56bffed85e055c
/webscrape/views.py
c789ed2d29a0d138bd10f27ad55d855af1521559
[]
no_license
developer-aj/WebScraping
23b295ff4fa3eab4a72e5e0b7491672202198340
dba52db736bffa5e93647fdead51169413c69a6b
refs/heads/master
2020-05-19T14:02:15.688030
2015-03-27T09:56:05
2015-03-27T09:56:05
32,788,860
0
0
null
null
null
null
UTF-8
Python
false
false
1,525
py
from django.shortcuts import render, get_object_or_404, redirect from .models import web from .forms import PostForm from urllib import * from re import * from sets import Set # Create your views here. def post_new(request): if request.method == "POST": form = PostForm(request.POST) if form.is_valid(): post = ...
[ "ajju.kvmc@gmail.com" ]
ajju.kvmc@gmail.com
c3a9591fd2ff4faec0717a1618d14ca7352353d0
5764b4996e64de37b762d738cd4b5d882294559c
/back_for_face/migrations/0003_auto_20210402_0419.py
f2fecf1a210b681c91cca45fd3d5618478ff6fe3
[]
no_license
Akkutabusova/BackenForFace
447c1bbbb79f9f5001401ef19223c1d58db91dab
a296b9bd189df56e60b75a2b08b5420c13889fe9
refs/heads/master
2023-04-23T06:08:00.082070
2021-05-08T15:23:14
2021-05-08T15:23:14
359,457,504
0
0
null
null
null
null
UTF-8
Python
false
false
521
py
# Generated by Django 2.2.7 on 2021-04-01 22:19 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('back_for_face', '0002_auto_20210402_0412'), ] operations = [ migrations.RemoveField( model_name='currentuser', ...
[ "tabusova.a2000@gmail.com" ]
tabusova.a2000@gmail.com
d6ebf46473412fa246c591a471b445630dae2adb
df11a013917ffa0ef9a8e2f1ddcf4d12af65812f
/code_cm17/trainer/calc_jaccard_index.py
fcc1dba1f985e0ea18f8e157dff64596e7d72ada
[ "MIT" ]
permissive
micimize/DigitalHistoPath
0534e6e7cecca73b299620be55c8bbaa1b39bf99
f2a4dd03761e321c35b1b2e17de3aa4b3ba49511
refs/heads/master
2022-11-09T11:52:09.462891
2020-06-03T16:23:07
2020-06-03T16:23:07
272,494,643
0
0
MIT
2020-06-15T16:51:43
2020-06-15T16:51:43
null
UTF-8
Python
false
false
23,774
py
#Imports from __future__ import absolute_import from __future__ import division from __future__ import print_function from datetime import datetime import os import glob import random import imgaug from imgaug import augmenters as iaa from PIL import Image from tqdm import tqdm import matplotlib.pyplot as plt import...
[ "haranrajkumar97@gmail.com" ]
haranrajkumar97@gmail.com
970b980241353efbce82180668a684226303165e
3a41f35d2ce62429627145f74d1558a3e5f5a2c2
/microbots/envs/simple_particle.py
1c42455b69462bdf7d441b7a597530bfd6053e35
[]
no_license
UD-IDS-LAB/Microbot-Control
a90f560aa85c1ed06d2df94a66c514001c6fa2c2
bd80f5b14476ccc6d1faaafac6be0492a60388fa
refs/heads/main
2023-03-19T02:39:09.365863
2021-02-04T01:52:01
2021-02-04T01:52:01
331,729,583
1
0
null
null
null
null
UTF-8
Python
false
false
8,447
py
# -*- coding: utf-8 -*- """ Created on Mon Jan 11 15:29:37 2021 @author: Logan """ import gym from gym import spaces import numpy as np import math #material for plotting import matplotlib matplotlib.use('TkAgg') import matplotlib.pyplot as plt import matplotlib.patches as patches class ParticlePlot: de...
[ "Logiant@users.noreply.github.com" ]
Logiant@users.noreply.github.com
215f7d24162ef80e6174c706bfbe4ecdf7c0d938
c4058241ee3fd2d34e06dc90f83b39b1725a9fa1
/Tienda/celery.py
a16651412f72caf624942b487559ed2e0aaa672e
[]
no_license
aberlanga25/DjangoTienda
ef09ed5c5c3b2c64075318ca102b368b4a3b4bbc
8fcf23d1ac1347ad92e8adc1bc5b2a69e7ecf8f6
refs/heads/master
2020-03-20T06:50:21.317419
2018-06-22T21:45:58
2018-06-22T21:45:58
137,262,462
0
0
null
null
null
null
UTF-8
Python
false
false
331
py
import os from celery import Celery from django.conf import settings # set the default Django settings module for the 'celery' program. os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Tienda.settings') app = Celery('tienda') app.config_from_object('django.conf:settings') app.autodiscover_tasks(lambda: settings.INSTA...
[ "berlanga2512@gmail.com" ]
berlanga2512@gmail.com
1acd544bb22b1b4f7bf92645d30914fe1d19e910
31d4371ad53133da613fae0a129c1283ae7ee64d
/python/test_lyapunov.py
22fa56e67fdaafc74083693b07c065982d5838e1
[]
no_license
johanickla/n_body_sim_ws20201
637cb83177bbf6a036cdf93b3a7b79a95ba68050
b0d5e426183f6d29720c4caec7ac35f09799bc18
refs/heads/main
2023-03-20T03:50:35.690809
2021-03-18T18:40:52
2021-03-18T18:40:52
310,010,353
0
0
null
null
null
null
UTF-8
Python
false
false
2,027
py
import rebound import numpy as np import warnings import matplotlib.pyplot as plt import visualize_orbit h = 0.696 def test_1(): sim1 = visualize_orbit.setup('Helga', h) print('Number of particles before "init_megno" :', sim1.N) sim1.init_megno() print('Number of particles after "init_megno" :', sim1....
[ "49444603+johanickl@users.noreply.github.com" ]
49444603+johanickl@users.noreply.github.com
96ebd867811570532d8fc6a0934d0475f42f77e1
db903a5e99712d1f45e1d45c4d77537f811ae569
/src/python/pants/option/global_options_test.py
ede2086b69991da2a0ecc2330dd8015392456304
[ "Apache-2.0" ]
permissive
Hirni-Meshram2/pants
777db8ea67c1fc66de46f0ab374ba4fff8597357
e802d62cc68176aa66947a939c771b01f47d5425
refs/heads/main
2023-05-01T09:23:10.973766
2021-05-19T08:24:50
2021-05-19T08:24:50
366,021,656
0
2
Apache-2.0
2021-05-10T11:38:07
2021-05-10T11:38:06
null
UTF-8
Python
false
false
6,764
py
# Copyright 2020 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import annotations import sys from pathlib import Path from textwrap import dedent import pytest from pants.base.build_environment import get_buildroot from pants.engine...
[ "noreply@github.com" ]
Hirni-Meshram2.noreply@github.com
f35a1255a58d91c36ed5bb36d3db683c8d4278c1
c14d8d4e648fc6433ddb4cbef790e93e23c8bc8d
/BankApp/urls.py
8168201860000704a2b372459e4c12045fb387e7
[]
no_license
dilshamony/BankAppProject
f9b1f77713d6aaf2b3814886e775df5c45aabb52
bd6b93b00aefe4440b6718cbd0134fd90b5c35dd
refs/heads/master
2023-04-27T00:56:05.333750
2021-05-21T14:13:03
2021-05-21T14:13:03
369,554,104
0
0
null
null
null
null
UTF-8
Python
false
false
801
py
"""BankApp URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based...
[ "dilsham998@gmail.com" ]
dilsham998@gmail.com
eed94a047c8ceace0d5f1642db2ffe1c7eb3bf0e
f8ad6963bfc851657ea50c6a036cfad29cdd7f60
/Study/Keras/Chapter_03_Catching_Layer_Concept/sub_03_image_augmentation.py
5af584ec17aef04328d39886bb785271c2918441
[]
no_license
foru120/PythonRepository
e1ab0265c0f50ef2e9acdf7447237c913560692b
db6b6be0f9fb91b0a81a3b6a2ec5631daab10f98
refs/heads/master
2021-01-01T06:53:11.728109
2019-04-25T13:52:50
2019-04-25T13:52:50
97,541,222
4
0
null
null
null
null
UTF-8
Python
false
false
802
py
import numpy as np # 랜덤시트 고정시키기 np.random.seed(5) from keras.preprocessing.image import ImageDataGenerator, array_to_img, img_to_array, load_img # 데이터셋 불러오기 data_aug_gen = ImageDataGenerator( rescale=1./255, rotation_range=15, width_shift_range=0.1, height_shift_range=0.1, shear_range=0.5, zo...
[ "broodsky1122@hanmail.net" ]
broodsky1122@hanmail.net
e472330d2bf93d69455f4f677fd0b05d340836ee
1a8b9758a5663399b74a02d2be15cf50926c46c9
/Python/Principles_of_Compiler/SLR(1)/SLR.py
bfc49faae5809bcf3097c19833d1eb164cff6046
[]
no_license
paullinzipeng/School_Works
37b2a0bc602f0730ffd32cd90aea619ad30921cb
9d535dd8f705035eccca34ad3365edc7bb99baa5
refs/heads/master
2020-03-16T06:31:29.631783
2018-07-07T07:26:16
2018-07-07T07:26:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,983
py
from Gramma2 import GRAMMA, VOL from Generator import Generator from copy import deepcopy class SLR: def __init__(self, GRAMMA, VOL): self.GRAMMA = GRAMMA self.VOL = VOL #self.Generator = Generator(GRAMMA, VOL) #self.Generator.Free_Left_Recursive() self.Producer = [] ...
[ "paullinzipeng@gmail.com" ]
paullinzipeng@gmail.com
22c8f6ba095782b5de2564ab577536fd248761db
144d5addc2eaf61e3f0590b5e0cd3e70f26e3b28
/ImageLoader.py
23923133c5da70550664fd5db7022ddd58fd12b9
[ "MIT" ]
permissive
Fmccline/ConnectFour
985c8cc5d8a627f5f37a6d1e56922badd1a98f46
c92b9b76c1fdbb567589484452eff2d64af4b456
refs/heads/master
2020-04-20T14:04:26.414009
2019-03-13T00:53:50
2019-03-13T00:53:50
168,887,240
0
0
null
null
null
null
UTF-8
Python
false
false
194
py
from PIL import Image, ImageTk class ImageLoader: @staticmethod def load_image(path): image = Image.open(path) photo = ImageTk.PhotoImage(image) return photo
[ "frankmcline@gmail.com" ]
frankmcline@gmail.com
e2b351f7ed30c8c47d2927dc41a950e09289b13b
6f7df24b2e563b43c6f78d9b7b987d8a3abb980e
/aoc/aoc2020/days/day19/part_2.py
019ab79f1b627cd4d854a28542f0cbdcdb5b6552
[]
no_license
bendikjohansen/adventofcode
1ca2d9a674c84faafffd2e087592eb4829c3fd25
8381c2e44937124779f10a0c8791761e2db36944
refs/heads/main
2023-02-05T17:45:34.973773
2020-12-28T20:10:22
2020-12-28T20:10:22
325,106,650
0
0
null
null
null
null
UTF-8
Python
false
false
1,940
py
from collections import defaultdict from typing import List, Tuple from aoc.utils import get_input def parse_rules(rules_raw: str): rules_dict = defaultdict(lambda: {}) for line in rules_raw.splitlines(): raw_index, content = line.split(': ') index = int(raw_index) value = content[1]...
[ "bendikj@gmail.com" ]
bendikj@gmail.com
b93fb73cfb00f24fe840a59511f2030d637ccdd0
f6297bc350a1fa4935bb19978e2c209fe46847f9
/exercises/07_files/task_7_3b.py
0a8748fc0b04d26b469d7c50935c07084a2c0a13
[]
no_license
LenaPetrenko/web-python-prog
c02ef1e4195df4738824819c2696370731f515ba
dd14c5c9b8f6f600e3bc5ce28236042f569f44ad
refs/heads/master
2023-01-06T06:03:18.643768
2020-11-03T23:39:10
2020-11-03T23:39:10
303,650,771
0
0
null
null
null
null
UTF-8
Python
false
false
859
py
# -*- coding: utf-8 -*- """ Задание 7.3b Сделать копию скрипта задания 7.3a. Переделать скрипт: - Запросить у пользователя ввод номера VLAN. - Выводить информацию только по указанному VLAN. Ограничение: Все задания надо выполнять используя только пройденные темы. """ import re new_vlan = input('Введите номер vlan: ...
[ "noreply@github.com" ]
LenaPetrenko.noreply@github.com
30527b189207581978417b435e5e8bbf4dfc2c7a
16402373633ceea610027b09111c407f8872cf4e
/code/files/1.py
d9f13d87571192c55fbc529556023c9b31d0ee43
[]
no_license
rahulcs754/100daysofcode-Python
0e1ae1f2bc0911a71c9ee15f2c57f7d3215aad01
555f03dc0414ac6ef6fd6db84de8245e5e93caa5
refs/heads/master
2020-04-19T16:18:13.871768
2019-03-07T15:33:13
2019-03-07T15:33:13
168,300,305
0
0
null
null
null
null
UTF-8
Python
false
false
762
py
#Define Node Class class Node: #Function to initialize the node object def __init__(self, data): self.data = data self.next = None #linked list class class LinkedList: #function to initialize the linked def __init__(self): self.head = None def printList(self...
[ "rahul.shukla754@gmail.com" ]
rahul.shukla754@gmail.com
113a6b7e1708f89fe1a8a5c92d7e15b29f340d23
7d738ec701db03e1ed9c2c97570d71692d5a783c
/models/club.py
3703d73aec5aad737376519d7a3d79cfdaf516b2
[]
no_license
CristianoYL/MY_TEAM_API
b7579d884f0d08874437bd4c51640ff9bb9d33c1
c6940fb8b902bf690d6030d00bc4eef9a4559580
refs/heads/master
2022-12-10T02:36:28.912345
2018-01-01T08:26:11
2018-01-01T08:26:11
86,953,233
2
0
null
2022-12-07T23:56:17
2017-04-02T01:00:06
Python
UTF-8
Python
false
false
1,106
py
from db import db class ClubModel(db.Model): __tablename__ = 'club' id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(50)) info = db.Column(db.String(2000)) def __init__(self,_id,name,info): self.id = _id self.name = name self.info = info def jso...
[ "li.yin.cristiano@rutgers.edu" ]
li.yin.cristiano@rutgers.edu
f629e04bde6f125a6757fd8ad212af9f11399f1e
30da023a60f2b7721808a0d49075348d8c7a9ef7
/activity_prediction/boosting/config.py
f389b5980149928f5964b8708fabce875f6d7b68
[]
no_license
serp404/ML4PPM
58da454a9735de9a195fee2a39fd04355412e190
c3db974ef6a2979be5d2027ab275443f7cd45c1d
refs/heads/main
2023-07-18T02:23:33.735338
2021-08-28T18:19:05
2021-08-28T18:19:05
392,088,804
1
0
null
2021-08-15T20:49:25
2021-08-02T20:42:48
Jupyter Notebook
UTF-8
Python
false
false
403
py
import numpy as np from hyperopt import hp catboost_space = { 'depth': hp.quniform('depth', 2, 16, 1), 'n_estimators': hp.quniform('n_estimators', 80, 124, 1), 'learning_rate': hp.loguniform('learning_rate', np.log(0.001), np.log(0.5)), 'l2_leaf_reg': hp.uniform('l2_leaf_reg', 1, 8), } CASE_ID_COLUMN...
[ "noreply@github.com" ]
serp404.noreply@github.com
8bfe91c55b0d6fb6146284652a0734296c3c8004
39ceaf62744febd3f108b98ae71b6c7f75e49cae
/Exemples cours 6/MeteoGUI/meteoGUI.py
55f9a22ee9b7c61dafae18c7c72e006dbf964071
[ "Apache-2.0" ]
permissive
mchoquette1984/coursPython
68cf53367b1dbb0c1ad146d798623222bff06af9
74f634a96146c2244f859b9d449534330d9542fb
refs/heads/master
2023-09-03T11:41:37.128690
2021-10-13T01:42:58
2021-10-13T01:42:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,299
py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'meteoGUI.ui' # # Created by: PyQt5 UI code generator 5.13.0 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets import objMeteo class Ui_MainWindow(object): def setupUi(self...
[ "noreply@github.com" ]
mchoquette1984.noreply@github.com
63aece5376d78fe1adf90813932e843283448f09
2b28f749fef34e566b685d520be7ed50f28b7bff
/bondhon_docx/convert_bangla.py
eec2df4268d0d8e6e6bd40811d001112db6fa54b
[ "MIT" ]
permissive
banglakit/bondhon-docx
cc58fea46fd9a50b4559ed26ba2142a5d708423e
a8f6a58995392f420d48f5fc8ec7a25dadeca30a
refs/heads/master
2020-04-28T12:00:15.608727
2019-03-12T18:23:15
2019-03-12T18:23:15
175,262,079
2
0
null
null
null
null
UTF-8
Python
false
false
673
py
#!/usr/bin/env python import argparse import os from docx import Document from bondhon_docx import conversion def main(): parser = argparse.ArgumentParser(description='Convert Bengali Documents between encodings.') parser.add_argument('from_enc', help='Original Encoding of File') parser.add_argument('t...
[ "aniruddha@adhikary.net" ]
aniruddha@adhikary.net
9b6caa6210adf537375fc9142ca2126edac15980
8304a08e1c1177f87f58ff708785eb3304219405
/main.py
f60c5821a7e83b4e51cb98a003b927a15ef53545
[]
no_license
yest/T5-QA
93c464d27e0c718501403f8b175dde3f35db998d
0913ac5a508df2306bd2d1272523fe73437be34a
refs/heads/main
2023-06-14T09:54:56.403697
2021-07-08T23:12:13
2021-07-08T23:12:13
384,002,511
3
1
null
null
null
null
UTF-8
Python
false
false
1,771
py
from argparse import ArgumentParser import pandas as pd import numpy as np import torch from torch.utils.data import Dataset, DataLoader import pytorch_lightning as pl from pytorch_lightning.callbacks import ModelCheckpoint from pytorch_lightning import Trainer from bioqamodel import BioQAModel from bioqadatamodule im...
[ "yudianto.sujana@gmail.com" ]
yudianto.sujana@gmail.com
0ec039b3a87e51359999205ac7cc87fccb2fb731
cb6f4cebd92d611dda3c53621cb4b31ffe51105c
/pi.py
b7d639dba3e2709928e8691295ab6fc794d8b714
[]
no_license
federicoarmata/mathematical-varieties-and-algos
cf528571faf14eca852f937e20b86cf11df46929
a44e3f405bda48833130bde5c8e1fcf17c685725
refs/heads/master
2020-06-16T11:16:53.612930
2019-10-20T19:35:03
2019-10-20T19:35:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,476
py
from mpmath import * def pi_generator1(N): """ Calculates pi using Bailey–Borwein–Plouffe formula. Checked until 1000-th decimal digit. """ pi = mpf(0) #setting precision mp.dps = N + 1 for i in range(0, N): #n:numerator # d:denominator of the series n...
[ "federicoarmata@msn.com" ]
federicoarmata@msn.com
50ebef76bc53f83502193a78637c474c65e7e058
73edfaefc413c3cc165576f92b57a55fdaa12e1d
/datadragon.py
f9cee0f14e601ea1207e31258340262cff2aa432
[]
no_license
rafaelbeckel/ProcessDataChallenge
fe9e086b494007be60c828fa6f6ec395b5e05973
032b730af6a152dc810825980e8279ca7855203d
refs/heads/master
2020-04-05T13:39:53.583256
2017-06-29T20:30:00
2017-06-29T20:30:00
94,951,810
0
0
null
2017-06-21T01:53:04
2017-06-21T01:53:04
null
UTF-8
Python
false
false
3,549
py
import ast import click import settings import multiprocessing as mp from data.db import DB from pprint import pprint from data.seeder import Seeder from data.cruncher import Cruncher db = DB() @click.group(context_settings = dict(help_option_names = ['-h', '--help'])) def main(): pass @main.command() @click....
[ "rafaelbeckel@gmail.com" ]
rafaelbeckel@gmail.com
a525b11efc8f9cad4fe2b462aa96b35638be7b1b
fc169e7ba08b43647d22375c1bfd58636265c852
/day21/solution.py
e770086bee26ed0c851a1500d9f82258ffa5dc70
[]
no_license
simonhessner/adventofcode-2017
b67da94900f20130730b380e18696fd64edb4eb1
1eb8293b8dbf6f0ba491e968c3285137489432a1
refs/heads/master
2021-09-01T10:57:23.255160
2017-12-26T16:38:55
2017-12-26T16:38:55
112,945,300
0
0
null
null
null
null
UTF-8
Python
false
false
2,017
py
#!/usr/bin/python3 # http://adventofcode.com/2017/day/21 import numpy as np # numpy 2D array to string representation def get_strrep(patch): return "/".join("".join(patch[k]) for k in range(len(patch))) # string representation to 2D numpy array def get_arrrep(strrep): return np.array([list(x) for x in strrep.spli...
[ "uldci@student.kit.edu" ]
uldci@student.kit.edu
e08d8817647d2f68bad4873c4900496351629105
ff61af360de5f0ad3bc53495d110168076444c49
/python_exercises/check_fermat.py
2c2eb1faca71cef3d6338a7f3023a18ffa8e2701
[]
no_license
andreanndrade10/python-algorithms
db8e06bc916ee10d9575c7be5bd5c6dd2a2b78b7
1a97d3e128d7c5d5ebb2693716ba773f420fc1cc
refs/heads/master
2022-12-16T02:35:55.579073
2020-09-07T18:51:57
2020-09-07T18:51:57
270,482,044
0
0
null
null
null
null
UTF-8
Python
false
false
471
py
def user_interface(): print("Check if Fermat is righ") a = int(input("A: ")) b = int(input("B: ")) c = int(input("C: ")) n = int(input("n: ")) check_fermat(a,b,c,n) def check_fermat(a,b,c,n): first_element = a**n second_element = b**n third_element = c**n if first_element+seco...
[ "andre.andrade@ish.com.br" ]
andre.andrade@ish.com.br
b89f367ef49e172f226e5c58c00fd91c5901484f
35eeece7d97eb672542ec69610d65426592c4dfd
/nojapan/tools/crawler.py
d371da5313e023e66afa8ee1d68a5c1b3584a607
[]
no_license
yprite/PlayGround
99adf566ca01fd2da9b06d5d59c9398645f9fa2c
d9194cdfa6def5ab578bb8e39483bc39fe290374
refs/heads/master
2022-12-08T08:41:16.404651
2020-05-08T01:04:04
2020-05-08T01:04:04
162,648,797
1
0
null
2022-12-04T04:05:53
2018-12-21T01:16:40
C
UTF-8
Python
false
false
869
py
import requests from bs4 import BeautifulSoup from nojapan import models def get_korea_company_info(): def clean_html_tag(raw_html): import re cleanr = re.compile('<.*?>') cleantext = re.sub(cleanr, '', raw_html) return cleantext session = requests.Session() url = "https:/...
[ "yprite@jjssm.org" ]
yprite@jjssm.org
277cf726bc39c8aeaa1975b9063a1ca2bc1ccf7c
181bf2809c259c77a1019103e6d15db29a968e48
/rate_counter/manage.py
7629f3a5e7475a0e6439febffd051b65fbb1f454
[]
no_license
wolendranh/rate_counter
22992099cadc549c8ac860532348fa05c860833e
db19120a029b5e194e2ac7df395ff4027b021c0d
refs/heads/master
2021-01-21T04:55:26.189889
2016-04-01T08:21:12
2016-04-01T08:21:12
54,800,066
2
1
null
2016-05-15T02:55:13
2016-03-26T21:18:55
Python
UTF-8
Python
false
false
255
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "rate_counter.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
[ "hulpa.yura@gmail.com" ]
hulpa.yura@gmail.com
4013fcc598254b2c31c9a6d62683192317037477
e6dab5aa1754ff13755a1f74a28a201681ab7e1c
/.parts/lib/django-1.2/tests/regressiontests/test_utils/models.py
514cf46f7b562720f2894129b24d62b046c1f3c1
[]
no_license
ronkagan/Euler_1
67679203a9510147320f7c6513eefd391630703e
022633cc298475c4f3fd0c6e2bde4f4728713995
refs/heads/master
2021-01-06T20:45:52.901025
2014-09-06T22:34:16
2014-09-06T22:34:16
23,744,842
0
1
null
null
null
null
UTF-8
Python
false
false
108
py
/home/action/.parts/packages/googleappengine/1.9.4/lib/django-1.2/tests/regressiontests/test_utils/models.py
[ "ron.y.kagan@gmail.com" ]
ron.y.kagan@gmail.com
4968df6c80dc6e6b890a82f2d92dde5867592ea9
b480bd20366ccb23e32cb07bcc73579cf33ba96b
/idea4u/views.py
6d0239545ace0600d2d69d278ed6245192d0f853
[ "MIT" ]
permissive
TangZhongham/Idea4U
b35a00673a8636d9b46bbed181ccb15ecb8f4d83
c19093b1e7a8aa60d80a028f0495cc5a4721e8bb
refs/heads/master
2020-06-27T12:58:52.606819
2019-08-02T08:53:41
2019-08-02T08:53:41
199,960,501
0
0
null
null
null
null
UTF-8
Python
false
false
724
py
from flask import flash, redirect, url_for, render_template from idea4u.models import Idea from idea4u.form import IdeaForm from idea4u import app, db # Application Routes @app.route('/', methods=['GET', 'POST']) def index(): messages = Idea.query.order_by(Idea.timestamp.desc()).all() form = IdeaForm() ...
[ "13122260573@163.com" ]
13122260573@163.com
995c7fb086f0b3ce3be2766dfa862208c3486b28
d52f71cac1c10a8641a18b2b30e789744f3b3ef7
/Experiments/Yellow_submarine/2019_01_30_ml_approach/src/qmlt/numerical/__init__.py
a1f226b035bbee8776fb49ed53650e6768d1eceb
[]
no_license
BOHRTECHNOLOGY/public_research
89c67e583b2283f6c67ab33c7303c23bf18467df
d9209f20073d075ae7150250cb1a369f8cb215b7
refs/heads/master
2022-12-10T16:47:54.319350
2020-01-09T12:51:04
2020-01-09T12:51:04
143,842,978
17
5
null
2022-12-08T01:40:31
2018-08-07T08:26:05
Python
UTF-8
Python
false
false
2,833
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright 2018 Xanadu Quantum Technologies Inc. # 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...
[ "michal.stechly@gmail.com" ]
michal.stechly@gmail.com
e95d87395e03d312fee41a2854417872ff4ca942
fb9196c79a526ab14b97131343db8582900c8e48
/TP/TP2/Code/Python/1C.py
ff6dce4c8626c7999cebd4efb703c053dfcecf7a
[ "MIT" ]
permissive
suyundukov/LIFAP1
47a1f97275e96aa49fa024e793bc880d32270f83
b5da0395de9775cd8b319b56af7a6d0257d542db
refs/heads/master
2022-02-09T16:37:29.788188
2019-08-05T12:57:49
2019-08-05T12:57:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
393
py
#!/usr/bin/python # Calculer la somme des N premières puissances de 2 from math import pow def sum_pow(val): sum_val = 0 for i in range(val): sum_val += pow(2, i) # I ❤ Python : sum_val += 2 ** i return sum_val print('Donne moi une valeur : ', end='') foo = int(input()) pri...
[ "nurlansu@users.noreply.github.com" ]
nurlansu@users.noreply.github.com
1b749635440a04b0bac6fafd4c193ccf950c50cf
74f6c5b2fbc1c868c7fabda7486eabfdb4466f1b
/3.py
cfb74d4aefa5c2f88ae2f231da701c52336d0fce
[]
no_license
jcstoltzfus/project-euler
0eec3e3275f1d4d0a2cca2cc1df7426fcac0a89d
50439a22d65eb029794c25346dc62702558728fb
refs/heads/master
2020-03-30T11:19:52.795796
2018-10-01T22:33:56
2018-10-01T22:33:56
151,167,952
0
0
null
null
null
null
UTF-8
Python
false
false
419
py
'''Question: The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143 ?''' #DOESN'T WORK def find_prime_factors(n, lst): i = 2 while(i < int(n ** .5) + 1): if(n % i == 0): lst.append(i) print(i) n = n / i if(n == 1): n = 0 #find_prime_factors(...
[ "stoltzfus.eelman@gmail.com" ]
stoltzfus.eelman@gmail.com
bdff99867244f35c2cca367095e00638f4182ed5
a2d36e471988e0fae32e9a9d559204ebb065ab7f
/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/publish_assets_response.py
981baa1a542fb9aab9b16d4419a291edee3eff10
[ "Apache-2.0" ]
permissive
zhouxy666/huaweicloud-sdk-python-v3
4d878a90b8e003875fc803a61414788e5e4c2c34
cc6f10a53205be4cb111d3ecfef8135ea804fa15
refs/heads/master
2023-09-02T07:41:12.605394
2021-11-12T03:20:11
2021-11-12T03:20:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,341
py
# coding: utf-8 import re import six from huaweicloudsdkcore.sdk_response import SdkResponse from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class PublishAssetsResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name ...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
79f7f6729bc086b71b77bf9c3640d6cbb329aef3
a67e6f0314e707e38382c64c3a7eec958463a79d
/Ihome/migrations/versions/cb32832dd761_init_tables.py
b9cf9249bc2c8470172eb096398c9394314ee972
[]
no_license
shiyi-11/learngit
dc23b8a69c6b0139cd5d281d659d52448694bca6
acd12e1c1154333a2afb7222cae01be51bd85bca
refs/heads/master
2022-12-12T10:39:00.882833
2020-04-25T06:09:56
2020-04-25T06:09:56
247,857,863
0
0
null
2022-12-08T01:23:40
2020-03-17T02:07:13
HTML
UTF-8
Python
false
false
5,295
py
"""init tables Revision ID: cb32832dd761 Revises: Create Date: 2020-02-23 12:25:52.278535 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'cb32832dd761' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto genera...
[ "shiyixuan_11@163.com" ]
shiyixuan_11@163.com
f2cdd7cfeb9f4995ded2abbab206cfba0a41d618
b63a90f9a0a9afb586b496dcd8d9176a4ce8a0ea
/src/main.py
8556790dc76d7767e5a134358db4706292cc0510
[]
no_license
romanav/signal_temporal_logic
6e957255b383a8c72a81e4695bca897999ab46ba
9442fb44c7ad84947029d5edadbd1b1c59088e35
refs/heads/master
2022-12-01T22:13:11.550699
2020-08-14T09:41:48
2020-08-14T09:41:48
279,386,273
0
0
null
null
null
null
UTF-8
Python
false
false
364
py
import numpy as np from src.robustness import feature_, not_, sat_ import matplotlib.pyplot as plt t = np.arange(0, 4 * np.pi, 0.1) print(f'signal length: {len(t)}') sig = np.sin(t) # exp = list(not_(feature_(sig - 0.25, (1, 2)))) exp = list(sat_(sig-0.25)) plt.plot(range(len(exp)), exp, sig) # plt.plot(range(472)...
[ "romanaverkin@gmail.com" ]
romanaverkin@gmail.com
1f8aca95192f02d0291addff26d41d499dee3b82
885241cd98a7798cd982a209e334fc71f9c390e5
/streamfieldblocks/models.py
9d18073a779d5636a4684f81a262a5fe2d75518b
[]
no_license
mcwaage1/wagtail-devportfolio
364faa6b6789f640ea74db445fd300fd5a6e3629
1b105d0e5d781d7358083fa602958deaad1c9305
refs/heads/main
2023-09-06T04:46:21.722717
2021-11-22T01:13:05
2021-11-22T01:13:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,497
py
from django.db import models from wagtail.core import blocks from wagtail.images.blocks import ImageChooserBlock class ResponsiveImageBlock(ImageChooserBlock): class Meta: icon = "image" template = "streamfieldblocks/responsive_image_block.html" class CardBlock(blocks.StructBlock): image = I...
[ "semperindoctrina19@gmail.com" ]
semperindoctrina19@gmail.com
f7c7a547727f1734a58d8396064a913242f0d901
10e0458c38f3e625311f032fb2ccbc304a0c0db3
/romantest1.py
6f199a8b7db14ba18097143a81943a78a5b8158b
[]
no_license
ramonbadillo/Tutorial_Python_Unity
d4509fc4005d9db28b39e96b2e4ed99b1c3fae2c
e2edcfe69eefa7f96bb0deac17856e833e7476b3
refs/heads/master
2021-01-01T15:59:54.132403
2014-09-10T00:19:58
2014-09-10T00:19:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,686
py
import roman import unittest class KnownValues(unittest.TestCase): known_values = ( (1, 'I'), (2, 'II'), (3, 'III'), (4, 'IV'), (5, 'V'), (6, 'VI'), (7, 'VII'), ...
[ "robr8@hotmail.com" ]
robr8@hotmail.com
0ff5e17d60c3598706105acdc7d288e45e737d05
8a34f80d6c646adf6af674a5ff3743fa4111a492
/blog/settings.py
b29d1483ff5f5391eadd4da3e8d525606f4f2adc
[]
no_license
darevalo8/blog_pastor
04a41db618b5291d86b777ff741997e2cb8fcf2f
aaea4197247e87077aa1cfe2247b47579acffd36
refs/heads/main
2023-02-17T10:18:27.763918
2021-01-09T17:03:01
2021-01-09T17:03:01
328,203,331
0
0
null
null
null
null
UTF-8
Python
false
false
3,257
py
""" Django settings for blog project. Generated by 'django-admin startproject' using Django 3.1.5. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ import os from p...
[ "dr@todoo.co" ]
dr@todoo.co
5d53415e6a69d775523d61d30add80344da10e0c
f74032ab5e361c3f528d8b4d16f0b425ce85b8eb
/helloworld_project/settings.py
6dec3660759a4e342b6ede5b477a0b5235e871f9
[]
no_license
shweta1207/django-helloworld
47f0062d69cc032cc0cc5da6d15604a0a5d9d736
b52279f26af281aaa6d9698a74b56b0b91e392b8
refs/heads/master
2023-04-30T14:41:17.068772
2019-11-09T09:02:52
2019-11-09T09:02:52
220,617,485
0
0
null
2023-04-21T20:40:51
2019-11-09T09:06:50
Python
UTF-8
Python
false
false
3,152
py
""" Django settings for helloworld_project project. Generated by 'django-admin startproject' using Django 2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ imp...
[ "shweta1.singh@orange.com" ]
shweta1.singh@orange.com
786e15a926f9ea9ba51dff0e7cfd6b90ea532743
cf14b6ee602bff94d3fc2d7e712b06458540eed7
/gs24/enroll/urls.py
c58191feb75d1b077f6411cb53f93548cd76ff79
[]
no_license
ManishShah120/Learning-Django
8b0d7bfe7e7c13dcb71bb3d0dcdf3ebe7c36db27
8fe70723d18884e103359c745fb0de5498b8d594
refs/heads/master
2023-03-29T09:49:47.694123
2021-03-28T16:04:34
2021-03-28T16:04:34
328,925,596
3
0
null
null
null
null
UTF-8
Python
false
false
129
py
from django.urls import path from .views import studentinfo urlpatterns = [ path('stu/', studentinfo, name='studetails'), ]
[ "mkshah141@gmail.com" ]
mkshah141@gmail.com
e3af4d6ab9808460198837d63b6e0f5553b57bbb
04b1803adb6653ecb7cb827c4f4aa616afacf629
/content/browser/frame_host/DEPS
3da57e57e31e41791a995a6a1205c9dbf9929048
[ "BSD-3-Clause" ]
permissive
Samsung/Castanets
240d9338e097b75b3f669604315b06f7cf129d64
4896f732fc747dfdcfcbac3d442f2d2d42df264a
refs/heads/castanets_76_dev
2023-08-31T09:01:04.744346
2021-07-30T04:56:25
2021-08-11T05:45:21
125,484,161
58
49
BSD-3-Clause
2022-10-16T19:31:26
2018-03-16T08:07:37
null
UTF-8
Python
false
false
902
include_rules = [ # The frame_host files should only call upwards in the layering via the # delegate interfaces. "-content/browser/web_contents", "-content/public/browser/web_contents.h", "-content/public/browser/web_contents_delegate.h", "-content/public/browser/web_contents_view.h", ] specific_include_ru...
[ "sunny.nam@samsung.com" ]
sunny.nam@samsung.com
d08baa74c958543c08f257524f13f413c0c5f5b3
ad5a84d32c867f8fc4a6faa46eb74f6df3d32998
/src/manage.py
821d500afe119df543154ec72028d2caf8696c1b
[]
no_license
cdbullones/How-start-off-a-project-Django-Rest-Framework
be9e9441870b8f6a8226695e03fcfd7910f8689f
b87f5f786c20d3b7f553a8f3e846caa5c5db755c
refs/heads/master
2020-04-16T05:11:32.604314
2019-01-11T22:42:42
2019-01-11T22:42:42
165,295,594
0
0
null
null
null
null
UTF-8
Python
false
false
540
py
#!/usr/bin/env python import os import sys if __name__ == '__main__': os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'api_base.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Are...
[ "cbullones@arawato.co" ]
cbullones@arawato.co
7f678d20cd9ccb76a755129b262da9ec03d23e1b
e144cd77fdf1911fc771ff019e7aa1c41e5da0a1
/setup.py
d18a75df333cb0a9563054658adf0121536c5d80
[]
no_license
alekam/django-simplepages
68d0fb7025c38ccba0b29910f58367788594c78b
242e01e1f1d259b329ea0fdb7c470c1448e7c500
refs/heads/master
2021-01-16T02:45:45.281535
2010-11-27T14:51:10
2010-11-27T14:51:10
1,116,991
1
2
null
null
null
null
UTF-8
Python
false
false
1,039
py
from setuptools import setup, find_packages setup( name = "simplepages", version = '0.54.0', description = "A basic site structure and pages app", keywords = "django, cms, pages, contentmanagement", author = "Alex Kamedov", author_email = "alex@kamedov.ru", url = "git@3128.ru:repos/django-...
[ "alex@kamedov.ru" ]
alex@kamedov.ru
2147be05b184d926f084212271de3ca388340ec6
815cbe079ae7a0bc705dbc61e28ae2a6db67fb40
/HW1/consumer/consume.py
37c370073cfc76503f5ed72dd34f642954a912d8
[]
no_license
Avens8/prom-prog
d81a79a81e4f3eef0383321b16aa007ac3a0c2c1
865aa3fea92328167d97a2355ee1c49b1cc47d0e
refs/heads/master
2020-04-27T00:00:52.505525
2019-03-11T14:45:33
2019-03-11T14:45:33
173,921,290
0
0
null
null
null
null
UTF-8
Python
false
false
475
py
import pika import random import time rabbit_params = pika.ConnectionParameters('rabbit', 5672) print(f"Params: {rabbit_params}") while True: try: connection = pika.BlockingConnection(rabbit_params) break except Exception: time.sleep(2) channel = connection.channel() channel.queue_declare(queue='random_queue...
[ "tsayipad@gmail.com" ]
tsayipad@gmail.com
5b538b31e4ee590ae593c774f133f990e00d53bf
cfaaad4b552af93f9c5b3cb8e6c7902c4910b343
/evaluation/analysis.py
402b0278dfb1018cd9cc6b0bb85a634b029ec716
[]
no_license
panzhang666/Gibbs_sampling_motif_finding
205b6834980b1f8c1a22cdf06d5b9c1b9d417051
eb8ec558a9d5ab18b3454836ad528949eb4002ea
refs/heads/master
2020-09-29T13:36:45.983638
2019-12-10T06:46:44
2019-12-10T06:46:44
227,048,120
2
0
null
null
null
null
UTF-8
Python
false
false
17,477
py
from __future__ import division import math import numpy as np from matplotlib import pyplot as plt def read_motif(filename, nLines): with open(filename, 'r') as f: f.readline() motif = {} motif['nLines'] = nLines vals = f.readline().strip().split() motif['0_A...
[ "noreply@github.com" ]
panzhang666.noreply@github.com
602f08b17eaf38c3e18c8e2e5eae219ff5d7062c
b3a6c99ac54db4af1e56d01e77d6dc7442fd4eb0
/iamminji/leetcode/medium/my_calendar_II.py
b885dbcf701d47a7a5bf916f9f60222382587023
[]
no_license
algorizum/problem-solving
d2981bc3256ba322cb37c8678b165eb1d51232d5
dacc0b5ccda149f1c25f73649ee41ea595604f46
refs/heads/master
2021-01-19T16:43:40.773066
2018-05-17T15:28:06
2018-05-17T15:28:06
101,023,963
6
3
null
2018-05-17T15:28:07
2017-08-22T05:18:48
Java
UTF-8
Python
false
false
673
py
# 731. My Calendar II # https://leetcode.com/problems/my-calendar-ii/description/ class MyCalendarTwo: def __init__(self): self.double_booked = list() self.schedule = list() def book(self, start, end): """ :type start: int :type end: int :rtype: bool ""...
[ "sberryyogurt@gmail.com" ]
sberryyogurt@gmail.com
8c677a448294359eddc72929c681abd438b90e80
385ed58325dd0cc75bdb9fd3e61c5e005f7a4f28
/source/difang/src/difang/majiang2/table_state/state_xueliu.py
8aa6d33479d6ef5c2163185c743230768621fe2e
[]
no_license
csirui/hall37
17dfa4e4f1f8bf719d0c11ac7738fa4c14fd06db
5c4eb4b2bf57bbbee4731470c830d8d81915d603
refs/heads/master
2021-09-04T03:55:12.460035
2018-01-15T15:12:30
2018-01-15T15:12:30
117,560,615
0
3
null
null
null
null
UTF-8
Python
false
false
672
py
# -*- coding=utf-8 ''' Created on 2016年9月23日 @author: zhaol ''' from difang.majiang2.table_state.state import MTableState class MTableStateXueliu(MTableState): def __init__(self): super(MTableStateXueliu, self).__init__() # 血战玩法 self.setState(MTableState.TABLE_STATE_DROP) # 碰 ...
[ "cg@ibenxi.com" ]
cg@ibenxi.com
f0487401391b4b4aa4c678313efbe02c01927f17
3140daf42a083f126e770fbffa2f20319f35cc8d
/dapg/examples/dapg.py
cc49f39ed641fc749766b94445078a12e17dbae4
[ "Apache-2.0" ]
permissive
hyzcn/hand_dapg
c7714408ade17189cd581ca27418b374a62c50a3
9cd081dd1147e7a23f13cca1bb818ab13c38407a
refs/heads/master
2020-06-25T00:09:28.722724
2019-07-19T22:24:59
2019-07-19T22:24:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,147
py
""" This script illustrates initializing with behavior cloning and finetuning policy with DAPG. """ from mjrl.utils.gym_env import GymEnv from mjrl.policies.gaussian_mlp import MLP from mjrl.baselines.mlp_baseline import MLPBaseline from mjrl.algos.dapg import DAPG from mjrl.algos.behavior_cloning_2 import BC from mjr...
[ "rajeswaran.aravind@gmail.com" ]
rajeswaran.aravind@gmail.com
676f0f869065ed32c492d9de95bbf5207f3642af
096571f7ae7cc729530aa06bc0ce9b7c252557e3
/music_controller/frontend/urls.py
13f3e33540d632f9615e05e3a5aec1d1bdb16712
[ "MIT" ]
permissive
ParthThakur/spotify-shared-room
bd92a5200a113608952a21515ce0e5d231a84979
89e115c837e898a3afc822079c42eb22befa1b32
refs/heads/main
2023-04-10T06:43:08.532090
2021-04-19T22:46:29
2021-04-19T22:46:29
357,845,497
0
0
null
2021-04-19T16:30:02
2021-04-14T09:18:35
Python
UTF-8
Python
false
false
218
py
from django.urls import path from .views import index app_name = 'frontend' urlpatterns = [ path('', index, name=''), path('room/<str:roomCode>', index, name='current_room'), path('<str:page>', index), ]
[ "parththakur@gmail.com" ]
parththakur@gmail.com
96fa1c6a7f7094305b7d3f692a71be99c555cc09
9655be1c21f8b02c190c976c17ad6b77e1773c91
/DjangoPlayground/wsgi.py
f7c1037ce7c533066ec2acb7884d9e0de2d70724
[]
no_license
nathan5x-zz/DjangoPlayground
66bb7eeb13a77b709232fa4cc67ac4e9ac993a4a
e0cf2567eaaf018ff76ba5a0b6ee253e9d651cd0
refs/heads/master
2021-09-25T08:51:39.001488
2018-10-20T01:00:57
2018-10-20T01:00:57
153,854,007
1
0
null
null
null
null
UTF-8
Python
false
false
407
py
""" WSGI config for DjangoPlayground 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/1.6/howto/deployment/wsgi/ """ import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "DjangoPlayground.settings") ...
[ "walkwithsabari@gmail.com" ]
walkwithsabari@gmail.com
0cfd8b34c4c0105a50bc0096032ea57377428d01
bb8321a62fa5f46b75c13f52a42bfb83a7a87ced
/src/tools/submission alogn.py
b25b66e672b1908aa99102281c6cb79354146e14
[]
no_license
GuysBarash/Omission-attack-code
51e45ac7f2ad188a93a4a5095012be6997930ee0
36188248c7b60728b9e94e74150936b05a05540b
refs/heads/master
2023-06-29T13:00:40.029342
2021-08-05T12:46:46
2021-08-05T12:46:46
265,535,861
0
0
null
null
null
null
UTF-8
Python
false
false
1,710
py
bb = ''' Dataset clss Surrogate victim method Results CIFAR10 10 Googlenet Resnet18 KNN 0.25 CIFAR10 10 Googlenet MobleNetV2 KNN 0.15 CIFAR10 10 Googlenet VGG11 KNN 0.14 CIFAR10 10 Googlenet AlexNet KNN 0.08 MNIST 2 X KNN5 KNN 0.85 MNIST 2 X GNB KNN 0.80 MNIST 3 X ANN KNN 0.69 MNIST 2 ANN ANN Greedy 0.46 MNIST 2 X ANN ...
[ "guysbarash@gmail.com" ]
guysbarash@gmail.com
4c56b7b942d3642808308b257c1f7a97574dee8c
002e67eae7a2cffe90bc71955ea8ca22a9b54599
/module_planner/module_planner/wsgi.py
93a53468f756950765d3caf66a28d2b6cb635e47
[]
no_license
alcarney/moduleplanner-django
2711486590d83fc2d59e9535bbcfcb9b124fba74
bf82eb02085a24b35c26f852bf0df76212664ba6
refs/heads/master
2021-01-02T23:13:57.728867
2014-11-13T16:29:20
2014-11-13T16:29:20
25,308,743
3
0
null
2014-10-30T18:07:22
2014-10-16T15:31:14
Python
UTF-8
Python
false
false
403
py
""" WSGI config for module_planner 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/1.7/howto/deployment/wsgi/ """ import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "module_planner.settings") from...
[ "alex.rugby101@gmail.com" ]
alex.rugby101@gmail.com
292ffd198700cdc76c0bcbe232ae0cb3ca792a13
07b751896b5e8c029a1808f5587a9bb30090b0b4
/tensorflow/python/data/experimental/kernel_tests/restructured_dataset_test.py
3b0d23d6e11ee17a3fe6ac5cf9cce767232c559a
[ "Apache-2.0" ]
permissive
danfischetti/tensorflow
c5326578bac35c6f9a47444d8f91e03097fc2506
f3d4bf4345a442f605a45b1fbf74ea9656fa72ed
refs/heads/master
2020-04-11T10:07:21.324395
2018-12-13T22:46:13
2018-12-13T22:46:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,105
py
# Copyright 2017 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 applica...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
29b8e917251adc96df1f11a3d62ca45cc65c01e7
f95402fb9d62fb91f8ff9aa8577766428366c96c
/f1info/custom_attachment/ikspecs.py
5c59033384c122ac840cc9abcc1bb798dfd5682c
[]
no_license
a-iv/f1info
53d9edb632c2de7c90296a65dae5402f46a056f2
9c268c30f4cae6ca449db9d42aa4e63d92a3a532
refs/heads/master
2021-01-19T09:41:59.106051
2011-07-22T15:39:51
2011-07-22T15:39:51
528,424
0
0
null
null
null
null
UTF-8
Python
false
false
1,165
py
# -*- coding: utf-8 -*- from imagekit import processors from imagekit.specs import ImageSpec class ResizeDisplay(processors.Resize): width = 800 height = 800 class Display(ImageSpec): processors = [ResizeDisplay, ] class ThumbDisplay(processors.Resize): width = 80 height = 80 cl...
[ "mansellfan@gmail.com" ]
mansellfan@gmail.com
6d00a47bea0f21c205fe7a23b59e03cab7808ad9
93c10825c0442dbbdccc3fe79c321dfa4b716e64
/article/prepro.py
e1c5124ce98d50b7c25584058aff3d842cc8519e
[]
no_license
hzhang131/research
37c37478d8ce740b19566c008cecff4989c22c9f
0f04a5986d9dee4b268cbfbb647209b525362265
refs/heads/master
2023-01-01T19:40:33.653542
2020-10-24T11:52:20
2020-10-24T11:52:20
305,125,441
0
0
null
null
null
null
UTF-8
Python
false
false
25,675
py
import pandas import wikipediaapi import wikipedia import csv import re from collections import Counter import numpy as np from sklearn.feature_extraction.text import TfidfVectorizer, CountVectorizer, HashingVectorizer from sklearn.svm import OneClassSVM import json import re import nltk from sklearn.svm import SVC fro...
[ "zhanghongshuo@MacBook-Pro-5.local" ]
zhanghongshuo@MacBook-Pro-5.local
b0f9d17a9f5562e351378ebc5872b0ee1c592875
778896ead2f15578b7bb6bb4b664070289145abf
/dataset.py
7dd0fc92edaf27f3c19e57a1fab020b5159db27b
[]
no_license
bognarpeter/satellite-image-analysis
4e412e08765fd2317c33ca36737637c28da1cfac
79ef085026a9c2c4e7898ef86e63c57d779b7b2d
refs/heads/master
2023-08-01T04:19:55.932424
2021-09-29T15:24:08
2021-09-29T15:24:08
411,719,123
0
0
null
null
null
null
UTF-8
Python
false
false
1,675
py
import os from PIL import Image from torch.utils.data import Dataset import numpy as np SPLIT_CHARACTER = "_" MASK_COLOR_MAP = "L" MASK_BASE_NAME = "mask" def normalize_array(array): """""" dividend = array - np.min(array) divisor = np.max(array) - np.min(array) if divisor == 0: return array ...
[ "bognarpaeter@gmail.com" ]
bognarpaeter@gmail.com
f6839412a0ad934cf2b91b2707a7ce0d41f7e5be
7e637a8bf79688aafaf9a02b6ed2bef6d22eefc7
/aispace/models/base_pretrained.py
a9cdf9b4f3a20db6bd68f2326e7b0a8bd6a9d226
[ "Apache-2.0" ]
permissive
yingyuankai/AiSpace
ebda1e9b2edda4bd7bcd5e41f4b6a49e9085003e
54e8886e4dad2a6b5b45c48d8a98a42eb77d2406
refs/heads/master
2023-03-10T18:16:35.418289
2023-02-16T04:13:15
2023-02-16T04:13:15
232,947,595
32
4
Apache-2.0
2022-11-22T02:45:33
2020-01-10T02:21:26
Python
UTF-8
Python
false
false
3,270
py
# -*- coding: utf-8 -*- # @Time : 2019-11-04 19:35 # @Author : yingyuankai # @Email : yingyuankai@aliyun.com # @File : pretrained_base.py import logging from pathlib import Path from abc import ABCMeta, abstractmethod import tensorflow as tf from aispace.utils.hparams import Hparams from aispace.utils.file_u...
[ "yingyuankai@sogou-inc.com" ]
yingyuankai@sogou-inc.com
38fd11aa7c506efa49b6de2a5c4c9d8db6977752
0667af1539008f9c6c0dcde2d3f50e8bbccf97f3
/source/rttov_test/profile-datasets-py/div83/070.py
2f10763fdc3f1b7acb4813b3e935a503943ac821
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
bucricket/projectMAScorrection
bc6b90f07c34bf3e922225b2c7bd680955f901ed
89489026c8e247ec7c364e537798e766331fe569
refs/heads/master
2021-01-22T03:54:21.557485
2019-03-10T01:47:32
2019-03-10T01:47:32
81,468,938
0
0
null
null
null
null
UTF-8
Python
false
false
13,446
py
""" Profile ../profile-datasets-py/div83/070.py file automaticaly created by prof_gen.py script """ self["ID"] = "../profile-datasets-py/div83/070.py" self["Q"] = numpy.array([ 2.96115100e+00, 3.39443800e+00, 4.23145200e+00, 5.32973200e+00, 5.94539500e+00, 5.61806800e+00, 5.3393...
[ "bucricket@gmail.com" ]
bucricket@gmail.com
07d557b67c5f57d0bc58e144628ef21653545f9f
ff8db86ce558e57f7b24f8f6d890a3154f6d948f
/neutron_plugin_contrail/plugins/opencontrail/loadbalancer/v2/loadbalancer_member.py
bcc4781fbd29f19c81389f17ff651e751bc75193
[ "Apache-2.0" ]
permissive
lungdear/tf-neutron-plugin
143740d1cafb93f4cbe672e53a609c4771be6833
d19e758673e1e28bf8b270b8e934857014a46cdf
refs/heads/master
2022-12-04T21:18:39.869684
2020-08-08T13:32:59
2020-08-11T20:06:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,424
py
# # Copyright (c) 2014 Juniper Networks, Inc. All rights reserved. # import uuid from neutron_lbaas.extensions import loadbalancerv2 try: from neutron.openstack.common import uuidutils except ImportError: from oslo_utils import uuidutils try: from neutron.common.exceptions import NotAuthorized except Imp...
[ "andrey-mp@yandex.ru" ]
andrey-mp@yandex.ru
33aac62c06dca320ef84cbca693af39b9e8b6757
ee6caf788762d7e297aed4c291b20012ed681410
/92. Codeforces/R73-C.py
25419f28edf76623870b575c939e5b06d5e7ad59
[]
no_license
dmlimgo/Problem-Solving
61ea51f1737f572714bc5030470a73a6e0339336
c265ccac046b3e87c34d014876fde11f33a15ed9
refs/heads/master
2020-08-30T15:45:08.895947
2020-02-02T14:45:28
2020-02-02T14:45:28
218,424,679
0
0
null
null
null
null
UTF-8
Python
false
false
428
py
Q = int(input()) for q in range(Q): c, m, x = map(int, input().split()) if c == 0 or m == 0: print(0) continue if min(c,m,x) == x: c -= x m -= x b = max(c, m) s = min(c, m) if (s+b)//3 > s: print(s+x) else: print((s+b)//...
[ "dongmyeong.lim@gmail.com" ]
dongmyeong.lim@gmail.com
8ffa50442984e8f6275b53067b3c5253870efedf
e978b784d8fcc8f9a79a3bcd58c6dec3a9f50545
/src/ETL/exceptions.py
a5fbc2312536fb3d19e8733621854630ca36b105
[]
no_license
mmetelytsia/etl_project
2a9e80c586dbbe9c96f1915022451dcc51e8e828
33f65c64b1e75eeec574ab84727a82b4be0ef73b
refs/heads/master
2021-01-20T12:49:43.491569
2017-05-07T22:56:53
2017-05-07T22:56:53
90,413,229
0
0
null
null
null
null
UTF-8
Python
false
false
1,245
py
"""Exceptions raised by ETL.""" class EtlError(Exception): """Base class for all ETL exceptions.""" class EtlTransformException(EtlError): """Base class for all ETL transform exceptions. Attributes: record -- input record in which the error occurred fields -- input fields in...
[ "mariya.metelitsa@gmail.com" ]
mariya.metelitsa@gmail.com
4309e198e50c8cdd0ffbbd7d0ff4b1b9bf70e148
f45ec7eaa2da46f126bc43cc8c8d855853ff903e
/helper/newTrace/WorkloadE/newgraphWithMem.py
fe63ef998963d92dc77e578c613d76fd52785263
[]
no_license
grantwra/Benchmark_withJson
a593f6d366b3d6037eb4f795c1bfbd620ece4e15
363b6b6976673b82b38d7fe1ebbc2fd9711294a4
refs/heads/master
2020-12-01T19:17:46.137817
2017-02-02T20:35:32
2017-02-02T20:35:32
65,847,561
0
0
null
null
null
null
UTF-8
Python
false
false
6,497
py
#usage: python newgraph.py 'filename' SQL || BDB import sys import matplotlib.pyplot as plt import numpy as np filename = sys.argv[1] start = 0 c_switch = 0 sched_timestamps = [] sched_switches = [] cumulative_time = 0 cumul_time = [] block = {} block_op_type = {} block_insert = 0 block_complete = 0 block_inserted ...
[ "grantwra@buffalo.edu" ]
grantwra@buffalo.edu
c8e50a2f806e941cfcfc95dfe3ee375f2a3bcde0
1a62763db43f03f79e81c4a9a06745fd22c9f0bf
/键盘监听/TCPserver.py
1b778dd2941d10531e72d93cbc48901c56d00d95
[]
no_license
wly92645492/auxiliary_amusement
20a2c700cd43313e2d9b1e41caa7cc1291616571
72f7fa4e01f683b7ff5b3d3202e273d7defbf370
refs/heads/master
2020-03-15T19:16:00.935556
2018-05-06T03:29:32
2018-05-06T03:29:32
132,304,364
1
0
null
2018-05-06T03:46:28
2018-05-06T03:46:27
null
UTF-8
Python
false
false
714
py
# -*- coding: utf-8 -*- import socket import threading '''服务器端''' # 监听的IP及端口 bind_ip = "127.0.0.1" bind_port = 9999 server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) server.bind((bind_ip, bind_port)) server.listen(5) print "[*] Listening on %s:%d" % (bind_ip, bind_port) def handle_client(client_socket)...
[ "2990599771@qq.com" ]
2990599771@qq.com
6b75e66b7182ecc217fcf6cf12e24451b43ad307
aa9647e01ace505d9c70e5247af0bce6749bdc45
/src/db.py
b34ffc4a33947da398cf2efb32ceeecdd3a2e601
[ "MIT" ]
permissive
cgDeepLearn/pyserver
83853875dc33173eb3ae72b2e70c7db2c9ba3404
5a5e23ccafcc203b2d70eef289ec618ff9da0481
refs/heads/main
2023-01-29T05:45:52.110262
2020-12-09T09:03:33
2020-12-09T09:03:33
311,908,364
0
0
MIT
2020-11-16T08:39:29
2020-11-11T08:29:55
Python
UTF-8
Python
false
false
5,075
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @File : db.py # @Author : cgDeepLearn # @Create Date : 2020/11/16-3:30 下午 import redis from conf import config import pymysql from DBUtils.PooledDB import PooledDB from utils.log import logger class RedisOps(object): FIELD_EXIST = 0 NEW_FIELD = 1 def __i...
[ "cglearningnow@163.com" ]
cglearningnow@163.com
be4400b3dcf28fcef63096ca84ec60477babb536
cab4b8c9501100ceb30f4850ee2d2879122a247f
/app/recommendMe/myapp/models.py
f45e8cd01cabbb6ab54916e81a0aaf34c2630d2a
[]
no_license
Projet-de-fin-d-annee-2018-2019/Deployment
8992e6736be78ef922f97c370187d5c834275d79
2f623347d590a8ca78461e3119525eb34f0bd2eb
refs/heads/master
2020-07-20T05:37:46.127499
2019-09-05T14:24:48
2019-09-05T14:24:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
300
py
from django.db import models class User(models.Model): username = models.CharField(max_length=100) bio = models.CharField(max_length=100) following = models.CharField(max_length=10000) postsCaption = models.CharField(max_length=10000) categorie = models.CharField(max_length=100)
[ "kilaniiheb7@gmail.com" ]
kilaniiheb7@gmail.com
2b42cfa22e89b7be651d4fd61e31b787d463031c
6c732bae3f33a411a9bfa743cbf6cc7897eff371
/src/buffer.py
efe0f0eba641a5b3366d6386098c21d5781bd264
[]
no_license
JoshuaSFryer/5001-simulation-project
0d8c8425f23fc614006032101a8f91017d23a734
c20daac96592a653748f7149a32dc6c2971d3d6d
refs/heads/main
2023-04-06T20:54:06.752859
2021-04-11T21:40:32
2021-04-11T21:40:32
339,490,496
1
1
null
null
null
null
UTF-8
Python
false
false
988
py
from component import ComponentType BUFFER_MAX_SIZE = 2 class Buffer: """ Queue-like buffer that stores components. """ def __init__(self, type:ComponentType): self.component_type = type self.contents = list() def enqueue(self, type:ComponentType): if not type == self.com...
[ "josh.s.fryer@gmail.com" ]
josh.s.fryer@gmail.com
4adbb6e8afd7e434e7586c6ae23f649c7c704138
ea2ca23c1aa6f5de744179097ef625d30b5514f0
/battery.py
6b0aec623cdbaa9eebcebfc9677a83747575b5f0
[]
no_license
isovector/oh-my-zsh
998f11a3b1b9f7aefa97458f803d29a8ae4ad66c
28bbad0e768954c0fad4cb51e8530bfea489a8b9
refs/heads/master
2021-01-16T19:53:26.932483
2015-02-19T06:10:00
2015-02-19T06:10:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
838
py
#!/usr/bin/env python2 # coding=UTF-8 import sys import time import math import string import subprocess p = subprocess.Popen(["acpi"], stdout=subprocess.PIPE) output = string.split(p.communicate()[0]) percent = int(output[3][:-2]) if output[2] != "Full," else 100 width = 10 if output[2] == "Discharging,": full...
[ "sandy.g.maguire@gmail.com" ]
sandy.g.maguire@gmail.com
b83ac96495802bc70de9465246f93274976fccef
4203c5d6a932bd917cc549d56de1e9c73e06522f
/src/boc/pipelines/data_science/nodes.py
7b297e8785d75e6656342941e60cf6821407e1f8
[]
no_license
astronomer/kedro-ge-airflow
41e5463753dcd75562c496cd8b3ca13e68321777
de0dfc1cb1714be904fced0a0164e6f7d1f52f9b
refs/heads/main
2023-07-14T12:26:46.885765
2021-08-26T13:38:33
2021-08-26T13:38:33
353,138,100
5
3
null
null
null
null
UTF-8
Python
false
false
4,147
py
# Copyright 2021 QuantumBlack Visual Analytics Limited # # 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 # # THE SOFTWARE IS PROVIDED "AS IS",...
[ "kentendanas@Kentens-MacBook-Pro.local" ]
kentendanas@Kentens-MacBook-Pro.local
15c2f5343620cc2bd92a19eaf89edeb81b65f80d
ba3bdea3133e8efc33498b80169be6d7b103c3c4
/blog/admin.py
75bf66c97971eb9575a109a0c665834e1c29b43c
[]
no_license
kurtchen1988/my_blog
c7e714ae2ec7fcc1336c36b8c4b1d366ffdd311c
abc7002e654362a32bca1c699a9cf98866654bc1
refs/heads/master
2022-12-21T05:11:46.955819
2018-11-05T12:27:30
2018-11-05T12:27:30
154,171,969
0
0
null
2022-12-11T12:17:23
2018-10-22T15:52:26
Python
UTF-8
Python
false
false
475
py
from django.contrib import admin # https://docs.djangoproject.com/en/2.1/ref/contrib/admin/ from .models import BlogType, Blog # Register your models here. @admin.register(BlogType) class BlogTypeAdmin(admin.ModelAdmin): '''注册博客类型''' list_display = ('id', 'type_name') @admin.register(Blog) class BlogAdmin(admin.Mod...
[ "kurtcobain1988824@hotmail.com" ]
kurtcobain1988824@hotmail.com
3b9a8c542f7180818a301d2cb4f2baa8e4146092
6cdbc4f559cc9d61f172830718dc1448dfbf0808
/guessing-game-work.py
ed3f0291e6ac16217540f47cdac742dffb12e117
[ "Apache-2.0" ]
permissive
register448866/Python-Samples
90c4b94ca5018b3b4d2a1db87668a623d0c4366e
a18fc707864a6f8169f20a7b828a8789c4ba283c
refs/heads/master
2020-06-08T13:38:38.336360
2019-06-22T00:38:42
2019-06-22T00:38:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,474
py
import random print() print('~~~~~~~~~~~~~~') print('★ GUESS THE MAGIC NUMBER ★') print('~~~~~~~~~~~~~~') print() print('''Instructions: The computer has randomly generated a magic number between 1 and 50 and it is your job to guess what that number is! Every time you guess a number, the computer ...
[ "tvpatel01@gmail.com" ]
tvpatel01@gmail.com
68047e4d757b39b366f8eff2dd9ffd35400847c5
8cacd666c2a022da32bd7825c973225a7c96507c
/lowercase5.py
ac8eb2f4a123183614175ba56c05c78c4ffeae98
[]
no_license
AkhtarZainab/Python_Programming
24331ab5e38b0f572fd65590443ef941317ce9ae
8e0641629283b0dfd0cd9f8410e6306afeeec183
refs/heads/master
2022-12-11T15:54:22.438842
2020-09-10T05:28:51
2020-09-10T05:28:51
294,078,916
0
0
null
2020-09-10T05:28:53
2020-09-09T10:25:56
Python
UTF-8
Python
false
false
323
py
def any_lowercase5(s): for c in s: if not c.islower(): return False return True print(any_lowercase5('DAY')) print(any_lowercase5('Day')) print(any_lowercase5('dAY')) print(any_lowercase5('day')) print(any_lowercase5('DAy')) print(any_lowercase5('dAy')) print(any_lowercase5('daY...
[ "noreply@github.com" ]
AkhtarZainab.noreply@github.com
673c01d2d26270daffb217e67049c5f9edc1b729
c5487a0ab6ac1bf03cdb5e6942d1581ba863c5a9
/pgs_venv/bin/django-admin.py
297ad9bd8e56bf6cc9da1c48fa4b85f3270adebb
[]
no_license
Veldyale/books_projects
4d4a76ad17fffc32d631d333c506b0cd8292513f
f1139100ebf195f8162aa1f3239e10ba1195c813
refs/heads/master
2023-06-22T06:13:46.150921
2021-07-20T04:36:14
2021-07-20T04:36:14
387,556,627
0
0
null
null
null
null
UTF-8
Python
false
false
704
py
#!/Users/veldyale/PycharmProjects/books_projects/pgs_venv/bin/python3 # When the django-admin.py deprecation ends, remove this script. import warnings from django.core import management try: from django.utils.deprecation import RemovedInDjango40Warning except ImportError: raise ImportError( 'django-ad...
[ "veldyale@icloud.com" ]
veldyale@icloud.com
4f66898e78968d145cadffd50f0fbaa0bc24e6f1
3b1daac7c1f72b985da899770d98e5f0e8fb835c
/Configurations/VBS/2017CR_v7/plot.py
98e0a0b236687fec6d81492a000ee0a41787e122
[]
no_license
freejiebao/PlotsConfigurations
7e10aa45aa3bf742f30d1e21dc565d59d2a025d8
cdfd3aff38d1ece9599a699997753bc8ba01b9b1
refs/heads/master
2020-06-18T19:22:00.561542
2019-09-02T12:52:28
2019-09-02T12:52:28
186,931,874
0
0
null
2019-05-16T01:58:07
2019-05-16T01:58:07
null
UTF-8
Python
false
false
1,009
py
# plot configuration # groupPlot = {} # # Groups of samples to improve the plots (merge different sample during plot). # If not defined, normal plots is used # Red=632; Violet=880; Green=416; Orange=800; Yellow=400; Azure=860 groupPlot['non-prompt'] = { 'nameHR' : 'non-Prompt', ...
[ "jiexiao@pku.edu.cn" ]
jiexiao@pku.edu.cn
bc7735fce206af38f2cf083763163c375849f5e8
bf6e6e7be2323c3fb99a9998c67ad1975e7b80d4
/0_startcamp/day 3/am_i_lucky_practice2.py
84cbb7786711dd6314a9ded68b43bc9094597265
[]
no_license
temporarykwon/TIL
04fdf98ba7f9ebfa09a17e62782f9849c649fddc
83f31898e0237d2b330fce6f1679cd1d7865088e
refs/heads/master
2020-04-12T02:51:16.895716
2019-01-18T11:22:11
2019-01-18T11:22:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
516
py
my_numbers = set([1, 2, 3, 4, 5, 8]) real_numbers = set([1, 2, 3, 4, 5, 6]) bonus = 7 match_count = len(my_numbers & real_numbers) print(match_count) if match_count == 6: # same meaning of if diff == 0: print('1등') elif match_count == 5 and bonus in my_numbers: print('2등') elif match_count == 5: print('3등...
[ "kwonzoidsbob@gmail.com" ]
kwonzoidsbob@gmail.com
d01e1db1a3d1d0bce24766f0e241c2a7a9923a0f
665b89f2472f5cf7eb441609eb112109b7381884
/weblatex/migrations/0003_song_attribution.py
98e7a851e1a47ea4155fcbc38063165cc4d344cb
[]
no_license
Mortal/weblatex
5807bf25ea0d6a371e9fc6f0094f7e7375645b6c
9c841f9ec226e99f38b6e0c4f12e03535d2c06de
refs/heads/master
2020-05-14T11:53:08.299274
2016-12-23T12:03:50
2016-12-23T13:43:52
24,682,829
1
1
null
null
null
null
UTF-8
Python
false
false
499
py
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2015-12-31 09:16 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('weblatex', '0002_auto_20151227_1835'), ] operations = [ migrations.AddField( ...
[ "rav@cs.au.dk" ]
rav@cs.au.dk
86becf57eeeb0f2a8248353ca18e87287e8803a6
abb001be844fff06a9aa7b1662094432547d1f8b
/codeit/leisure1.py
c7f9304d3c0ae9f5ff89f89f6924211362cb41c8
[]
no_license
lim-so-hyun/my_project
93cff7ccccef8e05fc036d7a8042a2e806bd5a98
a17ba91ac8736e9943685357ad9d9e903360160c
refs/heads/main
2023-06-04T23:47:57.772353
2021-06-24T14:49:57
2021-06-24T14:49:57
332,143,731
1
0
null
null
null
null
UTF-8
Python
false
false
1,170
py
import pandas as pd import matplotlib.pyplot as plt leisure_2019 = pd.read_csv('leisure.txt', sep="\t", encoding = 'utf8', index_col = 1) leisure_2019.drop('기간', axis='columns', inplace=True) leisure_2019.replace('(.*):(.*)', r'\1.\2', regex=True, inplace=True) # Dataframe 전체에 있던 : 를 .로 변경하기 위한 정규표현식. 그래야 숫자로 취급가능할 것...
[ "76216512+lim-so-hyun@users.noreply.github.com" ]
76216512+lim-so-hyun@users.noreply.github.com
d2b0c1495e93219e94d9bd2315ce951915cea7a6
5961fd8dd1c047b85e9a3cce22b0fc58c575f420
/vrep_gym/vrep/__init__.py
b34ea56993ac6e586538ea2ba336f0c42cf51cde
[]
no_license
anand-bala/vrep-gym
edcc0603cdf5e7513c7fe198372e3af9c4413f03
a9066c689dae9639b67b16a8390b17a8985015e7
refs/heads/master
2020-04-24T22:50:06.780116
2019-02-28T03:01:18
2019-02-28T03:01:18
172,324,301
0
0
null
null
null
null
UTF-8
Python
false
false
98
py
from vrep_gym.vrep.api import VREPSim, VREPObject __all__ = [ 'VREPSim', 'VREPObject', ]
[ "anandbala1597@gmail.com" ]
anandbala1597@gmail.com
8606b6c98479d61f17568b1a216d7c5c7ac358b1
dbf8dbbfdad118e0b8ca22afe2f01b31c316d35c
/wishApp/wish/views.py
8d91a2b6a85e36430a2a2efab4cbe5f963691898
[]
no_license
Anoldyogi/Django-Projects
9d8008d9685afe47a51747c026ae8f8a9bc88387
70acd8c4f483bd17acaf884a1f6d66a473d79b1d
refs/heads/master
2020-08-27T09:00:38.518026
2019-11-18T05:13:06
2019-11-18T05:13:06
217,309,727
0
0
null
null
null
null
UTF-8
Python
false
false
441
py
from django.shortcuts import render from django.http import HttpResponse import datetime # Create your views here. def wishing(request): date=datetime.datetime.now() h=int(date.strftime('%H')) msg="<h1> Hello Friends How are you " if h<12: msg=msg+" GM " elif h<16: msg=msg+" GA " elif h<21: msg=msg+" GE " ...
[ "dhami.yogesh@gmail.com" ]
dhami.yogesh@gmail.com
b48dcf9f5b7d59b2d1a5af62864c0e213f7ea7d7
2ab2b78fe54755ba3f653cf34b5f70bd1cb02660
/manager/migrations/0010_auto_20190204_2339.py
10b93fc95dd74af90f5c71c0b23b1880cd6eb837
[]
no_license
rezasblade/cotslandwick
0658b0554bcb0e508ddd855dfaee549e59ec3aa8
c62a48d9867d57671be3e1c5f84a4ea2e0f305f2
refs/heads/master
2020-04-18T05:03:24.668983
2019-02-22T17:34:01
2019-02-22T17:34:01
167,262,732
0
0
null
null
null
null
UTF-8
Python
false
false
582
py
# Generated by Django 2.1.2 on 2019-02-04 23:39 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('manager', '0009_player_preferredfoot'), ] operations = [ migrations.AddField( model_name='player', name='position', ...
[ "Rezasblade@gmail.com" ]
Rezasblade@gmail.com
30439a393e056cc7000eab110322533ac9ba4ff9
0d9e5e1d10fd8a0692f1bc77122499991e071d63
/week4-python/ImageSmoothing/boxBlur.py
64e6096da81b84b735028ad8e0a5be626d3c7b62
[]
no_license
gpokhark/OpenCV-CV1
06ec457d263b75c4789b0a7a2a7248f573a99d8a
487f2ce145802b8261c921c4e646d0c67670e1fa
refs/heads/master
2022-12-13T08:18:06.059507
2020-09-07T21:55:51
2020-09-07T21:55:51
262,436,580
1
0
null
null
null
null
UTF-8
Python
false
false
485
py
import cv2 import numpy as np from dataPath import DATA_PATH filename = DATA_PATH+"images/gaussian-noise.png" # Load an image img = cv2.imread(filename) # Apply box filter - kernel size 3 dst1=cv2.blur(img,(3,3),(-1,-1)) # Apply box filter - kernel size 7 dst2=cv2.blur(img,(7,7),(-1,-1)) cv2.imshow("Original Image...
[ "gpokhark@gmail.com" ]
gpokhark@gmail.com
77d2fa83d35599a5b053874fa4654b5d4fae6602
7e72c17745625a1dd4d04f1787c1d2b7bd90642f
/htmlgen/attribute.pyi
7d17093d5f6cc7d37287a665c5b87a2b0710bba8
[ "MIT" ]
permissive
ra2003/python-htmlgen
27de75b94ad3b635caf11d26fa64f4a19e543668
cbe74d89acd655b78ffe12773b16ef2036502514
refs/heads/master
2022-04-08T10:37:36.265349
2020-03-11T13:46:53
2020-03-11T13:46:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,239
pyi
import datetime from typing import Optional, List, Iterable from htmlgen.element import Element class html_attribute(object): def __init__( self, attribute_name: str, default: Optional[str] = ... ) -> None: ... def __get__( self, obj: Element, type: Optional[type] = ... ) -> Optional[s...
[ "srittau@rittau.biz" ]
srittau@rittau.biz
9ca45cc581947b9ffa18024c1e68fc812623bfaa
3036ea8b4385deaf9942d43f95308e249c140e0e
/test_weight_entry.py
6ad2229e520fe5f5575d21f2f978fef2ed045d16
[]
no_license
hbprice65/classworkFall21
0800a84fe4ab054f38936a6903e40993f48db0eb
9fe79d4e2c871a9d78d87cfbed4b224cf1079111
refs/heads/main
2023-08-14T16:13:08.628062
2021-09-20T16:34:45
2021-09-20T16:34:45
399,880,892
0
0
null
2021-09-20T16:34:46
2021-08-25T16:09:17
Python
UTF-8
Python
false
false
385
py
import pytest @pytest.mark.parametrize("input, expected", [ ("22 lb", 10), ("50 kg", 50), ("22.1 lb", 10), ("22 lbs", 10), ("22 KG", 22), ("22 Kg", 22), ("-22 lb", -10) ]) def test_parse_weight_input(input, expected): from weight_entry import parse_weight_input an...
[ "hp48@duke.edu" ]
hp48@duke.edu
13a098a9ebdc2fc23baad794b07470c3bd331964
b149879b16639d9d2f40eeb8dd289a2658aadad1
/Projects/PythonGame/Snake.py
67bba84855fc9df205628c8b65418d6b9c93233d
[]
no_license
buptlrr/PythonProjects
49c54b8f8c45906802823df196a170b90e9dcf68
ba641861f6e3f5ad9ebe2e8236c674d8acd1e5c4
refs/heads/master
2021-01-01T19:46:20.511724
2014-11-15T06:58:03
2014-11-15T06:58:03
26,671,393
1
0
null
null
null
null
UTF-8
Python
false
false
3,651
py
from Tkinter import * import random class snake(Frame): def __init__(self, master=None): Frame.__init__(self, master) self.body = [(0,0)] self.bodyid = [] self.food = [ -1, -1 ] self.foodid = -1 self.gridcount = 10 ...
[ "l007rr@bupt.edu.cn" ]
l007rr@bupt.edu.cn
b31a19f61f75d84e9c43cae789ca4a9fafb8dfc3
3cae667175b2d6aac6d7f3d8189e9a02c38ea1cf
/AOJ/ITP1/python/ITP1_3_B_Print_Test_Cases.py
01ada1baf19ee14e9ca3f502aaf3c19915bc6f52
[]
no_license
kokorinosoba/contests
3ee14acf729eda872ebec9ec7fe3431f50ae23c2
6e0dcd7c8ee086650d89fc65616981361b9b20b9
refs/heads/master
2022-08-04T13:45:29.722075
2022-07-24T08:50:11
2022-07-24T08:50:11
149,092,111
0
0
null
null
null
null
UTF-8
Python
false
false
264
py
for i,e in enumerate(list(open(0))[:-1],1):print(f'Case {i}:',e,end='') """ i=1 while 1: n=input() if n=="0": break print(f"Case {i}: {n}") i+=1 """ """ import sys for i,x in enumerate(sys.stdin,1): if x=="0\n":break print(f"Case {i}: {x}",end="") """
[ "34607448+kokorinosoba@users.noreply.github.com" ]
34607448+kokorinosoba@users.noreply.github.com
8b30cb6bd87a5879669d17eadf69b563911511f2
c876544555a8903ba83934130685897f7960feb3
/nanonispy/tests/test_read.py
2f2174099d23a01add632126707aba98f5c26ed1
[ "MIT" ]
permissive
Ex-libris/nanonispy
61f882e405854c9a7bea4caf9767e2cd9916b14c
0183c1147d160825b5c2c5c9e39e51efe033ce86
refs/heads/master
2021-07-14T10:04:58.591597
2017-07-07T01:30:24
2017-07-07T01:30:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
14,965
py
import unittest import tempfile import os import numpy as np import nanonispy as nap class TestNanonisFileBaseClass(unittest.TestCase): """ Testing class for NanonisFile base class. """ def setUp(self): self.temp_dir = tempfile.TemporaryDirectory() def tearDown(self): self.temp_di...
[ "yanns.tremblay@gmail.com" ]
yanns.tremblay@gmail.com
e894dd2c0042e872525cb05a134c54ed4c900387
62e58c051128baef9452e7e0eb0b5a83367add26
/x12/5010/317005010.py
bae484c5693cbe1c4f44c01024c8ae9c43673514
[]
no_license
dougvanhorn/bots-grammars
2eb6c0a6b5231c14a6faf194b932aa614809076c
09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d
refs/heads/master
2021-05-16T12:55:58.022904
2019-05-17T15:22:23
2019-05-17T15:22:23
105,274,633
0
0
null
2017-09-29T13:21:21
2017-09-29T13:21:21
null
UTF-8
Python
false
false
756
py
from bots.botsconfig import * from records005010 import recorddefs syntax = { 'version' : '00403', #version of ISA to send 'functionalgroup' : 'SO', } structure = [ {ID: 'ST', MIN: 1, MAX: 1, LEVEL: [ {ID: 'N1', MIN: 1, MAX: 10, LEVEL: [ {ID: 'N2', MIN: 0, MA...
[ "jason.capriotti@gmail.com" ]
jason.capriotti@gmail.com
524abfd28d64a72146e89166fa64fa9a07ed750f
32e63a555fddecd5365854d4d509e8f6c10389f6
/33.py
7acbe2d483c886cc98e4cfdc190f485fa40ca905
[ "MIT" ]
permissive
sukirt01/Python-for-Beginners-Solve-50-Exercises-Live
8ef11558a7ca48f37d5086ead639deba018bf21c
bb26f0aea6c07e91c011614faf180f4361fbabdc
refs/heads/master
2022-12-24T23:41:46.216194
2020-10-03T15:42:51
2020-10-03T15:42:51
300,915,104
0
0
MIT
2020-10-03T15:42:52
2020-10-03T15:39:05
Python
UTF-8
Python
false
false
806
py
''' According to Wikipedia, a semordnilap is a word or phrase that spells a different word or phrase backwards. ("Semordnilap" is itself "palindromes" spelled backwards.) Write a semordnilap recogniser that accepts a file name (pointing to a list of words) from the user and finds and prints all pairs of words that are...
[ "garg10may@gmail.com" ]
garg10may@gmail.com
ef666dd55a79a37dd98a1d01931f9f8bacf94013
b4527ccdc9dd8b525deee070653f3ab0f14e28cd
/CarParser/CarParser.py
66e2dfbd6c025ba3598c7dfa058656451ed6d65d
[]
no_license
HardCorn/pythonScripts
041f1dd9d1378f1db8b9f39668dd2ea72aa9802a
090a47f6a126d1ac86133de1ca779f566887a739
refs/heads/master
2021-04-28T17:11:30.193737
2018-07-08T18:36:33
2018-07-08T18:36:33
121,848,417
0
0
null
null
null
null
UTF-8
Python
false
false
4,827
py
import csv import os class BlankObj: def __init__(self, blank=None, is_exception=False): self.blank = blank if not (is_exception and not issubclass(type(blank), BaseException)) else BaseException(blank) self.is_exception = issubclass(type(blank), BaseException) or is_exception def __repr__(se...
[ "kuz-proper@list.ru" ]
kuz-proper@list.ru
647edb53f15bd0f4088b90b39be7f5102ec74ab1
dcc42d24c7b01501176acf5a9e0900c5691a71eb
/sar_strategy.py
7ff9c818cbb023535d2860a8bb31184de5dd78f4
[]
no_license
zihpzhong/mexbot
cf316d7fa2f506be192e351d2df5cbbf24cb5b37
d87cb02c0b036c9db1357e18c04f5b41b25b9e7d
refs/heads/master
2020-03-23T08:47:19.372628
2018-07-17T08:30:08
2018-07-17T08:30:08
141,345,453
7
5
null
null
null
null
UTF-8
Python
false
false
1,636
py
# -*- coding: utf-8 -*- from strategy import Strategy from indicator import * def sar_strategy(ticker, ohlcv, position, balance, strategy): # インジケーター作成 vsar = last(fastsar(ohlcv.high, ohlcv.low, 0.02, 0.06, 0.2)) # ロット数計算 qty_lot = int(balance.BTC.free * 0.02 * ticker.last) # 最大ポジション数設定 strateg...
[ "arms22@gmail.com" ]
arms22@gmail.com
0042aba77e768718882348e47951b934c08e2a9d
c2a168ec9e91415eeadd53ba6042e614c3e8460c
/benchmark_features/hpopt_1/hpop_test_1/ht_98.py
c901ea3fa3afaaad12754f331e2d90ee977f80d9
[]
no_license
LiYanChalmers/BoschProductionLine
530098a9de0d08332511b24a31cdd4b4ec5473fb
de864e55be0e8cd174ccacb06afc77e3dc9ec42a
refs/heads/master
2020-03-21T20:29:14.134812
2018-09-03T08:10:08
2018-09-03T08:10:08
139,010,159
5
0
null
null
null
null
UTF-8
Python
false
false
2,487
py
# -*- coding: utf-8 -*- """ Template for CV parameter search Tasks: 1. CV 2. Train model 3. Predict on test set 4. Save a. CV results b. models trained in CV c. model trained on the whole train set d. predictions on test set To-do: 1. Use models in CV to predict on ...
[ "li.yan.chalmers@gmail.com" ]
li.yan.chalmers@gmail.com
64a16cee3a63dd8751894635b665e2f63df51a93
caebdf8f0b4349b4b465865d7ef8ae4436f5769f
/tfidf.py
6d63c1514f904dda4acaac978bc96b72b08e4e8a
[]
no_license
ngoduyvu/DeeepSense-Project
5cbfd54a5bf1f42e5923cfd709fb98f2d23263e0
92a0516b95455ed7e305f9f8a291f8d3d10ea2e4
refs/heads/master
2021-01-19T16:40:43.848524
2017-11-27T00:05:17
2017-11-27T00:05:17
101,017,153
0
0
null
null
null
null
UTF-8
Python
false
false
5,673
py
# -*- coding: utf-8 -*- """ Created on Thu Aug 31 09:06:33 2017 Author: Ngo Duy Vu Project:DeeepSense customer review TF-IDF and cosine distance to find the similar document and keywords """ import math import operator import string from nltk.corpus import stopwords from autocorrect import spell fro...
[ "noreply@github.com" ]
ngoduyvu.noreply@github.com
ac68fecbfa4b730b98452c152b6d456abb68da9c
1ea081d37694edf58826724708f5a252b6f059bd
/akad/SnsAdaptorService.py
f4f03991b17798881eb85b37ceb63ff08e7629de
[ "Apache-2.0" ]
permissive
line-bot-oss/oss-bot
4169b1a97190b97964f902bd6b81c89f7c9764b6
1efc1220fb2a308789fa5cfc618a6ae4a22a09d4
refs/heads/main
2023-06-12T16:54:47.534742
2021-07-02T09:10:42
2021-07-02T09:10:42
381,408,717
0
0
null
null
null
null
UTF-8
Python
false
true
25,974
py
# # Autogenerated by Thrift Compiler (0.12.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # # options string: py # from thrift_0_13_0.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException from thrift_0_13_0.protocol.TProtocol import TProtocolException from thrift_0...
[ "admin@nanato12.info" ]
admin@nanato12.info
e4be1f6b38a590a47708ccab19dd9239e95fc5fc
57eb5f0832f0684fcae7ac84adb0925a2b081cee
/process.py
272073636bc6d3aa79a7bc4308373755f21d7f71
[]
no_license
unit02/370A1
4ccefcf626f1ac6d6bb728ed799e792c39a3e013
d7a298f27b208e037530b1d81686a689b910acf8
refs/heads/master
2020-04-15T17:06:59.247244
2015-08-16T07:53:58
2015-08-16T07:53:58
40,747,383
0
0
null
null
null
null
UTF-8
Python
false
false
2,664
py
# A1 for COMPSCI340/SOFTENG370 2015 # Prepared by Robert Sheehan # Modified by ... # You are not allowed to use any extra sleep calls. import threading import _thread from random import randint from time import sleep from enum import Enum Type = Enum("Type", "background interactive") State = Enum("State", "runnable ...
[ "elizaorchard@gmail.com" ]
elizaorchard@gmail.com
de44f671db344112f3455fc9a68fd630b9fa685c
a16feb303b7599afac19a89945fc2a9603ae2477
/Simple_Python/standard/exception/exception_3.py
c238bdfaf994db7ca61ad080adc0958a24b2cca5
[]
no_license
yafeile/Simple_Study
d75874745ce388b3d0f9acfa9ebc5606a5745d78
c3c554f14b378b487c632e11f22e5e3118be940c
refs/heads/master
2021-01-10T22:08:34.636123
2015-06-10T11:58:59
2015-06-10T11:58:59
24,746,770
0
2
null
null
null
null
UTF-8
Python
false
false
178
py
#! /usr/bin/env/python # -*- coding:utf-8 -*- class MyClass(object): __slots__ = ('attribute',) o = MyClass() o.attribute = 'known attribute' o.not_a_slot = 'new attribute'
[ "zhuzhulang@126.com" ]
zhuzhulang@126.com
c845f6f485a435d3981ca72437d62c5756fe5c00
1b62be8a219ac18094fda7957546cb9b7e3f6062
/gl0/urls.py
5558dac5b98133d1465ffdfdbf91c383a7491722
[]
no_license
jguaraz/gla0
7749e4cd9668ea0b223eeefacb103a0205a278ea
b7b2002f0eb20e85b0f3fbebcaa4785bfe2ecfce
refs/heads/master
2020-07-01T12:22:27.732279
2017-01-15T19:58:12
2017-01-15T19:58:12
73,826,370
0
0
null
null
null
null
UTF-8
Python
false
false
676
py
from django.conf.urls import url, include from django.contrib.auth import views, logout from . import views from .forms import LoginForm urlpatterns = [ url(r'^$', views.home, name='home'), url(r'^list/$', views.post_list, name='post_list'), url(r'^g_new/$', views.g_new, name='g_new'), url(r'^login/$',...
[ "jguaraz@openmailbox.org" ]
jguaraz@openmailbox.org
f7166be9fcfedf3308a08d2311f9df3ea6d9f985
17795f81da1b5e242091b0bcf0f29011106eb1d7
/blog/migrations/0002_auto_20190524_0708.py
de9e066368b3244d0c371edb8ecc1a05f4c508b4
[]
no_license
Anirudha1995/portfolio
782a9100b7720fe00a2e2cab219caf66085f0a78
02ae1a7dbf02f5ea43f345baefafa5fd1d513538
refs/heads/master
2020-05-27T20:15:59.270310
2019-05-24T08:48:46
2019-05-24T08:48:46
188,776,170
0
0
null
null
null
null
UTF-8
Python
false
false
313
py
# Generated by Django 2.2.1 on 2019-05-24 07:08 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('blog', '0001_initial'), ] operations = [ migrations.RenameModel( old_name='Blogs', new_name='Blog', ), ]
[ "shirolkaranirudha@gmail.com" ]
shirolkaranirudha@gmail.com
d7ee00da2734562f112c093249781066a481d129
7014a13b6163c9d8882c987bf137c238b4711180
/Messages/Messages/urls.py
b18fc6f526038554e85c674fa44140fb019848e8
[]
no_license
gordiig/Un_RSOI_Microservices
1492be7a9c9d136c26b5db74932d4bd0eaa92ac3
11253b684a55f42908724c7278f608de92233ed5
refs/heads/Dev
2022-05-08T09:08:05.712865
2019-12-09T07:28:39
2019-12-09T07:28:39
211,895,636
0
0
null
2022-04-22T22:29:23
2019-09-30T15:44:04
Python
UTF-8
Python
false
false
840
py
"""Messages URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-base...
[ "gordiig@gmail.com" ]
gordiig@gmail.com