blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ed0cf72b39a6f14b5f816f8ed59a8ae0a23a3e5e | d921253b98a922975709693c411218746af2f017 | /bgx/telebot/bgt_bot_api/bot_handlers.py | 2f583a0ac5a05ac6fa1d64bbed7bc09e7f3ffb96 | [
"Zlib",
"MIT",
"Apache-2.0"
] | permissive | bestonly125/DGT-Kawartha | 223f88e224c1464fa22a4512e4567ac7ce1bc78f | edfbc18f2c70e813805ec23c28fbc35bf7866ffc | refs/heads/master | 2022-11-22T13:18:21.204906 | 2020-07-24T09:03:57 | 2020-07-24T09:03:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,606 | py | # Copyright 2020 NTRLab
#
# 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 agreed to in writing, softw... | [
"sparsov@sinergo.ru"
] | sparsov@sinergo.ru |
c3ae2bfc05c00cd24db90c05ec43f7f437e5c692 | bcd8edab7d3ee62094493fa69ecb40b69f847f21 | /osmchadjango/supervise/serializers.py | 1e35141c0dd28c01eab2fdda6218c3dfe321fad7 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | juusokor/osmcha-django | 83238c1f79da36a524ae237d913fc7f14501a295 | 5daafa015d5e341aa8ad6f847be2b7cc1a204e2b | refs/heads/master | 2020-03-30T12:55:11.729196 | 2018-06-30T01:00:33 | 2018-06-30T01:00:33 | 151,248,061 | 0 | 0 | NOASSERTION | 2018-10-02T12:07:00 | 2018-10-02T12:06:59 | null | UTF-8 | Python | false | false | 1,696 | py | from django.urls import reverse
from rest_framework_gis.serializers import GeoFeatureModelSerializer
from rest_framework_gis.fields import GeometryField
from rest_framework.fields import (
SerializerMethodField, HiddenField, CurrentUserDefault, DateTimeField,
ReadOnlyField
)
from rest_framework.validators ... | [
"wille@wille.blog.br"
] | wille@wille.blog.br |
d8bcd182c09698fa6afd891cf4a54a6978ca1923 | 3def50d84e20710cf817b394c8d6a4fde0957fdf | /cherrypy/classtest/test3.py | 2abd2a5ca159bfd8748c86e0b7c1ad39ec981447 | [] | no_license | RimantasSmitas/BananaPi | a50f4f1a2b0a2a0e9a2322ccddd9e1e0d39887f1 | bc7f00394a6981beae99a37212b671da21247d5d | refs/heads/master | 2021-08-22T22:12:50.893610 | 2017-12-01T12:27:23 | 2017-12-01T12:27:23 | 109,330,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,252 | py | import signal, os
import RPi.GPIO as GPIO
import time
AIN1 = 17
AIN2 = 27
PWMA = 2
BIN1 = 10
BIN2 = 22
PWMB = 3
# Pin for linesensor:
A = 6 #left
B = 13 #middle
C = 5 #right
# Pin Setup:
GPIO.setmode(GPIO.BCM) # Broadcom pin-numbering scheme
GPIO.setup(A, GPIO.IN) # sensor set as input
GPIO.setup(B... | [
"rimantas.smitas@gmail.com"
] | rimantas.smitas@gmail.com |
deddb67ccdc66d674d6db8ca868bdc5dd8bf4d97 | b3a34ddd1cfaf709d7635af83d4e1e489b4cca5d | /gui/menus/skinmenu.py | a7add4ec33732fc7fb74fbfcac93b04b561dbce0 | [] | no_license | o2mation/PyBlock-pyside2 | b97672dae977f8930966fa81c18d975d3bc74d44 | 16883fd499dbe04e2de7b7b166a0e37b8c51ab42 | refs/heads/master | 2020-04-09T05:10:52.976343 | 2018-12-09T12:16:25 | 2018-12-09T12:16:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,149 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from PySide2.QtCore import *
from PySide2.QtGui import *
from qframer.resources import *
from qframer import FMenu
class SkinMenu(FMenu):
skinIDSin = Signal(str)
def __init__(self, parent=None):
super(SkinMenu, self).__init__(parent)
self.parent = p... | [
"ding465398889.com"
] | ding465398889.com |
ddd1834a9a3c5f54f03e78756765e853829e09fb | 4995398f861cd76fb24a653b19356a235d040efb | /Question3.py | 54b9feb1d5b0bf3d20ff664786f1769ba57389a2 | [] | no_license | adiXcodr/CryptoAlgos | 474496e1b8776686b6d1fd695d320062b2e547fe | 687e2fa44b7d13b8f212ad24e737f34c84606f02 | refs/heads/master | 2022-12-25T12:28:14.574901 | 2020-09-30T17:34:23 | 2020-09-30T17:34:23 | 299,993,862 | 0 | 0 | null | 2020-09-30T17:10:22 | 2020-09-30T17:10:21 | null | UTF-8 | Python | false | false | 241 | py | def exponent(a,b,n):
answer= 1
x=a
while(b>0):
if(b%2!=0):
answer= (answer*x)%n
b= b-1
x= (x*x)%n
b=b/2
print('Answer=', answer)
a,b, n= [int(i) for i in input("Enter a, b and n \n").split()]
exponent(a,b,n)
| [
"subhasishgoswami00@gmail.com"
] | subhasishgoswami00@gmail.com |
c47c76430fce530bce285bc74114852f6d5a7805 | 2e9a218381689ea51a74b168fbf5fbc0bb3528bc | /templates/src2/static/application.py | 723b17daa0e2233cea040d6eafd31b048c9ed56d | [] | no_license | wanghaoze/emotion_site | 53c6ae1e8b7582f768cc20ccbf676a40e404da3f | f5c55ca511939730554dfe86f4de0f4c57d94aa4 | refs/heads/master | 2023-02-15T02:45:59.135139 | 2021-01-06T11:18:39 | 2021-01-06T11:18:39 | 274,715,256 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | from flask import Flask, render_template
app = Flask(__name__)
@app.route("/")
def index():
return render_template("index.html")
@app.route("/more")
def more():
return render_template("more.html")
app.run(port=23222) | [
"1070390210@qq.com"
] | 1070390210@qq.com |
dd50f84b06ac961202384fb9c1485f29dc7f0cc4 | df1f8da187fcfd1a4128051bfd5a3be2f567f62f | /0x01-python-if_else_loops_functions/example2.py | dab1b828477926f42dfdb654937aed1fcc898974 | [] | no_license | stostat/holbertonschool-higher_level_programming | d784f24408d69f68dfdefc46fe9e406a98e927e1 | 658fee8bd3b323de2fbc09bf02d8fc8439ed5a3f | refs/heads/master | 2023-03-02T02:59:42.902612 | 2021-02-10T04:33:43 | 2021-02-10T04:33:43 | 259,482,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | #!/usr/bin/python3
def suma(a, b):
return(a + b)
a = 3
b = 5
print(suma(45, b))
| [
"santmendieta@icloud.com"
] | santmendieta@icloud.com |
6fb26cc59bc2266d5eb08648c217a21c5a0b1243 | 327963ae013b5a94cad2ac18813e839923ccf89e | /publisher/__init__.py | 5d36d1e19a67553d5ffbce5ea332bad8e706721a | [] | no_license | encresearch/publisher | 3948849f99081752f9c6096216e64ecf4d102ed4 | 575283846a76ec9723e8165fbe13566a9a7ae561 | refs/heads/master | 2022-07-12T06:20:34.270817 | 2020-07-05T18:54:36 | 2020-07-05T18:54:36 | 136,961,324 | 0 | 0 | null | 2022-06-22T03:29:27 | 2018-06-11T17:50:43 | Python | UTF-8 | Python | false | false | 24 | py | from publisher import *
| [
"noreply@github.com"
] | noreply@github.com |
1a2cdc108a8596ada3e9babc8b331eb452075700 | 36297b58bedf27422e149e9eb10a39e3f29c0014 | /src/day_6_part_2.py | 5d4336f002f223ff2a1d3dda809ea964525490d9 | [] | no_license | marflodin/adventofcode-2020 | fa4711c9ab7010bdc10be58a6c8a4407371b589f | e825a41398ea2f0a527e673c004bcc0b09486aaf | refs/heads/main | 2023-01-24T17:30:48.340870 | 2020-12-09T10:12:55 | 2020-12-09T10:12:55 | 318,784,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 799 | py | with open('../resources/input_day_6.txt', 'r') as input_file:
entries = []
entry = {"persons": 0}
for line in input_file.readlines():
if line in ['\n', '\r\n']:
entries.append(entry)
entry = {"persons": 0}
else:
entry["persons"] = entry["persons"] + 1
... | [
"martin.flodin@klarna.com"
] | martin.flodin@klarna.com |
4b3ce1a2e5181d7331f3835d137f5487c45ecfc0 | 86221678ec413034bb4e34af9a0cbbf6ac76f21a | /2017CS50407/question2/main.py | 64ee7b790c40802f1d78a3a8e0d3fceacaf19044 | [] | no_license | Dwijesh522/ml_assignments | 7f198b2e44e9194b517018cbe6d5b5dd02913f0a | d474771340ff0fb78e48213a70e854e372ed75ab | refs/heads/master | 2022-04-02T20:21:16.621225 | 2020-02-10T12:42:26 | 2020-02-10T12:42:26 | 236,195,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,512 | py | import pandas as pd
import stochastic_gradient_descent as sgd
import plotting
import numpy as np
import math
def sample():
# number of training examples
m = 1000000
theta_not = np.array([[3], [1], [2]])
# sampling x1 ~ N(3, 4)
x1 = np.random.normal(3, math.sqrt(4), (m, 1))
# sampling x2 ~ N(-1,... | [
"iddwijesh@gmail.com"
] | iddwijesh@gmail.com |
36fd0e06456b26396cb9e10b5c02751e6cb688b7 | f1c7f2597b10f8487b8fa5f20ba7019d876f3c71 | /accounts/forms.py | bb406314b11b7f5a1ebb3f11148b6458b2120277 | [] | no_license | inancd/sitorbis | fbb6a7f3f3978f26af95a9e45eeae67c0e84c82b | 762be77179739966dbaf978299b5d53846cc83d6 | refs/heads/master | 2020-09-10T18:31:19.523974 | 2020-07-14T19:33:16 | 2020-07-14T19:33:16 | 208,810,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,127 | py | from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth import authenticate
from django.db.models.signals import post_save
from django.core.exceptions import ValidationError
from PIL import Image
from .models import MediaModel
from accounts.models import Account, Profil... | [
"inanc@sitorbis.com"
] | inanc@sitorbis.com |
95a4c662c519fb403e510e71fc25a5e18b70a8a4 | ef10ed497ef6f41a976cc30526ee2d4a7c8241c1 | /Memoria/figures/elliptic_inv_doubl.py | 824106fd450fc6edac48dc2f2fa85003fb97bdf3 | [] | no_license | lglaria/TFG | 3a1020336efb3982b96e3bad844aab9748ead6a2 | d415b4a916793ea157788ef06d15e8648fb77704 | refs/heads/master | 2020-03-20T06:18:53.501013 | 2019-09-15T17:14:00 | 2019-09-15T17:14:00 | 137,244,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,627 | py | import matplotlib.pyplot as plt
import numpy as np
import warnings
warnings.filterwarnings("ignore",category=RuntimeWarning) #tendremos algunas raices negativas
X = np.linspace(-2.5, 5, 5000)
Y_0 = np.linspace(-10, 10, 5000)
Z = (X**3 - 3*X + 5)**(0.5)
Y = 2*X
plt.plot(X, Z, color = 'black')
plt.plot(X,-Z, color = '... | [
"lglaria@ucm.es"
] | lglaria@ucm.es |
05300260d3005417fd9466a8faef01221aa10d7c | 4435e08efbc07ecf9295c2714570eae12033b19b | /application.py | c876a1d13776347a0c39166632ae91fbb37e8943 | [] | no_license | shovanch/twitter-sentiment-analysis | 54c7cdc19540824cb88517b86104c9b7147bad63 | c901dc4b2eecd9a66e3ad262b915957891c52d43 | refs/heads/master | 2021-06-23T10:55:07.361101 | 2017-09-04T19:50:44 | 2017-09-04T19:50:44 | 82,047,013 | 14 | 9 | null | null | null | null | UTF-8 | Python | false | false | 1,346 | py | from flask import Flask, redirect, render_template, request, url_for
import helpers
import os, sys
from analyzer import Analyzer
app = Flask(__name__)
@app.route("/")
def index():
return render_template("index.html")
@app.route("/search")
def search():
# validate screen_name
screen_name = request.args... | [
"shovanc.web@gmail.com"
] | shovanc.web@gmail.com |
8cca05cab03643862b4a0e964a10db0b3ad575a8 | f9c52c4001e1d6af8b07c24cab041c86fa68dcfa | /info/stocks.py | 35f822cf6d3bd2b157b0f0d88cb27a6297533bc6 | [] | no_license | jesse-lin/rembot | 5c8eee2c19c0eb65760baeb374264acad100475d | 0dd97331a2279a6338b5127d3712d0ac9f9f73fc | refs/heads/master | 2023-01-12T10:57:11.719600 | 2020-11-16T23:42:46 | 2020-11-16T23:42:46 | 261,308,238 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,725 | py | import discord
import os
import sys
from discord.ext import commands
import json
import datetime
import yfinance as yf
import lxml
from variables import FILEPATH
async def load_stocks(ctx, data, tickers):
for s in tickers:
ss = s.upper()
# stock = requests.get(f'https://query1.finance.yahoo.com/... | [
"jesse.lin67@gmail.com"
] | jesse.lin67@gmail.com |
bfec5c587e199e8661352e09e76eb119ef9d4709 | 7d1d30be1995f2780cbf8999f1891e967936c090 | /pttweaks/activity/tests/test_models.py | f91ed5f80aebe191788ab9c3ad566ab2ce0f26ee | [] | no_license | EastAgile/PT-tweaks | 118274f70c198fb8885f4a42136a5a1bdefc4e51 | 7d5742862e42672eb77441ef7a7250d7a3a9359e | refs/heads/master | 2022-12-10T20:07:04.859288 | 2019-08-08T05:29:41 | 2019-08-08T05:29:41 | 164,597,129 | 0 | 1 | null | 2022-12-08T05:49:40 | 2019-01-08T08:06:59 | Python | UTF-8 | Python | false | false | 319 | py | from django.test import SimpleTestCase
from robber import expect
from activity.factories import ActivityChangeLogFactory
class ActivityChangeLogTestCase(SimpleTestCase):
def test_model_str(self):
activity = ActivityChangeLogFactory.build(story_id='123123')
expect(str(activity)).to.eq('123123')
| [
"open-source@eastagile.com"
] | open-source@eastagile.com |
9b67b1df199c4ca9a43fea2600a53521d9cf8882 | 0167bc775b59c5c5161ba02da4eb06a90393dbaf | /inheritance.py | 5d98af1eee3f73443180e2a7a19252875ae3af99 | [] | no_license | furqann/learn-py | a0ee95c48617a6a2891ff410e6d40699e8749761 | 4c4649dcb70e944a809d7be816d509261c0d4e97 | refs/heads/master | 2020-05-05T07:16:34.050416 | 2019-08-18T18:51:35 | 2019-08-18T18:51:35 | 179,819,569 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | # Inheritance
class Mammal:
def walk(self):
print("Walking started")
class Dog(Mammal):
# Python does not allow empty classes we need to use a keyword pass
def bark(self):
print("Woof Woof")
def walk(self):
print("Dog walking")
class Cat(Mammal):
def meow(self):
... | [
"furqanahmad21@hotmail.com"
] | furqanahmad21@hotmail.com |
701bbcc1ebabd3addf948ffbf0e6693a5ce886d3 | f313176349f441bb8f72759d0f84f320d274d5d7 | /xjerab13/blogs_download2/web_rss/webrss/shared_func.py | a6cc6f24de1469de10940c0698e5cf7f427253d2 | [] | no_license | iotrusina/M-Eco-WP3-package | 641876974268cda458bf096e702b0bfe18596d67 | 83d76dfd2afdae93856e094879464327abf1faa0 | refs/heads/master | 2021-01-01T05:35:57.200860 | 2012-10-03T19:57:32 | 2012-10-03T19:57:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,296 | py | import os, sys
import time
import logging
#from bdllib.pubmod.BeautifulSoup import name2codepoint
import re
log = logging.getLogger("blog_download")
'''Some shared universal funcions'''
def makePath(path):
'''Creating absolute path based on program position in filesystem.'''
if os.path.isabs(pa... | [
"otrusina@gmail.com"
] | otrusina@gmail.com |
4b62a941576cc59defc792dd09df58d2eb7e386b | ef11a06c906f37fa98c3de38aa1307110269b2f4 | /Notes/Fall2019/Ch4C.py | 6d229ca716a445032f72e9b2a630d709bd76b422 | [] | no_license | fwparkercode/IntroProgrammingNotes | 0d389d2d281122303da48ab2c1648750e594c04f | ad64777208d2f84f87e4ab45695adbfe073eae18 | refs/heads/master | 2021-07-16T07:13:55.665243 | 2020-06-09T12:45:38 | 2020-06-09T12:45:38 | 170,581,913 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,842 | py | # Chapter 4 - Loops and Random Numbers
# Random numbers
import random
# Randrange function - random.randrange(start, end, count_by)
print(random.randrange(10)) # generates a random int from 0 to 9
print(random.randrange(5, 10)) # random int from 5 to 9
print(random.randrange(50, 100, 5)) # random int from 50 to 9... | [
"alee@fwparker.org"
] | alee@fwparker.org |
f2cbb0fbc5d3f2af9927d29398c47bdbb8021629 | 4a7cd56690166ae9bf6f03bce8c5894858671147 | /app.py | baa64a02a74ce21b9c3d20a6e749aad8d56e05ad | [] | no_license | jkap86/DynastyDashboardFlask | a982e3a7e1a3a9b3ca7260cd1349c0346a948f3e | 9a3d0e1626691deeea656aeb9cf93041442fd11e | refs/heads/main | 2023-06-02T01:29:19.999049 | 2021-06-12T15:00:17 | 2021-06-12T15:00:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,479 | py | from flask import Flask, render_template, request, redirect, url_for, jsonify, session
from flask_session import Session
from flask_bootstrap import Bootstrap
import requests
import json
import datetime
from operator import itemgetter
from flask_wtf import FlaskForm
from wtforms import StringField, TextField, SubmitFi... | [
"jkap86@gmail.com"
] | jkap86@gmail.com |
4076f7ee484c31f9c059c5913b8e1d33c17c6449 | 9398c7d6de89aabca4de4403e14c7e0457f8d462 | /moocOnline/apps/courses/migrations/0002_auto_20170327_1503.py | 67217e50217dab6fb85ba8a5744812e438782650 | [] | no_license | xuyafei9303/moocOnline_Django | 789636451aa5ba7252d420ae3488472df77c4f10 | b8d76162133bf3bd9b3fc62e632e1ac81928219c | refs/heads/master | 2021-01-20T07:13:33.033584 | 2017-05-02T02:10:34 | 2017-05-02T02:10:34 | 89,980,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.8 on 2017-03-27 15:03
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('courses', '0001_initial'),
]
operations = [
migrations.AlterField(
... | [
"1007386723@qq.com"
] | 1007386723@qq.com |
16cbf16dc6b7fe17bb9032ee14ac7d326eeaced8 | 3a570384a3fa9c4c7979d33b182556e1c637e9eb | /anwmisc/anw-pyui/Packages/anwp/gui/configinfo.py | 5c7bf27ee02e7b8c9821e1b50aacc8cfcb5713f6 | [] | no_license | colshag/ANW | 56a028af5042db92b5ead641dc542fcb4533344e | 46948d8d18a0639185dd4ffcffde126914991553 | refs/heads/master | 2020-03-27T00:22:49.409109 | 2018-10-27T06:37:04 | 2018-10-27T06:37:04 | 145,618,125 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,603 | py | # ---------------------------------------------------------------------------
# Armada Net Wars (ANW)
# configinfo.py
# Written by Chris Lewis
# ---------------------------------------------------------------------------
# This panel Displays User Config information
# ---------------------------------------------------... | [
"colshag@gmail.com"
] | colshag@gmail.com |
3bacda1269a3f3130f182ec8f974b29c16819d8f | b7eed26cf8a0042a61f555eed1e9bf0a3227d490 | /students/arkadiusz_kasprzyk/lesson_01_basics/first_digit_after_decimal_point.py | e5e0c5af3647e665f9c37e9233b389e50eaacf34 | [] | no_license | jedzej/tietopythontraining-basic | e8f1ac5bee5094c608a2584ab19ba14060c36dbe | a68fa29ce11942cd7de9c6bbea08fef5541afa0f | refs/heads/master | 2021-05-11T11:10:05.110242 | 2018-08-20T12:34:55 | 2018-08-20T12:34:55 | 118,122,178 | 14 | 84 | null | 2018-08-24T15:53:04 | 2018-01-19T12:23:02 | Python | UTF-8 | Python | false | false | 502 | py | '''
title: first_digit_after_decimal_point
author: arkadiusz.kasprzyk@tieto.com
date: 2018-03-05
description:
Given a positive real number, print its first digit to the right of the decimal point.
'''
import math as m
print("Given a positive real number, prints its first digit to the right of the decimal point.")
... | [
"akasp@interia.pl"
] | akasp@interia.pl |
d9c7132ecc0054858916e28ca1197a865068eec4 | e93c0664a4ed160410266e0c337f229cced3e588 | /DIM/func/misc.py | b8f50458eb1e42b7fb780fad1a869fd14e363519 | [] | no_license | jbonato1/AML_exam | 56d63bf5d00660106774e24440307070dd2e5e54 | 3c5e15f4c6b239f2a09a7cafc440a3c013f1f789 | refs/heads/master | 2022-07-14T22:18:29.861863 | 2020-05-14T10:31:10 | 2020-05-14T10:31:10 | 259,679,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,411 | py | """
miscilaneous functions.
"""
import math
import torch
def log_sum_exp(x, axis=None):
"""Log sum exp function
Args:
x: Input.
axis: Axis over which to perform sum.
Returns:
torch.Tensor: log sum exp
"""
x_max = torch.max(x, axis)[0]
y = torch.log((torch.exp(x - x_ma... | [
"jacopo.bonato@iit.it"
] | jacopo.bonato@iit.it |
2d317cdf5e42c823bdc120acb47c51b94c18b40b | fbca8558e1d733dcf9b3894e344cdfda8aa34e3f | /ponteRolante/fatorDistribuicaoCarga.py | 6db700ccbf94be9f10d3e452092e2ffa945ef8dd | [
"MIT"
] | permissive | ZaqueuCavalcante/Gears | 5d0def80e30fedb1bf1002a3ad8271004dde5355 | 8a4cf7fb4c5d145c8ae9424f9eb9608596edf15e | refs/heads/master | 2023-01-11T22:41:45.511293 | 2020-11-16T16:07:17 | 2020-11-16T16:07:17 | 291,861,711 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,199 | py | from enum import Enum
class C_mc_TIPO(Enum):
dentesNaoCoroados = 1.00
dentesCoroados = 0.80
def C_pf(larguraDeFace, diametroPrimitivo):
F = larguraDeFace
d = diametroPrimitivo
if (F <= 1):
return F/(10*d) - 0.025
elif (F > 1 and F <= 17):
return F/(10*d) - 0.0375 + 0.0125*F
... | [
"zaqueudovale@gmail.com"
] | zaqueudovale@gmail.com |
f85a8541f0cd6aa396af64f52e86d47c7bff5e5e | 6d2fa5bc2e8798bf4c85d618b32282e830850c7d | /contactbook.py | 7008d2972b7386ba9f5ac63e9fc13e350cd86865 | [] | no_license | ChandraPrakashBanda/Contactbook | f09f00c24b8865cb94880bc2258200e631a6a8ff | 9cfed8c522eded2e04a74dd2d77be49189d07291 | refs/heads/master | 2022-11-30T21:08:27.747110 | 2020-08-01T10:26:36 | 2020-08-01T10:26:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,824 | py | from tkinter import *
from tkinter import Tk
#creation of main dialogue box
root=Tk()
root.title("Contacts book")
root.geometry("400x400+50+50")
readablecontacts=StringVar()
def Addcontact():
#new contacts dialogue box entries and buttons
root1=Tk()
root1.title("new contacts")
... | [
"noreply@github.com"
] | noreply@github.com |
d2d30ed9ef98512ff7d30f5c9754fa535c698414 | c838c53ec5de94af57696f11db08f332ff2a65d8 | /mission/migrations/0121_picklist_pick_order.py | 042a0e8203c7fedb1905237711b5f99b55874583 | [] | no_license | memobijou/erpghost | 4a9af80b3c948a4d7bb20d26e5afb01b40efbab5 | c0ee90718778bc2b771b8078d9c08e038ae59284 | refs/heads/master | 2022-12-11T14:47:59.048889 | 2019-01-28T02:30:40 | 2019-01-28T02:30:40 | 113,774,918 | 1 | 1 | null | 2022-11-22T02:02:41 | 2017-12-10T18:53:41 | Python | UTF-8 | Python | false | false | 557 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2018-08-18 14:37
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('mission', '0120_pickorder'),
]
operations = [
... | [
"mbijou@live.de"
] | mbijou@live.de |
4b0e4be71217535a3b023b8cd57fa3de00fa5b98 | a4440a990b86a239a30b4295661ca588db3f5928 | /src/knn/digital_recognition.py | 5411be618eb5bc4fae3f1b70b129b3cbdb7ead0f | [] | no_license | YangXinNewlife/MachineLearning | fdaa1f75b90c143165d457b645d3c13fee7ea9a1 | 196ebdc881b74c746f63768b7ba31fec65e462d5 | refs/heads/master | 2020-04-05T00:10:25.050507 | 2019-06-10T03:44:33 | 2019-06-10T03:44:33 | 156,386,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,377 | py | # -*- coding:utf-8 -*-
__author__ = 'yangxin_ryan'
from numpy import *
from os import listdir
from collections import Counter
import operator
"""
图片的输入为 32 * 32的转换为 1 * 1024的向量
"""
class DigitalRecognition(object):
def __init__(self):
print("Welcome, 手写数字识别算法!")
"""
1.距离计算
tile生成和训练样本对应的矩阵,并... | [
"yangxin03@youxin.com"
] | yangxin03@youxin.com |
dafd07934584a8b0a01a6f539c70656fbaa353a6 | 719f5ba07da760b300a4199d351d2699064676dc | /CaesarCipher/CaesarDecrypt/CBD.py | e1cf33a2bf616862a7d18db7fa617e60533847d8 | [
"MIT"
] | permissive | Bedrock02/General-Coding | 74a3aafee06f076830bcee7ed9f4f59f4349d362 | 803ac758bd0d23f8eefdb84045f219aba6f4936b | refs/heads/master | 2021-03-12T23:55:31.080105 | 2014-03-01T04:50:34 | 2014-03-01T04:50:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | from BinarytoCharacter import BinaryToChar
from CaesarCharShiftDecoder import CaesarCharShiftDecoder
def CBD():
cipherText = raw_input("Enter the encoded binary sentance. Binary numbers should be separated with a space ")
cipherKey = int(raw_input("What is the key?"))
cipherText2 = BinaryToChar(ciph... | [
"JimSteve91@gmal.com"
] | JimSteve91@gmal.com |
180c01d24bedbf9795f408f3f46de3e9ca5b44e8 | bd30f4127305915a6ea5cd8ef7ccca155f3c5b87 | /stock/quotes/urls.py | 2c559b3529b501a734310738a853cf8eb39368f2 | [] | no_license | rajathn8/IEX_Cloud_Django | 0cb06a1b21a3a3e80d9f897acd1c06549c01b61f | b21d23ef196d27d93cd0f82192c026b4945a6ea6 | refs/heads/master | 2021-05-19T14:09:42.310302 | 2020-03-31T21:40:55 | 2020-03-31T21:40:55 | 251,745,986 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | # create this for every app you create
from django.urls import path , include
from . import views
urlpatterns = [
path('',views.home,name='home'),
path('about.html',views.about,name='about'),
path('add_stock.html',views.add_stock,name='add_stock'),
path('delete/<stock_id>',views.delete,name='delete'),
path('del... | [
"rajath@nextorbite.com"
] | rajath@nextorbite.com |
89fbe9abb7d15ea2b5ba64aa8969ea42145c8590 | 4ac0c342a883ea2aecf2b70a401f724ec639977f | /userserver/setup.py | d4a3bf820f9ee31b0661d6a3c835f616f40c767d | [
"MIT"
] | permissive | nh-99/UMaine-Service-API | 3dbdfb383e6042eff811747f13d0ef5cac4cba38 | 7f231d69a9bb3242cc3f0bf839014de4b477e824 | refs/heads/master | 2020-04-06T06:59:12.018275 | 2016-08-28T15:02:28 | 2016-08-28T15:02:28 | 65,781,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | from setuptools import find_packages, setup
setup(name="umaineapi_userserver",
version = "0.1",
description = "A service for storing authentication keys for all your services",
author = "Noah Howard",
platforms = ["any"],
license = "BSD",
packages = find_packages(),
install_re... | [
"ifence9@gmail.com"
] | ifence9@gmail.com |
ab81d46cb9f8931d361ef27504b8ed0ea3f38f14 | 4e2eca922ce7dfecce13887d3a949bfb379fb14f | /Router/Router_interface.py | af5314d987bb30abaaf3cd0a00a547c94d7a2ad2 | [] | no_license | ZYJ-33/Python-web | e580ac448d9ee9cbec31fef98c18f4a10dde232d | f92a7ee4dd932159b418e9614606bd9b409a7623 | refs/heads/master | 2020-05-03T16:18:22.650764 | 2019-03-31T18:14:30 | 2019-03-31T18:14:30 | 178,720,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 955 | py | from Router.User import login
from Router.User import register
from Router.Router_basic_func import get_index
from Router.TW import TW_index
from Router import check_login2
from Router.TW import TW_add
from Router.TW import TW_all
from Router.TW import TW_del
from Router.TW import TW_edit
from Router.Comment i... | [
"noreply@github.com"
] | noreply@github.com |
a6ee9f96f7e5f35168645f57fbe94fa762dba675 | 28ef27ad66a974fe288ea821d76514c8ea14294f | /experiments/num_rules/fancy.py | d1b0e80d4a7254e339c684d85289668397a6dd12 | [] | no_license | csmith49/godel | 3f34b7dc0b13e6d1098f42f362afe19d4053ed7a | 11bbb2873f9d85ef53918bab51e5c85e8d7afea9 | refs/heads/master | 2021-01-19T01:16:42.800605 | 2018-11-30T03:53:09 | 2018-11-30T03:53:09 | 87,236,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,566 | py | # sadly, requires python2.7 (or just not python3)
from __future__ import division
import seaborn as sns
import numpy as np
from argparse import ArgumentParser
import csv
# eh, arguments and stuff
parser = ArgumentParser("Graph generation for CSV files.")
parser.add_argument("-b", "--benchmark")
parser.add_argument("-t... | [
"cjsmith@cs.wisc.edu"
] | cjsmith@cs.wisc.edu |
d6695294bf174f800a81fecb2c4d9d46e5e6c956 | d94136866c45de06b8b67f10a5f989182256289f | /utils/keywords.py | 16b9b3853b218c86ccf6afc43540d67f396b5e6f | [
"MIT"
] | permissive | ShaderOX/tweet-related-articles | db3e601e317e1bc606a894d6381ed05753bf4a6e | 06579dab516d419662cc0b979e7a8108a7cef06c | refs/heads/main | 2023-01-24T15:42:07.015251 | 2020-12-09T04:47:35 | 2020-12-09T04:47:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | from rake_nltk import Rake
from typing import List
def extract(text: str, num_phrases: int = 3) -> List[str]:
extractor = Rake()
extractor.extract_keywords_from_text(text)
phrases = extractor.get_ranked_phrases()[:num_phrases]
return phrases
| [
"saad.521509@gmail.com"
] | saad.521509@gmail.com |
4783e674493d75dfdd59a6f0cfbc585001f25b5f | 693f12aec010f7080faa34f1f310039386895c59 | /all/chapter_03/Number_13.py | 55f9a9c42b49975d1f5e71e4be0febb54b507aed | [
"MIT"
] | permissive | sts-sadr/cvhub | 281dbe4979adb824392358ae5369da3f6bb9207c | 8d986c8efacc634848c83d7d4cb14e8ab7f120d6 | refs/heads/main | 2023-04-22T16:21:26.573772 | 2021-05-20T04:20:09 | 2021-05-20T04:20:09 | 371,353,277 | 1 | 0 | MIT | 2021-05-27T11:43:10 | 2021-05-27T11:43:09 | null | UTF-8 | Python | false | false | 1,425 | py | """
Noise reduction using smoothing and blurring
Bilateral blurring:
The previous three blurring techniques yield blurred images with the side effect that we
lose the edges in the image. To blur an image while preserving the edges, we use bilateral
blurring, which is an enhancement over... | [
"EverLookNeverSee@ProtonMail.ch"
] | EverLookNeverSee@ProtonMail.ch |
b182c99ff388cf77aaac8b8dc748cb729a7f377b | 561937ef8f04f58ff15abd86223da01a70f0ddc9 | /extra_classe/forms.py | a61b052932ef2fdafc689081cedc031906c0912d | [] | no_license | dem19/projeto_final | 854d5626cd59639070e496a9a5dad6856bfd8cad | ea681e2776d2dd9f4fb677b5d9eb7efed5a50d8c | refs/heads/master | 2023-04-30T11:53:32.572369 | 2019-07-04T00:52:05 | 2019-07-04T00:52:05 | 194,949,684 | 0 | 0 | null | 2023-04-21T20:34:43 | 2019-07-02T23:51:52 | Python | UTF-8 | Python | false | false | 610 | py | from django.forms import ModelForm
from .models import *
class Horariodisponivel(ModelForm):
class Meta:
model = Professor
fields = ['nome_professor','disciplina','data', 'hora']
class Horariomarcado(ModelForm):
class Meta:
model = Atendimento
fields = ['nome_professor','disci... | [
"dem19vieira@gmail.com"
] | dem19vieira@gmail.com |
ea8884ee217bc2ebacf21f538a754ef50ed61ba6 | b5d9ce70b77672f497bd1f474f3c01230931169f | /econobilidade/econobilidade/wsgi.py | 8e01bd3c1ce6d7414c64aed22433a5202ede9230 | [] | no_license | chemalle/fisconobilidade | a59ef6544f97195da637ba5ad458cf834e3e6030 | 2b9fdd000ce83e7e9927e85895b21d57c644af35 | refs/heads/master | 2021-07-02T17:19:54.864048 | 2017-09-21T20:03:08 | 2017-09-21T20:03:08 | 104,392,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | """
WSGI config for econobilidade 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.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANG... | [
"chemalle@econobilidade.com"
] | chemalle@econobilidade.com |
22fda8f90dfb1891959aef2b078086837855cbe6 | c1532f7e7ebb9f739144e75a92118c234008e74e | /utils/asgi.py | 50e0875055350047d50ea422999ae1e537f30808 | [] | no_license | GitJulie/ProjectSpeech | f6955b7d5eab93f8ca45b143865455748319970e | fd8ce2a0dddc5ff6d73f4bdd83a10a37aae2d15f | refs/heads/master | 2022-12-29T13:22:53.941742 | 2020-10-08T08:56:11 | 2020-10-08T08:56:11 | 273,981,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | """
ASGI config for utils project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTING... | [
"julie.montagne@esme.fr"
] | julie.montagne@esme.fr |
ae0b5e5cbc1a6dd99ee3a76b11137d30575e083a | 4ede26255cf96083499db696869aa1a9b5412bfb | /lesson4_step8.py | c429360a3c190ba5acee45d96886f35619df7faa | [] | no_license | CaerDarrow/stepik---auto-tests-course | 813caaf3f87f8424094c1a14ffbabce74912552d | 88fe13838cef57199e909555ae154f98584edd04 | refs/heads/master | 2020-07-20T00:12:34.421396 | 2019-09-05T10:41:02 | 2019-09-05T10:41:02 | 206,537,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 768 | py | from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium import webdriver
from selenium.webdriver.support import expected_conditions as EC
import time
import math
def calc(x):
return str(math.log(abs(12*math.sin(int(x)))))
link = 'http://suninjuly.github.io/e... | [
"ajon-hol@il-h3.21-school.ru"
] | ajon-hol@il-h3.21-school.ru |
c6beb75082885391bc95b1891a36e80e937a4666 | 642151dff23fff48310139ddc9b89c8bf6a670e3 | /app/base/routes.py | 14e706ea47230919be667a314346e7ccf0af73e5 | [] | no_license | gemicn/flask-navigation | 7ad371e0ac8220c14687f02b130707bf89c81553 | 382940492ca6cae41da44d30fb78c9535e8de955 | refs/heads/master | 2022-09-03T22:51:41.920901 | 2020-05-26T01:37:26 | 2020-05-26T01:37:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | from bcrypt import checkpw
from flask import jsonify, render_template, redirect, request, url_for
from app.base import blueprint
@blueprint.route('/')
def route_default():
return redirect(url_for('nav_blueprint.index'))
| [
"ntuwang@126.com"
] | ntuwang@126.com |
39119f47e5635e12337d7a2f14b7994e7b2e448f | 5a6724ac8086ad79ae742f3c138adfa0e924fb24 | /rallytap/apps/auth/migrations/0049_auto_20151204_1804.py | bec0208340a424ccc85e5f526bc25682c91dfbbf | [] | no_license | mkolodny/down-server | 2295b6fdf3b6d254dadf39866703e92e0deba7c3 | 76ec18ba478b02b5abdce48e8c1c1e24b3309ae5 | refs/heads/master | 2020-04-09T14:18:08.781862 | 2015-12-15T03:22:11 | 2015-12-15T03:22:11 | 31,437,710 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('down_auth', '0048_user_last_posted'),
]
operations = [
migrations.RenameField(
model_name='user',
ol... | [
"michaelckolodny@gmail.com"
] | michaelckolodny@gmail.com |
d5764cbe2038ace864d954163ed2945eebe38507 | b20c902316ea121cdc8b98ff40c8dfae1d5ef3db | /models/engine/db_storage.py | d5f0797e54818127b0ef455d0ea35213a90ec948 | [] | no_license | danielchk/MyAir | f9b8b909d15bbd9075c7b9e124a814fa4022a76f | 02133f367b297c3999aee55ec9875b4609db6f7f | refs/heads/master | 2023-02-22T03:40:15.242585 | 2021-01-21T17:09:35 | 2021-01-21T17:09:35 | 321,668,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,602 | py | #!/usr/bin/python3
"""
Contains the class DBStorage
"""
import models
from models.amenity import Amenity
from models.base_model import BaseModel, Base
from models.city import City
from models.place import Place
from models.review import Review
from models.state import State
from models.user import User
from os import ... | [
"hollowdaniel1@gmail.com"
] | hollowdaniel1@gmail.com |
22673e5c1820b8646b55bf630652d58b49177ef8 | bbf025a5f8596e5513bd723dc78aa36c46e2c51b | /dfs + tree/100 sameTree.py | 41ecd7912ef4878879d74277903c001435c1f6a2 | [] | no_license | AlanFermat/leetcode | 6209bb5cf2d1b19e3fe7b619e1230f75bb0152ab | cacba4abaca9c4bad8e8d12526336115067dc6a0 | refs/heads/master | 2021-07-11T04:00:00.594820 | 2020-06-22T21:31:02 | 2020-06-22T21:31:02 | 142,341,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | from binaryTree import Node
t1 = Node(1)
t1.left = Node(2)
t1.right = Node(3)
t2 = Node(1)
t2.left = Node(2)
t2.right = Node(3)
def treeToList(t):
if t == None:
return []
result = [t.val]
return result + treeToList(t.left) + treeToList(t.right)
def isSameTree(t,s):
t_list = treeToList(t)
s_list = treeToList... | [
"zy19@rice.edu"
] | zy19@rice.edu |
6f56337036667d28f57e911f1ecefc481266020d | 3730c2adf5e71eb356e7573973725e427a5ca295 | /controle_financeiro/views/permissaoView.py | 3cfbca2136d6f400ba76b301645972f8a7823dcb | [] | no_license | MatheusCustodio/controle_finnceiro_TCOI5 | 1b32824712b36b1c4269bc5261cc05d38e19a404 | 41890cc0671e2be12be4b90dce28b050f707d0d7 | refs/heads/master | 2020-05-23T09:46:13.081494 | 2019-07-03T19:21:49 | 2019-07-03T19:21:49 | 186,712,215 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,570 | py | from django.shortcuts import render, redirect, get_object_or_404
from ..forms import PermissaoForm
from ..models import PermissaoModel
def listar(request):
form = PermissaoModel.objects.all()
context = {
'form':form
}
return render(request, 'permissao/listar.html', context)
def inserir(request... | [
"matheus.custodio@oriongestao.com.br"
] | matheus.custodio@oriongestao.com.br |
3c2812664cb6e123f13dceb9f351e3e1875a9686 | 3072ff5f3396354b271da510f0aaadbe5d23f166 | /scripts/sklearn_training_GBT.py | 4d1c6a09ad236c9e0a5fa70d3eeaae4f84e06d35 | [] | no_license | kderoove/CSVv2ScikitLearn | 71156701f6490aa02f376e1687db6d86a30acf89 | 9ac7cbdfb4905b58e496f94116a88ee5c5b7eaba | refs/heads/master | 2021-01-10T08:53:02.675095 | 2016-11-30T13:28:38 | 2016-11-30T13:28:38 | 50,844,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,826 | py | import os
import re
import rootpy.io as io
import rootpy
import rootpy.tree as tr
from ROOT import TH1D
import numpy as np
np.set_printoptions(precision=5)
import root_numpy as rootnp
from sklearn.externals import joblib
log = rootpy.log["/toy_diagnostics"]
log.setLevel(rootpy.log.INFO)
#############################... | [
"kederoov@gmail.com"
] | kederoov@gmail.com |
336c31fca80c5b1edd2c0ae1909608af55e7d349 | 61d22eef5483a046b418a295d2ffa22857a296e1 | /swtest/1952.py | 0a3cb502106980c8bed236da21232f446e6783fd | [] | no_license | seoul-ssafy-class-2-studyclub/hyeonhwa | 7ad680a67ba253eece07a9605a3b983f98a8cca3 | e51163b3135cf529d295bc0d527c98b642f8c367 | refs/heads/master | 2021-10-06T12:57:44.046963 | 2021-10-02T09:42:55 | 2021-10-02T09:42:55 | 198,594,633 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | import sys
sys.stdin = open('input4.txt', 'r')
T = int(input())
for t in range(T):
money = list(map(int, input().split()))
plan = list(map(int, input().split()))
dp = [0] * 12
dp[0] = min(money[0]*plan[0], money[1])
for i in range(1, 12):
dp[i] = min(dp[i-1]+money[0]*plan[i], dp[i-1]+money[... | [
"h3652k@gmail.com"
] | h3652k@gmail.com |
3e27b2ce3b5605cf170794331455238c72a87b29 | aaeb181508556473d16988f1650c3a81163907c5 | /organizer/crop.py | 8fbbd0cbbd75c124e8cfe9b090798342bade635d | [] | no_license | johnfoundations/energyplus-frontend | cd6ebb9a05461db265366fd21ba1704a31b8dd52 | 0f419bfa43fc2379a9f70a4c92e2545c8d245f7b | refs/heads/master | 2021-01-10T09:55:54.066968 | 2010-07-10T15:54:14 | 2010-07-10T15:54:14 | 47,439,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,635 | py | # -*- coding: utf-8 -*-
import Image, ImageChops
def autoCrop(image,backgroundColor=None):
'''Intelligent automatic image cropping.
This functions removes the usless "white" space around an image.
If the image has an alpha (tranparency) channel, it will be used
to choose what to crop.
... | [
"derekkite@d95564f8-3603-11de-82fb-7f665ef830f7"
] | derekkite@d95564f8-3603-11de-82fb-7f665ef830f7 |
f79dd2dab6a9e5e06232020fc812c26b78740da4 | a50e906945260351f43d57e014081bcdef5b65a4 | /collections/ansible_collections/fortinet/fortios/plugins/modules/fortios_test_autod.py | ba72e9dc091a5fba49d6174bde73f232cf0ec22c | [] | no_license | alhamdubello/evpn-ipsec-dci-ansible | 210cb31f4710bb55dc6d2443a590f3eb65545cf5 | 2dcc7c915167cd3b25ef3651f2119d54a18efdff | refs/heads/main | 2023-06-08T10:42:35.939341 | 2021-06-28T09:52:45 | 2021-06-28T09:52:45 | 380,860,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,724 | py | #!/usr/bin/python
from __future__ import (absolute_import, division, print_function)
# Copyright 2019-2020 Fortinet, Inc.
#
# This program 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 th... | [
"a.u.bello@bham.ac.uk"
] | a.u.bello@bham.ac.uk |
c3a41d0fda28cfa3185ed31b58435451a9884be0 | 946a19ae575329be79e0eecbf482873ad5ea85d6 | /Documents/report/ZyohoSec/E.py | d1418f66eed297035fefc5b762d77a775f22bd0d | [] | no_license | genzai0/HIKKOSHI | c2709079a94af44067e618f88fba500a1d79c04a | b947742cc8ccbd169035cf05f6abfa10497dad20 | refs/heads/master | 2020-06-07T02:05:57.907773 | 2019-06-20T10:19:42 | 2019-06-20T10:19:42 | 192,897,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,020 | py | pc1_table = [57,49,41,33,25,17,9,
1,58,50,42,34,26,18,
10,2,59,51,43,35,27,
19,11,3,60,52,44,36,
63,55,47,39,31,23,15,
7,62,54,46,38,30,22,
14,6,61,53,45,37,29,
21,13,5,28,20,12,4]
pc2_table = [14, 17, 11, 24, 1, 5, 3, 28, 15, 6, 21, 10... | [
"naminoyukusaki0311@gmail.com"
] | naminoyukusaki0311@gmail.com |
ad451519dc6cc9b114165e3ad4a8f8cdd767afb1 | a95adc6c55a821304e54e0afb83369761eccb04c | /First_Neural_Network/first_neural_network.py | 6a94b24cc4b4f66175713a5ba08a3f717d82bae8 | [] | no_license | davidsmelo/PyImageSearch-tutorials | 6c4e2d57cb1e51dbf1d796aab4d61bf0327b28d4 | e418406e95536356e775c135a3cd9866a6c780c6 | refs/heads/master | 2022-07-06T22:15:33.399583 | 2020-05-19T09:22:07 | 2020-05-19T09:22:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,975 | py | import cv2
from sklearn.preprocessing import LabelEncoder
from sklearn.model_selection import train_test_split
from keras.models import Sequential
from keras.layers import Activation
from keras.optimizers import SGD
from keras.layers import Dense
import keras.utils as np_utils
from imutils import paths
import numpy as ... | [
"david_melo94@hotmail.com"
] | david_melo94@hotmail.com |
0f7a1a0e9d685fa142ca125e4791c4f714250374 | edb788fe62a4115b278193f932ec52fc69308399 | /tamuhackers19/user.py | 6123e13f497858a4f9fa16eee98c29d2a56479d2 | [] | no_license | tamuhackers/TAMUhack-2019 | 5e23a5edefad257a22f3eb0c3d4f5fb27593f107 | 645a0529ff1a7a314003c30c9eb141c242e2bc8f | refs/heads/master | 2022-12-11T07:11:49.886896 | 2019-01-27T17:36:39 | 2019-01-27T17:36:39 | 167,290,015 | 1 | 0 | null | 2022-09-23T22:21:38 | 2019-01-24T02:37:47 | HTML | UTF-8 | Python | false | false | 213 | py | from flask_login import UserMixin
class User(UserMixin):
def __init__(self, phone_number, code):
self.user_id = phone_number
self.code = code
def get_id(self):
return self.user_id | [
"b30bd351371c686298d32281b337e8@gmail.com"
] | b30bd351371c686298d32281b337e8@gmail.com |
ac50fa692d845d1eeee00f4cca7f93fa4cfa9589 | c0caed81b5b3e1498cbca4c1627513c456908e38 | /src/python/bindings/app/membrane/predict_ddG.py | f9857bead41598d64c25060485f3cf5045c0b739 | [
"LicenseRef-scancode-other-permissive"
] | permissive | malaifa/source | 5b34ac0a4e7777265b291fc824da8837ecc3ee84 | fc0af245885de0fb82e0a1144422796a6674aeae | refs/heads/master | 2021-01-19T22:10:22.942155 | 2017-04-19T14:13:07 | 2017-04-19T14:13:07 | 88,761,668 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 12,380 | py | #!/usr/bin/env python
# :noTabs=true:
# (c) Copyright Rosetta Commons Member Institutions.
# (c) This file is part of the Rosetta software suite and is made available under license.
# (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
# (c) For more information, see http://www.ros... | [
"malaifa@yahoo.com"
] | malaifa@yahoo.com |
6ec54bc427e38fff5352b9d4a525b5c7b1bbc069 | 214ea3873f451940c73c4fb02981b08c8161b23c | /Array/range-addition.py | 8617f93a5c2256d727dd8742f68e760606d4d616 | [] | no_license | Tiierr/LeetCode-Python | 4a086a76a6d3780140e47246304d11c520548396 | e8532b63fc5bb6ceebe30a9c53ab3a2b4b2a75a3 | refs/heads/master | 2021-06-14T04:36:57.394115 | 2017-03-07T06:46:39 | 2017-03-07T06:46:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,589 | py | # Time: O(k + n)
# Space: O(1)
#
# Assume you have an array of length n initialized with
# all 0's and are given k update operations.
#
# Each operation is represented as a triplet:
# [startIndex, endIndex, inc] which increments each element of subarray
# A[startIndex ... endIndex] (startIndex and endIndex inclusive) ... | [
"rayyu03@163.com"
] | rayyu03@163.com |
6168a3b2331db5b8eeef80583560970fab0652a2 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/popish.py | fc482e43309e27670d3e1bb14bc0bb4c6a354519 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 409 | py | ii = [('CookGHP3.py', 3), ('CookGHP.py', 50), ('BailJD2.py', 1), ('ClarGE2.py', 1), ('SeniNSP.py', 1), ('CookGHP2.py', 5), ('ClarGE.py', 5), ('DaltJMA.py', 33), ('WadeJEB.py', 5), ('NewmJLP.py', 1), ('SoutRD2.py', 1), ('SoutRD.py', 1), ('MereHHB3.py', 1), ('HowiWRL2.py', 1), ('HogaGMM.py', 2), ('FerrSDO.py', 1), ('Wilb... | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
a0641d0c62f8c6e39c81e1f9266c4710026b35aa | f3a7b2b71af1ca16e87fcc2c6063670d056f59c6 | /libs/configs_old/MLT/gwd/cfgs_res101_mlt_v1.py | d7bff74ce9ce7235a49aac2edc2032e4000f6281 | [
"Apache-2.0"
] | permissive | DLPerf/RotationDetection | 3af165ab00ea6d034774a7289a375b90e4079df4 | c5d3e604ace76d7996bc461920854b2c79d8c023 | refs/heads/main | 2023-07-16T06:01:42.496723 | 2021-08-28T03:17:39 | 2021-08-28T03:17:39 | 400,690,285 | 0 | 0 | Apache-2.0 | 2021-08-28T03:16:55 | 2021-08-28T03:16:55 | null | UTF-8 | Python | false | false | 3,449 | py | # -*- coding: utf-8 -*-
from __future__ import division, print_function, absolute_import
import os
import tensorflow as tf
import math
from dataloader.pretrained_weights.pretrain_zoo import PretrainModelZoo
"""
FLOPs: 737874381; Trainable params: 51265150
trainval/test + sqrt tau=2
"""
# ------------------------... | [
"yangxue0827@126.com"
] | yangxue0827@126.com |
cad9a13325be66e03f2c55ef2db7d5b6f3300796 | f9e3f8901b755841473ef7780ed69e458e5d6293 | /jnuke/gizmos/unsorted/fixPaths.py | ed5e8aebc6250ccd632820eb6d875b1eeb6e0408 | [] | no_license | tws0002/jeeves | 2170ec0866fd9cfe0e41d480f9679009b741dc14 | db198f0f02d4fd24af29dfdc0c22047c6dfd6e4f | refs/heads/master | 2021-01-11T19:11:32.540190 | 2015-01-18T19:11:15 | 2015-01-18T19:11:15 | 79,332,609 | 1 | 0 | null | 2017-01-18T11:13:34 | 2017-01-18T11:13:34 | null | UTF-8 | Python | false | false | 2,089 | py | # Copyright (c) 2009 The Foundry Visionmongers Ltd. All Rights Reserved.
#
# Example that attempts to fix all the missing read paths in a nuke script.
#
# Works on Read, ReadGeo, or Axis nodes. Doesn't work on proxy paths.
import os, nuke
def getFrame( filename, frame ):
ffile = filename
if ffile.find ( "%" ) ... | [
"elliott.james,smith@gmail.com"
] | elliott.james,smith@gmail.com |
a07e58b282f7898881dacafa8c747816a7315947 | cd9e21d81583e90d14e78846f0cb973bb05a8b0d | /apps/__init__.py | d66b74f62cdd13c68d40a1848c8e5cbaac3d58fe | [] | no_license | yueludanfeng/djangostart | 861d9657aa20e99d4fe87131285e050f8e43f37e | 61bbecda3078b30f03efb5ecd1b02b8303cd1d7d | refs/heads/master | 2021-01-20T01:38:59.930223 | 2017-04-25T03:35:49 | 2017-04-25T03:35:49 | 89,313,176 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19 | py | __author__ = 'lxm'
| [
"yueludanfeng@gmail.com"
] | yueludanfeng@gmail.com |
9b73d63340c959b69fac7d9c9d0f12ede5f2c25c | eaf95c9ee7c7c8548c30cf0fdd9fbc3cdfd20f31 | /removedoublesfromall/__init__.py | 036860e5f3e7b7afdd9815b5bdacc187af124e1d | [] | no_license | Fl0GUI/blender-scripts | 95566a13be6b20180707e55fd1bb7b365c68d623 | 3d6b8cce91112ff95fc7bb8011f173b71807e707 | refs/heads/master | 2020-04-18T04:26:05.606063 | 2020-01-02T18:10:32 | 2020-01-02T18:10:32 | 167,238,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,522 | py | import bpy
bl_info = {
"name": "remove all the doubles",
"description": "removes doubles from all meshes",
"author": "Flor Guilini",
"version": (420, 69),
"blender": (2,80,0),
"location": "Object",
"warning": "I don't know what the heck I'm doing",
"wiki_url": "https://github.com/Fl0GUI... | [
"flor.guilini@hotmail.com"
] | flor.guilini@hotmail.com |
0638fe82fed7e47502334e6a6fc971322690549a | 8f73125d816f3b44b03159dba272e095f37c1f0c | /scripts/viewhdf.py | dc40b917231106ad0c60945affdc86ff17e43524 | [] | no_license | tarah28/nanopore | 356b218e5ca3dfb98e4dd7232d8f1c6303f899d1 | ec716ee15ab26d7bf33b7f7352ab8cad1c369ae8 | refs/heads/master | 2021-05-27T06:21:51.958938 | 2014-09-10T11:36:07 | 2014-09-10T11:36:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | #!/usr/bin/python
import h5view
import sys
for fn in sys.argv[1:]:
with h5view.open(fn) as f:
print(f)
| [
"n.j.loman@bham.ac.uk"
] | n.j.loman@bham.ac.uk |
2e8a022d3ba3022ee59727e88fe7c3c7b818ad36 | d2f45145b8a8ab51c90ceb62f1a184996bf649c0 | /getfilename/__init__.py | 2b6c8843bbf02f49f2ca29b366561a1fba4a65fa | [
"MIT"
] | permissive | raguay/GetFileName | 3de65fc8494c27462978096c9ae15e2d0203b738 | 604c1d551cb69031b86f3c69abb9dc84d7867493 | refs/heads/master | 2021-05-12T00:31:49.250616 | 2018-02-14T07:31:45 | 2018-02-14T07:31:45 | 117,537,082 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 929 | py | from fman import DirectoryPaneCommand, show_alert
from fman.url import as_human_readable
from fman.clipboard import set_text
import os.path
import ntpath
class getFileName(DirectoryPaneCommand):
def __call__(self):
filesSelection = self.pane.get_selected_files()
if not filesSelection:
... | [
"raguay@customct.com"
] | raguay@customct.com |
06a50ac1e728fab6f9d52e822811aac70ca81d33 | 81c3c38b6265fd953f2a4f09011a82dbb3c97058 | /Day - 53/map.py | 699f9069fc593bcd51824ce205f3fcc01245c1b4 | [] | no_license | KannanPalani57/100DaysOfCode | ec60b7aed92fce1afa043c157b5d6beec0f527a2 | e1947e9d80461758c2996dd49dcd84edda6ef297 | refs/heads/master | 2023-01-21T05:08:53.415395 | 2020-07-03T13:02:18 | 2020-07-03T13:02:18 | 243,007,782 | 3 | 1 | null | 2023-01-06T04:23:38 | 2020-02-25T13:35:52 | JavaScript | UTF-8 | Python | false | false | 207 | py |
def addFive(x):
return x + 1
numbers = [1,2,3,4,5]
mappedList = list(map(addFive, numbers))
print("The mapped list are , "+str(mappedList))
list2 = list(map((lambda x: x+2), numbers))
print(list2) | [
"kannangreener@gmail.com"
] | kannangreener@gmail.com |
6f27a784b92807e7f67299bbffc957c9a2bd379a | 9d484077026b7fcf26188d77281f573eaec1f1d3 | /utils/reference_genomes.py | fc7683a365dd302daa0a34bb8c60602e2eead1c7 | [] | no_license | gaberosser/qmul-bioinf | 603d0fe1ed07d7233f752e9d8fe7b02c7cf505fe | 3cb6fa0e763ddc0a375fcd99a55eab5f9df26fe3 | refs/heads/master | 2022-02-22T06:40:29.539333 | 2022-02-12T00:44:04 | 2022-02-12T00:44:04 | 202,544,760 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,530 | py | import os
import csv
import pandas as pd
from settings import GIT_LFS_DATA_DIR
def known_genes(tax_id=9606, index_field=None):
"""
Get dataframe of known genes for the supplied taxonomy ID (default: human)
Other options: mouse (10090)
:param index_field: If supplied, reindex the dataframe by this fiel... | [
"g.rosser@qmul.ac.uk"
] | g.rosser@qmul.ac.uk |
3a23a0fa6b2df3de7ac1de52c4ea86e8a827ab99 | 54c90c37d6fc0942eb5e3d28de108b6bf7b494e4 | /Homework/hw13/tests/cyber-monday-part2.py | 95aa24d510af52d110144073a911701b56a8a1e7 | [] | no_license | kanakgarg/CS61A-Fall-2017 | 82ef434ad52b160eb34e2575c54275a9f2caeca0 | d9ee467723502f3077ceaaf99a4a40a107381bc4 | refs/heads/master | 2022-01-10T20:04:28.348041 | 2019-06-03T18:45:56 | 2019-06-03T18:45:56 | 155,434,691 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | test = {
'name': 'cyber-monday-part2',
'points': 0,
'suites': [
{
'cases': [
{
'code': r"""
sqlite> SELECT * FROM lowest_prices;
Hallmart|GameStation|298.98
Targive|QBox|390.98
Targive|iBook|110.99
RestBuy|kBook|94.99
Hallmart... | [
"kanakgarg@gmail.com"
] | kanakgarg@gmail.com |
2469baef7d63dc0312a7232192a2d47770aa10f8 | 1b68eb16fbc5fe7cc64c250958878cc5f7a6cc28 | /scripts/flowcells/test_barcode_masks.py | e79d9fb7def2ded39cca1bd1d644d3c114535524 | [] | no_license | StamLab/stampipes | 537ff3cfcaa7e502dfdf7a08443d912ecb20c16e | 4680d91ad7c134fd1aba4128a51a3708477fbc65 | refs/heads/main | 2023-08-20T19:14:05.517397 | 2023-07-30T21:13:47 | 2023-07-30T21:16:13 | 22,504,544 | 0 | 10 | null | 2023-08-01T22:44:42 | 2014-08-01T10:02:18 | Python | UTF-8 | Python | false | false | 1,523 | py | import random
from typing import List, Tuple
import pytest
from barcode_masks import get_barcode_masks
@pytest.mark.parametrize("_name,read_len,index_len,lib_lengths,expected", [
("basic-paired", 75, 8, [(8, 8)], ["y75,i8,i8,y75"]),
("toolong-paired", 75, 10, [(8, 8)], ["y75,i8n2,i8n2,y... | [
"nelsonjs@altiusinstitute.org"
] | nelsonjs@altiusinstitute.org |
6904036ce2502f7663f22285429d28ef88053170 | 771b50f241c6bd40c348b8bc6bd969e65aabbe52 | /vendors/JacMLDash/mldash/web/ui_methods/ui_methods.py | c1f7cdf6e9e8a9ddd72d0c1177eb7d43d8c969dd | [
"MIT"
] | permissive | sakshamjindal/NSCL-PyTorch-Release | 0abd26520b9e3f64a8506b1f684f5a830feaa167 | 830842d10da68f82916c131e1f1cbf31b5f8b918 | refs/heads/master | 2022-12-30T05:50:05.924479 | 2020-10-25T13:56:32 | 2020-10-25T13:56:32 | 306,860,381 | 1 | 0 | MIT | 2020-10-25T13:56:33 | 2020-10-24T10:36:11 | Python | UTF-8 | Python | false | false | 2,913 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# File : ui_methods.py
# Author : Jiayuan Mao
# Email : maojiayuan@gmail.com
# Date : 09/06/2019
#
# This file is part of JacMLDash.
# Distributed under terms of the MIT license.
import json
from jacinle.utils.printing import kvformat, stformat
from jacinle.utils.me... | [
"saksham.jindal@fractal.ai"
] | saksham.jindal@fractal.ai |
f85eef8c8bccf9e9831e0c08277a03289a82d45b | 287941090e5c97c9d64731ba33ddaa11a78263be | /bin/track_template.py | 28e9783616e5b9e620ef0e955a2f99365fceb585 | [] | no_license | iiiir/ucsc_track_hub | d7719c2acd8d584a0413514cfd20f9ba81c4da08 | 1e8bff35771a1fbc4ddf64d6d0d32aa18f3bceca | refs/heads/master | 2021-01-10T10:17:55.779667 | 2016-01-12T22:35:22 | 2016-01-12T22:35:22 | 49,533,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,292 | py | #!/bin/env python
def big_track():
return '''
track %s
bigDataUrl %s
parent %s on
subGroups %s
shortLabel %s
longLabel %s
type %s %s
visibility pack
'''
def group_track():
return '''
track SJGROUP
compositeTrack on
subGroup1 subgroups SubGroups GROUP3=GROUP3 GROUP4=GROUP4 SHH=SHH UNKNOWN=UNKNOWN WNT=WNT
subG... | [
"shuoguo@gmail.com"
] | shuoguo@gmail.com |
f942e1aeb559fdac152b1e65d28e59acc2f85863 | 7d172bc83bc61768a09cc97746715b8ec0e13ced | /catalog/migrations/0003_saleorder.py | 65f1ca2bf38a92aa7ef0c747114f6b61e4a61de3 | [] | no_license | shivam1111/jjuice | a3bcd7ee0ae6647056bdc62ff000ce6e6af27594 | 6a2669795ed4bb4495fda7869eeb221ed6535582 | refs/heads/master | 2020-04-12T05:01:27.981792 | 2018-11-08T13:00:49 | 2018-11-08T13:00:49 | 81,114,622 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2017-03-30 07:24
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('catalog', '0002_s3object'),
]
operations = [
migrations.CreateModel(
... | [
"shivam1111@gmail.com"
] | shivam1111@gmail.com |
42cab140d610bbd29733bcfc0cd8cb984adb6dc4 | aae74f5d7ae382251c733b65b9e71eebf33b37ef | /1.var.py | 5f388f00c51a929adcf873e4e4420f1563214eb6 | [] | no_license | vladmer27/My-python-lessons- | fc8aab26136e5b7a6b8757dbfa9e3fbff4421003 | 33b1460d60111e80ac9d3f5684cd4fbd05259002 | refs/heads/main | 2023-06-05T09:51:33.912069 | 2021-06-24T11:19:13 | 2021-06-24T11:19:13 | 370,652,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,277 | py | # переменные
my_var_1 = 100
my_var_2 = 200
c = my_var_1 + my_var_2
#комментирование - ctrl + /
# print(c)
PI = 3.14
#*** Data types ***
#Int - целое float - натуральное число
_int = 100000
_float = 500.001
my_str = "hello 'there'"
# print(my_str)
# print(_float)
# булевы типы данных (boolean, bool)
# true/false
my... | [
"vlad_2421996@mail.ru"
] | vlad_2421996@mail.ru |
ce6262c9cb7a4e54943ad60e11cbc087e6f1d08e | 3bad5405291b0caa97b2efb0a422f2bfe5a338ef | /webapp/pastbin_project/pastbin_project/urls.py | 802d31f3f93d4a197d25fac90d567d51bc65ad85 | [] | no_license | cyril7/mygit | 3aca60c204425522c0e01f897a0df90fc90f29ba | b323493bcd9d38aa40f1740bfc6be67dc8fd6eb3 | refs/heads/master | 2023-07-06T17:59:17.711961 | 2023-07-05T10:10:54 | 2023-07-05T10:10:54 | 33,746,822 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,291 | py | from django.conf.urls import patterns, include, url
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'pastbin_project.views.home', name='home'),
# url(r'^pastbin_project/', include('pastbin_pro... | [
"ericpenguins@gmail.com"
] | ericpenguins@gmail.com |
6a052f31fa2f030475ba2debea5e5ae8109e2018 | b51395ad5eff9f17ba6f984669e98f2485203788 | /awards/migrations/0001_initial.py | 9986d8edb970e79b743575ee39edaaf342002250 | [] | no_license | Balvine/Awwards | 683642ebc6d930fa1a9f9b87376b82927d777c9e | 02ebe7b330bc8782771f2f617cdbfc39a79d4fde | refs/heads/master | 2023-01-06T19:08:05.438648 | 2020-10-28T09:05:30 | 2020-10-28T09:05:30 | 306,539,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.17 on 2020-10-25 15:48
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth'... | [
"balvy075@gmail.com"
] | balvy075@gmail.com |
6ad010e433f3847a6d478e0b22994fe1007bc71e | 2774cd543667e48ad2f44539ff77bac2e84265ef | /ecell/ui/model_editor/ComplexShape.py | a9cbaddd22851fb517e0a9223184238b80f9ee93 | [] | no_license | ecell/ecell3-model-editor | 279fbe6797224ad319caa66731309923aed4cee5 | 02fcbb7085bd1410dcafcfb980c5ad138795a724 | refs/heads/master | 2021-01-19T06:40:17.464207 | 2008-02-27T09:25:44 | 2008-02-27T09:25:44 | 1,831,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,937 | py | #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#
# This file is part of the E-Cell System
#
# Copyright (C) 1996-2007 Keio University
# Copyright (C) 2005-2007 The Molecular Sciences Institute
#
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#
... | [
"moriyoshi@f1531174-cb10-0410-9fe6-89aa7ac3eedb"
] | moriyoshi@f1531174-cb10-0410-9fe6-89aa7ac3eedb |
09dec256d7e185853e651ea7cb426c2f622660c8 | e24cc8a99ae614c16da3e0486cea3af59bbe1f62 | /python/program_020.py | ac27c183bd32d41151e7d20ca210f253a1ff1714 | [] | no_license | JamesonSherman/Python_Repository | 197d9ba3b2f59eb3613029c057402c50481c000d | fad8cd7cdc3f5f4f064ef27bbc75d97befff9377 | refs/heads/master | 2020-04-06T11:57:07.653370 | 2018-11-13T19:51:10 | 2018-11-13T19:51:10 | 157,437,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 581 | py | #####################################################
### Name: James Sherman
### Student ID: 900114
### Assignment: Problem Set 2
### Program Name: program_20.py
### Due Date: October 11, 2018 1:15pm
#####################################################
list1 = [5, 38, 9, 45, 3, 38, 66... | [
"noreply@github.com"
] | noreply@github.com |
370bdedfa4af55d99c1d4c1db116c26d97c39037 | aea96aa406250c3a2a8f2799e6cbbad256c262c3 | /EG/reduce_str_float.py | f08662bdfd724cd99ca78245308d53339a3013ec | [] | no_license | xiaochuanjiejie/python_exercise | cb0ffaa4b7c961c8ca9847526c84ee6ba261620c | 710fa85fd2d7a17994081bdc5f8b5ff66b77416e | refs/heads/master | 2021-01-21T16:18:04.640093 | 2017-08-11T10:02:49 | 2017-08-11T10:02:49 | 95,403,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | #coding: utf-8
import math
from functools import reduce
s = '1234.5678'
index = s.index('.')
n = len(s) - 1 - index
s = s.replace('.','')
print s
def chr2num(s):
return {'0':0,'1':1,'2':2,'3':3,'4':4,'5':5,'6':6,'7':7,'8':8,'9':9}[s]
print map(chr2num,s)
lst = map(chr2num,s)
# lst = list(map(chr2num,s))
# print... | [
"xiaochuanjiejie@gmail.com"
] | xiaochuanjiejie@gmail.com |
4dc8b1cb224998e9deef88383369e47bde61a18b | 315cec5ad7f72f99a22a5c22b0ea459413a9ca3f | /py_intro/lesson03/task06.py | ee822bc59826cbdecd084f7989b31b40abb8e7c0 | [] | no_license | azhuma/geek | 53e7e8930c031d6da0193112bee8742493759d13 | 1b3ce4eac193421b32b3a7d88623c1fd756bd7fa | refs/heads/master | 2021-01-15T00:53:17.459018 | 2020-11-19T11:45:58 | 2020-11-19T11:45:58 | 242,819,613 | 0 | 0 | null | 2020-11-19T11:48:34 | 2020-02-24T19:07:50 | Jupyter Notebook | UTF-8 | Python | false | false | 251 | py | def int_func(str):
return str.title()
def process(str):
wl = str.split()
for i in range(len(wl)):
wl[i] = int_func(wl[i])
return " ".join(wl)
print(f"result={int_func('text')}")
print(f"result={process('this is my text')}")
| [
"akylbek.zhumabayev@processing.kz"
] | akylbek.zhumabayev@processing.kz |
da7bc737ca8c812ae6b9e3231177c6e3ef5354f9 | 89d236554b6d424f1864c7dde987f7b9619ea252 | /src/online_triplet_loss.py | 4405f69f41fc60212936c3f003680108e5385ea2 | [
"MIT"
] | permissive | gvravi/FaceNet_TF-2.0 | 56bda61f4ba24be5c85e6a6196d2d13e96fc7b7a | 2fe54ed53af46c89b86ae347511b4c758c2f988c | refs/heads/master | 2022-11-16T18:14:54.563864 | 2020-07-17T10:01:09 | 2020-07-17T10:01:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,683 | py | import tensorflow as tf
class Online_Mining(tf.keras.layers.Layer):
def __init__(self,margin = 0.6):
super(Online_Mining, self).__init__()
self.margin = margin
def call(self, total_input):
self.inputs,y_inputs = total_input
self.y_inputs = tf.reshape(y_inputs,[y_in... | [
"noreply@github.com"
] | noreply@github.com |
50fa25dc930404d0d7198078e8b171b750953f5c | ca5c5becd8b57b4d77af3aa776b3c478ca962bf0 | /src/main/ODR_MC/branches/v3/upFun.py | 28e5d2a45a215fc146e7f361050eb44ad40d186e | [] | no_license | gerritholl/Harmonisation | 42118c46d093115ddd87fca094a9ac8881aede71 | 31b8bd5a0da8c6fc4a31453cf7801fcca25d4951 | refs/heads/master | 2021-09-07T03:07:03.843117 | 2017-12-18T13:57:38 | 2017-12-18T13:57:38 | 110,711,229 | 0 | 0 | null | 2017-11-14T15:53:19 | 2017-11-14T15:53:19 | null | UTF-8 | Python | false | false | 4,966 | py | """ FIDUCEO FCDR harmonisation
Author: Arta Dilo / NPL MM
Date created: 09-01-2017
Last update: 17-01-2017
Functions for propagating uncertainty to the calibrated radiance:
- function to calculate first derivatives to measurement eq. variables,
- and first derivatives to calibration coefficients;... | [
"seh2@eoserver.npl.co.uk"
] | seh2@eoserver.npl.co.uk |
a4a41c511ad4e482fe95c4a61ab6d49518ec4964 | 2a3606551a4d850a7b4d6a4e08089c51108ef7be | /plugin.video.fanfilm/resources/lib/libraries/cleangenre.py | 855f071415fcee23e4105c7f8e444d07c12b232c | [
"GPL-3.0-only",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | rrosajp/filmkodi | a6bb1823f4ed45453c8b8e54ffbd6a7b49f44450 | 0162cde9ae25ddbf4a69330948714833ff2f78c9 | refs/heads/master | 2021-09-18T06:03:17.561062 | 2018-06-22T23:28:53 | 2018-06-22T23:28:53 | 234,768,781 | 1 | 0 | Apache-2.0 | 2021-06-03T20:33:07 | 2020-01-18T17:11:57 | null | UTF-8 | Python | false | false | 42,826 | py | # -*- coding: utf-8 -*-
'''
FanFilm Add-on
Copyright (C) 2016 mrknow
This program 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 ... | [
"mrknow@interia.pl"
] | mrknow@interia.pl |
aff2907b48026f62d9a296f9ebf1f41e450063f9 | 66a08c7da73bacd98452d69a23486e70f9338b4a | /build/navigation/costmap_2d/catkin_generated/pkg.installspace.context.pc.py | a66adf2fbe72440ac5563d7b02a341a9ed4f7c36 | [] | no_license | StephenWhit/MazeMappingROS | bd21aa3b10b694c511c4613a79bebd91a5ce11b0 | 59bdf30de0df375362879e01f7ac3e08b1019b9d | refs/heads/master | 2020-04-09T10:41:15.413221 | 2018-12-07T20:52:05 | 2018-12-07T20:52:05 | 160,279,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,281 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/stephen/finalProject/install/include;/usr/include/eigen3;/usr/include".split(';') if "/home/stephen/finalProject/install/include;/usr/include/eigen3;/usr/include" != "" else []
PROJECT_CATKIN_DEP... | [
"stephenwhit897@gmail.com"
] | stephenwhit897@gmail.com |
f6e938446c3e9eb27bff2f6b8a85c21a34381a94 | 345acf7452ae27faa8cffba6f8bd5a976c43e60f | /data/MIND.py | 687d70cc5ac47b554d3a84a4d2ea0ae7db8c3909 | [
"MIT"
] | permissive | Hi-Simon/NRMS_Pytorch_MIND | 42e2252ef921355a502c48aedf1d0e4d3ccbc10a | f3f9ca3b2069d27aa8975c833f36fababaf8f00c | refs/heads/main | 2023-07-07T20:24:17.383881 | 2021-08-19T07:19:14 | 2021-08-19T07:19:14 | 397,846,560 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,419 | py | from torch.utils.data import Dataset
import pickle
import numpy as np
import csv
import random
import re
from tqdm.auto import tqdm
class MINDataset(Dataset):
def __init__(self,
hparams,
news_file,
behaviors_file,
wordDict_file,
... | [
"34621564+Simon-Lon@users.noreply.github.com"
] | 34621564+Simon-Lon@users.noreply.github.com |
758bccdb4bbf4799379014e0d650369b5e6516f2 | edd9b317496e2561ac99e36ae833a270cba3ebd6 | /ECS 32A/ECS32A/Ass3/part1.py | 698b2aff0024fcc4d751e2bfae6be1dff1f0a374 | [] | no_license | zoubohao/UC_Davis_STA_CS_Coureses | 832fc3eb68a15f4cfa8ac0af55e026411c70532c | f09579f0e46ea976807548f8b7bdb18fa7fc0bdc | refs/heads/master | 2023-04-07T12:57:26.242818 | 2021-04-02T00:00:00 | 2021-04-02T00:00:00 | 256,613,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py |
n = int(input("Enter N: "))
i = 1
sumN = 0
while i <= n:
sumN = sumN + i ** 2
i += 1
print("The sum is: {}".format(sumN))
| [
"bhzou@ucdaivs.edu"
] | bhzou@ucdaivs.edu |
80c5356a05a9b735e32ddb0a37181e086ea187ef | 7249e0f089ef1defc229063c303fa056953d9409 | /Assignment03/ex18.py | 99139894d35c9f59b9e42c7a15c0df82fa030914 | [] | no_license | JohnHadish/hort503 | 94ad78b4e67a5c1c6a280f62046c8618563b2948 | 7463e53a349c322ce12e76a9ce20c16b6873bfab | refs/heads/master | 2018-09-22T17:23:29.857830 | 2018-06-06T18:47:47 | 2018-06-06T18:47:47 | 117,146,134 | 0 | 0 | null | 2018-01-15T07:03:09 | 2018-01-11T19:51:57 | Python | UTF-8 | Python | false | false | 481 | py | #This one is like your script with argv
def print_two(*args):
arg1, arg2 = args
print(f"arg1: {arg1}, arg2: {arg2}")
#Takes two arguements and prints them out
def print_two_again(a1, arg2):
print(f"arg1: {a1}, arg2: {arg2}")
#Takes 1 arguement and prints it out
def print_one(arg1):
print(f"arg1: {arg1... | [
"john.hadish@wsu.edu"
] | john.hadish@wsu.edu |
b6ea6fe721b4f557ccddee3acac575884f7e3ba1 | 16ebd865ce7930b092536f21e083e85adf767598 | /src/FactorCategory.py | 5f805e0f9a9f916ec2c57b31132c1b222d4a0be0 | [] | no_license | dunn0052/GTD_V3 | 9b8a43d1b0dc69a34b8432380796a85fe0db3bc4 | 5fae637b0a84af8726594cb71f95e92a2ca5da99 | refs/heads/master | 2022-12-06T23:56:02.149218 | 2020-06-26T12:42:23 | 2020-06-26T12:42:23 | 262,635,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,984 | py | from queue import Queue
class Node:
def __init__(self, value: bool):
self.v = value
self.l = None
self.r = None
class BinaryTree:
#nth most common primes to condense groupings
PRIMES = [2,3,5,7,11,13,17,19,23,29]
# Modular inverse > ord("z") * max_len
# so that modular in... | [
"dunn0407@umn.edu"
] | dunn0407@umn.edu |
6795849f26ad1104be9a8a8a594ca7719b1ba0f5 | c1b3a407abbd27cb54670a4d91b5e31010fe0d62 | /setup.py | 15d97ab0b3cad5b4c2d2ceb028291cff78c71ca4 | [] | no_license | goabout/goabout-survey | 3c4bc1ffd5d217b6a1851eb062b3d589c3fe3815 | b4737bfa17e559fcaaf36b21e19b6e9865fe2e34 | HEAD | 2016-09-05T17:26:59.579535 | 2015-03-06T13:30:02 | 2015-03-06T13:30:02 | 31,770,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 753 | py | from setuptools import setup
import survey
setup(
name = survey.__name__,
version = survey.__version__,
author = survey.__author__,
author_email = survey.__email__,
license = survey.__license__,
description = survey.__doc__.splitlines()[0],
long_description = open('README.rst').read(),
... | [
"matthias.hogerheijde@goabout.com"
] | matthias.hogerheijde@goabout.com |
3b5c6b2bef3a8ad8b85b1a0e4ff87204562525a3 | 7871ac34b07ffdc1ade7d552f032c11cf0fb38ec | /new.py | c2b5b5688ef97e4bc0f309b76ea7e880299dcca0 | [] | no_license | qxqz/ML_practice | ca81e5635c4f1fefdce974cf4d86ee11fccdb333 | 842a4f26516d440043b60e29067880bc585e4a84 | refs/heads/master | 2023-06-20T07:27:23.958658 | 2021-07-15T09:57:46 | 2021-07-15T09:57:46 | 386,237,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16 | py | print('blabla')
| [
"qxqz3333@gmail.com"
] | qxqz3333@gmail.com |
42cecea00b7391ed5181646dc7c931c9a4f52077 | b94f8b45877aa1a5f49ee2b126aeb1e97aa563a0 | /modules/bot_utils.py | 562818bd0700bb6eaa359f1064c736901121df20 | [
"MIT"
] | permissive | FFrost/CBot | 32670eab23e841dff3e3413d54ec59be800d7d81 | f7361ae6d417f42498589fa2903e2e998b8c25fc | refs/heads/master | 2023-08-04T17:11:24.971923 | 2022-07-06T20:29:50 | 2022-07-06T20:29:50 | 111,182,933 | 4 | 0 | MIT | 2023-07-20T15:09:35 | 2017-11-18T06:35:26 | Python | UTF-8 | Python | false | false | 7,320 | py | import discord
from discord.ext import commands
from modules import utils
from typing import Optional, List
# this file is for utility functions that require access to discord
class BotUtils:
def __init__(self, bot):
self.bot = bot
# writes to a file
# input: filename, filename to write to
... | [
"FFrost@users.noreply.github.com"
] | FFrost@users.noreply.github.com |
a1207f8f3579ed5adb2f6c3c468f28880b3c9aee | 2b0d01dc35ca63752c9b143be26103309548ba40 | /processa_img.py | b457345f02ff5823f5beb7f166eb2b4551d06c2f | [
"MIT"
] | permissive | iamgomes/geoconding | d07dea3859ff82f9db2cbb0fca1e3c0446343d29 | 2f11931907e191e1bc8ddceef4ba9c79c3411d34 | refs/heads/master | 2021-10-23T23:42:21.177027 | 2020-03-18T01:10:14 | 2020-03-18T01:10:14 | 248,107,511 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | import cv2
import matplotlib.pyplot as plt
#%matplotlib inline
import numpy as np
face_image = cv2.imread('img_streetview/teste.jpg')
gray_img = cv2.cvtColor(face_image, cv2.COLOR_BGR2GRAY)
plt.figure(figsize=(10,10))
plt.imshow(gray_img, cmap='gray') | [
"williamgomes@MacBook-Pro-de-William.local"
] | williamgomes@MacBook-Pro-de-William.local |
dd5a9976dc8993b4dfa82ebd52d122894f902c7c | 9b588d1dd05cb774d57f436c0f4daafae635b244 | /Timetable_task/Timetable_task/settings.py | e9ed31491edc1f8e34974e5d3bd6ff6db20d2737 | [] | no_license | MounikaDeveloper/Timetable | a0f91f8831d397a65281319b3a0d2bae0b80e79e | 734c6d219b6c0c13cfc9f516191ac2f54bed4598 | refs/heads/master | 2022-11-25T23:46:57.267386 | 2020-08-04T12:34:55 | 2020-08-04T12:34:55 | 282,472,326 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,316 | py | """
Django settings for Timetable_task project.
Generated by 'django-admin startproject' using Django 2.2.3.
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/
"""
impor... | [
"57697586+MounikaDeveloper@users.noreply.github.com"
] | 57697586+MounikaDeveloper@users.noreply.github.com |
90a99102e6ad23ec94bd9649921692bcd0e04eb7 | 76e8dddb8d12906514f0004f32af8ef305ad43e9 | /Dragon/python/dragon/vm/tensorflow/ops/nn_ops.py | ce0d7c84235221fc898b94a97501b81947b4cb8a | [
"BSD-2-Clause"
] | permissive | XJTUeducation/Dragon | bf98bd3a10449fa8948e0409a0243d666324b749 | 843204956ff7775c49d0d6193e1cd77ab512fbdd | refs/heads/master | 2020-04-10T13:02:17.446430 | 2018-12-04T07:56:55 | 2018-12-04T07:56:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,799 | py | # ------------------------------------------------------------
# Copyright (c) 2017-present, SeetaTech, Co.,Ltd.
#
# Licensed under the BSD 2-Clause License.
# You should have received a copy of the BSD 2-Clause License
# along with the software. If not, See,
#
# <https://opensource.org/licenses/BSD-2-Clause>
#
# ... | [
"ting.pan@seetatech.com"
] | ting.pan@seetatech.com |
e3715d7cbdd7977bd57b89bffe7e1c7374827eb2 | 40fc1d38f2d4b643bc99df347c4ff3a763ba65e3 | /arcade/space_shooter/setup.py | 899a87123f997e3c1122f83ff3f7a77fa541a2a7 | [
"LicenseRef-scancode-public-domain",
"MIT",
"CC-BY-4.0",
"CC-BY-3.0"
] | permissive | alecordev/pygaming | 0be4b7a1c9e7922c63ce4cc369cd893bfef7b03c | 35e479b703acf038f47c2151b3759ad852781e4c | refs/heads/master | 2023-05-14T05:03:28.484678 | 2021-06-03T10:11:08 | 2021-06-03T10:11:08 | 372,768,733 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 736 | py | import sys
from cx_Freeze import setup, Executable
import os
# Dependencies are automatically detected, but it might need fine tuning.
build_exe_options = {"packages": ["os", "pygame"]}
# GUI applications require a different base on Windows (the default is for a
# console application).
base = None
if sys.platform == ... | [
"alecor.dev@gmail.com"
] | alecor.dev@gmail.com |
79f3589507f3de821b18244ef90d9281c4d5bd57 | 1c726a56f75d6d57e9bf72e1ab1ae5f044e04a08 | /CLibWally/libwally-core/src/test/test_psbt.py | d81f6acca750d72aa479b00d1f6d0483c5bb7960 | [
"MIT"
] | permissive | Fonta1n3/libwally-swift | 7958d9a9b39461a763db37e5139ff0dfd0ab8257 | 72fe62b51cdc63f50b94aa044a23568d26863897 | refs/heads/master | 2020-12-09T11:34:38.754159 | 2020-08-12T02:07:40 | 2020-08-12T02:07:40 | 242,262,901 | 0 | 0 | MIT | 2020-02-22T01:52:19 | 2020-02-22T01:52:18 | null | UTF-8 | Python | false | false | 5,274 | py | import binascii
import base64
import json
import os
import unittest
from util import *
class PSBTTests(unittest.TestCase):
def test_serialization(self):
"""Testing serialization and deserialization"""
with open(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'data/psbt.json')) as f:
... | [
"fontainedenton@googlemail.com"
] | fontainedenton@googlemail.com |
ec71f7f50fdfafa85cf8e6aa083d19b2a07346e5 | 7f26cd2b4f1c20e0b7f8c246b41c3d163f3287fb | /img_inpainting/inpaint_image_real.py | cb02610a5c46cc89f5772046045d9602515bded1 | [] | no_license | GU1020/occluded-offline-HCCR | 2059455b288a180468028e20b9770363298a7915 | f49a687df1bc704d3e420062a13c87a8057f6ae5 | refs/heads/master | 2020-04-29T10:46:15.525127 | 2018-09-30T13:15:31 | 2018-09-30T13:15:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 865 | py | import numpy as np
from glob import glob
import cv2
from model import generator_model
def load_data(start, end):
path = glob('/home/alyssa/Desktop/the_second/D5/*')
batch_images = path[start:end]
imgs_hr = []
for img_path in batch_images:
img = cv2.imread(img_path)
imgs_hr.append(img)... | [
"2120171111@bit.edu.cn"
] | 2120171111@bit.edu.cn |
b058d7c4c93cbb9799fe71b9306b07e4c6a1d2ed | 78633d5fb718701dd2f0570ce9a80d54a6993ae7 | /approximation.py | f5fb0212f81089fe696189153b5ec7f9f0aef84c | [] | no_license | ALexanderSpiridonov/python | dcc75e13b0920f59e19ffbb2d9c0f8b3c437e515 | a9dbae34850845ae500f5a5d7163e604f15c54c6 | refs/heads/master | 2021-01-13T12:34:38.729967 | 2016-10-22T14:19:21 | 2016-10-22T14:19:21 | 72,544,855 | 1 | 0 | null | 2016-11-01T14:37:38 | 2016-11-01T14:37:38 | null | UTF-8 | Python | false | false | 1,044 | py | import numpy as np
import scipy
from scipy import sin,cos,exp
import scipy.linalg
from scipy import interpolate
from matplotlib import pylab as plt
fx = lambda x: sin(x / 5.0) * exp(x / 10.0) + 5 * exp(-x / 2.0) #задачем функцию
p = np.array([1,15])
b = fx(p)
k=2
a = np.zeros((len(p), len(p))) #создаем пустой массив н... | [
"noreply@github.com"
] | noreply@github.com |
bd2b2d66a41b8b3ff7039513296b3de98f7528fd | 8f9337ab892629b1ca29ddf07421003ff2e2741a | /p15.py | 8218c73f9e39587ef22846dfefb443864eb44948 | [] | no_license | vkuzo/euler | b91a11446a9b04715d6990bb97e43de5529e209f | c0205ac60fdf6a58e0133f8e76d3a7de76ee9e4f | refs/heads/master | 2016-09-05T14:51:31.555179 | 2012-04-20T01:55:05 | 2012-04-20T01:55:05 | 3,962,899 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,080 | py | """
Starting in the top left corner of a 22 grid, there are 6 routes (without backtracking) to the bottom right corner.
How many routes are there through a 2020 grid?
"""
import unittest
def getMatrix(n):
"""
Returns an (n+1) by (n+1) matrix result of ways to get from result[i,j] to result[-1,-1]
for n = 2, sho... | [
"vasek1@gmail.com"
] | vasek1@gmail.com |
27c5a8484ca0453b96b571915907904ddc4c36ff | b8b1a47aa528b9a2cf22d5ef57b0d3c51864182c | /Data Structure/Pointer/reverseString.py | 504fa50fb319c6c69acdc73e74b7dabb3d602364 | [] | no_license | zxyzliu/algorithm | ef148aa3ffcb93e598aa3db00dc427461a918c49 | a82a16a3ad1d82cb467b3fc7f6b456128c87e5b9 | refs/heads/master | 2021-12-14T02:33:53.033593 | 2021-11-23T03:36:25 | 2021-11-23T03:36:25 | 220,148,441 | 0 | 0 | null | 2020-08-27T23:55:35 | 2019-11-07T04:02:31 | Python | UTF-8 | Python | false | false | 691 | py | """
Write a function that reverses a string. The input string is given as an array of characters char[].
Do not allocate extra space for another array, you must do this by modifying the input array in-place
with O(1) extra memory.
You may assume all the characters consist of printable ascii characters.
Example 1:
... | [
"Dou Bao@WOAIROUBAOBAO"
] | Dou Bao@WOAIROUBAOBAO |
bdea1dd3f8285c7006c568ea1b92484b79f3ac39 | b1ffec4807af5c05427191fbf7860ca5acf207b5 | /tests/test_static_field.py | a3dbd9f8d1324bf5371016ab023f4ea3b1f1e31e | [
"Apache-2.0"
] | permissive | futhewo/alicia | 265a29626f0ffd5b8e28f8a3c77ad34c0b8ae388 | a23f1b29ca72b66380d2f7b34dc7ebedf75b737e | refs/heads/master | 2021-04-12T07:52:02.315900 | 2017-11-01T12:07:49 | 2017-11-01T12:07:49 | 94,511,892 | 0 | 0 | null | 2017-11-01T12:07:49 | 2017-06-16T06:19:10 | Python | UTF-8 | Python | false | false | 3,357 | py | #!/usr/bin/python
# -*- encoding: iso-8859-1 -*-
###############################################################################
# Copyright 2017 @fuzztheworld
#
# 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 c... | [
"fuzztheworld@gmail.com"
] | fuzztheworld@gmail.com |
fa712d9b26ddd79b5f012c922726398cea934e54 | 3289a94f8e62ad3e997e98fe6cb8768703bd7818 | /equalheights_stacks.py | c19c559c5e382e63260f8436d50948f6a690cd1e | [] | no_license | Jyothi3659/hackerrankproblems | 0325887f633d8a627fc8ddbf17c0543c1003bdfb | 18715aadf2c0d1ed17e706d81067403b9c39f24e | refs/heads/master | 2020-08-27T07:58:30.148512 | 2019-11-10T09:56:49 | 2019-11-10T09:56:49 | 217,292,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | def equalStacks(h1,h2,h3):
max = 0
height_h1 = sum(h1)
height_h2 = suum(h2)
height_h3 = sum(h3)
| [
"yedla.jyothi95@gmail.com"
] | yedla.jyothi95@gmail.com |
91736a2d122ff86accc01b5aed1da1134664e977 | cce40debf3f6cfc7467f5cc1e2364b8a31b88137 | /ContextualSecurityDashboard/dashboard/views.py | 13c4feafa87ba34cdc7cbea821fc7889256e2f4d | [] | no_license | jgkuttic/SecurityDashboard | 555ad258b3b7daefb0fd36c10c373f5ac740f13e | c08f5aba0fdb8d7cf4242e0a4b56d2ee5ec77c13 | refs/heads/master | 2020-12-30T10:11:20.212188 | 2017-08-03T15:12:29 | 2017-08-03T15:12:29 | 99,245,592 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,479 | py | from django.shortcuts import render
from django.http import HttpResponse
from rest_framework import status
from rest_framework.response import Response
from dashboard.models import Report
from dashboard.serializers import ReportSerializer
from .models import Module
from .serializers import ModuleSerializer
import djang... | [
"jgkuttic@ncsu.edu"
] | jgkuttic@ncsu.edu |
6b79c8535a340541d34f935ff6d1aebda39ffad7 | 342d850e5d87192b01e2ff8995d0a2fadf0a0e1a | /Proxy/subject.py | 06d8bcad87c85feb1f2a7b4b06d6453189597e2d | [] | no_license | PlumpMath/DesignPatternsPython-3 | 213a078d9b003fb577c79abff14e7267de24ae4d | a42ce5a471b6b17ee453b2b7f16d5d50c4cef7df | refs/heads/master | 2021-01-20T09:51:59.626139 | 2014-12-14T16:29:01 | 2014-12-14T16:29:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | from abc import ABCMeta, abstractmethod
import random
from _pyio import __metaclass__
class AbstractSubject(object):
"""A common interface for the real and proxy objects. """
__metaclass__ = ABCMeta
@abstractmethod
def sort(self, reverse=False):
pass
class RealSubject(AbstractSubject):
... | [
"ron.zohan@yahoo.com"
] | ron.zohan@yahoo.com |
11bc9407b651db938ff3f6333da6b4972a5e9ef3 | 35cf6fc79b8d6c335add8e55e0f4dca6f2816d1d | /Python_Study/第七模块学习/Day01/用pycharm创建Django/venv/Lib/site-packages/django/contrib/gis/utils/layermapping.py | 972c24ce95f0b6498ee2791c87eee130c2af410d | [] | no_license | KongChan1988/51CTO-Treasure | 08b4ca412ad8a09d67c1ea79c7149f8573309ca4 | edb2e4bd11d39ac24cd240f3e815a88361867621 | refs/heads/master | 2021-07-04T15:57:56.164446 | 2019-07-24T15:28:36 | 2019-07-24T15:28:36 | 97,453,749 | 5 | 8 | null | 2019-10-30T22:05:12 | 2017-07-17T08:34:59 | Python | UTF-8 | Python | false | false | 27,129 | py | # LayerMapping -- A Django Model/OGR Layer Mapping Utility
"""
The LayerMapping class provides a way to map the contents of OGR
vector files (e.g. SHP files) to Geographic-enabled Django models.
For more information, please consult the GeoDjango documentation:
https://docs.djangoproject.com/en/dev/ref/contrib/gi... | [
"wangwei_198811@163.com"
] | wangwei_198811@163.com |
7df867c895807b675e26661a7c94fcedf8969c23 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/operationalinsights/v20200301preview/get_linked_storage_account.py | c615084e822e9a1b8d05805b45a7c7b14a8e0d07 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 4,552 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
__... | [
"noreply@github.com"
] | noreply@github.com |
4a2f0f5acc5c992780889dbfe7670e51c84d8bab | 4426f894af42a7c29ddf20a976f2205834fe3123 | /006_course_documents/computer_vision/week8/project2_my_code/my_dataloader_stage3.py | 3bfddd1df2b5fcf4430d1ca7f6e9e7ce96b871a0 | [] | no_license | yuchen-he/kaikeba_report | f2e90daedfe1699ff9891d266a0d7b70dc75e526 | e0c7b21b574ab1981fe37b1c6b604499ea7a4ef5 | refs/heads/master | 2021-07-07T00:01:34.052718 | 2020-03-24T01:05:18 | 2020-03-24T01:05:18 | 226,459,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,436 | py | # This file is about how to create a dataloader in pytorch way
from __future__ import print_function
import os
import numpy as np
import cv2
from PIL import Image
import argparse
from utils.utils import my_args_parser
import pdb
import torch
from torchvision import transforms
from torch.utils.data import Dataset
inpu... | [
"Yuchen_He@n.t.rd.honda.co.jp"
] | Yuchen_He@n.t.rd.honda.co.jp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.