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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8c63f219ad95db75ed82086dfa49982bb6c3eb1d | 3fe2ab6ae893f17c2bd2d86c9f33b13f7de039cb | /web/server/api.py | e2b46518eb2d4f64b671944d665784befb4aca95 | [] | no_license | laekov/celebrities | 36a43c1c4cf329d1a9d2e85588fde521db047b59 | 013b29bc082503d324108d67dab6ed2a821eef2c | refs/heads/master | 2021-06-24T21:50:39.091440 | 2017-09-14T14:13:42 | 2017-09-14T14:13:42 | 103,073,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,426 | py | from django.http import HttpResponse
from django.views.decorators.csrf import csrf_exempt;
import os;
from os import path;
from bs4 import BeautifulSoup;
import re;
import json;
import math;
def test(req):
return HttpResponse('<h1>Test fine</h1>');
kwdx = { };
ctdx = { };
def addScore(dt, cid, sco):
if (not ... | [
"laekov.h@gmail.com"
] | laekov.h@gmail.com |
fd48e51c8eab549b95ed79cc075a60d840f595ef | 65dd982b7791b11b4f6e02b8c46300098d9b5bb3 | /neutron-2014.2.2-gcloud/neutron/db/portqos_db.py | 91e3edb81874a111692dc538727c9926b83a4b00 | [
"Apache-2.0"
] | permissive | xiongmeng1108/openstack_gcloud | 83f58b97e333d86d141493b262d3c2261fd823ac | d5d3e4f8d113a626f3da811b8e48742d35550413 | refs/heads/master | 2021-01-10T01:21:13.911165 | 2016-03-25T08:21:14 | 2016-03-25T08:21:14 | 54,700,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,058 | py | __author__ = 'luoyb'
import sqlalchemy as sa
from sqlalchemy import orm
from neutron.api.v2 import attributes
from neutron.db import db_base_plugin_v2
from neutron.db import model_base
from neutron.db import models_v2
from neutron.openstack.common import log as logging
from neutron.extensions import gcloud_qos
LOG =... | [
"cs_xm@126.com"
] | cs_xm@126.com |
ef4668a501a8d6369e07c6122938874c4cf277af | 189912ec137dd39993809ad65b1774afdd0afbab | /Disk Stacking.py | fb640dc108242469ad42ac373dcaf960440a258d | [] | no_license | williamMtuiJr/CodingInterviewPrep | 8f4fa2565b67c79babe9a9f79d39ab8e196fbafa | 0b4189bd1e2ab61c994db43404bcdbb84c78406d | refs/heads/main | 2023-06-20T16:18:15.402602 | 2021-07-14T12:56:03 | 2021-07-14T12:56:03 | 341,983,448 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 998 | py | """
Disk Stacking
You're given a non-empty array of arrays where each subarray holds three integers and represents a disk. These integers
denote each disk's width,
depth, and height, respectively. Your goal is to stack up the disks and to maximize the total height of the stack. A
disk must have a strictly smal... | [
"lugano.ngulwa@gmail.com"
] | lugano.ngulwa@gmail.com |
ca2564555387d3306bb940f5833c83d4dad9b8fd | ce25bb7c0a8746eb67facaf65ebd0416a8d5b72e | /figures.py | d73c2bbcc02e2ed54f0b6190a5688cde8b756589 | [] | no_license | AviramGelblum/Percolation | 3ccf424989a0102f63f5aad1504680d24829e25a | ea42f7faefdea11869a7633a1ea8e61b98b3c8c0 | refs/heads/master | 2020-12-02T17:42:58.163852 | 2017-07-23T08:33:27 | 2017-07-23T08:33:27 | 96,416,759 | 0 | 0 | null | 2017-07-22T18:39:07 | 2017-07-06T10:05:51 | Python | UTF-8 | Python | false | false | 717 | py | import numpy as np
import matplotlib.mlab as mlab
import matplotlib.pyplot as plt
def histogram_example():
mu, sigma = 100, 15
x = mu + sigma*np.random.randn(10000)
# the histogram of the data
n, bins, patches = plt.hist(x, 50, normed=1, facecolor='green', alpha=0.75)
# add a 'best fit' line
... | [
"avgelb@gmail.com"
] | avgelb@gmail.com |
03787d532089980a6c32e6aae2e3e38f4bcdfea0 | 746eee8ec869d0c321e8d98a1b1f2ec76e045e3b | /main.py | 17cb6944486fc75169417dc5090e37e320dbf35d | [] | no_license | jgarner148/ChildrensStoryBox | dd23b44d0732434a1fcf4bb0dde0a7d78d516d15 | a4ed990da8404cab630229bf0e24d44a9e3c1640 | refs/heads/master | 2023-02-23T05:07:32.309634 | 2021-01-26T13:24:01 | 2021-01-26T13:24:01 | 331,001,285 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 916 | py | """
This is the main menu for the program
"""
##### Standard funcations section #####
def blank(): #Adds a blank line
print("")
def clear(): #Clears the screen
print("\n"*99)
##### Menu #####
clear()
exit = False
while exit == False:
print("Story box generator main menu")
blank()
print("1) Manual generator"... | [
"j.garner148@gmail.com"
] | j.garner148@gmail.com |
237860fd259fb4188ed5fb9146f2099283273d78 | fdb3261f3a54287bdd71b6799c5aeca636ea35ab | /apps/ivrs/migrations/0005_chapter_gkatlm.py | 70a1877c86add836410a4e413f5bde558806057e | [
"MIT"
] | permissive | klpdotorg/dubdubdub | 0686423b869c635d38a46c8bedb1b853723cb0e5 | 67714c0f7d859a6fa362e9e7e2ae5962d5e1d21f | refs/heads/develop | 2021-01-23T11:21:57.754265 | 2018-04-06T19:11:57 | 2018-04-06T19:11:57 | 17,411,967 | 4 | 5 | MIT | 2018-02-20T08:39:03 | 2014-03-04T18:18:50 | JavaScript | UTF-8 | Python | false | false | 1,117 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('ivrs', '0004_state_answers'),
]
operations = [
migrations.CreateModel(
name='Chapter',
fields=[
... | [
"blucalvin@gmail.com"
] | blucalvin@gmail.com |
94121fcb7075e0aa2fedf33132a917d05a9ee844 | feb2caee65f71ce4557ec34777e862ed67b4343a | /django_blog/blog/urls.py | 8153e5c56b0f6893791272906c9a5acc115f0613 | [] | no_license | kornellewy/django_train_projects | b8bc724565c0c59ebb417289fe4f05452cc59365 | 40cda6dc98ebd5d134b2b9df9e0f41b8b6c33c9b | refs/heads/master | 2021-03-03T14:48:45.271519 | 2020-05-28T09:01:03 | 2020-05-28T09:01:03 | 245,967,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.PostListView.as_view(), name='blog-home'),
path('post/<int:pk>', views.PostDetailView.as_view(), name='post-detail'),
path('post/new/', views.PostCreateView.as_view(), name='post-create'),
path('post/<int:pk>/update/', view... | [
"korneliuszlewczuk@gmail.com"
] | korneliuszlewczuk@gmail.com |
748373c317e0728524414db3c77e10aeaa6946be | 699fa9e65bb7a05d7f67e72b3c876032140dd28b | /activmask/datasets/xray.py | 01cabd1ab1d11674c5d57eb9a92a407b217ef532 | [] | no_license | themaskedcrus4der/saliency-red-herring | 3147f5678ca5dc2b4424c92cbff926163cb0a0da | 2d740d5a34a9737c45314d476f640c5520886a3d | refs/heads/master | 2022-12-24T16:51:02.183823 | 2020-10-02T20:12:26 | 2020-10-02T20:12:26 | 300,088,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,414 | py | from PIL import Image
from PIL import ImageFont
from PIL import ImageDraw
from os.path import join
from skimage.io import imread, imsave
import skimage, skimage.transform
from skimage.morphology import square
from torch import nn
from torch.nn.modules.linear import Linear
from torch.utils.data import Dataset
from torch... | [
""
] | |
6bc465b047b317b874564567d86dd750b92a8daf | b1255aedc430b128582d42cabfe675ac3a3321f1 | /src/promnesia/sources/browser.py | 176c05d8a1770d0487733568cf822e8e0b0c8c00 | [
"MIT"
] | permissive | alexriabtsev/promnesia | 855e3b54d3f17b3c9bf7ce985360e8d4f259c5da | 5055198170bdf57135679181d87450a979a05a2b | refs/heads/master | 2022-11-13T04:58:00.565517 | 2020-07-11T19:46:23 | 2020-07-11T19:46:23 | 278,930,706 | 0 | 0 | MIT | 2020-07-11T19:44:18 | 2020-07-11T19:44:17 | null | UTF-8 | Python | false | false | 2,714 | py | import csv
import sqlite3
from datetime import datetime
from subprocess import check_output
from typing import Dict, Iterator, List, NamedTuple, Optional, Set
from urllib.parse import unquote
import pytz
from sqlalchemy import Column, MetaData, Table, create_engine # type: ignore
from ..common import Loc, PathIsh, Vi... | [
"karlicoss@gmail.com"
] | karlicoss@gmail.com |
6cad3c987012bdaf400d4766eb15cf035a6a8194 | b06c61d3b1e26033a7827bcc282332c75a61d941 | /project/project/urls.py | b3df805b7fb47186713beaf1737c8df91dcfc167 | [] | no_license | harshal1998/inderassignment | dabdddab0f0a6249816d56b642c25526bc8348b4 | 4f12f2ecadb79c22366efb359a5c6c28a5a64652 | refs/heads/master | 2023-06-03T03:12:22.444252 | 2021-06-22T06:01:15 | 2021-06-22T06:01:15 | 379,153,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | from django.contrib import admin
from django.urls import path,include
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('app.urls'))
] | [
"harshalwankhede1998@gmail.com"
] | harshalwankhede1998@gmail.com |
cf7918a2fe6871babf78c1230464c51f0021450d | 2ecf11505707e94c52e2d20be6441e390e1564e1 | /Image Processing and Object Detection with Recommender System/Model - Scripts/Apriori.py | 8848178fcbed075e02bd6994433b450d7e792584 | [] | no_license | Amrit-Madhav/data-science | 3040c01e57fd6eb33074a8f08b18f6e7cb9b64d1 | cd61c0347a06ba7611ce13b22198cbfcb7fcdcd7 | refs/heads/master | 2023-05-10T23:30:14.758199 | 2019-05-21T05:07:47 | 2019-05-21T05:08:21 | 149,336,500 | 1 | 1 | null | 2023-04-27T02:11:00 | 2018-09-18T18:45:19 | Jupyter Notebook | UTF-8 | Python | false | false | 10,224 | py | # -*- coding: utf-8 -*-
"""
Created by AMRIT MADHAV
"""
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from mlxtend.preprocessing import TransactionEncoder
from mlxtend.frequent_patterns import apriori
from mlxtend.frequent_patterns import association_rules
############## NOTE ################... | [
"amrit.madhav@gmail.com"
] | amrit.madhav@gmail.com |
35d019e3249a86d0df1c12a80792eef97f50e263 | 0755e000e1edb429e126fa1bef31ccf27909e3d2 | /api/verify.py | c183089395943237dc305967056096a337b1a6cc | [] | no_license | yantianpi/python | 6fefda6708f0d11f48ccf92c1523b2764245b864 | 32d0d4ef9722b541ae382f6fe7160c9ea86f00d5 | refs/heads/master | 2021-05-05T19:21:15.988396 | 2021-02-19T02:44:26 | 2021-02-19T02:44:26 | 117,773,014 | 0 | 0 | null | 2021-02-19T02:44:26 | 2018-01-17T02:39:59 | null | UTF-8 | Python | false | false | 769 | py | #!/usr/bin/python
#coding: utf-8
from io import BytesIO
from bottle import get, response
from common import verifyHelper, logHelper, webHelper
@get('/api/verify/')
def get_verify():
"""生成验证码图片"""
try:
# 获取生成验证码图片与验证码
code_img, verify_code = verifyHelper.create_verify_code()
# 将字符串转化成大... | [
"1262233230@qq.com"
] | 1262233230@qq.com |
11b72151c01e2ace37618bba086f8d5cd5fcb7f3 | 4f5c8e6b12c5182b017fcd50ad665be0f6711b5f | /ControlsStatement/venv/bin/easy_install | 93fe0d7464102716501cc03fcb69dd0d4aa12bd4 | [] | no_license | samishken/Python-basics | 6341ebcae815ff29a92490b70a68792e60a53935 | 5220e82bd9574e6625105e7d0e610be567a3966a | refs/heads/master | 2020-08-24T23:42:05.939957 | 2020-03-07T20:58:06 | 2020-03-07T20:58:06 | 216,928,565 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | #!/Users/samishken/PycharmProjects/ControlsStatement/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw... | [
"samishken@gmail.com"
] | samishken@gmail.com | |
a302f424a31b6195f50f8f1ea8f2193b139e1000 | 397d281bdf73a21ec7fef04eec8cba1d6150a0ee | /utils/Checkpointmanager.py | 07be349ca6e4940014cc8856dc32f71bf18321c2 | [] | no_license | kaeflint/MLMHA | d3459655dcdd7377a6399009f1f30ff11973f33b | 3986ad13db04ecfc74ddbac632fe89c7a9f23549 | refs/heads/master | 2022-12-05T17:02:47.190016 | 2020-08-20T01:58:41 | 2020-08-20T01:58:41 | 288,870,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,916 | py | """Checkpoint utilities."""
import copy
import os
import six
import tensorflow as tf
import misc
import numpy as np
class Checkpoint(object):
"""Wrapper around TensorFlow checkpoints utilities."""
def __init__(self, model, optimizer=None, model_dir=None, keep_checkpoint_max=8):
"""Initializes the wrapper.
... | [
"noreply@github.com"
] | kaeflint.noreply@github.com |
d5cdda86513e8cfbd4293697eeadba2cd333e60e | bc50dc8f25f1387eb9e676c2e8bba887477a96be | /core/sso_provider/migrations/0001_initial.py | d10e7b386a0f34088bd2f6f949d631159d3e1933 | [] | no_license | priyanka-panaganti/UIDAI_Hackathon | b417b13495ac85113c07dd9681b321bfa08e5837 | 1fc7db145d4805d4c265c1fbfa22665161c5d365 | refs/heads/master | 2023-09-02T21:58:38.105732 | 2021-11-02T15:20:23 | 2021-11-02T15:20:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 872 | py | # Generated by Django 3.2.8 on 2021-10-29 22:07
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('domain_user', '0003_auto_20211030_0337'),
]
operations = [
migrations.CreateModel(
... | [
"rajarshighoshdastidar@gmail.com"
] | rajarshighoshdastidar@gmail.com |
2a68a5ba29718b61fc2e53486891a3f1d861179d | 3a39e879fb2901207afcfc238b169ddefa104055 | /Chapter05/Docs/headercontract/headercontract/settings.py | 88caffbe94df2a4de120cbbaece0608c79c3236a | [] | no_license | Synapses/Web_Scraping_with_Python | cb32ddd468250b9f11ad16d3576d0920693e708c | 3bb8cd47d0e1e182bb8ee800d32e24f45bf13ab0 | refs/heads/master | 2023-03-15T09:19:02.754593 | 2020-06-16T02:17:11 | 2020-06-16T02:17:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,160 | py | # -*- coding: utf-8 -*-
# Scrapy settings for headercontract project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.org/en/lates... | [
"philip.dongfei@gmail.com"
] | philip.dongfei@gmail.com |
6d5bba423575112ef18b3583ffa246e78b39290b | 6f8b9e95b2833de2a4f2c8413fe45133e540a5cf | /Sequences/flowers_shrubs.py | 48960694b39433bc7bcc0dded584c5e490a01650 | [] | no_license | riteshelias/UMC | a658665d8653ef1ba72d65030b38da7462783ae7 | e30d42192290905b0a878b66f7634500868b174d | refs/heads/master | 2023-01-20T19:32:51.885534 | 2020-11-27T04:10:22 | 2020-11-27T04:10:22 | 316,398,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | data = [
"Andromeda - Shrub",
"Bellflower - Flower",
"China Pink - Flower",
"Daffodil - Flower",
"Evening Primrose - Flower",
"French Marigold - Flower",
"Hydrangea - Shrub",
"Iris - Flower",
"Japanese Camellia - Shrub",
"Lavender - Shrub",
"Lilac- Shrub",
"Magnolia - Shr... | [
"ritesh.elias@gmail.com"
] | ritesh.elias@gmail.com |
416da6033bb277c7b267491864d9f58b12fc5003 | fa560c0b3b0d9be80c2cff969c0573d0bdce06f7 | /randomforest_project_work.py | 229146626d641c1919dcc10104397986f3d4992f | [] | no_license | whihive/Whyhive | 1f7e0ed3fe2ddc03a51caafa863f67d363ec091e | 60543b4d5e3d045582d3af3535637db21d8c1923 | refs/heads/master | 2022-12-19T05:46:38.273013 | 2020-09-22T06:52:23 | 2020-09-22T06:52:23 | 297,554,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,935 | py | # -*- coding: utf-8 -*-
"""Randomforest_Project_work.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1DLQ4uOl8CTnHBWPrSGEDtdizCkIKRGpe
"""
from google.colab import drive
drive.mount('/content/drive')
!pip install librosa
import librosa
from lib... | [
"noreply@github.com"
] | whihive.noreply@github.com |
0648935405d4af14f7b7ef65e46a5bd0d7c53a14 | c3ac95d190e2b5898ff3650d241727c4bd901303 | /sensible_data_platform/oauth2_authorization_server/account.py | 37cf6c2f7cdfaf2d304135705f366a6efbe5d8ef | [
"MIT"
] | permissive | MIT-Model-Open-Data-and-Identity-System/SensibleData-Platform | 59bfbecc9f510b0bc7c6bf2f851f61ba1b65ecfc | ecbd2d2fe5a8e3e11b7dbaa225c9c54bacbbd9cd | refs/heads/master | 2021-01-02T09:26:37.787626 | 2014-12-02T13:49:32 | 2014-12-02T13:49:32 | 9,704,910 | 0 | 1 | null | 2013-07-15T09:16:06 | 2013-04-26T21:44:56 | JavaScript | UTF-8 | Python | false | false | 2,017 | py | #-*- coding: utf-8 -*-
from django.http import HttpResponseRedirect
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.contrib import auth
from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import User
from oauth2app.models im... | [
"arekquest@gmail.com"
] | arekquest@gmail.com |
5e274763fc149adf5f710589eecc917cefb1ad85 | 1c874eea06ec7f4e6e8b9ae8e2befbb4e75a6d2a | /src/services/user.py | 9cd8b73af57e91fb7884e797519074db48edba26 | [] | no_license | Zahidsqldba07/flask-skeleton | 4d14024ab49a9fcdce283c286b2f1831db102561 | fad5a249421810e9eda03768dc5f33b6485775f5 | refs/heads/master | 2023-03-21T08:45:59.007528 | 2018-09-28T20:57:24 | 2018-09-28T20:57:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 482 | py | from app import mongo
from flask import current_app
class UserService:
def __init__(self):
pass
@staticmethod
def add_user(user_to_be_added: dict):
collection = mongo.db.users
collection.insert_one(user_to_be_added)
current_app.logger.debug('User with email {} added'.forma... | [
"ardaaslan@Ardas-MacBook-Pro.local"
] | ardaaslan@Ardas-MacBook-Pro.local |
b13d48f55d8914e1cc7ff3bb0d4a48d4657ee4f7 | f684f1fc86e179f4b729cc936d75c3f8f1e2a32e | /python/int_right_triangles.py | 78cda693b463f00440d9ceb560b39a32da198e4c | [] | no_license | nuevoalex/Euler | 9096120d7e4b24fd42f2de9b260db70ae7897a23 | 9b78b9ba5735a2937da2b183570dd4256fd1109a | refs/heads/master | 2016-08-05T08:51:04.514546 | 2013-09-07T18:49:38 | 2013-09-07T18:49:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | def get_sides(p):
sides = [p]
for n in range(p/3, p/2):
for i in range(1, (p-n)/2):
j = p - n - i
if pow(i, 2) + pow(j, 2) == pow(n, 2):
sides += [(i, j, n)]
return sides
max_item = []
for i in range(1000):
sides = get_sides(i)
if len(sides) > len(max_item):
max_item = sides
pri... | [
"achap5dk@gmail.com"
] | achap5dk@gmail.com |
26e8ab9c4c3bad31527986883deb13a25f8efdd7 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/216/usersdata/267/113208/submittedfiles/av2_p3_civil.py | ade1f16d5c34a108d034f19287aa5130054916e2 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | # -*- coding: utf-8 -*-
import numpy as np
n=int(input('Dimensão do tabuleiro: '))
print()
a=np.zeros((n,n))
x=int(input('Número da linha em que a torre se encontra: '))
if x>n:
while x>n:
x=int(input('VALOR INVÁLIDO. Número da linha em que a torre se encontra: '))
print()
y=int(input('Número da coluna em q... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
a29006f687e0dbdd5e57c65c3a316ec523341a2e | 3d3faad879487325d1e75805246f4c63ef6afb3d | /PyTestEmb/gen/ctp/ctp/data/project.py | 79b9f7cfed9c89cc877cd6ca6bc4f4bbd46148bb | [] | no_license | BackupTheBerlios/pytestemb | 03c66d2fa48d4904e59f2eee0baba8fc8958b298 | ab64698987bf78f4d7a3035b6ba30ff75ebf97e6 | refs/heads/master | 2021-03-12T23:27:53.950707 | 2010-04-25T18:10:18 | 2010-04-25T18:10:18 | 39,962,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,646 | py | # -*- coding: UTF-8 -*-
"""
PyTestEmb Project : project manages project aspect : files, scripts, campaign
"""
__author__ = "$Author: octopy $"
__version__ = "$Revision: 1.1 $"
__copyright__ = "Copyright 2009, The PyTestEmb Project"
__license__ = "GPL"
__email__ = "octopy@gmail.com"
import ... | [
"octopy"
] | octopy |
70d3ce5084a2fa43a3b6be67f600e49be9e530fc | 0fccee4c738449f5e0a8f52ea5acabf51db0e910 | /genfragments/EightTeV/ggA_AToZh_hToTauTau_mA350_mh125_cff.py | 98b17ac7ec245eb45fd23f75931e0154e1f69212 | [] | no_license | cms-sw/genproductions | f308ffaf3586c19b29853db40e6d662e937940ff | dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4 | refs/heads/master | 2023-08-30T17:26:02.581596 | 2023-08-29T14:53:43 | 2023-08-29T14:53:43 | 11,424,867 | 69 | 987 | null | 2023-09-14T12:41:28 | 2013-07-15T14:18:33 | Python | UTF-8 | Python | false | false | 13,082 | py | import FWCore.ParameterSet.Config as cms
from Configuration.Generator.PythiaUEZ2starSettings_cfi import *
from GeneratorInterface.ExternalDecays.TauolaSettings_cff import *
generator = cms.EDFilter("Pythia6Ge... | [
"srimanob@mail.cern.ch"
] | srimanob@mail.cern.ch |
b1761ebb3d2a30a0f0fc45062e83e5c7d20d0f93 | f35254b599e251249b460b8edf4303e7009024d4 | /rl/bc_utils/init_tensor.py | b404e044c7d8ad18c4310e3469abb6aa1c58fdc7 | [
"MIT"
] | permissive | bcrafton/icsrl-deep-learning | 7e3a3f970bb8a3331d709d1a841f83bf15e6a39e | e3616982d1dda5f978d61d6591c91cb0da76ab02 | refs/heads/master | 2020-09-14T00:35:47.543984 | 2019-11-22T22:04:33 | 2019-11-22T22:04:33 | 222,955,022 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,101 | py |
import numpy as np
#######################################
def init_matrix(size, init, std=None):
input_size, output_size = size
if init == 'zero':
weights = np.zeros(shape=(input_size, output_size))
elif init == 'sqrt_fan_in':
sqrt_fan_in = np.sqrt(input_size)
weights ... | [
"crafton.b@husky.neu.edu"
] | crafton.b@husky.neu.edu |
0faa05fbd96f63b0e2521447dafc880018c498bb | 5ddc9493f1a5655fe7d4edc5cae526939af52721 | /input-files/diamond_2021/INPUT_Ti64_21alpha_4beta_WindowsOS.py | 497f59ce2fb563672cc668862025a55db5390247 | [
"MIT"
] | permissive | LightForm-group/continuous-peak-fit-analysis | 9f74a148c214b04c3708f5c14084ad9c6d747e2c | ae64031d0638bf5cd08ecb962f97265e1de4f2ef | refs/heads/main | 2023-04-15T04:09:18.500534 | 2023-01-28T13:23:52 | 2023-01-28T13:23:52 | 370,318,107 | 0 | 1 | MIT | 2023-03-23T14:17:36 | 2021-05-24T10:47:42 | Python | UTF-8 | Python | false | false | 14,753 | py | # Input parameters for Ti64
# data drive.
import os
drive = "D:/Chris Daniel/"
# properties of the data files.
datafile_directory = drive + 'continuous-peak-fit-analysis/example-data/Diamond_2021'
datafile_Basename = "103817_summed_"
datafile_Ending = ".tiff"
datafile_StartNum = 1
datafile_EndNum = 1
datafil... | [
"christopher.daniel@manchester.ac.uk"
] | christopher.daniel@manchester.ac.uk |
c68bd11c4b8b0aba0a3f137b9ef1198c3b624c99 | 7ec7bfc7b6aa7f9d8ed4384c8afbea868844f7c7 | /spider/tutorial/tutorial/spiders/random_ua.py | 8c0777a142b65d850dfbc1302c73485aad5fffb7 | [] | no_license | ginping/notebook | 281eaee19224df2217a772c61fcfe76d56eedaea | 4decb420ba01f1602fae66d987e96f4c950e7e81 | refs/heads/master | 2023-06-16T16:58:06.440575 | 2023-06-06T08:15:35 | 2023-06-06T08:15:35 | 130,879,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | # 设置随机ua
import scrapy
class RandomUaSpider(scrapy.Spider):
name = 'random_ua'
def __init__(self):
self.test_url = 'http://httpbin.org/get'
def start_requests(self):
yield scrapy.Request(self.test_url, callback=self.parse)
def parse(self, response):
print('\n')
print... | [
"pyphinnove@163.com"
] | pyphinnove@163.com |
d18d566858011ece3ccc89dce925a0a7d1b87b83 | 4f394592f56b38e3fb1b971b2a10391ca86f4533 | /scripts/Migrate.py | a7f3ffd1af3a6292283a6c710d2c4480f3316f22 | [] | no_license | JKOK005/analytics-ilmuone | aa605868af3d5d9c5dc2b412a88093406ad7a806 | 96c541d68246a38ac7ee1678b6b162fadb727141 | refs/heads/master | 2021-06-25T19:42:33.547603 | 2017-08-18T08:09:23 | 2017-08-18T08:09:23 | 100,269,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,091 | py | import os
from Excel import Excel
from ParseExcel import ExcelParser
from GenEnvironDb import DbConnector
if __name__ == "__main__":
parser = ExcelParser(os.path.join("..", "data"))
with DbConnector("environ", "ilumone", "ilumone") as db:
# Migrate countries data
try:
excel = Excel().setFileName("environ.... | [
"JKOK005@e.ntu.edu.sg"
] | JKOK005@e.ntu.edu.sg |
c9a011ac90f47512916c2505cbcced732885ac58 | ad674efd62b401f8973ee726730abf012d673ba7 | /utils/dict_utils.py | b69a4c81eeb6169c367042d79bcf80d536cbde40 | [
"MIT"
] | permissive | Jakob-Unfried/msc-legacy | 684c4d6e9aee30a4652979d3edcf16a4344cefec | 2c41f3f714936c25dd534bd66da802c26176fcfa | refs/heads/master | 2022-12-25T09:03:54.827223 | 2020-10-07T16:39:49 | 2020-10-07T16:39:49 | 298,071,954 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | from typing import Optional
def parse_options(dict_in: Optional[dict], defaults: Optional[dict] = None):
"""
Utility function to be used for e.g. kwargs
1) creates a copy of dict_in, such that it is safe to change its entries
2) converts None to an empty dictionary (this is useful, since empty diction... | [
"jakob.unfried@tum.de"
] | jakob.unfried@tum.de |
57c5676a580598ffbee1c132a6c7393845e52e5b | 08bb6d7c4f0786ec2e88eaa1b03be080e7833da1 | /ledbar.py | c30dcbf39e75e32442d97c11b51f08d1f874410c | [] | no_license | stynoo/linkerpy | 73304225ade980da1bbeb83b6fa0a1698bea4e61 | 7b2ee2b33806df70b3da98baa69868275541b8b4 | refs/heads/master | 2021-11-22T20:46:51.343199 | 2021-11-07T15:37:59 | 2021-11-07T15:37:59 | 53,617,333 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,187 | py | #!/usr/bin/env python3
# This script is part of the linkerpy collection (https://github.com/stynoo/linkerpy)
# It is tested on Linksprite's LED Bar Module and is driving the MY9221 chip via RPi.GPIO
# External module imports
import RPi.GPIO as GPIO
import time
import array
from random import randint
# Pin Definiton... | [
"stijn.lenaerts@gmail.com"
] | stijn.lenaerts@gmail.com |
5d321ce754710cd04b410ced6f2777fd7f3dcbf1 | d3a5091a343933fc350e2593d708fc30d0f428a2 | /python/demo/mysql/Fund/FundBriefInfo.py | 60b4ac94e3f810e2c93ce1e4b0e9ebfe9fbacd61 | [] | no_license | BoboBH/Demo | f1779162ca550b0734fe1f54aeecde3242eaf562 | fef0d3ff2a257d5cff0141092628cd208c483cc6 | refs/heads/master | 2022-12-20T10:44:20.311566 | 2020-03-09T09:42:32 | 2020-03-09T09:42:32 | 99,057,184 | 0 | 1 | null | 2022-12-16T00:39:18 | 2017-08-02T01:10:09 | C# | UTF-8 | Python | false | false | 1,263 | py | import sys;
from sqlalchemy import create_engine,Column,String;
from sqlalchemy.orm import sessionmaker;
from sqlalchemy.ext.declarative import declarative_base;
Base = declarative_base();
class FundBriefInfo(Base):
__tablename__="fund_brief_info";
fundId = Column(String(10),primary_key=True);
symbol = Colu... | [
"bobo.huang@reorientgroup.com"
] | bobo.huang@reorientgroup.com |
7021c83dddfb299192a612c9485a5da399038394 | da5104b5b8834ee7d8aa57a20d457cdbba98b67c | /notebooks/dev_notebook.py | 7efb537ddce27a4cd14c8b1429da72f29c2fec6f | [] | no_license | joshkreud/telegram_analyze_chat | 78990276141f43c38862bf63cd8d35b13819a934 | ddf4ca08e7341340f6c9526705448dd490fb502a | refs/heads/master | 2023-02-16T17:14:12.258569 | 2021-01-19T13:56:56 | 2021-01-19T13:56:56 | 322,836,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,487 | py | # ---
# jupyter:
# jupytext:
# formats: ipynb,py:percent
# text_representation:
# extension: .py
# format_name: percent
# format_version: '1.3'
# jupytext_version: 1.9.1
# kernelspec:
# display_name: Python 3
# language: python
# name: python3
# ---
# %%
# %load_ext auto... | [
"Joshua_Kreuder@outlook.de"
] | Joshua_Kreuder@outlook.de |
117177eec7adb6784bcfd1680f64b7b4df9de745 | a7e5c90bf8c92b1f10f7c1aa739bc9f3ee594a2f | /seq2seq_model/inference.py | ce347221a30683792b2da96d4d6d3607226a48a2 | [] | no_license | sunhwan-lee/rnn_intent_slot | 7f98d9bf009493994c18ffe98c89f71bbb8a2bc4 | a7edc49c95c8b91937685d98a75b8dd9fe98530a | refs/heads/master | 2020-04-22T07:06:17.679239 | 2019-03-15T17:28:51 | 2019-03-15T17:28:51 | 170,201,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,478 | py | # Copyright 2017 Google Inc. 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 a... | [
"sunhwan.lee@gmail.com"
] | sunhwan.lee@gmail.com |
9374e35b4d7b778b28587717c30a08ee000b0986 | 9bf4d08c786de8c1bd2a737aa4d8cdcd7ff02c42 | /utils/miner/textures.py | 6834f110d68e31323e85cff9c7076e3a415c0a5d | [] | no_license | fmartingr/minecraftcodex | 3e7d626b4c70bb80796de7b5714b33311c3c5949 | 94d51dac790a30d16d9cd4198bfd514c2242db2e | refs/heads/master | 2020-04-06T07:13:18.043455 | 2013-09-17T14:13:49 | 2013-09-17T14:13:49 | 12,439,100 | 0 | 0 | null | 2019-03-06T09:04:58 | 2013-08-28T16:41:38 | CSS | UTF-8 | Python | false | false | 2,932 | py | #!/usr/bin/env python
# General libs
from os import listdir, environ
from os.path import isfile, join
from sys import path
import json
from PIL import Image
# Tool libs
import utils
import conf
from objects import GameTexture
utils.title("TEXTURES")
if conf.SAVE:
path.append('../../minecraftcodex')
environ[... | [
"fmartin@bytepix.com"
] | fmartin@bytepix.com |
da6a334a3d8740af57e4827ae0ef2171c7e850b0 | 528d00ddb7e4b9ea4332b2f56e375b2db117083f | /100examples/007一年的第几天.py | c5f9d47318df477a83ba4e826ee1026089987d40 | [] | no_license | starman1992/100-examples | 9a385d84c97453066b76192512d31451ecd4fd6d | e24a255a22158271ab0bbd6918497e1428f6a967 | refs/heads/master | 2020-07-29T07:00:15.840031 | 2019-09-20T04:59:17 | 2019-09-20T04:59:17 | 209,707,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | ##def isLeapYear(y):
## return (y%400==0 or (y%4==0 and y%100!=0))
##DofM=[0,31,28,31,30,31,30,31,31,30,31,30]
##res=0
##year=int(input('Year:'))
##month=int(input('Month:'))
##day=int(input('day:'))
##if isLeapYear(year):
## DofM[2]+=1
##for i in range(month):
## res+=DofM[i]
##print(res+day)
import datetim... | [
"noreply@github.com"
] | starman1992.noreply@github.com |
7e1fa4523b5fdefe795f17c9d34f9c193eec062f | 12967293f285decb1568bd56af38b1df4e5c533d | /.eggs/botocore-1.10.9-py2.7.egg/botocore/__init__.py | 71839036f4abf9dc262ff861a79879d59ff94b71 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | martbhell/git-bigstore | 36cd16276379833fbade252a77c73cf3644aa30f | 960e9ea64d4d5646af3ce411adf46f3236b64d7e | refs/heads/master | 2020-05-16T17:51:52.011171 | 2019-03-12T20:54:42 | 2019-03-12T20:54:42 | 183,206,409 | 0 | 0 | Apache-2.0 | 2019-04-24T10:29:48 | 2019-04-24T10:29:47 | null | UTF-8 | Python | false | false | 3,884 | py | # Copyright (c) 2012-2013 Mitch Garnaat http://garnaat.org/
# Copyright 2012-2014 Amazon.com, Inc. or its affiliates. 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. A copy of
# the License is located at
#
# http... | [
"dan@lionheartsw.com"
] | dan@lionheartsw.com |
52d628b664d74f0341fa42f4e9bb6df396df180a | 712d4834fec99f6687f80ee37c077f1dc230a776 | /Autores/apps.py | 068957b27314bebc7430e64b33eec48b90e83b72 | [] | no_license | csandrade16/BlogSiteMudi | 5461b530db34305b844689dcad65ffa3938db27f | 1766a2ebe0485f55eea285a3425c37fa1d62dfc1 | refs/heads/main | 2023-06-17T02:29:22.834673 | 2021-07-08T18:59:22 | 2021-07-08T18:59:22 | 383,924,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | from django.apps import AppConfig
class AutoresConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'Autores'
| [
"camilasjc16#hotmail.com"
] | camilasjc16#hotmail.com |
2565031e722efb4e4fd221b8d078e83706c2fe28 | 8655910b96e8338ba4246ae815b55fd7907533ae | /evolutionary/core/es-single-threaded.py | e74f79db991074979ee960c3343d4290d466e3e6 | [
"MIT"
] | permissive | Shi-YiWei/minesweeper_solver | 82b2dfea9755a2d39873434d45caac3066bcfce9 | 5eaba3f3242f08cbbb69db56e7fde4d2cd104aec | refs/heads/master | 2022-06-06T22:27:47.039926 | 2018-01-09T19:17:39 | 2018-01-09T19:17:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,461 | py | import multiprocessing as mp
import time
import gym
import IPython
import numpy as np
from joblib import Parallel, delayed
from keras.layers import Dense
from keras.models import Input, Model, Sequential, clone_model
from keras.optimizers import Adam
import argparse
import matplotlib.pyplot as plt
def fitness_rank_tr... | [
"jakob.havtorn@gmail.com"
] | jakob.havtorn@gmail.com |
5c8c5c1e72a180707f70385a6a4706bdd975abda | b4669a9815f3ce7c909f7fac6c06c3112e62c66a | /assignment_1/camera.py | f8147d83a60cd5ffa7be746daf2e672f37f359f7 | [] | no_license | AnirudhaRamesh/Summer-At-RRC | 04deec5cee37c0f135c4ee7df212f980da4a578b | 627c330538b0c1d453de1087127835cff5affe2b | refs/heads/master | 2020-05-25T23:57:41.353831 | 2019-05-30T13:27:14 | 2019-05-30T13:27:14 | 188,044,477 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,663 | py | from matplotlib import pyplot as plt
from mpl_toolkits.mplot3d.art3d import Poly3DCollection, Line3DCollection
import numpy as np
from math import sin, cos, radians
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
# fill alpha, beta, gamma, i here
alpha = radians(0)
beta = radians(45)
gamma = radians(45... | [
"anirudha.ramesh@students.iit.ac.in"
] | anirudha.ramesh@students.iit.ac.in |
7250f4025a39bd31acdb200a776fee3aded27c4f | 929dd2e8e020c1ee6f67b8fd4079b9d59b8ec82f | /python3/135.分发糖果.py | 78493995d065365259f93eb99e317da9aaa2e5db | [] | no_license | gfy0921/leetcode | 8fc66cf3f2be1ce23409ca434bdc5101b3dc02ce | dec348ab857804443caa7517aa04307433650acd | refs/heads/master | 2020-05-03T03:31:09.758464 | 2019-05-15T12:20:48 | 2019-05-15T12:20:48 | 178,400,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,581 | py | #
# @lc app=leetcode.cn id=135 lang=python3
#
# [135] 分发糖果
#
# https://leetcode-cn.com/problems/candy/description/
#
# algorithms
# Hard (39.26%)
# Likes: 64
# Dislikes: 0
# Total Accepted: 3.2K
# Total Submissions: 8.1K
# Testcase Example: '[1,0,2]'
#
# 老师想给孩子们分发糖果,有 N 个孩子站成了一条直线,老师会根据每个孩子的表现,预先给他们评分。
#
# 你需要按... | [
"gfy0921@gmail.com"
] | gfy0921@gmail.com |
a2a755000305bbc650cf8a385d5cf23df11b80c4 | acaaa97a600296354a863c622bb3516a804aa008 | /Fst_Pro/wsgi.py | bd5d42c330e28057ca2fdf558efd324b9b7256e5 | [] | no_license | Farukh-Basle/Django-REST-1 | 340ce47841808123bfa654c7b2752a9ed3bda534 | a1a582300bfc2079c9faa4c0f43fbdf980f8423a | refs/heads/master | 2023-08-05T02:58:55.309267 | 2021-09-13T08:02:17 | 2021-09-13T08:02:17 | 405,880,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
WSGI config for Fst_Pro 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.setdefault('DJANGO_SETTI... | [
"farukhbasle@gmail.com"
] | farukhbasle@gmail.com |
95ef6c14c7253d795fd4ab28bda443795c6aa2ba | 50b1ec2a556e39bdee9ed28eb15e093313cce6fe | /users/migrations/0007_users_job.py | 0d207ef833e4b946998bfa40bae3ccc9b347388e | [] | no_license | fahadmahfoth/herfaDjangoApi | 3f5cc3842d82e39518cf1f7a8cf8233912255e79 | a78919d3c3abb83ceda15bdddf6cd7e4f46b6e9b | refs/heads/master | 2021-02-19T15:56:15.041392 | 2020-03-06T02:51:46 | 2020-03-06T02:51:46 | 245,315,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | # Generated by Django 3.0.3 on 2020-02-29 00:09
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('users', '0006_remove_users_job'),
]
operations = [
migrations.AddField(
model_name='users',
... | [
"fmahfoth@gmail.com"
] | fmahfoth@gmail.com |
39e024be604b0868bb12bf629f9f5845a41e7167 | a22bf7d13f80f6a200d774184f35a3732d2c37b0 | /x-8/x-8.py | be5b4e852d9611143466ae76b14fc9aaaac669d4 | [
"Apache-2.0"
] | permissive | 0000sir/opencv-graphic-experiments | c1841a630b49c96afc7593e95816071262e733bd | 5fbd4fb6a73f97c139d1ce012908651033445230 | refs/heads/master | 2020-07-02T14:17:47.818170 | 2017-06-21T23:01:05 | 2017-06-21T23:01:05 | 74,303,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | import cv2
import numpy as np
import random
img = cv2.imread('../road.jpg') # As default, cv reads image as BGR colors
#img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB) # convert to RGB colors
cv2.imshow('img', img)
height, width = img.shape[:2]
img0 = np.zeros((height, width, 3), np.uint8)
for i in range(0, 300):
x = ... | [
"fenglu@nacta.edu.cn"
] | fenglu@nacta.edu.cn |
9d077b206add1d0b332089d9e49a0b4944b8dd09 | e05f8d36c70336a8714cc260c02fe85ecee2e62e | /subject/api/glare/versions.py | fe4ada2edb37be074931d0afc9cbe7347e0b0dee | [
"Apache-2.0"
] | permissive | laoyigrace/subject | eafa442b5d9ebf83c78a01ce3bb5d088d08d620d | e6ed989fdc250917a19788112b22322b73b3550f | refs/heads/master | 2021-01-11T00:06:54.790751 | 2016-10-24T02:13:32 | 2016-10-24T02:13:32 | 70,754,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,125 | py | # Copyright 2012 OpenStack Foundation.
# 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 req... | [
"yibo_grace@163.com"
] | yibo_grace@163.com |
30a1ef5f63100f6abb93a00d2758920b8f1f5156 | 1fd804ca528ca6a2e3002a8076482f69647fa6c1 | /ResNet_GAN/common/score/score.py | 7a76971935496deef6f30f98eeb5c02e30d65ffb | [
"MIT"
] | permissive | ReyhaneAskari/Least_action_dynamics_minmax | 77c1b18061b76e5aa10cdc3acb3229d6d0543d16 | 218083150a8eb74201958b9c65bd70020d98cb61 | refs/heads/main | 2023-07-06T20:13:43.054285 | 2023-06-28T15:16:34 | 2023-06-28T15:16:34 | 306,358,469 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,978 | py | import numpy as np
import torch
from tqdm import trange
from .inception import InceptionV3
from .fid_score import calculate_frechet_distance
def get_inception_and_fid_score(images, device, fid_cache, is_splits=10,
batch_size=50, verbose=False):
block_idx1 = InceptionV3.BLOCK_INDEX... | [
"reyhaneaskari@fb.com"
] | reyhaneaskari@fb.com |
09a7a54d496c0578ba1265cb6d5044289be45769 | 98e1342f88fe1ed3249318ff6336953d7de7c4aa | /main.py | ad578dc49cba8fa359ca8565c29aef5bdb13fd04 | [] | no_license | jarhill0/TrackTimeBot | 862cb9a0d2d9a04afeb1ec78bb9723873f69b920 | 1029467ef8e1a7bdfdbf3638e8d511906b3d07cb | refs/heads/master | 2021-05-08T11:53:36.654630 | 2018-06-13T06:12:05 | 2018-06-13T06:12:05 | 119,914,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,973 | py | import json
import os
from datetime import datetime, timedelta
from sys import argv
import pawt
from secrets import TOKEN
FOLDER_PATH = os.path.dirname(os.path.abspath(__file__))
HOURS = ('12 am', '1 am', '2 am', '3 am', '4 am', '5 am', '6 am', '7 am', '8 am', '9 am', '10 am', '11 am',
'12 pm', '1 pm', '2 p... | [
"jarhill0@users.noreply.github.com"
] | jarhill0@users.noreply.github.com |
6145cd5e87a549a0d9c20a7fc5b8a4552157ce2c | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-5513.py | a600187ac21cb207ac946ca0a65c2d0966855a06 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,756 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
85fc7c68b00d32fb9451a60c6a425dff4fc1922b | 3b952d599b8b33be24aac0748f780fbb1a8cd544 | /backtobasics/backtobasics/wsgi.py | dee4a17d9536ef8f336ff6f450fbcf51c176a649 | [] | no_license | sammienjihia/bacttobasics | 4752f8241947045d05c23779e90732be09f5d0ab | f01671eb7b8b7621e1809f8cebd5bc71b9ebb0b3 | refs/heads/master | 2021-01-17T12:07:02.253589 | 2015-02-08T21:06:51 | 2015-02-08T21:06:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for backtobasics 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/dev/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "backtobasics.settings")
from dja... | [
"ikosenn@gmail.com"
] | ikosenn@gmail.com |
00532dae7b4c4fa06a06c74ed785982f0cab5288 | fce10c5be413572c3e012fb6b5d1b43aeda1a290 | /train_contrastiveLoss.py | db5494db1e76e597713822af307707d3caedc604 | [
"MIT"
] | permissive | chenchy/SoundCLR | 82d8aca926091b473b851878c25962ea5cf0e9f8 | 16b394bc8a64a0b8d671f00e1928f80141ebcf4f | refs/heads/main | 2023-03-14T20:05:07.827967 | 2021-02-22T21:05:51 | 2021-02-22T21:05:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,577 | py | import torch
import torch.nn as nn
import numpy as np
import os
import shutil
import datetime
import sys
import torch.nn.functional as F
import torchvision
import model_classifier
import model_projection
from utils import EarlyStopping, WarmUpExponentialLR
import config
import loss
if config.ESC_10:
import d... | [
"noreply@github.com"
] | chenchy.noreply@github.com |
3b302230555178d23861e3123bcf740bc3a7420e | fa7d56df0d8819fb0a6aa8fccae2e552459122e8 | /userApp/forms.py | 92efeb3d28a903fa3feca00c04e8fe6ffedb42bd | [] | no_license | yelangweiwei/blogApp | 356aca72159db1ee9aff64e47b3dc0995f5f0325 | d1afa6de7260597975074aea604878a0a68e0278 | refs/heads/master | 2021-06-19T16:47:10.286136 | 2021-02-26T07:48:20 | 2021-02-26T07:48:20 | 176,499,102 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
class RegisterForm(UserCreationForm):
class Meta(UserCreationForm.Meta):
model = User
fields = ("username",)
| [
"528150249@qq.com"
] | 528150249@qq.com |
322951d9f47a39096e7af230e0c29bef48c9e76d | 4feaf725435f5add99b80cace4759bf95467179c | /tests/test_nuvox_algorithm/test_core/test_key.py | 97f8db0d88e1323c8a9443ccd3b653db2d928987 | [] | no_license | lukasmyth96/nuvox-mobile-backend | c6a02f03f47f00e5ba614d6398dba9f5ac7bbd9f | 8b8d2ed98b1b6e360d6d7802ba4dae3c89fd2cff | refs/heads/main | 2023-03-22T22:45:46.935988 | 2021-03-13T14:21:06 | 2021-03-13T14:21:06 | 345,343,534 | 0 | 0 | null | 2021-03-13T14:21:08 | 2021-03-07T12:41:10 | Python | UTF-8 | Python | false | false | 1,522 | py | import copy
import re
import pytest
from nuvox_algorithm.core import Key
def test_key_init_fails_if_coordinates_invalid(key_1: Key):
"""Test that AssertionError is raised if any
key coordinates are not in range (0, 1)."""
valid_key_dict = key_1.__dict__
for key in ('x0', 'y0', 'x1', 'y1'):
f... | [
"luka@nate.tech"
] | luka@nate.tech |
7cb340dcc964a7393ee90ccb58547d832899668f | c9eddcc8ae129d52ac08e59039a349827d78ac39 | /doc/examples/icatexport.py | fe77037fe58aaba97f51505fed77bc2ca9f69d5a | [
"Apache-2.0"
] | permissive | ahmad-tarbeya/python-icat | 48335cedc256992e811f903616a593aadb45f194 | a54f76551c74eacddffe19f8f217e81cf221d551 | refs/heads/master | 2021-01-20T06:43:09.083208 | 2017-04-25T13:42:46 | 2017-04-25T13:43:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,017 | py | #! /usr/bin/python
#
# Export the content of the ICAT to a file or to stdout.
#
# Use the export feature from ICAT server: make the appropriate call
# to the ICAT RESTful interface to get the ICAT content and store the
# result to a file. Try to keep the command line interface as close
# as possible to the one from ic... | [
"rolf.krahl@helmholtz-berlin.de"
] | rolf.krahl@helmholtz-berlin.de |
b06b2669af3d41d7eaa26eb0bf5ac34c621b2ee7 | 37d241ec30c6eb61f7ddae2825e31a29a177377a | /five2/user/forms.py | b32ab02f0ee3f6e28ee16a094e4dd89ff44d4594 | [] | no_license | infinity4747/my-shop | 99c2162494af6341aa21b1caab34276f711dfb92 | dbdc5b7fcdb11bc423f680504f51d5c25d8f1954 | refs/heads/master | 2022-11-09T14:50:14.775143 | 2020-06-21T09:36:26 | 2020-06-21T09:36:26 | 273,872,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | from django import forms
from .models import User
class CreateUserForm(forms.Form):
class Meta:
model = User
fields = ['first_name', 'last_name',] | [
"infinity2462@gmail.com"
] | infinity2462@gmail.com |
96edee45c917fc72fc7f7a6fc44f4175823afe40 | 03b3aba0ed262ec0eee26342405769fbcf001717 | /data_generation/sen-gen.py | 0b6091c15a0181528b34f597847f3f6bc67615e4 | [] | no_license | tommccoy1/subj_aux | d5b8fd0c78bb6a0235a5cd9cdcbcdd4c048a7f42 | 6944e2439b402c13adb2d18ef6e634fba419e0ef | refs/heads/master | 2020-04-20T22:51:30.008468 | 2019-03-15T20:04:53 | 2019-03-15T20:04:53 | 169,153,074 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,885 | py | #!/usr/bin/env/python
"""
Homework1 for CS 665
"""
import argparse
import os
import pprint
from collections import defaultdict, Counter
import os.path
import numpy as np
__authors__ = ['Dhananjay Singh <dsingh38@jhu.edu>', 'Kandarp Khandwala <kandarp.k@jhu,edu>',
'Tom Mccoy <tom.mccoy@jhu.edu>']
'''... | [
"noreply@github.com"
] | tommccoy1.noreply@github.com |
9e608dacc9d3ebb72707e372da7d75d249da71d7 | 6ac0bba8c1851e71529269c0d9d89a7c8fa507f2 | /Hard/757.py | 918d72e4e0133cbd93a4a645050b10ebca46e45d | [] | no_license | Hellofafar/Leetcode | e81dc85689cd6f9e6e9756beba070cb11e7b192e | 7a459e9742958e63be8886874904e5ab2489411a | refs/heads/master | 2021-05-16T07:07:19.823953 | 2020-02-17T03:00:09 | 2020-02-17T03:00:09 | 103,690,780 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,856 | py | # ------------------------------
# 757. Set Intersection Size At Least Two
#
# Description:
# An integer interval [a, b] (for integers a < b) is a set of all consecutive integers from a to
# b, including a and b.
#
# Find the minimum size of a set S such that for every integer interval A in intervals, the
# interse... | [
"buptljf@gmail.com"
] | buptljf@gmail.com |
ba9eee7c6f143191301ed10fb7595ebc1a4df849 | 3a0e9f4994f16c556524f86e4bdb1f0d7549e8f3 | /handlers/start.py | d3e2573e91fa75648f6a39646e72a65b06255564 | [] | no_license | mab2233/mab8 | 7d6bd69f60517aa105627bccd8c43d630d6661cf | 3559dacb5839b56e4f567f4353bf105ade06c7ed | refs/heads/main | 2023-08-05T03:59:20.464552 | 2021-10-01T17:34:17 | 2021-10-01T17:34:17 | 412,550,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,224 | py | #ماب
from time import time
from datetime import datetime
from config import BOT_USERNAME, BOT_NAME, ASSISTANT_NAME, OWNER_NAME, UPDATES_CHANNEL, GROUP_SUPPORT
from helpers.filters import command
from pyrogram import Client, filters
from pyrogram.types import Message, InlineKeyboardMarkup, InlineKeyboardButton
fr... | [
"noreply@github.com"
] | mab2233.noreply@github.com |
fc55aa9acf06aba5562b4ef3ac124136d7ad9207 | 8c07b4bbffac461f3dbdca5102736dded30b073a | /Problem Solving/Algorithms/Implementation/66_matrix_layer_rotation.py | 1987ae2895a6b57663a705210ed810d0ea9a92e4 | [] | no_license | yang4978/Hackerrank_for_Python | c3c36c4d68daadbf694a387abb6f32b7172604a1 | 86db5b6b59d090fccccbe51389c5282217549569 | refs/heads/master | 2020-05-09T20:06:45.181158 | 2019-08-11T15:15:51 | 2019-08-11T15:15:51 | 181,394,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,407 | py | #https://www.hackerrank.com/challenges/matrix-rotation-algo/problem
#!/bin/python3
import math
import os
import random
import re
import sys
# Complete the matrixRotation function below.
def matrixRotation(matrix, r):
#dict_matrix = {}
rows = len(matrix)
columns = len(matrix[0])
for layer in range(min... | [
"noreply@github.com"
] | yang4978.noreply@github.com |
f327393c5980555a21b98fa8628bbd2bf6d28106 | ac295c6a9ac86140bd5b677e2b6a31b0c7326dd7 | /DCP472.py | 95b70b0000053703879a2e5d83ce49b48cbdcc3f | [] | no_license | christiangalleisky/DailyCodingProblems461-500 | 1f3e83ddca47c84eb7acc30b7a79d8b3322b2391 | da354ac0c8853847a0c44c10f0ddcab68d978646 | refs/heads/master | 2022-11-19T22:58:25.215596 | 2020-07-21T12:33:17 | 2020-07-21T12:33:17 | 279,153,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | from collections import defaultdict
def num_encodings(s):
# On lookup, this hashmap returns a default value of 0 if the key doesn't exist
# cache[i] gives us # of ways to encode the substring s[i:]
cache = defaultdict(int)
cache[len(s)] = 1 # Empty string is 1 valid encoding
for i in rever... | [
"noreply@github.com"
] | christiangalleisky.noreply@github.com |
8494b13a4ef36e2d314b32d5727effc37baba5a6 | 60d2c390736f5dce1cd0c9d4249a0ab95bdae802 | /worker/domainiq/setup.py | 5bd72d37039fcdf8af6567236e686aac55c84727 | [
"Apache-2.0"
] | permissive | tsmolka/stoq-plugins-public | d996b0be051ce0bac453af7380e7cbfecc03ff93 | a8d3351fe55fc72891c395d6767188746bf381cf | refs/heads/master | 2020-12-28T22:22:15.077514 | 2016-07-13T17:57:43 | 2016-07-13T17:57:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | from setuptools import setup, find_packages
setup(
name="domainiq",
version="0.1",
author="Marcus LaFerrera (@mlaferrera)",
url="https://github.com/PUNCH-Cyber/stoq-plugins-public",
license="Apache License 2.0",
description="Interact with DomainIQ API",
packages=find_packages(),
include... | [
"marcus@randomhack.org"
] | marcus@randomhack.org |
ca969421b59a36dd4a5ad4c9141f8fa13464ae9b | 0fccee4c738449f5e0a8f52ea5acabf51db0e910 | /genfragments/EightTeV/Wprime/WprimeToWZToJJNuNu_M_700_TuneZ2star_8TeV_pythia6_cff.py | 0e176e3773f5f19c0d7d16c45f1844d7b0a634a9 | [] | no_license | cms-sw/genproductions | f308ffaf3586c19b29853db40e6d662e937940ff | dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4 | refs/heads/master | 2023-08-30T17:26:02.581596 | 2023-08-29T14:53:43 | 2023-08-29T14:53:43 | 11,424,867 | 69 | 987 | null | 2023-09-14T12:41:28 | 2013-07-15T14:18:33 | Python | UTF-8 | Python | false | false | 4,585 | py | ## Wprime to WZ, Z2star tune, Summer12 production
import FWCore.ParameterSet.Config as cms
source = cms.Source("EmptySource")
from Configuration.Generator.PythiaUEZ2starSettings_cfi import *
generator = cms.EDFilter("Pythia6GeneratorFilter",
pythiaHepMCVerbosity = cms.untracked.bool(False),
maxEventsToPrint... | [
"sha1-796b2659f539c78d0b46c6e2488664232960deff@cern.ch"
] | sha1-796b2659f539c78d0b46c6e2488664232960deff@cern.ch |
b6adbf1953d32c3fa7e6b0a259e18040cf09c660 | 82fad7ad4f0772b353804697aa02580acc308d7b | /OCR/lib/im2latex/latex_lmdb_dataset.py | 326b40b27e573b3f692d764960700a27430ce506 | [] | no_license | myw8/myproject | 587f923c8983c179b42725de64632c2c114a4f79 | 25ab083a64218f53c4fb2ad9a68e9f5e0897cb47 | refs/heads/master | 2022-11-24T08:35:39.269528 | 2020-07-28T10:03:59 | 2020-07-28T10:03:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,003 | py | # encoding: utf-8
import cv2
import lmdb
import numpy as np
from torch.utils.data import Dataset
from torchvision import transforms
from torch.utils.data import DataLoader
import six
import torch
import os
from build_vocab import PAD_TOKEN, UNK_TOKEN
'''
https://palikar.github.io/posts/pytorch_dataspl... | [
"hecong@talkweb.com.cn"
] | hecong@talkweb.com.cn |
54f02f527bd8f30b9c10c723a5bbdc15eb90d2dd | 4bdfc1f8b17859a34cb8318ea5f9d65147911141 | /Binary Search/75/75_0121.py | 89ddd34ba714d234facda01a156efe462c0127d6 | [] | no_license | liuhz0926/algorithm_practicing_progress | 4ea0bbd12a4857bb347030421275b44fa92019af | 44f422b75aa296cbb42d968ff843969af7bfa18a | refs/heads/master | 2023-06-06T21:50:33.097716 | 2021-07-01T01:21:24 | 2021-07-01T01:21:24 | 284,587,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | class Solution:
"""
@param A: An integers array.
@return: return any of peek positions.
"""
def findPeak(self, A):
if not A:
return None
start, end = 0, len(A) - 1
while start + 1 < end:
mid = start + (end - start) // 2
if A[mid - 1] < A... | [
"liu.h0926@gmail.com"
] | liu.h0926@gmail.com |
a4b2bab7df025eff30f172bbb71c53cd01860006 | b67b18609069906f3006561ba64bd6ae951af79f | /controllers/authentication/routes.py | 92999957c7a457aff85c69db549bb03b1f57dd62 | [] | no_license | nijatjafarov/PortfolioWebSite | b6d14a103d46c5ad07d175adae857956537a1880 | fa2205cbb1f81613a8bf3d40d8df93bf95047870 | refs/heads/main | 2023-08-10T18:39:56.389366 | 2021-09-21T12:03:09 | 2021-09-21T12:03:09 | 381,439,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,018 | py | from app import app
from flask import redirect, render_template, url_for, make_response, flash
from model import bcrypt
from form import LoginForm
admin_login = {
"adminname" : "nijatjafarov",
"password" : bcrypt.generate_password_hash("helloworldprogrammer")
}
@app.route("/login", methods = ["GET", "POST"])... | [
"nicat.ceferov14@gmail.com"
] | nicat.ceferov14@gmail.com |
be04713f13093972d0a08b9d86546256471dde60 | d1faf8de28ea1e7545490d4fc0cc9f7bac8e8bb3 | /uarm/__init__.py | 0d95b7bb37595b35fb3d29e0b1b05713e3a72775 | [
"Python-2.0",
"BSD-3-Clause"
] | permissive | andySigler/uArm-Python-Wrapper | d30d9da1696681e285a4846fec363612b941ddf8 | f4a0f2d0a7885d262ea6cd212bb6d1e0108cd4c1 | refs/heads/master | 2023-03-06T05:21:11.715672 | 2020-04-25T17:29:22 | 2020-04-25T17:29:22 | 239,332,955 | 2 | 1 | NOASSERTION | 2020-04-24T17:27:29 | 2020-02-09T16:09:23 | Python | UTF-8 | Python | false | false | 156 | py | from .version import __version__, version
from .wrapper import SwiftAPI, SwiftAPIWrapper
from .wrapper import uarm_create, uarm_scan, uarm_scan_and_connect
| [
"andrewsigler1@gmail.com"
] | andrewsigler1@gmail.com |
605ee40f58402b01bae82c9acea118efe1646f80 | bc4ceb84ccbdcc9e71f262f765a2cee4360ad889 | /examples_thonny/USsensortest.py | 736e3d8f6105bebe9b1f5a8c738bd76091f1b4ca | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | scarimp/allan_donkey_car | b0649f479793f93823ed0812fe4fd3c944263211 | 415a5200de1a4124d0cef5e4b9dbbf6b27a1dc14 | refs/heads/master | 2020-04-08T07:38:08.545305 | 2019-04-01T12:29:06 | 2019-04-01T12:29:06 | 159,145,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,309 | py | # Complete project details at https:github.com/scarimp/allan_donkey_car
from machine import Pin, PWM
from time import sleep, ticks_ms, time
import machine
from hcsr04B import HCSR04
import os
import ssd1306A
i2c = machine.I2C(scl=machine.Pin(18), sda=machine.Pin(22))
oled = ssd1306A.SSD1306_I2C(128, 64, i2c, ... | [
"noreply@github.com"
] | scarimp.noreply@github.com |
99ee5ca0b9aa7e4965915ebe6fce53773a76ff5f | ddd35c693194aefb9c009fe6b88c52de7fa7c444 | /Live 10.1.18/VCM600/TrackEQComponent.py | 30a2e48aa972041bdf55f9e3dcde94e17de86be0 | [] | no_license | notelba/midi-remote-scripts | 819372d9c22573877c7912091bd8359fdd42585d | e3ec6846470eed7da8a4d4f78562ed49dc00727b | refs/heads/main | 2022-07-30T00:18:33.296376 | 2020-10-04T00:00:12 | 2020-10-04T00:00:12 | 301,003,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,076 | py | # uncompyle6 version 3.7.4
# Python bytecode 2.7 (62211)
# Decompiled from: Python 3.8.5 (default, Aug 12 2020, 00:00:00)
# [GCC 10.2.1 20200723 (Red Hat 10.2.1-1)]
# Embedded file name: c:\Jenkins\live\output\Live\win_64_static\Release\python-bundle\MIDI Remote Scripts\VCM600\TrackEQComponent.py
# Compiled at: 2020-0... | [
"notelba@example.com"
] | notelba@example.com |
4ab03554a0c9c5590c925a75835836d4e574eaf7 | 693852f91028b72f03db373dfeb41da9ea602835 | /TensorFlow/singleToDist/dist_simple.py | d42422e99bfc3ba329db9e2a65f41683fe062755 | [] | no_license | GuanhuaWang/benchmarkML | a7bd1a9f7d084240d237ad1e3f1788a6ca39f7c0 | f2de685bb61856fc5b0824d0faecaabb1aad7ac6 | refs/heads/master | 2021-08-07T21:17:34.194363 | 2017-11-09T00:46:44 | 2017-11-09T00:46:44 | 103,320,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,849 | py | from __future__ import print_function
import tensorflow as tf
import argparse
import time
import os
FLAGS = None
log_dir = '/logdir'
def main():
cluster = tf.train.ClusterSpec({'ps':['localhost:2222'],'worker':['localhost:2223','localhost:2224']})
#if the server is PS
if FLAGS.job_name == 'ps':
... | [
"alexwgh333@gmail.com"
] | alexwgh333@gmail.com |
6a4ae8611d0fad5afe3732b8257b19fdeea9a57b | d7512841a41053e89984980f647ad9ffc79479fb | /Jitu_py/format.py | b3963504e811a1d3db1b90b8aaf9f4290901b72f | [] | no_license | jitusonawane/novTryPy | 0183bac912a82a82ce807af70a2527c756805470 | 13f7695c8920c27142e4734752fc3f46039bdb98 | refs/heads/master | 2021-05-07T19:52:29.008260 | 2017-10-31T00:05:50 | 2017-10-31T00:05:50 | 108,910,678 | 0 | 0 | null | 2017-10-30T21:30:35 | 2017-10-30T21:30:34 | null | UTF-8 | Python | false | false | 220 | py | #The string format() method formats the given string into a nicer output in Python.
print (" Hi {}, your blance is {}.".format("jitu",230.456))
print (" Hi {name}, your blance is {blc}.".format(name="jitu",blc=230.456)) | [
"jitu8888@gmail.com"
] | jitu8888@gmail.com |
14a0100b2dbcbb01a41c4f7c91fe949ea56cfe56 | 00af09f4ac6f98203910d86c3791c152184ace9a | /Lib/lib2to3/tests/data/fixers/myfixes/fix_last.py | 593b3de7a7c597e50552cc3a14520a059d1b5f8b | [] | no_license | orf53975/CarnosOS | 621d641df02d742a2452fde2f28a28c74b32695a | d06849064e4e9f30ef901ad8cf90960e1bec0805 | refs/heads/master | 2023-03-24T08:06:48.274566 | 2017-01-05T16:41:01 | 2017-01-05T16:41:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 515 | py | <<<<<<< HEAD
<<<<<<< HEAD
from lib2to3.fixer_base import BaseFix
class FixLast(BaseFix):
run_order = 10
def match(self, node): return False
=======
from lib2to3.fixer_base import BaseFix
class FixLast(BaseFix):
run_order = 10
def match(self, node): return False
>>>>>>> b875702c9c06ab5012e52ff43374... | [
"Weldon@athletech.org"
] | Weldon@athletech.org |
af7b4574d03c083a4b881a3f805fe219a60da904 | f9ea3bde2ec24e3eea99bd0aa66941c0182f0799 | /Implementation.py | c4b8c69178b3bca109ec12b46c9faad88a1bb3df | [] | no_license | gorutwik/ML-Project-2021_LeafNet | 9a214ee9a7b3dbc7ab2958562be646d69d4392fc | 19203707ccd3fa9bad6df1c9ea4282de959c541e | refs/heads/master | 2023-04-17T04:37:44.076689 | 2021-04-29T14:22:09 | 2021-04-29T14:22:09 | 362,841,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,892 | py |
import numpy as np
import cv2
import os
from os import listdir
import random
from sklearn.preprocessing import LabelBinarizer
from keras.preprocessing import image
from google.colab import drive
drive.mount('/content/drive')
import os
os.chdir('/content/drive/My Drive/data')
!ls
data_folder = 'train data'
imageSize... | [
"gorutwik@gmail.com"
] | gorutwik@gmail.com |
af36d815d08d1bd4a25f5fd2f1d12947a91bafcb | f2a2f41641eb56a17009294ff100dc9b39cb774b | /current_session/python/423.py | 146f5f4023ad3adead1328140cd197f0a7827274 | [] | no_license | YJL33/LeetCode | 0e837a419d11d44239d1a692140a1468f6a7d9bf | b4da922c4e8406c486760639b71e3ec50283ca43 | refs/heads/master | 2022-08-13T01:46:14.976758 | 2022-07-24T03:59:52 | 2022-07-24T04:11:32 | 52,939,733 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,037 | py | import collections
class Solution:
def originalDigits(self, s: str) -> str:
# clarification:
# time/space restrictions?
# is the given string valid?
# upper/lower bound of s?
# idea:
# by observation, some words has unique characters, leverage that
# ... | [
"yunjun.l33@gmail.com"
] | yunjun.l33@gmail.com |
9715298092a693a9ab10e41d3e027e547678dc6a | 2a3c04a5cf38ccc9f59758a1fd36e0124fd85e89 | /defect detection/code/dataset.py | d3fe3f1079c3572759d6fd2b55d34b93c8aeb576 | [
"MIT"
] | permissive | looog-e/surface-defect-detection | 406f88a2de958e64c8d3c333bb94dce36e2107e4 | 22ffa10580bbb4070ff0c8d7a5dcf5be04016ab7 | refs/heads/main | 2023-07-16T04:27:37.942852 | 2021-08-27T09:17:44 | 2021-08-27T09:17:44 | 400,009,180 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,416 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Aug 17 10:23:42 2021
@author: 零
"""
import cv2
import os
import torch
import json
import copy
import random
import numpy as np
import pandas as pd
from PIL import Image
import torch.nn as nn
import torch.functional as F
from torchvision import datasets, tr... | [
"noreply@github.com"
] | looog-e.noreply@github.com |
3c6c96001f2028909dba38a0eda848c575569742 | 760d8bf3bdf2f9b0bf72d98b0e64cd8ca8faba73 | /stack3.py | cb02ac8245acdb6a0498cf841dab1fbccf9bc987 | [] | no_license | purvimisal/Leetcode | 4e513107522431203ecacb85add895baed67a440 | 8654d329aa33527508dbac8f0b6654d0edb1b696 | refs/heads/master | 2022-11-30T22:14:33.927504 | 2020-08-18T06:46:49 | 2020-08-18T06:46:49 | 201,117,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 703 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Oct 10 11:53:35 2019
@author: purvi
"""
class Stack():
def __init__(self):
self.items = []
def push(self, item):
self.items.append(item)
def pop(self):
return self.items.pop()
def i... | [
"purvivmisal@gmail.com"
] | purvivmisal@gmail.com |
9bab33aa687e6a2ad070d05c31dce26fe20db245 | 2fa8278bcbba406251ab45905555db67f026e6e7 | /configurations/config.py | 810141039897b7724baf7d866def181ff6c286e4 | [] | no_license | AlexDovgalenko/AQA_Python | e898bd8fb8776137d1fbe2a81233e24a0d0e5539 | 777da4aaeeb0ba3372949beab65abf8329b33743 | refs/heads/master | 2020-03-27T09:02:32.207037 | 2018-10-18T11:45:54 | 2018-10-18T11:45:54 | 145,559,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | class Config:
JIRA_BASE_URL = 'http://jira.hillel.it:8080'
JIRA_USERNAME = 'Alexander_Dovgalenko'
JIRA_PASS = 'test_pass'
JIRA_REST_API_URL='/rest/api/2'
| [
"3301317+archick12@users.noreply.github.com"
] | 3301317+archick12@users.noreply.github.com |
80bcea0504f5ea53797646b28721020289429dc3 | 6fe9d5c6b8e06b262e4500b42a257e2928cfc9cd | /chuddyBuddyServer/settings.py | ede26b57ce902e8e28af6abc37ba1d0bbc86ffe2 | [
"MIT"
] | permissive | hkl-20/chuddy-buddy | 618e852cd6a6d0a541ed2f9e0abbead265f0d036 | da41da81aadf5bbd57f13267a4025e39e20e00c0 | refs/heads/main | 2023-04-18T07:57:46.006823 | 2021-05-03T08:41:32 | 2021-05-03T08:41:32 | 363,867,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,266 | py | """
Django settings for chuddyBuddyServer 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/
"""
fr... | [
"noreply@github.com"
] | hkl-20.noreply@github.com |
1ef61eb252af87daec78bca040af3251127660d5 | 2a1bbed8c8eea9859f42bc8e9ca0fddeb2db0f9a | /century.py | 02867138892043f47afd2ea9400d1928e391c8a5 | [] | no_license | nickrod518/underthewire | 2bcea2acbdf9bf1faa9ff2b7e2992b46d10b19d3 | b16a9a997eba6029fb3f6ffeba06e633da011331 | refs/heads/master | 2020-05-19T22:10:29.283513 | 2019-05-11T21:02:09 | 2019-05-11T21:02:09 | 185,241,636 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,684 | py | from ssh_helper import test_solutions
# username: (command, password)
solutions = {
"century1": ("$PSVersionTable.BuildVersion.ToString()", "century1"),
"century2": ("'invoke-webrequest' + (gci ~\Desktop).Name", "10.0.14393.2791"),
"century3": ("(gci ~\Desktop).Count", "invoke-webrequest443"),
"century... | [
"nickrod518@gmail.com"
] | nickrod518@gmail.com |
febfb729026daf052a826f5fbe84f0f483cf4713 | 78a687be138113c217f2169516e4cdc38db5b103 | /day-11/part2.py | fcb6f052d0d45eab446e6136ae9a75e57c3972d8 | [] | no_license | kontheocharis/advent-of-code-2020 | b33471a74312908603c483c12d44c22c259fc667 | 2c39c530836602b39b7b4ef4b0c2ffaa210c005f | refs/heads/master | 2023-01-30T01:24:00.644401 | 2020-12-12T21:40:46 | 2020-12-12T21:40:46 | 319,714,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,583 | py | from itertools import product
import sys
def get_new_seats(seats):
return [list(x) for x in seats]
def count_adjacent(x, y, seats):
dirs = list(dir for dir in product([1, 0, -1], repeat=2) if dir != (0, 0))
count = 0
for step_x, step_y in dirs:
curr_x = x + step_x
curr_y = y + step_y
... | [
"cthe@mailbox.org"
] | cthe@mailbox.org |
1be8a4e8591cd4ae0bc34100c5c35bc9ccea66d2 | b2bf90c852b6f5258b036dda26edf9b6aa35c4cf | /backend/lizz_2_4_5_dev_19037/urls.py | 4b20ea1f8945360ca166a62d4783ceb901cdce88 | [] | no_license | crowdbotics-apps/lizz-2-4-5-dev-19037 | 1079d95d8ae10b9dd2ff4a4eed0335ce2ca2a9a2 | ae27dc2926763f2c9fd10f9d7a9a3c0426168b84 | refs/heads/master | 2023-02-25T04:54:59.626240 | 2021-02-05T01:32:08 | 2021-02-05T01:32:08 | 336,130,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,983 | py | """lizz_2_4_5_dev_19037 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home'... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
ce93b7b11511ede78128e9f3b623e89cffaf14ab | 3f0273b799c8815335ae7111bce0513636043844 | /coding/student_score.py | 3ab3570cf91d3a5007225f35d696d804ca2077e4 | [
"Apache-2.0"
] | permissive | dipsuji/coding_pyhton | 3a557304cf9d13edeed3615d64a26d1915195549 | 47c406bda760c4fb3256150e0eacd2db80c2477e | refs/heads/master | 2023-03-04T00:40:18.563264 | 2023-03-01T01:44:37 | 2023-03-01T01:44:37 | 228,852,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,192 | py | def print_score(score_of_nlg, score_of_math, score_of_social):
"""
Calculate the scores
"""
score_length = len(score_of_nlg)
print " No. score_of_nlg score_of_math score social"
lang_score_sum = 0
math_score_sum = 0
social_score_sum = 0
# calculate social social_score in diction... | [
"mauryasujata69@gmail.com"
] | mauryasujata69@gmail.com |
2362ead44293dc75fc4616973023c9ac1feb607f | d77e2df2e42b15569894277b24a486926c4eedcb | /yc_bi.py | d01e32277f0a2b5d05605fe6d23f603a620bd3a2 | [] | no_license | tanggangbigdata/python | 83969f8c82d52f6fa074d3a348ae5ec49ef3c7ef | 4bdbac59bab7a130fd431e071165f830f1bf7239 | refs/heads/master | 2021-01-01T18:21:01.203896 | 2017-07-25T14:48:54 | 2017-07-25T14:48:54 | 98,315,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,322 | py | #!/usr/bin/env python
# _*_ coding:utf-8 _*_
__create_time__ = "2017-06-02"
__Author__ = "Tanggang"
__note__ = ""
import multiprocessing
import threading
import Queue
import os
import sys
import time
proj = "yc_bi"
def runAll(classname):
script_path = os.path.dirname(__file__)
if script_path != '':
... | [
"tanggang@yongche.com"
] | tanggang@yongche.com |
7547bdb7e115982fb75f1c5f8a0aa6b67a72a44b | 9e1c13f15785be810d81f08a3b0e19cd83a319f9 | /iota/types.py | 9671f3f7e19de3a5f34793841ca0021a2de1dee9 | [
"MIT"
] | permissive | Murukaen/IOTA_demo | 63e5226b15d2d98a6d801ccf7c40a63fd002cce4 | c93c838c9014b062d32bae31fcb508c65c532e1e | refs/heads/master | 2020-03-25T12:32:54.515352 | 2018-08-06T20:56:46 | 2018-08-06T20:56:46 | 143,781,593 | 0 | 0 | MIT | 2018-08-06T20:47:56 | 2018-08-06T20:47:56 | null | UTF-8 | Python | false | false | 22,569 | py | # coding=utf-8
from __future__ import absolute_import, division, print_function, \
unicode_literals
from codecs import decode, encode
from itertools import chain
from math import ceil
from random import SystemRandom
from typing import Any, AnyStr, Generator, Iterable, Iterator, List, \
MutableSequence, Optional, T... | [
"noreply@github.com"
] | Murukaen.noreply@github.com |
77f329b86f9b50e0f344852bcd2a368cc3bea38e | dc743ec50a12acdd03c53576e25f23af37fe573e | /metadata-wrangling/BIBFRAME/Converter/Classes/Bibframe.py | ba4f581de2bd9df9ca2b938190230d7ad8a3828a | [] | no_license | ualbertalib/metadata | 860c103145bac86cfc1ef857f73b114b6a5ed4ce | ab125986975c688284c0c5da2fd2e2a812988d46 | refs/heads/master | 2023-07-19T20:29:09.542577 | 2023-02-07T19:01:34 | 2023-02-07T19:01:34 | 37,545,489 | 20 | 7 | null | 2023-07-06T21:19:44 | 2015-06-16T17:33:22 | null | UTF-8 | Python | false | false | 2,615 | py | import lxml.etree as ET
from Utils import PrintException
class Bibframe():
def __init__(self, file, log_file):
self.xslt = ET.parse("xslt/names_OCLC.xsl")
self.transform = ET.XSLT(self.xslt)
self.doc = ET.parse(file)
self.log_file = log_file
def convert_bibframe(self):
... | [
"danoosh@ualberta.ca"
] | danoosh@ualberta.ca |
ca16798b752a930fc7c2bdd8c5008329c0aa0173 | 2a86f174db3d0de2a421ed9121d457ec769d98d4 | /fizzbuzz/fizz.py | 7f5f8ece4098456133fc429cd54b4e6315c7e973 | [] | no_license | gigatexal/languagestudy | 0e0478e490e49e3b5d6da43f3b17715ecd535923 | 04785f9899d0be8f3cc75965b821b7adb5f23723 | refs/heads/master | 2020-12-12T13:52:06.265346 | 2016-08-09T04:43:28 | 2016-08-09T04:43:28 | 51,616,909 | 2 | 0 | null | 2016-05-31T06:07:14 | 2016-02-12T21:14:32 | C++ | UTF-8 | Python | false | false | 606 | py | fizbuzz = dict([(x,'fizzbuzz') for x in range(0,101,15)][1:])
fizz = dict([(x,'fizz') for x in range(0,101,3) if x % 5 != 0][1:])
buzz = dict([(x,'buzz') for x in range(0,101,5) if x not in fizz][1:])
others = [x for x in range(0,101) if x not in fizbuzz and x not in fizz and x not in buzz]
def fbuzz():
for i in ra... | [
"gigatexal@workstation.alex@alex"
] | gigatexal@workstation.alex@alex |
4652ae651c002a689218b399ca126d9a0b329185 | 58457f8a208ce79298d081e8328e0bebbcf9fb6e | /third_project/n_queen_hill_climbing.py | b285339f0fd0486bb2fd4cc2ca70d27122f3e345 | [] | no_license | pedrovictorgf/ia-2019-1 | 4a4fe954c3757f6153d6846060a9de0bf03fecda | e8efe1e4664239d6876cd6c9f52a2d5349b4db9a | refs/heads/master | 2020-05-25T15:20:22.517131 | 2019-05-21T15:49:35 | 2019-05-21T15:49:35 | 187,866,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,662 | py | import random
# A class to represent our board state
class Board:
def __init__(self, n):
self.n = n # The size of the problem
self.board = n * [0] # Just initializing a board with size n and no queens placed on it
self.count = 0 # Number of queens already placed at the board
# A me... | [
"pedrovictorgf@gmail.com"
] | pedrovictorgf@gmail.com |
a3bca85b9b9b07bbeb59a725e6fa0cb897347e06 | b79837918de72f26558f484a59639bfc8ae3fc1b | /dialogue-engine/src/programy/config/brain/binaries.py | 820afa307915f4ca5836ebee1e096254f040d54f | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | jaygeet/cotoba-agent-oss | d0efcfb3f22271afa32d0ffde04cf9808bbc1368 | 26de67dbda401be5f1d50ae2165e4e1d820882f5 | refs/heads/master | 2022-04-20T14:32:04.790471 | 2020-04-07T02:41:33 | 2020-04-07T02:41:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,135 | py | """
Copyright (c) 2020 COTOBA DESIGN, Inc.
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 without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distri... | [
"cliff@cotobadesign.com"
] | cliff@cotobadesign.com |
20485de31fef16693a9db32635516cddb05a8c2c | 6b6f68f507746e3e39b0e8789af5d044e27d6b0a | /Math/0172_FactorialTrailingZeroes_E.py | 147075d83adb6181237a370b650f93912329e869 | [] | no_license | PFZ86/LeetcodePractice | bb0012d8b3120451dda1745875836278d3362e45 | 6db9db1934bc0a8142124d8b56bf6c07bdf43d79 | refs/heads/master | 2021-08-28T08:43:27.343395 | 2021-08-17T20:38:32 | 2021-08-17T20:38:32 | 230,925,656 | 1 | 1 | null | 2021-08-17T20:38:32 | 2019-12-30T14:01:27 | Python | UTF-8 | Python | false | false | 315 | py | # https://leetcode.com/problems/factorial-trailing-zeroes/
# Solution 1:
class Solution(object):
def trailingZeroes(self, n):
"""
:type n: int
:rtype: int
"""
result = 0
while n:
n /= 5
result += n
return result
| [
"pengfeizang@pengfeis-iMac.fios-router.home"
] | pengfeizang@pengfeis-iMac.fios-router.home |
a3b1d719c9f95fed1b06ed05032191db8ab0ca67 | a46c001e82ff7f995b1eb4ec6dbda421aee3e357 | /screengrab.py | eb649d06cc9e224d1a9dead0f188054c5b5933f7 | [] | no_license | blissjonathan/MyOCR | cdd2c462e02b8c89d2d4074101ada64705f35278 | ec23c366300abe01f241c43891792cedc8536b39 | refs/heads/master | 2020-04-08T05:29:28.346043 | 2018-11-25T16:36:27 | 2018-11-25T16:36:27 | 159,062,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,412 | py | #-- include('examples/showgrabfullscreen.py') --#
import pyscreenshot as ImageGrab
from time import sleep
import csv
import cv2
try:
import Image
except ImportError:
import PIL.Image
import pytesseract
from googletrans import Translator
import turtle
from win32api import GetSystemMetrics
import pywintypes
impor... | [
"blissjonathan1@gmail.com"
] | blissjonathan1@gmail.com |
c98712926466f689ff2cc1558697d516906c8d40 | 118b39cbe7650757e1e7766f2149fb0778641c2d | /plotting.py | d62ea5dbfbd1a5f2a344b2386001f2dc54f7b7ec | [] | no_license | allmancy13/Car-Price-Prediction | 01d1305a170ddd0742d001f3f76b54d6e47a55e2 | 90996191a462a7d43a2225386ade85af4adec78d | refs/heads/master | 2023-03-23T16:21:44.206058 | 2020-11-21T21:38:31 | 2020-11-21T21:38:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | import pandas as pd
import numpy as np
import pickle
from matplotlib import pyplot as plt
import io
def price_graph():
df = pd.read_csv('C:/Fall20/Data Mining/true_car_listings.csv')
#df.head()
dp=df[df['Price']<50000]
#dp.head()
only_price=dp['Price']
#only_price.head()
only_price.hist... | [
"hmshrque@memphis.edu"
] | hmshrque@memphis.edu |
ef7cd0920f2e278aba3e2db414cde1d44540c646 | 0f5b27728c01bb531420c7034c64b494d6de2ed9 | /it support (bilkhu)/string example.py | 9f0925a0a07fd2169de56552192ef159298ef94a | [] | no_license | yyashpatell/Yash_Patel_8736546_assignment1 | 381a8326a49ee126bbbc130bf20f03ce8710dc49 | 2b10c21479c6a44bca71225705f786ec7482846f | refs/heads/master | 2023-08-07T23:48:32.776700 | 2021-09-30T22:49:33 | 2021-09-30T22:49:33 | 412,244,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | print("hey, i'm in prog1738!")
print('hey, i'"'"'m in prog1738')
print("the boy answered the phone and said 'hello'")
print('the boy answered the phone and said "wassu???"') | [
"ypatel6546@conestogac.on.ca"
] | ypatel6546@conestogac.on.ca |
3c71785aa3501cdbf372f418de954dfb2394f64c | 2b4e511991ca94ce49d83f7414dfe247dcc22a80 | /nerd_names_api/main_routes/routes.py | 384c15d01bdbab6ba640e4b190e41009eec20d3d | [
"MIT"
] | permissive | DIS-SIN/Nerd-Names-API | 89855da727975958c009998e0d3f79cc3244bd91 | 3cc56007619eb8b9c28165e7f0b34b8888e5291b | refs/heads/master | 2022-12-09T22:09:34.522157 | 2019-09-12T00:50:02 | 2019-09-12T00:50:02 | 207,900,037 | 0 | 0 | MIT | 2022-12-08T06:09:36 | 2019-09-11T20:22:28 | Python | UTF-8 | Python | false | false | 426 | py | import os
from flask import Blueprint, jsonify, render_template
from nerd_names_api.db import query_mysql
main = Blueprint('main', __name__)
@main.route('/')
def index():
return render_template('index.html')
@main.route('/names')
def get_names():
query = """
SELECT *
FROM nerd_names;
"""
results = query_my... | [
"38829219+deepklim@users.noreply.github.com"
] | 38829219+deepklim@users.noreply.github.com |
4e90438b4cfc9a76d18018b50f43b6cc3618f296 | cd4c4d98269157c98e66f5826550e1aa4695b808 | /função/parametros_opcionais.py | 141ef4c3dbca6957a837c81d9e042155cb8d51a0 | [] | no_license | douglasfreire/aprendizagem_python | 06a08d5ad41c4a640dc119e6425ac85efc61669c | bdf0c61742c68b1ee3c8e362e648b07d17c86167 | refs/heads/master | 2022-11-13T19:33:26.695288 | 2020-06-27T14:25:55 | 2020-06-27T14:25:55 | 260,920,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | def tag_bloco(texto, classe='success'):
return f'<div class="{classe}"> {texto}</div>'
if __name__ == "__main__":
# Testes(assertions)
assert tag_bloco('Incluido com sucesso!') == \
'<div class="success"> Incluido com sucesso!</div>'
assert tag_bloco('Impossivel excluir!', 'error') == \
... | [
"douglasfreire20@gmail.com"
] | douglasfreire20@gmail.com |
8bd12fbc732f4e7da7e92e6bd28779f23d74dde9 | 50a0ea01183f26ca200d77246948d2c3e9bb8100 | /py/lib/pyfakefs/fake_filesystem_shutil_test.py | a041bee6841131950a63f569254340469988d1a1 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | gcodeforks/gaedriver | 11726b6185de4e99a0df256830bc23c27d9d351d | c3463cbaec16cc0103f27490037b02493da394a6 | refs/heads/master | 2020-04-14T20:01:13.631228 | 2012-11-29T15:52:21 | 2012-11-29T15:52:21 | 32,206,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,633 | py | #!/usr/bin/python2.4
#
# Copyright 2009 Google Inc. 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 require... | [
"schuppe@google.com"
] | schuppe@google.com |
e0d5b1aa2a2b2fbd72ecb9606db9c9e16fe10b04 | 0ba671270ae1582b5b0833a2f9a92ad7560e8b07 | /src/atomate2/vasp/jobs/elastic.py | 0258ff16dc053dbaaf2b9466c8849a9690f77746 | [
"LicenseRef-scancode-hdf5",
"BSD-2-Clause",
"LicenseRef-scancode-generic-cla"
] | permissive | JosephMontoya-TRI/atomate2 | b6cb7f816882dbc63c7f451f7ab500b1551eab4a | 02787e213806abcb99601b1046effb02681ed7b4 | refs/heads/main | 2023-06-03T14:58:45.391371 | 2021-06-21T14:34:38 | 2021-06-21T14:34:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,381 | py | """Jobs used in the calculation of elastic tensors."""
from __future__ import annotations
import logging
from dataclasses import dataclass
from pathlib import Path
from typing import List, Optional, Tuple, Union
import numpy as np
from jobflow import Flow, Response, job
from pymatgen.analysis.elasticity import Defor... | [
"alexganose@googlemail.com"
] | alexganose@googlemail.com |
dd0a90ab02c1f9eba6beb7dcbce69dbdfdfe4d09 | 93584f24d1352703578f6fea2bb981e26575c94e | /src/si.py | d158945c3d4ef801ad1b61160e5894aeb0b11dc4 | [] | no_license | xandervkw/ExClus | 85fc49d358d6f86c82ae282e0e603ab942d06ec8 | 82479e287e1818c63d6b5c1776d44eaf95fae84b | refs/heads/main | 2023-06-28T21:45:56.843401 | 2021-07-29T10:47:43 | 2021-07-29T10:47:43 | 379,654,990 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,208 | py | import numpy as np
import copy
import collections
from queue import Queue
import queue
import time
from hashlib import sha256
from os.path import join
from caching import from_cache, to_cache
from sklearn.cluster import AgglomerativeClustering
WORK_FOLDER = '.'
CACHE_FOLDER = 'cache'
RUNTIME_OPTIONS = [0.5, 1, 5, 1... | [
"xander.vankwikelberge@ugent.be"
] | xander.vankwikelberge@ugent.be |
d99f7550341b22e5b2230d9d29c2835c1d885e7f | fa75c325b66779b6993e0f9e72bf7b128419575b | /semordnilapWrapper.py | 9f0cd4f97f71b03915857b990be1e2fe54f5c51a | [] | no_license | anilgolamari/python_samplecodes | cc1d41d304d91ca3455ae96bd6c095e93586d293 | f524ce2c9e5747f5dbdd377893167eef37e42e6c | refs/heads/master | 2016-08-12T05:00:57.969048 | 2015-10-08T20:04:39 | 2015-10-08T20:04:48 | 43,856,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 887 | py | def semordnilapWrapper(str1, str2):
# A single-length string cannot be semordnilap
if len(str1) == 1 or len(str2) == 1:
return False
# Equal strings cannot be semordnilap
if str1 == str2:
return False
return semordnilap(str1, str2)
def semordnilap(str1, str2):
'''
... | [
"anil.golamari@gmail.com"
] | anil.golamari@gmail.com |
75eacc136ee18ab4b630cf64d71e39913ca3c512 | 9f39bb3be161c18399dd57ac9a32ba6c231ef10e | /BrilliantOrg/PYTHON/Graph_NSA_BFS.py | 90076d20c070865371673c7af1ae63fde299ea30 | [] | no_license | youqad/Algorithms | 9ecfd3536c43d931daf3d0708649fff4a39b5838 | d25598e121d888704df12030d407a5bdb36e53e2 | refs/heads/master | 2021-04-28T23:24:30.602151 | 2017-11-18T20:44:50 | 2017-11-18T20:44:50 | 77,704,020 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,437 | py | import urllib.request
class Graph():
def __init__(self, file):
self.adj = {}
with urllib.request.urlopen(file) as f:
next(f)
for line in f:
edge = [int(i) for i in line.split()]
if edge[1] in self.adj:
... | [
"youqad@gmail.com"
] | youqad@gmail.com |
b5099fe534ce95ca7a3850a86c319eaf734b8387 | 56bade6db4d4aeeb4f25cbc75a22f98f0308e9e6 | /python/框架/test/test_chaxun_dingdan.py | bda42f7b6d55526520db3dc3cea6f84630cc26d2 | [] | no_license | wxl19980319/python_stu | f7b2deddb18e4e77e98eeda95c42f655f06bc35b | 00b919280249267cfb8008f0eab88b91f1735930 | refs/heads/master | 2020-05-07T22:26:08.481390 | 2019-04-12T06:45:26 | 2019-04-12T06:45:26 | 180,944,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,327 | py | #!/usr/bin/python
#-*- coding:utf-8 -*-
#User:WXL
import unittest
from 框架.config import zuoye_dingdan
from 框架.data import zuoye_canshu
class zuoye_test(unittest.TestCase):
shuju=zuoye_canshu.Zuoye_canshu()
shuju=shuju.chaxun_1canshu()
def test_chaxundingdan_1(self):
suo=zuoye_dingdan.Zuoye_dingda... | [
"18339914556@163.com"
] | 18339914556@163.com |
bd32f3a3edb66736241c626c86d60844c4a1a252 | e8ecb520c73c335c9c163e8ce59fa25d3f8b1f1c | /automlToolkit/components/fe_optimizers/fe_optimizer_builder.py | 236f2edc5f8da0b39c76c59c4c83f9324a2d9e75 | [
"MIT"
] | permissive | zwt233/automl-toolkit | d3200a2fd5b01311f33a0e61a7cd6dc7dccbaacc | 67d057f5e0c74bec5b3cbde1440ec014696737ef | refs/heads/master | 2021-05-26T01:18:09.699592 | 2020-04-25T10:48:40 | 2020-04-25T10:48:40 | 253,997,217 | 0 | 0 | MIT | 2020-05-09T10:15:08 | 2020-04-08T05:49:48 | null | UTF-8 | Python | false | false | 1,173 | py | from automlToolkit.components.fe_optimizers.evaluation_based_optimizer import EvaluationBasedOptimizer
from automlToolkit.components.fe_optimizers.multithread_evaluation_based_optimizer import \
MultiThreadEvaluationBasedOptimizer
from automlToolkit.components.fe_optimizers.hyperband_evaluation_based_optimizer impo... | [
"459240868@qq.com"
] | 459240868@qq.com |
6742224d54226b6253fcf5885a74c3f87dc81392 | 25fac66bfccca2e870a13ce0fa7b69a601faf92d | /Python.py | 4427870030dac9b2c1a66a85d15e461ce6f37a17 | [] | no_license | Vortetty/anagram-detect | 8b88b0fe41efb106565b83689219a3d9a5198b63 | 63d99d6d14d43749bb39fec86a744e8e408022ed | refs/heads/master | 2021-05-13T11:23:47.171590 | 2018-01-11T16:53:01 | 2018-01-11T16:53:01 | 117,120,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | x = input("what would you like to check for anagrams")
y = x[::-1]
if y == x:
print("you have an anagram on your hands")
elif y!=x:
print("sorry, no anagram here")
else:
print("woops, looks like somthing broke, please try again later or reload the page")
print("\nmade by vortetty for mohan")
| [
"noreply@github.com"
] | Vortetty.noreply@github.com |
7df101ba9e9e9e6e90edf37196a59fcb939490a1 | 898be346f3fd476f625489ec6e85f97240e32ae5 | /LeetCode1000/LeetCode1446ConsecutiveCharacters.py | e11f5608019bf1f0e9621062e45f4788c7988dee | [] | no_license | lonely7yk/LeetCode_py | e3a0c47f274db8ef3e4540d4d570a874e198dfcd | 67054f724c6c0e1699118248788522cec624b831 | refs/heads/master | 2023-01-10T19:10:13.772069 | 2022-12-29T17:32:50 | 2022-12-29T17:32:50 | 228,568,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,045 | py | """
Given a string s, the power of the string is the maximum length of a non-empty substring that
contains only one unique character.
Return the power of the string.
Example 1:
Input: s = "leetcode"
Output: 2
Explanation: The substring "ee" is of length 2 with the character 'e' only.
Example 2:
Input: s = "abbccc... | [
"893077810@qq.com"
] | 893077810@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.