hexsha
stringlengths
40
40
size
int64
7
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
247
max_issues_repo_name
stringlengths
4
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
247
max_forks_repo_name
stringlengths
4
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.77
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
7
1.04M
filtered:remove_function_no_docstring
int64
-102
942k
filtered:remove_class_no_docstring
int64
-354
977k
filtered:remove_delete_markers
int64
0
60.1k
76e6d8f7eb0b6e46f9d198f1329e17add45745a3
1,917
py
Python
pytorch_lightning/callbacks/__init__.py
KyleGoyette/pytorch-lightning
d6470bf1937e51e037a7f94a55ad76898e5ae103
[ "Apache-2.0" ]
1
2021-12-30T11:23:50.000Z
2021-12-30T11:23:50.000Z
pytorch_lightning/callbacks/__init__.py
KyleGoyette/pytorch-lightning
d6470bf1937e51e037a7f94a55ad76898e5ae103
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/callbacks/__init__.py
KyleGoyette/pytorch-lightning
d6470bf1937e51e037a7f94a55ad76898e5ae103
[ "Apache-2.0" ]
1
2021-09-16T15:14:11.000Z
2021-09-16T15:14:11.000Z
# Copyright The PyTorch Lightning team. # # 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 i...
42.6
101
0.818466
# Copyright The PyTorch Lightning team. # # 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 i...
0
0
0
c2db7bfbb9ca5b86636cef28f2ea8f7cd57984a9
1,106
py
Python
tests/test_delete.py
niallmcc/treehaus
069a8f478856e5d55b22b96d83be8f13e0853cd7
[ "Apache-2.0" ]
null
null
null
tests/test_delete.py
niallmcc/treehaus
069a8f478856e5d55b22b96d83be8f13e0853cd7
[ "Apache-2.0" ]
null
null
null
tests/test_delete.py
niallmcc/treehaus
069a8f478856e5d55b22b96d83be8f13e0853cd7
[ "Apache-2.0" ]
null
null
null
# Copyright 2017,2021 Niall McCarroll # # 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 w...
28.358974
74
0.661844
# Copyright 2017,2021 Niall McCarroll # # 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 w...
332
15
54
7a4d2cd6c0b3ae103067e0b40bf96c705c45d0b2
3,388
py
Python
cloudreg/scripts/download_data.py
neurodata/ndmc
52f057c50d517862bd8b51ebfcc3aac887067df9
[ "Apache-2.0" ]
5
2020-10-31T13:00:05.000Z
2021-09-21T14:01:53.000Z
cloudreg/scripts/download_data.py
neurodata/ndmc
52f057c50d517862bd8b51ebfcc3aac887067df9
[ "Apache-2.0" ]
4
2020-07-25T01:44:31.000Z
2022-02-15T20:26:42.000Z
cloudreg/scripts/download_data.py
neurodata/ndmc
52f057c50d517862bd8b51ebfcc3aac887067df9
[ "Apache-2.0" ]
5
2020-07-10T19:11:25.000Z
2022-02-25T17:36:58.000Z
from .util import imgResample from cloudvolume import CloudVolume from argparse import ArgumentParser import numpy as np import SimpleITK as sitk import tifffile as tf def get_mip_at_res(vol, resolution): """Find the mip that is at least a given resolution Args: vol (cloudvolume.CloudVoluem): CloudVo...
35.663158
131
0.682999
from .util import imgResample from cloudvolume import CloudVolume from argparse import ArgumentParser import numpy as np import SimpleITK as sitk import tifffile as tf def get_mip_at_res(vol, resolution): """Find the mip that is at least a given resolution Args: vol (cloudvolume.CloudVoluem): CloudVo...
0
0
0
2bd927fa58cbd236d91f600eb4ee25aefafdddd1
1,307
py
Python
ns/topos/utils.py
lunarss/ns.py
9298c850290fb2ee98b047dfc757f4687763c2f8
[ "Apache-2.0" ]
3
2021-06-17T01:57:43.000Z
2021-12-16T11:53:31.000Z
ns/topos/utils.py
wsyCUHK/ns.py
44f9c627a9d3b9b31a0799b9a9cea50560eda8a1
[ "Apache-2.0" ]
1
2021-07-20T02:48:41.000Z
2021-07-20T02:48:41.000Z
ns/topos/utils.py
JinJinGuang/ns.py
90415c4c83dd775cc50976c609ecbf551191cdf0
[ "Apache-2.0" ]
null
null
null
from random import sample import networkx as nx from ns.flow.flow import Flow
26.14
74
0.573833
from random import sample import networkx as nx from ns.flow.flow import Flow def read_topo(fname): ftype = ".graphml" if fname.endswith(ftype): return nx.read_graphml(fname) else: print(f"{fname} is not GraphML") def generate_flows(G, hosts, nflows): all_flows = dict() for flow...
1,156
0
69
1d192e6e82a63df4d24d3a3f075a9322969a6755
12,156
py
Python
custom_components/powerpetdoor/switch.py
corporategoth/ha-powepetdoor
ac75964e94496eb8ef9fcd4f73e06bf33307c46a
[ "MIT" ]
2
2022-02-28T23:00:06.000Z
2022-03-04T04:35:25.000Z
custom_components/powerpetdoor/switch.py
corporategoth/ha-powepetdoor
ac75964e94496eb8ef9fcd4f73e06bf33307c46a
[ "MIT" ]
2
2022-03-01T04:40:29.000Z
2022-03-03T00:47:20.000Z
custom_components/powerpetdoor/switch.py
corporategoth/ha-powepetdoor
ac75964e94496eb8ef9fcd4f73e06bf33307c46a
[ "MIT" ]
1
2022-03-01T04:38:02.000Z
2022-03-01T04:38:02.000Z
from __future__ import annotations import voluptuous as vol from datetime import datetime, timezone, timedelta from homeassistant.core import HomeAssistant, callback from homeassistant.helpers.entity import Entity, ToggleEntity from homeassistant.helpers.entity_platform import AddEntitiesCallback from homeassistant.h...
33.766667
216
0.637463
from __future__ import annotations import voluptuous as vol from datetime import datetime, timezone, timedelta from homeassistant.core import HomeAssistant, callback from homeassistant.helpers.entity import Entity, ToggleEntity from homeassistant.helpers.entity_platform import AddEntitiesCallback from homeassistant.h...
4,817
3,474
68
28f339c687b5b781f8f63a347bbc17154837a033
35,720
py
Python
Scripts/simulation/interactions/base/basic.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
Scripts/simulation/interactions/base/basic.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
Scripts/simulation/interactions/base/basic.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
# uncompyle6 version 3.7.4 # Python bytecode 3.7 (3394) # Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)] # Embedded file name: T:\InGame\Gameplay\Scripts\Server\interactions\base\basic.py # Compiled at: 2020-10-17 21:48:10 # Size of source mod 2**32: 42277 byte...
79.732143
1,955
0.725056
# uncompyle6 version 3.7.4 # Python bytecode 3.7 (3394) # Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)] # Embedded file name: T:\InGame\Gameplay\Scripts\Server\interactions\base\basic.py # Compiled at: 2020-10-17 21:48:10 # Size of source mod 2**32: 42277 byte...
15,130
11,083
484
9f4c94237701a9eb5d1fbcf5affa2c58ebc18f2d
23,112
py
Python
geopandas_view/test_view.py
martinfleis/geopandas-view
5c516f81f570740f4d39e0df371e3327eb5bbd38
[ "BSD-3-Clause" ]
26
2021-02-05T23:35:17.000Z
2021-12-16T15:45:20.000Z
geopandas_view/test_view.py
martinfleis/geopandas-view
5c516f81f570740f4d39e0df371e3327eb5bbd38
[ "BSD-3-Clause" ]
45
2021-02-05T21:45:30.000Z
2021-09-23T20:22:25.000Z
geopandas_view/test_view.py
martinfleis/geopandas-view
5c516f81f570740f4d39e0df371e3327eb5bbd38
[ "BSD-3-Clause" ]
4
2021-02-07T05:31:51.000Z
2021-12-31T11:53:25.000Z
import folium import geopandas as gpd import matplotlib.cm as cm import matplotlib.colors as colors from branca.colormap import StepColormap import contextily import numpy as np import pandas as pd import pytest from geopandas_view import view nybb = gpd.read_file(gpd.datasets.get_path("nybb")) world = gpd.read_file(...
31.232432
114
0.624308
import folium import geopandas as gpd import matplotlib.cm as cm import matplotlib.colors as colors from branca.colormap import StepColormap import contextily import numpy as np import pandas as pd import pytest from geopandas_view import view nybb = gpd.read_file(gpd.datasets.get_path("nybb")) world = gpd.read_file(...
10,128
0
299
d78cadee72dd8f376e35077358eabe5b33cd5e80
7,307
py
Python
plugins/theme/__init__.py
labscript-suite-temp-archive/blacs-fork--rbchip-blacs--forked-from--labscript_suite-blacs
2f023c6564dee46b555922e949d4bee81de8ca58
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
plugins/theme/__init__.py
labscript-suite-temp-archive/blacs-fork--rbchip-blacs--forked-from--labscript_suite-blacs
2f023c6564dee46b555922e949d4bee81de8ca58
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
plugins/theme/__init__.py
labscript-suite-temp-archive/blacs-fork--rbchip-blacs--forked-from--labscript_suite-blacs
2f023c6564dee46b555922e949d4bee81de8ca58
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
##################################################################### # # # /plugins/theme/__init__.py # # # # Copyright 2013, Monash University ...
33.828704
133
0.562748
##################################################################### # # # /plugins/theme/__init__.py # # # # Copyright 2013, Monash University ...
2,804
355
479
dd5c1094c4eb664e3b19d4cf12493ffb79b7cb63
153
py
Python
L2J_DataPack/data/scripts/cron/example.py
Vladislav-Zolotaryov/L2J_Levelless_Custom
fb9fd3d22209679258cddc60cec104d740f13b8c
[ "MIT" ]
null
null
null
L2J_DataPack/data/scripts/cron/example.py
Vladislav-Zolotaryov/L2J_Levelless_Custom
fb9fd3d22209679258cddc60cec104d740f13b8c
[ "MIT" ]
38
2018-02-06T17:11:29.000Z
2018-06-05T20:47:59.000Z
L2J_DataPack/data/scripts/cron/example.py
Vladislav-Zolotaryov/L2J_Levelless_Custom
fb9fd3d22209679258cddc60cec104d740f13b8c
[ "MIT" ]
null
null
null
############################################## ### Author: Layane (andrashe@gmail.com) ############################################## print "Hi world!"
25.5
46
0.261438
############################################## ### Author: Layane (andrashe@gmail.com) ############################################## print "Hi world!"
0
0
0
0a46051c737e3d90fb1f15fd58c2913ac7baf8b9
5,854
py
Python
Machine-Learning-in-Production/Reference/04-Pipeline-Example/06-Monitor.py
databricks-academy/ml-in-production
1fd6713e18cfc36357f3a98d75fedc8ffbf9eedc
[ "CC0-1.0" ]
14
2021-09-21T19:48:02.000Z
2022-03-09T19:22:39.000Z
Machine-Learning-in-Production/Solutions/Reference/04-Pipeline-Example/06-Monitor.py
databricks-academy/ml-in-production
1fd6713e18cfc36357f3a98d75fedc8ffbf9eedc
[ "CC0-1.0" ]
null
null
null
Machine-Learning-in-Production/Solutions/Reference/04-Pipeline-Example/06-Monitor.py
databricks-academy/ml-in-production
1fd6713e18cfc36357f3a98d75fedc8ffbf9eedc
[ "CC0-1.0" ]
5
2021-08-22T12:12:49.000Z
2022-02-28T15:47:43.000Z
# Databricks notebook source # MAGIC %md ### Drift Monitor # MAGIC # MAGIC This notebook is called by Orchestrate to determine if drift has occured over time. # MAGIC # MAGIC It takes in two time periods of data and determines if significant change has occurred in addition to a target directory to write the drift. #...
34.435294
148
0.659891
# Databricks notebook source # MAGIC %md ### Drift Monitor # MAGIC # MAGIC This notebook is called by Orchestrate to determine if drift has occured over time. # MAGIC # MAGIC It takes in two time periods of data and determines if significant change has occurred in addition to a target directory to write the drift. #...
0
3,288
23
c1048d3ad16471ad70fdb1594424304b1bbb73bd
4,707
py
Python
yolov3_deepsort_eval.py
h-enes-simsek/deep_sort_pytorch
0a9ede55e53355c19455197cc8daa60336c652bb
[ "MIT" ]
1
2021-02-28T15:22:43.000Z
2021-02-28T15:22:43.000Z
yolov3_deepsort_eval.py
h-enes-simsek/deep_sort_pytorch
0a9ede55e53355c19455197cc8daa60336c652bb
[ "MIT" ]
null
null
null
yolov3_deepsort_eval.py
h-enes-simsek/deep_sort_pytorch
0a9ede55e53355c19455197cc8daa60336c652bb
[ "MIT" ]
null
null
null
import os import os.path as osp import logging import argparse from pathlib import Path from utils.log import get_logger from yolov3_deepsort import VideoTracker from utils.parser import get_config import motmetrics as mm mm.lap.default_solver = 'lap' from utils.evaluation import Evaluator if __name_...
38.900826
237
0.645634
import os import os.path as osp import logging import argparse from pathlib import Path from utils.log import get_logger from yolov3_deepsort import VideoTracker from utils.parser import get_config import motmetrics as mm mm.lap.default_solver = 'lap' from utils.evaluation import Evaluator def mkdir_if...
3,044
0
75
f0062d1d878a0456f0b09fbf0b61001987923901
2,717
py
Python
demo/DeepLog_demo_without_sequence.py
ZouJinying/XAI_loglizer
df3e9d91502c10b8c8d8871617b405cc0671308b
[ "MIT" ]
1
2021-03-02T13:22:21.000Z
2021-03-02T13:22:21.000Z
demo/DeepLog_demo_without_sequence.py
ZouJinying/XAI_loglizer
df3e9d91502c10b8c8d8871617b405cc0671308b
[ "MIT" ]
null
null
null
demo/DeepLog_demo_without_sequence.py
ZouJinying/XAI_loglizer
df3e9d91502c10b8c8d8871617b405cc0671308b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import matplotlib as plt import numpy as np sys.path.append('../') from loglizer import dataloader from loglizer.models import DeepLog from loglizer.preprocessing import Vectorizer, Iterator from loglizer import x_ai batch_size = 32 hidden_size = 32 num_dire...
35.285714
219
0.715863
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import matplotlib as plt import numpy as np sys.path.append('../') from loglizer import dataloader from loglizer.models import DeepLog from loglizer.preprocessing import Vectorizer, Iterator from loglizer import x_ai batch_size = 32 hidden_size = 32 num_dire...
0
0
0
ae026536079a1af23bcb2ed7eb926e67dd7b310d
6,664
py
Python
python-package/test/geo_data/request_assertion.py
IKrukov-HORIS/lets-plot
b772e4abcc4c715ef3c3a2e3db55abd4044f863f
[ "MIT" ]
768
2019-11-28T14:09:46.000Z
2022-03-30T18:19:28.000Z
python-package/test/geo_data/request_assertion.py
IKrukov-HORIS/lets-plot
b772e4abcc4c715ef3c3a2e3db55abd4044f863f
[ "MIT" ]
240
2019-12-04T20:15:03.000Z
2022-03-30T17:12:23.000Z
python-package/test/geo_data/request_assertion.py
IKrukov-HORIS/lets-plot
b772e4abcc4c715ef3c3a2e3db55abd4044f863f
[ "MIT" ]
43
2019-12-05T13:45:32.000Z
2022-03-31T21:27:00.000Z
# Copyright (c) 2020. JetBrains s.r.o. # Use of this source code is governed by the MIT license that can be found in the LICENSE file. from typing import TypeVar, Generic, Optional, List, Union from lets_plot.geo_data.gis.geometry import GeoRect, GeoPoint from lets_plot.geo_data.geocodes import _ensure_is_list from...
33.32
114
0.651861
# Copyright (c) 2020. JetBrains s.r.o. # Use of this source code is governed by the MIT license that can be found in the LICENSE file. from typing import TypeVar, Generic, Optional, List, Union from lets_plot.geo_data.gis.geometry import GeoRect, GeoPoint from lets_plot.geo_data.geocodes import _ensure_is_list from...
4,714
119
1,035
4d9998af6792157108804c5a24cc052ed3bda6aa
5,591
py
Python
tests/pheweb/load/field_formatter_test.py
stellakeppo/pheweb
10ea317dbe9419fa77f99e6b735fa9a3290ccd5e
[ "MIT" ]
null
null
null
tests/pheweb/load/field_formatter_test.py
stellakeppo/pheweb
10ea317dbe9419fa77f99e6b735fa9a3290ccd5e
[ "MIT" ]
null
null
null
tests/pheweb/load/field_formatter_test.py
stellakeppo/pheweb
10ea317dbe9419fa77f99e6b735fa9a3290ccd5e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Test formatters. Unit tests for column formatters. """ import uuid from unittest.mock import patch import pytest from pheweb.load.field_formatter import ( str_formatter, chromosome_formatter, position_formatter, parameterized_sequence_formatter, p_value_formatter, ...
26.49763
78
0.654802
# -*- coding: utf-8 -*- """ Test formatters. Unit tests for column formatters. """ import uuid from unittest.mock import patch import pytest from pheweb.load.field_formatter import ( str_formatter, chromosome_formatter, position_formatter, parameterized_sequence_formatter, p_value_formatter, ...
0
0
0
08148b61d13428ed094312f5c601345ddf268700
462,798
py
Python
src/mip_functions.py
arisp99/MIPTools
072e5e4312e8f44294abc1a1fcc2b347e0b09567
[ "MIT" ]
3
2019-10-16T01:13:26.000Z
2021-04-26T13:47:12.000Z
src/mip_functions.py
arisp99/MIPTools
072e5e4312e8f44294abc1a1fcc2b347e0b09567
[ "MIT" ]
24
2021-09-30T19:11:29.000Z
2022-03-23T21:22:11.000Z
src/mip_functions.py
arisp99/MIPTools
072e5e4312e8f44294abc1a1fcc2b347e0b09567
[ "MIT" ]
4
2021-09-30T16:12:28.000Z
2022-02-21T15:27:28.000Z
# -*- coding: utf-8 -*- import subprocess import json import os import io from multiprocessing import Pool import multiprocessing import multiprocessing.pool from operator import itemgetter import random import string import pickle import copy import numpy as np import matplotlib.pyplot as plt from matplotlib import co...
45.690394
121
0.546048
# -*- coding: utf-8 -*- import subprocess import json import os import io from multiprocessing import Pool import multiprocessing import multiprocessing.pool from operator import itemgetter import random import string import pickle import copy import numpy as np import matplotlib.pyplot as plt from matplotlib import co...
90,376
222
1,374
dbf2d2f45452381528bab4caca8f1f35c2e55cf4
13,733
py
Python
config/custom_components/hacs/ws_api_handlers.py
aureliosaraiva/Home-AssistantConfig
14b278c9d306fead2eb8eeae5008d6b69bad97a2
[ "MIT" ]
1
2020-01-28T00:25:15.000Z
2020-01-28T00:25:15.000Z
config/custom_components/hacs/ws_api_handlers.py
aureliosaraiva/Home-AssistantConfig
14b278c9d306fead2eb8eeae5008d6b69bad97a2
[ "MIT" ]
null
null
null
config/custom_components/hacs/ws_api_handlers.py
aureliosaraiva/Home-AssistantConfig
14b278c9d306fead2eb8eeae5008d6b69bad97a2
[ "MIT" ]
null
null
null
"""WebSocket API for HACS.""" # pylint: disable=unused-argument import sys import os import voluptuous as vol from aiogithubapi import AIOGitHubException from homeassistant.components import websocket_api import homeassistant.helpers.config_validation as cv from .hacsbase.exceptions import HacsException from .store imp...
36.139474
84
0.634384
"""WebSocket API for HACS.""" # pylint: disable=unused-argument import sys import os import voluptuous as vol from aiogithubapi import AIOGitHubException from homeassistant.components import websocket_api import homeassistant.helpers.config_validation as cv from .hacsbase.exceptions import HacsException from .store imp...
0
0
0
c1c606b270a8b5313eedbebba29e9748c268f6b0
503
py
Python
mlfinlab/portfolio_optimization/__init__.py
jihobak/mlfinlab
c504532729b44f6623255b2fcf105c2627cedec8
[ "BSD-3-Clause" ]
8
2020-04-19T08:09:34.000Z
2022-03-30T20:49:40.000Z
mlfinlab/portfolio_optimization/__init__.py
jihobak/mlfinlab
c504532729b44f6623255b2fcf105c2627cedec8
[ "BSD-3-Clause" ]
1
2019-07-24T17:52:30.000Z
2019-07-24T17:52:30.000Z
mlfinlab/portfolio_optimization/__init__.py
nisarahamedk/mlfinlab
c504532729b44f6623255b2fcf105c2627cedec8
[ "BSD-3-Clause" ]
8
2020-08-09T02:25:04.000Z
2022-03-20T15:08:11.000Z
""" Classes derived from Portfolio Optimisation module """ from mlfinlab.portfolio_optimization.cla import CLA from mlfinlab.portfolio_optimization.hrp import HierarchicalRiskParity from mlfinlab.portfolio_optimization.mean_variance import MeanVarianceOptimisation from mlfinlab.portfolio_optimization.hcaa import Hiera...
45.727273
86
0.898608
""" Classes derived from Portfolio Optimisation module """ from mlfinlab.portfolio_optimization.cla import CLA from mlfinlab.portfolio_optimization.hrp import HierarchicalRiskParity from mlfinlab.portfolio_optimization.mean_variance import MeanVarianceOptimisation from mlfinlab.portfolio_optimization.hcaa import Hiera...
0
0
0
b79fd0ab4740928394e4deca7b8f6a3cdc483886
6,672
py
Python
simsi_transfer/transfer.py
kusterlab/SIMSI-Transfer
2973895a222cbb30c0be88f2ee2ba0d1bf3ee8e5
[ "Apache-2.0" ]
null
null
null
simsi_transfer/transfer.py
kusterlab/SIMSI-Transfer
2973895a222cbb30c0be88f2ee2ba0d1bf3ee8e5
[ "Apache-2.0" ]
null
null
null
simsi_transfer/transfer.py
kusterlab/SIMSI-Transfer
2973895a222cbb30c0be88f2ee2ba0d1bf3ee8e5
[ "Apache-2.0" ]
1
2022-03-23T11:06:40.000Z
2022-03-23T11:06:40.000Z
import re import logging import pandas as pd import numpy as np from .merging_functions import merge_with_msmsscanstxt, merge_with_msmstxt, merge_with_summarytxt logger = logging.getLogger(__name__) PHOSPHO_REGEX = re.compile(r'([STY])\(Phospho \(STY\)\)') def transfer(summary_df, mask=False): """ Main f...
43.324675
115
0.715677
import re import logging import pandas as pd import numpy as np from .merging_functions import merge_with_msmsscanstxt, merge_with_msmstxt, merge_with_summarytxt logger = logging.getLogger(__name__) PHOSPHO_REGEX = re.compile(r'([STY])\(Phospho \(STY\)\)') def transfer(summary_df, mask=False): """ Main f...
1,427
0
69
ad9a8181cc4c30e2dd92208d6a6466d7ae6d20cf
3,073
py
Python
mapie/aggregation_functions.py
RudrakshTuwani/MAPIE
11940aed9c8eb85943513b26677d684cafda363c
[ "BSD-3-Clause" ]
null
null
null
mapie/aggregation_functions.py
RudrakshTuwani/MAPIE
11940aed9c8eb85943513b26677d684cafda363c
[ "BSD-3-Clause" ]
null
null
null
mapie/aggregation_functions.py
RudrakshTuwani/MAPIE
11940aed9c8eb85943513b26677d684cafda363c
[ "BSD-3-Clause" ]
null
null
null
from typing import Callable, Optional import numpy as np from ._typing import NDArray def phi1D( x: NDArray, B: NDArray, fun: Callable[[NDArray], NDArray], ) -> NDArray: """ The function phi1D is called by phi2D. It aims at applying a function ``fun`` after multiplying each row of B by x...
25.608333
77
0.550927
from typing import Callable, Optional import numpy as np from ._typing import NDArray def phi1D( x: NDArray, B: NDArray, fun: Callable[[NDArray], NDArray], ) -> NDArray: """ The function phi1D is called by phi2D. It aims at applying a function ``fun`` after multiplying each row of B by x...
0
0
0
1a4522b36859c341c6c66cb482bd451b3a6ebe20
249
py
Python
workflows/lambdas/tests/test_nop.py
markdboyd/CIRRUS-DAAC
4ce2df4c4e138e6346dd40f6869dcbb516d02db6
[ "Apache-2.0" ]
1
2020-10-11T10:31:59.000Z
2020-10-11T10:31:59.000Z
workflows/lambdas/tests/test_nop.py
markdboyd/CIRRUS-DAAC
4ce2df4c4e138e6346dd40f6869dcbb516d02db6
[ "Apache-2.0" ]
13
2020-05-08T20:11:46.000Z
2021-08-06T18:32:00.000Z
workflows/lambdas/tests/test_nop.py
markdboyd/CIRRUS-DAAC
4ce2df4c4e138e6346dd40f6869dcbb516d02db6
[ "Apache-2.0" ]
8
2020-02-10T19:17:54.000Z
2021-05-27T17:10:09.000Z
from lambdas.nop import _nop, _cma_output
13.833333
41
0.650602
from lambdas.nop import _nop, _cma_output def test_nop(): expected = None actual = _nop() assert expected == actual def test_cma_output(): expected = {"NOP": None} actual = _cma_output(None) assert expected == actual
159
0
46
b0eb3d0e55f26131aadaca08815c70eab932bc17
626
py
Python
model/contactdetail.py
beda-software/fhir-py-experements
363cfb894fa6f971b9be19340cae1b0a3a4377d8
[ "MIT" ]
null
null
null
model/contactdetail.py
beda-software/fhir-py-experements
363cfb894fa6f971b9be19340cae1b0a3a4377d8
[ "MIT" ]
null
null
null
model/contactdetail.py
beda-software/fhir-py-experements
363cfb894fa6f971b9be19340cae1b0a3a4377d8
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 4.0.1-9346c8cc45 (http://hl7.org/fhir/StructureDefinition/ContactDetail) on 2020-02-03. # 2020, SMART Health IT. import sys from dataclasses import dataclass, field from typing import ClassVar, Optional, List from .contactpoint import ContactPoint...
27.217391
110
0.734824
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 4.0.1-9346c8cc45 (http://hl7.org/fhir/StructureDefinition/ContactDetail) on 2020-02-03. # 2020, SMART Health IT. import sys from dataclasses import dataclass, field from typing import ClassVar, Optional, List from .contactpoint import ContactPoint...
0
0
0
885efa63419b07317e87d5a572074b90c0e9bf35
335
py
Python
behavioral/interpreter/logic/interpreter.py
Kozak24/Patterns
351d5c11f7c64ce5d58db37b6715fc8f7d31945a
[ "MIT" ]
null
null
null
behavioral/interpreter/logic/interpreter.py
Kozak24/Patterns
351d5c11f7c64ce5d58db37b6715fc8f7d31945a
[ "MIT" ]
null
null
null
behavioral/interpreter/logic/interpreter.py
Kozak24/Patterns
351d5c11f7c64ce5d58db37b6715fc8f7d31945a
[ "MIT" ]
null
null
null
from behavioral.interpreter.logic import Lexer, Parser
25.769231
64
0.692537
from behavioral.interpreter.logic import Lexer, Parser class Interpreter: def __init__(self, expression: str) -> None: self._expression = expression def interpret(self) -> int: tokens = Lexer(self._expression).get_expression_tokens() parser = Parser(tokens) return parser.pars...
206
-3
76
e058d953531963092cfa3826cc6c3e620e4fd0b8
3,177
py
Python
mars/tensor/random/random_sample.py
tomzhang/mars-1
6f1d85e37eb1b383251314cb0ba13e06288af03d
[ "Apache-2.0" ]
2
2019-03-29T04:11:10.000Z
2020-07-08T10:19:54.000Z
mars/tensor/random/random_sample.py
tomzhang/mars-1
6f1d85e37eb1b383251314cb0ba13e06288af03d
[ "Apache-2.0" ]
null
null
null
mars/tensor/random/random_sample.py
tomzhang/mars-1
6f1d85e37eb1b383251314cb0ba13e06288af03d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 1999-2020 Alibaba Group Holding Ltd. # # 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-...
35.696629
91
0.663834
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 1999-2020 Alibaba Group Holding Ltd. # # 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-...
291
212
23
2e3046976626823b98618dfbcee4dfcfe90e65b7
326
py
Python
iniciante/python/1009-salario-com-bonus.py
tfn10/beecrowd
1ebf19ca9a253eb326160f03145d20be33064969
[ "MIT" ]
null
null
null
iniciante/python/1009-salario-com-bonus.py
tfn10/beecrowd
1ebf19ca9a253eb326160f03145d20be33064969
[ "MIT" ]
null
null
null
iniciante/python/1009-salario-com-bonus.py
tfn10/beecrowd
1ebf19ca9a253eb326160f03145d20be33064969
[ "MIT" ]
null
null
null
nome_vendendor = input() sal_fixo = float(input()) vendas_total = float(input()) salario(nome_vendendor, sal_fixo, vendas_total)
27.166667
51
0.745399
def salario(vendedor, salario_fixo, total_vendas): comissao_ganha = total_vendas * 0.15 salario_total = comissao_ganha + salario_fixo return print(f'TOTAL = R$ {salario_total:.2f}') nome_vendendor = input() sal_fixo = float(input()) vendas_total = float(input()) salario(nome_vendendor, sal_fixo, vendas_t...
172
0
22
a53630b55627d96a385997c6637803404f341ca1
218
py
Python
examples/fresh_desktop_folder.py
EGAdams/wexpect
788a32689c632c71435c84e12f1c2de0c3b11f2c
[ "MIT" ]
null
null
null
examples/fresh_desktop_folder.py
EGAdams/wexpect
788a32689c632c71435c84e12f1c2de0c3b11f2c
[ "MIT" ]
null
null
null
examples/fresh_desktop_folder.py
EGAdams/wexpect
788a32689c632c71435c84e12f1c2de0c3b11f2c
[ "MIT" ]
null
null
null
''' ''' from ProjectFactory import ProjectFactory import wexpect wexpect.TIMEOUT # Start cmd as child process child = wexpect.spawn('cmd.exe') project_factory = ProjectFactory( child ) project_factory.build_project()
19.818182
41
0.788991
''' ''' from ProjectFactory import ProjectFactory import wexpect wexpect.TIMEOUT # Start cmd as child process child = wexpect.spawn('cmd.exe') project_factory = ProjectFactory( child ) project_factory.build_project()
0
0
0
9800f9f7b553fafeecd154df416931cc5e1810cf
1,417
py
Python
rupo/files/test_reader.py
dagrigorev/rupo
3b1bb5873f3d0f8ef4fe662221d5f7a3573909cc
[ "Apache-2.0" ]
171
2017-06-06T17:01:32.000Z
2022-02-03T10:32:54.000Z
rupo/files/test_reader.py
GraphGrailAi/rupo
8e2fbcdb3e948dd5e8f007d471171c730be3ad3d
[ "Apache-2.0" ]
12
2017-03-20T18:09:54.000Z
2021-07-28T17:39:38.000Z
rupo/files/test_reader.py
GraphGrailAi/rupo
8e2fbcdb3e948dd5e8f007d471171c730be3ad3d
[ "Apache-2.0" ]
33
2017-03-29T13:27:56.000Z
2022-02-21T18:36:38.000Z
# -*- coding: utf-8 -*- # Автор: Гусев Илья # Описание: Тесты считывателя разметок. import unittest from rupo.files.reader import Reader, FileType from rupo.stress.predictor import CombinedStressPredictor from rupo.main.markup import Markup, Line, Word from rupo.settings import MARKUP_XML_EXAMPLE, TEXT_XML_EXAMPLE, M...
39.361111
99
0.731828
# -*- coding: utf-8 -*- # Автор: Гусев Илья # Описание: Тесты считывателя разметок. import unittest from rupo.files.reader import Reader, FileType from rupo.stress.predictor import CombinedStressPredictor from rupo.main.markup import Markup, Line, Word from rupo.settings import MARKUP_XML_EXAMPLE, TEXT_XML_EXAMPLE, M...
942
112
23
d2d0a9f027daa677575258b130b47642a576d603
406
py
Python
ocr.py
amnet04/ALECMAPREADER1
7539ffcfc7ddda9915c6b19f7268ebdf6ee6a64f
[ "MIT" ]
null
null
null
ocr.py
amnet04/ALECMAPREADER1
7539ffcfc7ddda9915c6b19f7268ebdf6ee6a64f
[ "MIT" ]
null
null
null
ocr.py
amnet04/ALECMAPREADER1
7539ffcfc7ddda9915c6b19f7268ebdf6ee6a64f
[ "MIT" ]
null
null
null
from tesserwrap import Tesseract from PIL import Image import re
25.375
49
0.64532
from tesserwrap import Tesseract from PIL import Image import re def ocr(img,idioma): ocr_img = Image.fromarray(img) ocr = Tesseract(lang=idioma) ocr.set_image(ocr_img) pattern = re.compile('[a-zA-Z0-9]') text = ocr.get_utf8_text() text = text.splitlines() text = [x for x in text if x != ''...
318
0
23
6b67346426a648b1e1e354f5be90817e4a9b671d
3,476
py
Python
quietnet.py
hellcoderz/quietnet
6a8e4e0c55cb21f83dddcabda4939852edef7ce9
[ "MIT" ]
1
2016-08-16T16:25:10.000Z
2016-08-16T16:25:10.000Z
quietnet.py
hellcoderz/quietnet
6a8e4e0c55cb21f83dddcabda4939852edef7ce9
[ "MIT" ]
null
null
null
quietnet.py
hellcoderz/quietnet
6a8e4e0c55cb21f83dddcabda4939852edef7ce9
[ "MIT" ]
null
null
null
import numpy as np import struct import math # split something into chunks
30.491228
123
0.640967
import numpy as np import struct import math # split something into chunks def chunks(l, n): for i in xrange(0, len(l), n): yield l[i:i+n] def unpack(buffer): return unpack_buffer(list(chunks(buffer, 2))) def unpack_buffer(buffer): return [struct.unpack('h', frame)[0] for frame in buffer] def pa...
2,941
0
459
026e22c3b3045fe1dd293068fb8607ccb8dc9017
2,126
py
Python
utilization/directory_utils.py
omidmirzajani/CodART
eb56455ad81d7c6afc07fc35fae867ae49c035e0
[ "MIT" ]
null
null
null
utilization/directory_utils.py
omidmirzajani/CodART
eb56455ad81d7c6afc07fc35fae867ae49c035e0
[ "MIT" ]
null
null
null
utilization/directory_utils.py
omidmirzajani/CodART
eb56455ad81d7c6afc07fc35fae867ae49c035e0
[ "MIT" ]
null
null
null
""" Utilities related to project directory. """ import os import subprocess def git_restore(project_dir): """ This function executes "git restore ." on the given project directory. :param project_dir: A string and Absolute path of the project's directory. :return: None """ assert os.path.isdi...
35.433333
118
0.695202
""" Utilities related to project directory. """ import os import subprocess def git_restore(project_dir): """ This function executes "git restore ." on the given project directory. :param project_dir: A string and Absolute path of the project's directory. :return: None """ assert os.path.isdi...
0
0
0
e833a17f2245ace79cc20f1ceac8118c4d9b72bf
616
py
Python
tests/more-tests/version/test_old_version.py
vishalbelsare/pysd
54fa0f137a882c2b0967ee0afb0e9080e3c12d48
[ "MIT" ]
null
null
null
tests/more-tests/version/test_old_version.py
vishalbelsare/pysd
54fa0f137a882c2b0967ee0afb0e9080e3c12d48
[ "MIT" ]
null
null
null
tests/more-tests/version/test_old_version.py
vishalbelsare/pysd
54fa0f137a882c2b0967ee0afb0e9080e3c12d48
[ "MIT" ]
null
null
null
__pysd_version__ = "1.5.0" _namespace = {} _dependencies = {} __data = {'scope': None, 'time': lambda: 0} _control_vars = { "initial_time": lambda: 0, "final_time": lambda: 20, "time_step": lambda: 1, "saveper": lambda: time_step() }
15.794872
43
0.62987
__pysd_version__ = "1.5.0" _namespace = {} _dependencies = {} __data = {'scope': None, 'time': lambda: 0} _control_vars = { "initial_time": lambda: 0, "final_time": lambda: 20, "time_step": lambda: 1, "saveper": lambda: time_step() } def _init_outer_references(data): for key in data: __...
219
0
138
55f65d8efe3919c68a7f6904d76785a75c3c0075
2,290
py
Python
rioxarray/_options.py
raybellwaves/rioxarray
c5203665aa1a7e76e4729df9a80568f999db01dc
[ "ECL-2.0", "Apache-2.0" ]
1
2022-02-16T10:54:09.000Z
2022-02-16T10:54:09.000Z
rioxarray/_options.py
raybellwaves/rioxarray
c5203665aa1a7e76e4729df9a80568f999db01dc
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
rioxarray/_options.py
raybellwaves/rioxarray
c5203665aa1a7e76e4729df9a80568f999db01dc
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
""" This file contains global options for rioxarray Credits: This file was adopted from: https://github.com/pydata/xarray # noqa Source file: https://github.com/pydata/xarray/blob/2ab0666c1fcc493b1e0ebc7db14500c427f8804e/xarray/core/options.py # noqa """ from typing import Any EXPORT_GRID_MAPPING = "export_grid_map...
27.590361
122
0.637991
""" This file contains global options for rioxarray Credits: This file was adopted from: https://github.com/pydata/xarray # noqa Source file: https://github.com/pydata/xarray/blob/2ab0666c1fcc493b1e0ebc7db14500c427f8804e/xarray/core/options.py # noqa """ from typing import Any EXPORT_GRID_MAPPING = "export_grid_map...
603
0
81
be15dd1a24e9856864f2f4d0cbea298be145f61e
2,234
py
Python
gen_set_cover.py
RaulMurillo/OPT_UCM
08817e00c1f56b73f5cfa639f1710e368bc0e427
[ "MIT" ]
null
null
null
gen_set_cover.py
RaulMurillo/OPT_UCM
08817e00c1f56b73f5cfa639f1710e368bc0e427
[ "MIT" ]
null
null
null
gen_set_cover.py
RaulMurillo/OPT_UCM
08817e00c1f56b73f5cfa639f1710e368bc0e427
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 import csv import random from pathlib import Path Path("data").mkdir(parents=True, exist_ok=True) def gen_sets(N_sets, N_elems, max_cost=10, sep=' ', filename='set_cover'): """Function that generates a file of integer tuples for using as input for set cover problems. ...
31.914286
108
0.634736
#!/usr/bin/env python # coding: utf-8 import csv import random from pathlib import Path Path("data").mkdir(parents=True, exist_ok=True) def gen_elems(N_elems): # There is no posibility any set contains all elements n = random.randint(1, (N_elems-1)//10) # 1 <= n <= (N_elems-1)/10 # uniform distribution ra...
308
0
23
e7510a92572bee86efd5085b398abce67512570b
1,043
py
Python
get_wayback_machine/get.py
patjenk/get-wayback-machine
1bc9cf2eb2d8d8fea9c6e032a268d8f55816c114
[ "MIT" ]
null
null
null
get_wayback_machine/get.py
patjenk/get-wayback-machine
1bc9cf2eb2d8d8fea9c6e032a268d8f55816c114
[ "MIT" ]
null
null
null
get_wayback_machine/get.py
patjenk/get-wayback-machine
1bc9cf2eb2d8d8fea9c6e032a268d8f55816c114
[ "MIT" ]
null
null
null
from datetime import datetime import requests def check_availability(url_str, datetime_fetched=None): """ Use the web api to see if a page is available. https://archive.org/help/wayback_api.php """ wayback_url = "http://archive.org/wayback/available" params = { 'url': url_str.split('?...
34.766667
112
0.674017
from datetime import datetime import requests def check_availability(url_str, datetime_fetched=None): """ Use the web api to see if a page is available. https://archive.org/help/wayback_api.php """ wayback_url = "http://archive.org/wayback/available" params = { 'url': url_str.split('?...
0
0
0
9350ee2def40d0e7fc2a051814b966e05eb93f62
2,975
py
Python
minlp-tokenizer/minlptokenizer/lexicon.py
aseaday/MiNLP
7d0c578bbe6c8af5c1c3ca14b59df49e88c239b4
[ "Apache-2.0" ]
1
2020-11-18T01:54:21.000Z
2020-11-18T01:54:21.000Z
minlp-tokenizer/minlptokenizer/lexicon.py
210000ling/MiNLP
cc9e668a40f8804262d3733e4365608c2e79df3d
[ "Apache-2.0" ]
null
null
null
minlp-tokenizer/minlptokenizer/lexicon.py
210000ling/MiNLP
cc9e668a40f8804262d3733e4365608c2e79df3d
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The MiNLP 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 l...
33.055556
87
0.619832
# Copyright 2020 The MiNLP 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 l...
269
2,132
23
52232e037219d76a9b436254eb7e8b9015168c35
1,004
py
Python
leetcode/Bit Manipulation/338. Counting Bits.py
yanshengjia/algorithm
0608d286be9c93d51768d47f21e569c6b0be9cda
[ "MIT" ]
23
2019-08-02T12:02:47.000Z
2022-03-09T15:24:16.000Z
leetcode/Bit Manipulation/338. Counting Bits.py
yanshengjia/algorithm
0608d286be9c93d51768d47f21e569c6b0be9cda
[ "MIT" ]
null
null
null
leetcode/Bit Manipulation/338. Counting Bits.py
yanshengjia/algorithm
0608d286be9c93d51768d47f21e569c6b0be9cda
[ "MIT" ]
21
2019-12-22T04:47:32.000Z
2021-09-12T14:29:35.000Z
""" Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation and return them as an array. Example 1: Input: 2 Output: [0,1,1] Example 2: Input: 5 Output: [0,1,1,2,1,2] Follow up: It is very easy to come up with a solution with r...
26.421053
173
0.634462
""" Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation and return them as an array. Example 1: Input: 2 Output: [0,1,1] Example 2: Input: 5 Output: [0,1,1,2,1,2] Follow up: It is very easy to come up with a solution with r...
240
-6
79
62b5885175ed39f170b97178fa537d53c162a926
1,126
py
Python
00_Original/33_Datenspeicherung/Datenbanken/sqlite_adapter_und_konverter.py
felixdittrich92/Python3_book
cd0e2b55aa72c51927d347b70199fb9ed928e06f
[ "MIT" ]
null
null
null
00_Original/33_Datenspeicherung/Datenbanken/sqlite_adapter_und_konverter.py
felixdittrich92/Python3_book
cd0e2b55aa72c51927d347b70199fb9ed928e06f
[ "MIT" ]
null
null
null
00_Original/33_Datenspeicherung/Datenbanken/sqlite_adapter_und_konverter.py
felixdittrich92/Python3_book
cd0e2b55aa72c51927d347b70199fb9ed928e06f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import sqlite3 # Adapter und Konverter registrieren sqlite3.register_adapter(Kreis, kreisadapter) sqlite3.register_converter("KREIS", kreiskonverter) # Hier wird eine Beispieldatenbank im Arbeitsspeicher mit # einer einspaltigen Tabelle für Kreise definiert connection = ...
28.15
64
0.705151
#!/usr/bin/env python # -*- coding: utf-8 -*- import sqlite3 class Kreis: def __init__(self, mx, my, r): self.Mx = mx self.My = my self.R = r def kreisadapter(k): return "{};{};{}".format(k.Mx, k.My, k.R) def kreiskonverter(bytestring): mx, my, r = bytestring.split(b";") retu...
213
-9
95
b2352a092fa15e959a77ca2b3d1668d80811f28c
3,616
py
Python
tmac/preprocessing.py
Nondairy-Creamer/tmac
d688b58f13f398f83ea0bdad139e69b74398c1be
[ "MIT" ]
null
null
null
tmac/preprocessing.py
Nondairy-Creamer/tmac
d688b58f13f398f83ea0bdad139e69b74398c1be
[ "MIT" ]
null
null
null
tmac/preprocessing.py
Nondairy-Creamer/tmac
d688b58f13f398f83ea0bdad139e69b74398c1be
[ "MIT" ]
null
null
null
import numpy as np from scipy import interpolate, optimize import torch def interpolate_over_nans(input_mat, t=None): """ Function to interpolate over NaN values along the first dimension of a matrix Args: input_mat: numpy array, [time, neurons] t: optional time vector, only useful if input_m...
36.897959
119
0.675055
import numpy as np from scipy import interpolate, optimize import torch def interpolate_over_nans(input_mat, t=None): """ Function to interpolate over NaN values along the first dimension of a matrix Args: input_mat: numpy array, [time, neurons] t: optional time vector, only useful if input_m...
412
0
81
cbb3595ad2824d65a823fa3b8d905af52ff8c5c5
22,401
py
Python
src/condor_tests/ornithology/handles.py
tpdownes/htcondor
5fe77864d03fb2ea087c656f77fd533c568860e9
[ "Apache-2.0" ]
1
2021-11-23T04:17:11.000Z
2021-11-23T04:17:11.000Z
src/condor_tests/ornithology/handles.py
tpdownes/htcondor
5fe77864d03fb2ea087c656f77fd533c568860e9
[ "Apache-2.0" ]
null
null
null
src/condor_tests/ornithology/handles.py
tpdownes/htcondor
5fe77864d03fb2ea087c656f77fd533c568860e9
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 HTCondor Team, Computer Sciences Department, # University of Wisconsin-Madison, WI. # # 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/LICE...
33.889561
107
0.61774
# Copyright 2019 HTCondor Team, Computer Sciences Department, # University of Wisconsin-Madison, WI. # # 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/LICE...
4,813
0
780
cb95272044605c9f125f6f5b1545505429b13459
3,841
py
Python
pyorient/constants.py
brucetony/pyorient
d106350dc49b17605beb33e2f29f3ad11c637b88
[ "Apache-2.0" ]
142
2015-01-12T06:34:59.000Z
2022-01-19T10:34:30.000Z
pyorient/constants.py
wangjingzhou10/pyorient
d106350dc49b17605beb33e2f29f3ad11c637b88
[ "Apache-2.0" ]
40
2015-05-01T07:24:07.000Z
2021-08-30T10:08:37.000Z
pyorient/constants.py
wangjingzhou10/pyorient
d106350dc49b17605beb33e2f29f3ad11c637b88
[ "Apache-2.0" ]
53
2015-02-02T18:50:30.000Z
2021-09-18T12:52:31.000Z
__author__ = 'mogui <mogui83@gmail.com>' # # Driver Constants # NAME = "OrientDB Python binary client (pyorient)" VERSION = "1.5.6" SUPPORTED_PROTOCOL = 36 # # Binary Types # # Types Constants BOOLEAN = 1 # Single byte: 1 = true, 0 = false BYTE = 2 SHORT = 3 INT = 4 LONG = 5 BYTES = 6 # Used for binary data. STRING...
25.104575
80
0.736267
__author__ = 'mogui <mogui83@gmail.com>' # # Driver Constants # NAME = "OrientDB Python binary client (pyorient)" VERSION = "1.5.6" SUPPORTED_PROTOCOL = 36 # # Binary Types # # Types Constants BOOLEAN = 1 # Single byte: 1 = true, 0 = false BYTE = 2 SHORT = 3 INT = 4 LONG = 5 BYTES = 6 # Used for binary data. STRING...
0
0
0
8b55a668303fafac7b42ab383bf5b377d5dcf77a
281
py
Python
oosy.py
rockerBOO/oosy
699413b847b456bf306ff67b700ed4ee356b2606
[ "MIT" ]
null
null
null
oosy.py
rockerBOO/oosy
699413b847b456bf306ff67b700ed4ee356b2606
[ "MIT" ]
null
null
null
oosy.py
rockerBOO/oosy
699413b847b456bf306ff67b700ed4ee356b2606
[ "MIT" ]
null
null
null
import tornado.ioloop import tornado.web import modules.Index application = tornado.web.Application([ (r"/", modules.Index.Index), (r"/hotdogs", modules.Index.Index), ]) if __name__ == "__main__": application.listen(8888) tornado.ioloop.IOLoop.instance().start()
21.615385
44
0.708185
import tornado.ioloop import tornado.web import modules.Index application = tornado.web.Application([ (r"/", modules.Index.Index), (r"/hotdogs", modules.Index.Index), ]) if __name__ == "__main__": application.listen(8888) tornado.ioloop.IOLoop.instance().start()
0
0
0
dcbdcdb8aca134ffbf96be060593fdeea53b518b
3,265
py
Python
collipy/injection/injection.py
odeo47/collider-simulator
caae912c381e559d4772b5bba8a996ae4e63ac62
[ "MIT" ]
null
null
null
collipy/injection/injection.py
odeo47/collider-simulator
caae912c381e559d4772b5bba8a996ae4e63ac62
[ "MIT" ]
1
2021-08-09T07:43:16.000Z
2021-08-09T07:43:16.000Z
collipy/injection/injection.py
odeo47/collipy
caae912c381e559d4772b5bba8a996ae4e63ac62
[ "MIT" ]
null
null
null
import pickle from pathlib import Path from collections import Counter import pandas as pd from .properties import DecayMode, calc_max_rel class Injection: """Injection information and properties (for convenience and readability)"""
35.107527
101
0.60827
import pickle from pathlib import Path from collections import Counter import pandas as pd from .properties import DecayMode, calc_max_rel class Injection: """Injection information and properties (for convenience and readability)""" def __init__(self, vertex: pd.DataFrame, track: pd.DataFrame, ecal: pd.DataFr...
590
2,359
76
cfa15e5491c2b3569e9381d51a8719bce5e60c22
2,793
py
Python
src/build_csv.py
jakebobu/world-bank
625ce08cff7f406de3a9c91c64ca7793ca78e351
[ "MIT" ]
null
null
null
src/build_csv.py
jakebobu/world-bank
625ce08cff7f406de3a9c91c64ca7793ca78e351
[ "MIT" ]
null
null
null
src/build_csv.py
jakebobu/world-bank
625ce08cff7f406de3a9c91c64ca7793ca78e351
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np def select_restack(name, save=False): ''' This functon retrieves the data sheets, then it reorients them such that the features are the columns and the data frame is doube indexed by country_name and year ('level_1') Parameters ---------- name: string...
33.650602
90
0.600072
import pandas as pd import numpy as np def select_restack(name, save=False): ''' This functon retrieves the data sheets, then it reorients them such that the features are the columns and the data frame is doube indexed by country_name and year ('level_1') Parameters ---------- name: string...
0
0
0
cfd0f8a1ec679bee3187481f158966acff1a18a4
599
py
Python
src/data/1006.py
NULLCT/LOMC
79a16474a8f21310e0fb47e536d527dd5dc6d655
[ "MIT" ]
null
null
null
src/data/1006.py
NULLCT/LOMC
79a16474a8f21310e0fb47e536d527dd5dc6d655
[ "MIT" ]
null
null
null
src/data/1006.py
NULLCT/LOMC
79a16474a8f21310e0fb47e536d527dd5dc6d655
[ "MIT" ]
null
null
null
from collections import deque n, Q = map(int, input().split()) graph = [[] for i in range(n)] for i in range(n - 1): a, b = map(int, input().split()) graph[a - 1].append(b - 1) graph[b - 1].append(a - 1) dist = [-1] * n dist[0] = 0 q = deque() q.append(0) while q: v = q.popleft() for i in set(gr...
18.71875
39
0.477462
from collections import deque n, Q = map(int, input().split()) graph = [[] for i in range(n)] for i in range(n - 1): a, b = map(int, input().split()) graph[a - 1].append(b - 1) graph[b - 1].append(a - 1) dist = [-1] * n dist[0] = 0 q = deque() q.append(0) while q: v = q.popleft() for i in set(gr...
0
0
0
e6423ca129b5d4c27ea8f7aa25668e9975f7476f
4,150
py
Python
nafc/api/print_table_result.py
kimdoanh89/fastcli
d63ebeb6290a83f42dc424b56c0db5841361b6e2
[ "MIT" ]
33
2020-10-02T07:11:00.000Z
2022-01-17T16:58:41.000Z
nafc/api/print_table_result.py
kimdoanh89/fastcli
d63ebeb6290a83f42dc424b56c0db5841361b6e2
[ "MIT" ]
null
null
null
nafc/api/print_table_result.py
kimdoanh89/fastcli
d63ebeb6290a83f42dc424b56c0db5841361b6e2
[ "MIT" ]
10
2020-10-02T07:11:03.000Z
2021-12-21T08:58:02.000Z
"""nornir_scrapli.functions.print_structured_result""" import logging import threading from scrapli.response import Response from nornir.core.task import AggregatedResult, MultiResult, Result from nornir_scrapli.result import ScrapliResult from rich.console import Console from rich.table import Table LOCK = threadin...
38.073394
84
0.595181
"""nornir_scrapli.functions.print_structured_result""" import logging import threading from scrapli.response import Response from nornir.core.task import AggregatedResult, MultiResult, Result from nornir_scrapli.result import ScrapliResult from rich.console import Console from rich.table import Table LOCK = threadin...
0
0
0
b02f75224b5ffa8883b359c2301600b050fd483c
1,234
py
Python
src/cms_extensions/middleware.py
quiquegarcia/2020-website
02dd1e42ddaab5712e4faa7bcc2c5f80c68d0e8d
[ "MIT" ]
null
null
null
src/cms_extensions/middleware.py
quiquegarcia/2020-website
02dd1e42ddaab5712e4faa7bcc2c5f80c68d0e8d
[ "MIT" ]
null
null
null
src/cms_extensions/middleware.py
quiquegarcia/2020-website
02dd1e42ddaab5712e4faa7bcc2c5f80c68d0e8d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import datetime from django.utils import translation from django.conf import settings from cms.utils.compat.dj import MiddlewareMixin
36.294118
90
0.703404
# -*- coding: utf-8 -*- import datetime from django.utils import translation from django.conf import settings from cms.utils.compat.dj import MiddlewareMixin class LanguageCookieMiddleware(MiddlewareMixin): def process_request(self, request): language = translation.get_language() request_langua...
969
27
77
8ef246ed6e0e662e5f01e1569b0adfa9a9c13e7c
1,336
py
Python
sandbox/test_motor.py
pravinas/et-maslab-2016
d666e126881130658130df5ba97831d9a1869b9e
[ "MIT" ]
null
null
null
sandbox/test_motor.py
pravinas/et-maslab-2016
d666e126881130658130df5ba97831d9a1869b9e
[ "MIT" ]
null
null
null
sandbox/test_motor.py
pravinas/et-maslab-2016
d666e126881130658130df5ba97831d9a1869b9e
[ "MIT" ]
null
null
null
from tamproxy import SyncedSketch, Timer from tamproxy.devices import Motor # Cycles a motor back and forth between -255 and 255 PWM every ~5 seconds if __name__ == "__main__": sketch = MotorWrite(1, -0.00001, 100) sketch.run()
32.585366
73
0.552395
from tamproxy import SyncedSketch, Timer from tamproxy.devices import Motor # Cycles a motor back and forth between -255 and 255 PWM every ~5 seconds class MotorWrite(SyncedSketch): def setup(self): self.motor1 = Motor(self.tamp, 2, 3) self.motor1.write(1,0) self.motor2 = Motor(self.tamp,...
1,011
10
77
07591906f56e3f99881109abea3cae023b6b95b2
5,293
py
Python
pred_model/sourceCode/collect_data.py
1ofsomepeople/flask-learn
80a0fe8b8d191972e418664c46533bd6f535d8b0
[ "MIT" ]
null
null
null
pred_model/sourceCode/collect_data.py
1ofsomepeople/flask-learn
80a0fe8b8d191972e418664c46533bd6f535d8b0
[ "MIT" ]
null
null
null
pred_model/sourceCode/collect_data.py
1ofsomepeople/flask-learn
80a0fe8b8d191972e418664c46533bd6f535d8b0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ @Time : 2020/9/13 @Author : Shen Fang """ import os import datetime import os.path as osp import numpy as np import matplotlib.pyplot as plt import argparse if __name__ == '__main__': # map_image = read_image("level_14.png") # patch = map_image[900:2000, 900:] # plt.i...
28.154255
106
0.567731
# -*- coding: utf-8 -*- """ @Time : 2020/9/13 @Author : Shen Fang """ import os import datetime import os.path as osp import numpy as np import matplotlib.pyplot as plt import argparse def color2value(rgb): def rgb2hsv(rgb): r, g, b = rgb[0], rgb[1], rgb[2] m_x = max(r, g, b) m_n = min(...
3,675
-4
322
24eefd80acce44591318cb95d619a837846aef0f
10,119
py
Python
Pygarl (modified)/base.py
VISWAJITH1997/Gesture-Recognition-Using-Machine-Learning
85eb35ae2124b0efca45566bfba1b9e9091ab4b4
[ "MIT" ]
10
2017-07-17T10:35:38.000Z
2021-03-23T19:24:06.000Z
pygarl/base.py
shikharucer/pygarl
ad79163245f43cfbdbaba77a8f906b5a4f3e6b3b
[ "Apache-2.0" ]
3
2018-10-08T06:12:10.000Z
2019-11-12T03:38:12.000Z
pygarl/base.py
shikharucer/pygarl
ad79163245f43cfbdbaba77a8f906b5a4f3e6b3b
[ "Apache-2.0" ]
6
2019-01-26T11:59:59.000Z
2020-12-20T15:58:31.000Z
import json import scipy as sp import numpy as np import matplotlib.pyplot as plt from scipy.interpolate import interp2d, interp1d from sklearn.preprocessing import scale import pandas as pd class Sample(object): """ Contains the data recorded from the sensors. Provides methods to analyze, manage and pers...
33.956376
93
0.599664
import json import scipy as sp import numpy as np import matplotlib.pyplot as plt from scipy.interpolate import interp2d, interp1d from sklearn.preprocessing import scale import pandas as pd class Sample(object): """ Contains the data recorded from the sensors. Provides methods to analyze, manage and pers...
628
0
108
d3383f2db042102186c10aeb65277a3dd548fa50
527
py
Python
src/utils/core.py
lendradxx/telebot
159a73ce98d541e48265ab7ac13e8f1c85dac017
[ "MIT" ]
1
2022-03-30T09:15:18.000Z
2022-03-30T09:15:18.000Z
src/utils/core.py
lendradxx/telebot
159a73ce98d541e48265ab7ac13e8f1c85dac017
[ "MIT" ]
null
null
null
src/utils/core.py
lendradxx/telebot
159a73ce98d541e48265ab7ac13e8f1c85dac017
[ "MIT" ]
1
2022-03-30T09:15:25.000Z
2022-03-30T09:15:25.000Z
import configparser, time, os
21.958333
43
0.662239
import configparser, time, os def getConfig(header: str, variable: str): config = configparser.ConfigParser() config.read_file(open("settings.conf")) return config.get(header, variable) def lateMsg(date: int): totalDate = int(time.time()) - date if totalDate >= 5: return True else: ...
426
0
69
145150c5d625747eb960aea0c09f96409f71a83f
93
py
Python
app/user/__init__.py
pnsn/squac_api
7b1741cd32dbc32972f75ac53958468fdf7d04ee
[ "MIT" ]
6
2019-11-07T09:32:43.000Z
2021-09-02T22:37:14.000Z
app/user/__init__.py
pnsn/squacapi
e330a925aff38937656983841e495ba3824c11e1
[ "MIT" ]
196
2019-10-04T17:03:36.000Z
2022-03-31T17:54:59.000Z
app/user/__init__.py
pnsn/squac_api
7b1741cd32dbc32972f75ac53958468fdf7d04ee
[ "MIT" ]
null
null
null
# to load signals receiver called in App.ready() default_app_config = 'user.apps.UserConfig'
31
48
0.784946
# to load signals receiver called in App.ready() default_app_config = 'user.apps.UserConfig'
0
0
0
7fe2b99601e48255660da3c6ebc5581946dcaf68
489
py
Python
staeon_node/wallet/urls.py
priestc/staeon-node
8455e8caf30af2c27dd034b62191e13459255f92
[ "MIT" ]
null
null
null
staeon_node/wallet/urls.py
priestc/staeon-node
8455e8caf30af2c27dd034b62191e13459255f92
[ "MIT" ]
null
null
null
staeon_node/wallet/urls.py
priestc/staeon-node
8455e8caf30af2c27dd034b62191e13459255f92
[ "MIT" ]
null
null
null
from django.conf.urls import url, include from .views import ( serv_wallet, accept_remote_registration, register_new_wallet_user, login, update_settings ) urlpatterns = [ url(r'registration/remote', accept_remote_registration), url(r'registration', register_new_wallet_user, name='register_new_wallet_use...
37.615385
84
0.746421
from django.conf.urls import url, include from .views import ( serv_wallet, accept_remote_registration, register_new_wallet_user, login, update_settings ) urlpatterns = [ url(r'registration/remote', accept_remote_registration), url(r'registration', register_new_wallet_user, name='register_new_wallet_use...
0
0
0
421b2eb82fe334d0e7ef9bf4321c1cb35308271a
172
py
Python
codecademy/io/write_number.py
haozai309/hello_python
deaa0621f549ff786bc36ccee48430d1d130690b
[ "Apache-2.0" ]
null
null
null
codecademy/io/write_number.py
haozai309/hello_python
deaa0621f549ff786bc36ccee48430d1d130690b
[ "Apache-2.0" ]
null
null
null
codecademy/io/write_number.py
haozai309/hello_python
deaa0621f549ff786bc36ccee48430d1d130690b
[ "Apache-2.0" ]
null
null
null
my_list = [i**2 for i in range(1,11)] my_file = open("output.txt", "r+") # Add your code below! for item in my_list: my_file.write(str(item) + "\n") my_file.close()
17.2
37
0.627907
my_list = [i**2 for i in range(1,11)] my_file = open("output.txt", "r+") # Add your code below! for item in my_list: my_file.write(str(item) + "\n") my_file.close()
0
0
0
7d50a83148362efcf1ac09a97b60d3c9bba40b9b
4,068
py
Python
src/config.py
owenwater/alfred-ime
b6a8f91718f777f98020e8f9c11f4a38f31cc4ae
[ "MIT" ]
6
2017-02-07T14:47:03.000Z
2022-03-03T14:54:09.000Z
src/config.py
owenwater/alfred-ime
b6a8f91718f777f98020e8f9c11f4a38f31cc4ae
[ "MIT" ]
1
2020-08-20T14:38:16.000Z
2020-08-20T14:38:16.000Z
src/config.py
owenwater/alfred-ime
b6a8f91718f777f98020e8f9c11f4a38f31cc4ae
[ "MIT" ]
2
2015-02-13T14:33:31.000Z
2019-05-03T10:11:11.000Z
#!/usr/bin/python import sys from workflow.workflow import Settings from workflow import Workflow from const import Const LOG = None if __name__=="__main__": config = Config(' '.join(sys.argv[1:])) config.execute() #setter = ConfigSetter(' '.join(sys.argv[1:])) #setter.execute()
30.133333
88
0.559489
#!/usr/bin/python import sys from workflow.workflow import Settings from workflow import Workflow from const import Const LOG = None class ITCConfig(object): ITC_CONFIG_FILE_NAME = "config/itc.config" def __init__(self): self.langs = Settings(ITCConfig.ITC_CONFIG_FILE_NAME) class ConfigSetter(objec...
3,171
447
149
e5d661a1d881b217a3d3092788f4bc6474c314d7
1,003
py
Python
moment/admin.py
PPER/Webgame
7ee8e9b980b80bf107bf8549e62ff036f1e36822
[ "MIT" ]
null
null
null
moment/admin.py
PPER/Webgame
7ee8e9b980b80bf107bf8549e62ff036f1e36822
[ "MIT" ]
null
null
null
moment/admin.py
PPER/Webgame
7ee8e9b980b80bf107bf8549e62ff036f1e36822
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. from django.contrib import admin from .models import Story_File_Status,Wonder_Archive_People,Wonder_Archive_GT,Chat_Log,Store_Card,Shopping_Cart,Shopping_Product,Daily_Story_File_Status,Basic_Setting,Current_Archive,Store_Card_Own """ class Wonder_Ar...
40.12
198
0.820538
from django.contrib import admin # Register your models here. from django.contrib import admin from .models import Story_File_Status,Wonder_Archive_People,Wonder_Archive_GT,Chat_Log,Store_Card,Shopping_Cart,Shopping_Product,Daily_Story_File_Status,Basic_Setting,Current_Archive,Store_Card_Own """ class Wonder_Ar...
0
0
0
c216cd79233d2aca25f1d9377bba5f6c617b8d6e
1,391
py
Python
fairypptx/parts/_markdown/toml_config.py
Sillte/fairypptx
926d277e7692bcf1dd0d365e9c0e26e8d495bafb
[ "MIT" ]
null
null
null
fairypptx/parts/_markdown/toml_config.py
Sillte/fairypptx
926d277e7692bcf1dd0d365e9c0e26e8d495bafb
[ "MIT" ]
null
null
null
fairypptx/parts/_markdown/toml_config.py
Sillte/fairypptx
926d277e7692bcf1dd0d365e9c0e26e8d495bafb
[ "MIT" ]
null
null
null
"""Handles conversion of `markdown` Here, `toml` is used to communicate `attributes` as for `markdown`. Main purpose is to describe `style` of the documentation. * `toml`'s data is returned as Python primitive types. Speficiation ------------- If the firstline of the document starts with ```, and it is a v...
17.833333
81
0.608914
"""Handles conversion of `markdown` Here, `toml` is used to communicate `attributes` as for `markdown`. Main purpose is to describe `style` of the documentation. * `toml`'s data is returned as Python primitive types. Speficiation ------------- If the firstline of the document starts with ```, and it is a v...
0
0
0
96ad24d7c709d834a136681e62ae551149d71e6d
705
py
Python
download_cifar10.py
jbcdnr/deit-collaborative-attention
07905829be28eac1277cbc0255796feeab589bfc
[ "Apache-2.0" ]
null
null
null
download_cifar10.py
jbcdnr/deit-collaborative-attention
07905829be28eac1277cbc0255796feeab589bfc
[ "Apache-2.0" ]
null
null
null
download_cifar10.py
jbcdnr/deit-collaborative-attention
07905829be28eac1277cbc0255796feeab589bfc
[ "Apache-2.0" ]
null
null
null
import torchvision from pathlib import Path import tqdm if __name__ == "__main__": main()
30.652174
82
0.642553
import torchvision from pathlib import Path import tqdm def main(): tmp = Path("tmp") target_dir = Path("cifar10") dataset_train = torchvision.datasets.CIFAR10("tmp", train=True, download=True) dataset_test = torchvision.datasets.CIFAR10("tmp", train=True, download=True) for split, dataset in [("...
585
0
23
1897ef755d64dbd4e47a18963dc4a0e4be065a94
218
py
Python
todo/todo_app/todo_list/models.py
code-with-kotaro/simple-todo-app
c6aecd53ec0f40bdf5290d526bf0f0d834035d3a
[ "bzip2-1.0.6" ]
null
null
null
todo/todo_app/todo_list/models.py
code-with-kotaro/simple-todo-app
c6aecd53ec0f40bdf5290d526bf0f0d834035d3a
[ "bzip2-1.0.6" ]
11
2020-06-05T20:37:58.000Z
2022-03-12T00:12:19.000Z
todo/todo_app/todo_list/models.py
code-with-kotaro/simple-todo-app
c6aecd53ec0f40bdf5290d526bf0f0d834035d3a
[ "bzip2-1.0.6" ]
null
null
null
from django.db import models # Create your models here.
21.8
43
0.711009
from django.db import models # Create your models here. class Todo(models.Model): current_date = models.DateTimeField() text = models.CharField(max_length=200) def __str__(self): return self.text
22
117
22
d712c6f63efe5a77144e4fae4adc0cd488c453a6
6,716
py
Python
utils/variables_helper.py
ChenCongGit/Chinese-aster
3e4ad7e1cc36ad071e4e5dd1017d7d415d686d8d
[ "MIT" ]
6
2019-08-05T08:54:46.000Z
2021-06-29T08:36:58.000Z
utils/variables_helper.py
ChenCongGit/Chinese-aster
3e4ad7e1cc36ad071e4e5dd1017d7d415d686d8d
[ "MIT" ]
null
null
null
utils/variables_helper.py
ChenCongGit/Chinese-aster
3e4ad7e1cc36ad071e4e5dd1017d7d415d686d8d
[ "MIT" ]
null
null
null
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
35.162304
101
0.720518
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
0
0
0
4f9e689269b2ac1ffe1ea4b585a6f1a4552c1f58
2,376
py
Python
web/controllers/user/register.py
sduwh/vj
b6fb0b9fa932be7e797476738c084f389c2841af
[ "MIT" ]
2
2018-11-10T07:40:01.000Z
2019-04-15T08:44:07.000Z
web/controllers/user/register.py
DavidZhang73/vj
2d74f1873f7e256f05d2796b9b3cfe20317c7213
[ "MIT" ]
1
2018-11-13T08:42:54.000Z
2018-11-13T08:42:54.000Z
web/controllers/user/register.py
sduwh/vj
b6fb0b9fa932be7e797476738c084f389c2841af
[ "MIT" ]
1
2019-04-07T11:34:25.000Z
2019-04-07T11:34:25.000Z
import hashlib from tornado.web import RequestHandler from tornado import gen
35.462687
89
0.566077
import hashlib from tornado.web import RequestHandler from tornado import gen class Handler(RequestHandler): @gen.coroutine def post(self): """注册""" try: params = self._get_params() yield self._check_user_exist(params["username"]) yield self._add_user(params...
1,436
842
23
64d6b1957907cdd59163cb86511344b4d245870b
15,895
py
Python
normalizing_flows_typed/flows.py
kiwi0fruit/jats-semi-supervised-pytorch
67e9bb85f09f8ef02e17e495784d1d9a71c3adec
[ "MIT" ]
null
null
null
normalizing_flows_typed/flows.py
kiwi0fruit/jats-semi-supervised-pytorch
67e9bb85f09f8ef02e17e495784d1d9a71c3adec
[ "MIT" ]
null
null
null
normalizing_flows_typed/flows.py
kiwi0fruit/jats-semi-supervised-pytorch
67e9bb85f09f8ef02e17e495784d1d9a71c3adec
[ "MIT" ]
null
null
null
""" Code by Tony Duan was forked from https://github.com/tonyduan/normalizing-flows MIT License Copyright (c) 2019 Tony Duan, 2019 Peter Zagubisalo Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Softwar...
36.87935
113
0.574269
""" Code by Tony Duan was forked from https://github.com/tonyduan/normalizing-flows MIT License Copyright (c) 2019 Tony Duan, 2019 Peter Zagubisalo Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Softwar...
10,988
0
819
30bac15ded2a9c0549c4de1e45471f33bb64f382
646
py
Python
FaceTrackingDrone/FaceTracking.py
udayagopi587/ArealRobotics_AutonomousDrone
6bc10ee167076086abb3b2eef311ae43f457f21d
[ "MIT" ]
1
2022-03-12T00:47:24.000Z
2022-03-12T00:47:24.000Z
FaceTrackingDrone/FaceTracking.py
udayagopi587/ArealRobotics_AutonomousDrone
6bc10ee167076086abb3b2eef311ae43f457f21d
[ "MIT" ]
null
null
null
FaceTrackingDrone/FaceTracking.py
udayagopi587/ArealRobotics_AutonomousDrone
6bc10ee167076086abb3b2eef311ae43f457f21d
[ "MIT" ]
1
2022-03-14T23:42:57.000Z
2022-03-14T23:42:57.000Z
from utlis import * import cv2 w,h = 360,240 pid = [0.4,0.4,0] pError = 0 startCounter = 0 # for no Flight 1 - for flight 0 myDrone = initializeTello() while True: ## Flight if startCounter == 0: myDrone.takeoff() startCounter = 1 ## Step 1 img = telloGe...
22.275862
83
0.552632
from utlis import * import cv2 w,h = 360,240 pid = [0.4,0.4,0] pError = 0 startCounter = 0 # for no Flight 1 - for flight 0 myDrone = initializeTello() while True: ## Flight if startCounter == 0: myDrone.takeoff() startCounter = 1 ## Step 1 img = telloGe...
0
0
0
0d07139dd67d3ad3edbe7e562d4a3ae793c8505f
26
py
Python
rasa_core/version.py
gkniesel/rasa_core
00b2d1e05304d07945a3d973e4832f446ed2a921
[ "Apache-2.0" ]
1
2021-04-08T13:04:52.000Z
2021-04-08T13:04:52.000Z
rasa_core/version.py
gkniesel/rasa_core
00b2d1e05304d07945a3d973e4832f446ed2a921
[ "Apache-2.0" ]
1
2019-02-11T16:58:11.000Z
2019-02-11T17:07:55.000Z
rasa_core/version.py
gkniesel/rasa_core
00b2d1e05304d07945a3d973e4832f446ed2a921
[ "Apache-2.0" ]
6
2018-09-19T20:53:13.000Z
2018-10-24T14:37:12.000Z
__version__ = '0.14.0a1'
8.666667
24
0.653846
__version__ = '0.14.0a1'
0
0
0
b5ead709001eee90be095a5f7991799d205823d7
3,304
py
Python
start-a-project/init_project.py
MacHu-GWU/elementary_math-project
3a7512e3ca8283c64ec0e2bbe91de35be0fd064d
[ "MIT" ]
27
2016-05-31T20:24:24.000Z
2021-01-13T07:06:54.000Z
start-a-project/init_project.py
liushilive/elementary_math-project
3a7512e3ca8283c64ec0e2bbe91de35be0fd064d
[ "MIT" ]
1
2018-05-18T16:10:11.000Z
2018-05-18T16:10:11.000Z
start-a-project/init_project.py
liushilive/elementary_math-project
3a7512e3ca8283c64ec0e2bbe91de35be0fd064d
[ "MIT" ]
18
2016-09-02T09:56:46.000Z
2019-05-08T02:41:45.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This script can generate automate scripts for open source python project. Scroll to ``if __name__ == "__main__":`` for more info. """ from __future__ import print_function import sys import datetime from os import walk, mkdir from os.path import join, abspath, dirnam...
30.036364
78
0.588983
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This script can generate automate scripts for open source python project. Scroll to ``if __name__ == "__main__":`` for more info. """ from __future__ import print_function import sys import datetime from os import walk, mkdir from os.path import join, abspath, dirnam...
0
0
0
d67da868abc3acbc317563d0ad5604d0e509242d
16,252
py
Python
AppServer/google/appengine/tools/endpointscfg.py
loftwah/appscale
586fc1347ebc743d7a632de698f4dbfb09ae38d6
[ "Apache-2.0" ]
790
2015-01-03T02:13:39.000Z
2020-05-10T19:53:57.000Z
AppServer/google/appengine/tools/endpointscfg.py
loftwah/appscale
586fc1347ebc743d7a632de698f4dbfb09ae38d6
[ "Apache-2.0" ]
1,361
2015-01-08T23:09:40.000Z
2020-04-14T00:03:04.000Z
AppServer/google/appengine/tools/endpointscfg.py
loftwah/appscale
586fc1347ebc743d7a632de698f4dbfb09ae38d6
[ "Apache-2.0" ]
155
2015-01-08T22:59:31.000Z
2020-04-08T08:01:53.000Z
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
36.195991
80
0.707421
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
248
0
23
d120a7d2e974648bc373d39aae3f0c7148d88918
2,419
py
Python
sdks/bkpaas-auth/bkpaas_auth/core/user_info.py
piglei/bkpaas-python-sdk
3dfea8be5702ccea1228691c6c1c3e87a27238d2
[ "MIT" ]
1
2022-03-03T02:23:00.000Z
2022-03-03T02:23:00.000Z
sdks/bkpaas-auth/bkpaas_auth/core/user_info.py
piglei/bkpaas-python-sdk
3dfea8be5702ccea1228691c6c1c3e87a27238d2
[ "MIT" ]
null
null
null
sdks/bkpaas-auth/bkpaas_auth/core/user_info.py
piglei/bkpaas-python-sdk
3dfea8be5702ccea1228691c6c1c3e87a27238d2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from typing import TYPE_CHECKING from bkpaas_auth.core.constants import ProviderType from bkpaas_auth.core.encoder import user_id_encoder if TYPE_CHECKING: from bkpaas_auth.models import User # noqa class UserInfo: """Base class for Userinfo""" provider_type: ProviderType cla...
28.458824
93
0.622571
# -*- coding: utf-8 -*- from typing import TYPE_CHECKING from bkpaas_auth.core.constants import ProviderType from bkpaas_auth.core.encoder import user_id_encoder if TYPE_CHECKING: from bkpaas_auth.models import User # noqa class UserInfo: """Base class for Userinfo""" provider_type: ProviderType ...
1,754
0
189
2316407c1c0d30daad86d030951951936f69eb17
5,736
py
Python
II rok/II semestr/SI/Pracownia 1/Zadanie 3/poker.py
antonitomaszewski/Studia
ff2fa59e25cf3f5c86b59de9994b80a502ec1e7b
[ "MIT" ]
null
null
null
II rok/II semestr/SI/Pracownia 1/Zadanie 3/poker.py
antonitomaszewski/Studia
ff2fa59e25cf3f5c86b59de9994b80a502ec1e7b
[ "MIT" ]
null
null
null
II rok/II semestr/SI/Pracownia 1/Zadanie 3/poker.py
antonitomaszewski/Studia
ff2fa59e25cf3f5c86b59de9994b80a502ec1e7b
[ "MIT" ]
null
null
null
from functools import reduce import random flip = lambda f : lambda x, y : f(y, x) foldr = lambda f, z, xs : reduce(flip(f), reversed(xs), z) foldl = lambda f, z, xs : reduce(f, xs, z) removeDuplicates = lambda xs : list(set([tuple(x) for x in xs])) # kier - heart # karo - diamond # trefl - club # pik - spade # as = Ac...
33.156069
139
0.572176
from functools import reduce import random flip = lambda f : lambda x, y : f(y, x) foldr = lambda f, z, xs : reduce(flip(f), reversed(xs), z) foldl = lambda f, z, xs : reduce(f, xs, z) removeDuplicates = lambda xs : list(set([tuple(x) for x in xs])) # kier - heart # karo - diamond # trefl - club # pik - spade # as = Ac...
4,526
0
159
b11151ccf386a13e5fcf36ff3ac652d4180ee326
1,843
py
Python
scripts/server.py
locaweb/leela-docs
6c810ff3fcb6e44e0971affdfdb2b4e0425be1ba
[ "Apache-2.0" ]
2
2015-11-29T21:47:57.000Z
2019-06-05T22:40:02.000Z
scripts/server.py
locaweb/leela-docs
6c810ff3fcb6e44e0971affdfdb2b4e0425be1ba
[ "Apache-2.0" ]
null
null
null
scripts/server.py
locaweb/leela-docs
6c810ff3fcb6e44e0971affdfdb2b4e0425be1ba
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import sys; _stdout = sys.stdout; _stderr = sys.stderr; import re import time import bottle import os.path import hashlib import threading import subprocess bottle.debug(True) srcroot = os.path.join(os.path.dirname(__file__), "..") sphinxbuild = os.environ.get("SPHINXBUILD", "sphinx-build...
26.710145
126
0.632664
# -*- coding: utf-8 -*- import sys; _stdout = sys.stdout; _stderr = sys.stderr; import re import time import bottle import os.path import hashlib import threading import subprocess bottle.debug(True) srcroot = os.path.join(os.path.dirname(__file__), "..") sphinxbuild = os.environ.get("SPHINXBUILD", "sphinx-build...
1,169
0
91
8e77d3a34983b66634cfa17bab18ac48a71aa529
2,659
py
Python
scripts/field/direction_foxvillage.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
54
2019-04-16T23:24:48.000Z
2021-12-18T11:41:50.000Z
scripts/field/direction_foxvillage.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
3
2019-05-19T15:19:41.000Z
2020-04-27T16:29:16.000Z
scripts/field/direction_foxvillage.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
49
2020-11-25T23:29:16.000Z
2022-03-26T16:20:24.000Z
LUMPS = 3002001 SALLY = 3002002 SNIFFS = 3002003 TWITCH = 3002004 SILVER = 3002005 COMPASS = 3002006 TIMBER = 3002007 BROOK = 3002008 PATIENCE = 3002009 TUMBLEWEED = 3002105 sm.lockInGameUI(True) sm.forcedInput(0) sm.spawnNpc(LUMPS, 300, 89) sm.showNpcSpecialActionByTemplateId(LUMPS, "summon") sm.spawnNpc(SALLY, -17...
31.654762
287
0.773975
LUMPS = 3002001 SALLY = 3002002 SNIFFS = 3002003 TWITCH = 3002004 SILVER = 3002005 COMPASS = 3002006 TIMBER = 3002007 BROOK = 3002008 PATIENCE = 3002009 TUMBLEWEED = 3002105 sm.lockInGameUI(True) sm.forcedInput(0) sm.spawnNpc(LUMPS, 300, 89) sm.showNpcSpecialActionByTemplateId(LUMPS, "summon") sm.spawnNpc(SALLY, -17...
0
0
0
fa6049cabadbad0d16a4568880ce3d062bf75d6d
6,314
py
Python
tests/test_two_field_date.py
aubreystarktoller/django-babik-card-primitives
d380342652aeb394a8e7b6d952034465ec5618e4
[ "BSD-3-Clause" ]
null
null
null
tests/test_two_field_date.py
aubreystarktoller/django-babik-card-primitives
d380342652aeb394a8e7b6d952034465ec5618e4
[ "BSD-3-Clause" ]
null
null
null
tests/test_two_field_date.py
aubreystarktoller/django-babik-card-primitives
d380342652aeb394a8e7b6d952034465ec5618e4
[ "BSD-3-Clause" ]
null
null
null
import datetime from django.test import TestCase from babik_card_primitives.two_field_date import TwoFieldDate
33.231579
90
0.655686
import datetime from django.test import TestCase from babik_card_primitives.two_field_date import TwoFieldDate class TwoFieldDateTestCase(TestCase): def test_to_large_month(self): with self.assertRaises(ValueError): TwoFieldDate(2016, 13) def test_zero_month(self): with self.assert...
4,976
16
1,210
317036df9ace965c05d8242958399dfea0845e67
19,447
py
Python
torent/comunicator.py
JulianWww/torent
e07290ed398796c93b34d31ea62e4be6c2ddb5af
[ "MIT" ]
null
null
null
torent/comunicator.py
JulianWww/torent
e07290ed398796c93b34d31ea62e4be6c2ddb5af
[ "MIT" ]
null
null
null
torent/comunicator.py
JulianWww/torent
e07290ed398796c93b34d31ea62e4be6c2ddb5af
[ "MIT" ]
null
null
null
"""python variable scharer the class implementation of a variable scharer for python """ import socket, threading, time from jpe_types.paralel import LockableThread, threadInharitanceFilter from jpe_types.conversions.intager import baseN from torent.client import client import logging NoneType = type(None...
43.79955
377
0.622718
"""python variable scharer the class implementation of a variable scharer for python """ import socket, threading, time from jpe_types.paralel import LockableThread, threadInharitanceFilter from jpe_types.conversions.intager import baseN from torent.client import client import logging NoneType = type(None...
0
0
0
c00ca93e4ce8e3a7ede6821addf1228a781a212c
2,640
py
Python
examples/rl/Howto 14a - (RL) Train UR5 with SB3 wrapper.py
fhswf/MLPro
e944b69bed9c2d5548677711270e4a4fe868aea9
[ "Apache-2.0" ]
5
2022-01-31T15:52:19.000Z
2022-03-21T18:34:27.000Z
examples/rl/Howto 14a - (RL) Train UR5 with SB3 wrapper.py
fhswf/MLPro
e944b69bed9c2d5548677711270e4a4fe868aea9
[ "Apache-2.0" ]
61
2021-12-17T13:03:59.000Z
2022-03-31T10:24:37.000Z
examples/rl/Howto 14a - (RL) Train UR5 with SB3 wrapper.py
fhswf/MLPro
e944b69bed9c2d5548677711270e4a4fe868aea9
[ "Apache-2.0" ]
null
null
null
## ------------------------------------------------------------------------------------------------- ## -- Project : MLPro - A Synoptic Framework for Standardized Machine Learning Tasks ## -- Package : mlpro ## -- Module : Howto 14 - Train UR5 with SB3 wrapper ## -------------------------------------------------------...
30.697674
100
0.574621
## ------------------------------------------------------------------------------------------------- ## -- Project : MLPro - A Synoptic Framework for Standardized Machine Learning Tasks ## -- Package : mlpro ## -- Module : Howto 14 - Train UR5 with SB3 wrapper ## -------------------------------------------------------...
840
61
22
037adef96f3383a9c4ba5f0de80f157941682596
1,524
py
Python
src/Experiments/Framework/prefetching.py
Anonymous82338590/AdaptiveDynamicArray
47786167d6b6238da8f717ef8126fd68a6939990
[ "MIT" ]
null
null
null
src/Experiments/Framework/prefetching.py
Anonymous82338590/AdaptiveDynamicArray
47786167d6b6238da8f717ef8126fd68a6939990
[ "MIT" ]
null
null
null
src/Experiments/Framework/prefetching.py
Anonymous82338590/AdaptiveDynamicArray
47786167d6b6238da8f717ef8126fd68a6939990
[ "MIT" ]
null
null
null
""" This python file inserts 100K rows into table prefetching in database end2end """ import pymysql import string import random db = pymysql.connect(host='localhost', port=3306, user='root', passwd='greeN7^Tr33', db='end2end', charset='utf8') cursor = db.cursor() sql = "INSERT INTO prefetching...
38.1
117
0.67126
""" This python file inserts 100K rows into table prefetching in database end2end """ import pymysql import string import random db = pymysql.connect(host='localhost', port=3306, user='root', passwd='greeN7^Tr33', db='end2end', charset='utf8') cursor = db.cursor() sql = "INSERT INTO prefetching...
116
0
23
108fab7a463ca55388a0ef85f291eca6f45a88a8
8,939
py
Python
SteamLogin.py
DrBomb/python-steamcommunity
dd4b4c3fa06abdf14a8762e648f04a0cef022e17
[ "MIT" ]
14
2016-08-08T16:40:36.000Z
2022-03-31T07:10:33.000Z
SteamLogin.py
DrBomb/python-steamcommunity
dd4b4c3fa06abdf14a8762e648f04a0cef022e17
[ "MIT" ]
17
2016-08-02T23:25:47.000Z
2016-11-07T22:00:16.000Z
SteamLogin.py
DrBomb/python-steamcommunity
dd4b4c3fa06abdf14a8762e648f04a0cef022e17
[ "MIT" ]
7
2016-08-13T22:19:54.000Z
2021-03-15T11:44:25.000Z
import requests, urllib, base64, time, re, pdb from Crypto.PublicKey import RSA from Crypto.Cipher import PKCS1_v1_5 from SteamMobileAuth import getDeviceID from bs4 import BeautifulSoup USER_AGENT = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36"
45.841026
202
0.616624
import requests, urllib, base64, time, re, pdb from Crypto.PublicKey import RSA from Crypto.Cipher import PKCS1_v1_5 from SteamMobileAuth import getDeviceID from bs4 import BeautifulSoup USER_AGENT = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36" class...
7,775
147
703
3416e9e2b78a7a2124c1fcd4243780a57c753109
4,646
py
Python
simhash_app/simhash_save_mixin.py
rwgeaston/django-simhash
26477b95f89194342918baebab85b7d263f7a79b
[ "MIT" ]
1
2018-07-31T22:12:14.000Z
2018-07-31T22:12:14.000Z
simhash_app/simhash_save_mixin.py
rwgeaston/django-simhash
26477b95f89194342918baebab85b7d263f7a79b
[ "MIT" ]
null
null
null
simhash_app/simhash_save_mixin.py
rwgeaston/django-simhash
26477b95f89194342918baebab85b7d263f7a79b
[ "MIT" ]
null
null
null
from django.db import models from django.db.transaction import atomic from simhash import hamming_distance from .calculate_simhash import hash_length from .calculate_simhash import highest_value # Although this mixin is extremely interconnected with the SimHash model, # it was just too much code to dump in the mod...
33.666667
102
0.645717
from django.db import models from django.db.transaction import atomic from simhash import hamming_distance from .calculate_simhash import hash_length from .calculate_simhash import highest_value def rotate_bits(num): response = (num >> 1) if num > 0 and num % 2 == 1: response -= highest_value el...
3,666
606
45
9f8cff86ec72af783eecce548992867813cd2054
636
py
Python
rewowr/simple_logger/constants/synchronised_standard_output_const.py
arturOnRails/ReWoWr
45c2cef2e61ca5900082c11c325dd2be2ecca6fb
[ "MIT" ]
null
null
null
rewowr/simple_logger/constants/synchronised_standard_output_const.py
arturOnRails/ReWoWr
45c2cef2e61ca5900082c11c325dd2be2ecca6fb
[ "MIT" ]
null
null
null
rewowr/simple_logger/constants/synchronised_standard_output_const.py
arturOnRails/ReWoWr
45c2cef2e61ca5900082c11c325dd2be2ecca6fb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """.. moduleauthor:: Artur Lissin""" import re from typing import Pattern, Final, final from dataclasses import dataclass _NOT_SPACE: Final[Pattern[str]] = re.compile(r'[^\s]') _TIME_FORMAT: Final[Pattern[str]] = re.compile(r'(.*\d+:\d+:\d+)\..*$') _NEW_LINE: Final[Pattern[str]] = re.comp...
18.171429
71
0.672956
# -*- coding: utf-8 -*- """.. moduleauthor:: Artur Lissin""" import re from typing import Pattern, Final, final from dataclasses import dataclass _NOT_SPACE: Final[Pattern[str]] = re.compile(r'[^\s]') def get_not_space_pattern() -> Pattern[str]: return _NOT_SPACE _TIME_FORMAT: Final[Pattern[str]] = re.compile(...
137
56
91
ef89ea0d3391a88fab920249d5084cd0f89d663b
1,724
py
Python
classroom/models.py
tkhan11/Leave-management-system-
06c2174dbfad6b0286a11cb8d942498dee298b3f
[ "MIT" ]
null
null
null
classroom/models.py
tkhan11/Leave-management-system-
06c2174dbfad6b0286a11cb8d942498dee298b3f
[ "MIT" ]
null
null
null
classroom/models.py
tkhan11/Leave-management-system-
06c2174dbfad6b0286a11cb8d942498dee298b3f
[ "MIT" ]
null
null
null
from django.contrib.auth.models import AbstractUser from django.db import models from django.utils.html import escape, mark_safe
30.785714
81
0.757541
from django.contrib.auth.models import AbstractUser from django.db import models from django.utils.html import escape, mark_safe class User(AbstractUser): is_student = models.BooleanField(default=False) is_teacher = models.BooleanField(default=False) class Student(models.Model): user = models.OneToOneF...
93
1,331
161
480d47765f1b75344a3d41a08a63aa3993791726
1,819
py
Python
chapter-12/hard.py
stamakro/statistical-rethinking-python
2de598a384677a5c931f10c193becdfa5c796031
[ "MIT" ]
3
2020-10-02T09:38:42.000Z
2021-05-22T21:42:00.000Z
chapter-12/hard.py
stamakro/statistical-rethinking-python
2de598a384677a5c931f10c193becdfa5c796031
[ "MIT" ]
null
null
null
chapter-12/hard.py
stamakro/statistical-rethinking-python
2de598a384677a5c931f10c193becdfa5c796031
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import pandas as pd from sklearn.preprocessing import StandardScaler import pymc3 as pm # 12H1 data = pd.read_csv('Hurricanes.csv', delimiter=';') deaths = np.array(data['deaths']) fem = np.array(data['femininity']) ss = StandardScaler() fem = ss.fit_transform(fem.r...
20.908046
110
0.653656
import numpy as np import matplotlib.pyplot as plt import pandas as pd from sklearn.preprocessing import StandardScaler import pymc3 as pm # 12H1 data = pd.read_csv('Hurricanes.csv', delimiter=';') deaths = np.array(data['deaths']) fem = np.array(data['femininity']) ss = StandardScaler() fem = ss.fit_transform(fem.r...
0
0
0
2623eb02030445322edd043016d3a0788b839366
4,740
py
Python
test/testcases/test_data_enrichment.py
stephanmiehe/kafka-connect-splunk
37d19beb0d98aaeccd002e07d566196c9ab6820d
[ "Apache-2.0" ]
76
2018-04-24T07:26:23.000Z
2022-01-26T12:04:50.000Z
test/testcases/test_data_enrichment.py
stephanmiehe/kafka-connect-splunk
37d19beb0d98aaeccd002e07d566196c9ab6820d
[ "Apache-2.0" ]
123
2018-04-27T13:58:06.000Z
2022-03-02T16:11:19.000Z
test/testcases/test_data_enrichment.py
stephanmiehe/kafka-connect-splunk
37d19beb0d98aaeccd002e07d566196c9ab6820d
[ "Apache-2.0" ]
66
2018-04-27T13:43:57.000Z
2022-03-15T07:00:44.000Z
from lib.commonkafka import * from lib.commonsplunk import check_events_from_splunk from lib.helper import get_test_folder import pytest import re logging.config.fileConfig(os.path.join(get_test_folder(), "logging.conf")) logger = logging.getLogger("test_case")
67.714286
261
0.535232
from lib.commonkafka import * from lib.commonsplunk import check_events_from_splunk from lib.helper import get_test_folder import pytest import re logging.config.fileConfig(os.path.join(get_test_folder(), "logging.conf")) logger = logging.getLogger("test_case") class TestDataEnrichment: @pytest.mark.parametrize...
2,806
2,510
23
d36c5a68e2ea7701dd9533031acedf4bf739650a
105
py
Python
main.py
ronaldshaooo/OpenDataJudicial
ee55b234276511b824a04d836607741f9189ebd8
[ "MIT" ]
null
null
null
main.py
ronaldshaooo/OpenDataJudicial
ee55b234276511b824a04d836607741f9189ebd8
[ "MIT" ]
null
null
null
main.py
ronaldshaooo/OpenDataJudicial
ee55b234276511b824a04d836607741f9189ebd8
[ "MIT" ]
null
null
null
import update_judicial_data update_judicial_data.refresh() update_judicial_data.copy_fincial_judgement()
26.25
45
0.904762
import update_judicial_data update_judicial_data.refresh() update_judicial_data.copy_fincial_judgement()
0
0
0
81967fa3c1adb94e6de18967fe14925acf9122b5
515
py
Python
py3/setup.py
tmgardner/halite-go-engine
390ed039567e9706dd4db7cbe72e6df0d412596f
[ "MIT" ]
2
2016-11-28T21:59:15.000Z
2016-12-01T16:31:23.000Z
py3/setup.py
tmgardner/halite-go-engine
390ed039567e9706dd4db7cbe72e6df0d412596f
[ "MIT" ]
2
2016-11-24T00:04:02.000Z
2016-11-25T22:53:50.000Z
py3/setup.py
tmgardner/halite-go-engine
390ed039567e9706dd4db7cbe72e6df0d412596f
[ "MIT" ]
2
2016-11-23T23:39:48.000Z
2016-11-25T14:36:35.000Z
#!/usr/bin/env python """ Halite engine warpped in SWIG """ from distutils.core import setup, Extension halite_module = Extension( '_halite', sources=[ 'halite_wrap.cxx', 'wrapped/core/Halite.cpp', 'wrapped/halite-core.cpp', 'wrapped/networking/Networking.cpp', ], extra_compile_args=[...
19.807692
43
0.642718
#!/usr/bin/env python """ Halite engine warpped in SWIG """ from distutils.core import setup, Extension halite_module = Extension( '_halite', sources=[ 'halite_wrap.cxx', 'wrapped/core/Halite.cpp', 'wrapped/halite-core.cpp', 'wrapped/networking/Networking.cpp', ], extra_compile_args=[...
0
0
0
0aa4a2dc850c0fa887b9603bbbbaf3c43df59847
12,872
py
Python
ch.py
jkartchner/CH_Scrape
50a5ce3982321443bcaba6a253641f1e0c3d62ae
[ "MIT" ]
null
null
null
ch.py
jkartchner/CH_Scrape
50a5ce3982321443bcaba6a253641f1e0c3d62ae
[ "MIT" ]
null
null
null
ch.py
jkartchner/CH_Scrape
50a5ce3982321443bcaba6a253641f1e0c3d62ae
[ "MIT" ]
null
null
null
#! python 3 # ch.py - scrapes denvercourt/themis for criminal # history for a given defendant w/DOB # TODO: show open cases (nxt court date set in noCos tab); sentence; FTAs import requests, sys, time, datetime, bs4, subprocess from tqdm import tqdm bool_Emergency = False ###### ENTRY POINT TO FUNCTIO...
56.955752
332
0.635022
#! python 3 # ch.py - scrapes denvercourt/themis for criminal # history for a given defendant w/DOB # TODO: show open cases (nxt court date set in noCos tab); sentence; FTAs import requests, sys, time, datetime, bs4, subprocess from tqdm import tqdm def now_milliseconds(): return int(time.time() * 1000) ...
35
0
23
ecb5d376f7f652647108c220b13e8791ea5b48d6
15,177
py
Python
src/GridCal/Engine/Simulations/ContinuationPowerFlow/voltage_collapse_driver.py
vineetjnair9/GridCal
5b63cbae45cbe176b015e5e99164a593f450fe71
[ "BSD-3-Clause" ]
null
null
null
src/GridCal/Engine/Simulations/ContinuationPowerFlow/voltage_collapse_driver.py
vineetjnair9/GridCal
5b63cbae45cbe176b015e5e99164a593f450fe71
[ "BSD-3-Clause" ]
null
null
null
src/GridCal/Engine/Simulations/ContinuationPowerFlow/voltage_collapse_driver.py
vineetjnair9/GridCal
5b63cbae45cbe176b015e5e99164a593f450fe71
[ "BSD-3-Clause" ]
null
null
null
# This file is part of GridCal. # # GridCal 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. # # GridCal is distributed in the hope that...
40.580214
129
0.56243
# This file is part of GridCal. # # GridCal 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. # # GridCal is distributed in the hope that...
144
13,238
92
bc06d75b210f645c2e5d7a1ffe518b08391d28aa
3,620
py
Python
datasets/davis.py
PINTO0309/multi-mono-sf
563d65f34624c9281571e8b8b6f1f25599a94a34
[ "Apache-2.0" ]
69
2021-05-06T01:31:54.000Z
2022-03-30T02:52:53.000Z
datasets/davis.py
PINTO0309/multi-mono-sf
563d65f34624c9281571e8b8b6f1f25599a94a34
[ "Apache-2.0" ]
7
2021-05-11T06:39:44.000Z
2022-02-28T10:13:53.000Z
datasets/davis.py
PINTO0309/multi-mono-sf
563d65f34624c9281571e8b8b6f1f25599a94a34
[ "Apache-2.0" ]
11
2021-05-09T13:34:46.000Z
2021-11-24T09:33:49.000Z
from __future__ import absolute_import, division, print_function import os.path import torch import torch.utils.data as data import glob import numpy as np from torchvision import transforms as vision_transforms from .common import read_image_as_byte, read_calib_into_dict, get_date_from_width
30.940171
156
0.560497
from __future__ import absolute_import, division, print_function import os.path import torch import torch.utils.data as data import glob import numpy as np from torchvision import transforms as vision_transforms from .common import read_image_as_byte, read_calib_into_dict, get_date_from_width class Davis_base(data....
3,102
19
201
3a2d5461aa1bce467807b1a811d9383b47735458
1,155
py
Python
root_gnn/src/models/model_utils.py
Calvin-Qiu/TopReco
e9f7f0067530bc9140cd5ca51a134882fe259dbd
[ "Apache-2.0" ]
null
null
null
root_gnn/src/models/model_utils.py
Calvin-Qiu/TopReco
e9f7f0067530bc9140cd5ca51a134882fe259dbd
[ "Apache-2.0" ]
null
null
null
root_gnn/src/models/model_utils.py
Calvin-Qiu/TopReco
e9f7f0067530bc9140cd5ca51a134882fe259dbd
[ "Apache-2.0" ]
null
null
null
import os import tensorflow as tf import sonnet as snt from root_gnn.utils import load_yaml from root_gnn import model as GNN
37.258065
92
0.729004
import os import tensorflow as tf import sonnet as snt from root_gnn.utils import load_yaml from root_gnn import model as GNN def create_load_model(config): config = load_yaml(config) config_tr = config['parameters'] prod_name = config['prod_name'] ckpt_name = 'checkpoint' modeldir = os.path.jo...
1,004
0
23
a708068967df0737f8e2f72ae8741f2d85cc8b3a
2,891
py
Python
__init__.py
PuddlemereUnited/skill-user-manual
30147a7c24b6c431535a3ad66e331f7a99508ca3
[ "Apache-2.0" ]
null
null
null
__init__.py
PuddlemereUnited/skill-user-manual
30147a7c24b6c431535a3ad66e331f7a99508ca3
[ "Apache-2.0" ]
null
null
null
__init__.py
PuddlemereUnited/skill-user-manual
30147a7c24b6c431535a3ad66e331f7a99508ca3
[ "Apache-2.0" ]
null
null
null
# TODO: Add an appropriate license to your skill before publishing. See # the LICENSE file for more information. # Below is the list of outside modules you'll be using in your skill. # They might be built-in to Python, from mycroft-core or from external # libraries. If you use an external library, be sure to include...
39.60274
121
0.717745
# TODO: Add an appropriate license to your skill before publishing. See # the LICENSE file for more information. # Below is the list of outside modules you'll be using in your skill. # They might be built-in to Python, from mycroft-core or from external # libraries. If you use an external library, be sure to include...
1,482
483
45
b9fd067651005ea7cadc040f69a747292a1e5f43
13,453
py
Python
tests/core/test_routes.py
girardinsamuel/core
2f734d76f51a789766ccd09d0e91c356b94d74ae
[ "MIT" ]
95
2018-02-22T23:54:00.000Z
2021-04-17T03:39:21.000Z
tests/core/test_routes.py
girardinsamuel/core
2f734d76f51a789766ccd09d0e91c356b94d74ae
[ "MIT" ]
840
2018-01-27T04:26:20.000Z
2021-01-24T12:28:58.000Z
tests/core/test_routes.py
girardinsamuel/core
2f734d76f51a789766ccd09d0e91c356b94d74ae
[ "MIT" ]
100
2018-02-23T00:19:55.000Z
2020-08-28T07:59:31.000Z
import unittest from masonite.exceptions import RouteNotFoundException from masonite.app import App from masonite.exceptions import InvalidRouteCompileException, RouteException from masonite.helpers.routes import create_matchurl, flatten_routes, group from masonite.request import Request from masonite.routes import (C...
42.980831
180
0.627964
import unittest from masonite.exceptions import RouteNotFoundException from masonite.app import App from masonite.exceptions import InvalidRouteCompileException, RouteException from masonite.helpers.routes import create_matchurl, flatten_routes, group from masonite.request import Request from masonite.routes import (C...
11,732
33
1,072
671f2f0fa33949005ebc8afbdca48d966744d92a
4,178
gyp
Python
chrome/chrome_syzygy.gyp
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-01-28T08:09:58.000Z
2021-11-15T15:32:10.000Z
chrome/chrome_syzygy.gyp
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
chrome/chrome_syzygy.gyp
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
6
2020-09-23T08:56:12.000Z
2021-11-18T03:40:49.000Z
# Copyright (c) 2011 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'variables': { 'dest_dir': '<(PRODUCT_DIR)/syzygy', }, 'conditions': [ ['syzyasan==1', { 'variables': { 'syzygy_exe_dir': '<...
33.693548
90
0.417425
# Copyright (c) 2011 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'variables': { 'dest_dir': '<(PRODUCT_DIR)/syzygy', }, 'conditions': [ ['syzyasan==1', { 'variables': { 'syzygy_exe_dir': '<...
0
0
0
5dd5ff94f67f85811a8af6511ca545b57a59a370
3,745
py
Python
roccclient/models/page_of_organizations_all_of.py
Sage-Bionetworks/rocc-client
85b73afe7d4977094810c0a8094f56ebe7ed3d48
[ "Apache-2.0" ]
null
null
null
roccclient/models/page_of_organizations_all_of.py
Sage-Bionetworks/rocc-client
85b73afe7d4977094810c0a8094f56ebe7ed3d48
[ "Apache-2.0" ]
14
2020-12-06T23:54:23.000Z
2021-02-03T18:35:02.000Z
roccclient/models/page_of_organizations_all_of.py
Sage-Bionetworks/rocc-client
85b73afe7d4977094810c0a8094f56ebe7ed3d48
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Registry of Open Community Challenge API The OpenAPI specification implemented by the Challenge Registries. # Introduction TBA # noqa: E501 The version of the OpenAPI document: 0.1.4 Contact: thomas.schaffter@sagebionetworks.org Generated by: https://openapi-generator.tech "...
30.201613
104
0.608812
# coding: utf-8 """ Registry of Open Community Challenge API The OpenAPI specification implemented by the Challenge Registries. # Introduction TBA # noqa: E501 The version of the OpenAPI document: 0.1.4 Contact: thomas.schaffter@sagebionetworks.org Generated by: https://openapi-generator.tech "...
0
0
0
bd5413945ba7a3ab95cbd7d370d45e5a781636bd
1,968
py
Python
src/ccs.py
tchayintr/thwcc-attn
4ee38365eb338e82bf455f46ff5fe7c59fb7a975
[ "MIT" ]
4
2021-11-23T14:52:38.000Z
2022-02-19T08:29:44.000Z
src/ccs.py
tchayintr/thwcc-attn
4ee38365eb338e82bf455f46ff5fe7c59fb7a975
[ "MIT" ]
null
null
null
src/ccs.py
tchayintr/thwcc-attn
4ee38365eb338e82bf455f46ff5fe7c59fb7a975
[ "MIT" ]
1
2022-02-17T04:17:29.000Z
2022-02-17T04:17:29.000Z
import re import constants if __name__ == '__main__': CHAR_CLUSTERS = ''' เc็c เcctาะ เccีtยะ เccีtย(?=[เ-ไก-ฮ]|$) เccอะ เcc็c เcิc์c เcิtc เcีtยะ? เcืtอะ? เc[ิีุู]tย(?=[เ-ไก-ฮ]|$) เctา?ะ? cัtวะ c[ัื...
23.428571
79
0.457317
import re import constants class CC(object): def __init__(self, clusters): self.ccs = clusters.replace(constants.CONSONANT_SYMBOL, constants.CONSONANTS).replace( constants.TONE_SYMBOL, cons...
1,086
-3
179
687713239a94ca22f0a563edc671ff2769b96ac3
14,456
py
Python
experiments/cLHS_10_000/exp_std_plots/range_points.py
EDSEL-skoltech/maxvol_sampling
6fe81f52115b8a8890210d7b549d2abef2d9800a
[ "MIT" ]
2
2021-03-12T16:13:49.000Z
2021-09-20T18:08:17.000Z
experiments/cLHS_10_000/exp_std_plots/range_points.py
EDSEL-skoltech/maxvol_sampling
6fe81f52115b8a8890210d7b549d2abef2d9800a
[ "MIT" ]
1
2022-02-02T15:57:16.000Z
2022-02-02T15:57:16.000Z
experiments/cLHS_10_000/exp_std_plots/range_points.py
EDSEL-skoltech/maxvol_sampling
6fe81f52115b8a8890210d7b549d2abef2d9800a
[ "MIT" ]
1
2021-09-16T15:34:22.000Z
2021-09-16T15:34:22.000Z
from scipy.spatial import voronoi_plot_2d, Voronoi import matplotlib.cm as cm import matplotlib.pyplot as plt from scipy.spatial import ConvexHull, convex_hull_plot_2d from numpy import genfromtxt import pandas as pd import numpy as np from osgeo import gdal import argparse import os import xarray as xr #cLHS import c...
34.666667
152
0.599267
from scipy.spatial import voronoi_plot_2d, Voronoi import matplotlib.cm as cm import matplotlib.pyplot as plt from scipy.spatial import ConvexHull, convex_hull_plot_2d from numpy import genfromtxt import pandas as pd import numpy as np from osgeo import gdal import argparse import os import xarray as xr #cLHS import c...
5,543
0
194
fdea06d2a42c95131be771e77ee4a4b2f78de9f1
8,812
py
Python
data/sdk/prepare_fog_data.py
qiank10/MVDNet
d83663df068183d1e606100adb0fc78c35f1141c
[ "Apache-2.0" ]
51
2021-03-05T08:20:27.000Z
2022-03-30T03:16:19.000Z
data/sdk/prepare_fog_data.py
qiank10/MVDNet
d83663df068183d1e606100adb0fc78c35f1141c
[ "Apache-2.0" ]
10
2021-04-04T09:07:44.000Z
2021-12-14T09:16:11.000Z
data/sdk/prepare_fog_data.py
qiank10/MVDNet
d83663df068183d1e606100adb0fc78c35f1141c
[ "Apache-2.0" ]
4
2021-03-08T01:49:33.000Z
2021-12-03T12:46:01.000Z
# Tool to prepare foggy lidar test set from Oxford RobotCar dataset. # Adapted from https://github.com/princeton-computational-imaging/SeeingThroughFog/blob/master/tools/DatasetFoggification/lidar_foggification.py # Licensed under the Apache License import argparse, tqdm, os, errno import numpy as np from transform im...
46.136126
159
0.674081
# Tool to prepare foggy lidar test set from Oxford RobotCar dataset. # Adapted from https://github.com/princeton-computational-imaging/SeeingThroughFog/blob/master/tools/DatasetFoggification/lidar_foggification.py # Licensed under the Apache License import argparse, tqdm, os, errno import numpy as np from transform im...
7,200
5
150
0ec82c58ade3cf2893c3edc1eeeba9109a75ff1a
21,149
py
Python
lenstronomy/LensModel/lens_model.py
heather999/lenstronomy
8102fe026c1f3ba6e81d8a1f59cceb90e68430b4
[ "MIT" ]
null
null
null
lenstronomy/LensModel/lens_model.py
heather999/lenstronomy
8102fe026c1f3ba6e81d8a1f59cceb90e68430b4
[ "MIT" ]
null
null
null
lenstronomy/LensModel/lens_model.py
heather999/lenstronomy
8102fe026c1f3ba6e81d8a1f59cceb90e68430b4
[ "MIT" ]
null
null
null
__author__ = 'sibirrer' from lenstronomy.LensModel.single_plane import SinglePlane from lenstronomy.LensModel.MultiPlane.multi_plane import MultiPlane from lenstronomy.Cosmo.lens_cosmo import LensCosmo from lenstronomy.Util import constants as const __all__ = ['LensModel'] class LensModel(object): """ class ...
52.34901
121
0.660504
__author__ = 'sibirrer' from lenstronomy.LensModel.single_plane import SinglePlane from lenstronomy.LensModel.MultiPlane.multi_plane import MultiPlane from lenstronomy.Cosmo.lens_cosmo import LensCosmo from lenstronomy.Util import constants as const __all__ = ['LensModel'] class LensModel(object): """ class ...
0
0
0
2b77ec440dd4b502d4eed3652621d968e4bc1c62
10,843
py
Python
tools/SDKTool/bin/ActionSampler/pymodules/screen/MinicapStream.py
BernhardRiemann/GameAISDK
da24c600e1cdc890739ee274032a17fb9ce75c5c
[ "Apache-2.0" ]
3
2021-03-15T13:53:37.000Z
2021-11-17T10:34:29.000Z
tools/SDKTool/bin/ActionSampler/pymodules/screen/MinicapStream.py
VenmoTools/GameAISDK
208320760440400d369aa8ab2f2439494195e6bd
[ "Apache-2.0" ]
null
null
null
tools/SDKTool/bin/ActionSampler/pymodules/screen/MinicapStream.py
VenmoTools/GameAISDK
208320760440400d369aa8ab2f2439494195e6bd
[ "Apache-2.0" ]
1
2021-02-19T12:04:05.000Z
2021-02-19T12:04:05.000Z
# -*- coding: utf-8 -*- import os try: import Queue except ImportError: import queue as Queue import re import socket import struct import subprocess import threading import time import traceback import logging import cv2 import numpy as np from .MinicapInstall import * SCREEN_ORI_LANDSCAPE = 0 SCREEN_ORI_PORTRA...
37.649306
119
0.491377
# -*- coding: utf-8 -*- import os try: import Queue except ImportError: import queue as Queue import re import socket import struct import subprocess import threading import time import traceback import logging import cv2 import numpy as np from .MinicapInstall import * SCREEN_ORI_LANDSCAPE = 0 SCREEN_ORI_PORTRA...
10,054
7
288
f63dfb77b11c9d474d51a5305232c08192b2b14f
6,632
py
Python
JPS_SHIP/python/caresjpsship/shipRegionQuery.py
mdhillmancmcl/TheWorldAvatar-CMCL-Fork
011aee78c016b76762eaf511c78fabe3f98189f4
[ "MIT" ]
21
2021-03-08T01:58:25.000Z
2022-03-09T15:46:16.000Z
JPS_SHIP/python/caresjpsship/shipRegionQuery.py
mdhillmancmcl/TheWorldAvatar-CMCL-Fork
011aee78c016b76762eaf511c78fabe3f98189f4
[ "MIT" ]
63
2021-05-04T15:05:30.000Z
2022-03-23T14:32:29.000Z
JPS_SHIP/python/caresjpsship/shipRegionQuery.py
mdhillmancmcl/TheWorldAvatar-CMCL-Fork
011aee78c016b76762eaf511c78fabe3f98189f4
[ "MIT" ]
15
2021-03-08T07:52:03.000Z
2022-03-29T04:46:20.000Z
''' module that retreives and pack adms input info ''' import rdflib import requests import math import sys import os import json import rdflib.plugins.sparql.results.jsonresults as jsresult from collections import namedtuple from pyproj import Proj, transform if __name__ == "__...
32.669951
153
0.597708
''' module that retreives and pack adms input info ''' import rdflib import requests import math import sys import os import json import rdflib.plugins.sparql.results.jsonresults as jsresult from collections import namedtuple from pyproj import Proj, transform class shipRegionQuery(object): def __init__(s...
1,437
4,538
109
4543b1ee2c9c9d2d98ee0ab8dc8e2a724151f3ee
3,426
py
Python
pikoToCSV.py
lucasHSA/piko
a0bca6bfbdf1ecf95fd8dcca563350c676d2edf7
[ "MIT" ]
null
null
null
pikoToCSV.py
lucasHSA/piko
a0bca6bfbdf1ecf95fd8dcca563350c676d2edf7
[ "MIT" ]
1
2016-07-18T08:24:50.000Z
2016-12-17T09:19:07.000Z
pikoToCSV.py
lucasHSA/piko
a0bca6bfbdf1ecf95fd8dcca563350c676d2edf7
[ "MIT" ]
null
null
null
# The MIT License (MIT) # # Copyright (c) 2015 Lucas Koegel # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, mod...
38.931818
102
0.65324
# The MIT License (MIT) # # Copyright (c) 2015 Lucas Koegel # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, mod...
0
0
0
7fac254ac20424c134d7215317126385f9c5319c
10,588
gyp
Python
breakpad/breakpad.gyp
zachlatta/chromium
c4625eefca763df86471d798ee5a4a054b4716ae
[ "BSD-3-Clause" ]
1
2021-09-24T22:49:10.000Z
2021-09-24T22:49:10.000Z
breakpad/breakpad.gyp
changbai1980/chromium
c4625eefca763df86471d798ee5a4a054b4716ae
[ "BSD-3-Clause" ]
null
null
null
breakpad/breakpad.gyp
changbai1980/chromium
c4625eefca763df86471d798ee5a4a054b4716ae
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2009 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'includes': [ '../build/common.gypi', ], 'conditions': [ [ 'OS=="mac"', { 'target_defaults': { 'include_dirs': [ ...
30.338109
86
0.463449
# Copyright (c) 2009 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'includes': [ '../build/common.gypi', ], 'conditions': [ [ 'OS=="mac"', { 'target_defaults': { 'include_dirs': [ ...
0
0
0
34fbd0422135a86f28d0b2a5ef0cfa354265e2d3
3,161
py
Python
create_db.py
builderLabs/instrumentgarage
81fab1b53ebe0ba388dc7a4a5ade597cbe628afe
[ "MIT" ]
null
null
null
create_db.py
builderLabs/instrumentgarage
81fab1b53ebe0ba388dc7a4a5ade597cbe628afe
[ "MIT" ]
2
2021-02-08T20:13:44.000Z
2021-06-01T21:41:38.000Z
create_db.py
builderLabs/instrumentgarage
81fab1b53ebe0ba388dc7a4a5ade597cbe628afe
[ "MIT" ]
null
null
null
#!/usr/bin/env/python import os import sys import psycopg2 from sqlalchemy import Column, ForeignKey, Integer, String, create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import relationship, validates from sqlalchemy_utils import database_exists, create_database Ba...
29.542056
86
0.572604
#!/usr/bin/env/python import os import sys import psycopg2 from sqlalchemy import Column, ForeignKey, Integer, String, create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import relationship, validates from sqlalchemy_utils import database_exists, create_database Ba...
992
1,499
121
8c32c4cbf2932a5ea5d345190a060330fecc52b6
1,424
py
Python
handlers/proyectos/nuevo.py
Baltasarq/pract-esei
9b1abd6a445a8d774c9805836ab93ad483f8bfdc
[ "MIT" ]
null
null
null
handlers/proyectos/nuevo.py
Baltasarq/pract-esei
9b1abd6a445a8d774c9805836ab93ad483f8bfdc
[ "MIT" ]
null
null
null
handlers/proyectos/nuevo.py
Baltasarq/pract-esei
9b1abd6a445a8d774c9805836ab93ad483f8bfdc
[ "MIT" ]
null
null
null
# coding: utf-8 # Nuevo proyecto import webapp2 import time from webapp2_extras import jinja2 from google.appengine.ext import ndb from model.proyecto import Proyecto app = webapp2.WSGIApplication([ ('/proyectos/nuevo', NuevoProyectoHandler) ], debug=True)
28.48
83
0.581461
# coding: utf-8 # Nuevo proyecto import webapp2 import time from webapp2_extras import jinja2 from google.appengine.ext import ndb from model.proyecto import Proyecto class NuevoProyectoHandler(webapp2.RequestHandler): def get(self): valores_plantilla = { "clave_asignatura": self.request.G...
1,050
30
76
d32f1b915d421eda68bf3496119bdce7db32dbc5
509
py
Python
stock/urls.py
Praneeth-rdy/Innovation
06fd3a0ae8e48c2bad955f27a197ed17afa5512c
[ "MIT" ]
null
null
null
stock/urls.py
Praneeth-rdy/Innovation
06fd3a0ae8e48c2bad955f27a197ed17afa5512c
[ "MIT" ]
null
null
null
stock/urls.py
Praneeth-rdy/Innovation
06fd3a0ae8e48c2bad955f27a197ed17afa5512c
[ "MIT" ]
null
null
null
# Django Imports from django.urls import path, include # Standard Package Imports # Project Imports from . import views # Third Party Imports app_name = 'stock' urlpatterns = [ # path('', views.home, name='home'), path('', views.risk_return, name='risk-return'), path('portfolio/contact-form/', views....
23.136364
77
0.662083
# Django Imports from django.urls import path, include # Standard Package Imports # Project Imports from . import views # Third Party Imports app_name = 'stock' urlpatterns = [ # path('', views.home, name='home'), path('', views.risk_return, name='risk-return'), path('portfolio/contact-form/', views....
0
0
0
92cae05a37eef002262c0cb01493af83115bf080
8,960
py
Python
test/stress/test.py
paulyc/IncludeOS
5c82bad4a22838bc2219fbadef57d94f006b4760
[ "Apache-2.0" ]
null
null
null
test/stress/test.py
paulyc/IncludeOS
5c82bad4a22838bc2219fbadef57d94f006b4760
[ "Apache-2.0" ]
null
null
null
test/stress/test.py
paulyc/IncludeOS
5c82bad4a22838bc2219fbadef57d94f006b4760
[ "Apache-2.0" ]
1
2021-06-16T22:48:53.000Z
2021-06-16T22:48:53.000Z
#! /usr/bin/env python import sys import socket import time import subprocess import subprocess32 import os includeos_src = os.environ.get('INCLUDEOS_SRC', os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__))).split('/test')[0]) sys.path.insert(0,includeos_src) from vmr...
32.114695
126
0.712165
#! /usr/bin/env python import sys import socket import time import subprocess import subprocess32 import os includeos_src = os.environ.get('INCLUDEOS_SRC', os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__))).split('/test')[0]) sys.path.insert(0,includeos_src) from vmr...
6,178
0
357