seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
<filename>venv/lib/python3.8/site-packages/django/template/loaders/locmem.py<gh_stars>10-100
"""
Wrapper for loading templates from a plain Python dict.
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
std::pair<SparseVector<ScalingBasis>, SparseVector<WaveletBasis>> ApplyRecur(
size_t l, const SparseIndices<ScalingBasis> &Pi_out);
std::pair<SparseIndices<ScalingBasis>, SparseIndices<ScalingBasis>>
ConstructPiOut(const SparseIndices<ScalingBasis> &Pi_out);
};
| ise-uiuc/Magicoder-OSS-Instruct-75K |
state: .off) { [weak self] _ in
for feed in account.flattenedWebFeeds() {
feed.isNotifyAboutNewArticles = false
}
self?.notificationsTableView.reloadData()
self?.filterButton.menu = self?.notificationFilterMenu()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// public function testFoafTurtleSuffix() {
// $this->get('/foaf.ttl');
// $this->assertEquals('200', $this->response->status());
// $this->assertEquals('text/turtle', $this->response['Content-Type']);
// $this->assertRegExp('|@prefix foaf: |', $this->response->body());
// }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return ((x - x1) * px + (y - y1) * py) / max(1e-9, float(dd))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if pb_op.opType() == opType and isinstance(pb_op, PbOpType):
return True
return False
def num_op_of_type(opType: str, PbOpType: Type[_ir.Op],
graph: pir.Graph) -> int:
pb_g = graph._pb_graph
count = 0
for pb_op in pb_g.getOps():
if pb_op.opType() == opT... | ise-uiuc/Magicoder-OSS-Instruct-75K |
var hoconObject = ConfigurationFactory.ParseString(value).Root.GetObject();
return new ConfigOptionList(Error: false, string.Empty, Extract(hoconObject).Select(s => new ConfigOption(s.Path, s.DefaultValue)).ToArray());
}
catch (Exception e)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
data_folder = ''
embedding_folder = ''
train_file = data_folder+"cmrc2018_train.json"
dev_file = data_folder+"cmrc2018_dev.json"
reader = CMRCReader()
train_data = reader.read(train_file)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def is_volume_muted(self):
"""Return boolean if volume is currently muted."""
return self._volume_muted
@property
| ise-uiuc/Magicoder-OSS-Instruct-75K |
cli = Gym()
fire.Fire(cli)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if ($config->isMapped() && $resolverContext instanceof EntityResolverContext) {
$content = $this->resolveEntityValue($resolverContext->getEntity(), $config->getValue());
$text->setContent((string) $content);
}
if ($config->isStatic()) {
if ($resolverContext ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
metrics = {'plaqs': plaqs}
if beta is not None:
pexact = plaq_exact(beta) * tf.ones_like(plaqs)
metrics.update({
'plaqs_err': pexact - plaqs
})
metrics.update({
'intQ': charges.intQ, 'sinQ': charges.sinQ
})
return me... | ise-uiuc/Magicoder-OSS-Instruct-75K |
class ClientCache(SimplePaths):
""" Class to represent/store/compute all the paths involved in the execution
of conans commands. Accesses to real disk and reads/write things. (OLD client ConanPaths)
"""
def __init__(self, base_folder, store_folder, output):
self.conan_folder = os.path.join(ba... | ise-uiuc/Magicoder-OSS-Instruct-75K |
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governin... | ise-uiuc/Magicoder-OSS-Instruct-75K |
# include "./FDSet/FDSet.hpp"
class ISelect
| ise-uiuc/Magicoder-OSS-Instruct-75K |
model_name='mod',
name='protection_roll',
field=models.SmallIntegerField(default=0),
),
migrations.AddField(
model_name='mod',
name='speed_roll',
field=models.SmallIntegerField(default=0),
),
migrations.AddField(
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
INTERMEDIATES="`ls -d $HOME/Library/Developer/Xcode/DerivedData/ContentfulSDK-*/Build/Intermediates/ContentfulSDK.build/Debug-iphonesimulator/ContentfulDeliveryAPI.build`"
killall CoverStory
open `find "$INTERMEDIATES" -name '*.gcda'`
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for i in range(10): # 输入要下载音乐的数量,1到100。
name = str(i+1) + ' ' + arr[i]['name'] + '.mp3'
link = arr[i]['mp3Url']
urllib.request.urlretrieve(link, '网易云音乐\\' + name) # 提前要创建文件夹
print(name + ' 下载完成') | ise-uiuc/Magicoder-OSS-Instruct-75K |
from object_pose_utils.utils import to_np, to_var
import cv2
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return <NotificationItem {...props} />
}
export function NotificationList() {
const notifications = useSelector(selectActiveNotifications)
const items = notifications
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ID: string;
file_name?: string | null;
created: string;
updated?: null;
batch_id: string;
status: string;
metadata?: string | null;
data?: null;
author: string;
error: string;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
[Parameter(HelpMessage = "Key for EventGrid topic access.", Mandatory = true)]
public string TopicKey;
protected override void ProcessRecord()
{
string uriString = string.Format("eventgrid://{0}?clients={1}", Host, NumClients <= 0 ? 1 : NumClients);
Subscription... | ise-uiuc/Magicoder-OSS-Instruct-75K |
def test_process_dataset():
start_date = np.datetime64("2012-03-07")
end_date = np.datetime64("2012-03-08")
file_dt = np.timedelta64(12, 'h')
mlat_bins = np.array([35, 45, 55, 65])
mlt_bins = np.array([-1.5, -.5, .5, 1.5])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//搜索关键词
String keyword = "qq";
String url = M4_URL + "/search/getSearchResult_newJson.htm?keyWord="+ keyword +"&p=undefined";
String result = getHttpResponse4Get(url);
try {
if(result != ""){
JSONObject re = new JSONObject(result);
JSONArray app = re.getJSONArray("appDetails");
Ass... | ise-uiuc/Magicoder-OSS-Instruct-75K |
new Change($this),
]);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// Algorithms-Swift
//
// Created by Nabil Safatli on 2019-11-28.
// Copyright © 2019 Nabil. All rights reserved.
//
import Foundation
class MergeSort {
static func execute() {
let unsortedArraySample = [10, 3, 1, 7, 0, 2, 8]
let sortedArray = sort(unsortedArraySample)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if command.startswith('Get') or command.startswith('Help'):
fn = getattr(robot, command)
result = fn()
if type(result) is dict:
for key in result:
if str(key).find("Serial") > -1:
result[key] = "SERIAL-EXCLUDED"
example = str(result)
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
constructor(
public readonly haystack: Image,
public readonly needle: Image,
public readonly confidence: number,
public readonly searchMultipleScales: boolean = true
) {}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Loss(Module):
def __init__(self, reduction: str = "mean"):
"""
A loss is a statefull object which computes the difference between the prediction and the target.
:param log_std: When true the loss will log its standard deviation. (default: False)
:param log_min: When tr... | ise-uiuc/Magicoder-OSS-Instruct-75K |
@objc protocol ___VARIABLE_sceneName___RoutingLogic {
//func routeToSomewhere(segue: UIStoryboardSegue?)
}
protocol ___VARIABLE_sceneName___DataPassing {
var dataStore: ___VARIABLE_sceneName___DataStore? { get }
}
class ___VARIABLE_sceneName___Router: NSObject, ___VARIABLE_sceneName___RoutingLogic, ___VARIAB... | ise-uiuc/Magicoder-OSS-Instruct-75K |
... )
...
True
'''
n = self.n
start = self.group(by = by)
elements = self.elements
result = candidate.Candidate({}, elements = elements)
for V in start.values():
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$response = Http::get('https://topicos-web.herokuapp.com/api/solicitud/detalle', [
'solicitud_id' => $id,
]);
$this->ver=true;
$this->solicitudActual=$response->json();
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// Switch the order of the files.
// RUN: %target-swift-frontend -emit-module -module-name Multi %t/multi-file-2.swiftmodule %t/multi-file.swiftmodule -o %t -print-stats 2>&1 | %FileCheck %s
| ise-uiuc/Magicoder-OSS-Instruct-75K |
sed -n '2~4p' $FASTQ > $DIR/tests/fastq-seq.txt
sed -n '4~4p' $FASTQ > $DIR/tests/fastq-quality.txt
paste -d '|' $DIR/tests/fastq-seq.txt $DIR/tests/fastq-quality.txt > $DIR/tests/fastq-check.txt
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ForeignKey,
ForeignKeyConstraint,
Integer,
String,
UniqueConstraint,
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""Base class for converting and running a model."""
def __init__(
self,
model_config: ModelConfig,
trt_convert_params: trt.TrtConversionParams,
):
super(_TrtModelHandlerBase, self).__init__(model_config)
self._trt_convert_params = trt_convert_params
self._converter = self._create_... | ise-uiuc/Magicoder-OSS-Instruct-75K |
pub mod define;
pub mod demuxer_tag;
pub mod errors;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"service": {
"actions": OrderedDict([
("SampleOperation", {
"request": {"operation": "SampleOperation"}
}),
("SampleListReturnOperation", {
"request": {"operation": "SampleOperation"},... | ise-uiuc/Magicoder-OSS-Instruct-75K |
*/
let session: URLSession!
//MARK: - Init Methods
private init() {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
LOGGER.log(Level.INFO, "Automovilresorice updateAutomovil: output: {0}", DTO);
return DTO;
}
@DELETE
@Path("{autoId: \\d+}")
public void deleteAutomovil(@PathParam("autoId") Long autoID){
AutomovilEntity entity = autoLogic.getAutomovil(autoID);
if (entity == null) {
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
* * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* * License for the specific language governing permissions and limitations
* * und... | ise-uiuc/Magicoder-OSS-Instruct-75K |
<gh_stars>0
if which swiftlint >/dev/null; then
# Lint generated code in UnitTests/expected
for f in `find "${PROJECT_DIR}/UnitTests/expected" -name '*.swift.out'`
do
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from . import layout
| ise-uiuc/Magicoder-OSS-Instruct-75K |
elif value.isdigit():
value = int(value)
else:
raise NotImplementedError("Invalid string value %r = %r" % (tag, value))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for key in item.keys():
if item[key] != '-9999':
if key not in day:
day[key] = {}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if args.p:
with contextlib.suppress(Exception):
app.send_photo(user_id, args.p, caption=args.m, disable_notification=args.notify)
else:
with contextlib.suppress(Exception):
app.send_message(user_id, args.m, disable_notification=args.notify)
app... | ise-uiuc/Magicoder-OSS-Instruct-75K |
obs = ScanObserver(
observer=sink,
func=lambda acc, v: acc + v,
initial=0,
)
self.source.observe(init_observer_info(observer=obs))
self.source.on_next_single(1)
self.assertEqual([1], sink.received)
def test_single_batch(self):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>puppetlabs/trapperkeeper-demo<filename>scripts/run-rpc-server.sh
#!/bin/bash
lein run -b dev-resources/rpc-server-bootstrap.cfg -c dev-resources/rpc-server-config.conf
| ise-uiuc/Magicoder-OSS-Instruct-75K |
int T,p,f,cs,cw,s,w;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
function digga() {
dig +nocmd "$1" any +multiline +noall +answer;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<filename>gitconsensusservice/www.py
from flask import Flask, session, redirect, url_for, escape, request, render_template, flash, send_from_directory
from gitconsensusservice import app
import gitconsensusservice.routes.webhooks
| ise-uiuc/Magicoder-OSS-Instruct-75K |
void pinMode(int pin, int mode)
{
}
void digitalWrite(int pin, int level)
{
_pin_[pin] = level;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace Particula.Cube {
public class EdgeViewModel : PieceViewModel {
public EdgeViewModel(IEdge edge) : base(edge) { }
}
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
System.out.println(">>"+obj.toString());
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// Count occurrences
let mut word_counts: HashMap<String, usize> = HashMap::new();
for word in words {
if let Some(count) = word_counts.get_mut(&word) {
*count += 1;
continue;
}
word_counts.insert(word, 1);
}
//println!("{:?}", word_counts);
let ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
max_size = torch.max(im_shape).to(dtype=torch.float32)
scale_factor = torch.min(self_min_size / min_size, self_max_size / max_size)
image = torch.nn.functional.interpolate(
image[None], scale_factor=scale_factor, mode='bilinear', recompute_scale_factor=True,
align_corners=False)[0]
if target is No... | ise-uiuc/Magicoder-OSS-Instruct-75K |
public static EqlCacheProvider getCacheProvider(
EqlUniqueSqlId uniqueSQLId, String cacheModel) {
val model = firstNonNull(cacheModel, EqlCacheSettings.DEFAULT_GUAVA_CACHE_MODEL);
val cacheModelKey = new EqlCacheModelKey(uniqueSQLId.getSqlClassPath(), model);
val provider = eql... | ise-uiuc/Magicoder-OSS-Instruct-75K |
PostUpdateCommands.RemoveComponent<UpdateRaycastController>(data.entities[i]);
}
for (int i = 0; i < unprepared.Length; i++) {
PostUpdateCommands.AddComponent(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def __init__(self):
super(AlipayCommerceEducateXuexinIdentityQueryResponse, self).__init__()
self._college_online_tag = None
self._graduate_time = None
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
from typing import List
class Solution:
def merge(self, nums1: List[int], m: int, nums2: List[int], n: int) -> None:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from os import system, name
system('cls' if name == 'nt' else 'clear')
dsc = ('''DESAFIO 037:
Escreva um programa que leia um número inteiro qualquer e peça
para o usuário escolher qual será a base de conversão:
- 1 para binário
- 2 para octal
- 3 para hexadecimal
''')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
XCTAssertEqual(String(modelURLComponents[count]), NSString(string: model.bundle.bundlePath).lastPathComponent)
// THEN: the managed object model does not assert
XCTAssertNotNil(model.managedObjectModel)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def use_bigquery():
return (
BIGQUERY
and os.environ.get(GOOGLE_APPLICATION_CREDENTIALS)
and os.environ.get(BIGQUERY_LOCATION)
and os.environ(BIGQUERY_DATASET)
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
while True:
stream_name_arr = stream_response['logStreams']
for stream_elm in stream_name_arr:
stream_name = stream_elm['logStreamName']
stream_list.append(stream_name)
if "nextToken" in stream_response:
next_token = stream_response['nextToken']
| ise-uiuc/Magicoder-OSS-Instruct-75K |
md5sum - md5sum of the file. If None, the file must exist.
size - Size of the file. If None, the file must exist.
"""
self.metaDataFile = metaDataFile
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Serial.print(", Vertical Bearing: ");
Serial.println(vert);
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
x.append(a)
xBatch = np.reshape(np.array(x), (len(m), step, n))
for i in m+1:
a = xData[i:(i+step)]
y.append(a)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
while response not in directions:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def parse(fin, fout, dtype = "diff"):
fi = open(fin, "r")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if fBracketed is None:
fBracketed = len(sName) > 2;
WuiTmLink.__init__(self, sName = sName,
sUrlBase = WuiMain.ksScriptName,
dParams = { WuiMain.ksParamAction: WuiMain.ksActionTestResultFailureDetails,
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
'released': jira_version_release
}
# Construct URL
api_url = ('%(url)s/rest/api/2/version' % {'url': jira_url})
print('Sending request to:')
print(api_url)
print('with body')
print(data)
# Post build status to Bitbucket
response = requests.post(api_url, auth=(auth_user, au... | ise-uiuc/Magicoder-OSS-Instruct-75K |
def dump_to_pickle(model, filename: str)-> None:
pickle.dump(model, open(filename, 'wb'))
@staticmethod
def load_from_pickle(filename: str)->None:
loaded_model = pickle.load(open(filename, 'rb'))
return loaded_model
| ise-uiuc/Magicoder-OSS-Instruct-75K |
prob_v = F.softmax(logits_v, dim=1)
entropy_v = -1.0 * (prob_v * log_pi_v).sum(dim=1).mean()
loss_entropy_v = -1.0 * self.params.ENTROPY_LOSS_WEIGHT * entropy_v
# loss_actor_v를 작아지도록 만듦 --> log_pi_v.mean()가 커지도록 만듦
# loss_entropy_v를 작아지도록 만듦 --> entropy_v가 커지도록 만듦
loss_a... | ise-uiuc/Magicoder-OSS-Instruct-75K |
setprg16(0xC000, 0x20);
else
setprg16(0xC000, 0x07);
}
}
setchr8(0);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
def bubble_sort(arr):
for i in range(len(arr)):
for j in range(len(arr) - i - 1):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return node, sum
def count_connected_domin_score(max_total_area_rate, img0, img1, max_patch_number):
resize2 = transforms.Compose([
transforms.ToTensor()])
connected_domin_score_dict = {}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
) -> None:
self.dependencies = tuple(dependencies)
self.matcher = AddressSpecsMatcher(tags=tags, exclude_patterns=exclude_patterns)
def __iter__(self) -> Iterator[AddressSpec]:
return iter(self.dependencies)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
with self.assertRaises(q_exc.SecurityGroupsCouldNotBeApplied):
redis_client.Client()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public init(width: CGFloat) {
self.init(width: width, height: 0)
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# set verify_signature to False if you want to do some local testing
@flask_slack.slack_route('/slack/endpoint', response_type=ResponseType.IN_CHANNEL, verify_signature=True)
def get_channel_member_ids(form_content):
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{}
]
def test_post_detail_has_many_valid_filters(self):
assert self.flourish.all_valid_filters_for_path('source') == [
| ise-uiuc/Magicoder-OSS-Instruct-75K |
BOT_TOKEN = "<PASSWORD>"
SERVER_ADDRESS = ("192.168.3.11:7797", 27016)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return id.second;
}
if (manager.trash_bin.empty()) {
id.second = manager.cur_max_id++;
} else {
id.second = manager.trash_bin.back();
manager.trash_bin.pop_back();
}
return id.second;
}
void ThreadGeneration::finalize(const ThreadGeneration::NameType& name) {
try... | ise-uiuc/Magicoder-OSS-Instruct-75K |
int wQXY3jhy = -!new RLK52i()[ e58OE3Hn2kghTA().wv] = -false[ null.B8];
return !OjN()[ this[ new kJr_85f_bR()[ !XzG[ new boolean[ AMCAW[ true.OB8Z1K()]][ -A360zF2xRwybDH[ 284188412[ !573.cYQefql8YrwCP8()]]]]]]];
void fd11V8B6S;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<p class="path">
<a>category3</a>
</p>
</tr>
</tbody>
</table>
</html>
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pessoa.append( int(input('>>> ')) )
pessoas.append(pessoa)
if len(pessoas) == 1:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
demand(result).be.true();
done();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
assert_res_ok(&data, &[], &[]);
}
#[tokio::test]
async fn dispatch_subscribe_should_work() {
let topic = Arc::new(Broadcaster::default());
let cmd = CommandRequest::new_subscribe("lobby");
let mut res = dispatch_stream(cmd, topic);
let id = get_id(&mut res).await;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
sock.sendall(struct.pack("@H", len(path))) # len of path as unsigned short
sock.sendall(path)
resp = sock.recv(1) # response first byte: \x00 OK or \xFF ERROR
if resp != b'\x00':
print("Error byte received, errno is:", struct.unpack("@i", sock.recv(4))[0])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
});
DB::statement("ALTER TABLE `HopDong` comment 'HopDong'");
}
/**
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return to_compare
| ise-uiuc/Magicoder-OSS-Instruct-75K |
25, 93, -46,
33, 93, -40,
41, 88, -44,
33, 90, -58,
17, 114, 122,
15, 122, 113,
0, 123, 115,
0, 118, 123,
30, 109, 120,
22, 121, 111,
34, 108, 112,
25, 120, 97,
33, 103, 83,
23, 118, 79,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
CaptivePortal::CaptivePortal(const char* ip)
: _httpServer(80),
_isStopped(true),
_registerA(0),
_registerB(0),
_registerC(0)
{
_apIP.fromString(ip);
_callbacks["/"] = [](WebServer& sv)
{
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
def check_weights(data_ps):
"""Check if sum of propensity score weights match sample size
Args:
data_ps (pandas.DataFrame): dataframe with propensity score
Return:
tuple: sample size, treated size from weigths, untreated size froms weigths
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
throw new UnsupportedOperationException("Cannot convert " + value.getClass() + " to " + t);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public interface Component {
boolean start();
boolean stop();
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
std::vector<int> ps;
for (int i = 2; i < N; ++i) {
if (flags[i]) { ps.push_back(i); }
}
return ps;
}
} // namespace math
| ise-uiuc/Magicoder-OSS-Instruct-75K |
override func setUpWithError() throws {
// Put setup code here. This method is called before the invocation of each test method in the class.
// In UI tests it is usually best to stop immediately when a failure occurs.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
migrations.CreateModel(
name='Workflow',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('creation_date', models.DateTimeField(auto_now_add=True)),
('created_plugin_inst_ids', mod... | ise-uiuc/Magicoder-OSS-Instruct-75K |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.