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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
647b8b2a50f725c62fa6d1cca379220a635668c3 | fd6bae2e3e9ac35d82abc2e6ce07e241b4e8be0e | /$/2.0/Brixx/Brixx.py | d6c813623ace09266a32a844a37e2189f05d0ca0 | [] | no_license | rushir/Games | fba705301094fc7b0066dd9e2bf858d88e0cfdef | e6f80c5b7949d7a52ff4d8733121a2f44d6902a7 | refs/heads/master | 2020-05-19T16:20:23.248224 | 2014-01-19T23:54:19 | 2014-01-19T23:54:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,847 | py | ##Brixx
from livewires import games, color
import math
games.init(screen_width=1000, screen_height=500, fps=50)
back=games.load_image("back.png", transparent=False)
games.screen.background=back
class brixA(games.Sprite):
"""Block that dissapears if hit once"""
pic=games.load_image("brixA.png", transpare... | [
"rushikh@gmail.com"
] | rushikh@gmail.com |
de9d9c413b2b19958ca76f7a04bb638399db40c7 | 06927b2c6ab0ac9fbf2746ea38a32eb974a57690 | /legacy/AutoInstall/STM_PTZ.sikuli/STM_PTZ.py | c13de648be6bc096238422d74a9cac301ff3fe15 | [] | no_license | OldFeelLee/sikuliProject | ad104a1b0d70ce177150052aed663e8d0c842e02 | 8941cab54131638894c8852eb43129b6bfa84f54 | refs/heads/master | 2020-03-15T06:12:53.409283 | 2018-10-30T00:45:05 | 2018-10-30T00:45:05 | 132,002,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,624 | py | import datetime
import random
import string
#Pattern("direction_0.png").exact()Pattern("direction_1.png").exact()Pattern("direction_2.png").exact()Pattern("direction_3.png").exact()
def RanTime(): #random 시간
ran = "".join([random.choice(string.digits)])
s=int(ran)
wait(s)
def Time(): #get c... | [
"leehunpill@idis.co.kr"
] | leehunpill@idis.co.kr |
96b0c1ba4f0c656125bb5c5f358ef21a415366b3 | 4a18a4ebf8c21c10b42b443d5ff52428a710ac7c | /Documents/Design/Python/Online_0.0.1/0.0.1/Config/server.py | 6f8f51e9f7e176bebbf122b293f2dcb8abc03414 | [] | no_license | lewis-jg-lan/my_tools | 28305c290d9d726501e4bac88a97c0018109bd30 | c1dff00eb0b51923281afe2a1b2de7a5f4997819 | refs/heads/master | 2021-09-10T20:05:08.852372 | 2018-04-01T08:58:40 | 2018-04-01T08:58:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,336 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
# @Time : 2018/3/29下午1:57
# @Author : Saseny Zhou
# @Site :
# @File : server.py
# @Software : PyCharm
serviceDict = {
'DRUID': {
'service': 'analysis/service/v1/metrics',
'method': 'POST',
'samplePayload': """{"toDate": "2017-12-... | [
"sasenyzhou@zhouzuozhengdeMacBook-Pro.local"
] | sasenyzhou@zhouzuozhengdeMacBook-Pro.local |
9f4cc58d30a1197d42107f84dd900010d39902a4 | 7dea8668ea3bbe6afd37f54ee2e53bde2a13e08f | /.PyCharmCE2017.2/system/python_stubs/-1247972723/_hashlib.py | 13a1d4fc98853cd3b00d9c14eb2a1440eeb89fcc | [] | no_license | andrei1887/ubuntu | ccc149a64ad305944ba2741d87487e67c6c1ad80 | 6941309f6a782bd38989f6c13387a271b63ebb1a | refs/heads/master | 2021-07-24T09:38:53.242877 | 2017-11-05T13:38:05 | 2017-11-05T13:38:05 | 109,580,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,754 | py | # encoding: utf-8
# module _hashlib
# from /usr/lib/python2.7/lib-dynload/_hashlib.x86_64-linux-gnu.so
# by generator 1.145
# no doc
# no imports
# functions
def new(*args, **kwargs): # real signature unknown
"""
Return a new hash object using the named algorithm.
An optional string argument may be provid... | [
"andrei@naverisk.com"
] | andrei@naverisk.com |
4b50e4e06c837e7881d5a740d09022e43e2254d7 | 2138a9925579b1090357da5323c1c48329e710bc | /venv/Lib/site-packages/weasyprint/css/properties.py | 15f25b92889998d2da8181f23c444f1a32739685 | [] | no_license | SravaniKV/MDC-OMK-Sprin1 | ff4cc5d275207dd27e7d9018834818bb08aec2dc | 6bdda424cdc8708fbf53f36bad459293aada95db | refs/heads/master | 2022-12-13T00:37:02.936349 | 2018-04-30T20:54:42 | 2018-04-30T20:54:42 | 128,151,668 | 0 | 1 | null | 2022-12-07T23:42:20 | 2018-04-05T02:50:59 | Python | UTF-8 | Python | false | false | 8,302 | py | # coding: utf8
"""
weasyprint.css.properties
-------------------------
Various data about known properties.
:copyright: Copyright 2011-2014 Simon Sapin and contributors, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
from __future__ import division, unicode_literals
import collections
... | [
"gouthamuno@gmail.com"
] | gouthamuno@gmail.com |
73fbc56487a7764993b6d6c30477c3fb8ebe27ab | e92e5f34eb3ca8fdec4823623aee54a411198331 | /_examples/treemodelfilter.py | 5d6fce9e5a4312749e8625681acc1b6951c34a27 | [
"CC0-1.0"
] | permissive | own3mall/python-gtk3-tutorial | f68e6e8e8807c927b34c062587494e4d7667840e | 55aeacc3d447095f4f6d1e6713294849e8d3d427 | refs/heads/master | 2021-01-20T15:49:20.023843 | 2017-05-09T21:49:23 | 2017-05-09T21:49:23 | 90,794,515 | 1 | 0 | null | 2017-05-09T21:43:18 | 2017-05-09T21:43:18 | null | UTF-8 | Python | false | false | 2,365 | py | #!/usr/bin/env python3
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
products = (("Apple", "Fruit", "£0.20"),
("Bleach", "Cleaning", "£1.20"),
("Bird Seed", "Pets", "£2.50"),
("Banana", "Fruit", "£0.35"),
("Beer", "Alcohol", "£2.75"),
... | [
"andrew@andrewsteele.me.uk"
] | andrew@andrewsteele.me.uk |
e410a0f7094eb1667c2df44907c806a6ffff55d8 | 37f1c6774cc94f18eee36afe9327a271ce241437 | /tests/test.py | a120247e760d29dc0b9b87d496fe25e2812bfbaf | [
"MIT"
] | permissive | Holim0711/pytorch-trainers | 93306fab78bd5dca5dae0cc5e6e370b1bfc96600 | 1943676c3598c60526dea6174c234dd362181619 | refs/heads/master | 2023-01-04T11:27:42.797705 | 2020-11-06T02:18:10 | 2020-11-06T02:18:10 | 199,627,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40 | py | import trainərs
print(dir(trainərs))
| [
"holim0711@outlook.com"
] | holim0711@outlook.com |
f16f5035356d1ce85a7038be04e25800a6524e58 | 12d05a7f65e6ca8ffa701670ed1bec209af77a51 | /capsule_biblosa/models/biblosa/nn_utils/integration_func.py | aa4c5160c77aa2c81ae964a4097d76df63f6a1d5 | [] | no_license | Bobby-Han/text-classification | ec8015e6bb438fceb8d7b61117519e2d6469c57d | 2fa6d3ed4f3b9288ff7fb385c9cced44daf522ca | refs/heads/master | 2023-02-24T13:27:36.761439 | 2021-02-01T06:27:53 | 2021-02-01T06:27:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,921 | py | # coding: utf-8
from models.biblosa.nn_utils.general import exp_mask_for_high_rank, mask_for_high_rank
from models.biblosa.nn_utils.nn import linear, get_logits, softsel, dropout, bn_dense_layer
from models.biblosa.nn_utils.rnn_cell import SwitchableDropoutWrapper
from models.biblosa.nn_utils.rnn import bidirectional_d... | [
"2501967525@qq.com"
] | 2501967525@qq.com |
a9b0e3658505132d46defe957430de64e14ab144 | 1af7e6d9ec623a6fe99d1066f107b5194e4ec7d5 | /translate_tokens/snippets.py | fdd30c4481d013783d8aa1da77d681879e4cc4fd | [] | no_license | Niarfe/hack-recommender | 128da6eb1f7861635587fa66d1931d8df0cd66b7 | 7e5cf226698f8f24e5dff78b330a00575dbe661d | refs/heads/master | 2021-08-08T07:06:20.206108 | 2017-10-13T22:21:39 | 2017-10-13T22:21:39 | 74,412,118 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,980 | py | #!/usr/bin/env python
# Copyright 2016 Google, 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.0
#
# Unless required by applicable law or... | [
"grace.zhou@hgdata.com"
] | grace.zhou@hgdata.com |
ce79b24f16bed5b2c129bbf283a5796524f5a9c1 | 030c1ff78383076422727ef3e5d2a7bb9c82e652 | /class_example01.py | 6c23651d6b374c39026dfe53ab741ab115edd62a | [] | no_license | smallcrocodile/python_sample_code | 25997c8437c7cf0ef671db874a0027fdced64f42 | 5472b11fd463657381949a9cf01aba4d77bf7ef0 | refs/heads/master | 2021-01-21T10:08:29.899881 | 2015-02-02T07:33:59 | 2015-02-02T07:33:59 | 29,851,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 720 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# -------------------------------------------------------------------------------
# FileName: []
# Purpose: multiple_replace
# Author: [ZhouKe]
# Created: 2014 - -
# Copyright: (c) ZhouKe 2014
# Licence: <GPL>
#--------------------------------------... | [
"small-crocodile@sohu.com"
] | small-crocodile@sohu.com |
7eee6af617335a2d6c8c407680e67b2cc2e81dea | 55f6a9b8f90ae308a90739fd8f77f4e7cd10ff19 | /spacy/tests/lang/sk/test_tokenizer.py | 247847284ad16613d04423f16cb12d3f7d98d573 | [
"MIT"
] | permissive | explosion/spaCy | cce07ee403aa398de7ba8941a2c11d22aea68021 | 3e4264899c3b12f8eabc5cd700146177a34824d0 | refs/heads/master | 2023-08-31T07:18:13.598768 | 2023-08-30T09:58:14 | 2023-08-30T09:58:14 | 21,467,110 | 26,348 | 4,983 | MIT | 2023-09-13T17:56:22 | 2014-07-03T15:15:40 | Python | UTF-8 | Python | false | false | 453 | py | import pytest
SK_BASIC_TOKENIZATION_TESTS = [
(
"Kedy sa narodil Andrej Kiska?",
["Kedy", "sa", "narodil", "Andrej", "Kiska", "?"],
),
]
@pytest.mark.parametrize("text,expected_tokens", SK_BASIC_TOKENIZATION_TESTS)
def test_sk_tokenizer_basic(sk_tokenizer, text, expected_tokens):
tokens =... | [
"noreply@github.com"
] | explosion.noreply@github.com |
912edd7bcf42efa3c07ae6a9b5140e63bc913683 | a6b9db4b8fb9cd4764036d3a4351c0c937437c78 | /myApp/admin.py | 605b121ec5d768fcea6361003a8ecdca77bbe717 | [] | no_license | gmurr20/DjangoWebsite | fbb16ccb6e17ac1f8a9dd3243d977fd5bfbea039 | 7d8e5c2196d379fa62e3e4736675e8ad3adf338a | refs/heads/master | 2021-01-01T17:44:09.646781 | 2017-07-24T02:26:35 | 2017-07-24T02:26:35 | 98,140,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | from django.contrib import admin
from models import Company
from models import Project
from models import Photo
from models import Blog
# Register your models here.
admin.site.register(Company)
admin.site.register(Project)
admin.site.register(Photo)
admin.site.register(Blog) | [
"Gmurr@Gregs-MacBook-Pro.local"
] | Gmurr@Gregs-MacBook-Pro.local |
1257e9de4ad992d04c2be1ede976fe5f247731d3 | dbdf5bb08e5835ba836f3710e515e22e428f2862 | /main.py | a8affb885a085ea352f93828ee45a09a65c38c07 | [] | no_license | Introduction-to-Programming-OSOWSKI/1-5-add-two-numbers-BostonSlettum22 | cdfe32a37bd1aa6b2166653bcd65938707c12e55 | f2c44d4ba62f9741168c748680e6802f9596312f | refs/heads/master | 2023-02-07T21:19:42.721702 | 2020-12-18T16:52:55 | 2020-12-18T16:52:55 | 322,645,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | def add(x, y):
return x + y
print (add(8, 5))
| [
"816661@mystma.org"
] | 816661@mystma.org |
c2c9ff0cc2b3c2226bee65e6d5fb7284b2b4d646 | 8778c12b5ed1a9b109f97ad92d9a21ddf5f7ed2c | /scrap.py | b1a1e46872f66639ed4f4e781234b3270e6e1dc7 | [
"Apache-2.0"
] | permissive | jainmanal/Superdrug | eef8b5de628ef7e3d47f1afebcbff8d779076b25 | 03a762bfff16b9b94b210f54ae904f448a8bc352 | refs/heads/main | 2023-01-28T12:35:13.507662 | 2020-11-28T17:18:15 | 2020-11-28T17:18:15 | 316,132,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,861 | py | import json
import re
import time
import traceback
import requests
from bs4 import BeautifulSoup
headers = {'User-Agent': 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:83.0) Gecko/20100101 Firefox/83.0'}
def scrap_data(url):
try:
page = requests.get(url, headers=headers)
time.sleep(5)
soup... | [
"noreply@github.com"
] | jainmanal.noreply@github.com |
b917e342d9f0fb28e60e7a702cc55bca5797e748 | 37ec702ca986c6c6ac5d2c5a7b73ff80a80201de | /flasher/env/bin/espefuse.py | af2fe028aadd71e2981a4e0ac07a274209803f51 | [] | no_license | EchoLynx/traffic-light | 47e7a42154ecc43f726cedfcc4e23fc83393aa1b | a380a4cfe3534078fc4c1dd0328d860e637213f7 | refs/heads/master | 2022-06-07T23:58:48.786049 | 2020-05-02T18:32:57 | 2020-05-02T18:32:57 | 260,747,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,602 | py | #!/home/iegland/code/trafficLight/flasher/env/bin/python3
# ESP32 efuse get/set utility
# https://github.com/themadinventor/esptool
#
# Copyright (C) 2016 Espressif Systems (Shanghai) PTE LTD
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License ... | [
"mail@ianegland.com"
] | mail@ianegland.com |
f724bf834b95fb45e371faa4e506417ef0925a27 | 68a48fb2b2167d3dcbacea0b57c0b6021d539d9d | /tree/98. Validate Binary Search Tree.py | 0099bb17c23e4f3f8c366265d74d79b223f0f150 | [] | no_license | libowhu/leetcode | a911957ccae4f43c8c3acf733a9acc2befd15d1e | 34d9f054e4697946a58a03e94c54509f575dcc73 | refs/heads/master | 2023-03-02T21:03:14.714616 | 2021-02-16T15:58:14 | 2021-02-16T15:58:14 | 293,777,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 716 | py | # https://leetcode.com/problems/validate-binary-search-tree/
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def isValidBST(self, root: TreeNode) -> bool:
... | [
"libo.whu@gmail.com"
] | libo.whu@gmail.com |
92b74d7f6090a1d0b0e6e8984b12d6284c13a25c | 2063a057c3ff7b78d93e7bcc041e65eaa05bd86d | /pyglet_utils/platformer/player.py | efcec024a90d637cc3827c79f01b82d2cf7ee8d0 | [] | no_license | cm107/pyglet_utils | c45025237bc21bec6f8e0f0d6007428ed6cde559 | c20dc6a7658a1f7de4784c3b6ab69bffe9f33a79 | refs/heads/master | 2022-11-19T20:07:21.326211 | 2020-07-24T15:09:14 | 2020-07-24T15:09:14 | 262,519,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,291 | py | from typing import List, cast
from .resources import PlayerImages
from .game_obj import GameObject
from .frame import Frame
from .render import RenderBox
from .grid import Grid, GridObject
from ..lib.exception_handler import Error
from pyglet.graphics import Batch
from pyglet.shapes import Circle, Rectangle
from comm... | [
"mork.clayton3@gmail.com"
] | mork.clayton3@gmail.com |
b1b510c608476e3cba0e5a2cd942598a8002a85c | 8f27c4a4c428d3ad4687a1a3b8a905c904ec93cd | /product/migrations/0016_auto_20181204_1142.py | f281f037afdc13b72e3ed87ea2b62028eed214f0 | [] | no_license | absalam48/sifdeal | c6d85533041b34462711f8adf39d0cfb4a993749 | 9542d0afd7a0bc64b2f6e03707aae81906d98fb5 | refs/heads/master | 2020-04-09T11:39:39.881595 | 2018-12-04T08:22:56 | 2018-12-04T08:22:56 | 160,318,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | # Generated by Django 2.1.3 on 2018-12-04 06:12
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('product', '0015_auto_20181204_1129'),
]
operations = [
migrations.RenameField(
model_name='categories',
old_na... | [
"noreply@github.com"
] | absalam48.noreply@github.com |
25a66089f805038eee267a2ad15f97dabe903290 | ccdbe6e17022aae05e6bee60b37fd92a0b44a6d8 | /python/kivyapp/clock.py | b938a8ed87cc8a63c2595f40e017430675c55b3f | [
"Apache-2.0"
] | permissive | bdastur/notes | e580c45ef38abd2b104dce3ec6898031e9c79f27 | 74341d8de88c8817c557af02c6e8bd470e56151f | refs/heads/master | 2023-08-15T19:59:54.631621 | 2023-07-24T15:27:08 | 2023-07-24T15:27:08 | 92,065,482 | 4 | 1 | Apache-2.0 | 2023-08-27T19:00:14 | 2017-05-22T14:52:34 | JavaScript | UTF-8 | Python | false | false | 958 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import datetime
from kivy.app import App
from kivy.uix.label import Label
from kivy.clock import Clock
from kivy.uix.gridlayout import GridLayout
class MyClock(GridLayout):
def __init__(self, **kwargs):
super(MyClock, self).__init__(**kwargs)
self.col... | [
"bdastur@gmail.com"
] | bdastur@gmail.com |
1a746c87f4a43e3e08b35db1c0a09bbd069037d6 | 3a9c0b2c6039a63e34f49f8005dc7170fc0274c3 | /blog/wsgi.py | 3e83ec39fd5ee2e90b7008d7a0c12bb63ebfb3fd | [
"MIT"
] | permissive | DorcasToto/blogs-api-assingment | fa13fccd746a5b8631405b94152d517b5e125a28 | 066f67af0c82b1d3226f0b910941162a91ad8b12 | refs/heads/master | 2023-06-11T06:04:26.564689 | 2021-06-27T22:03:09 | 2021-06-27T22:03:09 | 380,814,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 864 | py | """
WSGI config for blog 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/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
from whitenoise.django import DjangoWhi... | [
"dorcas@sendyit.com"
] | dorcas@sendyit.com |
11b80ae13e1397f13f260c3b3e462e7ebf5070e6 | c6dc08e0f28f958d3c3d91f2c863199af616422f | /Store.py | 58f5136599ffea27b0463b48f23765d02de11af6 | [] | no_license | Nozimakhon/storeManagement | b757b22c530c7ebf67bd6af4ea04262522359ec0 | 884371153b99527df5644952c2a0dcd824156a32 | refs/heads/master | 2020-04-23T14:51:17.587714 | 2019-02-19T16:44:27 | 2019-02-19T16:44:27 | 171,246,249 | 2 | 0 | null | 2019-02-19T12:46:02 | 2019-02-18T08:43:12 | Python | UTF-8 | Python | false | false | 1,155 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Feb 13 21:32:50 2019
@author: Nozima
"""
class Store:
def __init__(self, Id, storeName, address, tel):
self.__id = Id
self.__storeName = storeName
self.__address = address
self.__tel = tel
@property
def Id(self):
return s... | [
"nozima.sb@gmail.com"
] | nozima.sb@gmail.com |
35bb6d6d2e895f589418806656945397116628e2 | 13478b382d65b245c2264e0d62479b0fec01d631 | /crash_course/ch_11_testing_code/survey/survey.py | dd756a8d1428f2bcc845240bd5717918263c3986 | [] | no_license | haseebali1/python | 2086d3ee431e3efc13bab98b5b0ef69a39611f6e | 36d25329c1208abbd0e9db983b1a6a26559b4bca | refs/heads/master | 2021-09-24T08:52:02.559125 | 2020-02-27T06:30:12 | 2020-02-27T06:30:12 | 231,698,639 | 0 | 0 | null | 2021-09-22T18:23:46 | 2020-01-04T02:42:46 | HTML | UTF-8 | Python | false | false | 521 | py | class AnonymousSurvey:
"""Collect anonymous answers to a survey question"""
def __init__(self, question):
"""Store a question, and prepare to store respones"""
self.question = question
self.responses = []
def show_question(self):
print(self.question)
def store_responses... | [
"haseebali1@gmail.com"
] | haseebali1@gmail.com |
b211125322d6715053229f8d15913695a875acc6 | 5b47b271438f27da7821acda1b87729d0cfb9a66 | /ModelingTeamMaterials/singleTree-day4.py | ca159fae18ef9af9e4d1192bb5adae7628203742 | [] | no_license | booz-allen-hamilton/SG4SG | a3e6fca4711de32b1173f03bd343b94b00f7993a | 0c2a7094b57abc653a9669de03fffcf726697bf2 | refs/heads/master | 2016-09-06T05:53:39.059429 | 2015-07-08T12:21:27 | 2015-07-08T12:21:27 | 38,002,290 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,490 | py | import numpy as np
from sklearn import tree
from sklearn.externals.six import StringIO
import os
import pydot
import csv
print "\nDecision Tree using Human Trafficking Case File Data"
print "\tpowered by Booz Allen Hamiltion and Girls Inc.\n"
image_name = "HumanTraffickingTree"
maxdepth = int(input('Max Depth: '))
whi... | [
"rickett_stephanie@bah.com"
] | rickett_stephanie@bah.com |
73c9d197db561bf4c62d8617c024510162d28be0 | 439cc45865e7198d79bcd8848e7a9fad2dc9de9e | /ROISelect/ROISelect.py | 5ec1329869055557908564a687a66de7247040b2 | [] | no_license | Ryan05799/Ipython | 4c09b28bdc798bf7457f546cd4e4ea08e745747b | 92b65c5bb99828609a60737050ca75eed95c1031 | refs/heads/master | 2016-08-12T13:47:22.319268 | 2015-10-13T08:37:02 | 2015-10-13T08:37:02 | 43,829,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,461 | py |
# coding: utf-8
# In[18]:
import os
import os.path
from tkinter import *
from tkinter import filedialog
from tkinter.filedialog import askopenfilename
from PIL import Image, ImageTk,ImageDraw
from skimage import data, io
import matplotlib.pyplot as plt
import rmReflect as rmrf
# In[19]:
class RoiMaker:
f... | [
"ryan05799@gmail.com"
] | ryan05799@gmail.com |
2bd137d8a5666cafeaafecbb2b68c89ab238edab | 4ad9ce9ec5736080fb5f508ad366e1761b223c29 | /read_excel.py | a78a36b5d4ec850a5fa88dad31c46f60166e36d9 | [] | no_license | ctt2050/Hello-World | ab075f4551a212e79fad00bed94ea5465419db4d | 171045004525d1918db78729aa41c69d8aafc189 | refs/heads/master | 2022-12-13T19:32:06.270036 | 2020-09-05T03:27:39 | 2020-09-05T03:27:39 | 292,992,182 | 0 | 0 | null | 2020-09-05T03:30:20 | 2020-09-05T03:09:52 | Python | UTF-8 | Python | false | false | 1,740 | py | import xlrd
#步骤:1、先获取表对象
# 2、再获取值
#变量名:数据类型 = 值 强调变量中所保存的值是str类型
file_name:str='MTT.xls'
#打开一个xls文件(注意后缀名必须是xls)得到指向这个文件的工作簿(workbook)对象
work_book = xlrd.open_workbook(file_name)
#获取工作簿下工作表名称的列表
names = work_book.sheet_names()
print(names)
#根据下标来获取指定的工作表,,下标从0开始
sheet = work_book.sheet_by_index(0) ... | [
"noreply@github.com"
] | ctt2050.noreply@github.com |
3a66a7b8968be042dd64d5edcc7294b23c8a54c4 | 5c510a5e9c1e413d4e373b7c755b118d487b7dbf | /bin/analysis/exposure_classes_us_average.py | b73762a1c68e83b37333b2b72330f89418a87a68 | [
"BSD-3-Clause"
] | permissive | maryemguizani/patterns-of-segregation | 5958f37563f5b5f8a73f29d4d7ff77d5c919e964 | 0b6229248882253548efed2442fd04d69cb617e4 | refs/heads/master | 2023-03-16T09:59:09.008082 | 2016-03-26T08:03:01 | 2016-03-26T08:03:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,509 | py | """exposure_classes_us_average.py
Script to compute the average exposure matrix for all cities in the US.
"""
from __future__ import division
import csv
import math
#
# Import data
#
## List of MSAs and their name
msa = {}
with open('data/names/msa.csv', 'r') as source:
reader = csv.reader(source, delimiter='\... | [
"remilouf@gmail.com"
] | remilouf@gmail.com |
194e78d8b7090dfda88fa567f0a8aa9f4c8bf2c8 | f827b53d987982351f98cac44d853f6968044184 | /main.py | ca62ac6487cec6fa770259bb69cff7a04fbe3740 | [
"MIT"
] | permissive | CybeSecurityOficial/IpFinder | 8f8e0e3ae7d2cc039594083f6337492e5c0a5834 | 6a7978caefcb01ff59c40a8429ab58b263c4ec68 | refs/heads/main | 2023-04-06T05:34:52.946621 | 2021-04-15T00:30:55 | 2021-04-15T00:30:55 | 358,078,150 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,943 | py | import os
import requests
import socket
from time import sleep
def main():
os.system("clear")
print("""\033[1;95m
██╗██████╗ ███████╗██╗███╗ ██╗██████╗ ███████╗██████╗
██║██╔══██╗██╔════╝██║████╗ ██║██╔══██╗██╔════╝██╔══██╗
██║██████╔╝█████╗ ██║██╔██╗ ██║██║ ██║█████╗ ██████╔╝
██║██╔═══╝ ██╔══╝ ██║██║╚█... | [
"noreply@github.com"
] | CybeSecurityOficial.noreply@github.com |
595c1139951416758261577012073647161cabbe | 9cc11643353e2f28351623e734892c1370024901 | /backend/honameuro/migrations/0005_auto_20210814_1810.py | 8e25527dff268deddfc0be85ecafae60c41914b7 | [] | no_license | bonomoon/Honameuro | b4cf8bbde3d7e3aeffa462498996992ea9231e39 | 661fc4f7ebbf95b5350dcfe5a9614dc60e1bac3b | refs/heads/main | 2023-07-12T21:50:03.199055 | 2021-08-19T03:07:21 | 2021-08-19T03:07:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,285 | py | # Generated by Django 3.1.3 on 2021-08-14 09:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('honameuro', '0004_indivinfo_topic'),
]
operations = [
migrations.AlterField(
model_name='indivinfo',
name='max',
... | [
"k5k5s5s5j5j5@naver.com"
] | k5k5s5s5j5j5@naver.com |
6ed1f3c730d635fc7c541950627d7956afb8abfd | 0b543112c893ec250b68d30f935901a802da37f2 | /task2/src/baseline3/main.py | 57710bcafcd958aa52f85025b55fe58081dd1ba9 | [] | no_license | KUAN-HSUN-LI/Missing-Feature-Learning | 3badbef77581270169f4353e4deb21713cdcd2f9 | e17d89ba61adc866f13c36cbc27bd71148de7ec4 | refs/heads/master | 2023-02-21T11:34:57.608183 | 2021-01-23T11:47:24 | 2021-01-23T11:47:24 | 223,157,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,770 | py | import argparse
import pandas as pd
import torch
from torch.utils.data import DataLoader
from tqdm import tqdm
from sklearn.model_selection import train_test_split
from preprocessor import preprocess_samples
from dataset import FeatureDataset
from model import simpleNet
from trainer import Trainer
from utils import Su... | [
"c37102001@gmail.com"
] | c37102001@gmail.com |
1a94eaab21acaf6627d078e8fc5fbbe84d6e3c8a | 52ddeb18c363ddc02bd1697104ebc6429dd7750a | /snapYzero.py | 7404dc912638e8ebbad52a0bddac7f4dce3fe73e | [] | no_license | duihuaq/MayaDev | 7ade36e14aad63d00286b50d9ac5a3dee8488b6b | c0f374b3c02980450b85e75c77b3bdc633e39556 | refs/heads/master | 2021-10-11T13:13:51.576387 | 2019-01-26T08:40:17 | 2019-01-26T08:40:17 | null | 0 | 0 | null | null | null | null | GB18030 | Python | false | false | 508 | py |
# -*- coding: utf-8 -*-
# 将所选物体贴在坐标网格上
# designed by Jiaguobao
# QQ:779188083 && Tel:15615026078
# Date:2018年10月14日
# version 1.0
#
# 1.选择物体
# 2.执行脚本
# 3.将所选物体全部最低点归于坐标y轴零点
from maya.OpenMaya import MGlobal
#所有物体贴地
def doit():
tr = cmds.ls(sl=1,dag=1,tr=1)
for i in tr:
bb = cmds.xform(i,q=1,bb=1)
cmds.xform(... | [
"779188083@qq.com"
] | 779188083@qq.com |
cfc92bb4edcf97f0bace378fad5d9d5fcd023867 | 74b03072dea8bb112cf084ae8b7b4de9216edcf9 | /Airplane/chap8/mavsim_chap8.py | 038f1fa7a67beab5c332041aca02487eb6bb4dae | [
"MIT"
] | permissive | eyler94/ee674AirplaneSim | 04af0a9c4f3c207ce78a718c56e140309eb35297 | 3ba2c6e685c2688a7f372475a7cd1f55f583d10e | refs/heads/master | 2021-10-10T15:45:20.971699 | 2021-09-30T04:01:41 | 2021-09-30T04:01:41 | 174,186,876 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,505 | py | """
mavsim_python
- Chapter 8 assignment for Beard & McLain, PUP, 2012
- Last Update:
2/21/2019 - RWB
"""
import sys
sys.path.append('..')
import numpy as np
import parameters.simulation_parameters as SIM
from chap2.mav_viewer import mav_viewer
from chap3.data_viewer import data_viewer
from chap4.wind_... | [
"eyler94@gmail.com"
] | eyler94@gmail.com |
c63dc0c63677b94301787c77206480188a191679 | 230af69e46485f4a2092db92238fe211f4ea0d07 | /service_end/packages/kafka/consumer/group.py | 1e9d4fe9e44bf297063cef03c209e1495f5e9edb | [] | no_license | kaichenkai/ai_recheck | 20be3fdb89f1d9900ce9c47e4608ce9d75284d88 | 78d653be42903e54a22b15714769041b264366fc | refs/heads/master | 2021-05-20T15:11:36.150191 | 2020-06-01T07:57:19 | 2020-06-01T07:57:19 | 252,344,103 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51,973 | py | from __future__ import absolute_import
import copy
import logging
import socket
import time
from kafka.errors import KafkaConfigurationError, UnsupportedVersionError
from kafka.vendor import six
from kafka.client_async import KafkaClient, selectors
from kafka.consumer.fetcher import Fetcher
from kafka.consumer.subs... | [
"chenkai@seemmo.com"
] | chenkai@seemmo.com |
eaa79fde9c30d40f438b522677b11ca3c92e0a1e | 2fd46aeb5c9f7acae9c056f513ce1992304c730b | /geekshop/authapp/forms.py | c8441e5c19c0c00c26655d51d06b2ab98fad6c16 | [] | no_license | iidyachenko/my_django_shop | 8a9daa00fd3c2373a20e3a9ce5f7b8b25593a6df | 2311cdcb2578eec52f6f04c7a27019b6a7c8a30f | refs/heads/main | 2023-04-08T09:04:04.739097 | 2021-04-08T13:48:42 | 2021-04-08T13:48:42 | 314,550,183 | 0 | 0 | null | 2021-03-22T13:47:39 | 2020-11-20T12:39:26 | Python | UTF-8 | Python | false | false | 2,462 | py | import hashlib
import random
import django.forms as forms
from django.contrib.auth.forms import AuthenticationForm, UserCreationForm, UserChangeForm
from authapp.models import ShopUser, ShopUserProfile
class ShopUserLoginForm(AuthenticationForm):
class Meta:
model = ShopUser
fields = ('username... | [
"rick_id@mail.com"
] | rick_id@mail.com |
3b057cae7fab18b473f1f9d4098f453000b5f7ee | 72f861b4e50d80c31bbbed5127bcce67d19f5875 | /ex07.py | e531ced7df2fde841bd2b0346f048f7de86efab3 | [] | no_license | 106368404ZhouHouCheng/hello-world | b2ad012b3f7e4c4bdc83a6f6ce2dc67ae029e5d8 | bbb448b2d51e5a37f871ceb532219540daa78d23 | refs/heads/master | 2021-05-05T17:44:24.504825 | 2018-04-19T05:42:56 | 2018-04-19T05:42:56 | 117,503,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | # -*- coding: utf-8 -*-
#print the string
print "Mary had a little lamb."
#print the string which followed the other string
print "Its fleece was white as %s." % 'snow'
# print
print "And everywhere that Mary went."
print "." * 20
end1 = "C"
end2 = "h"
end3 = "e"
end4 = "e"
end5 = "s"
end6 = "e"
end7 = "B"
end8 = "u"
... | [
"noreply@github.com"
] | 106368404ZhouHouCheng.noreply@github.com |
92edc2c70a68c62678d5b73f93db11e9e1775ba4 | 8c2feb46053624e4f6581c0c816c9626ad61ce89 | /tests/test_ms.py | c7320f32403c537718f643604d8bfd5e7e3946c5 | [
"ISC"
] | permissive | noscode/demes | 9134a4e696b9bab5fdc8bfaaa0358e1d884b68b2 | 5d300a8f5b5e260b828ae2cc7a78ab9ebf3bebba | refs/heads/main | 2023-05-09T05:20:05.567597 | 2021-06-01T12:11:50 | 2021-06-02T11:25:44 | 315,983,595 | 0 | 0 | ISC | 2020-11-25T15:42:56 | 2020-11-25T15:42:56 | null | UTF-8 | Python | false | false | 44,685 | py | import collections
import math
import pathlib
import pytest
import tempfile
import demes
cwd = pathlib.Path(__file__).parent.resolve()
example_dir = cwd / ".." / "examples"
class TestFromMs:
def N0(self, *, theta, mu, length):
return theta / (4 * mu * length)
def test_ignored_options_have_no_effect... | [
"graham.gower@gmail.com"
] | graham.gower@gmail.com |
2adcff104db81c7a2defe60c9f677882631fe561 | 88ae8695987ada722184307301e221e1ba3cc2fa | /chrome/browser/ash/arc/PRESUBMIT.py | 9b7c9a6ae4bf8c95ebee88233e1d5518e78f4fe7 | [
"BSD-3-Clause"
] | permissive | iridium-browser/iridium-browser | 71d9c5ff76e014e6900b825f67389ab0ccd01329 | 5ee297f53dc7f8e70183031cff62f37b0f19d25f | refs/heads/master | 2023-08-03T16:44:16.844552 | 2023-07-20T15:17:00 | 2023-07-23T16:09:30 | 220,016,632 | 341 | 40 | BSD-3-Clause | 2021-08-13T13:54:45 | 2019-11-06T14:32:31 | null | UTF-8 | Python | false | false | 535 | py | # Copyright 2017 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
USE_PYTHON3 = True
def CheckChangeOnUpload(input_api, output_api):
# Apply the same PRESUBMIT for components/arc.
presubmit_path = (
input_api.change.RepositoryRoot() +... | [
"jengelh@inai.de"
] | jengelh@inai.de |
5ef18ebe9bb906dcc28b54e3de7ef85b3ab5d824 | f1d09250c42091987e87013b9e80bd27592a2d15 | /mysite/settings.py | 33e8dfa780a4d44de247b330dfd3a13663427416 | [] | no_license | jlacerte/django-mysite | 54beff2b7cb981dc9e882320b61128d74446c582 | 60faa8f0dfc28c8695cc90b62281bb44c02c0515 | refs/heads/master | 2021-01-23T12:32:38.825519 | 2017-06-05T11:21:58 | 2017-06-05T11:21:58 | 93,167,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,124 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.11.1.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
... | [
"justinlacerte@yahoo.ca"
] | justinlacerte@yahoo.ca |
c94a84eb5765442913936d5c63e068545b7011c3 | 5c1095e7d30547736ffd00a6c152ab59e91bb1a8 | /ex6.py | 23ccc63f9c1b95479290e67117ec341f77d6d0f1 | [] | no_license | joykim137/LPTHW | e3148202094cdc661cc26ed2a3e60c6279f70564 | 688027dbb6483755a4c8edab88c124860198b973 | refs/heads/master | 2020-05-20T12:25:19.762167 | 2017-03-29T02:13:44 | 2017-03-29T02:13:44 | 80,483,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | x = "There are %d types of people." % 10
binary = "binary"
do_not = "don't"
y = "Those who know %s and those who %s." % (binary, do_not)
print x
print y
print "I said: %r." % x
print "I also said: '%s'." % y
hilarious = False
joke_evaluation = "Isn't that joke so funny?! %r"
print joke_evaluation % hilarious
w = ... | [
"joykim@seoulchristian.org"
] | joykim@seoulchristian.org |
769b2e9a0ac02ec0c0fc798c978cb21b9a02e71a | fd4721a4b4943ca9ebb0a2064e2d810ec4bea0bb | /central_service/utils/data_transf.py | 22e6789559752a74555a5ad9441744e1985126a5 | [
"MIT"
] | permissive | vunetsys/mpquic-rl | 45782ff3544c8e39374c6a098cc259495d941273 | f9f9ce7a199c359baf0d5cdee063fbd5186f82c5 | refs/heads/master | 2022-12-22T23:50:52.564552 | 2020-09-26T15:38:25 | 2020-09-26T15:38:25 | 238,733,655 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,389 | py | # Some useful operations on data we need for our training
def allUnique(x, debug=False):
'''
Simplest way to check if all items in a list are unique
with early exit
'''
# return len(x) == len(set(x))
if debug:
seen = set()
for i in x:
if i in seen:
... | [
"marioskanakis@gmail.com"
] | marioskanakis@gmail.com |
ee174c2dfc028eaa1f9b890d11a71738ce7fbed3 | 642fc5cc0ec6e8021fbf7be31a5524737089f6aa | /api/migrations/0001_initial.py | e39399a04415474ef5b13ffb441b34aec6100140 | [] | no_license | safarorg/music-rooms | 62dbc5f79427227fa06441d50583d607075795fe | acd8d6e0d542797319c442255412abe389dbba9d | refs/heads/main | 2023-02-26T03:42:33.651398 | 2021-02-04T18:52:22 | 2021-02-04T18:52:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 788 | py | # Generated by Django 3.1.6 on 2021-02-03 23:37
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Room',
fields=[
('id', models.AutoField(aut... | [
"safariko93@gmail.com"
] | safariko93@gmail.com |
ca19fd2102ecc1315b451f1d014c2fdc738aa9fa | dd1a4ca7020ba5cac93d90829798a3a6f80d33a1 | /python/a+b.py | 8543f330778f6b5120ca9b0ef38984a376f1d2fd | [] | no_license | Exbilar/Source | a0f85b8b47840a4212fd4a9f713f978cab13e9a3 | b8bc0dc52e51f6c4986bd0f37de61b13d98e6e8c | refs/heads/master | 2022-05-03T22:35:57.300520 | 2022-03-14T09:03:03 | 2022-03-14T09:03:03 | 97,890,246 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 45 | py | a=(int)(input())
b=(int)(input())
print(a+b)
| [
"exbilar@gmail.com"
] | exbilar@gmail.com |
16bd10b11e4d259ea0624fbef79cfa7bedb25b02 | 78c4ccb183a99ebaabcdc3a3a69f029e4aee0f5c | /AlgorithmStudy/백준/무지성 랜덤풀이/9월/9.19/1057 토너먼트.py | 3ebf3c81fb50fc00a0a769e5763627af7126e159 | [] | no_license | cladren123/study | ef2c45bc489fa658dbc9360fb0b0de53250500e5 | 241326e618f1f3bb1568d588bf6f53b78920587a | refs/heads/master | 2023-09-02T02:21:24.560967 | 2021-11-05T12:20:06 | 2021-11-05T12:20:06 | 368,753,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 333 | py | """
문제유형 :
수학
브루트포스
1
1 3
1 2 3 4
두 수를 2로 나눈 몫을 서로 같아질때까지 빼다보면 라운드 수가 나온다.
"""
import sys
input = sys.stdin.readline
n, p1, p2 = map(int, input().split())
count = 0
while p1 != p2 :
p1 -= p1//2
p2 -= p2//2
count += 1
print(count)
| [
"48821942+cladren123@users.noreply.github.com"
] | 48821942+cladren123@users.noreply.github.com |
3b7b0e8ce61a0e42ac55fab0aae621e16c9a3d2e | 70e32c5e1410c824f7debc726ac552ea2dc14f11 | /sdn/programming-assignment-6/submit.py | 399bbaa44c069496dca3ff8573a9e3d4d8c7f6cf | [] | no_license | junousia/coursera | 32dfa3818ee005cea593de82faa2048c55a82917 | ce32ae1e432d6a1b82314d032cae569ffecc1f26 | refs/heads/master | 2020-05-20T10:41:15.477987 | 2014-06-15T12:09:01 | 2014-06-15T12:10:12 | 7,891,811 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,165 | py | '''
Coursera:
- Software Defined Networking (SDN) course
-- Module 6 Programming Assignment
Professor: Nick Feamster
Teaching Assistant: Muhammad Shahbaz
'''
### The only things you'll have to edit (unless you're porting this script over to a different language)
### are at the bottom of this file.
import urllib
imp... | [
"jukka.nousiainen@gmail.com"
] | jukka.nousiainen@gmail.com |
821d5e38bb6bc7cd626ca8d67a825d1a4dc3d9fd | eb8b5cde971573668800146b3632e43ed6e493d2 | /python/oneflow/nn/modules/random_ops.py | fb7503bc898688f8a370e6cae07c381d2f619987 | [
"Apache-2.0"
] | permissive | big-data-ai/oneflow | 16f167f7fb7fca2ce527d6e3383c577a90829e8a | b1c67df42fb9c5ab1335008441b0273272d7128d | refs/heads/master | 2023-07-08T21:21:41.136387 | 2021-08-21T11:31:14 | 2021-08-21T11:31:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,176 | py | """
Copyright 2020 The OneFlow 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 applicable law or agr... | [
"noreply@github.com"
] | big-data-ai.noreply@github.com |
59e67acd4022cf765753f09292a57723239ca990 | 3963cc5b29c894a8c6891be272b9598810ca99c5 | /article.py | 7fd126f8b28a7220a74a33fb1b6090aee5203048 | [] | no_license | suhcrates-web/sihwang | f7abcf627ec645b3d90d7da762bf8a4364ddbd3e | c8183af49df75d0764780a7def48ab4a542d06e4 | refs/heads/master | 2023-05-09T02:38:58.651915 | 2021-05-31T03:42:05 | 2021-05-31T03:42:05 | 350,247,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,851 | py | from bs4 import BeautifulSoup
import requests, re
import socket, codecs, time, re
from toolbox import dict_sort, banolim
from datetime import date, timedelta, datetime
#영웅문 시작페이지에서 코스피, 코스닥 기본값 멘트와 plma 가져옴
def background(be_0 = 'None'):
if be_0 =='None':
url = 'https://www.kiwoom.com/nkw.HeroFrontJisu3.do... | [
"suhcrates@hanmail.net"
] | suhcrates@hanmail.net |
c93239bfc6f0779964aa37f2069496fdaa72e5f6 | 13423e31f3f624e33d442315e64962f08e093144 | /Jasoseol/JssProject/main/views.py | ed3206b5594c7c7c81ce04a8dc871e844c2b24a5 | [] | no_license | c-min-ji/LikeLion_8th | 14b1a766ef3b2d36389f6f8bcea3c7078168fefd | db86bd2eabb2c7a9dcdea9e6534d6a1def41f93f | refs/heads/master | 2023-08-13T16:42:26.546081 | 2021-09-20T03:25:36 | 2021-09-20T03:25:36 | 407,765,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,512 | py | from django.shortcuts import render, redirect, get_object_or_404
from .forms import JssForm
from .models import Jasoseol
from django.http import Http404
# Create your views here.
def index(request):
all_jss = Jasoseol.objects.all()
return render(request, 'index.html',{'all_jss':all_jss})
def create(request):
... | [
"mjeewh@gmail.com"
] | mjeewh@gmail.com |
0051f0b263c771d0d796d609592be3b693a8b0bf | 446571f13b3c1604cdfbcee8fdc2f956568d7c8d | /geeksforgeeks/arrays/zero_flip.py | dfa147be96fa075eaaa1e5a24d01659937c19f41 | [] | no_license | ssarangi/algorithms | 2e8f0a4be6bf0f4a3d75b224ed993e1fb0ca0229 | e151307f2706214cf8cefa6231290aeb2e5cfd82 | refs/heads/master | 2021-01-17T02:28:23.291588 | 2018-01-06T18:35:13 | 2018-01-06T18:35:13 | 51,458,833 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,125 | py | def flip_zeros(arr, m):
current_not_flipped = m
start = 0
max_till_now = 0
positions = []
best_positions = None
cons_zero = 0
end_of_zeros = -1
while 0 <= start < len(arr):
i = start
while (i < len(arr)) and (current_not_flipped != 0 or arr[i] != 0):
if arr[i... | [
"satyajit.sarangi@gmail.com"
] | satyajit.sarangi@gmail.com |
26052b52f18fddc3ed41610596598958ff6c5590 | 84a7d371e58d56f23dd44811ef8fbab605b90858 | /homework/_1/case_7.py | 195f810b70d1ab467823655bc24fcd64c05cc827 | [] | no_license | Pypy233/python | eb5b3ac047720ec5f4c824551c5417f2df40bcc1 | 08493b9c8019e7f83c9760bd6cdd4a8f0249b7bc | refs/heads/master | 2021-01-01T15:53:22.681473 | 2018-08-27T02:32:24 | 2018-08-27T02:32:24 | 97,724,842 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | #-*- coding:utf-8 -*-
class Solution():
def solve(self, A):
#call function prime
lst = []
for i in A:
if self.prime(i):
lst.append(i)
return lst
#judge whether x is prime or not
def prime(self, x):
if x <= 0 or x == 1:
re... | [
"161250096@smail.nju.edu.cn"
] | 161250096@smail.nju.edu.cn |
70d705569f2c0ecf5f69bbe862bd31667eb7fbd8 | 130b217cfed2d151b20bb52d366e0e0d242a8c7a | /components/breakpoint.py | c1fba482362e4deca308b5d2cb385c8d3fa903c0 | [] | no_license | RandomNB/EDB | 2de9bc06a87bf3153d94d79b3e9ffe83fa146ff9 | 4d80856b19b041c721a3485aa7e16a64f2cbeb3a | refs/heads/master | 2023-06-16T20:06:54.753262 | 2021-07-20T00:52:10 | 2021-07-20T00:52:10 | 387,631,503 | 16 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,367 | py | from components.utils import *
class Breakpoint():
def __init__(self, conditions: str) -> None:
self.condition_str = conditions
conditions = conditions.split(';')
self.conditions = []
for c in conditions:
c = c.strip().replace(' ', '')
c = c.replace('=', '==... | [
"oldmac@OldMBP.local"
] | oldmac@OldMBP.local |
c92082561955960009d752e4ffe94a930beeedb3 | eeaf323a92254190195ecbb61c03171aae8f28ee | /accounts/migrations/0002_usercompanies_company_name.py | decf6fe96a53b78ea09b7794c2145c537e0264d5 | [] | no_license | abdullakn/job-portal1 | 44295db5c1169494454fa407ad5716f119e6017b | c5d299acae4262eb9d02317f3358aaa6d4314b13 | refs/heads/master | 2023-07-18T07:45:54.610627 | 2021-09-04T11:37:36 | 2021-09-04T11:37:36 | 403,040,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | # Generated by Django 3.2.5 on 2021-07-21 18:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='usercompanies',
name='company_name',
... | [
"abdudebanjazz@gmail.com"
] | abdudebanjazz@gmail.com |
5800db987d7960724d698ed9b84e24feed6cbbb3 | b689a7708f7c2d6880c8556c32bfec0d79895be0 | /robin/statistics/migrations/0001_initial.py | b69774b36bd1e4add7e2bc3a1a9405eace0b4cff | [] | no_license | hereischen/robin | 7e874fb6642dd68a48a42c6f1caf01cf1fb984e2 | 97d95ec10caf408b2b3f4c55d73dc2f0b93ade8b | refs/heads/master | 2021-01-24T15:06:02.506217 | 2018-10-30T08:51:04 | 2018-10-30T08:51:04 | 68,569,761 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,450 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.9 on 2016-09-27 09:32
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Creat... | [
"hachen@redhat.com"
] | hachen@redhat.com |
6eed735bb4f984a6731d98739568a18f0544a9c9 | da2c159f1971cf71cf2b733dc0dbdd3684761180 | /Hackerrank/Sets/strict superset.py | 71829054a8a7a3e81286b9504a01295ad2a29480 | [] | no_license | shravan0409/LTI-preparation | a11bacb485893e294bde89b65ae30912b1cb466f | 72c692d147c0da74b9cca9efd7acd6988dc47c87 | refs/heads/main | 2023-03-24T13:16:33.728761 | 2021-03-21T17:55:14 | 2021-03-21T17:55:14 | 348,372,387 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | A = set(map(int, input().split()))
for _ in range(int(input())):
X = set(map(int, input().split()))
if A.issuperset(X) != True or len(A) == len(X): #returns true if the set is a perfect super set
print(False)
break
else: print(True)
| [
"noreply@github.com"
] | shravan0409.noreply@github.com |
7b7d347149ddda0cbc9c618459c6c1fa0741bc89 | c50e7eb190802d7849c0d0cea02fb4d2f0021777 | /src/virtual-wan/azext_vwan/vendored_sdks/v2018_08_01/v2018_08_01/aio/operations/_load_balancer_frontend_ip_configurations_operations.py | 006f819fc5baa437f0da30dd80a00996d1cbf621 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/azure-cli-extensions | c1615b19930bba7166c282918f166cd40ff6609c | b8c2cf97e991adf0c0a207d810316b8f4686dc29 | refs/heads/main | 2023-08-24T12:40:15.528432 | 2023-08-24T09:17:25 | 2023-08-24T09:17:25 | 106,580,024 | 336 | 1,226 | MIT | 2023-09-14T10:48:57 | 2017-10-11T16:27:31 | Python | UTF-8 | Python | false | false | 8,921 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
6ca7f5d24c91b078fc989d351c41a011332afca9 | 099deeb2c308bdc00a2c423743e4b2aacdac866c | /week7/tuple/youngyun.py | 890eaa5146674579d96aa1f65f6d9eff1b6cb958 | [] | no_license | Joonsun-Hwang/coding-test-study-lamda | 76fed2f18a3220f6731775984425dff49b4379eb | 0632ec9dd60024203ed10ebeab07aa7da4782806 | refs/heads/main | 2023-05-01T21:31:48.174944 | 2021-05-05T09:48:23 | 2021-05-05T09:48:23 | 329,205,708 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | import re
def solution(s):
s = eval(s[1:-1])
s = list(s)
if len(s) > 1:
s.sort(key=lambda x: len(x))
else:
return list(s)
answer = []
for sg in s:
for ssg in sg:
if ssg not in answer:
answer.append(ssg)
return answer
| [
"fightnyy@naver.com"
] | fightnyy@naver.com |
48943f3f567ebfe249a08dc5ebe90c5e9841dd43 | d68ca034018d66f73024223d4b2266b3c3c901d7 | /prev/myworks/onelifefitness/chainxy/spiders/onelifefitness.py | 446dae58b98362a5967083b62453bedc1b6f9e84 | [] | no_license | GoodyIT/scrapy | caff30d26660f778008ad50532e364ab36aba4c2 | 5ae80cf83dc62c4e1bd2bfa11049ca39a3ca3488 | refs/heads/master | 2021-01-20T10:10:18.365194 | 2017-07-22T13:09:07 | 2017-07-22T13:09:07 | 90,330,210 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,546 | py | import scrapy
import json
import re
import csv
import requests
from scrapy.spiders import Spider
from scrapy.http import FormRequest
from scrapy.http import Request
from scrapy.selector import HtmlXPathSelector
from chainxy.items import ChainItem
import pdb
import usaddress
class Onelifefitness(scrapy.Spider):
na... | [
"johnsondavid489@yahoo.com"
] | johnsondavid489@yahoo.com |
205c766a5f054f111989899ee86d374e69ac0558 | 2725bd7f0ce8d08b7a3eee686776ad3341915975 | /jsonpatch/tests.py | 88012dee7cf95b111b441e2ecc2437a4075ef602 | [
"BSD-3-Clause"
] | permissive | xie137z/pyDDP | 1658e46348b8c5eae15618073aecbde1f1f90cba | ccee678d77e1c2a7d29d114cbd2f92f92f245eeb | refs/heads/master | 2021-01-02T03:55:55.044051 | 2015-05-16T08:12:16 | 2015-05-16T08:12:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,435 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import json
import doctest
import unittest
import jsonpatch
import jsonpointer
import sys
class ApplyPatchTestCase(unittest.TestCase):
def test_apply_patch_from_string(self):
obj = {'foo': 'bar'}
patch = '[{"o... | [
"groovy354@gmail.com"
] | groovy354@gmail.com |
c4a0e48883cf88ed73309bb1ee16b6d9a330be6d | 0762a41811b52bdc401f25fc1f045854565da899 | /leetcode/easy/sqrt_x.py | 4bae996a48cd6658c33e072cb497f753733bb825 | [] | no_license | rashad101/Online_Problem_Solving | 5d6732a3373ffdd7e6aed64ef43987fbfd8af94f | 15298a14b2464228b6a02114450d5a11b70f9b70 | refs/heads/master | 2020-06-17T01:54:22.872191 | 2019-08-04T10:56:42 | 2019-08-04T10:56:42 | 195,760,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | #https://leetcode.com/problems/sqrtx/
#Runtime: 24 ms, faster than 63.90% of Python online submissions for Sqrt(x).
#Memory Usage: 11.8 MB, less than 56.36% of Python online submissions for Sqrt(x).
class Solution(object):
def mySqrt(self, x):
"""
:type x: int
:rtype: int
"""
... | [
"rah.rony@gmail.com"
] | rah.rony@gmail.com |
11b31f35dc668112d0124a59dd723b8cb872acea | 535a4d3c3f57f5f67d36be3d7d54fdbf9fc30a92 | /やってみよう_必修編/chapter09/9_10_imported_restaurant.py | 5ef1486dd7e1b597ed37100f39228f9f6ac49553 | [] | no_license | kyuugi/saitan-python | 4d28c6ecacb4d0b846292ab94f54814dde1cbab0 | 8196a91a9aac5011bc29782381b93f143b0ae25a | refs/heads/master | 2022-12-06T05:49:13.363864 | 2020-09-01T23:19:32 | 2020-09-01T23:19:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | from restaurant import Restaurant
restaurant = Restaurant('malaychan', '東南アジア料理')
restaurant.describe_restaurant()
restaurant.open_restaurant()
| [
"takanori@takanory.net"
] | takanori@takanory.net |
f07ef193d42eda2ed26c4f9895185294a91dc3cb | e75277ad805d4622b66ce47e64d6d222a5b51e72 | /modules/database.py | 45dbc160af6dd8f16e5ce80e481617064f4ffffe | [] | no_license | kvikshaug/grouphugs-py | 23f506809f1ae9512f0cd02781dd08f2b4f87399 | 99954d176387d8ebceda805ddf9b3c2e3d7e0114 | refs/heads/master | 2020-12-24T14:44:50.285841 | 2013-05-27T21:02:57 | 2013-05-27T21:02:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | import sqlalchemy as sa
import sqlalchemy.dialects.postgresql as pg
from sqlalchemy.ext.mutable import MutableDict
from sqlalchemy.ext.declarative import declarative_base
import config
class Database():
Base = declarative_base()
def __init__(self):
self.engine = sa.create_engine(config.DATABASE_URI)
... | [
"oyvind.overgaard@gmail.com"
] | oyvind.overgaard@gmail.com |
d10d1d970e83764a29323dd3b7908e9668e4959a | 83d1e68f4c9cde40b83f00a56f3c9b57f91aea82 | /UI/bombora/utils/logdb.py | 0098b4a406fb6cd07e2d0869abe0107e9acab757 | [] | no_license | dxcv/ai-bot | 34dd1e8f86e20899bb43765295d58e6f558cdaec | d6dfe9b7a7363e414f6adbc33329f70f6c525b45 | refs/heads/master | 2021-01-07T06:54:24.479197 | 2020-02-19T07:58:54 | 2020-02-19T07:58:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,124 | py | # Very simple log keeper in sqlite database, where serialized data is stored
# snippet modified from github.com/scrapy/queuelib
import os
import sqlite3
class LogDB(object):
'''
keeps byte queue in an iterator style, next returns tuple of (id, bytes)
'''
_sql_tbl_create = '''
CREATE TABLE lo... | [
"jm16.cho@gmail.com"
] | jm16.cho@gmail.com |
9bd2a84eacf0678981818dcd3b80ac4b648948d5 | f599db2f4a12148277d52372b965f7def311dd43 | /jobs/tests/unit_tests/test_job_offer_forms.py | 8bd56bd0a311f561b49a587b1233185aacbb204d | [] | no_license | cmigazzi/P13_Final | d6fbd61b213ed3655afd87514baa3b13b2793cd4 | ae4f06e05b21bb208b5c5f7c59583110ad55b600 | refs/heads/master | 2022-05-09T20:16:42.608818 | 2019-07-29T13:08:59 | 2019-07-29T13:08:59 | 192,683,883 | 0 | 0 | null | 2022-04-22T21:56:01 | 2019-06-19T07:42:54 | Python | UTF-8 | Python | false | false | 3,222 | py | """Contains tests for JobOffer form."""
from datetime import date
from django import forms
from jobs.forms import JobOfferForm
from jobs.models import JobOffer
def test_form_is_model_form():
assert issubclass(JobOfferForm, forms.ModelForm)
def test_meta_model_is_joboffer():
assert JobOfferForm.Meta.model ... | [
"cedric.migazzi@hotmail.fr"
] | cedric.migazzi@hotmail.fr |
be9c7f1407518d5042bb9f9141452c9827f5bc14 | 693c76bf548ad67232dba7951be51274a1d6e7d0 | /CodeChef/forgotten language.py | eb4eaa2796a22da44e9b55467ed31e12f3533067 | [] | no_license | Kartavya-verma/Competitive-Pratice | 7958e3034e5e766d6e1186fee2f23562fac70a9b | 8c684996410b376263082a7421d4a14a85cf624b | refs/heads/master | 2022-12-22T10:38:37.981529 | 2020-09-14T12:22:50 | 2020-09-14T12:22:50 | 295,405,048 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | for i in range(int(input())):
n, k = map(int, input().split())
a = input().split()
res = ['NO']*(n)
for j in range(k):
s = input().split()
s = s[1:]
for j in s:
if j in a:
res[a.index(j)] = 'YES'
print(' '.join(res)) | [
"vermakartavya2000@gmail.com"
] | vermakartavya2000@gmail.com |
d4a4a324a8417d7588ea31306156207b9e9040fd | 43284a757e4f76cf548a79a495c16ec5ed087f7b | /Alex_Hu_Commnets_Final_Project_2/sender.py | 7b018046b571f86fca826d4ada768a2416c4c189 | [] | no_license | Enigmamemory/SchoolWork | a6e05c1aa1a6403f3bed9ebdf860cf32d822a831 | 4922429c16974dea1da86f36989912695eaeaad8 | refs/heads/master | 2020-03-28T19:14:05.502063 | 2019-09-25T02:17:56 | 2019-09-25T02:17:56 | 148,957,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,958 | py | # Written by S. Mevawala, modified by D. Gitzel
import logging
import socket
import channelsimulator
import utils
import sys
import hashlib
def slice_frames(data_bytes):
"""
Slice input into BUFFER_SIZE frames
:param data_bytes: input bytes
:return: list of frames of size BUFFER_SIZE
"""
fra... | [
"enigmamemory@gmail.com"
] | enigmamemory@gmail.com |
022be9e5e8031067fe0e36e0334b549dc84261e8 | 146eb2f624622309682362ba6ad3658b22a4337c | /gameExample/04_animation_tutorials/04_10_flexibility.py | 7d3170b019700d0f38ce2f51b75b286b96104c1a | [
"GPL-2.0-only",
"Apache-2.0"
] | permissive | ilosea/WFRL | 511869e6f4cc8373a22ea85866ef9aeb60d6fdc5 | 4b6e00b732a994141142e3ef5ee00e79d7b5fe27 | refs/heads/master | 2020-09-06T12:44:08.414567 | 2018-08-01T14:39:38 | 2018-08-01T14:39:38 | 220,427,484 | 3 | 0 | Apache-2.0 | 2019-11-08T09:01:34 | 2019-11-08T09:01:31 | null | UTF-8 | Python | false | false | 7,925 | py | #!/usr/bin/env python
#
#
#
#
#
# documentation string of this module
"""
Animation tutorials.
"""
# some informational variables
__author__ = "$Author: DR0ID $"
__version__ = "$Revision: 184 $"
__date__ = "$Date: 2007-08-24 19:22:06 +0200 (Fr, 24 Aug 2007) $"
__license__ = 'GPL2, see: gpl-2.0.txt'
__copyr... | [
"qinglanpeng@zju.edu.cn"
] | qinglanpeng@zju.edu.cn |
52350c3dc79c73533c9bd6881d3ddfa3f901ac0d | c2bb37dd27f8d3c442af776cef1ac046de011b87 | /blogsite/urls.py | ca94038bdbd1a758ee5fcdbf6ace15ba9fb8d9ac | [] | no_license | zylhub/blogsite | 28b32c0bf9b52ad9604a926c02ca1e7a1c59e767 | 55186dc761d4663582af8c852b02f2a63c206e17 | refs/heads/master | 2023-07-17T01:53:41.193347 | 2021-08-27T15:02:52 | 2021-08-27T15:02:52 | 400,534,439 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 818 | py | """blogsite 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-base... | [
"zylhub@qq.com"
] | zylhub@qq.com |
752f1a66505a34350b55dc4d5663bdaf05f83b29 | ba97edb7de4c16b100cd6a743b46d0dc23f0f75e | /manage.py | 3fb0edebaa6107bac22c725732e1bd5cd5d007c6 | [] | no_license | hi-im-yan/random-congratz | dd0fb8390db60aab11e9f9bfdd5b240ed0bbf4e6 | fd7f71181a295495508c4955e5e77151ec81e41b | refs/heads/master | 2023-04-28T03:52:55.535187 | 2021-05-11T00:45:19 | 2021-05-11T00:45:19 | 366,202,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'random_congratz.settings')
try:
from django.core.management import execute_from_command_line
exc... | [
"yanajiki2010@hotmail.com"
] | yanajiki2010@hotmail.com |
3c3776cc2ce8e0c4c449efe51306bfeebe107f67 | 0978f45ca921dd7791d669d9d5a22c2588d941ec | /cgi-bin/play_message | 528c2e62236558c5eb19f6ba332852ad6d508f89 | [] | no_license | joecrop/SDMO | a61274fb3a79c1ca62d23339576bcf01867024bb | c9b5a2bcdd861f87e1470e012e9e882b51587dc6 | refs/heads/master | 2020-05-27T06:11:04.016524 | 2015-09-07T18:20:10 | 2015-09-07T18:20:10 | 42,062,561 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | #!/usr/bin/python
import cgi, cgitb
import subprocess
print "Content-type: text/plain; charset=iso-8859-1\n";
# Create instance of FieldStorage
form = cgi.FieldStorage()
#recieves:
# message: text to say
#returns:
# success: 1/0
# Get data from fields
message = form.getvalue('message')
p1 = subprocess.Popen([... | [
"joe@Joes-MacBook.local"
] | joe@Joes-MacBook.local | |
d8c04f7c9ff808dd41092866e430bdfa4cf31358 | 738b7f4af51ee7d3cb650a919c63e91e814282df | /plot.py | 7c6709080cd1affce7ea9b1f8e8aac14c58e12ea | [] | no_license | Sherwin-xjtu/MILBoost | 8d75c3e0ece0e054d40ee7f3a130c4f2cc2bb2a3 | 659668dd30fb805633c768373e3be050a70a995a | refs/heads/master | 2023-03-16T23:28:17.662886 | 2018-04-21T19:33:04 | 2018-04-21T19:33:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,444 | py | import matplotlib.pyplot as plt
m = [0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40,
42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82,
84, 86, 88, 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 112, 114, 116, 118, 120,
122, 124, 126, 128, 130, 13... | [
"yueshu@yuematoMacBook-Pro.local"
] | yueshu@yuematoMacBook-Pro.local |
cfb7c23f86c945b9622561709765fa5f7ca22cdf | 8d600f870c0372abd324200f669cb6e546f7f7b0 | /movie_web_app/cs235init.py | 35b57a28435ab6f1975d6c3d6131b881cf8cb058 | [] | no_license | Hanqing-Ouyang/FlixSkeletonWebApp | b837e4baaec00f1f3d7516bf7da5ccd7b32d60ac | 18f708ac19a56f490c7f98207394c474b3c52422 | refs/heads/main | 2023-01-04T21:38:56.876064 | 2020-10-25T08:22:12 | 2020-10-25T08:22:12 | 302,567,145 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,395 | py | from movie_web_app.datafilereaders.movie_file_csv_reader import MovieFileCSVReader
from movie_web_app.domainmodel.read_title import read_title
def main():
filename = 'datafiles/Data1000Movies.csv'
movie_file_reader = MovieFileCSVReader(filename)
movie_file_reader.read_csv_file()
movie_file_reader2 = r... | [
"noreply@github.com"
] | Hanqing-Ouyang.noreply@github.com |
3fdec5666063da600095a857cc17273667df8660 | 2128863a36eadabd39b5b8e5be1d8330c99a8884 | /src/ni_engine/controllers/faulhaber/__init__.py | 92757419f3173a89f457c1b3a7618241bd4a7425 | [] | no_license | taalexander/ni-engine | 1f394c6d399c25be0f1d7373d3cebd8b95cb5b20 | 1532c8dbf7a6ea55ce782cd9ef036faf68e78fe2 | refs/heads/master | 2021-09-04T15:21:53.552774 | 2015-08-13T18:11:14 | 2015-08-13T18:11:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25 | py | from LM1247 import LM1247 | [
"thomasalexander2718@gmail.com"
] | thomasalexander2718@gmail.com |
bbe6f4854ad20f15289a16cc4b88c34e20f5323c | 7bf80c5520a135152dd24137c04295c06b7ef64a | /keras_frcnn/thundernetv1-Copy1.py | 47d1faae6cdd20fddfa03fc5861f7cadd9fa87c5 | [
"Apache-2.0"
] | permissive | patrickeala/thundernet-frcnn-with-keras | d569c07150fa7a84e51ed1a58ee72dd0a5600a25 | 917c312936a26c643a3f9efde78ff7751af1bdb4 | refs/heads/master | 2020-12-18T23:45:31.590313 | 2020-01-22T11:56:22 | 2020-01-22T11:56:22 | 235,558,563 | 0 | 0 | Apache-2.0 | 2020-01-22T11:23:58 | 2020-01-22T11:23:57 | null | UTF-8 | Python | false | false | 11,354 | py | # -*- coding: utf-8 -*-
"""MobileNetv1 model for Keras.
"""
from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
import warnings
from keras.models import Model
from keras import layers
from keras.layers import Flatten, Dense, Input, Conv2D, MaxPooling2D, Dropo... | [
"henri.tomas@eee.upd.edu.ph"
] | henri.tomas@eee.upd.edu.ph |
30f5a86dcb07bca0a5fbf3aeee018daf3685a4ed | 32b5228f454713e88ebf6963a2268b9859610274 | /pool_ladder/migrations/0009_userprofile_slack_name.py | a0717def31deb2397fbf6e7a531727b82bd6dfff | [] | no_license | mj2p/pool_ladder | d1e09abbbbdfbeca0bb5384aed9ab88543646115 | 054b8a36cd67868ac2f04c3c1b85b23b5550124f | refs/heads/master | 2020-04-17T05:54:14.417270 | 2019-09-26T09:20:34 | 2019-09-26T09:20:34 | 166,303,003 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | # Generated by Django 2.1.5 on 2019-01-18 15:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pool_ladder', '0008_auto_20190115_2236'),
]
operations = [
migrations.AddField(
model_name='userprofile',
name='slac... | [
"sam.griffiths@ripjar.com"
] | sam.griffiths@ripjar.com |
2f88d13c21d075b2b3f4136758dfc35918670460 | f884d7593d3de3c67f9b595fa6a1b616463372f4 | /src/accounts/models.py | 3309b13ece8b1c7a1ebb121045a47f7aa7570726 | [] | no_license | Pierre12412/CRM | 71a1c8cc229319e996a20cb93963b4ca8b0dcf37 | 38f2f184b51b693dc222cccba7beca290b6b4f54 | refs/heads/main | 2023-08-21T21:48:18.135317 | 2021-10-26T08:41:02 | 2021-10-26T08:41:02 | 411,595,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,047 | py | from datetime import datetime
from django.contrib.auth.base_user import AbstractBaseUser, BaseUserManager
from django.db import models
class UserManager(BaseUserManager):
def create_user(self, email, password=None):
"""
Creates and saves a User with the given email and password.
"""
... | [
"pierre.bellegueule@gmx.fr"
] | pierre.bellegueule@gmx.fr |
68fbb29c364a4f6b17cf269f611afac8fb2b7027 | 956f13e160b8381d3f8bbbb4b97bf66981ce0490 | /index/migrations/0012_auto_20181119_1617.py | b89c05a472c13c4b6b1a52e677e55b53234dfbd9 | [] | no_license | yzp0111/zyogo | e910d0ad029fb1a3f95beb8422336fee474c635a | b4807f4418d8cb1d195097f87e4e74637346cb6d | refs/heads/master | 2020-04-07T23:46:44.946618 | 2018-11-23T11:43:50 | 2018-11-23T11:43:50 | 158,824,828 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-11-19 08:17
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('index', '0011_auto_20181119_0852'),
]
operations =... | [
"tarena@tedu.cn"
] | tarena@tedu.cn |
af4abfbb35652747eedbd27cfd3f800dab391405 | 707e82448be6d91024fe9848362fb615d600b349 | /Simpylc/__main__.py | 2ff49b3e191b964779d34b0b83ce632f9d9839f6 | [] | no_license | mnguyen93/CargopodIM | 6baf00f569715e225c76536f018378f07521c260 | f36718ca9d013f444cfedcd76c7f2d8787379484 | refs/heads/main | 2023-02-21T17:22:42.108943 | 2021-01-19T13:25:33 | 2021-01-19T13:25:33 | 305,665,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,074 | py | # ====== Legal notices
#
# Copyright (C) 2013 - 2020 GEATEC engineering
#
# This program is free software.
# You can use, redistribute and/or modify it, but only under the terms stated in the QQuickLicense.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, without even the ... | [
"noreply@github.com"
] | mnguyen93.noreply@github.com |
a0191c9a25f1b35321e543f98aaf6c0c6171933c | 709529e7f02daa1ee72424bc239c6f2f65f8b36b | /Contactos/gestionContactos/migrations/0004_auto_20210613_1351.py | 342d80acc2e07801f4402981316a2955f954eb33 | [] | no_license | Dayan-Orozco/Contactos-repo-Prueva-Bascosta | 9175e64af7842785a258520a04b6e8b353785759 | 40ece6029d4cae29d9b99f69c2dc91ad380d80dc | refs/heads/main | 2023-05-29T01:42:41.629228 | 2021-06-14T01:42:18 | 2021-06-14T01:42:18 | 376,675,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 670 | py | # Generated by Django 3.2.4 on 2021-06-13 18:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('gestionContactos', '0003_contactos_foto'),
]
operations = [
migrations.AlterField(
model_name='contactos',
... | [
"dayancitodor39@gmail.com"
] | dayancitodor39@gmail.com |
c387b822157c1e5735959e46d93f8bdd8200ae55 | 6fb5c73dd0fd0dca52c6a00a0376f417d6b5528c | /rl/utils/logger.py | 804bf7197d8dc546d9cb760c46101457a3f3924b | [
"MIT"
] | permissive | awesome-archive/rl | af88121def529184729571a2ed1d0e2890f977b1 | 7b6ce5b41c47394d0f68903fd675e47f68f28958 | refs/heads/master | 2022-03-27T02:39:44.306620 | 2019-07-20T02:44:10 | 2019-07-20T02:44:10 | 198,167,946 | 0 | 0 | MIT | 2020-01-13T03:30:57 | 2019-07-22T07:12:33 | Python | UTF-8 | Python | false | false | 1,677 | py | import os
import numpy as np
import tensorflow as tf
LOGGER = None
def init_logger(hparams):
global LOGGER
LOGGER = Logger(hparams)
def log_scalar(tag, value):
global LOGGER
LOGGER.log_scalar(tag, value)
def log_histogram(tag, values):
global LOGGER
LOGGER.log_histogram(tag, values)
def log_graph()... | [
"bryanlimy@gmail.com"
] | bryanlimy@gmail.com |
38dac0620ed6d0e47d6ada8ebbfb8b806d99f34c | 72b04c51022b8b799c17828853b831b233e5d631 | /ASR/data_utils/data_loader.py | 42b9433146594b3f33e0294c9429fcb2e07d252d | [] | no_license | Grit1024/wav2vec-project | daf06219b9e10b0f8221e60995392c6e1759aac6 | f5656c6a83cd9c7c6f6c70e218bccf8d523c4c4a | refs/heads/main | 2023-02-22T17:03:10.722127 | 2021-01-29T08:33:54 | 2021-01-29T08:33:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,866 | py | # coding:utf-8
#
#
import os
import sox
import math
import json
import torch
import numpy as np
import soundfile as sf
from tempfile import NamedTemporaryFile
from .adding_reverb import ReverbAugmentor
from torch.utils.data import Dataset, Sampler, DistributedSampler, DataLoader
def load_audio(path):
sound, samp... | [
"viaxu910515@163.com"
] | viaxu910515@163.com |
f484c4a539060908cd15609efcc1929cbddac6c3 | 07b0328e7e13293c89fda14f368e3fa479a871a1 | /Machine-Learning/chapter5/logReg.py | b48ee8af9978186dea6b0233ca559211951d4219 | [] | no_license | realsunny/Machine-Learning-Study | 75eff7e9a76ab6c348850a3442d11a9a9616e47e | 9a659b3a151b93b5ba7e43e9e01ff9f73df6635d | refs/heads/master | 2020-12-29T15:48:18.591784 | 2020-03-03T05:34:06 | 2020-03-03T05:34:06 | 238,658,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,856 | py | import numpy as np
from math import *
def load_train_data():
train_data_matrix = []
label_matrix = []
with open("testSet.txt")as f:
for line in f.readlines():
temp = line.strip().split()
train_data_matrix.append([1, float(temp[0]), float(temp[1])])
label_matrix.... | [
"1936284501@qq.com"
] | 1936284501@qq.com |
1ef3206bdc00cbdaa7a7f1d4f162b34cbc4bcff0 | d440f2ea86e3edfe2b4618f7aa1580775309646f | /{{cookiecutter.project_name}}/{{cookiecutter.project_name}}/settings.py | f0fd4a116fef0e714910a3605835fc744cf5fdfa | [
"BSD-3-Clause"
] | permissive | revenazb/wildfish-django-starter | 8c843e93ff22616f653010156bc3eccbaf44ac5d | 524a1fca5472e7c91e817cfa24eefa40b6db7eef | refs/heads/master | 2020-05-29T12:26:49.755230 | 2014-09-12T14:21:58 | 2014-09-12T14:21:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,368 | py | from os.path import dirname, join
from configurations import Configuration
BASE_DIR = dirname(dirname(__file__))
PROJECT_NAME = '{{cookiecutter.project_name}}'
class RedisCache(object):
CACHES = {
'default': {
'BACKEND': 'redis_cache.RedisCache',
'LOCATION': '127.0.0.1:6379',
... | [
"rolo@wildfish.com"
] | rolo@wildfish.com |
cde2edf4a10c79aa2209df50159f375a1a6b8a53 | 3d37f595a8aaaa7c5723ddbd6758ecac5147dce2 | /factorial-trailing-zeroes/factorial-trailing-zeroes.py | 7087830bf6b61d0261c4e9cb1b2af12cdc58875f | [] | no_license | baggy2797/Leetcode | ec218b155ebb972cd793253f25c3e18117216703 | 469c1541579401768f7a1da55d504a9e8656b21e | refs/heads/main | 2023-06-24T17:03:42.708935 | 2021-07-16T22:31:24 | 2021-07-16T22:31:24 | 342,979,700 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | class Solution:
def trailingZeroes(self, n: int) -> int:
count = 0
for i in range(5,n+1,5):
temp = 5
while i% temp == 0:
count = count + 1
temp = temp * 5
return count
| [
"bhagwataditya226@gmail.com"
] | bhagwataditya226@gmail.com |
9a97a9e3b2f94a838ba95e342fbd9c9bfbfd4ae2 | 7ab4ccfa4535634538e97119d2a0185641287f27 | /train.py | a456d905d90d2b28b54463e9a6eb5c8d6afd3ad3 | [] | no_license | ycpan1597/MRI-AI | a67d0f99d58909a2334d578a689585669b52d67f | d9e707b1fcb1e1bf5958705c0652186020525472 | refs/heads/master | 2020-06-18T12:49:43.763272 | 2019-08-09T23:00:38 | 2019-08-09T23:00:38 | 196,307,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,527 | py | """
Adapted from https://github.com/meetshah1995/pytorch-semseg
"""
import os
import time
import visdom
import argparse
import numpy as np
import torch.nn as nn
import sklearn.metrics as M
import matplotlib.pyplot as plt
from datasets import MRI
from unet_model import *
from shutil import copyfile
from torch.autograd ... | [
"ycpan@uw.edu"
] | ycpan@uw.edu |
915c97efaf9ef352a967f2d1bed523eda5004a13 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02994/s580686016.py | a70a698f4cc8e26a206d2c2f0cdf4a1574d17b2c | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | n,k=map(int,input().split());a=[k+i for i in range(n)]
sumA=sum(a);min_num=float('inf');result=0
for i in a:
if min_num > abs(sumA-(sumA-i)):
min_num=abs(sumA-(sumA-i))
result=sumA-i
print(result) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d63f277d30e2be6138f9d8d2e23d5fda959e26da | 166f34dafbcbd58e0ae5f6264ee8a90699922bea | /problems/p5.py | a33b0bf40acfcd1d61384648b3089984520b319d | [] | no_license | jennyfothergill/project_euler | b0e368042ec55d2223021349e650d640127dbdd3 | 68e356b2886078ffa32bbad5a5c5c91717517aae | refs/heads/master | 2022-11-07T06:14:16.649860 | 2020-07-02T23:08:37 | 2020-07-02T23:08:37 | 271,092,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,503 | py | #2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder.
#What is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20?
import math
import numpy as np
def is_factor(i,number):
if number % i == 0:
return True
return... | [
"jennyfothergill@u.boisestate.edu"
] | jennyfothergill@u.boisestate.edu |
21413a7317dbc690680aeee29e7fa62f3f4f4d74 | 4e1ecdc74b3b1354c18d811bc9016078e74ada81 | /InterconnectedLayerModeling.py | f093ad3032e4f3f878b93a8771e1e5c9c5dda443 | [] | no_license | leighsix/FindingKeyNode | 07033ee8e77435db89de0786e964146a97ff9d67 | 5384342885a133092ec89a380efe4e452398d011 | refs/heads/master | 2020-05-16T09:32:29.370021 | 2019-04-24T14:52:04 | 2019-04-24T14:52:04 | 182,952,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,690 | py | import networkx as nx
import numpy as np
import Setting_Simulation_Value
class InterconnectedLayerModeling:
def __init__(self, setting):
A_edges_array = self.A_layer_config(setting)
self.A_edges = A_edges_array[0]
self.AB_edges = A_edges_array[1]
self.AB_neighbor = A_edge... | [
"noreply@github.com"
] | leighsix.noreply@github.com |
9ef953add611449fb76602185f700012a0e460bf | a22ae1ceb54b7005e8f4cf5206f20212789af837 | /script.py | 6659dfc5b36f4d33b7264067164087b3b1730ef1 | [] | no_license | abhisharma76/Reddit-post-classifier | 995e885416954b35fb4f2374851faac51166a2fe | f04b843e4f5c7958ab968fcd513cbabf7c213c3d | refs/heads/main | 2023-06-29T09:51:59.383256 | 2021-08-01T19:19:56 | 2021-08-01T19:19:56 | 391,715,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,175 | py | import sys
import praw
import string
import nltk
from nltk import word_tokenize
from nltk.corpus import stopwords
from nltk.stem import WordNetLemmatizer
from nltk.tokenize import RegexpTokenizer
import warnings
warnings.filterwarnings("ignore")
def process_url(URL):
url = str(URL)
if('/r/india/comments... | [
"pyxis@Prathmeshs-MacBook-Air-2.local"
] | pyxis@Prathmeshs-MacBook-Air-2.local |
604b8f59fc75143388ea6ead9400ad7fae6b8705 | 27061fa9c96400cead1697706ba34e541284b288 | /main.py | 5e52ba99dd85669aae19117bdc84f2ba2b188d2e | [] | no_license | cmwema/Rocket | f85f9606ee2a71315c09a39262e82466fea34ac8 | 452bef543abf048edcf5d5f7237cc9bb69ec8fe2 | refs/heads/main | 2023-04-07T12:35:37.303798 | 2021-04-07T12:42:00 | 2021-04-07T12:42:00 | 355,539,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | from settings import Settings
from rocket import Rocket
import functions
import pygame
import sys
def main():
pygame.init()
settings = Settings()
screen = pygame.display.set_mode((settings.screen_width, settings.screen_height))
pygame.display.set_caption("ROCKET")
#make rocket
rocket = Rocket... | [
"noreply@github.com"
] | cmwema.noreply@github.com |
73ca64f60cd62039b841f7b95797c77a9537205e | 8983c7eeb0042efddfedded9cc2ec5ca08a50c9f | /layers/center_loss.py | 9748d1b8133501ed286640df06200f34cb8b83b4 | [
"MIT"
] | permissive | tomektarabasz/reid-strong-baseline-tt | 6c8ba16ac39a595ce367d3e74402dfa88e987f1a | 3b8406189443cbd542f01bfd53a990ee87b91366 | refs/heads/master | 2022-12-18T02:10:24.129493 | 2020-09-17T14:13:06 | 2020-09-17T14:13:06 | 288,531,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,463 | py | from __future__ import absolute_import
import torch
from torch import nn
class CenterLoss(nn.Module):
"""Center loss.
Reference:
Wen et al. A Discriminative Feature Learning Approach for Deep Face Recognition. ECCV 2016.
Args:
num_classes (int): number of classes.
feat_dim (int): fe... | [
"tomektarabasz@gmail.com"
] | tomektarabasz@gmail.com |
e1647e60fce8a23a01c2398726cfc86353bede6b | 943c61ef2144802aa3c7e66d14770a82c6747db1 | /zenbilstore/wsgi.py | fa6ae83a92f1812b3c12b96f894fef0ef1f25e74 | [] | no_license | mandalusevda/zenbil.store | 229bbe9c74dbb06c309d4d20b0195710432d46c8 | 702262cdfb143e0d5fddfee6acaeccebc0b466b6 | refs/heads/main | 2023-08-03T17:28:53.040802 | 2021-09-11T14:53:16 | 2021-09-11T14:53:16 | 405,395,951 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | """
WSGI config for zenbilstore 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/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefa... | [
"noreply@github.com"
] | mandalusevda.noreply@github.com |
e82c5392a6049ce180717cc3145908adaa3f3fc4 | 01fdd206c8c825b30870bdd3f6e75f0aa113b849 | /test/record/parser/test_response_whois_sgnic_sg_property_nameservers_schema_2.py | 8a8146c2727ea7d9dd262c2deba6226bf92c8635 | [
"MIT"
] | permissive | huyphan/pyyawhois | 0fbc5a7d64a53ae6e3393fdc1c7ff0d0ac5f22b5 | 77fb2f73a9c67989f1d41d98f37037406a69d136 | refs/heads/master | 2021-01-23T22:42:55.989651 | 2015-09-19T16:40:06 | 2015-09-19T16:40:06 | 23,335,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,408 | py |
# This file is autogenerated. Do not edit it manually.
# If you want change the content of this file, edit
#
# spec/fixtures/responses/whois.sgnic.sg/property_nameservers_schema_2
#
# and regenerate the tests with the following script
#
# $ scripts/generate_tests.py
#
from nose.tools import *
from dateutil.parser... | [
"dachuy@gmail.com"
] | dachuy@gmail.com |
9111ff6d364693b213af14c932a89fef59ae75aa | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5658571765186560_0/Python/Verum/D-OminousOmino.py | fc2ac8e040f5e876b4f9b9ae8a8a363707c04c6b | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,118 | py | #input_filename = "D-test.txt"
#output_filename = "D-test-out.txt"
input_filename = "D-small-attempt0.in"
output_filename = "D-small-attempt0.out"
#input_filename = "D-large.in"
#output_filename = "D-large.out"
def solve(x,r,c):
r, c = min(r,c), max(r,c)
if (r*c) % x != 0:
return False
elif x ==... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
9d018d4288b721c2f9bdd15ebcc16b7b8f030f82 | 23ae183fc4c9b8c0c959c27739e6e079ba447b38 | /blog/models.py | 022b3db275edd906bfbe0f19d95b187c641bccc8 | [] | no_license | sie30aorm/django.test1 | cf25c1deba1017d5ee58abf4f22f21d810483165 | ef2b6f3c7fee10991a1fa2d7c8933e0376a26665 | refs/heads/master | 2020-09-20T22:37:50.590192 | 2016-09-06T15:12:43 | 2016-09-06T15:12:43 | 67,435,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | from __future__ import unicode_literals
from django.db import models
from django.utils import timezone
class Post(models.Model):
author = models.ForeignKey('auth.User')
title = models.CharField(max_length=200)
text = models.TextField()
created_date = models.DateTimeField( default=timezone.now)
published_d... | [
"alvaro.paricio@coit.es"
] | alvaro.paricio@coit.es |
f57f9ea842a13bb9ef99c25b8ce69b4870218385 | b0b5551f0ac987630dfbf06f7bb87018cbb56a3b | /lib/core/model/net/vgg/pruned_vgg.py | c490a8953844c45b9332bedf0c331ab08b06d53c | [
"MIT"
] | permissive | airacid/pruned-face-detector | 1b96e2433589a5f722a23c1614f33dd61773676b | ef587e274ccf87633af653694890eb6712d6b3eb | refs/heads/main | 2023-09-01T03:31:13.721237 | 2021-10-28T01:28:08 | 2021-10-28T01:28:08 | 422,010,727 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 14,399 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | [
"noreply@github.com"
] | airacid.noreply@github.com |
33fa2896293d944a73e801b87353e72d965ebd79 | 385c027fc4b9c09706a4d880bdb8aa5897d0ebca | /tests/greedy/test_transforms.py | b8189adbd88900a9f717953dc14be5efddba0e93 | [
"MIT"
] | permissive | rodluger/starry | 076d46324473a6ac634781a3382021d02a5f4fdd | b72dff08588532f96bd072f2f1005e227d8e4ed8 | refs/heads/master | 2023-05-23T16:37:07.835744 | 2022-07-14T15:38:11 | 2022-07-14T15:38:11 | 120,621,593 | 131 | 31 | MIT | 2021-11-16T16:48:10 | 2018-02-07T13:54:20 | Python | UTF-8 | Python | false | false | 639 | py | import numpy as np
import starry
def test_latlon_grid():
# Just check that these don't cause errors
map = starry.Map(10)
lat, lon = map.get_latlon_grid(projection="rect")
lat, lon = map.get_latlon_grid(projection="ortho")
lat, lon = map.get_latlon_grid(projection="moll")
def test_pixel_transform... | [
"rodluger@gmail.com"
] | rodluger@gmail.com |
e80689702cc833fd52b11cf3ad92bd125a93f230 | e0f47aeb450ddeeacd7e1f82ee851e323ec21809 | /const.py | ff4f7934e8eca082825618dd5e977ad506e40c93 | [] | no_license | malikdkdkd/botalfredo | 5e853c135c03e4bc81ff0fdf12fcd36efa34f31f | 4ead4c73814f17ec90909257ae2e34e6ade43220 | refs/heads/master | 2022-12-16T15:48:51.766897 | 2019-08-26T17:53:26 | 2019-08-26T17:53:26 | 204,525,846 | 0 | 1 | null | 2021-06-02T00:20:25 | 2019-08-26T17:21:45 | Python | UTF-8 | Python | false | false | 10,810 | py |
videos_array = ['https://www.instagram.com/p/B08ZD3yl2Yf/', 'https://www.instagram.com/p/BzVl6QwipDY/',
'https://www.instagram.com/p/B0ld5uKiIV1/', 'https://www.instagram.com/p/By-JtedFpuC/',
'https://www.instagram.com/p/ByVLtZClKYi/', 'https://www.instagram.com/p/BwSBQiGCx5O/',
... | [
"olymalik228@gmail.com"
] | olymalik228@gmail.com |
3a0519a8939d962b5fcd7b862a52f84e35d321fa | 6488924e1b3bc162a315268baf2ac5c8f5f9f136 | /src/get-snapshot.py | 7ea2861227f81b0ca2e277952858aac78510c8d2 | [
"MIT"
] | permissive | dalance/rust-i586 | a19d5727e040a3f0a2a728ee36304eb4fa39419f | 54c59be8fdff28c2c66c7597fcbeb3cff09bceb9 | refs/heads/master | 2021-01-09T21:44:38.142313 | 2016-01-24T06:35:45 | 2016-01-24T06:35:45 | 49,773,135 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,642 | py | #!/usr/bin/env python
#
# Copyright 2011-2014 The Rust Project Developers. See the COPYRIGHT
# file at the top-level directory of this distribution and at
# http://rust-lang.org/COPYRIGHT.
#
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT lice... | [
"dalance@gmail.com"
] | dalance@gmail.com |
90197c3bedea23cd13c01844ea4732309551ef41 | 0030787427d43bd254e9d6b0d2c96c5e3e1cb9d4 | /LSH.py | 8fda4b9e1feec8afc751a39becb730f0eabccf9b | [] | no_license | minghao2016/LocalitySensitiveHashing-3 | 38b5fd069b8924818078a0ba52acabe31b7cb5f3 | 4fc7007b2db43591575e4737c0383e5d8c66e862 | refs/heads/master | 2021-01-09T06:20:20.877333 | 2016-04-09T13:06:43 | 2016-04-09T13:06:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 936 | py | # locality sensitive hashhing
# k = rb
class LSH:
def __init__(self, b, k):
self.b = b
self.k = k
self.r = k / b
self.buckets = [{} for i in range(b)]
# update
def update(self, docid, sig):
for i in range(self.b):
hash_value = hash(tuple(sig[i*self.r:(i+... | [
"physhunter@gmail.com"
] | physhunter@gmail.com |
6312ddcc83c01ca903a83183455e553eeb55d201 | 0d0b49c410bc37e602c29a5a46bcfe84460baa7d | /src/data/import_data.py | 8a44df85ae6b99f4d605541f64e76fd8c45fa7e0 | [
"MIT"
] | permissive | NiklasSabel/crosslingual-information-retrieval | 848e87b09a4eeaec60bbeb20749feeca58887738 | 2fcfea31ee0d5f8db2e8ecec669ea199b732ada9 | refs/heads/main | 2023-06-01T13:12:30.696004 | 2021-06-13T19:43:13 | 2021-06-13T19:43:13 | 364,239,072 | 0 | 0 | NOASSERTION | 2021-06-11T11:48:57 | 2021-05-04T11:52:05 | Jupyter Notebook | UTF-8 | Python | false | false | 2,460 | py | """ Functions to import europarl dataset and create random subset for our task.
"""
import numpy as np
import pandas as pd
import pickle5 as pickle
from src.utils.timer import timer
@timer
def load_doc(filename):
""" Function to load doc into memory.
"""
file = open(filename, mode='rt', encoding='utf-8'... | [
"accounts@jakoblangenbahn.com"
] | accounts@jakoblangenbahn.com |
58be9de5cdf150082a7cf636a2e67d8292c63c27 | ac0d1c684f017e69fb6d80c977e4722ce05b0f95 | /Les 2/2_3 Operator voorrang/2.3.3.py | e0db915272a4e55f8253104eb4835c1a70affd83 | [] | no_license | Tomersardjoe/Prog_practice_exercises | efd81a325e4681f1b909f02a08dd2515024df5cf | 77093850dca136ddbbcd1f201c5863dd61c5bd7f | refs/heads/master | 2021-01-23T05:29:52.546454 | 2017-10-09T14:11:30 | 2017-10-09T14:11:30 | 102,472,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27 | py | print((1 < -1) == (3 > 4))
| [
"tomersardjoe@hotmail.com"
] | tomersardjoe@hotmail.com |
55e1d0ec369d1377f917deb2db951a7a93bbb5b4 | e22d11dab419233bf4ab636efaede811b7fee172 | /Enigma/settings.py | ffe455a65e02df2abb4c2a124ae9e9ace777b267 | [] | no_license | vishalkmr/Enigma | ffada3d7682219e5713dda3d7157e6fc117a4e99 | b1ce3d8b555c3a6607c93e3409257e30c91cf682 | refs/heads/master | 2022-12-07T15:55:45.250671 | 2019-11-19T13:31:33 | 2019-11-19T13:31:33 | 127,744,106 | 2 | 0 | null | 2022-11-22T02:13:33 | 2018-04-02T10:56:01 | Python | UTF-8 | Python | false | false | 3,388 | py | """
Django settings for Enigma project.
Generated by 'django-admin startproject' using Django 2.0.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
# ... | [
"vishalkmr363@gmail.com"
] | vishalkmr363@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.