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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8b42f06cdb8dea1438828f56a84250f25597c83e | 4698d0fae98b892a935e2b19ec01e60af077723c | /finalproject/bin/rst2html4.py | 322b3298dbe4ce5fcca08892b8ff7e31492a0c96 | [] | no_license | sujithksam92/SearchEngineProject | 8cee78349b8b118456f91f93b7e63587ae5a21d3 | 8182e12a64bc69403940127eeeaa353c405db127 | refs/heads/master | 2020-05-17T13:53:35.289657 | 2019-05-07T21:28:10 | 2019-05-07T21:28:10 | 183,740,225 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | #!/Users/sujithsam/Documents/Studies/Stevens/Sem-2/BIS-660-Web-Mining/Research_Engine_Project/finalproject/bin/python3.7
# $Id: rst2html4.py 7994 2016-12-10 17:41:45Z milde $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docu... | [
"sujithksam92@live.com"
] | sujithksam92@live.com |
6f536a3e58cddf6f23b1f280c0d75a694929f726 | 476a8b674a76b9925dac4498b2f64cf1dee08910 | /deepnet_training.py | 5de72a72d09c7cf3e90935fe5490c9ea9f6f64d5 | [
"MIT"
] | permissive | jacenfox/pytorch-framework | 24905de58352604e24f7ceb6f7a705cb5ad72a5b | 771642a6f40b1fa4f4c90ffa40e2cb90c3fd42d4 | refs/heads/master | 2020-04-30T02:08:35.579186 | 2019-06-27T17:25:05 | 2019-06-27T17:25:05 | 176,551,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,254 | py | import torch
import os
import sys
import numpy as np
import time
import glob
from utils import time_elapse_parser
import colorama
class TrainDeepNet(object):
"""docstring for TrainDeepNet"""
def __init__(self, model_path, model, domain_adapt, learning_rate, callbacks, model_name='LDR2HDR', device='cuda'):
... | [
"jacenfox@gmail.com"
] | jacenfox@gmail.com |
50587eb991551487cd46558996781fa84fa73bdb | 030437bc949054b0110a4979276ce19dd03c124e | /game_controller.py | 4a8d0ca92170380805d3623c46faa3366238047f | [] | no_license | dusanradivojevic/DeepSeaAdventures | 439ede65b705bcf2e8bece546023f8fbaf1ab990 | 7a6f6efa475469a83ec8c1e02c931a31cf079d36 | refs/heads/master | 2022-12-24T13:07:42.539056 | 2020-10-03T13:14:34 | 2020-10-03T13:14:34 | 253,089,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,793 | py | import time
import math
import pygame
from sounds import SoundPlayer
import game_data as gd
import threading
import level_data as levels
import npc
# Changes time lapsed from number of seconds to hours : minutes : seconds format
def time_convert(seconds):
min = (seconds // 60) % 60
sec = seconds % 60
hour... | [
"r.dusan97@gmail.com"
] | r.dusan97@gmail.com |
da8ab0b242ac7d0fd2aff929e11c271cf5e4f784 | 94a9c4765e245ad1a12a52e28de919bdbe0cb3b8 | /HolaMundo_Channel/remove_unuseless.py | db84d9e3c99e9081f5970eda03edf0966160bb29 | [] | no_license | je-castelan/Algorithms_Python | d2b86e7300c8d9a877eb5b4bb507f901e8507967 | 9056ddebb0c73839430d54d19fcdc5588263cfd4 | refs/heads/master | 2023-02-26T00:45:30.812225 | 2021-01-21T06:16:10 | 2021-01-21T06:16:10 | 301,629,472 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | import functools
def removeUnuseless(arr):
# Remove null or zero elements. Note than filter require to be saved on list initializtion
# Challenge of Hola Mundo Channel on https://www.youtube.com/watch?v=MXmQM_Uehtk&t=584s
lista = list(filter(lambda x: x ,arr))
return lista
if __name__ == "__main__":
... | [
"ingkstr@gmail.com"
] | ingkstr@gmail.com |
266eadfc88787d8d8f35a8ad5c254af232377ec2 | 54cc98e87d96119571f0d8689d26c4d62d1f84dc | /mywebsite/settings.py | c9d0c7ef9c9819197f8c98ddc1d348acd336a876 | [] | no_license | Midnight1/django1 | 39ae231a5eccf8feae875c7a65c7d6c16de91ffc | a5f3e90a3b5c18b5339296e33a590e118ff0aa9a | refs/heads/master | 2021-01-10T20:00:56.007776 | 2015-09-17T14:43:07 | 2015-09-17T14:43:07 | 42,661,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,743 | py | """
Django settings for mywebsite project.
Generated by 'django-admin startproject' using Django 1.8.4.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build pa... | [
"hellghost_1@hotmail.com"
] | hellghost_1@hotmail.com |
91bb39e87b153c78a084acbdc38998fcc5de7e04 | 5a01774b1815a3d9a5b02b26ca4d6ba9ecf41662 | /Module 2/Chapter03/django-myproject-03/quotes/models.py | 1659b30889e4e5de96390dfb7a8897a216d15bfe | [
"MIT"
] | permissive | PacktPublishing/Django-Web-Development-with-Python | bf08075ff0a85df41980cb5e272877e01177fd07 | 9f619f56553b5f0bca9b5ee2ae32953e142df1b2 | refs/heads/master | 2023-04-27T22:36:07.610076 | 2023-01-30T08:35:11 | 2023-01-30T08:35:11 | 66,646,080 | 39 | 41 | MIT | 2023-04-17T10:45:45 | 2016-08-26T12:30:45 | Python | UTF-8 | Python | false | false | 3,578 | py | # -*- coding: UTF-8 -*-
from __future__ import unicode_literals
import os
from PIL import Image
from django.db import models
from django.utils.timezone import now as timezone_now
from django.utils.translation import ugettext_lazy as _
from django.utils.encoding import python_2_unicode_compatible
from django.conf import... | [
"bhavinsavalia@packtpub.com"
] | bhavinsavalia@packtpub.com |
fb5d205f628987e7f8e328d80f149b1bf79740ad | 52a42437c4f8f978e1d9da1074d487ce8123d228 | /path_sum_3.py | c6645a212c8b62dd26108303729a0e5d2240bacf | [] | no_license | iorzt/leetcode-algorithms | 22bc987d76c52817dd6fe94e0a8331b3729e36a1 | 7508201ac7fe057769100f168bb3e5e598137894 | refs/heads/master | 2021-05-25T12:09:10.172318 | 2020-03-26T02:31:13 | 2020-03-26T02:31:13 | 127,387,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,235 | py | """
You are given a binary tree in which each node contains an integer value.
Find the number of paths that sum to a given value.
The path does not need to start or end at the root or a leaf, but it must go downwards (traveling only from parent nodes to child nodes).
The tree has no more than 1,000 nodes and the val... | [
"gg.baibo@gmail.com"
] | gg.baibo@gmail.com |
78c967718b00bbe41546036f801047647978a636 | aeb8d8e1a25482b1f913aa0b29666d9c024a4bcf | /ccnuoj_webapi/src/__init__.py | b904aca48a97e2b007ee2d713e28bb444d58c55d | [] | no_license | OutOfCage/CCNUOJ | 8d46fe5d6072189f2ad38b27ec089c3ce9ee2cb2 | f2b07daab6132390ab6fc4d53b01eb528921c244 | refs/heads/master | 2020-04-01T13:08:05.406472 | 2018-10-15T17:19:59 | 2018-10-15T17:19:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | from .global_obj import *
from . import model
from . import authentication
from .authentication import init as authentication_init
from . import user
from . import judge_scheme
from . import problem
from . import judge_command
from . import judge_request
from . import submission
| [
"fybmain@gmail.com"
] | fybmain@gmail.com |
e55983dca1feb96f5b4323bc57bdc755ed4a5c17 | ca97dafb6309f4ad0f0026ca8473d7db48120459 | /apps/utils/wangediter.py | 4d48e445b9f80519e83e1c54e7325c6b063a087d | [] | no_license | ITFengShuiMaster/-DjangoRestProject- | 6a1aa9bddefa25761c4c0ae16351bb2cb8d93a37 | 679cf527d850e3ee087dd7e80c976fd29341c291 | refs/heads/master | 2022-12-16T00:53:12.593745 | 2018-10-11T08:12:12 | 2018-10-11T08:12:12 | 152,553,011 | 0 | 0 | null | 2022-11-22T02:21:51 | 2018-10-11T07:54:49 | JavaScript | UTF-8 | Python | false | false | 1,192 | py | # -*- coding:utf-8 _*-
__author__ = 'luyue'
__date__ = '2018/5/28 14:05'
import os
from flask import Flask, request,Response
UPLOAD_FOLDER = '/TmageUploads'
ALLOWED_EXTENSIONS = set(['txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif'])
app = Flask(__name__)
app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER
#ๆไปถๅๅๆณๆง้ช่ฏ
def allowed_... | [
"wxhzq520@sina.com"
] | wxhzq520@sina.com |
c102dd6c9dfdf2f28e8ea302f8887e73f5fa32c8 | 59fdbd2c22f8489c493dd71fe5fe18927ed7c040 | /Chapter2/Example8.py | 92afb01e005dcfb16422abc34da7ffe9dfb9cecc | [] | no_license | lzr2006/PythonStudy | 8d96fceb5fa13b5955071304bda342d8f19a9808 | e4db9852bfca95398cad51ff529af77e4f68c3c6 | refs/heads/master | 2022-12-21T20:24:55.960089 | 2020-10-09T11:20:33 | 2020-10-09T11:20:33 | 298,911,342 | 0 | 0 | null | 2020-09-26T22:49:08 | 2020-09-26T22:40:20 | null | UTF-8 | Python | false | false | 43 | py | #Chapter2/Example8.py
a=10
b=3
print(a//b)
| [
"noreply@github.com"
] | lzr2006.noreply@github.com |
339c8b280925bb5e86c2c9103ccc84f62736179d | 6358146a22e015791c136f9b018847008ed69d1c | /data_Structure.py | bd583bcc7971bac6620eea307ee0541a3635f819 | [] | no_license | kjrendel/HighSchoolCamp | c3942004a6742562d9f3a2818847f1d98a840a93 | 1969cf4c012415ccc14a12710a2f8c4ef3e187c0 | refs/heads/master | 2020-06-03T14:22:56.760619 | 2019-06-14T19:20:55 | 2019-06-14T19:20:55 | 191,602,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 951 | py | """
title: data_Structure
author: Kaly
date: 2019-06-13 11:32
"""
#shakeball
# import random
#
#
# def shake_ball():
# inp = input("ask a question")
# ans = ("yes definitely","without a doubt",'very doubtful','ask again later',"Don't count on it","Cannot Predict now",\
# "as i see it, yes","No chance... | [
"kjrendel@gmail.com"
] | kjrendel@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 |
af69173aac3e75f108dffd3657c7568959902aeb | 9a76228ac99d8a1123d290a836a3252c11060547 | /Utilities/Talon.py | 25a640280502e80dfcc002ea8865298ffd9d162c | [
"MIT"
] | permissive | rohith8272/OpenFlightSim | b8501c94483faf74f1884a547fbf4fd94a13e053 | 9638c996fdb78c85d71c0e6faa0e64eb48cc96fa | refs/heads/master | 2020-05-15T12:44:47.957707 | 2019-03-16T16:34:12 | 2019-03-16T16:34:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,972 | py | """
University of Minnesota
Aerospace Engineering and Mechanics - UAV Lab
Copyright 2019 Regents of the University of Minnesota
See: LICENSE.md for complete license details
Author: Louis Mueller, Chris Regan
"""
import numpy as np
import copy
import VspParse
import OpenFdm
#%% Constants
in2m = 0.0254
#%% Aircraf... | [
"rega0051@umn.edu"
] | rega0051@umn.edu |
2a3a9ed6867c40b4d06206b52ad915c58b2b2ee5 | afc39333dab6fb777e7790aa5b06dfd27fdad46d | /bbs/migrations/0005_comment.py | 47635bbb154f2d3b629b00cfe1209892662f4358 | [] | no_license | SAKUMAISAO130/python_bbs | 4709460290680987de289f88bd1b4b16ffb3dfbb | 14028a1f7ca216015089f2c0c549f91e11c21c25 | refs/heads/master | 2022-09-05T10:31:36.234827 | 2020-05-27T11:49:35 | 2020-05-27T11:49:35 | 266,765,206 | 0 | 0 | null | 2020-05-26T12:45:46 | 2020-05-25T11:46:50 | Python | UTF-8 | Python | false | false | 840 | py | # Generated by Django 2.1.5 on 2020-05-27 00:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('bbs', '0004_auto_20200526_1302'),
]
operations = [
migrations.CreateModel(
name='Comment',
fields=[
... | [
"colorfullweb@gmail.com"
] | colorfullweb@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 |
00f3aa777df65829459dc28711a6a5fa5e63b497 | 514440c0319b0b9bf1ee2a7b5fd128713c68384e | /whyattend/analysis.py | fc88ebc836e0eb0ddaa907e8fa5fe87cfd4d74f5 | [
"BSD-2-Clause"
] | permissive | chipsi007/World-of-Tanks-Attendance-Tracker | 3af9d68f9b4ea81b61ad35f5a20204c2b098de28 | 576b32586c402a843b88c49bf432a3e8cb3c62dd | refs/heads/master | 2020-03-21T17:02:46.227357 | 2016-06-19T10:57:39 | 2016-06-19T10:57:39 | 138,809,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,514 | py | import math
from collections import namedtuple, defaultdict
from . import replays
PlayerPerformance = namedtuple('PlayerPerformance',
['battle_count', 'avg_dmg', 'avg_kills', 'avg_spotted', 'survival_rate',
'avg_spot_damage', 'avg_pot_damage', 'win_rate',... | [
"daniel.diepold@gmail.com"
] | daniel.diepold@gmail.com |
61da68c0cc57b787ef11ad937a8ba1a75162869f | f3dc0703f6b57389b95c6b1447efd882e65f11bd | /mysite/vehicle_garage/migrations/0005_alter_boat_boat_hin.py | c1387f895a8fe33b5515cd28eee0bc67e73a06d7 | [] | no_license | aku006/bixly-interview-test | 4f4b1a84ca8c5511ccec82ee2f153ce7796667ca | 5e5b0767b62ddc31128ca3b0205ea34b707c83c6 | refs/heads/main | 2023-07-12T21:43:15.841469 | 2021-08-20T22:28:53 | 2021-08-20T22:28:53 | 396,119,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | # Generated by Django 3.2.6 on 2021-08-20 20:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('vehicle_garage', '0004_alter_boat_boat_width'),
]
operations = [
migrations.AlterField(
model_name='boat',
name='boa... | [
"aku006@ucr.edu"
] | aku006@ucr.edu |
992eaf158afa97f9840995f5325e13ed645e30f9 | 6d41b6f01dc7a635424775efbe816f8f835a4287 | /programmers.co.kr/Greedy/์ฒด์ก๋ณต/main.py | e39a021acd0868db514fcc8a8bdab4197fbe51d7 | [] | no_license | Kitsunetic/coding-test | c3a27df19f5816c79aef8823c8a7a04b5dd8114d | 0fff44440883d025b1a98f727d1b28a5dbf412e6 | refs/heads/master | 2023-04-08T06:39:59.174049 | 2021-04-29T16:01:11 | 2021-04-29T16:01:11 | 358,499,090 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | def solution(n, lost, reserve):
p = [1 for _ in range(n + 1)]
for i in lost:
p[i] -= 1
for i in reserve:
p[i] += 1
for i in range(1, n + 1):
if p[i] == 0:
if i != 1 and p[i - 1] > 1:
p[i] += 1
p[i - 1] -= 1
elif i != n and ... | [
"shenhaichenhai@gmail.com"
] | shenhaichenhai@gmail.com |
735451bc26fda37c9409923a75403a3041875b67 | 5e4fb830992c0180bf400e6993b1a491087c8c42 | /instance/config.py | 6aafcafca87812264fb088299b0d1c8c0e931bca | [] | no_license | Partck/SendITAPI | 3bbbf3c57c1611db08b1d311b27d15058ecb368c | 01cbe2e3c0e2538a35280c2ed3c06811cb0028d2 | refs/heads/develop | 2022-12-14T22:14:51.275474 | 2018-11-30T04:59:30 | 2018-11-30T04:59:30 | 156,836,938 | 0 | 1 | null | 2022-12-08T01:17:36 | 2018-11-09T09:05:36 | Python | UTF-8 | Python | false | false | 499 | py | import os
class Config(object):
SECRET_KEY = os.environ.get("JWT_SECRET_KEY")
class TestingConfig(Config):
DEBUG = True
url ="dbname = 'dfhkvc5kqeh9bi' host = 'ec2-54-235-156-60.compute-1.amazonaws.com' port = '5432' \
user = 'ehiewszseuqzyg' password = 'aff8667735390b9eebe291e92f4ad1d75a255aeefc3... | [
"patgachuru@gmail.com"
] | patgachuru@gmail.com |
2b062e03f669e6aaead91edb14be24e5af00d892 | 0d76013f6e1ee69713690d6d6e65ce05a3c94de1 | /account/urls.py | e37b608b6be1c0e5f060818a1a26f890b42c089d | [] | no_license | rafiulgits/law | 8f8576980a47dc27ef744a9c32447e69630d3eca | 42e6e6ac79229b648e023b3ae9c3252919045453 | refs/heads/master | 2023-03-05T22:05:25.854131 | 2021-02-20T04:02:52 | 2021-02-20T04:02:52 | 177,262,688 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | from account.views import auth, manage
from django.urls import path
from django.contrib.auth import views as resetviews
from rest_framework_simplejwt.views import TokenRefreshView
urlpatterns = [
path('signup/', auth.SignUp.as_view()),
path('signin/', auth.SignIn.as_view()),
path('access-renew/', TokenRefreshView.... | [
"avoidcloud@gmail.com"
] | avoidcloud@gmail.com |
9040725fac22694501f3f81751cda539d3ce2333 | 6c6790ff1f940d7bcb35d5b3adec4c8feb0adffd | /url_services/tests/recipes/mommy_recipes.py | c9be044997cbfcb92db83eb7e6907c01caebb811 | [] | no_license | alexrosa/django-urlshortener-api | 102ea5e16e32c877ed7d3f8469ee3174b0353c9a | eeccb96dccfb8da82052b3899b41bdce2be76662 | refs/heads/master | 2020-04-17T16:48:14.460993 | 2019-01-21T13:29:58 | 2019-01-21T13:29:58 | 166,756,420 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | from model_mommy.recipe import Recipe, seq
from url_services.models import UrlShortener
url_shortener = Recipe(UrlShortener,
url_shortener_id=seq(1),
absolute_url='www.smartbeans.com.br',
short_url='a3b4c5')
| [
"alexrosa@gmail.com"
] | alexrosa@gmail.com |
da1c27f4df3f3d42ec1025d9f87a1ffc36a10f25 | d61d05748a59a1a73bbf3c39dd2c1a52d649d6e3 | /chromium/content/test/gpu/gpu_tests/gpu_integration_test_unittest.py | 7abe56fc3e5829005d6262afc304c84092b965a5 | [
"BSD-3-Clause"
] | permissive | Csineneo/Vivaldi | 4eaad20fc0ff306ca60b400cd5fad930a9082087 | d92465f71fb8e4345e27bd889532339204b26f1e | refs/heads/master | 2022-11-23T17:11:50.714160 | 2019-05-25T11:45:11 | 2019-05-25T11:45:11 | 144,489,531 | 5 | 4 | BSD-3-Clause | 2022-11-04T05:55:33 | 2018-08-12T18:04:37 | null | UTF-8 | Python | false | false | 6,491 | py | # Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import json
import os
import shutil
import tempfile
import unittest
import mock
from telemetry.testing import browser_test_runner
from gpu_tests import pat... | [
"csineneo@gmail.com"
] | csineneo@gmail.com |
d62f0bd20e58a2256dc029f276709c0b9900ded3 | 0007d76b3a0bb4f5427cba4a00ab1ba244ef7eb2 | /RSA_Attack_Padding.py | 3919c6d705e4a33ef706def804bfeff363046c37 | [] | no_license | hassansallam/RSA_Attack | b4dc4fd8c2d153ebd9c561c201ae03f0f94915d7 | 650a7f868176186fb5d8c24e9ed0401d960954ef | refs/heads/master | 2021-05-31T12:26:43.098089 | 2016-03-15T10:32:20 | 2016-03-15T10:32:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,885 | py | '''
THIS IS RSA ATTACK SYSTEM THAT WORKS IF THE PLAINTEXT IS PADDED
'''
import math
import binascii
# THIS IS THE MAIN METHOD YOUHAVE TO RUN IT TO RUN THE POROGRAM
def run():
print'Welcome to RSA attack system'
print'Please enter the number you want to factor'
n = input("N: ")
factor(n)
# THIS METHOD F... | [
"hassansalam@outlook.com.com"
] | hassansalam@outlook.com.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 |
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 |
7278426f46e6ad4358202385753eb0788391aa02 | fca96796d913a57b60e5525d0392543c8e5cec24 | /node_modules/bcrypt/build/config.gypi | 6b7b118899d9539b36b8a36a79d2db03446290cd | [
"MIT"
] | permissive | Sathya4488/login-page-MEAN-stack | 817299bd9cafcbad46843a5bb347537c75165598 | 46fd4388c8a91096616cce8278245208d21a134e | refs/heads/master | 2020-05-04T09:57:04.665542 | 2019-04-24T13:13:57 | 2019-04-24T13:13:57 | 179,079,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,747 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"build_v8_with_gn": "false",
"coverage": "false",
"debug_ngh... | [
"sathyamsb91@gmail.com"
] | sathyamsb91@gmail.com |
46d66199b07078ad113d2244608aa0f3dcff80bb | ed8cdcce521b8cab33c66f716c0886e17f035d21 | /.history/script/get_cpu_mem_info_20191222122843.py | 8d68937cd4d25850ae1c036ceb08d000a04b8098 | [] | no_license | deancsdfy/AndroidPerformanceTool_windows | 8ac35729bc651c3af551f090d6788b6ee3f17eb5 | c4906aa9347e8e5eca68dbb7cf2d66a327c70d1f | refs/heads/master | 2020-11-27T20:38:55.014228 | 2020-01-09T15:55:52 | 2020-01-09T15:55:52 | 229,593,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,591 | py | #! python3
#coding=utf-8
import sys,os,re
print(sys.path)
sys.path.append('.')
from public import publicfunction as util
PATH = lambda p: os.path.abspath(p)
#่ทๅๅฝๅๅบ็จๅ
ๅ
package_name = util.get_current_packagename()
# print('ๆฌๆฌกๆต่ฏAPPไธบ:%s' %(package_name))
#่ทๅmen cpu ๅ ็จๆ
ๅต
def top():
print('Starting get mem cpu inform... | [
"denacsdfy@gmail.com"
] | denacsdfy@gmail.com |
ade3665c82f66c2282de4139af95b6d5e566ae0b | d98fcc71d992c71838eff77c93fba85d2a111e8e | /blog/migrations/0002_comment.py | 23dfc71ee25ce73e00d0323ae56562b2584b47d5 | [] | no_license | yeimermolina/blog | 2a9ae31da35db021abfac233baed93ee0fe7e8b1 | 900dc89b47aa118089a0aa994058b945e305b5c0 | refs/heads/master | 2021-05-07T22:14:38.033072 | 2017-11-01T21:22:56 | 2017-11-01T21:22:56 | 109,179,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 988 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Comment',
fields=[
... | [
"yeimer.molina@gmail.com"
] | yeimer.molina@gmail.com |
7998661e4b47331b7ada6e2e919fce2cdc61fcdc | a7860b1921e2ecb4d134fb9fd290551705edf90e | /build/universal_robot/ur10_moveit_config/catkin_generated/pkg.develspace.context.pc.py | 7d54442ee1dc4b46dd510f0e382b640cc900a3da | [] | no_license | WRuotolo/TRI_dish_hand | c586a9cc93fb69b583755cf7f468b02421434151 | 52f31fb3e6a6fba89ed4d25e0dc4770d0c191064 | refs/heads/master | 2020-04-17T01:54:14.026935 | 2019-01-17T00:23:48 | 2019-01-17T00:23:48 | 166,112,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "ur10_moveit_config"
PROJECT_SPACE_DIR... | [
"wruotolo@stanford.edu"
] | wruotolo@stanford.edu |
41d4be9a41798bf7b2188c2827bb18a60b2d64a8 | 9a5b3d2ef1fa5c488a0eadb3bbf89df368b82589 | /hw12.py | 6ca06dd8bd8b0dd4b359cb704de3ed370ba4a6cd | [] | no_license | smax253/cs115 | bfb1ef82e10caaa36029cdde5451f47e0e53ef7b | 9c670618b274c9c6c883779d6604374c0ba96a4c | refs/heads/master | 2022-10-06T09:14:00.406567 | 2018-12-06T00:22:09 | 2018-12-06T00:22:09 | 149,790,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,694 | py | '''
Created on 11/24/18
@author: Max Shi
Pledge: I pledge my honor that I have abided by the Stevens Honor Code
CS115 - Hw 11 - Date class
'''
DAYS_IN_MONTH = (0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31)
class Date(object):
'''A user-defined data structure that stores and manipulates dates.'''
# ... | [
"smax253@gmail.com"
] | smax253@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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 premieฬ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 |
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 | |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.