blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | repo_name stringlengths 7 96 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 58
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 12.7k 662M ⌀ | star_events_count int64 0 35.5k | fork_events_count int64 0 20.6k | gha_license_id stringclasses 11
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 43
values | src_encoding stringclasses 9
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 5.88M | extension stringclasses 30
values | content stringlengths 7 5.88M | authors listlengths 1 1 | author stringlengths 0 73 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
345bdaab2b38aae1910c3a58274b6e2998041641 | 68fa4dca860bdacdf34bd86e1aed23b61efbadde | /perception/fabric/train.py | 8b453a77060c2f750adb858ee0859400290046eb | [] | no_license | nehasunil/deformable_following | 161013489ad6a2fccd843984ca260ea6beb612e5 | 5bbb56e3136fc2195966f6f2926fe956e2c94311 | refs/heads/master | 2023-07-22T01:39:12.576350 | 2021-08-30T20:54:34 | 2021-08-30T20:54:34 | 361,874,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,882 | py | #!/usr/bin/env python
# coding: utf-8
import os
import sys
import json
import time
import random
import numpy as np
import matplotlib.pyplot as plt
from tqdm import tqdm
from datetime import datetime
from unet import unet
from data_loader import TowelDataset
import torch
import torch.nn as nn
import torch.optim as op... | [
"4nehas@gmail.com"
] | 4nehas@gmail.com |
f488148590db023618748efe38e9ebc10eb86b47 | 595c75b36a8efc5cefd13fa2261f2db7476e4af2 | /server_2357.py | 737b1bf21f967d5c19b7fdc5d43a99ad01e79976 | [] | no_license | rightpeter/ssdutnews | 0e3619c207c715fe26d4c206b3a834fa6513dfeb | a1804ddfa6d5aeec3ecd4709824c700cc3abde9c | refs/heads/master | 2021-01-20T02:19:08.325955 | 2015-12-01T10:22:39 | 2015-12-01T10:22:39 | 15,448,369 | 0 | 0 | null | 2014-01-03T02:25:44 | 2013-12-26T07:47:26 | Python | UTF-8 | Python | false | false | 18,240 | py | #!/usr/bin/env python
#-*- coding: utf-8 -*-
import sys
import os
import re
import time
import json
import tornado.web
import tornado.ioloop
import tornado.httpclient
# tornado 3.x nolonger have this. use torndb
#import tornado.database
import torndb
import math
import httplib
import json
import pickle
import datetime... | [
"rightpeter.lu@gmail.com"
] | rightpeter.lu@gmail.com |
5196aa80c752adb16bb8cd345d8db75574e812f7 | e334a81be3960876a8f918f592f6d8de6bfe9926 | /Deep Learning approach/Inference.py | ca166b5f65a760a4b8cb513e9b8e66b4f5204693 | [] | no_license | akshatbjain/Object-Detection-using-Computer-Vision | a03432243820cc4ad5cc4bfb09035b7468bc0c01 | 44f27ffcf55641470a791ec39b825aa1f82ea564 | refs/heads/master | 2021-06-17T12:52:00.624763 | 2017-04-23T21:32:10 | 2017-04-23T21:32:10 | 74,620,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,445 | py | from keras.models import Sequential
from keras.layers import Dense
from keras.models import model_from_json
from keras.optimizers import SGD
import numpy as np
import os
import cv2
# load json and create model
json_file = open('VGG16_Model.json', 'r')
loaded_model_json = json_file.read()
json_file.close()
loaded_model... | [
"akshatbjain93@gmail.com"
] | akshatbjain93@gmail.com |
bb034ab1792689bad0fe60d59c014703462e053b | a01633825cb77ce83320e9d99fba73b20a08ffab | /ycm_extra_conf.py | aab6f667988882458a1d5e6bdac43d3507ab8ac9 | [] | no_license | lucckb/sysscripts | e9c6b116329963e5e52cbad2becbe72dc2f400eb | d5d191981509cc71520076aa87f56c84e3667c49 | refs/heads/master | 2023-03-20T06:44:51.291742 | 2023-03-08T21:23:43 | 2023-03-08T21:23:43 | 186,891,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,017 | py | import os
import ycm_core
from clang_helpers import PrepareClangFlags
# Set this to the absolute path to the folder (NOT the file!) containing the
# compile_commands.json file to use that instead of 'flags'. See here for
# more details: http://clang.llvm.org/docs/JSONCompilationDatabase.html
# Most projects will NOT n... | [
"lbryndza.p@boff.pl"
] | lbryndza.p@boff.pl |
223e1702edfa023a4ea7e8553dae1934294aa7ea | 1875c16dee46ab528b5a227c09c5743d8d10e982 | /pyacs/lib/strain.py | 286a4eea8f7c2d32302bdc8043281aba51f4d7f6 | [] | no_license | CorentinPeutin/pyacs | 56a8d2b3941bb7f921c447167c40d89157a502ed | c82aecd2c95a5d635170ed6750131cb49e28e570 | refs/heads/main | 2023-04-16T13:41:53.042830 | 2021-05-03T14:56:28 | 2021-05-03T14:56:28 | 363,963,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,658 | py | """
Strain rate calculation library
"""
###############################################################################
def vgrad(X,Y,VE,VN,SVE=None,SVN=None,CVEN=None,CODE=None, method='WLS',verbose=False):
###############################################################################
"""
Linear estimates of... | [
"noreply@github.com"
] | noreply@github.com |
2687452fb54b846ce10ed9522ff3792242e23613 | dbbe307491d3d4b00c077d502c52ee45fc7944f9 | /Spam_Filter.py | a98714b8d2eb9ad0ae9e69c3a1282ec848c713a6 | [] | no_license | Prais3/Artificial-Intelligence | d0c2a180b265fd76447fe08bb3b6eb6eec1f26db | 0c60700a5b03401fbe04d4ddf5b4fe63f8764669 | refs/heads/master | 2023-02-02T17:56:48.791188 | 2020-12-03T14:53:23 | 2020-12-03T14:53:23 | 167,734,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,946 | py | ############################################################
# CMPSC442: Homework_4
############################################################
# student_name = "Varun Jani"
############################################################
# Imports
############################################################
# Include ... | [
"40916057+Prais3@users.noreply.github.com"
] | 40916057+Prais3@users.noreply.github.com |
a1884220878bb23e0717618fb735566fe0dbc2ee | 29597b67f10d456bdcc90a693ac93f571635ae34 | /starter/fact_gen.py | 5c18200c17517a2188492ff21fe5285875adda1a | [] | no_license | sh-tatsuno/python-algorithm | 67d50f24604550c115f957ed74e81483566c560d | 2800050077562eef50b6f0bd8ba6733068469c4c | refs/heads/master | 2020-05-17T09:46:05.714449 | 2019-07-25T15:43:20 | 2019-07-25T15:43:20 | 183,641,527 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | def prod(a,b):
# TODO change output to the product of a and b
output = a * b
return output
def fact_gen():
i = 1
n = i
while True:
output = prod(n, i)
yield output
n = output
i += 1
# TODO: update i and n
# Hint: i is a successive integer and n is... | [
"wasabi.mandarin@gmail.com"
] | wasabi.mandarin@gmail.com |
ad7d6b93bd2c0c9188bc6788a1c2cd4f6d68c6b4 | aec1201dad3f0aeda161c4e927ba05c04377eae9 | /cogs/commands/userinfo.py | 4fa88b6b6c214c9db0db2bddc83083cce150529a | [] | no_license | asdiasjiodasj/ahsidusdfdsfs | aa8455915633f7187d6756291e61db7e97e5303a | 2214c6318147fa397d6d01b87086250edeec5ff4 | refs/heads/main | 2023-02-24T11:48:31.811629 | 2021-01-29T12:38:28 | 2021-01-29T12:38:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,074 | py | import discord
from discord.ext import commands
class Userinfo(commands.Cog):
@commands.command(aliases=["whois"])
async def userinfo(self, ctx, *, target: discord.Member=None):
if target is None:
target = ctx.author
roles = [role for role in target.roles if role != ctx.guild.default_role]
embed... | [
"72302146+asdiasjiodasj@users.noreply.github.com"
] | 72302146+asdiasjiodasj@users.noreply.github.com |
8d4552c6674aa3ccb96e1d03b40f4a53cc32e0d2 | 7c8957401e1991ea8fa84ba7ac8462ad11bd5502 | /train.py | 733cee5d9861b3de998afeb6b1d48b16ce65e99e | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | y33-j3T/DeepMusicvStyle | cfec508078832ce9032008e2c9ce8fe15615fcc6 | f1a6b149d8412ad480952e6820708b2b6eaf4b96 | refs/heads/master | 2021-04-02T12:49:52.828167 | 2020-03-23T15:44:06 | 2020-03-23T15:44:06 | 248,276,853 | 0 | 0 | BSD-3-Clause | 2020-03-23T15:44:08 | 2020-03-18T15:55:41 | Python | UTF-8 | Python | false | false | 5,792 | py | from model import MusicVAE
from loader import load_noteseqs
import numpy as np
import tensorflow as tf
import argparse
tf.reset_default_graph()
ap = argparse.ArgumentParser()
ap.add_argument("-bs", "--batch_size", default=32, type=int)
ap.add_argument("-s", "--save_path", default="vae/", type=str)
ap.add_argument("-e... | [
"yuquan95@gmail.com"
] | yuquan95@gmail.com |
7f65ad75e2696a0df66c6ff8d05e1997399a2474 | c7cb7b9583859147cdc13811e2d25c15fae059d8 | /Problem Sets/Only A Little Lucky.py | 79390ee8c07a4c8a885d1f4387a512d43a040c17 | [] | no_license | rhmiller47/Udacity-cs101-building-a-search-engine | f83e2ecadd34d29c48ff16aa711b2c6e616e6d16 | 661c7253e338f7ad15f317be9205e70f7b81f087 | refs/heads/master | 2021-12-13T21:17:27.254062 | 2017-04-06T03:11:40 | 2017-04-06T03:11:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,144 | py | # Triple Gold Star
# Only A Little Lucky
# The Feeling Lucky question (from the regular homework) assumed it was enough
# to find the best-ranked page for a given query. For most queries, though, we
# don't just want the best page (according to the page ranking algorithm), we
# want a list of many pages that match th... | [
"nitin.birdi@gmail.com"
] | nitin.birdi@gmail.com |
6e3219373e0597dbbe517953e3878c45f03103a8 | e16aba29c27fa7a0bdabd9d30b91c4ddafbc5c11 | /mainsite/migrations/0004_order_confirmed.py | 2e3dcf59c809a29cdce06b938c4f0617feecb9b2 | [] | no_license | ansh-saini/GraphicDesignShop | ebecd0ba039c135de73e4485e0e454c7e891b958 | 047d1af93982c5cfc696340411d27cc27d00782f | refs/heads/master | 2020-04-20T16:12:35.106247 | 2019-03-12T17:45:46 | 2019-03-12T17:45:46 | 168,952,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | # Generated by Django 2.1.1 on 2018-11-16 09:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mainsite', '0003_auto_20181103_1322'),
]
operations = [
migrations.AddField(
model_name='order',
name='confirmed',
... | [
"caseymccray201@gmail.com"
] | caseymccray201@gmail.com |
342c17d9683d247865ce5a972ee907442a24a85c | f68c4cf56cf68c4d025a107804c5b2049baf4484 | /eventregistry/tests/TestAnalytics.py | 40a7e46b6c844950c5284806591a54577b7cca0c | [
"MIT"
] | permissive | philip928lin/event-registry-python | 6688aa946e71292518951e67084530f83bf55cf8 | a031cf6103b68f388e3035c2a7c1e311208c3ff3 | refs/heads/master | 2021-05-04T00:17:18.121273 | 2017-12-19T07:50:46 | 2017-12-19T07:50:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,015 | py | import unittest
import eventregistry as ER
from DataValidator import DataValidator
class TestAnalytics(DataValidator):
def testConcepts(self):
analytics = ER.Analytics(self.er)
annInfo = analytics.annotate("Microsoft released a new version of Windows OS.")
self.assertTrue("annotations" in... | [
"gleban@gmail.com"
] | gleban@gmail.com |
95b78133c0068f053357affee18b2b8a8cf13311 | 3c89509e8f04fe5b12d6a447edca1de61b670514 | /OIA_Automation/Resuables/test_logging.py | 192c8f768a759cf087fd4e21a458ceb6d42e55dc | [] | no_license | waytoabhay99/OIA_Automation_ | 8413ef913d3b353a3c2fea55a9bf7ebaf51b77eb | 0e2c9046230b81c932d4548fba09cdc865d626a2 | refs/heads/master | 2023-05-21T13:43:25.598755 | 2021-06-09T12:57:30 | 2021-06-09T12:57:30 | 375,355,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | import inspect
import logging
def get_logger():
loggerName = inspect.stack()[1][3]
logger = logging.getLogger(loggerName)
fileHandler = logging.FileHandler('../Execution_log/OIA_Admin_test_execution_report_log.log')
formatter = logging.Formatter("%(asctime)s :%(levelname)s : %(name)s : %(message)s")
... | [
"waytoabhay99@gmail.com"
] | waytoabhay99@gmail.com |
58dd6b5779438026c8c04a401030f1fdf2bd4a76 | 82debe3cc9f8fa33a60f03119f8a9343f959ceed | /sensor_logger.py | 70fc6cbc02449977ec4f1a743210d9120b04caa2 | [] | no_license | robotoilet/sensor_logger | 68bd831a37c2b53307b1bbbb5a57231ce02f97cc | 611375bce89dbed380f2f8b4e14843f5e65f5225 | refs/heads/master | 2021-01-22T11:20:44.202166 | 2016-10-25T22:41:13 | 2016-10-25T22:41:13 | 32,469,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,175 | py | from datetime import datetime
import os.path
import re
import time
import sensor_config
from transmit import send_data
SENSOR_CFG = sensor_config.CONFIG
def create_logfilepath(datapoint, logdir):
"""
Find the first occurrence of a 10digit unix timestamp in a string,
return a filepath (string) of format ... | [
"al.geuder@gmail.com"
] | al.geuder@gmail.com |
f147dd355e000a73b9f724fdbe9401418cbdb0b3 | ac9f014b138003ad288732688bf08b085f6b18b6 | /prac_03/password_check.py | d4e1169c887fa0d1a24e24203f59853bc50bda59 | [] | no_license | rdaumuller1/CP1404_practicals | 8b97a78d10861eb5baffd77de8ca8ea19e0d8fd2 | f12b740a0be4382bd32f602885505ca0afcb6e93 | refs/heads/master | 2020-04-30T13:46:10.677487 | 2019-05-31T00:00:13 | 2019-05-31T00:00:13 | 176,868,372 | 0 | 0 | null | 2019-04-04T03:46:07 | 2019-03-21T04:12:33 | Python | UTF-8 | Python | false | false | 249 | py | MIN_LENGTH = 3
def main():
password = get_password()
while len(password) < MIN_LENGTH:
password = get_password()
print(len(password) * '*')
def get_password():
password = input("Password: ")
return password
main()
| [
"renee.daumuller@my.jcu.edu.au"
] | renee.daumuller@my.jcu.edu.au |
7b04ca1d2f2e688491f33a4fb76efb298e938f59 | 194848d309f1b5ea1e7749d3560d99f9aa158431 | /plot_and_analyze_the_climatology.py | 6b7197972e5dc486d22f9997b3b936e4b6ccad14 | [] | no_license | siirias/nemo_analysis | 967d7012a1b963e46290b7d83a7d23293f0d168c | d20181750406445a259c2c0de02f5c1eabd51d0d | refs/heads/master | 2023-03-16T08:16:21.595165 | 2023-03-09T16:17:45 | 2023-03-09T16:17:45 | 177,143,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,553 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jul 3 14:11:45 2018
@author: siirias
"""
import datetime
import matplotlib as mp
import matplotlib.pyplot as plt
import numpy as np
from scipy.io import netcdf
from mpl_toolkits.basemap import Basemap
from mpl_toolkits.basemap import Basemap, shiftgrid, cm
fro... | [
"simo.siiria@fmi.fi"
] | simo.siiria@fmi.fi |
19c20999a51c16f5b201f8d6685836bf58b4c980 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnsentenc.py | e85c518a0706e02ee13728df2b638a1d8d85cb7d | [] | 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 | 2,387 | py | ii = [('BentJDO2.py', 3), ('EmerRN.py', 3), ('CookGHP3.py', 13), ('MarrFDI.py', 4), ('RogePAV2.py', 1), ('CoolWHM2.py', 8), ('KembFFF.py', 3), ('GodwWSL2.py', 3), ('ChanWS.py', 3), ('SadlMLP.py', 9), ('FerrSDO3.py', 1), ('WilbRLW.py', 8), ('WilbRLW4.py', 7), ('AubePRP2.py', 4), ('CookGHP.py', 23), ('MartHSI2.py', 2), (... | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
101894a2704c43da6f94ad22f0bc531725b70904 | 6b2e77aa6a6d03d6fa12eab2ea8ba22aa8d70d4a | /run.py | 0741a664f6d2fee6e1f4a8f96546cf1d06f0e270 | [
"MIT"
] | permissive | francisdbillones/LearnNet | 05aa38fc12bb2f913e4dca58fbdccf5fb3307a11 | 2c1561fc85df853c78e21c6ba0dd10d4f173ee0a | refs/heads/main | 2023-04-29T22:45:56.446266 | 2021-05-17T07:20:05 | 2021-05-17T07:20:05 | 334,654,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 333 | py | from learn_net import app
if __name__ == '__main__':
import os
dev = os.environ.get('DEV')
# if DEV environment variable is set, run in debug mode
if dev:
app.run(debug=True)
else:
from gevent.pywsgi import WSGIServer
server = WSGIServer(('', 5000), app)
server.ser... | [
"francisd.billones@gmail.com"
] | francisd.billones@gmail.com |
9bd11828a0b8e41003f03f87a0792ddb26fea227 | 7e769c53213d5de6220616d825c86cf539c7abab | /rush00/moviemon/moviemon/model/Player.py | 44b7f2d4742536ef316b70c92659d87cc57f7547 | [] | no_license | romanets-s/cisco_rest_api | 473f8a001e36086e37bfedc7d7feff9fe6c11651 | 6304ec9a802a406a81ee96141f6a909c95a5f8e5 | refs/heads/master | 2020-05-16T11:45:46.727550 | 2020-02-25T14:06:20 | 2020-02-25T14:06:20 | 116,568,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | class Player:
def __init__(self, x, y, power=0):
self.x = x
self.y = y
self.power = power
self.boll = 1
self.lucky = 5
self.allMonsters = 0
self.bollHere = 0
self.enemy = {}
| [
"romanets.sv@gmail.com"
] | romanets.sv@gmail.com |
55412234dfa65f0d0446c2f25686141214596ab8 | d0869d4a6b782527313700d8167c431fbbd6fd10 | /scidownl/core/updater.py | b8adc631ff3ca8d2d1d86b2f8d6301e5feb64253 | [
"MIT"
] | permissive | Tishacy/SciDownl | 7148cb15c5881fb816cab6653c800897e9fbd592 | 0fe77d2f21d4c840d60a907f2a0682645a5e6fe0 | refs/heads/v1.0 | 2023-04-09T03:41:35.350645 | 2023-04-02T03:17:03 | 2023-04-02T03:17:03 | 180,743,987 | 149 | 40 | MIT | 2023-04-02T03:17:04 | 2019-04-11T08:02:29 | Python | UTF-8 | Python | false | false | 5,157 | py | # -*- coding: utf-8 -*-
"""Implementations of DomainUpdater"""
import re
import string
from typing import Iterable, Union, List
from concurrent.futures import ThreadPoolExecutor, as_completed
import requests
from bs4 import BeautifulSoup
from .base import DomainUpdater
from ..log import get_logger
from ..config impor... | [
"Tishacy@gmail.com"
] | Tishacy@gmail.com |
03245af4d15f65c90d827859b1a2760c5454a6df | ef415f543a41a45a181c4b24ef8172c6bf669317 | /IPR_Website/Skits/apps.py | af729b72c711201d813bef5f4e14f4fd497b21ce | [] | no_license | ujwalkpl/IPR_Website | 1e6ff77d075b2b6b5a287dc6e5d1c1c8b759cfa0 | 04685f52aa06187a8cb412d4c8d6dd72922b47b4 | refs/heads/master | 2022-04-10T16:30:39.285414 | 2020-03-29T13:00:19 | 2020-03-29T13:00:19 | 222,711,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | from django.apps import AppConfig
class SkitsConfig(AppConfig):
name = 'Skits'
| [
"bhatnagar.aman1998@gmail.com"
] | bhatnagar.aman1998@gmail.com |
d08ee0b6fd6e3be4deec4400e41fd332d03eeee6 | e5de6c8470e1019d1ea8faff8b9d9e8c5207885b | /Iterables and Iterators.py | baf90209ede4be0ef1cac68d2dfc08554913d718 | [] | no_license | gordonmhy/HackerRank-Python | 87233dcc0d1658c1494b75e8cbde98a89db5751d | ba1e1506aa2636ffe0ca97f583355b2b4415c0c9 | refs/heads/main | 2023-06-29T05:57:07.097954 | 2021-08-04T09:46:21 | 2021-08-04T09:46:21 | 392,407,705 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | # Iterables and Iterators
import itertools
n = int(input())
letters = str(input()).split(' ')
permutations = iter(itertools.permutations(letters, int(input())))
nominator = 0
denominator = 0
i = next(permutations, None)
while i is not None:
if 'a' in i:
nominator += 1
denominator += 1
i = next(p... | [
"gh@hpri.33mail.com"
] | gh@hpri.33mail.com |
48a368af4aa96cc89abf65e929c329bb1bf267fa | bbee658bffae55ee62381ccba6b0b64c36815643 | /examples/AtmosphericFlight/HypersonicNose/HypersonicNose.py | 89168323515006f491c9178858defdbda6d59c3b | [
"MIT"
] | permissive | regular-oscillator/beluga | c770d23715ebfe26e59422c0a1e6e1e68e8f1615 | 2bda36fddb674b70a72e28178212fb4f56be5cc4 | refs/heads/master | 2020-11-27T22:36:40.294786 | 2020-01-01T23:25:31 | 2020-01-01T23:25:31 | 229,630,669 | 0 | 0 | MIT | 2019-12-22T21:03:15 | 2019-12-22T21:03:14 | null | UTF-8 | Python | false | false | 1,966 | py | """
References
----------
.. [1] Buttazzo, Giuseppe, and Bernhard Kawohl. "On Newton’s problem of minimal resistance."
The Mathematical Intelligencer 15.4 (1993): 7-12.
"""
import beluga
import logging
import matplotlib.pyplot as plt
ocp = beluga.OCP()
# Define independent variables
ocp.independent('l', 'm')
# ... | [
"msparapa@purdue.edu"
] | msparapa@purdue.edu |
70ea25d148ecf96291a8297391d0fc5c9f5f8b9b | f035389665420ac94118130afa2665cee9e1d681 | /blog/models.py | a991ce291ad8c63dd0fac91d7b6289425738cb0a | [] | no_license | Juanno/gmr_site | 02f5e411784ba357b4585707226b80dd92c7c0aa | 1f918e45f34029ae1754834354065700530e4ea6 | refs/heads/main | 2023-01-11T10:02:34.879713 | 2020-11-08T15:05:28 | 2020-11-08T15:05:28 | 311,087,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,297 | py | from django.db import models
from tinymce.models import HTMLField
class Articles(models.Model):
titre = models.CharField(max_length=200)
pub_date = models.DateField('date published')
content = HTMLField()
def __str__(self):
return self.titre
class Infos(models.Model):
titre = models.Char... | [
"farco42@live.fr"
] | farco42@live.fr |
0652436f3f2ea25130dee16bb63eab2e47356b04 | 3ba76ce98cdc5578f1ce38fba41da152404224fa | /python/test/grammar_translator/kernelgen/testAccKernel.py | b41d4728c3d8e16fdd1e88175e315b3f37ba7594 | [
"MIT"
] | permissive | DiaosiDev/gpufort | 258a4d3f8e8a8d53428f34f377ad8ff662369a53 | e60e99dfa3b17306ad65a01d56a764aac471eaba | refs/heads/main | 2023-08-14T13:15:08.266532 | 2021-10-05T09:51:23 | 2021-10-05T09:51:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,607 | py | #!/usr/bin/env python3
# SPDX-License-Identifier: MIT
# Copyright (c) 2021 Advanced Micro Devices, Inc. All rights reserved.
import addtoplevelpath
import translator.translator as translator
testdata=[]
testdata.append("""!$acc kernels if(2>3) self num_workers(64) num_gangs(8) async(0) wait(1,2) copy(a,b,c) default(P... | [
"docharri@amd.com"
] | docharri@amd.com |
708696ce2c8856f55c9f5f8af1bc5b00af04bb1a | 2bba023206664e137cc9e02f1f76e8d326019182 | /frame_2D_alg/intra_comp_a.py | 932577d4be2874bfbd85617e2540e8720504ad6a | [
"MIT"
] | permissive | gargoyle-ltd/CogAlg | 316793f9ac3f26a001eb4c91bfff5e5f1fac75cc | cce62a16167db7c7f842c235e8f2a833afd4261b | refs/heads/master | 2021-05-17T02:25:36.672667 | 2020-05-22T13:18:39 | 2020-05-22T13:18:39 | 250,550,869 | 2 | 0 | null | 2020-03-27T14:07:57 | 2020-03-27T14:07:56 | null | UTF-8 | Python | false | false | 17,994 | py | """
Cross-comparison of pixels, angles, or gradients, in 2x2 or 3x3 kernels
"""
import numpy as np
import numpy.ma as ma
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
# Sobel coefficients to decompose ds i... | [
"57096256+mariaparshakova@users.noreply.github.com"
] | 57096256+mariaparshakova@users.noreply.github.com |
9db6c4629ec3ba1451b1569a803d3370d83954d7 | d25734585fc616d1a92eeed4ced78796af877d70 | /test/functions/python/helloworld.py | 5d5c288a17dae1f11ee851fef3e3b1f00a4939f5 | [
"MIT"
] | permissive | swiftycloud/swifty | 9c1db8285311f8e9464b7353023dbaf38c501507 | ac9ea8b8919f797c0d92ab70db13459ec0148dd3 | refs/heads/master | 2022-02-21T19:56:41.976335 | 2022-01-31T09:06:43 | 2022-01-31T09:06:43 | 181,493,509 | 36 | 3 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | def Main(req):
return {"message": "hw:python:%s" % req.args['name']}, None
| [
"ovzxemul@gmail.com"
] | ovzxemul@gmail.com |
162bbbab50f98d221282c53b09bb56049dae0155 | db221615b13a27b9b34901fe52500f4b7ee58473 | /rememerme/cards/cassa.py | ccff6cbe63bb8d148dbf5141f161011e82c0b118 | [
"Apache-2.0"
] | permissive | rememerme/marketplace-model | ea4ee6a1238682e86bf455bf80ea3aadc0ff6927 | 7a5199037ab863237778849be771edb80ba975fd | refs/heads/master | 2016-09-06T09:47:29.177398 | 2014-01-27T20:56:08 | 2014-01-27T20:56:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 998 | py | from django.db import models
'''
Created on Jan 7, 2014
@author: Andrew Oberlin
'''
'''
Model that we can use to get rid of the Django stuff, but still use the model
concept while coding.
'''
class CassaModel(models.Model):
'''
Overriding the default save method to remove Django operation... | [
"andyoberlin@gmail.com"
] | andyoberlin@gmail.com |
50a54e1743e2d479801e432af50f14d10d6acdaf | f3b233e5053e28fa95c549017bd75a30456eb50c | /p38a_input/L2I/2I-3FN_MD_NVT_rerun/set_1.py | 900f01cb309373c1957f494591d94947da0ea1b2 | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 741 | py | import os
dir = '/mnt/scratch/songlin3/run/p38a/L2I/MD_NVT_rerun/ti_one-step/2I_3FN/'
filesdir = dir + 'files/'
temp_prodin = filesdir + 'temp_prod_1.in'
temp_pbs = filesdir + 'temp_1.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for j in la... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
07dec2dc5f395a39cb3c3643e0b760b89b6f9576 | 584bbbd6936222a67ed88bd36446f0f35bc89432 | /rango/migrations/0001_initial.py | 93ae0af67463ef73b8f3889d9f9a990c697de05a | [] | no_license | jianhuayou/tango_with_django_project1 | 2645115af5813cf2ada5e2666dc0a45090d80cbd | fa9916881e2d0baf571fb1f02071d11ac3dc3e4a | refs/heads/master | 2023-03-07T12:36:45.479855 | 2021-02-12T10:24:12 | 2021-02-12T10:24:12 | 335,925,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,033 | py | # Generated by Django 2.2.17 on 2021-02-04 08:43
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
... | [
"2534534y@student.gla.ac.uk"
] | 2534534y@student.gla.ac.uk |
69133b3c2ade788942c380de5ecfc040e34c476c | 16dfc690007b3dec2761e80712f83ab3e7a8b33f | /FIO/fusion_io/fpy.py | 47c11fae827752c1d225456ebe6a78d683f5c072 | [] | no_license | usczpw/KORC | b07475e50fd8795bb221f67d73bd007e8baf5232 | 59c2428e02a92c982addb34927163d3805b98ae2 | refs/heads/master | 2023-04-11T22:32:25.647314 | 2021-03-24T02:12:16 | 2021-03-24T02:12:16 | 363,285,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,533 | py | # fpy.py: wrapper functions for the sim_data library to make accessing
# simulation output more pythonic.
#
#
# coded by Christopher Berg Smiet on 18 January 2019
# Edited by Ralf Mackenbach on the 14th of August 2019
# Mesh added by Andreas Kleiner on 20 August 2019
# csmiet@pppl.gov
# rmackenb@pppl.gov
# akleiner@ppp... | [
"mbeidler3@gmail.com"
] | mbeidler3@gmail.com |
729720d4d212e2b7d382262b644bcbadcc9816a3 | 555b2a10e3c788704b876a2885a030af94852a19 | /Vertex.py | abcbf0a80d8469e9ba4da15e35966981db2609b8 | [] | no_license | swetlika/Python-Web-Scraper | 196274e0355144ff680e3bad840a535db4d59b17 | 880151544b8facc2677ba46a350188b2d4820df6 | refs/heads/master | 2021-09-01T11:41:54.161236 | 2017-12-26T19:10:00 | 2017-12-26T19:10:00 | 115,448,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,463 | py | """
A vertex of a graph represents each point It holds information about the actor/movie,
including the name, info (which is the release year of a movie, and the age of an actor),
and the type, which is True if movie, else False
"""
class Vertex:
def __init__(self, node, info, type_is_movie):
self.id = nod... | [
"stripat3@illinois.edu"
] | stripat3@illinois.edu |
dd97e1f73c7a3bd0e9ca1d944071be2ad3b1bab3 | 8b12560a1792ef7a15453a603dc038da3ee3eb4d | /server/optimization.py | 350b2e9321397f166e61c5d99c46974f1fd49507 | [] | no_license | LoveIace/GASI | edd1cee32f1fe4f368a94c1012bf3105ed046965 | 363c84f02f3bfc3cd61e5b1ca7c4edc559e0075a | refs/heads/master | 2023-01-28T02:33:10.455472 | 2020-06-07T12:11:41 | 2020-06-07T12:11:41 | 246,835,683 | 0 | 0 | null | 2023-01-06T17:21:32 | 2020-03-12T13:02:27 | Python | UTF-8 | Python | false | false | 4,464 | py | import pandas
from selection import roulette, tournament, uniform
from numpy import exp
from copy import copy
def firefly_algo(problem, population_size = 20, iteration_ceiling = 50, alpha = 1.5, beta = 0.6, beta_min = 0.2, gamma = 0.005, delta=0.97, out_path='../documentation/FA_out.csv'):
data = []
ite... | [
"mandrake321@gmail.com"
] | mandrake321@gmail.com |
3f7954d3be9e18502554f59eebb8efc3ed37feaa | 8a2f62f9ea9c6520b2cfa5a94967eb824e92bbd6 | /src/server.py | f6fd66516bed87adf955b100bdf2dffab03bcc00 | [
"MIT"
] | permissive | zarkle/sockets | 66a8654904e767df6cc1da47cb99bad8569a17bb | b025ac208830bb7a6b686d686b15482888321676 | refs/heads/master | 2020-03-08T00:42:38.897980 | 2018-04-03T02:47:37 | 2018-04-03T02:47:37 | 127,812,073 | 0 | 0 | MIT | 2018-04-03T02:47:37 | 2018-04-02T21:01:59 | null | UTF-8 | Python | false | false | 1,121 | py | from datetime import datetime
import socket
sock = socket.socket(
socket.AF_INET,
socket.SOCK_STREAM,
socket.IPPROTO_TCP)
PORT = 3000
address = ('127.0.0.1', PORT)
sock.bind(address)
try:
sock.listen(1)
print('--- Starting server on port {} at {} ---'.format(PORT, datetime.now().strftime('%H:%... | [
"beverly.pham@gmail.com"
] | beverly.pham@gmail.com |
f0944519b2dcc61fa45505a45074964dab08301f | e90e83dea550fd2e36f2c20bf9c0f2354bfc1778 | /movies/settings.py | 1e7e6bb232b52a6d0eca12429af8490a747b764d | [] | no_license | vaishakh1990/MovieApp | efa0b66acf17ca3f8eda3c7674d47bda73dc4b04 | 9d372ae1a453135c14ebfeec5f81da98da7454f6 | refs/heads/master | 2022-12-15T13:28:05.550344 | 2019-05-30T05:01:30 | 2019-05-30T05:01:30 | 188,631,851 | 0 | 0 | null | 2022-12-08T05:11:43 | 2019-05-26T02:29:11 | Python | UTF-8 | Python | false | false | 3,366 | py | """
Django settings for movies project.
Generated by 'django-admin startproject' using Django 2.2.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
# ... | [
"sruthivaishakh93@gmail.com"
] | sruthivaishakh93@gmail.com |
7cdbdc2209859155ca0f435744e95486cb3840ac | 949a91a5fbe7b1f8968a68d86657503a75690e99 | /cloud_native_app/microservices/b/b.py | 3f7370a6ec7655788c8d45c3d65fb50912ea0f4b | [] | no_license | Jeanbouvatt/crepeausucre | 1114f7deb62020e7cca59a10da89538b5fec6fef | b3df534792e1fd1ecc980539f3524b85f30aef33 | refs/heads/master | 2021-01-12T01:50:40.943863 | 2017-01-26T18:00:10 | 2017-01-26T18:00:10 | 78,437,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,116 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Service B """
import base64
import logging
from logging.handlers import RotatingFileHandler
import pprint
import time
import sys
import os
from flask import Flask
from flask import jsonify
from flask import request
import config
# Initialise Flask
app = Flask(__name... | [
"salimaboubacar@gmail.com"
] | salimaboubacar@gmail.com |
301cc7c35e53e0f27f8e1983cabc3ed68f3b0eb7 | 58cc56aebd1d0a23a5bdd531774c139a74b58ea7 | /cl_meats/colors.py | aa07166269eb19d468faabeeaff1803ef1030f8a | [] | no_license | ashleygwilliams/cl-meats | 1fb36b9e5fe6e739b9468eb0e38da7de35ccab3f | 8ec2aa736cd9ed63783b365ba39e049fe0038665 | refs/heads/master | 2020-12-11T09:08:44.856784 | 2013-11-28T01:23:12 | 2013-11-28T01:23:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,375 | py | from __future__ import print_function
class pretty_output():
'''
Context manager for pretty terminal prints
'''
def __init__(self, *attr):
self.END = '0e8ed89a-47ba-4cdb-938e-b8af8e084d5c'
self.ALL_OFF = '\033[0m'
self.attributes = attr
self.opts = dict(
BOLD = '\033[1m... | [
"brianabelson@gmail.com"
] | brianabelson@gmail.com |
e87d4ea35bb7cf4d21fc6a18af3ecc493ddf16fd | 5f5813eedd7984410ebfe71ccd7d288fccfc8475 | /towersOfHanoi.py | d36ba7a853342d4b5f927c01cc868e013275a4be | [] | no_license | helios2k6/python3_interview_questions | 8a1956d013e184f6c5c12331d57e0beb6760ee19 | d0a0334c090206083d8915e8c3ebadb86d35ad12 | refs/heads/master | 2020-04-16T09:07:39.267659 | 2019-09-14T16:45:22 | 2019-09-14T16:45:22 | 165,451,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | def th(n, start, aux, dest):
if n > 0:
th(n - 1, start, dest, aux)
dest.append(start.pop())
th(n - 1, aux, start, dest)
def test1():
start = [3, 2, 1]
aux = []
dest = []
th(3, start, aux, dest)
print(start)
print(aux)
print(dest)
test1() | [
"helios2k6@gmail.com"
] | helios2k6@gmail.com |
f6c1c585e692663e47ba39c37d0b18e23dc3bee6 | e05c284894322f42eeb4020509f43aee7ad2b503 | /pysync.py | 19582785128ccb31df4c48c417ca54a649adc73e | [
"MIT"
] | permissive | plinecom/pysync | 27426153bc125d50a66d5376201bda3481ec6b00 | c0b5c5ccb38b214be2b5cf5d4686eabdbadd8553 | refs/heads/master | 2021-01-19T06:10:20.660240 | 2016-06-10T08:12:43 | 2016-06-10T08:12:43 | 60,820,118 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,044 | py | # -*- coding: utf-8 -*-
import sys
import os
import os.path
import time
import shutil
def listup(srcRoot, destRoot, oldRoot, relativePath):
srcPath = os.path.join(srcRoot, relativePath)
destPath = os.path.join(destRoot, relativePath)
oldPath = os.path.join(oldRoot, relativePath)
# System::String ^ src... | [
"plinecom@gmail.com"
] | plinecom@gmail.com |
a0689170300c9ac5c0f3fd4e0774d82d6a4f2a22 | e89d6b85b8e113cdac4a10f42a5ba9f40f807600 | /crud/models.py | 0ed369d27394374729951d046291c4f0063659a4 | [] | no_license | JuanVicenteVazquezG/crud-django-project | 5c951b2a371d4c2b4568c13a610fcde75b211e1e | d0c9ebb8630ad4467c4fccc3a2abcd4ad3cc7111 | refs/heads/main | 2023-03-05T15:15:15.097269 | 2021-02-14T20:13:15 | 2021-02-14T20:13:15 | 338,376,948 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,018 | py | from django.db import models
"""
Autor (nombre, email)
Articulo (autores, titulo, contenido)
"""
# Create your models here.
class Article(models.Model):
title = models.CharField(max_length=120)
content = models.TextField()
public = models.BooleanField()
# Usado cuando cree el registro me guarda la fe... | [
"juanvicentevazquezg@gmail.com"
] | juanvicentevazquezg@gmail.com |
29da6b4856f275e645c98bc770853337711e82cc | aa5e5a5e3aa1729d9dc5af610890ec6bc69eb137 | /SunPolitcs/SunPolitcs/startproject.py | 8575e5c94cba0359e445f144661f9f61bcfaf195 | [] | no_license | quqingsong/MyScrapy | 2d3659b09436631fa4f58d65da74eae9cd65eed9 | bc1e5094d0e6a1b9ac596297d27fb810e4f67158 | refs/heads/master | 2022-12-31T18:43:42.952234 | 2020-10-24T05:41:16 | 2020-10-24T05:41:16 | 306,808,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# @FileName :startproject.py
# @Time :2020/5/17 19:37
# @Author :青松
from scrapy import cmdline
cmdline.execute(["scrapy","crawl","sunpolitics","-o","1.csv"]) | [
"1021237024@qq.com"
] | 1021237024@qq.com |
8f0a3f1e893a6f042c0b8df346a95d4eb0c54193 | 57a8e6497effdda6be198562a4ba84b1660d9d57 | /first_NN.py | ac2a30c27721d08ea6dd7af4f408d772842727c2 | [] | no_license | frankpennchen/First_Tensorflow | 47605fe5390275fdda55824bcde42765c176053a | 9db1317888930fab8f41b3891960b834f81ba4c6 | refs/heads/master | 2020-03-28T19:43:53.916883 | 2018-09-16T14:35:17 | 2018-09-16T14:35:17 | 149,004,172 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,885 | py | # -*- coding: utf-8 -*-
import numpy as np
import h5py
import matplotlib.pyplot as plt
from testCases_v4 import *
from dnn_utils_v2 import sigmoid, sigmoid_backward, relu, relu_backward
from init_utils import load_dataset
np.random.seed(1)
def initialize_parameters(n_x, n_h, n_y):
"""
Argument:
n_x -- size... | [
"33733126+frankpennchen@users.noreply.github.com"
] | 33733126+frankpennchen@users.noreply.github.com |
e10916000769e062512e896968a462248e3aaaf8 | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/merra_scripts/03_model_fitting/merraRF882/294-tideGauge.py | cd2a90061870ed011239ee4570526d3b677444d3 | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,456 | py | # -*- coding: utf-8 -*-
"""
Created on Mon May 4 15:51:30 2020
This program is designed to validate a Random Forest
model by using the KFOLD method
@author: Michael Tadesse
"""
#import packages
import os
import glob
import numpy as np
import pandas as pd
from sklearn import metrics
from scipy import stats
import se... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
3b29858378e8a84dc8d6061a2f3b26b081be22f2 | 2bbf04bde4585ea4217f65a0037ff824007ada77 | /Python/PetyaAndStrings.py | 45f967d72a3bd2d16c3c1c76a39a1cb0ef78de23 | [] | no_license | knight-byte/Codeforces-Problemset-Solution | 7e0dea73a3906434faf4e59dbc8dd5269b09a688 | cdac3669cc14385ed43f19621ba72a055a52c76c | refs/heads/main | 2023-04-09T00:06:27.062577 | 2021-04-28T05:28:24 | 2021-04-28T05:28:24 | 340,555,681 | 1 | 1 | null | 2021-02-20T03:50:47 | 2021-02-20T03:50:46 | null | UTF-8 | Python | false | false | 225 | py | def main():
a = input().lower()
b = input().lower()
if a == b:
return 0
x = sorted([a, b])
if x[0] == a:
return -1
else:
return 1
if __name__ == '__main__':
print(main())
| [
"abunachar1236@gmail.com"
] | abunachar1236@gmail.com |
7c4ffa6c899f19c47416e06fb5253a69e6282d82 | 3d5da3b78d3e18027efb00a07a4a1641865acaf3 | /dataset/hpa_single_dataset.py | e59b485fdaed577d46053a5cbe738a340ff647f4 | [
"Apache-2.0"
] | permissive | marshuang80/cell-segmentation | d79326a3bba77417b98469a609618cb932e705a7 | aef5196b6fd906bff3866156e205d4f787710bde | refs/heads/master | 2022-02-20T15:29:02.716024 | 2019-08-27T22:00:11 | 2019-08-27T22:00:11 | 194,341,336 | 33 | 6 | null | null | null | null | UTF-8 | Python | false | false | 1,622 | py | from torch.utils.data import Dataset
from scipy import ndimage
from .augmentation import augmentation
import skimage
import imageio
import numpy as np
import h5py
import os
import random
class HPASingleDataset(Dataset):
def __init__(self, data_path, phase='train', transform=False, percent_hole=0.4):
"""Cu... | [
"marshuang80@gmail.com"
] | marshuang80@gmail.com |
76cb72de738a416e8e036c041c95efadb27e14ec | fb8d595d44f5e7ed67942e286db835e1e7f931a5 | /frechetmean/manifolds/hyperboloid.py | a90a0447fb1a4034c94bc1561ed209ca343ad2ba | [
"MIT"
] | permissive | CUAI/Differentiable-Frechet-Mean | 8b112ed02ffdb590697ef1ec66fbf7b121adcf58 | c73f9e8d0969a727043d3d2a07af6392fdc802af | refs/heads/master | 2023-08-31T08:27:04.075283 | 2021-09-28T01:55:55 | 2021-09-28T01:55:55 | 274,028,706 | 38 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,212 | py | import torch
from frechetmean.utils import (EPS, arcosh, arsinh, artanh, cosh, divsinh,
sinh, sinhdiv, tanh)
from .manifold import Manifold
class Lorentz(Manifold):
def __init__(self, K=-1.0):
super(Lorentz, self).__init__()
assert K < 0
if torch.is_tensor... | [
"al968@cornell.edu"
] | al968@cornell.edu |
f82ba9bc2bc1e77f9d51cf89cba9753ccb178e25 | d0d95c538c4092b4f74f49c71a9306c79859cc97 | /contents/models.py | 5bfa22d9f0f56713a8f9b99805bd89e57e260eb9 | [] | no_license | sjoh0704/Simple-Instagram | 4e7c453e653cfbecb480b4bd283afb3f57bdedec | 45604111120076191ef1c71589d9d4c36c05916c | refs/heads/master | 2023-04-21T04:39:49.955102 | 2021-05-18T01:35:56 | 2021-05-18T01:35:56 | 356,603,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,211 | py | import os
import uuid
from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class BaseModel(models.Model):
created_at = models.DateTimeField(auto_now_add=True)
modified_at = models.DateTimeField(auto_now=True)
class Meta:
abstract = True
class Co... | [
"sjoh0704@daum.net"
] | sjoh0704@daum.net |
13ce8ea93a9f040e69314c5c86987140c95f96c6 | 49fe5157ac5cece1fbd537514ded6b8c0f7a03cb | /training/v0.1.1/danish_augmenter.py | 6cc52be5e2ab18e3ca8ee4bdd5c6c86e9e436128 | [
"Apache-2.0"
] | permissive | scottire/DaCy | 5303f8c47f4c84a8e319c982c2495d03983b7555 | b5a1a34422efd00ccf9e678b1bb9a8e1a150f3c3 | refs/heads/main | 2023-06-28T15:31:32.127470 | 2021-08-03T11:32:41 | 2021-08-03T11:32:41 | 392,293,740 | 0 | 0 | Apache-2.0 | 2021-08-03T11:29:26 | 2021-08-03T11:29:25 | null | UTF-8 | Python | false | false | 1,991 | py | """python -m spacy train config.cfg --code functions.py
"""
import sys
from typing import Callable, Iterable, Iterator
import spacy
sys.path.append("../..")
from dacy.augmenters import (
create_keyboard_augmenter,
create_pers_augmenter,
create_char_swap_augmenter,
create_æøå_augmenter,
)
from dacy.d... | [
"KennethcEnevoldsen@gmail.com"
] | KennethcEnevoldsen@gmail.com |
1681c4bfa1b633a467c98beb07c08d18c0ac0c02 | 3ca2fc0098d3f6a876eba9f70d3c891b553b150e | /API/migrations/0005_auto_20200807_1508.py | c753ec0075667d630e165285919fa132d24c2b9a | [] | no_license | shivam-bit/drf-csv-processor | 6c49bfafff0b2b18b77c51329af79f516cfb6eb1 | 4adbc4a7af7304cb2ace0c268685712847104f30 | refs/heads/master | 2022-12-01T13:59:18.726838 | 2020-08-07T19:15:31 | 2020-08-07T19:15:31 | 285,902,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | # Generated by Django 3.0.8 on 2020-08-07 15:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('API', '0004_auto_20200807_1501'),
]
operations = [
migrations.AlterField(
model_name='csv_product',
name='price',
... | [
"shivama5tronot@gmail.com"
] | shivama5tronot@gmail.com |
6b29f937e438a7dbf2fd0bb68f186740125ae654 | 50027b2559f8e9c728f48bb172128149cc54071d | /src/main.py | 62b5a1750a70cc679c7b659c4b8bc6f57df160f0 | [] | no_license | kristhyanmatos/logica-fuzzy | 396c47cb5769cd25c94b386e4494031fd01b3db2 | 04e442405e6e05ec500a9ad6993f1857d9924cf0 | refs/heads/main | 2023-06-09T16:01:34.167020 | 2021-07-06T12:39:28 | 2021-07-06T12:39:28 | 382,421,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,242 | py | from db import DEVS
from utils import busca_chave
from fuzzy import calula_aptidao
input_complexidade = int(input("insira a complexidade: "))
input_linguagens = input("insira as linguagens: ")
input_linguagens = input_linguagens.split(",")
aptidao_linguagens = []
for linguagem in input_linguagens:
aptidao_linguag... | [
"kristhyandematosmaia@gmail.com"
] | kristhyandematosmaia@gmail.com |
c1dc45806274b3fd28e8afd136f642fdbdefd492 | 0ed9a8eef1d12587d596ec53842540063b58a7ec | /cloudrail/knowledge/utils/policy_utils.py | c6e67eb897180b23d1600163ecbe65f63c194702 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | cbc506/cloudrail-knowledge | 8611faa10a3bf195f277b81622e2590dbcc60da4 | 7b5c9030575f512b9c230eed1a93f568d8663708 | refs/heads/main | 2023-08-02T08:36:22.051695 | 2021-09-13T15:23:33 | 2021-09-13T15:24:26 | 390,127,361 | 0 | 0 | MIT | 2021-07-27T21:08:06 | 2021-07-27T21:08:06 | null | UTF-8 | Python | false | false | 3,180 | py | from typing import List, Set
from cloudrail.knowledge.context.connection import PolicyEvaluation
from cloudrail.knowledge.context.aws.resources.iam.policy import Policy
from cloudrail.knowledge.context.aws.resources.iam.policy_statement import StatementCondition, StatementEffect
from cloudrail.knowledge.context.aws.re... | [
"ori.bar.emet@gmail.com"
] | ori.bar.emet@gmail.com |
7f38ef6ec889c598cc6765fe7b60205fec67bcfb | 43196f3ddb6492867bfcf00c9169c340aad4e7b6 | /examples/Dict2D_examples.py | 6fcd4cd72cf7e0b53cd4730dd2b960362a152b6a | [] | no_license | pycogent/old-cogent | eb24cf9b86e2df17ab32d05586ba0e034ab0dc86 | b49442bd793a743188a43809903dc140512420b7 | refs/heads/master | 2016-09-05T18:06:15.100337 | 2012-12-20T20:04:09 | 2012-12-20T20:04:09 | 7,252,631 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,443 | py | #!/usr/bin/env python
# Dict2D_examples.py
# Owner: Greg Caporaso caporaso@colorado.edu
from old_cogent.base.dict2d import Dict2D, largest
from old_cogent.util.demo import QuickDemo
from old_cogent.base.stats import Freqs
demo = QuickDemo(
[
"Demonstration of the Dict2D class",
"Written by Greg Caporaso capo... | [
"jai.rideout@gmail.com"
] | jai.rideout@gmail.com |
ba50c9c691ae34220377be54c213cb36dcf65adb | e1cf2d7eb9a475d078d78a398e5007630f0da1a7 | /server.py | 9df1ff32cf6f7bbb585112e599366f5a3d12331e | [] | no_license | saml/crosswodrs | beae5017420f4b365670fdd8c0eb57c6081c7fd1 | 51e3dcea9c2b28d2a0477cb05704cb5f345ee1f1 | refs/heads/master | 2020-04-19T04:04:48.614945 | 2014-01-10T18:52:42 | 2014-01-10T18:52:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | if __name__ == '__main__':
from crosswords import app
app.run(host='0.0.0.0',port=5001,debug=False)
| [
"skynare@gmail.com"
] | skynare@gmail.com |
d5c1b022a9c773143cb7addb3519ae552efc46cf | 6c3e747e8e0d97789f54ad5292dd81fd0757a1b2 | /manage.py | 0705edb05cab36d859f486ab028c07e2df9e61a0 | [] | no_license | tmclean/flask-by-example | 1f21648e41ec30b9ff48a8b2e5f66bf2162d02a0 | 0c0503bd7918b0495023b8df94c52ffc0fa70235 | refs/heads/master | 2023-02-09T15:28:55.586485 | 2021-01-10T02:44:51 | 2021-01-10T02:44:51 | 328,291,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | import os
from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
from app import app, db
app.config.from_object( os.environ['APP_SETTINGS'] )
migrate = Migrate( app, db )
manager = Manager( app )
manager.add_command( 'db', MigrateCommand )
if __name__ == '__main__':
manager.run()
| [
"code@tmclean.net"
] | code@tmclean.net |
d1d43e025b167a92f9bd20f67cea4bea728a7028 | 116f28795a717f9ead7b0758eebccfe072c6894e | /Model/FutureSale.py | 45b045bdcb92dbc38f7d84f94048d3d24e25537f | [] | no_license | KJKimCE/ESPP-Python | 5941bf1a6cfb730866dc2e7b0db84eedaea0b309 | 199136080005f555f4ff575cc7c2820421bbf555 | refs/heads/master | 2023-01-24T10:06:39.653347 | 2020-12-11T04:51:48 | 2020-12-11T04:51:48 | 308,115,136 | 2 | 0 | null | 2020-11-23T07:45:07 | 2020-10-28T19:04:34 | Python | UTF-8 | Python | false | false | 2,774 | py | from Model.Regime import DisqualifyingShort, DisqualifyingLong, Qualifying
from Model.Benefit import Benefit
from Tools import Utils
import heapq
class FutureSale:
regime = None
date = None
expectedReturn = None
predictedPrice = None
benefits = None
regimes = None
decision = None
def ... | [
"KJKimCE@gmail.com"
] | KJKimCE@gmail.com |
aa866e7ee13cae23c3eba611617856ed3614b598 | 96c05a71c6f50ddbc1eb8b8ad0e83e8169dd3060 | /simple_webapp.py | 36d2e5fd0aeafb24f617fdb8ebe51957beef6ac3 | [] | no_license | apheyhys/FlaskBerry | 563c5d61e23dee713ef2de07e27c79dc7e1841d7 | ceda5510e40d9236d71e7f0e3a72ffd2859898ba | refs/heads/master | 2021-08-15T05:40:02.598312 | 2017-11-17T11:48:16 | 2017-11-17T11:48:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 773 | py | from flask import Flask, session
from checker import check_logged_in
app = Flask(__name__)
@app.route('/')
def hello() -> str:
return 'Hello from the simple webapp.'
@app.route('/page1')
@check_logged_in
def page1() -> str:
return 'This is page1.'
@app.route('/page2')
@check_logged_in
def page2() -> str:
... | [
"apheyhys@gmail.com"
] | apheyhys@gmail.com |
b25f971ab860af42f04ab1c38fdedeeab5a7d550 | 5e6781dd3ea77c718a983c34fd8abc4af2b1090e | /bin/generate.py | 0347af207f4c06469bef760f4c45bbfc61f2e5a6 | [] | no_license | ajmirsky/appy | 3ae41791aff3b6ec8b85fbdceb7b6369f5e4ebb8 | 24b2bde14f05d96e13765e3c5c7f3c62db6429c7 | refs/heads/master | 2016-09-05T12:30:10.031331 | 2011-09-02T07:59:49 | 2011-09-02T07:59:49 | 2,315,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,359 | py | '''This script allows to generate a product from a Appy application.'''
# ------------------------------------------------------------------------------
import sys, os.path
from optparse import OptionParser
from appy.gen.generator import GeneratorError
from appy.shared.utils import LinesCounter
# --------------------... | [
"gaetan.delannay@gmail.com"
] | gaetan.delannay@gmail.com |
801fa55840a488244b220d5d91cce882341e68b7 | a6fe8aeaa30a22b65d98a2bb360b6d761a2e17fc | /venv/lib/python2.7/site-packages/kubernetes/client/models/v1_network_policy_list.py | 710fbf0a942cfbfaac48d8a60676112b85e12b70 | [
"MIT"
] | permissive | 784134748/kubernetes-install | 54a2a8e83e2f47f2064270649725899282b7b244 | 5df59632c2619632e422948b667fb68eab9ff5be | refs/heads/master | 2022-12-15T13:52:43.486633 | 2019-03-27T13:01:06 | 2019-03-27T13:01:06 | 176,937,818 | 0 | 0 | MIT | 2022-05-25T01:56:18 | 2019-03-21T12:13:41 | Python | UTF-8 | Python | false | false | 6,560 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.12.4
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re... | [
"784134748@qq.com"
] | 784134748@qq.com |
b371c6adb1b7f2e01b0565c36cd021eda72e8d90 | f0922c2bf70af17fcade0f857c9bf834bd294a9f | /model/model/settings.py | cfcb2d107cea5f9a5812971c42428261b23c1d9f | [] | no_license | Vaibhavraj-nath-chauhan/Django-Basic | f994d1180b789a3728ed4b018408fef8d26c352c | fa74e25aba00546cb19a72cf306a371510b85497 | refs/heads/main | 2023-02-04T04:21:37.261943 | 2020-12-23T05:31:26 | 2020-12-23T05:31:26 | 323,810,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,081 | py | """
Django settings for model project.
Generated by 'django-admin startproject' using Django 3.1.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib i... | [
"vaibhavrajbanna@gmail.com"
] | vaibhavrajbanna@gmail.com |
c4408cc0bd8a882f7da921f174d7c3c1ee877558 | 3e0d6a208afc1d2ee186c553c7c97f261eeee36d | /keras-ensemble.py | b392f966a672a995bda502e60ac910118d801ae0 | [] | no_license | andrewszwec/realestate-v004 | 0cdfc99ee57f4dfeef13d911b447f624bdfc8179 | d5ad8c129b298d93f7bfdd9516909a61591ac01e | refs/heads/master | 2021-06-20T16:17:13.977967 | 2017-06-24T09:48:58 | 2017-06-24T09:48:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | model1 = sequential()
model1.compile()
model1.fit()
model2 = sequential()
model2.compile()
model2.fit()
model3 = sequential()
model3.compile()
model3.fit()
prob1 = model1.predict_prob()
prob2 = model2.predict_prob()
prob3 = model3.predict_prob()
final_prob = (prob1 + prob2 + prob3)/3 | [
"andrew.szwec@gmail.com"
] | andrew.szwec@gmail.com |
4b665756cfecba34a72ea4c1c191b5f2a5cf9bef | f4f657b7167b63b38a5d63af1d6495fc3d791f2d | /server.py | 36ea711fb3e0a9b230f0ff63dbdd19d10c65ffea | [] | no_license | harshitsinghai77/platypus-socketio-server | 821d8cd7e1ea072a91aea0e15acb2099f863246a | 02205556ee70acc65d2f8e80a9d2daa3f222a3c7 | refs/heads/master | 2023-08-01T02:01:14.026951 | 2021-09-21T16:04:30 | 2021-09-21T16:04:30 | 408,876,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,402 | py | import logging
import socketio
import uvicorn
from uvicorn.loops.uvloop import uvloop_setup
from socketio.exceptions import ConnectionRefusedError
# Set some basic logging
logging.basicConfig(
level=2,
format="%(asctime)-15s %(levelname)-8s %(message)s"
)
sio = socketio.AsyncServer(async_mode='asgi', cors_al... | [
"harshitsinghai77@gmail.com"
] | harshitsinghai77@gmail.com |
abad02fd73eba9b1bae8a6b5e1278161f56a046a | 056a41657db9a6cc00475e2b1339edd834067a70 | /glitter/assets/migrations/0001_initial.py | 74e08286444cbeecd7bb8e28500639e1ead5014e | [
"BSD-3-Clause"
] | permissive | developersociety/django-glitter | 83f17160a19f632572b4364653df3f3816876fe5 | b9b0a3d8b49d5d9b840656f84564ba0a6e016f98 | refs/heads/master | 2023-04-14T16:58:14.765895 | 2020-01-07T14:46:17 | 2020-01-07T14:46:17 | 42,167,612 | 3 | 1 | BSD-3-Clause | 2020-01-07T16:26:56 | 2015-09-09T08:59:19 | Python | UTF-8 | Python | false | false | 3,199 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='File',
fields=[
('id', models.AutoField(seriali... | [
"ikonitas@gmail.com"
] | ikonitas@gmail.com |
ec1c5ba1eb51f7891f4b274f9671d5a2804dc5a7 | bf97e65650967281a3181a107994a9e02e269f6b | /main.py | b61dbe172cc1fa4853f207f84c63c3425c138456 | [] | no_license | ta21cos/luna-lang | 7e8566f73a2b842170c5a2ad65480b00cfa114cd | 975483d7fe9fb961da0ccffa77c84ad9545f4699 | refs/heads/master | 2020-04-11T07:17:31.091780 | 2018-12-13T08:26:35 | 2018-12-13T08:26:35 | 161,606,310 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,175 | py | import sys
from converter import Inst, convert_bf_to_instruction, convert_luna_to_brainfxck
class Pointer:
def __init__(self):
self.__p = 0
def inc(self):
self.__p += 1
def dec(self):
self.__p -= 1
# 負になるかも
def set(self, v):
self.__p = v
def __call__(sel... | [
"e.st1.ta2altr5@gmail.com"
] | e.st1.ta2altr5@gmail.com |
bb7eaa310edf715bfe4281cd05da97a576af80ef | 323f6a9078653e63c6bd9f83177c6e2689b40e0e | /scripts/merge_logs.py | edd05a2c1a44bc50a9e2e6c409463d6da0b0bc10 | [] | no_license | kux/dev-env | 99a43bcb0c91950b258b234516aa61c84206ac8c | 9009fe08763161f3a3ef139c46233e6af60f9db8 | refs/heads/master | 2021-01-25T03:40:31.232930 | 2016-09-15T01:11:20 | 2016-09-15T01:11:20 | 22,931,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,210 | py | import copy
import datetime
import os
import re
import sys
import time
APACHE_TIMESTAMP_REGEX = re.compile(r'\[(\d\d)/(\w\w\w)/(\d\d\d\d):(\d\d):(\d\d):(\d\d) -\d*\]')
MONTHS = {'Jan': 1, 'Feb': 2, 'Mar': 3, 'Apr': 4, 'May': 5, 'Jun': 6,
'Jul': 7, 'Aug': 8, 'Sep': 9, 'Nov': 10, 'Oct': 11, 'Dec': 12}
def ... | [
"alexandruioan.cucu@gmail.com"
] | alexandruioan.cucu@gmail.com |
986e0eec3c38aa11a451675f610d62ea2f425201 | b651947d36ae5b190f63ea9e7dc05cccd5ba7e83 | /bot/parsing.py | 18cb82cd8876ef36643fffe17f25d930e2b0354c | [
"MIT"
] | permissive | andrewmaximoff/Schedule-Bot | 733a910904dd2ddcba2d74fc87c6af6c5f295e28 | 59dcb3fcf04ef547a44da369021e825c5f75921a | refs/heads/master | 2022-12-10T15:04:13.063306 | 2018-04-20T09:53:30 | 2018-04-20T09:59:16 | 130,342,287 | 1 | 0 | MIT | 2022-12-08T00:57:14 | 2018-04-20T09:41:25 | Python | UTF-8 | Python | false | false | 1,678 | py | import re
import requests
import pendulum
from bs4 import BeautifulSoup
def _exams(group_name):
""""""
r_json = requests.get(
'https://api.rozklad.org.ua/v2/groups/{}'.format(group_name)).json()
group_url = r_json['data']['group_url'].rsplit('g=', 1)
html_text = requests.get(
'http:/... | [
"echoes@ex.ua"
] | echoes@ex.ua |
017f8e8a008c7776d18c53f850cc4000f42f9981 | 50dd2a43daa8316fc11e0c176b5872738fcc5dde | /Learning/080_Send_more_money/smm.py | f810119d76ad911c83aa4df522952226bb7b069d | [] | no_license | FrenchBear/Python | 58204d368e3e72071eef298ff00d06ff51bd7914 | b41ab4b6a59ee9e145ef2cd887a5fe306973962b | refs/heads/master | 2023-08-31T18:43:37.792427 | 2023-08-26T15:53:20 | 2023-08-26T15:53:20 | 124,466,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,201 | py | # send+more=money puzzle
# 2021-03-10 PV
# Brute force is acceptable here, only ~10! evals of the calc formula, acceptable
# 9 5 6 7 + 1 0 8 5 = 1 0 6 5 2
for s in range(0, 10):
for e in range(0, 10):
if e != s:
for n in range(0, 10):
if n not in (s, e):
... | [
"FrenchBear38@outlook.com"
] | FrenchBear38@outlook.com |
5877e3f3a02c8ba15ac1068debe5982a735d288d | 881369ae601208e19608067f75527d71174ee9c5 | /CH7P9.py | 259cee70f68b47d50c7c626ab4b7f50c81dc4417 | [] | no_license | ozmaws/Chapter-7 | dc3c958876b4d49e3d2b1805debda1975ebaac2e | 05358bed4cc010cafcaa40e59f6f1d882b67ffe0 | refs/heads/master | 2022-04-25T07:46:23.073206 | 2020-04-27T18:59:37 | 2020-04-27T18:59:37 | 259,424,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,502 | py | from images import Image
def lighten(image, value):
for y in range(image.getHeight()):
for x in range(image.getWidth()):
(r, g, b) = image.getPixel(x, y)
r = r + value
if r > 255:
r = 255
g = g + value
if g > 255:
g = 255
b = b + value
if b > 2... | [
"noreply@github.com"
] | noreply@github.com |
91e061654c76195b0f182c4aca38252914464bcb | 6421489894e389d3d7d32fa276dabafa50772208 | /app.py | 0a30cbb4a977b74fbe7436e7cb943907c53a4f57 | [] | no_license | Jardix/Jareds_Survey1 | ab77448d3a3275a9712cc3719dc3e9b9311a0425 | af5b073b86da0eeb9ebe9ffb0ad51f896f840191 | refs/heads/main | 2023-07-10T03:45:27.405309 | 2021-08-12T20:19:33 | 2021-08-12T20:19:33 | 395,434,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,281 | py | from flask import Flask, request, render_template, redirect, flash, session
from flask_debugtoolbar import DebugToolbarExtension
from surveys import satisfaction_survey as survey
# key names will use to store some things in the session;
# put here as constants so we're guaranteed to be consistent in
# our spelli... | [
"jaridox@hotmail.com"
] | jaridox@hotmail.com |
c8a135a13369285e7b7c9872324986de82fc5ce7 | 493b19d44a6f7f5e664d59267f4041d7e6370492 | /coir/test_single_image.py | ad567dec1aae9540d0c5c8128306be555cc3f49a | [
"MIT"
] | permissive | OmarHamdoun/Yolo-on-vedai | 41eb2514ed6c189b61a5be64ce9dd58317d7e3bb | 0c055870f29537abed0d5b92f733a7a5f90c8245 | refs/heads/master | 2020-05-20T03:28:52.958217 | 2019-02-10T22:06:23 | 2019-02-10T22:06:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,930 | py | # coding: utf-8
from __future__ import division, print_function
import tensorflow as tf
import numpy as np
import argparse
import cv2
import time
from modelcoir import yolov3
import sys
sys.path[:0] = ['../']
from utils.misc_utils import parse_anchors, read_class_names
from utils.nms_utils import gpu_nms
from utils.p... | [
"mathias.formoso@gmail.com"
] | mathias.formoso@gmail.com |
2ffe9bd07b23131856aee4d0358d667d3db33aee | 154b2ee78e764f800de199dda70d4dfde9e1b7e7 | /checkfile.py | 50e592d53b5a5f6fb190a9617cccd50752b3d39b | [] | no_license | AkashPatel1/PUBG_kaggle | bb904b293d9ca9256ecd91238a79762a40ec7663 | 0e8ea89c6ec7b3b0cf7d1bdc5f606d305c947293 | refs/heads/master | 2020-04-07T05:37:05.288138 | 2018-11-18T16:25:02 | 2018-11-18T16:25:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,112 | py |
import numpy as np
import pandas as pd
import os
# Any results you write to the current directory are saved as output.
dataset = pd.read_csv("train_V2.csv")
dataset.drop(['matchType'],axis=1,inplace=True)
pd.DataFrame(dataset).fillna(0, inplace=True)
X_train = dataset.iloc[:1000, 3:27].values
y_... | [
"noreply@github.com"
] | noreply@github.com |
e074c3726081150a53af76e76343370280b5ed44 | bbb9a0a9e68c6da6aa72ac9ceecdcbf97a392788 | /job4/db2.py | e4061196f7b75d0a9c7482ef9870621c4778ce56 | [] | no_license | sskp9999/testing | 9b4adf242c13b91c99a52c95a220b96260fe41ea | eb0415024fa442950d005617a06d4ba8188f3114 | refs/heads/master | 2023-08-25T20:18:19.137177 | 2021-10-19T07:03:25 | 2021-10-19T07:03:25 | 417,916,413 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,911 | py | import requests
import json
instance_id = '1871036088967188.8.gcp.databricks.com'
api_version = '/api/2.0'
job_name = 'Sample2_schedule'
project_id = "zebra-cicd-327507"
secret_id = "brick-sec-1"
version_id = 1
def access_secret_version(project_id, secret_id, version_id):
"""
Access the payload for the given s... | [
"sp9999@zebra.com"
] | sp9999@zebra.com |
2e3f1a46a36aad0dae7847e0e866a41c456e917b | 7179913b31c30bb3d7cc9f932cf8b068bd7f88a0 | /BFS.py | 9375527d195266e6fe98dabc4d5aac7c8b899c31 | [] | no_license | RinLaNir/homework_discrete_mathematics | 29c4d79d978266541f17427955a42f3a59d9d952 | 1543ba2d66c25ff1e55f35c28342f0f0f4a27528 | refs/heads/master | 2020-05-04T18:42:21.351256 | 2019-04-04T13:29:06 | 2019-04-04T13:29:06 | 179,363,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,531 | py | import random
import numpy as np
import collections
while True:
n = int(input("Задайте розмір суміжної матриці [5-100]: "))
if 5<=n<=100:
break
#генерація матриці суміжності
matrix = np.random.randint(0,2,size=(n,n))
#без використання пакету NumPy:
#matrix = [[random.randint(0,1) for j in ... | [
"noreply@github.com"
] | noreply@github.com |
063b15567e855884541fac9dd792242013f313a0 | 72306656e0a0e7daa59468ce6cde0024db7962ff | /201312/201312-3.py | 5de291a8013fd85ecc7fa38ebcd0327cf6581be2 | [] | no_license | HUSTERGS/CSP | ea584254abb60298a6e6492b80cf23a9ab0a4850 | 1328eaffb54b03f9a97b951366b1160342aae7bf | refs/heads/master | 2022-12-10T07:54:29.531296 | 2020-09-15T14:01:51 | 2020-09-15T14:01:51 | 201,618,751 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 983 | py | # score 100
"""
每次添加一个矩形,那么最大值必定为以下两者之一
1. 之前的最大值
2. 添加的最右边的矩形之后从该矩形开始向左延伸的最大矩形
其中2的计算中需要计算最小值,可以不用调用min函数,从而减少时间复杂度
"""
from sys import stdin
n = int(stdin.readline())
nums = tuple(int(x) for x in stdin.readline().split())
queue = []
max_rect = nums[0]
def find_max():
length = len(queue)
index = length - 1... | [
"1148690954@qq.com"
] | 1148690954@qq.com |
58ecea86d5b4170dd2c1fbfa9bef55b7c2dedc0f | 9023909d2776e708755f98d5485c4cffb3a56000 | /oneflow/python/nn/modules/acos.py | 64bd494444673f26b34ecc02a3e7fc7db0dd081b | [
"Apache-2.0"
] | permissive | sailfish009/oneflow | f6cf95afe67e284d9f79f1a941e7251dfc58b0f7 | 4780aae50ab389472bd0b76c4333e7e0a1a56ef7 | refs/heads/master | 2023-06-24T02:06:40.957297 | 2021-07-26T09:35:29 | 2021-07-26T09:35:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,663 | py | """
Copyright 2020 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... | [
"noreply@github.com"
] | noreply@github.com |
fca4b392599e38d2b6e36e42a928c8a37a5028d4 | 6bcee1f9e345985b461353f99e0ccf93b753a807 | /venv/bin/wheel | b0a15c76ae7bc0e975f84acba3d640a01f8b0f6c | [] | no_license | pipesjr/volumetracker | dcd98eb5c794a2ff0a5e8c21b436f3f89b26af37 | ab68b644466e06d801ebc9736290ecca5ecc0ca8 | refs/heads/master | 2022-09-27T08:13:57.397497 | 2019-11-19T13:40:28 | 2019-11-19T13:40:28 | 222,704,944 | 0 | 0 | null | 2022-09-16T18:13:14 | 2019-11-19T13:39:42 | Python | UTF-8 | Python | false | false | 249 | #!/Users/peterpeluso/Desktop/flask_rp/venv/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from wheel.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"peterpeluso@Peters-MacBook-Pro-2.local"
] | peterpeluso@Peters-MacBook-Pro-2.local | |
5a122b62eb01f2b1116a7650429bf6fec1b490e1 | af904de02a5949b57648b0393f7827856b2947b9 | /QLFactChecker/code/classification/answers/combine_best_feature_groups.py | 77c325268ec91a450ae5891327668f087b6d54c7 | [] | no_license | EtiChaudhary/FCPLus | f69731fe48bae8cfb1ac7886e697f5a9056e1ea0 | f76a020b1dfe8e86fb4a9e2e36654eca2a398dad | refs/heads/master | 2022-11-12T16:38:20.773773 | 2020-07-02T17:17:08 | 2020-07-02T17:17:08 | 276,702,102 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,088 | py | import RunCV
import csv, operator
################################
# Combine the best features groups.
#
################################
# This is the index of the column of the result we are comparing in the results file.
ACCURACY_INDEX = 5
MAP_INDEX = 9
# To change whether runs should be sorted by accuracy or MA... | [
"cs17mtech11029@iith.ac.in"
] | cs17mtech11029@iith.ac.in |
295a1c7eeb4b7fb02b3fe930155e6f4753c5bbf9 | ea1b3613fa137e812e2e8d3a95f3d649bcab7162 | /SportsRegistration/wsgi.py | f01e94cbb86095d1789189fc8482e4dddb3abc43 | [] | no_license | garbagemayor/sports | aa15dd077c53a9f6ef0fab8e792425b00e64d667 | 92580468004b9d1a3488f81f1d319911fbeddcb8 | refs/heads/master | 2021-09-06T06:28:40.488916 | 2018-02-03T06:04:22 | 2018-02-03T06:04:22 | 111,417,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | """
WSGI config for SportsRegistration 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("... | [
"790479613@qq.com"
] | 790479613@qq.com |
42b2917a16ba451c8ad5096c5c9b576f076affa0 | 1455db7ea72218bd184e29f4daca3fcddf05a630 | /main.py | 32a395e0a62a3ecc3c94e4c81344197c2040459c | [] | no_license | hiaiproject/hiaiproject | 4dc9300244ddc3914db1a0c893241ca2da27952b | 52b4f29a2601f97f6f3c545397a31c5a41295abf | refs/heads/master | 2023-05-06T22:46:11.366746 | 2021-05-27T06:51:41 | 2021-05-27T06:51:41 | 367,259,234 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 43 | py | def main():
print("Hello, AI")
main()
| [
"min9hyuk@gmail.com"
] | min9hyuk@gmail.com |
a938268e6e7a211edccad018a4b6418271b2bdb2 | bdf7b3ff5b8fd5d18003705f0cb893220788a179 | /tests/verification/test_build_stage.py | 74bb795273dd5e258e567d7d38765bb56ba6a4ce | [
"Apache-2.0"
] | permissive | ianlet/spaceship-ci | a055afecc58456274ae3fdffe53b0978eee49750 | c61df12778b024078a19d9d97e44dc7d219201b9 | refs/heads/master | 2021-03-30T17:41:40.060784 | 2018-09-23T19:55:43 | 2018-09-23T19:55:43 | 122,879,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,182 | py | from unittest import TestCase
from mockito import mock, verify, when
from challenge.challenge import Challenge
from challenge.submission import Submission
from verification.build_stage import BuildStage
class TestBuildStage(TestCase):
ORG_NAME = 'org-name'
CHALLENGE_NAME = 'challenge-name'
SUBMISSION_NA... | [
"letourneau.ian@gmail.com"
] | letourneau.ian@gmail.com |
604c698499ac73b30f20bbc78ebd91207f9538a6 | 1dacbf90eeb384455ab84a8cf63d16e2c9680a90 | /pkgs/astropy-1.1.2-np110py27_0/lib/python2.7/site-packages/astropy/units/tests/py3_test_quantity_annotations.py | e0eceac14e6e744ab5d600b14ee0ae04223bd509 | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown"
] | permissive | wangyum/Anaconda | ac7229b21815dd92b0bd1c8b7ec4e85c013b8994 | 2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6 | refs/heads/master | 2022-10-21T15:14:23.464126 | 2022-10-05T12:10:31 | 2022-10-05T12:10:31 | 76,526,728 | 11 | 10 | Apache-2.0 | 2022-10-05T12:10:32 | 2016-12-15T05:26:12 | Python | UTF-8 | Python | false | false | 6,014 | py | # -*- coding: utf-8 -*-
# Licensed under a 3-clause BSD style license - see LICENSE.rst
from functools import wraps
from textwrap import dedent
from ... import units as u
from ...extern import six
from ...tests.helper import pytest
def py3only(func):
if not six.PY3:
return pytest.mark.skipif('not six.PY... | [
"wgyumg@mgail.com"
] | wgyumg@mgail.com |
bf19842a2b0d50475b0ddf15ecdd803a42097161 | bd3df2f18b1aabda2d157fdec32b1c4c6074b60b | /scripts/get_state_dict.py | 99bc50a49eacd2757f2ef82e68f6432982b527da | [] | no_license | wushuang01/Focal_loss_for_object_detection | dcc0f25da0577bd6bf9a7a2276ac31440bd6de2d | f3c66b975510fa697c46838ec7e548c93959b42d | refs/heads/master | 2020-04-15T17:32:14.239187 | 2019-01-13T14:19:32 | 2019-01-13T14:19:32 | 164,874,626 | 17 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,072 | py | '''Init RestinaNet50 with pretrained ResNet50 model.
Download pretrained ResNet50 params from:
https://download.pytorch.org/models/resnet50-19c8e357.pth
'''
import math
import torch
import torch.nn as nn
import torch.nn.init as init
from fpn import FPN50
from retinanet import RetinaNet
print('Loading pretrained R... | [
"2455028055@qq.com"
] | 2455028055@qq.com |
5008856705ec2cf86f13825b73dca55b21601e6a | 9b521bf3e768d07c323c681ae9be96ef9e3796a1 | /src/app.py | 0fdd3f56012aea49ddc862d66bbe6baa26668875 | [] | no_license | vineethnnn/Nanba | 2187689f73b88f17f2c7969ffa0a5171afc7d4e8 | 30f4a745a89bc8a2754da9b87deeb33c875bf2c1 | refs/heads/master | 2022-11-10T10:49:25.027976 | 2020-06-22T13:57:42 | 2020-06-22T14:08:07 | 274,066,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44 | py | #Developer A : Line 1
#Developer B : Line 1
| [
"vineethawsqt@gmail.com"
] | vineethawsqt@gmail.com |
07c972209a7ff04f110cabe114711e157eeb5729 | 70dd72b7837907f69eef0ee5d877cd54534eff21 | /POC_Scan/information/informationmain.py | 4ea171e6683067a3d20bdf0dc73134cc8ca9bd1e | [] | no_license | scsdev-cyber/JR-scan | 077b12c4fc4d1d1ec7542ee01a22b0d3833ce77b | f4c014e86fc43d2032de8f350b1273d988afa42a | refs/heads/master | 2023-08-09T20:09:45.589994 | 2021-08-27T02:25:32 | 2021-08-27T02:25:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 904 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
name: information漏洞库
referer: unknow
author: Lucifer
description: 包含所有information漏洞类型,封装成一个模块
'''
from POC_Scan.information.springboot_api import springboot_api_BaseVerify
from POC_Scan.information.options_method import options_method_BaseVerify
from POC_Scan.informat... | [
"675354981@qq.com"
] | 675354981@qq.com |
92792e9874397cc6ff3d79a132acca0cd6f5a226 | 363feefc8c5268e0a7b883a4cfcebc9706b3e0aa | /manage.py | 68989438932d195e8a72ad2b891e595514f62810 | [] | no_license | viniciuspaulo/food | 9438e2ba428dc48d1c0b9ced516d8b33fc472400 | 94436b46af89610aa7b8c82ac82d8aa830142f29 | refs/heads/master | 2022-12-08T21:55:26.176266 | 2020-01-02T08:35:00 | 2020-01-02T08:35:00 | 231,315,718 | 0 | 0 | null | 2022-12-08T03:22:42 | 2020-01-02T05:47:10 | JavaScript | UTF-8 | Python | false | false | 540 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'vinicius.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are... | [
"vbbritodepaulo@gmail.com"
] | vbbritodepaulo@gmail.com |
7d58a752b08f9e4e6440bc904e81f9ff2b9878b2 | b79dc44cf659d86b3157737084545eae85da98bf | /flasky/app/__init__.py | 0d190f84fb16b10a3a0d31705bcc5ae8538aeb67 | [] | no_license | coral1412/Flask-Blog | fc6fc4af47fb2d8df5dce0a97decdfbe473529b6 | 3603e7f56323b70ee23e481891aa524acfcd775e | refs/heads/master | 2021-01-11T08:57:08.666210 | 2017-01-21T08:31:07 | 2017-01-21T08:31:07 | 77,498,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 614 | py | from flask import Flask,render_template
from flask_bootstrap import Bootstrap
from flask_mail import Mail
from flask_moment import Moment
from flask_sqlalchemy import SQLAlchemy
from config import config
bootstrap=Bootstrap()
mail=Mail()
moment=Moment()
db=SQLAlchemy()
def create_app(config_name):
app=Flask(__nam... | [
"guangyichan@gmail.com"
] | guangyichan@gmail.com |
d54e5d3ce6cc47fbad810f3b6dbb87a511b19a32 | b6b380e6f5353dba2256211033cebec638dffe4a | /packages/pd/tests/db/default_TestCase.py | 41e5dd8ef384968e14126b398fdb1b4a32feedd2 | [] | no_license | danse-inelastic/pyre-all | 0ddf640b68f6089e40345e9a8e20562a8b035b3c | 59cc235b6481586c58415535bbec660470218e31 | refs/heads/master | 2021-01-18T12:31:27.905459 | 2015-04-26T04:57:46 | 2015-04-26T04:57:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,917 | py | #!/usr/bin/env python
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Jiao Lin
# California Institute of Technology
# (C) 2009 All Rights Reserved
#
# {LicenseText}
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | [
"jbrkeith@gmail.com"
] | jbrkeith@gmail.com |
7ba646953f0f1a15f5634f06ac357280c66783ce | fb72aef4db762749f3ac4bc08da36d6accee0697 | /modules/photons_tile_paint/set_64.py | a5dad90fe6b7d8f9d4f9b8643e4dac851f4fb956 | [
"MIT"
] | permissive | xbliss/photons-core | 47698cc44ea80354e0dcabe42d8d370ab0623f4b | 3aca907ff29adffcab4fc22551511c5d25b8c2b7 | refs/heads/master | 2022-11-07T12:33:09.951104 | 2020-05-07T09:10:35 | 2020-05-07T09:45:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,373 | py | """
Tile animations requires packing many Set64 messages in a short amount of
time. This file exists to make that as efficient as possible by creating a class
that can pack a Set64 for tile animation with as much caching power as
possible
Don't use this directly, always use it via the
photons_tile_paint.animation.canv... | [
"stephen@delfick.com"
] | stephen@delfick.com |
32f734117fa4c780a440899047f60a411c1659eb | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-gsn-edf/gsn-edf_ut=3.0_rd=1_rw=0.06_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=37/params.py | 5b58a1e8644383c673b55f63426dd5dad45e4f82 | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | {'cpus': 4,
'duration': 30,
'final_util': '3.104810',
'max_util': '3.0',
'periods': 'harmonic-2',
'release_master': False,
'res_distr': '1',
'res_nmb': '4',
'res_weight': '0.06',
'scheduler': 'GSN-EDF',
'trial': 37,
'utils': 'uni-medium-3'}
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
7198ffbf88e31f94904be634ca44e9c91dbf2cee | 08df87a0be17699c99c812cfdfe4d5f56d226696 | /python/optkit/api.py.bak | 2ab9d39226427fb8bc6a6f4858e7625b51ac148f | [] | no_license | mengpanqingyun/optkit | e5d48ad4dc9c16143e5fdf3c3cf0ba45d72493ef | bfe44937c701ee8d79cb6b6714e76934412de0cc | refs/heads/master | 2021-06-25T12:58:28.028884 | 2018-12-20T01:59:26 | 2018-12-20T01:59:26 | 162,408,788 | 0 | 0 | null | 2018-12-19T08:46:33 | 2018-12-19T08:46:32 | null | UTF-8 | Python | false | false | 1,302 | bak | from optkit.backends import OKBackend
from optkit.types import PogsTypes, ClusteringTypes
from os import getenv
"""
Version query
"""
OPTKIT_VERSION = None
"""
Backend handle
"""
backend = OKBackend()
"""
C implementations
"""
pogs_types = None
PogsSolver = None
PogsObjective = None
clustering_types = None
Clusteri... | [
"280768813@qq.com"
] | 280768813@qq.com |
324f3103534545e93ad452e9cbd39a329d543299 | 3248a00b88d1e1f02b608cfb162fabf8d69fc070 | /Python/Functions/recursion.py | 4b6d365122b22dae47325e3861a0990e422aee0b | [
"MIT"
] | permissive | steveachu/Lectures | 74b72aeb0691a05d127ebbe0f89f4d00165bce7e | 41438bec21f6d3525f508f3a1ecf4751d95fa58c | refs/heads/master | 2021-01-18T20:59:14.239293 | 2015-08-21T01:18:42 | 2015-08-21T01:18:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 573 | py | # A simple recursive implementation of factorial
def factorial(n):
if n <= 1:
return 1
return n * factorial(n-1)
print factorial(5)
# A tail-recursive implementation of factorial
def factorial_tail(n, prod):
if n <= 1:
return prod
return factorial_tail(n-1, prod * n)# Why does this wo... | [
"neal.terrell@csulb.edu"
] | neal.terrell@csulb.edu |
cd20aa8d6cd0173f26163f8b63d1921cf755961b | faa93ef63edf80e6276c2c20192e726a0b24ac33 | /docbook-backend/DocBook/urls.py | 9d4adaf0f7739a1342f1197ec03da5f488e6be02 | [] | no_license | Livingstone99/abs_doc_book | ef03a3674363c0f9af05050611b4b8698623d55d | fe83968ae4525d9daad1166aafcee5bf9ce500f5 | refs/heads/master | 2022-12-24T06:53:20.394509 | 2020-10-07T22:50:30 | 2020-10-07T22:50:30 | 302,182,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py |
from django.contrib import admin
from django.urls import path, include
from rest_framework_jwt.views import obtain_jwt_token
urlpatterns = [
path('token-auth', obtain_jwt_token),
# path('api-auth/', include('rest_framework.urls')),
# path('rest-auth/', include('rest_auth.urls')),
# path('rest-auth/regi... | [
"vvictorious99@gmail.com"
] | vvictorious99@gmail.com |
c39f1ad13f13ac93ca81747b9ddc950c34e3efc6 | 3cbfc79ae539389ff0e31f832107d3dbbd4e311a | /machine_learning_filtering_data.py | 3a5c659fdfe521709e8eb5030b18d7f9cc7ffce7 | [] | no_license | elijahfr27/CSE163-Final-Project | cf08015ebabfd8b3eaf3f61616cc435cec38f176 | c2f4aebdce2e67cb36f414e93674ad160fcb7b4a | refs/heads/master | 2023-05-09T21:19:20.444253 | 2021-06-10T14:07:06 | 2021-06-10T14:07:06 | 373,659,870 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,966 | py | """
CSE163 Final Project
This file contains the functions for filtering the original datasets in terms
of the state data for the maching learning model.
"""
def state_graduation_rates(data, visualizations=True):
""" This function takes in the Washington State graduation dataset
as a datframe and returns a da... | [
"mayatang@Mayas-Air.home"
] | mayatang@Mayas-Air.home |
5b6f9ab6b7718a4104f546e53ec542a780495dd6 | 154f80fe8ce2ec389407bcd811d74e39ac8d7772 | /model/run.py | d5b48657cdd9807e02d2865e4891261c00063829 | [] | no_license | fagan2888/Kaggle_SpeechRecognition | fbf945b64352d5def904487fa79b169fd56d380c | b84e7731fb11440cde4a659d1248dd9c75f12eec | refs/heads/master | 2021-09-03T17:18:26.373277 | 2018-01-10T17:28:01 | 2018-01-10T17:28:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | #!/usr/local/miniconda2/bin/python
# _*_ coding: utf-8 _*_
"""
@author: Jing Guo
@time : 12/29/17
"""
from __future__ import absolute_import, division, print_function
import os
import sys
module_path = os.path.abspath(os.path.join('..'))
sys.path.append(module_path)
cmd = 'rm ../output/subm*.csv'
os.system(cmd)
c... | [
"ubuntu@ip-172-31-3-128.us-east-2.compute.internal"
] | ubuntu@ip-172-31-3-128.us-east-2.compute.internal |
00b3a87b42969e21e1afe115847ae465906bb7a5 | a9d792254cb8e3b45aaa4cffdef79823b4ea969d | /main.py | 4964805787dcd9d71dd76dfa83950b56859b4e79 | [] | no_license | Shauryayamdagni/IITM_python | 20d96e926b35e54d6f6d80c2ec5f488bf27160a7 | 73239d4a6e8c2293ce01ee529c5a4074b12fc472 | refs/heads/master | 2023-06-12T00:49:30.120778 | 2021-06-19T16:31:36 | 2021-06-19T16:31:36 | 377,646,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | n=int(input("enter the dimension"))
l1=[]
zero=[]
s=[]
a=[]
b=[]
for x in range(0,n):
for y in range(0,n):
num=int(input())
l1.append(num)
a.append(l1)
l1=[]
for x in range(0,n):
for y in range(0,n):
num=int(input())
l1.append(num)
zero.append(0)
b.append(l1)
... | [
"shauryayamdagni0@gmail.com"
] | shauryayamdagni0@gmail.com |
d7e58c3c6ff50fdc934de20808883e8695911613 | 469af60a0fd332ac2e06b5141b7aba19696e8abe | /front/webkitgtk3/srt_wkgtk/window.py | efe040a1d3d2e8295b005dba2de07c7a2dd72adb | [] | no_license | yuyichao/srtctrl | 7091d03c2358a045cac34302d26432347f3bdccf | 55e2eb227940c9bb3bb5bab1b4f7d2e84db2b96f | refs/heads/master | 2021-01-15T17:02:59.838631 | 2012-08-26T00:56:53 | 2012-08-26T00:56:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,156 | py | # Copyright (C) 2012~2012 by Yichao Yu
# yyc1992@gmail.com
#
# 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 later version.... | [
"yyc1992@gmail.com"
] | yyc1992@gmail.com |
9284e1ffe308213cd426453d63e3cac78b1ad2b6 | 177c481a40e88dc0eedf773496561d05be7772d8 | /mod_repair_extended/_build_manual.py | ab85e8e38a9d1c0449daee652f07708a739ceb53 | [
"WTFPL"
] | permissive | vizzz/spoter-mods | f0792caa742b7d5d74eeb20bae65377511d16d86 | e0a275a08532aed1be2b2cdeac3be1c9fa15f2ac | refs/heads/master | 2020-03-11T03:11:01.039580 | 2018-04-07T09:57:17 | 2018-04-07T09:57:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,238 | py | # -*- coding: utf-8 -*-
import codecs
import datetime
import glob
import json
import os
import re
import shutil
import subprocess
import base64
CLIENT_VERSION = '1.0.0'
BUILD = 'manual'
NAME = 'spoter.repair_extended'
ADD_LICENSE = True
class Build(object):
OUT_PATH = '.out'
PYC_PATH = os.path.join(OUT_PATH,... | [
"spoter@mail.ru"
] | spoter@mail.ru |
ab1386762776bda1772c77591ca769769ffd917e | 8e24e8bba2dd476f9fe612226d24891ef81429b7 | /geeksforgeeks/python/python_all/93_5.py | 4d0d66a1531f89f026f67385657698d9be34adb7 | [] | no_license | qmnguyenw/python_py4e | fb56c6dc91c49149031a11ca52c9037dc80d5dcf | 84f37412bd43a3b357a17df9ff8811eba16bba6e | refs/heads/master | 2023-06-01T07:58:13.996965 | 2021-06-15T08:39:26 | 2021-06-15T08:39:26 | 349,059,725 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,768 | py | Python | Even Front digits Test in List
Sometimes we may face a problem in which we need to find for a list if it
contains numbers which are even. This particular utility has an application in
day-day programming. Let’s discuss certain ways in which this task can be
achieved.
**Method #1 : Using list comp... | [
"qmnguyenw@gmail.com"
] | qmnguyenw@gmail.com |
c96dcad8ec65c2a84f7547eb6003c0caa5b79839 | 16a375a4750241533614065deaef4b3951d4e8bb | /cmdstanpy_attempt1.py | 6ab55b28f72a31e6e457d0fc067f49ac5c830fa9 | [] | no_license | tommylees112/stan_hydro_model | d625b20fec2e67de5addb97fea93538c6adadb55 | 8570638004521e5a80478bc1f42ad62cb5dbb602 | refs/heads/master | 2022-11-22T02:22:25.395025 | 2020-07-07T18:00:38 | 2020-07-07T18:00:38 | 277,887,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,590 | py | from pathlib import Path
import cmdstanpy
from cmdstanpy import cmdstan_path, CmdStanModel, CmdStanMCMC
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from typing import Dict
import arviz as az
import os
cmdstanpy.CMDSTAN_PATH = "/Users/tommylees/.cmdstanpy/cmdstan-2.21.0"
print(cmdstan_path())... | [
"thomas.lees112@gmail.com"
] | thomas.lees112@gmail.com |
3b1a146bea831d8de9a8abf40740088fce48b2aa | a3b8082e2d6160545591953d718fe197f2a1e8c2 | /pecobro/consts.py | 53d620c3c00d0a7e54836a10f558d5592fcec200 | [] | no_license | asutherland/pecobro | 887cc49509c4ce012bba133f9e2604b92b736bcc | 6c59619c4b33cfcc232620ab29d8d9da1362cf9c | refs/heads/master | 2021-01-10T21:23:59.238520 | 2008-05-20T11:27:22 | 2008-05-20T11:27:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,907 | py | # ***** BEGIN LICENSE BLOCK *****
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (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.mozilla.org/MPL/
#
# Softwa... | [
"asutherland@asutherland.org"
] | asutherland@asutherland.org |
df236f657fa4f27802eff0c8f610c5aa3d356661 | 222f2534b9ac7a32bd7eec939f296b23ecb9db8b | /construce_array.py | ab6e55c0b4208a72cb0dcbabc48e943ab3252af5 | [] | no_license | hzphzp/acm | 0900774a4e3ca08873941dc213db0c54736723a6 | 4bd9cf793b3e09e21db93cc3ca51e9c2a3b8b715 | refs/heads/master | 2020-03-27T06:56:06.795492 | 2018-09-22T08:15:36 | 2018-09-22T08:15:36 | 146,148,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | # Complete the countArray function below.
def countArray(n, k, x):
if (n % 2) == 1:
count = (x == 1)
add = k - 2
if (n % 2) == 0:
count = (x != 1)
add = (k - 2) * (k - 1)
for i in range((n - 3) // 2 + 1):
count += add
add *= (k - 1) * (k - 1)
add = add... | [
"huangzp1104@gmail.com"
] | huangzp1104@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.