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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f0604eb1eda455d4c3331f7ba6b004803d219ff0 | bf23b069899d2a134804866bcddc8e82b1908ecc | /ag/reference/models.py | 7243dc2137ac2939df62b8f7710cde7cbbd0ae4b | [] | no_license | mcpelletier/ag2017_auf_org | 87440741eda16436181e0774ed06ae13116dd8c0 | 23718dec8b62043337d4535dd5da1e58d64cef5c | refs/heads/master | 2020-04-06T04:03:04.389839 | 2017-05-09T16:09:44 | 2017-05-09T16:09:57 | 83,065,128 | 0 | 0 | null | 2017-02-24T17:15:11 | 2017-02-24T17:15:11 | null | UTF-8 | Python | false | false | 3,182 | py | # -*- encoding: utf-8 -*-
from django.db import models
CODE_TITULAIRE = 'T'
CODE_ASSOCIE = 'A'
CODE_RESEAU = 'RES'
CODE_ETAB_ENSEIGNEMENT = 'ESR'
CODE_CENTRE_RECHERCHE = 'CIR'
class Pays(models.Model):
class Meta:
ordering = ('nom',)
code = models.CharField(max_length=2, unique=True)
nom = mode... | [
"benselme@gmail.com"
] | benselme@gmail.com |
343fdac3f2f5608dce024042484943d8357628a0 | d2bcaa6c021a965c5905053a512c83e5a72ce31a | /sdk/python/feast/infra/offline_stores/redshift.py | 18509581118bb225c1c64e490e97de3212d35bfb | [
"Apache-2.0"
] | permissive | Cimpress-MCP/feast | bafdbd29a99d9bda7f9cdedb91de5d9fc9ecf3c4 | 6eea808a6efdbf40949225f0bbd525fc0f03ab90 | refs/heads/master | 2023-06-23T03:29:54.288154 | 2021-07-15T17:32:31 | 2021-07-15T17:32:31 | 270,780,384 | 0 | 0 | Apache-2.0 | 2021-07-15T17:56:53 | 2020-06-08T18:27:47 | Python | UTF-8 | Python | false | false | 1,695 | py | from datetime import datetime
from typing import List, Optional, Union
import pandas as pd
from pydantic import StrictStr
from pydantic.typing import Literal
from feast.data_source import DataSource
from feast.feature_view import FeatureView
from feast.infra.offline_stores.offline_store import OfflineStore, Retrieval... | [
"noreply@github.com"
] | Cimpress-MCP.noreply@github.com |
ebfc8a9392625461ceff2085805d5e8cc562e424 | e96590c1474a2267c99bd1aed81f4c3e3f056e93 | /Darkfb | fbba1679a85f35f8c03cecaebbb01ded66a4aebd | [] | no_license | Warriors12-pl/Imsenza | a72e66491d28e59c6cd8d36c5f30e8bcaef99963 | 9ca5e03f9cbce957fa56ef763c0fa4ae3b1a19d2 | refs/heads/master | 2022-11-17T14:54:14.568507 | 2020-07-18T17:46:06 | 2020-07-18T17:46:06 | 280,707,732 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,179 | #!/usr/bin/python2
# coding=utf-8
import os,sys,time,datetime,random,hashlib,re,threading,json,urllib,cookielib,requests,mechanize
from multiprocessing.pool import ThreadPool
from requests.exceptions import ConnectionError
from mechanize import Browser
reload(sys)
sys.setdefaultencoding('utf8')
br = mechanize.Brows... | [
"noreply@github.com"
] | Warriors12-pl.noreply@github.com | |
54aa67ec3c5273543302689ee3673ae0c5f94508 | 5bee51325c2e95e39e15cf95e95f525c4a7a79c7 | /run.py | fe0c65ec5b2897b2b469ac9ea34ffe4e2ee4b69b | [] | no_license | kostistsaprailis/terminal-quests | c5f7665372359f5ac07943a859c5ecabceaf7e49 | 9ced458d45fe1edb4a89bedc0e3fabdf9359231f | refs/heads/master | 2021-03-30T21:05:38.896709 | 2018-03-14T21:36:34 | 2018-03-14T21:36:34 | 124,951,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | import os
import time
from world import World
from hero import Hero
def update_game_state(world):
""" """
world.update_world()
time.sleep(0.1)
if __name__ == '__main__':
os.system('clear')
world = World()
hero = Hero()
world.add_hero(hero)
while True:
update_game_state(world)
| [
"kt@vaix.ai"
] | kt@vaix.ai |
529764ce7d089cb8e87188ae76b3d2386d94799f | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Projects/sphinx/sphinx-doc-translations/sphinx/sphinx/ext/ifconfig.py | 993ef3ebae432ab8ed889876e2c6ddcb3294594b | [
"LicenseRef-scancode-other-permissive",
"BSD-3-Clause"
] | permissive | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:6b14675b69f1e4709abc755afdb42367393cbdcc90a45fa7de0be6f62f368d7c
size 2583
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
e2c528db316231be8009da548b2c2a55e74c7ffd | df49823eb23474c89a3bbb2af3979d71c8d20571 | /opc_ua/migrations/0005_auto_20191203_1608.py | 1d8c38d995808b6ed873f35d0daa7ce2ef1ffae2 | [] | no_license | AleksZ13ru/scada_server_app | 40503fdcf1fbf1b78e39b28e318392e4c2200e70 | f9f53dbeb5c3f80b4583bddfd4ba37d8b02fd632 | refs/heads/master | 2022-07-30T07:02:50.475500 | 2020-01-13T08:23:55 | 2020-01-13T08:23:55 | 224,506,622 | 0 | 0 | null | 2022-07-06T20:24:02 | 2019-11-27T19:52:59 | Python | UTF-8 | Python | false | false | 409 | py | # Generated by Django 2.2.7 on 2019-12-03 13:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('opc_ua', '0004_remove_messagebit_enable'),
]
operations = [
migrations.AlterField(
model_name='messageevent',
name='... | [
"a.zaykin@list.ru"
] | a.zaykin@list.ru |
3cb1b0d90ab46d1933f4410dc81bd61892117810 | 872e1549a2ea162c51049565b74f001676e866b3 | /app.py | 2f0dc76949c240785ad7fd977662a5de29f0b3eb | [] | no_license | hanseljulio/DogVision | 64a69df612a0d82e255e87c884cd1b7118b0db6a | 636d89f08c08e697d922ea6a0623caa8b04f380e | refs/heads/master | 2023-08-08T02:47:58.784407 | 2021-09-17T08:24:25 | 2021-09-17T08:24:25 | 406,600,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,700 | py | from enum import unique
from flask import Flask, render_template, redirect, url_for, request, session, flash
import tensorflow as tf
import tensorflow_hub as hub
import os
from werkzeug.utils import secure_filename
import numpy as np
app = Flask(__name__)
# app.config["IMAGE_UPLOADS"] = "static/uploads"
app.config["A... | [
"hanseljulio@yahoo.com"
] | hanseljulio@yahoo.com |
e7f73b4c833372c1cde39e5afcabdf8db5fee1a2 | efd5d630aaab511e65e35f4675a3303d7e47fdd0 | /4.py | 281ae183f1140c98f83ef9a42a7b08d088df5f45 | [] | no_license | BoopPush/HardTasksPY | 75d32bf00df44d26ed84b6de62b51f3c5cb62488 | 6651aa33df260ee12adcdbd94e55129f8868e99d | refs/heads/master | 2023-07-24T07:09:23.639079 | 2021-09-11T12:01:18 | 2021-09-11T12:01:18 | 395,285,808 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | # Итератор , который возвращает размещения
from itertools import *
m = input(": ")
n = int(input(": "))
for i in permutations(m, n):
print(i, end=' ')
| [
"BoopPush@git.com"
] | BoopPush@git.com |
1ec3ebb69151f58cbb0bece288b33466f667ddb9 | db9b61ee3e5284880f6198b330d2941134bc88de | /frongo/scripts/fremeniser.py | cdd7aae5cb7689d330f70fd480d0ed8e2cfec3ee | [
"MIT"
] | permissive | AdrianKlei/fremen | 3128c59822dd6825f0aebc700ffcbfb3dc8425c1 | f1a6051d8e391a9f3ecabe75bafb27e8ec732fa8 | refs/heads/master | 2022-12-19T08:13:14.678054 | 2020-09-23T14:53:36 | 2020-09-23T14:53:36 | 297,958,036 | 0 | 0 | NOASSERTION | 2020-09-23T12:10:19 | 2020-09-23T12:10:18 | null | UTF-8 | Python | false | false | 7,522 | py | #!/usr/bin/env python
import rospy
import yaml
import json
import pymongo
import argparse
import numpy as np
import std_msgs
from std_srvs.srv import Trigger
from frongo.temporal_models import *
from frongo.graph_models import *
from frongo.srv import PredictState
from frongo.srv import PredictStateOrder
from frongo... | [
"marc@hanheide.net"
] | marc@hanheide.net |
8caf0ac2f29b470bd287edb3a60880ed31f2327f | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/nlp/Fairseq_Transformer_wmt18_for_PyTorch/fairseq/models/transformer/transformer_decoder_aug.py | c5e710179443705f47c9aaba02927d8d43d80fff | [
"MIT",
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 14,744 | py | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from typing import Any, Dict, List, Optional
import torch
import torch.nn as nn
from torch import Tensor
from fairseq import utils
from fair... | [
"chensida@huawei.com"
] | chensida@huawei.com |
8770327fd46000407e804baae2a0d53f472ed0ca | 2a1bffbab39918e0ee9e7dfa08b7d9120ed25f21 | /server.py | cca85f7111e3ad8bc23be7df027f11383ea642f6 | [] | no_license | sumitu27/Face_detection | bccdd283e4b2732b70ce6fd08a291c3027db754b | 9d0c05c3c23618779abe56a5281bc6b8f310798c | refs/heads/master | 2021-06-28T14:27:34.000430 | 2020-09-24T18:40:34 | 2020-09-24T18:40:34 | 152,997,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,769 | py | from flask import Flask, render_template, request
from flask import jsonify
from flask_cors import CORS
import os
from add_face_in_collection import add_faces_to_collection
from s3_bucket import store_image_into_s3_bucket
from show_list_of_faces import list_faces_in_collection
from detect_faces_from_image import detect... | [
"sumitu27@gmail.com"
] | sumitu27@gmail.com |
48ba43c4ade9ef9ed87f8471fa199dac6bc3a6a9 | 9436682c3d21fbe2737724ce24f2d7c79b5f7598 | /transformerLM_org/locked_dropout.py | 36ae543e5a82d44252662117c793fe796904083e | [
"BSD-3-Clause"
] | permissive | grandeelee/codeswitch-challenge-LM | 5f2cea2db29b02e54d4b36f69b85a0e3b4689442 | d44f922d25df34a5905917b0351a7bbf3cccf22f | refs/heads/master | 2022-08-12T05:43:45.836690 | 2019-12-20T01:39:41 | 2019-12-20T01:39:41 | 210,730,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 879 | py | import torch.nn as nn
import torch
class LockedDropout(nn.Module):
def __init__(self, dropout=None):
super(LockedDropout, self).__init__()
self.dropout = dropout
def forward(self, x):
if not self.training or not self.dropout:
return x
# same mask for each word a seq
mask = x.data.new_empty(x.size(0), ... | [
"grandee.lee@gmail.com"
] | grandee.lee@gmail.com |
ef89edf72b6fef1c644f641a5e5131067c3652a6 | 62f08c50bb3ed5e025565bd9813602a7d5d486b0 | /mod/databases/db.py | 06b7645dfe593ae2854cd63a7ff17ca3e3ad4b85 | [] | no_license | flyingzhao/youin-tornado | c7b97ade9fc1f17e7302e09948e5b589cb80770d | e09ecea1ddd7cdd75ed03f5ad0d6923a70a31fb8 | refs/heads/master | 2021-01-14T10:39:45.163617 | 2015-10-08T14:51:40 | 2015-10-08T14:51:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | # -*- coding: utf-8 -*-
DB_HOST = '115.28.27.150'
# DB_HOST = '127.0.0.1'
DB_USER = 'youyinuser'
# DB_USER = 'root'
DB_PWD = 'youyin2015'
# DB_PWD = '084358'
DB_NAME = 'youyin'
from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base() #create Base lei
engin... | [
"1948448114@qq.com"
] | 1948448114@qq.com |
d404e395bc7af7f6fff3d1e90df9cae2080d961d | 84c1e780a349c4bae2d6cf4c1da72889d5222797 | /Python/Sets/Add Element/add_element.py | 734881c62f2cf52476f8c83a4d58493999e2141a | [
"MIT"
] | permissive | brianchiang-tw/HackerRank | 18e31583b10cf2189adac97e7cb2997d46790bcd | 02a30a0033b881206fa15b8d6b4ef99b2dc420c8 | refs/heads/master | 2020-09-23T23:18:08.253868 | 2020-02-13T14:16:22 | 2020-02-13T14:16:22 | 225,612,833 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 493 | py | # Enter your code here. Read input from STDIN. Print output to STDOUT
from typing import Set
def add_element_to_set( set_a: Set, new_element:str)->None:
set_a.add( new_element )
return
def num_of_unique_element( set_a: Set)->int:
return len(set_a)
if __name__ == '__main__':
N = int( input() ... | [
"brianchiang1988@icloud.com"
] | brianchiang1988@icloud.com |
587fc2d1ad57042f6ea786215c71dfcfc01612ab | cd8f7ecd20c58ce1ae0fe3840f7c7ee961aa5819 | /SubdomainVisitCount.py | 64404a58e7a5e1cf86da8c6f08587ad1aafb6ab4 | [
"Apache-2.0"
] | permissive | sugia/leetcode | 9b0f2a3521b088f8f7e5633c2c6c17c76d33dcaf | 6facec2a54d1d9f133f420c9bce1d1043f57ebc6 | refs/heads/master | 2021-06-05T07:20:04.099488 | 2021-02-24T07:24:50 | 2021-02-24T07:24:50 | 29,124,136 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,578 | py | '''
A website domain like "discuss.leetcode.com" consists of various subdomains. At the top level, we have "com", at the next level, we have "leetcode.com", and at the lowest level, "discuss.leetcode.com". When we visit a domain like "discuss.leetcode.com", we will also visit the parent domains "leetcode.com" and "com"... | [
"noreply@github.com"
] | sugia.noreply@github.com |
dc8c18eee4aeb04dc3b4635e978d09cc22174af1 | 7c169c2e3b06bb821418589cb72006986cb15a33 | /src/scs_osio/topic.py | 2423a30c4ab8d17d048108049677d8a855845216 | [
"MIT"
] | permissive | seoss/scs_osio | 35c6548c15e420e17b189c9d9d61fbcb06f94d0e | c6f4bca93e556db5c403f2ff05ae06a9add42a5d | refs/heads/master | 2020-04-04T20:15:23.226017 | 2018-07-10T08:00:14 | 2018-07-10T08:00:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,956 | py | #!/usr/bin/env python3
"""
Created on 16 Feb 2017
@author: Bruno Beloff (bruno.beloff@southcoastscience.com)
Requires APIAuth document.
workflow:
Use osio_publication instead.
command line example:
./topic.py /orgs/south-coast-science-dev/test/1/status -n "test" -d "test of status" -s 28 -v
"""
import sys
from s... | [
"bruno.beloff@southcoastscience.com"
] | bruno.beloff@southcoastscience.com |
8e868f3bca628272d0460d3f315e9aef35c58a5e | 3b316099f27fc3607a7da5189bb7e5d1f6d265a3 | /popclick/interest_learning.py | 71b5a84b0b95d6390b9e0a56ec0b6765252e8a4c | [] | no_license | phileasme/Mixed-Collaborative-Filtering_PopClick_server | 91d14fea6601f114e04a52b461f050cd09fc4675 | 0721c78cf1f41cf2a84b2523e4e6d585ecf8ef62 | refs/heads/master | 2021-03-19T18:58:58.805233 | 2017-04-18T09:41:19 | 2017-04-18T09:41:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,243 | py | """
* ©Copyrights, all rights reserved at the exception of the mentioned 3rd party libraries.
* @author: Phileas Hocquard
* Profile Learning, Interests formatting
* Location : /mainsite/popclick/interest_learning.py
"""
# Database models
from .models import Interest, PageobjectInterest, Visit, Website, SecureAuth, Pa... | [
"phileas.hocquard@gmail.com"
] | phileas.hocquard@gmail.com |
da3150e3ef764f498ec892ffff76105a2e017563 | b0a2d11b3133aa1370c2b5f94437c96942772533 | /purchaseapp/models.py | efd15a730af09855f267b6b9dc2ef37b4f9d3b4a | [] | no_license | NeethuDavis1990/Purcahse-Bill-Django | f65b0d6e688a2b3adf677b2fbb49ade8ebbc6f02 | 67322e69ce484a487bdef9e84dcb5217b6229b71 | refs/heads/master | 2023-08-06T16:28:04.575626 | 2021-10-13T12:33:25 | 2021-10-13T12:33:25 | 416,735,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,043 | py |
from django.db import models
from django.db.models import deletion
from django.db.models.base import Model
from django.db.models.fields import DecimalField, NullBooleanField
from django.db.models.fields.related import OneToOneField
from django.db.models.lookups import Transform
# Create your models here.
class State... | [
"86987322+NeethuDavis1990@users.noreply.github.com"
] | 86987322+NeethuDavis1990@users.noreply.github.com |
f5bdd285feb53c2fc3eb0e62e11362e06e099ff9 | f6f7898c9b327c29484ca77b53f72b4700c3bc72 | /build.py | 7147852683f113d3da9df985023dd59fa2559723 | [] | no_license | yourcelf/flamewar | eb2f08c6420dd9f9bf3472a4135a89f7e7444f58 | 8b03b65876851da9170c37242fce8588221819b1 | refs/heads/master | 2021-01-11T11:00:54.789709 | 2013-04-09T16:29:31 | 2013-04-09T16:29:31 | 3,710,171 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,163 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from PIL import Image, ImageDraw, ImageFont
import yaml
BASE = os.path.dirname(__file__)
#FONT = "/usr/share/fonts/truetype/msttcorefonts/Courier_New.ttf"
#FONT = "/usr/share/fonts/truetype/msttcorefonts/Andale_Mono.ttf"
FONT = "/usr/share/fonts/truetype/ubuntu... | [
"cfd@media.mit.edu"
] | cfd@media.mit.edu |
4541dbb6e82625bb4cc57a6bb13dba1ce1c26d8b | 7cef36e10852878a0fe525d36665f793352ae5db | /app/__init__.py | c2902175acb5cf8b080d21d472953df6c212c4ec | [] | no_license | natusaspire/shop | b5e1efeaf64f39c60b324145a6d4eec88d6f49e7 | ee266e529f6d1fd7dac82c10a78cdc7efbb04eb3 | refs/heads/master | 2020-03-23T03:42:44.446839 | 2018-07-15T17:23:41 | 2018-07-15T17:23:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
from flask_bootstrap import Bootstrap
app = Flask(__name__)
app.config.from_object('config')
db = SQLAlchemy(app)
migrate = Migrate(app, db)
Bootstrap(app)
from app.shop.views import shop
app.register_blue... | [
"natusaspire@gmail.com"
] | natusaspire@gmail.com |
c1d8da7543c92a89f99f832a1045b6f2083b754d | 319221542ebea78162d240006851c0a9363ab5b0 | /plugins/nfsslower.py | dedaf300c572519c3c4c8a757fd9c7cdafed67d7 | [
"Apache-2.0"
] | permissive | wuli133144/lmp | 59e4f42b65bf9a4990e37adb1a7ac754b295f9e2 | 0007989c5a59bf58e462d2948fcf0779674ebef0 | refs/heads/master | 2023-08-29T16:09:17.487964 | 2021-10-13T16:09:27 | 2021-10-13T16:09:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,085 | py | #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# nfsslower Trace slow NFS operations
# for Linux using BCC & eBPF
#
# Usage: nfsslower [-h] [-p PID] [min_ms]
#
# This script traces some common NFS operations: read, write, opens and
# getattr. It measures the time spent in these opera... | [
"1312945441@qq.com"
] | 1312945441@qq.com |
718c62eeccf0f11bb86cb779a70c8baebb6c6d22 | 66276c6773b1c92f4d5c20a69c3cf8720ddb86ca | /07/Project7Template/Project7IO.py | 8eae7cb0a8012d5d8db69c1a993fcda89070fe21 | [] | no_license | duffrind/ComputerArch | f5617dc835673da3f922ce4034b069059e88dc9a | 9ee2034bb993ae7d1e37dd3077b564eac48298d7 | refs/heads/master | 2020-06-28T15:56:57.536061 | 2016-11-22T16:28:23 | 2016-11-22T16:28:23 | 74,491,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,270 | py | import sys
inputsofar = []
inputfile = ""
nextidx = 0
def setFile(fname):
global inputfile, nextidx, inputsofar
inputfile = open(fname, "r")
nextidx = 0
inputsofar = []
def setSaveFile(path):
sys.stdout.close()
sys.stdout = open(path,"w")
def rewind():
global nextidx
nextidx = 0
... | [
"duffrind@uwplatt.edu"
] | duffrind@uwplatt.edu |
8820cf9efc88709ad693aef34b203b303d802d0d | ae9345588b78d96444a81f9d70a1811b20880941 | /update_handler.py | d031515143f5ea9a11ec228b4fd1d1ccb95b2432 | [] | no_license | Honigchnuschperli/WerbeSkip | 91d905d2d890eba6309fc7a531f9ac8f91536af2 | 3c972ebd16a40b034f8811a40434f0c410563beb | refs/heads/master | 2020-04-07T16:57:55.410698 | 2018-11-20T22:00:04 | 2018-11-20T22:00:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,909 | py | from deepnet import Network
import numpy as np
from deepnet.functions.costs import CrossEntropyCost
from helperfunctions.image_processing.retrieving_images import VideoCapture
from deepnet.layers import FullyConnectedLayer, BatchNorm, Dropout, ReLU, SoftMax, ConvolutionLayer, MaxPoolLayer, \
Flatten
from deepnet.op... | [
"georg.schwan@edubs.ch"
] | georg.schwan@edubs.ch |
06aa92289a08745e863072806861d725ea5fcb94 | 402c2dfec6fd00be0e4bce7248b3b22eec504c80 | /Enterprise/BlockChain/Server/bigchaindb/bigchaindb/common/crypto.py | a8e42c52b7882ddb11ebe3e753e8a7d19ce62071 | [
"CC-BY-4.0",
"Apache-2.0",
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | NP-compete/Alternate-Authentication | 7d81b8faaafe60470100140110023992cbb5d0dc | b2a04ecbc57292c2c87293458cc1931ab47f43f2 | refs/heads/master | 2022-12-21T15:47:24.349972 | 2021-04-06T13:07:56 | 2021-04-06T13:07:56 | 179,950,584 | 12 | 6 | MIT | 2022-12-09T19:33:50 | 2019-04-07T10:35:26 | Python | UTF-8 | Python | false | false | 1,847 | py | # Copyright BigchainDB GmbH and BigchainDB contributors
# SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
# Code is Apache-2.0 and docs are CC-BY-4.0
# Separate all crypto code so that we can easily test several implementations
from collections import namedtuple
import sha3
from cryptoconditions import crypto
C... | [
"soham.dutta.analyst@gmail.com"
] | soham.dutta.analyst@gmail.com |
fce35982f9723fe77d4de5712ed7ee3235d59e20 | b89c89c2bb13e6c642af3fb71e482a60f1291c2c | /loss_metrics/loss_and_metrics.py | 079747b39d9337b5824e4fe73ba367277ee22acd | [] | no_license | fang-h/lane-segmentation | 0357698ddcec73d085d4dcd9ea1a652a83f053ed | 523169d9c2edec3389eea6ad26c67b08beb1b512 | refs/heads/master | 2021-01-02T19:46:04.130520 | 2020-04-02T01:22:13 | 2020-04-02T01:22:13 | 239,772,067 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,139 | py | """use CrossEntropy Loss as the cost loss for class every pixel,
and use miou as the metrics to evaluate the performance of the model"""
import torch.nn as nn
import numpy as np
class Loss(nn.Module):
def __init__(self, num_classes):
super(Loss, self).__init__()
self.num_classes = num_classes... | [
"2901765507@qq.com"
] | 2901765507@qq.com |
d159b9494bfd77cbe888a1b6d648d4096b59556c | ef27ed447844a366b4d07edceee720ab82b746dd | /django_project/django_project/urls.py | d244d6a059eaf280013502b7d369e17c483f9574 | [] | no_license | Achyuthkodali/django_venv_3 | e896ffca774d6d1977046140321b394009e959bd | 712c9ddaa88ecf41f663d5b888eb46fc752dd3c5 | refs/heads/master | 2020-03-26T18:18:05.772674 | 2018-08-18T09:16:37 | 2018-08-18T09:16:37 | 145,206,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 950 | py | """django_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
C... | [
"achyuth.kodali97@gmail.com"
] | achyuth.kodali97@gmail.com |
7247f79d3ab7ff01f1865f3f995792b09337f488 | 562729b6bd37293bf2dd0303dd52234dde70c3fd | /kinlin/core/project.py | a1812fa8fd13331ae78df31ba3c23b17f9074bb6 | [
"MIT"
] | permissive | the-lay/kinlin | 887fc97abbbefc14a59ac5096ece713b421a4051 | ce7c95d46d130049e356104ba77fad51bc59fb3f | refs/heads/master | 2022-02-26T08:46:31.261367 | 2019-10-19T23:20:55 | 2019-10-19T23:20:55 | 211,645,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 844 | py | from typing import List
from .utils import *
from .experiment import Experiment
class Project:
def __init__(self, name: str = 'Untitled Project', notes: str = '', path: Union[Path, str] = None):
# general properties
self.id: str = generate_random_id()
self.name: str = name
self.fna... | [
"ilja.gubin@gmail.com"
] | ilja.gubin@gmail.com |
88191d016e68029871bcd820136aca3c950b9bb5 | aa54e78c79268913f0f6bd0baf442aedd9488c6d | /project1/mysite/settings.py | 60cb7d1c50efda97a46f7d3111a65d97a3e4f710 | [] | no_license | theycallmereza/SSO_DRF | 91c1b23ec77457d04486414ba06e62fe67875ea0 | 732c1b18fd8904a18d1d05abdcd05b3a189a2ac9 | refs/heads/main | 2022-12-31T18:07:52.274962 | 2020-10-20T09:42:38 | 2020-10-20T09:42:38 | 305,660,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,395 | py | """
Django settings for mysite 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/
"""
import os
# Bu... | [
"mrreza1394@gmail.com"
] | mrreza1394@gmail.com |
1b7dd8b14c2820ca1ea9341ae38572dbd762f427 | 2d82d4c6574bd6d32f2cf1c781615f7951f55f66 | /muntjac/demo/sampler/features/commons/Tooltips.py | 33a405640b2f7a58de9da8da0ff08594edf9c4c6 | [
"Apache-2.0"
] | permissive | metaperl/muntjac | f83f745ee03942a61af92ee7fba7285aa9c46f3c | 8db97712edd81b4d25deaaa48587d2a08010f2c8 | refs/heads/master | 2021-01-15T22:04:25.057862 | 2012-11-09T03:52:59 | 2012-11-09T03:52:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 930 | py |
from muntjac.ui.abstract_component import AbstractComponent
from muntjac.demo.sampler.APIResource import APIResource
from muntjac.demo.sampler.Feature import Feature, Version
class Tooltips(Feature):
def getSinceVersion(self):
return Version.OLD
def getName(self):
return 'Tooltips'
... | [
"r.w.lincoln@gmail.com"
] | r.w.lincoln@gmail.com |
e883bb2b8fe918c70d9a1bd48a775eafad629add | 66e58cba20414214ebca7bb4a035796d379f57f1 | /myEnvironments/djangoEnv/bin/easy_install | 3f468da3298dccfe2cb2e694063cb752ef85651d | [] | no_license | NathanHaberman/Python-Flask-Django-CodingDojo | 08623db1c1fa9076cd90901fed39678b2a8b795a | c6013c9e8133a7e2b70bfc357c3364edf3992d1c | refs/heads/master | 2021-01-23T17:09:25.703718 | 2017-09-21T21:09:03 | 2017-09-21T21:09:03 | 102,763,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | #!/Users/nathanhaberman/Desktop/CodingDojo/Python-Stack/myEnvironments/djangoEnv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"na.haberman@gmail.com"
] | na.haberman@gmail.com | |
fa7d50f644f8083f0e9aa2de873152e9a024ecb6 | f567981e9a655cee0c835aaaad2eb55bf5d02485 | /hp/wsgi.py | e01ba6cc9e5f3bd1c40abaa4e3aa75f3e78709ff | [] | no_license | 43ndr1k/mezzanine-rest-api | b48b4db7b75d2acf18fa5e348d245f78ffb4352f | d6c6449a323ec605a569d8afcd0a1602549c7847 | refs/heads/master | 2021-01-13T00:38:02.834689 | 2015-11-28T13:14:11 | 2015-11-28T13:14:11 | 47,024,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | """
WSGI config for hp 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.8/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
from mezzanine.utils.conf import real_pro... | [
"dj-blackfire@gmx.de"
] | dj-blackfire@gmx.de |
5eec26bd85986778f068ccd0602f46212dc55208 | d19a3a03a74fb9756e426099610acf19c2373399 | /app_sancho/admin.py | c5ec937f6f19381879736285931b40b28e0cf814 | [] | no_license | bogdanned/dulcinea | 68c55cf337088e3af9de0ed6f5d3da4bfbfafa10 | 5d2b028183e942dafb0b60008f58e384bceaf2e2 | refs/heads/master | 2022-01-13T02:04:34.815437 | 2016-08-11T00:18:21 | 2016-08-11T00:18:21 | 84,355,258 | 0 | 0 | null | 2022-01-10T14:09:55 | 2017-03-08T18:53:38 | Python | UTF-8 | Python | false | false | 922 | py | from django.contrib import admin
from .models import *
# Register your models here.
class CustomerAdminDatabaseInline(admin.TabularInline):
model = CustomerDatabase
fk_name = "customer"
class CustomerAdminStackInline(admin.TabularInline):
model = CustomerStack
fk_name = "customer"
class CustomerAd... | [
"bogdanned32@gmail.com"
] | bogdanned32@gmail.com |
e9ed379ebab1f9e8228d64816d9318149e27deea | 50d120638e466c8d18db7afe9a316a9e853428aa | /core/pure.py | 40f4443e9e538eb54322f4b6c0acec88e36e0b7e | [] | no_license | sailfish009/oil | 75eff015ded810947de681685f20b01eb583d794 | 538cd57ca8afd1833e3b15eeddecf874a2ffc4a6 | refs/heads/master | 2023-01-07T20:54:53.515031 | 2020-11-08T06:33:49 | 2020-11-08T07:08:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,410 | py | #!/usr/bin/env python2
"""
core/main.py -- Entry point for the shell interpreter.
"""
from __future__ import print_function
import time as time_
from _devbuild.gen import arg_types
from _devbuild.gen.option_asdl import builtin_i
from _devbuild.gen.runtime_asdl import cmd_value
from _devbuild.gen.syntax_asdl import so... | [
"andy@oilshell.org"
] | andy@oilshell.org |
c1a6d7f3963fbcb3b3a72a4816af8b3aa906dc59 | ef98e726b92352a97c9a2fc29274a481601bcea0 | /pivvy/project_tpl/application/__init__.py | 548a92a64814feb59c1e00a89b9ed47e70af9bb0 | [
"BSD-2-Clause"
] | permissive | dennishedback/pivvy | c2520653379790d27518855636d28d8d92f03b7a | 4eee849263fe9485fe94ac7c5ea8855c4c0a6f4b | refs/heads/master | 2020-03-26T06:17:08.416720 | 2018-08-13T14:51:53 | 2018-08-13T15:22:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | #
# This is an example plugin, change it as you see fit :)
#
import pivvy
def on_load():
pivvy.vars.g___SNAKE_CASE_PLACEHOLDER___message = "Hello, world!"
pivvy.define_command("HelloWorld", hello_world)
pivvy.define_command("HelloName", hello_name)
def hello_world():
print(pivvy.vars.g___SNAKE_CASE... | [
"d.hedback@gmail.com"
] | d.hedback@gmail.com |
c575696284cd0dcdaa28263d64d1895d95e38117 | 0e0ce88c886370df9af51855115c99dfc003e5da | /2020/08_Flask/18_login_register/run.py | c159a0bae0804faaee74d71602f2e17462ed686c | [] | no_license | miguelzeph/Python_Git | ed80db9a4f060836203df8cc2e42e003b0df6afd | 79d3b00236e7f4194d2a23fb016b43e9d09311e6 | refs/heads/master | 2021-07-08T18:43:45.855023 | 2021-04-01T14:12:23 | 2021-04-01T14:12:23 | 232,007,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,683 | py | from flask import Flask, session, request, url_for, redirect, render_template, flash
from flask_pymongo import PyMongo
app = Flask(__name__)
app.config['MONGO_URI'] = "mongodb+srv://useradmin:admin@cluster0.7rvyr.gcp.mongodb.net/TESTE_LOGIN?retryWrites=true&w=majority"
app.config['SECRET_KEY'] = 'mysecretkey'
mongo = ... | [
"miguel.junior.mat@hotmail.com"
] | miguel.junior.mat@hotmail.com |
4b686971265956b356d5ecee5f3e6524d571bd1b | e3f67efa1ae966fbdf95666354387230d4eb0f03 | /test_rgb_to_hex.py | ed74b0121611760f91cfb9f4dbe45a32e5cfa54f | [] | no_license | strikervc/RGB-to-HEX-Kata | f6ebda83c0e0198f9854d61da5e33f5d22f0504a | fcc4f10b7f1b7814d0cc04fbd3e9f061dab0f20a | refs/heads/master | 2023-02-02T15:48:17.002121 | 2020-12-18T23:35:04 | 2020-12-18T23:35:04 | 323,187,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 563 | py | import unittest
from rgb_to_hex import converter
class testCases (unittest.TestCase):
def test_rgb_to_hex_01(self):
value = converter()
result = "6f6f6f"
self.assertEqual(result, value.rgb_to_hex((111, 111, 111)))
def test_rgb_to_hex_02(self):
value = converter()
res... | [
"victor334_@hotmail.com"
] | victor334_@hotmail.com |
cdd308eba5962df734d1f76bbec670dd320e7cdd | 13a024e00cab7b0232800151ea7a09f207ef66c9 | /src/skills/schema.py | 55703cb472f32d0a5808040d9655fc866786546f | [] | no_license | angieellis/tshape | 104198c1826b5d762a83c3c4e9f2ffe3ea1b57cd | d15a655ed624877e03b9d47eab92e369eb1aefd8 | refs/heads/master | 2021-01-23T13:59:00.097090 | 2016-11-24T05:08:22 | 2016-11-24T05:08:22 | 55,925,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,107 | py | from django_filters import FilterSet
from graphene_django import DjangoObjectType
import graphene
from profiles.models import Profile as ProfileModel
from skills.models import Skill as SkillModel
from skillsets.models import Skillset as SkillsetModel
from tshape.utils import assign_attrs
from users.models import User ... | [
"angiegrace84@gmail.com"
] | angiegrace84@gmail.com |
0f85274a33880807fc975d50c64d8e2e3d605d2c | 58b7a0570184e5a38beeddaa7dc7dfd959213103 | /snowflake/db_level_metadata/db_meta_collection.py | d5a8521191e062a9e187df46ca07a20ecdc8151d | [] | no_license | sagarch1234/snowflake | 89bd1a6d52f2f1fb25b6673080572991375995e4 | 644b52275a122ebbaf4ec51a0f4184b993f964e7 | refs/heads/master | 2023-03-06T14:04:40.646357 | 2021-02-11T14:17:21 | 2021-02-11T14:17:21 | 337,696,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,071 | py | import sys
import os
sys.path.insert(1, '/snowflake-backend/snowflake/instance_connector')
import snowflake.connector
import constants
from queries_and_tables import queries_tables_list
from connection import SnowflakeConnector
from get_data import GetCustomerData
from load_data import LoadData
from associate_data ... | [
"jpatel99967@gmail.com"
] | jpatel99967@gmail.com |
729a1afce0efb407c5472d53041bc3864d6c1a96 | 1683174856297e64b2330a03fc876d0328509d03 | /playbooks/library/ec2_vpc_peer.py | a787ba96042f3e2578e8816da600c23bf6b8197e | [] | no_license | missnebun/ansible-examples | 352e146dbf7bcf7d3313cb1e26d7852c923e405e | 3525cf6c1dce79b05b83f391372ce5c5e89a4289 | refs/heads/master | 2020-12-26T10:40:51.616774 | 2016-08-08T23:02:19 | 2016-08-08T23:02:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49,814 | py | #!/usr/bin/python
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed... | [
"asanabria@linuxdynasty.org"
] | asanabria@linuxdynasty.org |
5c103efa039afb5675e58e1d72848406ed515778 | e5f48d7ffdb830d6a4cb723f0dc5c200225dcb4a | /train_init.py | f329d0e44fc9cb3c8a23da70db75405843d177ae | [] | no_license | poornimaarunp/Foodie_bot | 5dfaf33c194b069a1e9ca2a3c3a5d4455a2667d5 | b2694c64e0c7d7cadf2b4f99c6aa2ea670f538dd | refs/heads/master | 2020-04-14T17:04:17.981562 | 2019-01-12T19:39:18 | 2019-01-12T19:39:18 | 163,969,285 | 0 | 5 | null | 2019-01-12T19:39:19 | 2019-01-03T12:19:26 | Python | UTF-8 | Python | false | false | 952 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
import logging
from rasa_core.agent import Agent
from rasa_core.policies.keras_policy import KerasPolicy
from rasa_core.policies.memoization import MemoizationPolicy
from rasa_core.featurizers import (MaxHis... | [
"poornimadevi_pandurangan@intuit.com"
] | poornimadevi_pandurangan@intuit.com |
4cdb15c5e29b3981667bd910b1ec91ca2e02c3d0 | 498248ed6d299d99d5bf4c8f6f5e5b30f9c3830f | /strings/kmp_test.py | e2a510b86174d22c2b56e029796d055ace04bb7d | [
"MIT"
] | permissive | tacores/algo-box-py | 23d21d453146426d22117c5eb32fa733d9a2a6a4 | a7c0ee6dcdd1cdcb79062f2c275e00dbb2db35cc | refs/heads/master | 2022-12-07T05:33:50.645550 | 2022-11-25T05:25:22 | 2022-11-25T05:25:22 | 47,456,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 874 | py |
from kmp import find_pattern
from kmp import compute_prefix_function
import unittest
class kmp_test(unittest.TestCase):
def test_sample1(self):
pattern = 'TACG'
text = 'GT'
expected = []
self.assertEqual(find_pattern(pattern, text), expected)
def test_sample2(self):
p... | [
"buttix@gmail.com"
] | buttix@gmail.com |
583649e90ac9a7a34d488bf599da060220579864 | aaa44fed6e0ccb7072f39e77aac73d94dca5616d | /paas/wsgi.py | effee3dd6f45fc692edf8ead26b88dba10256889 | [] | no_license | heidsoft/open_paas | d37a525554ab49002508dffcdad65575d8f2ced4 | 42ae862b7460efa05b8f1a6d0503933091b7d5de | refs/heads/master | 2021-01-25T04:59:24.969189 | 2017-06-06T09:28:09 | 2017-06-06T09:28:09 | 93,500,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | """
WSGI config for paas 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.8/howto/deployment/wsgi/
"""
from gevent import monkey
# patches stdlib (including socket and ssl modules) to cooperate with othe... | [
"heidsoft@sina.com"
] | heidsoft@sina.com |
82a2f1e425e03421f482e49454ad009e38420e6b | 9300f0f196d598204be5392e4461551d45654bb2 | /Programmers/Level1/collatz-conjecture.py | 8924ea26dfbc2603a9c7d6491b5c650a4e24d456 | [] | no_license | coding-Benny/algorithm-interview | dfcb6d85e300a9d786d571b9b5d28f86392555a2 | 3a1bda5a6b3dee892dba70f1f4e9aa13d1cfd510 | refs/heads/master | 2023-08-18T01:58:26.198842 | 2021-10-02T01:39:07 | 2021-10-02T01:39:07 | 281,088,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | # https://programmers.co.kr/learn/courses/30/lessons/12943
def solution(num: int) -> int:
count = 0
while num != 1:
if num % 2 == 0:
num //= 2
else:
num = num * 3 + 1
count += 1
if count == 500:
return -1
return count
if __name__ == '__m... | [
"noreply@github.com"
] | coding-Benny.noreply@github.com |
7c6cd5caddd898e5f3b193ec9e80d834777cb21f | a0c69a70c7b8337ead0aed583e494156dc342501 | /pop.py | 9cbdad1e6d41a077feec6ef9d9110813c39c254a | [] | no_license | tashadanner/python-practice | d0811ec8f3ff5449ae64a6bba314ddb3ee52a278 | 7827aa99389d8a067928f151fbf2425b5ba3324f | refs/heads/main | 2023-03-11T21:50:22.426803 | 2021-02-24T00:57:44 | 2021-02-24T00:57:44 | 340,515,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | city_name = "Instabul, Turkey"
pop_1927 = 691000
pop_2017 = 15029231
pop_1950 = 983000
pop_2000 = 8831800
pop_change = pop_2017 - pop_1927
percentage_gr = (pop_change/pop_1927) * 100
annual_gr = percentage_gr/(2017-1927)
def population_growth(year_one,year_two,population_one,population_two):
pop_change = populati... | [
"tashalouisedanner@gmail.com"
] | tashalouisedanner@gmail.com |
3fe58f00ee2864c8d10f6843a6e31f920996f4c9 | 24a493bafc44dd081f79a728dcb4212a66cb7947 | /src/main.py | a235d2f6f74d0a9de63e49dc3190c68857edeea2 | [
"MIT"
] | permissive | mori97/MVAE | b23c760c2e63346a75a37b208cd2e1db93c80535 | fb8a705fd2a414554ecf760054a86bf50f305c8e | refs/heads/master | 2023-03-03T15:45:14.324149 | 2021-02-12T04:07:37 | 2021-02-12T04:07:37 | 205,518,408 | 2 | 1 | MIT | 2019-10-08T08:24:31 | 2019-08-31T08:36:13 | Python | UTF-8 | Python | false | false | 9,542 | py | import argparse
import os
import re
import statistics as stat
try:
import cupy as cp
except ImportError:
cp = None
import librosa
import matplotlib.pyplot as plt
import mir_eval
import numpy as np
import torch
from torch.nn.utils import clip_grad_norm_
import torch.utils.data
from torch.utils.tensorboard impor... | [
"du@sap.ist.i.kyoto-u.ac.jp"
] | du@sap.ist.i.kyoto-u.ac.jp |
1ee80c958f20bd0cbdd8dd31c7aec4d8e5bb6ce6 | a88f4151ffb6d06621970a517f31a80c8f35cbf7 | /data_prepare.py | 3ae070e9c2d6dbf1b7cb2a7bd73e89a001f26408 | [] | no_license | indiejoseph/nn_trading | 74d6302fae632cf95679254a8f45c972dd7773d0 | cce81b458f2c1947c7c58d7513ac155e881f5666 | refs/heads/master | 2021-01-21T16:39:27.371523 | 2016-01-04T16:09:59 | 2016-01-04T16:09:59 | 47,880,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,777 | py | __author__ = 'Joseph Cheng <indiejoseph@gmail.com>'
__version__ = '0.1'
try:
from urllib.parse import urlencode
except ImportError:
from urllib import urlencode
import urllib2
import os
import numpy as np
import sys
import codecs
from datetime import date, datetime
import matplotlib.pyplot as plt
# Yahoo Histori... | [
"indiejoseph@gmail.com"
] | indiejoseph@gmail.com |
13062f5bb63f7c2e896539dfbf77370ec2204220 | 7b7eedc2144883bb88c8445bc684bb72fcc2e866 | /motors.py | 56c771dc148821cb556b63e0056f1ed4965e42e8 | [] | no_license | ZegesMenden/sim-v2 | b094ecdebcf29f1be39d5b8715a629f57d41cade | c250dbc57f98e57b41c473155e4d4699403b8dd8 | refs/heads/main | 2023-08-25T04:36:59.441408 | 2021-09-29T03:00:25 | 2021-09-29T03:00:25 | 410,317,421 | 2 | 0 | null | 2021-09-30T20:13:54 | 2021-09-25T16:04:56 | Python | UTF-8 | Python | false | false | 8,296 | py | import random
d12_thrust = [
[0.049, 2.569],
[0.116, 9.369],
[0.184, 17.275],
[0.237, 24.258],
[0.282, 29.73],
[0.297, 27.01],
[0.311, 22.589],
[0.322, 17.99],
[0.348, 14.126],
[0.386, 12.099],
[0.442, 10.808],
[0.546, 9.876],
[0.718, 9.306],
[0.879, 9.105],
... | [
"camkullberg@gmail.com"
] | camkullberg@gmail.com |
535ab1f03fa288dffff618b0626cc5aadff6aeb8 | 8a820aa0d3b0d69d8073780e2bf1db7b6bfdd9ef | /Contents/Libraries/Shared/subzero/history_storage.py | 4a20e8b2a72df7694d5e013371705d5ea971e1c2 | [
"MIT"
] | permissive | doopler/Sub-Zero.bundle | 27c3fb6e7e953381a2a19fec81a88efe4f1e0e70 | 82550a7341fcd40ef97af4b1ba0f3ed2b5063121 | refs/heads/master | 2020-03-26T08:40:56.903484 | 2018-08-14T12:17:59 | 2018-08-14T12:17:59 | 144,715,110 | 1 | 0 | null | 2018-08-14T12:09:26 | 2018-08-14T12:09:25 | null | UTF-8 | Python | false | false | 3,373 | py | # coding=utf-8
import datetime
import logging
import traceback
import types
from subzero.language import Language
from constants import mode_map
logger = logging.getLogger(__name__)
class SubtitleHistoryItem(object):
item_title = None
section_title = None
rating_key = None
provider_name = None
... | [
"panni@fragstore.net"
] | panni@fragstore.net |
780173b271325b9397af4297e081e6d0729e5fa6 | 0951232bebefae4f22fb3692faedf3fbace12924 | /Lambda.py | b1b8dc85df0a8e0441b4c0b9de6828b83bba40d8 | [] | no_license | AshishXD/PyPrograms | 340ad65edb608113552656b7492b30109f69905e | f7f58a438466ff4b95aa54dfd7a752627e6441bd | refs/heads/master | 2020-05-17T16:47:31.680867 | 2019-05-02T00:14:18 | 2019-05-02T00:14:18 | 183,571,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51 | py | f = lambda a, b: a*b
result = f(5, 6)
print(result) | [
"28337472+AshishXD@users.noreply.github.com"
] | 28337472+AshishXD@users.noreply.github.com |
a1425ba1a47bf48e828aaf70912eeb18a857a0d7 | 3ccc4d7e778e1505a861233454400322a537772e | /python-1/loops/iterables.py | 4056446e25bf4627dd7360b7fd8ca0b4d3634864 | [] | no_license | abubakr2234/Python-1 | 90687231a96050980fb51fb1520bce73786db232 | 6e065f1dfec2be79394b9d04322569d7daa25918 | refs/heads/main | 2023-01-20T21:57:36.763085 | 2020-11-30T07:52:32 | 2020-11-30T07:52:32 | 317,148,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45 | py |
for item in shopping_cart:
print(item) | [
"noreply@github.com"
] | abubakr2234.noreply@github.com |
c7268b076f3a3fcd57055a0189fabb5f00b8addb | 39a624acb3598e311e3eeec674c883c013a14db7 | /src/vis_rq2.1.py | 237c1703a62c64f027978b98c0e97fd194c9bd91 | [] | no_license | prasri92/MaxEnt | 69c9f5456c0fbd8feb3a702b76e5f0df0f7e8c0c | 9c37c1d12ac6a475a763b3655dd9af1f201c2728 | refs/heads/master | 2020-05-04T19:20:24.066256 | 2020-04-14T15:34:15 | 2020-04-14T15:34:15 | 179,388,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,682 | py | '''
Python = 3.7
matplotlib to plot figures
'''
#PYTHON3
import numpy as np
import pickle
import matplotlib.pyplot as plt
import csv
import pandas as pd
import sys
from scipy.stats import power_divergence
from scipy.spatial import distance
np.seterr(all='raise')
perturb_prob = [0.01, 0.03, 0.06, 0.09, 0.12, 0.15, ... | [
"pboddavarama@umass.edu"
] | pboddavarama@umass.edu |
e13de2855dbb68e6195e0ee8c48fadd3b73e75f5 | 136ba112f67b7459891d50fb8eb33e5aca99b8ef | /cv4/cv4/cv4.py | 7c762a58ee55d1c6fbd2fd094baeef2ad9e31e7b | [] | no_license | hruskaz/python | 1bdf940fb890742e4ad03b5e3e2a953aa7d68401 | 98605087aceffa3120d8f9b55d534715241a114a | refs/heads/master | 2021-05-09T10:38:28.314177 | 2018-01-25T21:02:53 | 2018-01-25T21:02:53 | 118,968,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,209 | py | import json
from bokeh.models import ColumnDataSource, DataRange1d, Plot, LinearAxis, Grid
from bokeh.models.glyphs import Wedge
from bokeh.plotting import figure, show
from numpy import pi
import numpy
from bokeh.io import curdoc, show
parties=[]
json = json.loads(open('election.json', encoding='utf-8').read())
lowPa... | [
"35738612+hruskaz@users.noreply.github.com"
] | 35738612+hruskaz@users.noreply.github.com |
89179fd9b5645eb46626433f7b906e7327866d51 | fb124f5ebf77612763cba74b4cc74a8b0c6ad529 | /mir/mir/pipelines.py | ed6286dbd0c641f260c9d58c395752612e6c1a9a | [] | no_license | mhbahmani/Microsoft-Academic-Crawling | e3b5a55bf387aa7fd89328a4dd7ce482ec3246a9 | eadbe5c13969f6b2d620472edeee8be73360d66e | refs/heads/master | 2023-06-15T04:35:02.578425 | 2021-07-12T11:34:09 | 2021-07-12T11:34:09 | 376,807,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | # Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html
# useful for handling different item types with a single interface
from itemadapter import ItemAdapter
class MirPipeline:
def process_item(self... | [
"mhbahmani79@gmail.com"
] | mhbahmani79@gmail.com |
75cd87ee0375251effc90d2312b9755e3c5f3ff0 | 546168fc714d5de62c78eb49fa05a6c079c5dcca | /main.py | 370da353ffb92d5ccdf10358af94b23d6621faba | [] | no_license | Introduction-to-Programming-OSOWSKI/2-8-hasl-BrandonFreeman24 | 7b360b0c7452b309e9fe3296eb5cfd2aa6397ad1 | 6c77d77b0fb0759f90e32e7435a08e6d85064eeb | refs/heads/master | 2023-08-15T02:48:35.564465 | 2021-10-06T19:40:08 | 2021-10-06T19:40:08 | 413,567,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | def hasL(w):
for i in range(0, len(w)):
if w[i] == "l":
return True
return False
print(hasL("sup"))
| [
"818119@mystma.org"
] | 818119@mystma.org |
5ced23b07ed976ff1e9dcab53779bde7a769629e | dc234aa3d956a43ef3c269a80e15ee79350d05fd | /interface/driver/driver_get.py | a1aca852bce7a5cf36d8b3f8cd3fc852094aa6f5 | [] | no_license | penny1205/UI_testing_compare | 06eee20ebde751a9907c48608143ce09f52bdadd | 09e3fd4d2d8f41599118ea3262b68d43a0159fac | refs/heads/master | 2020-06-18T15:00:53.664013 | 2018-02-01T06:58:33 | 2018-02-01T06:58:33 | 196,339,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,294 | py | #__author__ = 'pan'
# -*- coding:utf-8 -*-
from util.http.httpclient import HttpClient
from util.config.yaml.readyaml import ReadYaml
from util.file.fileutil import FileUtil
from util.log.log import Log
class DriverGet(object):
'''
根据外请车车主loginId查司机信息
/api/tms/driver/getTmsAppDriverDetail
'''
__sl... | [
"panyuanyuan@keking.cn"
] | panyuanyuan@keking.cn |
69dd8b29c317d19d14daa7afd3d77d7da537cda0 | 6214c5175247107cbdd5b79f89585566c06f2081 | /qanta/expo/pipeline.py | c17d494af85825359c52360392bcf96e870cc0e7 | [
"MIT"
] | permissive | IFarhankhan/qb | aedd4c2b6cb3413c6133ac4cc370516c5b9302d2 | 72ce2016e2ed68c7b999d0523b456b0dd1456c8f | refs/heads/master | 2021-06-15T20:19:01.338830 | 2017-04-13T01:32:53 | 2017-04-13T01:32:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,532 | py | import csv
import luigi
from luigi import LocalTarget, Task, ExternalTask, WrapperTask
from qanta.reporting.performance import load_data, load_audit
from qanta.datasets.quiz_bowl import QuestionDatabase
from qanta.preprocess import format_guess
from qanta.util.io import safe_path
from qanta.util.environment import QB... | [
"ski.rodriguez@gmail.com"
] | ski.rodriguez@gmail.com |
cda5c04bfa981680632afe5e9defebb88adf8ca5 | 4ff54f6cd44e7b2beba39e74dad589083687b93b | /blogproject parts7/blog/migrations/0008_post_uploaded_at.py | b255a5bfac9636c5318209564caef206c0e325e6 | [] | no_license | jaganmohangg/kokokoko | 200a2d1bc5726f0777407c8f527eec930013160b | 70d5c91417911069da8cc8d42f26b62a1656aba9 | refs/heads/master | 2020-06-02T02:24:21.105744 | 2019-06-09T12:46:10 | 2019-06-09T12:46:10 | 191,005,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-06-08 05:45
from __future__ import unicode_literals
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('blog', '0007_post_document'),
]
operations = [
m... | [
"gavvala.jagan@gmail.com"
] | gavvala.jagan@gmail.com |
f74baf4cce632b72f3475d46364caf95e9ed4cca | bf1b398b2318a1db7654eb2fc923ccaf63b6ce87 | /create_video.py | a7363caf3155f5e2ed021da96171aafdb1ee9228 | [] | no_license | Maddix/Pylapse | 9c119a384a87c3da5b6d8dde63281e65d275cf08 | d1a2819333a447b4f642f2b4b8529f8b0b2130f1 | refs/heads/master | 2021-01-10T17:00:45.038549 | 2015-10-24T22:46:28 | 2015-10-24T22:46:28 | 44,137,581 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,902 | py | #! usr/bin/python3
# Maddix - Oct 2015 - Python 3.4
# NOTE: Not tested. Remove when it is.
"""
The MIT License (MIT)
Copyright (c) 2015 Maddix
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software wi... | [
"starcraftd@gmail.com"
] | starcraftd@gmail.com |
f67035568dbbe0c11da1ca0f816a4be0f0dcfe27 | 35b77f2f50a64f8af7ae3b6ba2c9c7bae66eed43 | /learnml/supervised/api.py | a64229c7793c8deaf578def9523cb09593074b25 | [
"MIT"
] | permissive | Rost381/learnml | 9dbbac1f2ca238dda696299bcc87886eb178d7dc | 2622cd2b9caf0cd00f6aac62f921cd1838ef5807 | refs/heads/master | 2022-02-27T01:25:29.285925 | 2019-10-14T18:28:55 | 2019-10-14T18:28:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 781 | py | from .adaboost import AdaBoostClassifier
from .decision_tree import (ClassificationTree, RegressionTree,
XGBoostRegressionTree)
from .gradient_boosting import (GradientBoostingClassifier,
GradientBoostingRegressor)
from .k_nearest_neighbors import KNeighborsCl... | [
"4571766+ByrainZhi@users.noreply.github.com"
] | 4571766+ByrainZhi@users.noreply.github.com |
793c1d14191e4458ecb4d6bf7826224b4cc77b93 | 2ff7e53d5e512cd762217ca54317982e07a2bb0c | /xml/sax/expatreader.py | 0907be74460830fd1afb203b1e7a14cbe9ed3983 | [] | no_license | nanxijw/Clara-Pretty-One-Dick | 66d3d69426642b79e8fd4cc8e0bec23adeeca6d6 | 50de3488a2140343c364efc2615cf6e67f152be0 | refs/heads/master | 2021-01-19T09:25:07.555284 | 2015-02-17T21:49:33 | 2015-02-17T21:49:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,563 | py | #Embedded file name: xml/sax\expatreader.py
"""
SAX driver for the pyexpat C module. This driver works with
pyexpat.__version__ == '2.22'.
"""
version = '0.20'
from xml.sax._exceptions import *
from xml.sax.handler import feature_validation, feature_namespaces
from xml.sax.handler import feature_namespace_prefixes
fro... | [
"billchang.e@gmail.com"
] | billchang.e@gmail.com |
a4bc62260d98fa21619b0221d52ce92634f76ec3 | a65e5dc54092a318fc469543c3b96f6699d0c60b | /Personel/Ruthwik/Python/4mar/prime_check.py | 6b605513ebd7ca83f57d7ca66e8560309982ba03 | [] | no_license | shankar7791/MI-10-DevOps | e15bfda460ffd0afce63274f2f430445d04261fe | f0b9e8c5be7b28298eb6d3fb6badf11cd033881d | refs/heads/main | 2023-07-04T15:25:08.673757 | 2021-08-12T09:12:37 | 2021-08-12T09:12:37 | 339,016,230 | 1 | 0 | null | 2021-08-12T09:12:37 | 2021-02-15T08:50:08 | JavaScript | UTF-8 | Python | false | false | 542 | py | #Python function that takes a number as a parameter and check the number is prime or not.
def isPrime(n) :
if (n <= 1) :
return False
if (n <= 3) :
return True
if (n % 2 == 0 or n % 3 == 0) :
return False
i = 5
while(i * i <= n) :
if (n % i == 0 or n % (i ... | [
"ruthwikraja@gmail.com"
] | ruthwikraja@gmail.com |
fbb35df666161f55624d3f6f2b173de3ab78aca0 | 6b185446d3ae1500e7b5b2a6174cc49c455af33d | /category.py | 4bb0a4ab7507dbe32ae53503ef7775e0f29b8a43 | [] | no_license | xiangbohua/python_spider | 27d7cc535988751e418530d5681fef044275f4e4 | 9d401a46a44f38e76391597ddf2d5f723108f308 | refs/heads/master | 2020-03-19T19:31:38.607195 | 2018-06-11T02:37:35 | 2018-06-11T02:37:35 | 136,860,925 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | #!/usr/local/bin/python3
# -*- conding: utf8 -*-
from dbObject import DbObject
class Category(DbObject):
def getFields(self):
return ['mark','c_name','c_url','level','parent_name','c_index','processed']
def getRuntimeProp(self):
return []
| [
"xiangbohua@hotmail.com"
] | xiangbohua@hotmail.com |
1cc18b9cc6e643592b97461aa5192b57443538ce | a0d265fdd4d530f39053cd58b2c885f7ec3f7776 | /examples/arx_identifier.py | 2297c10df668fd86dca097d4b7f4f856955e1e0c | [] | no_license | el-hult/lava | c062062db0004190b7d2b188871034e0d9719921 | 1419e0946d122449ccc8c4798251aa582b87ef20 | refs/heads/master | 2020-05-15T02:12:25.240511 | 2019-09-23T12:39:39 | 2019-09-23T12:39:39 | 182,044,821 | 0 | 0 | null | 2019-04-18T08:08:13 | 2019-04-18T08:08:12 | null | UTF-8 | Python | false | false | 3,539 | py | """
System identification with ARX model
------------------------------------
Makes regression of a AR system.
Shows that by letting the AR components be in the Latent Regressor Model, correct order is identified.
Runs twice - once with a Nominal model, and once with a Latent Model.
Showcases that the LAVA algorithm p... | [
"ludvig.hult@gmail.com"
] | ludvig.hult@gmail.com |
744320eb29d18c77fb9713727ff7d58839e221a1 | 5bcf871c70207c8800caaef55f98b260af94ad14 | /src/commands.py | 23ae00d8787c99267006aca573a031db69147ff0 | [] | no_license | petelah/Flask-Rest-CC | 72dc391e7f1bf7531146cf79c0b4c1d69a193c41 | eac303a66578f7941156b537ddccb03f5585a6ee | refs/heads/main | 2023-03-19T04:57:40.381047 | 2021-03-09T00:33:41 | 2021-03-09T00:33:41 | 345,835,084 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,180 | py | from flask import Blueprint, current_app
from src import db
db_commands = Blueprint("db-custom", __name__)
@db_commands.cli.command("create")
def create_db():
db.create_all()
print("DB Created")
@db_commands.cli.command("drop")
def drop_db():
db.drop_all()
db.engine.execute("DROP TABLE IF EXISTS a... | [
"seabrook.peter@gmail.com"
] | seabrook.peter@gmail.com |
aa6d4d82fe1ced7946042ccc6d540cad9075da16 | 216d96ff265457e2ca32e93bd88b9ee437154a52 | /grasp/src/image2hdf5_v1.py | cf51a4f42010540dd2746b15d30128d9ec8e9f76 | [] | no_license | austin2408/Grasp_drl | b752029bd60f7c1a7654df64517439a050df26d4 | 26f9c20503e3e7a3da4462e03fb634ce0a2c55f4 | refs/heads/main | 2023-09-03T21:32:27.322133 | 2021-11-05T05:32:29 | 2021-11-05T05:32:29 | 380,958,346 | 0 | 1 | null | 2021-11-05T05:32:30 | 2021-06-28T08:21:31 | Python | UTF-8 | Python | false | false | 5,994 | py | from ast import iter_child_nodes
import h5py
import cv2
import numpy as np
import matplotlib.pyplot as plt
import os
import math
import random
import json
import warnings
warnings.filterwarnings("ignore")
Path = '/home/austin/DataSet/grasp_drl/datasets'
ratio = 1
count = [0,0]
Filter_0 = 1
mm = 10000
# Divide orig... | [
"sdnd93612@gmail.com"
] | sdnd93612@gmail.com |
ecf76394a1017c48ff5b7ab93dc3fb8c7fc165ab | 14cae788e05904b0305005e7818f9a8c0fba53a6 | /miniAPI/settings.py | b44062c08a812441c82e887bf5354b5f6f776a7c | [] | no_license | hanifsarwary/mini-api | acca432ec8733830b0a30266cd7c3e0bd0deeb6a | 2625aea042390efb3dfe580cea22e89d9ee3dde8 | refs/heads/master | 2023-03-28T05:36:21.678651 | 2021-03-26T07:30:45 | 2021-03-26T07:30:45 | 351,678,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,086 | py | """
Django settings for miniAPI project.
Generated by 'django-admin startproject' using Django 3.1.7.
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/
"""
from pathlib... | [
"muhammad.hanif@synavos.com"
] | muhammad.hanif@synavos.com |
8af1c52de31314b33e3ad6ab51f610c75600a88a | 0cde0ff3ae5d818786e4b7c103939ea5a73ff146 | /processor.py | e3d299c3a0c80a31532d34d1c6ed42cd962d7ff6 | [] | no_license | peteratt/traffic-signs | d4985b085f81b49eeef7f8ce498ba69e825c20be | 17d227129999fc2c2e63293ae68dbeaabc93d98c | refs/heads/master | 2021-01-11T19:52:10.855749 | 2017-01-29T23:40:42 | 2017-01-29T23:40:42 | 79,411,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,455 | py | import cv2
import numpy as np
import math
import random
### Preprocess the data here.
### Feel free to use as many code cells as needed.
def get_n_img_per_class(labels):
n_img_per_class = []
current_y = 0
current_count = 0
for y in labels:
if y == current_y:
current_count += 1
... | [
"pedro@navdy.com"
] | pedro@navdy.com |
c499c7b4d61d5a05ae856855cb303c72f6d55603 | 5393fa44114326a42dbb3a731f6ce3f1f80fd8d9 | /cropping.py | d2c1b7308b956b9dbeaf4690903338ae66bcaeaf | [] | no_license | CHDRucf/Headstone-Photo-Processing | ae3968c9412d29c5062c2b7b0c5e9ba3b24f4421 | aafdcd90f1668dd11bfe8d90129e86a3ad4df82d | refs/heads/main | 2023-08-05T10:14:47.177048 | 2021-09-24T18:37:43 | 2021-09-24T18:37:43 | 410,066,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,150 | py | import torch
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.patches as patches
from collections import Counter
import cv2
import numpy as np
from torch.autograd import Variable
import torch.nn as nn
import torch.utils.data as Data
import torchvision
from PIL import Image,ImageOps
impo... | [
"noreply@github.com"
] | CHDRucf.noreply@github.com |
66840c48630477e9476c31cbcc44282f6ccf3baa | 4cf3f8845d64ed31737bd7795581753c6e682922 | /.history/main_20200118152712.py | 0186fc09328db4af75357886b308ea98a88c5429 | [] | no_license | rtshkmr/hack-roll | 9bc75175eb9746b79ff0dfa9307b32cfd1417029 | 3ea480a8bf6d0067155b279740b4edc1673f406d | refs/heads/master | 2021-12-23T12:26:56.642705 | 2020-01-19T04:26:39 | 2020-01-19T04:26:39 | 234,702,684 | 1 | 0 | null | 2021-12-13T20:30:54 | 2020-01-18T08:12:52 | Python | UTF-8 | Python | false | false | 101,299 | py | from telegram.ext import Updater, CommandHandler
import requests
import re
# API call to source, get json (url is obtained):
contents = requests.get('https://random.dog/woof.json').json()
image_url = contents['url']
def get_url():
contents = requests.get('https://random.dog/woof.json').json()
url = cont... | [
"ritesh@emerald.pink"
] | ritesh@emerald.pink |
f89dacf4aac0ae3fdb0ad9f2963d35ff0258e14c | e68a40e90c782edae9d8f89b827038cdc69933c4 | /res_bw/scripts/common/lib/distutils/cmd.py | d9027a45765ad9ad67fde32fcc7aac035fc0ee26 | [] | no_license | webiumsk/WOT-0.9.16 | 2486f8b632206b992232b59d1a50c770c137ad7d | 71813222818d33e73e414e66daa743bd7701492e | refs/heads/master | 2021-01-10T23:12:33.539240 | 2016-10-11T21:00:57 | 2016-10-11T21:00:57 | 70,634,922 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 14,573 | py | # 2016.10.11 22:19:24 Střední Evropa (letní čas)
# Embedded file name: scripts/common/Lib/distutils/cmd.py
"""distutils.cmd
Provides the Command class, the base class for the command classes
in the distutils.command package.
"""
__revision__ = '$Id$'
import sys, os, re
from distutils.errors import DistutilsOptionError... | [
"info@webium.sk"
] | info@webium.sk |
35b080e015f21cdb9155cddd726966872085a254 | 81b7d4f68586e9831ec4f1d1825b13ab9bcdad71 | /p8.py | 56e3eab8a4c450fb8965cd0d4ebec34846ddea8d | [] | no_license | jeanpaulpitman/sandbox | 99a23b091ab6e56e557f6bebdf754145d65f5d26 | 5a8e88c522c43eff583929ffce80ad3e559eff46 | refs/heads/master | 2021-01-16T21:33:32.378547 | 2017-11-01T04:24:58 | 2017-11-01T04:24:58 | 100,237,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | s = "Welcome to the Jungle"
new_s = ""
for letter in s:
new_s += (letter * 2)
print(new_s)
| [
"jeanpaul.pitman@my.jcu.edu.au"
] | jeanpaul.pitman@my.jcu.edu.au |
c3b7367762bfbce704395f5ea3cf7a4ec1c20c53 | 93b9097c9e0f3d156878d41d1e3110a0c1fb4fe5 | /smarthome/urls.py | cd58e1e4a5d6d828f703a3944e6430ede7c8fe27 | [] | no_license | japaqonik/py_smarthome | acf4f0fd139545ef64e512888723809d4df684ef | 9b2f8a66982c309be7de34e699106b983d9afa73 | refs/heads/master | 2022-12-25T00:39:21.045400 | 2020-09-28T09:17:33 | 2020-09-28T09:17:33 | 299,213,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 943 | py | """smarthome URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/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-bas... | [
"japaqonik@gmail.com"
] | japaqonik@gmail.com |
69b260836cb53c44836fb3a6e5c2660b38909c73 | efa7b95174e8d50e2031598fccb944e0a066216e | /JobWeb/spiders/NeiTui.py | acf4aa989858c3a201e1abc16052fde66cd61715 | [] | no_license | wucunfeng/rainbowHorse | 864eee6062da64fd6fef945ebdccd5a6bd951ec0 | b4b3b2821de235a425526c1f8515f80c29d3c518 | refs/heads/master | 2020-05-09T09:48:33.747855 | 2019-06-07T10:59:22 | 2019-06-07T10:59:22 | 181,017,301 | 2 | 0 | null | 2019-04-12T13:49:26 | 2019-04-12T13:49:26 | null | UTF-8 | Python | false | false | 981 | py | #utf-8
from scrapy import Request
from scrapy.spider import Spider
from JobWeb.items import NeiTui
from JobWeb.Requesthead import NeiTuiHeaders
class NeiTuiSpider(Spider):
name = 'NeiTui'
def start_requests(self):
url = 'http://www.neitui.me/?name=job&handle=lists'
yield Request(url = url, head... | [
"wu1998102@gmail.com"
] | wu1998102@gmail.com |
9a00be30afc2143a70c3c5158321bf0b654b9a46 | d4cd3d06039b1a1f2d8dd624414263bfe031fceb | /docs/soft/maixpy3/replace_metadata.py | 316c4ed0ee4c4de7beb238af83390666c9d6844a | [
"MIT"
] | permissive | NTestZ/sipeed_wiki | 7c1e2029ded979829e0e748ccb0b876ef3e374af | 1f5fd7dcadbcec952a260213911419028eb59006 | refs/heads/main | 2023-07-07T12:43:31.854451 | 2021-08-07T09:29:16 | 2021-08-07T09:29:16 | 393,743,071 | 0 | 0 | MIT | 2021-08-07T17:03:09 | 2021-08-07T17:03:08 | null | UTF-8 | Python | false | false | 1,209 | py | import os, sys
from glob import glob
import re
path = sys.argv[1]
file_dirs = glob(os.path.join(path, "**"), recursive=True)
for path in file_dirs:
if os.path.isdir(path):
continue
if not path.endswith(".md"):
continue
print("deal:", path)
with open(path, encoding="utf-8")... | [
"a495094740@gmail.com"
] | a495094740@gmail.com |
2f389251120f5b55b7e13abdeec5e4a4cf1d2fca | 70e32629fef6a060448d2fb19b2c24abd84647b0 | /app1.py | 4385646e5111363599313e429c19e9e206b16ea9 | [] | no_license | 9500guswn/1.-- | a9be6fda38c8f12d52bdcbecc56d59919c9691a6 | 8bb73c687d0ef6c2cd3f493ddf3f513c5cdd0514 | refs/heads/master | 2022-12-12T10:26:13.825647 | 2020-09-01T02:33:17 | 2020-09-01T02:33:17 | 289,879,192 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,559 | py | from selenium import webdriver
import time
import warnings
from bs4 import BeautifulSoup
from pymongo import MongoClient # pymongo를 임포트 하기(패키지 인스톨 먼저 해야겠죠?)
client = MongoClient('localhost', 27017) # mongoDB는 27017 포트로 돌아갑니다.
db = client.project
import lxml
# from lxml import etree
import re
driver = webdriver.Chrom... | [
"9500guswn@gmail.com"
] | 9500guswn@gmail.com |
10f222d7fb4fa9cb062fe04ba157b94d6fd37828 | 752adab52f583fb148ad813c89ac325e5a1f604e | /Elements Of AI/RooksAndQueens/nrooks-2.py | a95986f445af031ebfb008c74227d2ada94132b6 | [] | no_license | nawazkh/MSCS-IUB | 45283db78f1a91985a30c50c42211772f7934c5e | 43f1799f18432af4f6d33efed6cf653af840033b | refs/heads/master | 2021-10-20T16:08:35.705016 | 2019-02-28T18:42:59 | 2019-02-28T18:42:59 | 103,451,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,421 | py | #!/usr/bin/env python
# nrooks.py : Solve the N-Rooks problem!
# D. Crandall, 2016
# Updated by Zehua Zhang, 2017
#
# The N-rooks problem is: Given an empty NxN chessboard, place N rooks on the board so that no rooks
# can take any other, i.e. such that no two rooks share the same row or column.
import sys
import time... | [
"nawazkh@Nawazs-MacBook-Pro.local"
] | nawazkh@Nawazs-MacBook-Pro.local |
8679df74503c5e8225b1f6736be8fc111122959d | 2c95e0f7bb3f977306f479d5c99601ab1d5c61f2 | /olive/types/blockchain_format/program.py | 991578faa53a9376f9b547c5acec541b38be843a | [
"Apache-2.0"
] | permissive | Olive-blockchain/Olive-blockchain-CLI | d62444f8456467f8105531178d2ae53d6e92087d | 8c4a9a382d68fc1d71c5b6c1da858922a8bb8808 | refs/heads/main | 2023-07-19T03:51:08.700834 | 2021-09-19T16:05:10 | 2021-09-19T16:05:10 | 406,045,499 | 0 | 0 | Apache-2.0 | 2021-09-19T16:05:10 | 2021-09-13T16:20:38 | Python | UTF-8 | Python | false | false | 7,275 | py | import io
from typing import List, Set, Tuple
from clvm import KEYWORD_FROM_ATOM, KEYWORD_TO_ATOM, SExp
from clvm import run_program as default_run_program
from clvm.casts import int_from_bytes
from clvm.EvalError import EvalError
from clvm.operators import OP_REWRITE, OPERATOR_LOOKUP
from clvm.serialize import sexp_f... | [
"87711356+Olive-blockchain@users.noreply.github.com"
] | 87711356+Olive-blockchain@users.noreply.github.com |
3d581b4a840d64ec73781edb5491e2a20ac0e61d | 60221cc1f22bfb151c2307c7c470fe4203269e2f | /10-10-20/LongestVowelChain.py | 73d7634808608bad0f4ca148b4e16ba092d93aca | [] | no_license | christopherc1331/CodeChallenges | 0372b34154849030dc0e7cd74f0dc94153551802 | 36ba3cad00590c914eb5a339c0fe04618d18aceb | refs/heads/main | 2023-01-13T21:55:49.248348 | 2020-11-21T20:10:35 | 2020-11-21T20:10:35 | 302,963,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | def solve(s):
vowels = {"a": 0, "e":0, "i": 0, "o": 0, "u": 0}
largest = [0]
for i in range(len(s)):
char = s[i]
if (char in vowels):
largest[-1] += 1
else:
largest.append(0)
return max(largest) | [
"christopherc1331@gmail.com"
] | christopherc1331@gmail.com |
35c6020ad2088012abb9e86e532fb6d67f24ff18 | 37b8c1d533f6407848d0f0ef9ac78ee4b206efd9 | /backend_test/models/payload.py | e6b474368ab0e9f0b528cde75746b6593e78bccb | [] | no_license | richoGtz23/backend_test | 2c8579c935ae6076306a3bf2b1a4c2bdb517f45d | 8a3bebdae7145f54ac73c29795169cbe4d6fc664 | refs/heads/master | 2023-04-18T01:20:52.449642 | 2021-04-29T21:39:28 | 2021-04-29T21:39:28 | 362,954,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | from dataclasses import dataclass
@dataclass
class Payload:
status: str
num_in_english: str
| [
"richo@gavelytics.com"
] | richo@gavelytics.com |
be6fe54d524ead59fa1c27ff98cd92919e15d863 | 40b69f48b0aad6fb1fde23b41f34d000236b3136 | /ppdet/modeling/architectures/rfp_centernet.py | 15f29a867d13e9848138a3830a485ffd6a2db57d | [
"Apache-2.0"
] | permissive | TrendingTechnology/AFSM | e88d36d757229dc1266a0ec62d61fd6e48d29649 | 54af2f072071779789ba0baa4e4270a1403fd0dd | refs/heads/master | 2023-01-22T03:28:17.868009 | 2020-12-10T09:47:17 | 2020-12-10T09:47:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,006 | py | # AUTHOR: Zehui Gong
# DATE: 2020/6/21
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from paddle import fluid
from paddle.fluid.param_attr import ParamAttr
from paddle.fluid.initializer import Xavier, Constant
from ppdet.core.workspace import register
fr... | [
"zehuigong@foxmail.com"
] | zehuigong@foxmail.com |
bdbb607631f4655a4262cb8fb9fa30bf330b8670 | a0331cfd563fe7df25d47e6fc0fc30d2785b504e | /bin/cyclometer.py | 305a84eb0d30517a83dc01fad4e6c7fef42bba8d | [] | no_license | thorikawa/PyEnigma | d051c293e2909e000fbca2d60bb4b2684884a437 | def3cfd7189dda3c4f30be764fa9ccfba7567c6e | refs/heads/master | 2021-01-01T16:55:30.784125 | 2015-03-27T06:14:03 | 2015-03-27T06:14:03 | 30,911,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,456 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
import pyenigma, string
from itertools import permutations, product
from unionfind import UnionFind
plugboard = pyenigma.Plugboard('')
for order in permutations(range(3)):
print order
rotors = [pyenigma.ROTORS[order[0]], pyenigma.ROTORS[order[1]], pyenigma.ROTORS[order[... | [
"horikawa.takahiro@gmail.com"
] | horikawa.takahiro@gmail.com |
956e59a1d186f7ae0f6f6ce9ba95e91bf7134649 | dac996032dddd7f69de203c42eaf656dbc2419e3 | /www/day7_handlers.py | e4a52714374aea6a17db24e4c38f3dcde5c63dcc | [] | no_license | goushan33/First-python3-webapp | 14116ce093001cba38bbb038b9bcd89c9483ddf8 | 70134eee96317c32e989b21c2788251d13d3e96e | refs/heads/master | 2020-04-04T18:20:52.327584 | 2019-04-10T03:54:39 | 2019-04-10T03:54:39 | 156,159,976 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,394 | py | import re
import logging
import time
import json
from day5_web_frame import get, post
from aiohttp import web
from day4_models import User, Comment, Blog, next_id
from day5_error_api import APIError,APIValueError
import hashlib
from day6_config import configs
import day6_config
import day3_orm
'''
@get('/')
async def ... | [
"443568347@qq.com"
] | 443568347@qq.com |
017f38ce5694539ccdeb3137e5e3432cbac2a6fc | 5b5d8971b01daa6bc377cfecfbbceffc1ce8fc5a | /codex.py | c3ac791d2de1a423577d34132cf8b2e28fa29859 | [] | no_license | Arcanist13/LinearCode | 63da0208db0b48d80a22f6787fd74b93c569bbf7 | b760282a58144a7a2b9588d43749d75d0d9ce091 | refs/heads/master | 2021-01-22T09:09:07.792866 | 2013-03-19T01:11:52 | 2013-03-19T01:11:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | #Takes codex and converts to a transition factor
def LinExt(codex):
ListCode = list(codex)
if len(ListCode) != 7:
return False
elif len(ListCode) == 7:
pass
op = 0
if ListCode[1] == 'a':
op = ''
elif ListCode[1] == 's':
op = '-'
else:
return False
tranTemp = op + str(ListCode[2]) + str(ListCode[5... | [
"gmeredith15855@gmail.com"
] | gmeredith15855@gmail.com |
9280c1e0b22b6cfed9287cfd7cc90a191f92fe67 | adca754d684b9d5b7d0cbabaeef004fb7bcdb7a2 | /djangoproject/users/views.py | 6fad46a6f610e0e973549b1f6a4992ca2f02a7fd | [] | no_license | qehremanekber/djangoproject | d9d99daa0921b2fadc69a2c2a419b261a8ec9dc7 | 009d262d3f12b54b35660b252af1511c303f1605 | refs/heads/master | 2023-06-16T16:44:17.298658 | 2021-07-11T22:41:11 | 2021-07-11T22:41:11 | 383,126,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 953 | py | from django.shortcuts import render, redirect
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.decorators import login_required
from django.contrib import messages
from .forms import UserRegisterForm, UserUpdateForm, ProfileUpdateForm
def register(request):
if request.method == 'POS... | [
"74054688+Bakubus@users.noreply.github.com"
] | 74054688+Bakubus@users.noreply.github.com |
f061077aa9a0451acba6d155088c01013954d4bd | 889fbe235b4c1d8c2d5860e29fd307ba1196292d | /workers/models.py | 4157b0761cc32ef302ceeabecb2791a2095b1d34 | [] | no_license | DanikNik/exam_sgn | 4b20b8739b0141e441ee261fcdc0e64b94ee35a8 | 2a01a08d9912647091fec76e3da8aec6e6717e48 | refs/heads/master | 2020-04-15T20:52:17.844581 | 2019-01-10T07:22:53 | 2019-01-10T07:22:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | from django.db import models
# Create your models here.
class Worker(models.Model):
first_name = models.CharField(max_length=20)
second_name = models.CharField(max_length=20)
surname = models.CharField(max_length=20)
position = models.CharField(max_length=50)
experience = models.IntegerField()
| [
"sway9009"
] | sway9009 |
f3c3fa48c5fe2cedcbc0edc3f040e3dde77e03bd | 52cea26360f52b403df343c18f0d63c97f51a4ce | /33Search_in_Rotated_Sorted_Array.py | c8772589bd4411864f4b1c459c4b9eb73bd0269a | [] | no_license | wopeter/leetcode | 2a5f0debd47438da469cb31509cae24618f633dc | ae3e459da5ad923db303ac5b36a5ec69c43be073 | refs/heads/master | 2021-04-06T01:59:46.070202 | 2018-11-30T16:14:16 | 2018-11-30T16:14:16 | 124,897,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,956 | py | """
NO 33.Search in Rotated Sorted Array
Description
Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.
(i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2]).
You are given a target value to search. If found in the array return its index, otherwise return -1.
You may assu... | [
"pengtemail@163.com"
] | pengtemail@163.com |
849f9e649cd5ddd741d07deaa01706c6fb2a496b | 0623e353e9b1f073b955549d8a9e6be746428e79 | /hw9.cgi | 94aa861b79b7697670a7f7737345762d5a1f473e | [] | no_license | ChristianFMartin/I211 | d186d63711c7fd501bf06d8b8f6739921fe9eb83 | 4c31fe9b8aaf805aa5b9f9aeea95ed83395f55d0 | refs/heads/master | 2020-04-20T10:52:35.870327 | 2019-02-02T06:27:04 | 2019-02-02T06:27:04 | 168,801,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | cgi | #! /usr/bin/env python3
import cgi
print('Content-type: text/html\n')
form = cgi.FieldStorage()
item = form.getfirst('item','unknown item')
cost = form.getfirst('cost',0)
dev_m = form.getfirst('dev_m',10)
total_cost = int(cost)+int(dev_m)
total_cost = str(total_cost)
html = """
<!doctype html>
<html>
... | [
"noreply@github.com"
] | ChristianFMartin.noreply@github.com |
f73bfd18d81aa0b7817cee20e527dd988d063dc3 | 5740921ce1ba85d5a31e10b58028ff8f3184aff9 | /proj2.py | 8ac869089732087cbdd2691673f8d6f5f24fb152 | [] | no_license | mskobe/IR-Proj2 | 5db9323261438c968392ada168a508afec393896 | 46132aa2e1aaa89f7c9349c3806ac3e157c9f161 | refs/heads/master | 2020-05-20T04:55:47.928240 | 2013-11-12T22:23:23 | 2013-11-12T22:23:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,255 | py | import subprocess
import requests
import re
global queries
def get_query():
f = open('desc.51-100.short', 'r')
queries = []
for line in f:
line = line.strip(' .\n')
if line == '':
pass
else:
query = parse_query(line)
queries.append(query)
f.c... | [
"douzongkun@gmail.com"
] | douzongkun@gmail.com |
2f521abc69b5e0850c15f9b1f908874de923fb8d | 2542de653005fc353ec04539eb2e59821e9fc220 | /test/functional/interface_http.py | 94d3ee588e6322fdb6f941d3d965f2c067be3fc0 | [
"MIT"
] | permissive | wazzlecoin/wazzle | cb23d17a0cd252ba7770efdcde755f76386a2b85 | 661cd73a1f9eaae1e91a3fb83dc29f4d78f5b980 | refs/heads/master | 2021-05-17T17:05:21.597875 | 2020-05-04T15:01:35 | 2020-05-04T15:01:35 | 250,886,396 | 3 | 4 | MIT | 2020-03-29T09:12:18 | 2020-03-28T20:23:31 | C++ | UTF-8 | Python | false | false | 4,834 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2019 The Wazzle Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the RPC HTTP basics."""
from test_framework.test_framework import WazzleTestFramework
from test_fr... | [
"62810104+wazzlecoin@users.noreply.github.com"
] | 62810104+wazzlecoin@users.noreply.github.com |
7ac06a32c905204e1f99d52d0f91e3cdff349c56 | 769e3bdb320a57d680b46175d1959d73cb02e9c3 | /books/migrations/0001_initial.py | 867701ce4146399828c15ae1943484c3ed1dc4b2 | [] | no_license | nurbek-b/library_tutorial | 28aed466f8cabd6180ddc574cb3de0b94de10623 | 4fda5928821a444302f4d15bdcb0466b3b3f842f | refs/heads/master | 2022-05-12T10:55:50.813989 | 2019-09-23T11:12:10 | 2019-09-23T11:12:10 | 210,334,115 | 0 | 0 | null | 2022-04-22T22:31:25 | 2019-09-23T11:06:49 | Python | UTF-8 | Python | false | false | 670 | py | # Generated by Django 2.2.5 on 2019-09-19 13:21
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Book',
fields=[
('id', models.AutoField(aut... | [
"foto.nurbek@gmail.com"
] | foto.nurbek@gmail.com |
a0b6a0d0c97e5be1bdf104408bab4638cd811d7e | 9782d916b4d386423e6fbf3883dca1aa3d38b4fa | /login_submission.py | 99f2f2b3346809022e04ee15608b2fe97ed96f4c | [] | no_license | Jai-Prakash-Singh/my_bot | 3826ac1a8b2491aaf3fc25c7f68c033b19c3ad8d | 285fe4cd58da9c995a5a420d02ba1c953c4d1021 | refs/heads/master | 2021-01-20T11:13:50.607298 | 2013-12-31T11:21:43 | 2013-12-31T11:21:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,530 | py | #!/usr/bin/env python
# -*- coding: latin-1 -*-
# -*- coding: iso-8859-15 -*-
# -*- coding: ascii -*-
# -*- coding: utf-8 -*-
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import firebug_proxy2
import time
from selenium.webdriver.support.ui import Select
def login():
#driver = ... | [
"jp213@ymail.com"
] | jp213@ymail.com |
6fc97569c1683b8f6b0ae41fbb6ae187e7bf1f43 | 996079c6ebe6e44e91f1e4111c5026762775f094 | /python/10-completed-jobs-group-hour.py | f628c9784c7b4cc984ba221cdff46c3527b41488 | [] | no_license | svaclav/htcondor-scripts | bae1c9a3520c149c727881d3b981954a2ff42e35 | 62b562cb9f6445447b395902aebfa170904c1f25 | refs/heads/master | 2021-05-05T23:47:05.857963 | 2018-04-26T13:23:13 | 2018-04-26T13:23:13 | 116,820,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,333 | py | #!/usr/bin/python
"""
Finds total jobs running on target host
First argument of this script is the name of the server
"""
import string
import classad
import htcondor
from collections import defaultdict
jobsgroups = defaultdict(int)
groups = []
from optparse import OptionParser
parser = OptionParser()
parser.add... | [
"strachon@fzu.cz"
] | strachon@fzu.cz |
c07a4d322267bf67a777a7051bc7a430b443fe92 | afc8d5a9b1c2dd476ea59a7211b455732806fdfd | /Configurations/WW/FullRunII/Full2018_v9/jetpt0/TheoUnc/configuration.py | 896351662ad01c0f0e1bef1292a88edb50436912 | [] | no_license | latinos/PlotsConfigurations | 6d88a5ad828dde4a7f45c68765081ed182fcda21 | 02417839021e2112e740607b0fb78e09b58c930f | refs/heads/master | 2023-08-18T20:39:31.954943 | 2023-08-18T09:23:34 | 2023-08-18T09:23:34 | 39,819,875 | 10 | 63 | null | 2023-08-10T14:08:04 | 2015-07-28T07:36:50 | Python | UTF-8 | Python | false | false | 704 | py | # Configuration file to produce initial root files -- has both merged and binned ggH samples
treeName = 'Events'
tag = 'WW2018_v9_jetpt0_TheoUnc'
# used by mkShape to define output directory for root files
outputDir = 'rootFile'
# file with TTree aliases
aliasesFile = 'aliases.py'
# file with list of variables
var... | [
"Susan.Dittmer@cern.ch"
] | Susan.Dittmer@cern.ch |
2b05bafede7ab1e332eb8bdd2d6fb60800679e32 | 0d7467b096fe7ce212c7459be0c2b485b5d86168 | /shelfzilla/apps/manga/views/volumes.py | 31975f8cc0ba665274f0def1f74bdc16d7f93aa6 | [] | no_license | fmartingr/shelfzilla | 86ecb7cf2f97ff9b13a7a8ce2415299b80207111 | 628aaf3d8799550e76143f2d7e0c78bdbeebd11e | refs/heads/master | 2023-06-11T13:26:22.297856 | 2015-10-14T06:25:35 | 2015-10-14T06:25:35 | 381,305,902 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,205 | py | from django.http import HttpResponseRedirect
from django.template import RequestContext
from django.utils.translation import ugettext as _
from django.contrib import messages
from django.shortcuts import render_to_response, get_object_or_404
from django.core.urlresolvers import reverse
from ..models import Volume, Use... | [
"fmartingr@me.com"
] | fmartingr@me.com |
2d3521ff7dc65d4c46121f2cecc216071311db8b | 1652b5c345a6f96717d1d07502a197834ab04221 | /requirements/tests/ui/test_user_project_and_iteration_permission.py | 7f9eb23ac65bb768fbc274754548b32492e93768 | [] | no_license | CS673Group3/project-mgmt-backend | 5fe43412dd7efc4ea0693b7d6a9c430d1a1da795 | 21d2f5993a06edc46504eba395fca727c8b51422 | refs/heads/master | 2021-01-13T01:02:51.286403 | 2016-04-23T16:03:16 | 2016-04-23T16:03:16 | 51,478,447 | 0 | 3 | null | 2016-04-09T16:34:10 | 2016-02-10T22:49:55 | Python | UTF-8 | Python | false | false | 10,584 | py | # -*- coding: utf-8 -*-
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import Select
from selenium.common.exceptions import NoSuchElementException
from selenium.common.exceptions import NoAlertPresentException... | [
"jwildey@gmail.com"
] | jwildey@gmail.com |
1daccf1c0b1c2010b9176d87471498251737910b | 0ea8262ed5cba3482c0f450cfb290b646262b616 | /BookingApp/urls.py | 1dd506bede3bf0c30b6ac0865ad21fd71b1f3be7 | [] | no_license | squiremaguire69/MusicVenueConnect_Bookings | 29608b187d49ef5604c12bd43685fc42c579cd25 | f661354cc35a14f1144110cc45fee8550976cce6 | refs/heads/master | 2021-06-18T23:42:18.485183 | 2019-09-17T07:47:25 | 2019-09-17T07:47:25 | 205,142,645 | 0 | 0 | null | 2021-06-10T21:54:53 | 2019-08-29T10:54:06 | Python | UTF-8 | Python | false | false | 867 | py | """BookingApp URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class... | [
"ubuntu@ip-172-31-16-218.ec2.internal"
] | ubuntu@ip-172-31-16-218.ec2.internal |
6305c2a6ec5451a12fab6e4ebc0042a8ed77e0a6 | 5d8f7a08d2577d6147bec184b49fb48302887eb6 | /home/migrations/0005_blogpage.py | 52b7f80687a5cd8f5209fd934f5dddc0c2f5c3d1 | [] | no_license | qrames/atelier_chazalote | 6bd0b566f370f85e24caf5d7148dee4ed1c788bd | 9c735913ddbdefe7ab3a7ff3a955ae51191c0b09 | refs/heads/master | 2020-06-07T19:27:01.392878 | 2019-06-21T10:33:37 | 2019-06-21T10:33:37 | 193,080,166 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 985 | py | # Generated by Django 2.2.2 on 2019-06-20 20:36
from django.db import migrations, models
import django.db.models.deletion
import wagtail.core.fields
class Migration(migrations.Migration):
dependencies = [
('wagtailcore', '0041_group_collection_permissions_verbose_name_plural'),
('home', '0004_ho... | [
"ramque@orange.fr"
] | ramque@orange.fr |
a9335dd89522d707e5634e25b5faa71cd943a0a7 | 85029dbf4d24e0b876a23b09fa269826c4be13b3 | /Pregnant_App.py | 8414e7fe2c99cf9b1aa17d78b59bdb6c8eb12fc4 | [] | no_license | liorbraun/SmsWithAmazon | 2cc58feb73a6fce46912c8378e2e5478370e8d24 | 16ad64423e06f8a8c5d31789003436299d8a4bcf | refs/heads/master | 2020-07-05T16:21:01.527065 | 2019-08-16T09:18:00 | 2019-08-16T09:18:00 | 202,696,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 985 | py | from Functions import *
import datetime
Dt = datetime.date.today()
ListOfclients = []
if __name__ == "__main__":
try:
option = "a"
id = 1
while str.lower(option) != "exit":
print("select option")
print("1: Add client")
print("2: save data")
... | [
"yyyarden@gmail.com"
] | yyyarden@gmail.com |
8f5a88bcf626a9d5007eab0089ea995f9317cb34 | 09c63ef7a90f5c940b0d8e9b4477d47081daaf73 | /eon/eon/communicator.py | 4b1799900b75c1d64722ae17439be9f0757dab1a | [] | no_license | MaxAndersson/openstackeon | 8b3bc62110331357f30ee4b9c8c77c9bbf5a91df | 484a6bc854e208af8a494d98ab74ec6706d3e66d | refs/heads/master | 2021-01-01T03:43:47.182487 | 2016-05-13T08:41:44 | 2016-05-13T08:41:44 | 58,280,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53,225 | py | ##-----------------------------------------------------------------------------------
## eOn is free software: you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later ... | [
"MaxN90@gmail.com"
] | MaxN90@gmail.com |
3269d977f4f6d44a4f58c7130663ff644a951a93 | f5ced23208510d76b5df1571b44e344086ca8bef | /Projects/Project01/tests/q1_7.py | e793ac32bd0c661bd63bc54247df4469c15478ca | [] | no_license | jemmott/DSC10-Sp20 | 1c358638cbbe086cc1710c66dd299889d754b4ac | a1c30d7dc318471f1ce17cd613ffc278fe00f1db | refs/heads/master | 2021-05-16T18:44:47.022718 | 2020-06-09T19:52:11 | 2020-06-09T19:52:11 | 250,424,744 | 4 | 5 | null | null | null | null | UTF-8 | Python | false | false | 421 | py |
test = {
'name': 'q1_7',
'points': 1,
'suites': [
{
'cases': [
{
'code': r"""
>>> # should be a dataframe
>>> isinstance(class_counts, bpd.DataFrame)
True
>>> len(class_counts.columns) == 1
True
""",
'hidden': False,
'locked': False
}
]... | [
"51950358+jeffrey7377@users.noreply.github.com"
] | 51950358+jeffrey7377@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.